Detections Stitch¶
Class: DetectionsStitchBlockV1
Source: inference.core.workflows.core_steps.fusion.detections_stitch.v1.DetectionsStitchBlockV1
This block merges detections that were inferred for multiple sub-parts of the same input image into single detection.
Block may be helpful in the following scenarios: * to apply Slicing Adaptive Inference (SAHI) technique, as a final step of procedure, which involves Image Slicer block and model block at previous stages. * to merge together detections performed by precise, high-resolution model applied as secondary model after coarse detection is performed in the first stage and Dynamic Crop is applied later.
Type identifier¶
Use the following identifier in step "type"
field: roboflow_core/detections_stitch@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.. | ❌ |
overlap_filtering_strategy |
str |
Which strategy to employ when filtering overlapping boxes. None does nothing, NMS discards lower-confidence detections, NMM combines them.. | ✅ |
iou_threshold |
float |
Minimum overlap threshold between boxes. If intersection over union (IoU) is above this ratio, discard or merge the lower confidence box.. | ✅ |
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 Stitch
in version v1
.
- inputs:
Bounding Rectangle
,Identify Outliers
,Multi-Label Classification Model
,Single-Label Classification Model
,Classification Label Visualization
,Background Color Visualization
,Webhook Sink
,Dynamic Crop
,Mask Visualization
,Clip Comparison
,Google Vision OCR
,Twilio SMS Notification
,Segment Anything 2 Model
,Absolute Static Crop
,Detection Offset
,Stability AI Image Generation
,Model Monitoring Inference Aggregator
,Image Blur
,Florence-2 Model
,LMM For Classification
,Roboflow Dataset Upload
,Identify Changes
,CogVLM
,Circle Visualization
,OCR Model
,Crop Visualization
,Template Matching
,VLM as Detector
,Path Deviation
,OpenAI
,Stitch OCR Detections
,Velocity
,Detections Stitch
,OpenAI
,Image Preprocessing
,Label Visualization
,Detections Stabilizer
,Path Deviation
,Time in Zone
,Model Comparison Visualization
,Stitch Images
,Bounding Box Visualization
,Keypoint Detection Model
,Perspective Correction
,Moondream2
,SIFT Comparison
,Relative Static Crop
,Color Visualization
,Slack Notification
,Ellipse Visualization
,Reference Path Visualization
,Blur Visualization
,Pixelate Visualization
,Anthropic Claude
,Email Notification
,LMM
,Llama 3.2 Vision
,Instance Segmentation Model
,CSV Formatter
,VLM as Detector
,Keypoint Visualization
,Camera Focus
,Time in Zone
,Byte Tracker
,Florence-2 Model
,Detections Filter
,Detections Transformation
,YOLO-World Model
,Grid Visualization
,Image Convert Grayscale
,Image Threshold
,Trace Visualization
,Polygon Visualization
,Triangle Visualization
,Stability AI Inpainting
,Detections Consensus
,Halo Visualization
,Dot Visualization
,Polygon Zone Visualization
,Google Gemini
,Detections Merge
,Local File Sink
,Dynamic Zone
,Instance Segmentation Model
,Roboflow Custom Metadata
,VLM as Classifier
,Detections Classes Replacement
,Camera Calibration
,Object Detection Model
,SIFT
,Corner Visualization
,Image Contours
,Line Counter Visualization
,Roboflow Dataset Upload
,Image Slicer
,Byte Tracker
,Image Slicer
,Byte Tracker
,Line Counter
,Object Detection Model
- outputs:
Bounding Rectangle
,Blur Visualization
,Pixelate Visualization
,Background Color Visualization
,Dynamic Crop
,Mask Visualization
,Time in Zone
,Byte Tracker
,Segment Anything 2 Model
,Detection Offset
,Model Monitoring Inference Aggregator
,Florence-2 Model
,Florence-2 Model
,Detections Filter
,Detections Transformation
,Roboflow Dataset Upload
,Circle Visualization
,Crop Visualization
,Trace Visualization
,Path Deviation
,Triangle Visualization
,Detections Consensus
,Stitch OCR Detections
,Polygon Visualization
,Stability AI Inpainting
,Halo Visualization
,Dot Visualization
,Velocity
,Detections Merge
,Detections Stitch
,Dynamic Zone
,Size Measurement
,Roboflow Custom Metadata
,Detections Classes Replacement
,Detections Stabilizer
,Label Visualization
,Path Deviation
,Line Counter
,Corner Visualization
,Time in Zone
,Model Comparison Visualization
,Bounding Box Visualization
,Roboflow Dataset Upload
,Perspective Correction
,Byte Tracker
,Byte Tracker
,Line Counter
,Distance Measurement
,Color Visualization
,Ellipse Visualization
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Detections Stitch
in version v1
has.
Bindings
-
input
reference_image
(image
): Original image that was cropped to produce the predictions..predictions
(Union[object_detection_prediction
,instance_segmentation_prediction
]): Model predictions to be merged into the original image..overlap_filtering_strategy
(string
): Which strategy to employ when filtering overlapping boxes. None does nothing, NMS discards lower-confidence detections, NMM combines them..iou_threshold
(float_zero_to_one
): Minimum overlap threshold between boxes. If intersection over union (IoU) is above this ratio, discard or merge the lower confidence box..
-
output
predictions
(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 Stitch
in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/detections_stitch@v1",
"reference_image": "$inputs.image",
"predictions": "$steps.my_object_detection_model.predictions",
"overlap_filtering_strategy": "nms",
"iou_threshold": 0.4
}