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