Dynamic Zone¶
Version v1
¶
The DynamicZoneBlock
is a transformer block designed to simplify polygon
so it's geometrically convex and then reduce number of vertices to requested amount.
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 and contain only desired classes of interest.
Type identifier¶
Use the following identifier in step "type"
field: roboflow_core/dynamic_zone@v1
to add the block as
as step in your workflow.
Properties¶
Name | Type | Description | Refs |
---|---|---|---|
name |
str |
The unique name of this step.. | ❌ |
required_number_of_vertices |
int |
Keep simplifying polygon until number of vertices matches this number. | ✅ |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow
runtime. See Bindings for more info.
Available Connections¶
Check what blocks you can connect to Dynamic Zone
in version v1
.
- inputs:
Time in zone
,Detections Classes Replacement
,Detections Filter
,Path deviation
,Detections Stitch
,Time in zone
,Path deviation
,Segment Anything 2 Model
,Instance Segmentation Model
,Detections Transformation
,Bounding Rectangle
,Perspective Correction
,Detection Offset
- outputs:
Time in zone
,Path deviation
,VLM as Detector
,Time in zone
,Path deviation
,Line Counter Visualization
,Perspective Correction
,Line Counter
,Line Counter
,Polygon Zone Visualization
,VLM as Classifier
The available connections depend on its binding kinds. Check what binding kinds
Dynamic Zone
in version v1
has.
Bindings
-
input
predictions
(instance_segmentation_prediction
): .required_number_of_vertices
(integer
): Keep simplifying polygon until number of vertices matches this number.
-
output
zones
(list_of_values
): List of values of any type.
Example JSON definition of step Dynamic Zone
in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/dynamic_zone@v1",
"predictions": "$segmentation.predictions",
"required_number_of_vertices": 4
}