Python

This Python code defines a camera connection and designated zone configuration tool for tracking moving objects within specified areas. The main features of this application include:

  1. Camera and Video Source Setup: The code provides options to connect a live camera feed or load a video file for analysis.
  2. Polygonal Zone Creation: Users can create custom polygonal zones within the camera feed using mouse inputs, enabling specific regions to be monitored. These zones are rendered on the video interface, and multiple polygons can be defined for more complex monitoring setups.
  3. Object Detection and Tracking: With pre-trained YOLO models, the code detects objects (e.g., people, cars) and identifies movement within these predefined zones. Detected objects that enter these zones trigger an alert, and unique objects are counted and saved.
  4. Alerts and Zone Monitoring: Each designated area can trigger visual alerts when an object enters it. Alerts display a customizable warning message and mark the zone in color. Alerts can also save up to three images of the detected event.
  5. Face and Hand Detection: The code integrates MediaPipe for face and hand detection, allowing real-time tracking of hand and face positions within the feed.
  6. Visual Feedback and Labels: Zones and objects are labeled in real time with bounding boxes and text labels, which display the number and types of objects detected in each zone. These elements adjust as objects move, providing continuous feedback.

Recently Updated
Included
  • Lifetime support
  • Future updates
  • Free installation
  • Paid customization
Add code to cart$8.99$13.99
Last Update
Published

This tool is useful for surveillance applications, enabling focused monitoring of movement and objects in specified areas and visual or image-based alerts for detected activity within these zones.