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