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:
Identify Changes
,Detection Offset
,Camera Focus
,Line Counter
,Polygon Zone Visualization
,Detections Filter
,Time in Zone
,Grid Visualization
,YOLO-World Model
,Image Convert Grayscale
,Trace Visualization
,Instance Segmentation Model
,Absolute Static Crop
,Perspective Correction
,Distance Measurement
,Circle Visualization
,Clip Comparison
,Image Slicer
,Triangle Visualization
,Halo Visualization
,Line Counter
,Byte Tracker
,Corner Visualization
,Detections Classes Replacement
,Object Detection Model
,Template Matching
,Detections Consensus
,Overlap Filter
,Dynamic Crop
,Depth Estimation
,Dynamic Zone
,Velocity
,Stitch Images
,Segment Anything 2 Model
,Object Detection Model
,Model Comparison Visualization
,Crop Visualization
,Blur Visualization
,SIFT Comparison
,Image Threshold
,Stability AI Inpainting
,VLM as Detector
,Relative Static Crop
,Image Preprocessing
,Dot Visualization
,Keypoint Visualization
,Background Color Visualization
,Path Deviation
,Pixel Color Count
,Color Visualization
,Moondream2
,Classification Label Visualization
,Google Vision OCR
,Camera Calibration
,Pixelate Visualization
,Label Visualization
,Image Slicer
,Time in Zone
,Reference Path Visualization
,Identify Outliers
,Line Counter Visualization
,Byte Tracker
,Image Blur
,Detections Transformation
,SIFT Comparison
,Detections Stabilizer
,Image Contours
,Polygon Visualization
,Instance Segmentation Model
,SIFT
,Detections Merge
,Ellipse Visualization
,Mask Visualization
,Detections Stitch
,Bounding Box Visualization
,Byte Tracker
,Bounding Rectangle
,Stability AI Image Generation
,VLM as Detector
,Path Deviation
- outputs:
Detection Offset
,Blur Visualization
,Line Counter
,Stability AI Inpainting
,Detections Filter
,Time in Zone
,Dot Visualization
,Background Color Visualization
,Path Deviation
,Trace Visualization
,Roboflow Custom Metadata
,Perspective Correction
,Color Visualization
,Distance Measurement
,Circle Visualization
,Pixelate Visualization
,Stitch OCR Detections
,Triangle Visualization
,Halo Visualization
,Label Visualization
,Time in Zone
,Roboflow Dataset Upload
,Byte Tracker
,Line Counter
,Size Measurement
,Byte Tracker
,Corner Visualization
,Detections Transformation
,Florence-2 Model
,Detections Stabilizer
,Detections Classes Replacement
,Detections Consensus
,Roboflow Dataset Upload
,Overlap Filter
,Dynamic Crop
,Polygon Visualization
,Florence-2 Model
,Detections Merge
,Ellipse Visualization
,Mask Visualization
,Dynamic Zone
,Velocity
,Model Monitoring Inference Aggregator
,Detections Stitch
,Segment Anything 2 Model
,Byte Tracker
,Bounding Box Visualization
,Bounding Rectangle
,Model Comparison Visualization
,Path Deviation
,Crop Visualization
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[object_detection_prediction
,instance_segmentation_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
}