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:
Dynamic Zone,Time in Zone,Time in Zone,Detections Stitch,Detections Filter,Line Counter,Velocity,Detection Offset,Detections Classes Replacement,Detections Transformation,Instance Segmentation Model,SAM 3,Path Deviation,Seg Preview,Time in Zone,Dynamic Crop,Detections Consensus,SAM 3,Detections Stabilizer,Instance Segmentation Model,Perspective Correction,SAM 3,Path Deviation,Detections Combine,Bounding Rectangle,Segment Anything 2 Model - outputs:
Label Visualization,Time in Zone,Line Counter,Blur Visualization,Background Color Visualization,Bounding Box Visualization,Detections Filter,Polygon Visualization,PTZ Tracking (ONVIF).md),Detection Offset,Pixelate Visualization,Detections Classes Replacement,Icon Visualization,Detections Transformation,Triangle Visualization,Roboflow Dataset Upload,Model Comparison Visualization,Byte Tracker,Overlap Filter,Distance Measurement,Corner Visualization,Florence-2 Model,Color Visualization,Path Deviation,Detections Combine,Halo Visualization,Size Measurement,Dynamic Zone,Circle Visualization,Time in Zone,Dot Visualization,Detections Stitch,Line Counter,Ellipse Visualization,Velocity,Model Monitoring Inference Aggregator,Byte Tracker,Path Deviation,Time in Zone,Roboflow Dataset Upload,Stability AI Inpainting,Dynamic Crop,Detections Stabilizer,Detections Consensus,Crop Visualization,Detections Merge,Perspective Correction,Mask Visualization,Roboflow Custom Metadata,Florence-2 Model,Trace Visualization,Byte Tracker,Bounding Rectangle,Segment Anything 2 Model
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"
}