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.).
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
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