Skip to content

Dynamic ROI

Overview

The Dynamic ROI node filters input polygons by checking if they fall within a region of interest (ROI) that is supplied as an input at runtime. Unlike the static Region of Interest node, where the ROI is configured once.

Use Dynamic ROI when:

  • The region of interest moves or changes shape at runtime (e.g. a tracked object defines the boundary).
  • You want to separate detected objects into those within a specific zone and those outside it, and the zone is not fixed.

💡 Tip

For a fixed region that does not change, use the Region of Interest node instead. It provides a visual editor for drawing the ROI directly on a reference image.

Inputs

NameTypeDescription
polygonslist[polygon]The list of detected polygons to be classified.
roipolygonThe polygon defining the region of interest, supplied at runtime in the flow.

Outputs

NameTypeDescription
insidelist[polygon]Polygons that are within the ROI.
outsidelist[polygon]Polygons that are outside the ROI.

Parameters

ParameterDefaultValid valuesTunable
Check methodcentercenter

Check method

The rule used to determine if a polygon is "inside" the ROI. The node checks if the geometric center of each input polygon falls within the ROI boundary. Currently center is the only supported method.

Example

Filtering detections inside a tracked zone

A camera monitors a workshop floor. A separate detection model outputs a polygon representing a restricted area that shifts as equipment is moved. The Dynamic ROI node receives that polygon as its roi input and classifies detected people into those inside the restricted zone and those outside it.

Configuration:

  • Check method: center

Result: People whose polygon falls within the restricted-area are sent to the inside output for alert processing. All others appear on the outside output.

Reference: