Skip to content

Dynamic Zone

Class: DynamicZonesBlockV1

Source: inference.core.workflows.core_steps.transformations.dynamic_zones.v1.DynamicZonesBlockV1

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@v1to add the block as as step in your workflow.

Properties

Name Type Description Refs
name str Enter a unique identifier for this step..
required_number_of_vertices int Keep simplifying polygon until number of vertices matches this number.
scale_ratio float Expand resulting polygon along imaginary line from centroid to edge by this ratio.

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 Dynamic Zone in version v1.

Input and Output Bindings

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.
    • scale_ratio (float): Expand resulting polygon along imaginary line from centroid to edge by this ratio.
  • output

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,
    "scale_ratio": 1.05
}