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