arionulibasa / People-Counting-in-Real-Time

People Counting in Real-Time with an IP camera.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Computer Vision Backend


Running Inference

Install the dependencies

First up, install all the required Python dependencies by running: pip install -r requirements.txt

NOTE: Supported Python version is 3.10.11 (there can always be version conflicts between the dependencies, OS, hardware etc.).

Test video file

To run inference on a test video file, head into the root directory and run the command:

python people_counter.py --prototxt detector/MobileNetSSD_deploy.prototxt --model detector/MobileNetSSD_deploy.caffemodel --input utils/data/tests/test_1.mp4

IP camera

To run on an IP camera, setup your camera url in utils/config.json, e.g., "url": 'http://191.138.0.100:8040/video'.

Then run the command:

python people_counter.py --prototxt detector/MobileNetSSD_deploy.prototxt --model detector/MobileNetSSD_deploy.caffemodel

About

People Counting in Real-Time with an IP camera.

License:MIT License


Languages

Language:Python 100.0%