A Python script that detects human upper body in real-time.
Using OpenCV's upperbody Haar Cascade for positive human upper body detection from a video source or live webcam feed. Whenever a positive is detected, it will highlight the detected positives with a green rectangular box, human objects will be highlighted with multiple boxes when multiple positives detected.
- Python
- OpenCV-Python - Python API for OpenCV for all things computer vision
- imutils - A module for basic image processing
Pexels Videos - Black And White Footage Of Train Station
Install all dependencies before moving on.
To run the script just punch in
python real_time_upper_body_detection.py
Make necessary changes to the code to suit your needs.
This is an open source project, you may replicate, modify or use the code as an extension to your own project.
As for the video, you may copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.