This module provides tools for defining geometric zones and automatically filtering detections based on their spatial relationship to these zones. Supports multiple trigger strategies and statistical tracking for computer vision applications.

Classes

  • Zone - Represents a single detection zone with polygon boundary and configurable trigger strategies.
  • Zones - Manages multiple detection zones and automatically updates results with zone information.

Zone

Represents a single detection zone with polygon boundary and configurable trigger strategies. A Zone defines a spatial region for filtering object detections based on their bounding box relationship to the zone polygon. Supports multiple trigger strategies including center point, overlap percentage, and intersection detection.

Zones

Manages multiple detection zones and automatically updates results with zone information. The Zones manager handles a collection of Zone objects and provides batch processing of detections against all zones. Updates detection objects with zone membership information and maintains zone statistics.