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 surplus detections, NMM merges them.. | ✅ |
iou_threshold |
float |
Parameter of overlap filtering strategy. If box intersection over union 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:
Stitch Images
,Pixelate Visualization
,Path Deviation
,Multi-Label Classification Model
,LMM For Classification
,Instance Segmentation Model
,Blur Visualization
,Single-Label Classification Model
,Mask Visualization
,Object Detection Model
,OCR Model
,SIFT
,Line Counter
,Detections Filter
,YOLO-World Model
,Model Monitoring Inference Aggregator
,Polygon Visualization
,Halo Visualization
,VLM as Detector
,Grid Visualization
,Google Vision OCR
,Model Comparison Visualization
,Email Notification
,Camera Focus
,CogVLM
,Image Threshold
,Byte Tracker
,Keypoint Visualization
,Detections Classes Replacement
,Template Matching
,Image Preprocessing
,Detection Offset
,Roboflow Dataset Upload
,Slack Notification
,Stitch OCR Detections
,Identify Changes
,Relative Static Crop
,Background Color Visualization
,Bounding Box Visualization
,Ellipse Visualization
,Image Contours
,Label Visualization
,Classification Label Visualization
,Line Counter Visualization
,Byte Tracker
,LMM
,Stability AI Inpainting
,Reference Path Visualization
,VLM as Detector
,Dynamic Crop
,Byte Tracker
,Triangle Visualization
,Bounding Rectangle
,Absolute Static Crop
,Object Detection Model
,Time in Zone
,Detections Stitch
,Florence-2 Model
,SIFT Comparison
,Keypoint Detection Model
,Corner Visualization
,Perspective Correction
,Local File Sink
,Polygon Zone Visualization
,VLM as Classifier
,Image Slicer
,Trace Visualization
,Detections Consensus
,Webhook Sink
,OpenAI
,Twilio SMS Notification
,Roboflow Custom Metadata
,Crop Visualization
,Instance Segmentation Model
,Roboflow Dataset Upload
,Clip Comparison
,Anthropic Claude
,Image Blur
,Circle Visualization
,Image Convert Grayscale
,Dot Visualization
,Google Gemini
,Segment Anything 2 Model
,Identify Outliers
,Time in Zone
,Florence-2 Model
,Detections Stabilizer
,Path Deviation
,OpenAI
,Color Visualization
,CSV Formatter
,Llama 3.2 Vision
,Detections Transformation
- outputs:
Time in Zone
,Florence-2 Model
,Path Deviation
,Pixelate Visualization
,Detections Stitch
,Line Counter
,Corner Visualization
,Blur Visualization
,Mask Visualization
,Perspective Correction
,Line Counter
,Detections Filter
,Model Monitoring Inference Aggregator
,Polygon Visualization
,Halo Visualization
,Trace Visualization
,Model Comparison Visualization
,Size Measurement
,Detections Consensus
,Byte Tracker
,Roboflow Custom Metadata
,Detections Classes Replacement
,Crop Visualization
,Detection Offset
,Roboflow Dataset Upload
,Roboflow Dataset Upload
,Stitch OCR Detections
,Dynamic Zone
,Dot Visualization
,Circle Visualization
,Background Color Visualization
,Segment Anything 2 Model
,Bounding Box Visualization
,Ellipse Visualization
,Label Visualization
,Byte Tracker
,Time in Zone
,Florence-2 Model
,Stability AI Inpainting
,Detections Stabilizer
,Path Deviation
,Dynamic Crop
,Byte Tracker
,Triangle Visualization
,Color Visualization
,Bounding Rectangle
,Detections Transformation
,Distance Measurement
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
): Image that was origin to take crops that yielded predictions..predictions
(Union[instance_segmentation_prediction
,object_detection_prediction
]): The output of a detection model describing the bounding boxes to be merged..overlap_filtering_strategy
(string
): Which strategy to employ when filtering overlapping boxes. None does nothing, NMS discards surplus detections, NMM merges them..iou_threshold
(float_zero_to_one
): Parameter of overlap filtering strategy. If box intersection over union 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
}