Detections Stabilizer¶
Class: StabilizeTrackedDetectionsBlockV1
This block stores last known position for each bounding box If box disappears then this block will bring it back so short gaps are filled with last known box position The block requires detections to be tracked (i.e. each object must have unique tracker_id assigned, which persists between frames) WARNING: this block will produce many short-lived bounding boxes for unstable trackers!
Type identifier¶
Use the following identifier in step "type"
field: roboflow_core/stabilize_detections@v1
to add the block as
as step in your workflow.
Properties¶
Name | Type | Description | Refs |
---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
smoothing_window_size |
int |
Predicted movement of detection will be smoothed based on historical measurements of velocity, this parameter controls number of historical measurements taken under account when calculating smoothed velocity. Detections will be removed from generating smoothed predictions if they had been missing for longer than this number of frames.. | ✅ |
bbox_smoothing_coefficient |
float |
Bounding box smoothing coefficient applied when given tracker_id is present on current frame. This parameter must be initialized with value between 0 and 1. | ✅ |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow
runtime. See Bindings for more info.
Available Connections¶
Compatible Blocks
Check what blocks you can connect to Detections Stabilizer
in version v1
.
- inputs:
Label Visualization
,Depth Estimation
,Triangle Visualization
,Image Blur
,Model Comparison Visualization
,Detections Transformation
,Line Counter Visualization
,Circle Visualization
,Relative Static Crop
,Detections Stitch
,Trace Visualization
,Byte Tracker
,Object Detection Model
,Path Deviation
,Detection Offset
,Detections Consensus
,Velocity
,Stitch Images
,Reference Path Visualization
,Bounding Rectangle
,Detections Filter
,Polygon Visualization
,Time in Zone
,Detections Merge
,Segment Anything 2 Model
,Identify Outliers
,SIFT
,Image Threshold
,Path Deviation
,Keypoint Visualization
,Ellipse Visualization
,Crop Visualization
,Color Visualization
,Image Slicer
,Dynamic Crop
,Instance Segmentation Model
,Dot Visualization
,Instance Segmentation Model
,Stability AI Inpainting
,Line Counter
,Google Vision OCR
,Identify Changes
,Template Matching
,Corner Visualization
,Overlap Filter
,Background Color Visualization
,Polygon Zone Visualization
,Byte Tracker
,Camera Focus
,Grid Visualization
,Perspective Correction
,Stability AI Image Generation
,VLM as Detector
,Line Counter
,Image Slicer
,Clip Comparison
,Blur Visualization
,Dynamic Zone
,Classification Label Visualization
,Image Convert Grayscale
,Time in Zone
,Image Preprocessing
,SIFT Comparison
,Byte Tracker
,Detections Stabilizer
,Pixel Color Count
,YOLO-World Model
,Stability AI Outpainting
,Moondream2
,Camera Calibration
,Mask Visualization
,Bounding Box Visualization
,Distance Measurement
,Pixelate Visualization
,PTZ Tracking (ONVIF)
.md),Image Contours
,Detections Classes Replacement
,Object Detection Model
,Absolute Static Crop
,Halo Visualization
,SIFT Comparison
,VLM as Detector
- outputs:
Stability AI Inpainting
,Line Counter
,Florence-2 Model
,Model Monitoring Inference Aggregator
,Label Visualization
,Florence-2 Model
,Corner Visualization
,Triangle Visualization
,Overlap Filter
,Background Color Visualization
,Model Comparison Visualization
,Byte Tracker
,Detections Transformation
,Circle Visualization
,Perspective Correction
,Line Counter
,Detections Stitch
,Trace Visualization
,Byte Tracker
,Blur Visualization
,Dynamic Zone
,Time in Zone
,Path Deviation
,Byte Tracker
,Detections Consensus
,Velocity
,Detection Offset
,Detections Stabilizer
,Bounding Rectangle
,Detections Filter
,Size Measurement
,Time in Zone
,Roboflow Dataset Upload
,Segment Anything 2 Model
,Detections Merge
,Polygon Visualization
,Roboflow Custom Metadata
,Mask Visualization
,Bounding Box Visualization
,Path Deviation
,Distance Measurement
,Ellipse Visualization
,Crop Visualization
,Color Visualization
,Pixelate Visualization
,Stitch OCR Detections
,PTZ Tracking (ONVIF)
.md),Dynamic Crop
,Detections Classes Replacement
,Halo Visualization
,Dot Visualization
,Roboflow Dataset Upload
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Detections Stabilizer
in version v1
has.
Bindings
-
input
image
(image
): not available.detections
(Union[instance_segmentation_prediction
,object_detection_prediction
]): Tracked detections.smoothing_window_size
(integer
): Predicted movement of detection will be smoothed based on historical measurements of velocity, this parameter controls number of historical measurements taken under account when calculating smoothed velocity. Detections will be removed from generating smoothed predictions if they had been missing for longer than this number of frames..bbox_smoothing_coefficient
(float_zero_to_one
): Bounding box smoothing coefficient applied when given tracker_id is present on current frame. This parameter must be initialized with value between 0 and 1.
-
output
tracked_detections
(Union[object_detection_prediction
,instance_segmentation_prediction
]): Prediction with detected bounding boxes in form of sv.Detections(...) object ifobject_detection_prediction
or Prediction with detected bounding boxes and segmentation masks in form of sv.Detections(...) object ifinstance_segmentation_prediction
.
Example JSON definition of step Detections Stabilizer
in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/stabilize_detections@v1",
"image": "<block_does_not_provide_example>",
"detections": "$steps.object_detection_model.predictions",
"smoothing_window_size": 5,
"bbox_smoothing_coefficient": 0.2
}