draw.zones

Description

Draws the 2D boundaries of a zone.

class Node(config=None, **kwargs)[source]

Draws the boundaries of each specified zone onto the image.

The draw.zones node uses the zones output from the dabble.zone_count node to draw a bounding box that represents the zone boundaries onto the image.

Inputs

img (numpy.ndarray): A NumPy array of shape \((height, width, channels)\) containing the image data in BGR format.

zones (List[List[Tuple[float, ...]]]): A nested list of \(Z\) zones. Each zone is described by \(3\) or more points which contains the \((x, y)\) coordinates forming the boundary of a zone. The order corresponds to zone_count.

Outputs

none: No outputs produced.

Configs

None.