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