Bounding Rectangle¶
Class: BoundingRectBlockV1
Source: inference.core.workflows.core_steps.transformations.bounding_rect.v1.BoundingRectBlockV1
The BoundingRect is a transformer block designed to simplify polygon
to the minimum boundig rectangle.
This block is best suited when Zone needs to be created based on shape of detected object
(i.e. basketball field, road segment, zebra crossing etc.)
Input detections should be filtered beforehand and contain only desired classes of interest.
Resulsts are stored in sv.Detections.data
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/bounding_rect@v1to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
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 Bounding Rectangle in version v1.
- inputs:
Time in Zone,Dynamic Zone,Path Deviation,Detections Transformation,Detections Classes Replacement,Instance Segmentation Model,Detections Filter,Detection Offset,Bounding Rectangle,Perspective Correction,Instance Segmentation Model,Line Counter,Detections Stabilizer,Time in Zone,Detections Combine,SAM 3,Time in Zone,Velocity,Detections Stitch,Detections Consensus,Segment Anything 2 Model,Seg Preview,Dynamic Crop,Path Deviation - outputs:
Polygon Visualization,Roboflow Dataset Upload,Background Color Visualization,Size Measurement,Dynamic Zone,Path Deviation,Detections Transformation,Corner Visualization,Model Monitoring Inference Aggregator,Detections Classes Replacement,Distance Measurement,Trace Visualization,Mask Visualization,Line Counter,Bounding Box Visualization,Model Comparison Visualization,Byte Tracker,Pixelate Visualization,Time in Zone,Florence-2 Model,Detections Stitch,Crop Visualization,Triangle Visualization,Segment Anything 2 Model,Ellipse Visualization,Detections Merge,Icon Visualization,Byte Tracker,Color Visualization,Roboflow Dataset Upload,Path Deviation,Label Visualization,Time in Zone,Roboflow Custom Metadata,Florence-2 Model,Blur Visualization,Dot Visualization,Overlap Filter,Detections Filter,Circle Visualization,Detection Offset,Perspective Correction,Bounding Rectangle,Line Counter,Detections Combine,Detections Stabilizer,Time in Zone,Velocity,Detections Consensus,PTZ Tracking (ONVIF).md),Byte Tracker,Halo Visualization,Stability AI Inpainting,Dynamic Crop
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Bounding Rectangle in version v1 has.
Bindings
-
input
predictions(instance_segmentation_prediction): .
-
output
detections_with_rect(instance_segmentation_prediction): Prediction with detected bounding boxes and segmentation masks in form of sv.Detections(...) object.
Example JSON definition of step Bounding Rectangle in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/bounding_rect@v1",
"predictions": "$segmentation.predictions"
}