HT.
ID
EN
/Motion Detector Human
SystemPython

Motion Detector Human

A computer vision utility using Python, OpenCV, and a webcam to detect visitor presence at exhibition booths and trigger welcome animations via WebSockets.

Motion Detector - Camera Tracking Feed
Overview

Motion Detector Human is an event automation experiment. It uses a Python script running OpenCV on a local machine (connected to a webcam) to track movements in front of a digital display. The script monitors entry/exit zones and estimates distance to identify when a visitor approaches the screen. Once a proximity threshold is crossed, it broadcasts a command over local WebSockets to the web display app, triggering active greeting animations and starting interactive video sequences automatically.

Problem

Exhibition screens showing static loops or standard videos fail to grab the attention of passersby, resulting in low booth engagement.

Solution

An intelligent camera-triggered display that remains in standby mode until a visitor approaches, instantly greeting them with dynamic, responsive visual changes that prompt interaction.

Highlights
  • Real-time human proximity detection using OpenCV and standard USB webcam
  • Local WebSocket communication to bridge Python computer vision and React frontend
  • Configurable active detection zones to filter out background aisle traffic
  • Adaptive background subtraction to run stably under changing event lighting
  • Standby vs welcome active loop trigger mechanism
Features
Live camera feed view with bounding box overlays
Sensitivity, detection zone, and distance threshold configuration controls
Automatic background calibration baseline reset
Proximity status logging for analytics tracking
WebSocket client broadcast server
Tech Stack
PythonOpenCVWebSocketNode.js