From bd4bcfd8c184105130e98c2a268ab4e963189e7b Mon Sep 17 00:00:00 2001 From: Sai Subhakar T <36569367+saimj7@users.noreply.github.com> Date: Sun, 23 Aug 2020 13:03:07 +0200 Subject: [PATCH] Update README.md --- README.md | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9b61130..2875621 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ # People-Counting-in-Real-Time -> People Counting in Real-Time using live video stream/IP camera in OpenCV. +People Counting in Real-Time using live video stream/IP camera in OpenCV. -> This repo is a simple improvement/modification to https://www.pyimagesearch.com/2018/08/13/opencv-people-counter/ +> This repo is an improvement/modification to https://www.pyimagesearch.com/2018/08/13/opencv-people-counter/ + +> Refer to added [Features](#features). Also, added support for an IP camera.
@@ -47,7 +49,7 @@ python run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobi ``` > To run inference on an IP camera: - Setup your camera url in 'run.py': -```javascript +``` # the following is an ip camera url example # just enter your camera url and it should work url = 'http://191.138.0.100:8040/video' @@ -68,16 +70,23 @@ The following are some of the added features. Note: You can easily on/off them i - This is pretty useful considering the COVID-19 scenario. -- Note: To setup the sender email, please refer the instructions inside 'mylib/mailer.py' +- Note: To setup the sender email, please refer the instructions inside 'mylib/mailer.py'. Setup receiver email at the start of 'run.py'. -***2. Scheduler & Timer:*** -- Automatic scheduler to start the software. This is extremely useful in a business scenario, for instance, run it only at your desired time (9-5?). -- Stop running after a certain time, e.g., 30 min or 9 hours from now. -```javascript +***2. Scheduler:*** +- Automatic scheduler to start the software. Configure to run at every second, minute, day, or Monday to Friday. +- This is extremely useful in a business scenario, for instance, you can run it only at your desired time (9-5?). +- Variables and memory would be reset == less load on your machine. + +``` ##Runs at every day (9:00 am). You can change it. schedule.every().day.at("9:00").do(run) ``` -```javascript + +***3. Timer:*** +- Configure stopping the software after a certain time, e.g., 30 min or 9 hours from now. +- All you have to do is set your deired time and run the script. + +``` if Timer: # Automatic timer to stop the live stream. Set to 8 hours (28800s). t1 = time.time() @@ -85,7 +94,8 @@ if Timer: if num_seconds > 28800: break ``` -***3. Simple log:*** + +***4. Simple log:*** - Logs all data at end of the day. - Useful for footfall analysis.