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