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