In December 2019, the world witnessed an aweful outbreak of coronavirus disease in China. Not a long time later, it has been spread in more than 100 countries. No vaccine is currently available!
One underrated way of minimizing spreading the virus and protecting ourselves from it is to avoid touching our face.
Not touching your face is harder than it sounds. In 2015, a Sydney university observed medical students on video and recorded how many times they touched their faces. Each of the 26 future doctors under observation touched their faces an average 23 times per hour.
Touching your face is at times tied to stress. This explains the excess of face touching during work as shown in this video.
Therefore, this app is developed to monitor your hand movement using any webcam and alert you (with police siren voice) once your hand gets near your face.
Video can be found here.
Video can be found here.
-
Download the installer from here
-
Run the installer and install the app.
-
Go to the installed folder and run corona.exe
-
The app will open where the first frame will be fixed and waiting for you to draw a bounding box around your hand to be tracked. Draw a bounding box and click Enter. To stop the app, press Esc.
-
Clone or download this repository.
-
Make sure python 3.x is installed on your PC. To check if and which version is installed, run the following command:
python -V
If this results an error, this means that python isn’t installed on your PC! please download and install it from the original website
- (optional) it is recommended that you create a python virtual environment and install the necessary libraries in it to prevent versions collisions:
python -m venv corona
where corona is the environment name. Once you’ve created a virtual environment, you may activate it. Here is how to activate the environment on Windows:
corona\Scripts\activate.bat
- Install required libraries from the provided file (requirements.txt):
pip install -r requirements.txt
Make sure you provide the correct path of requirements.txt
- To be able to play the alert sound (police siren), add VLC folder (that contains VLC DLLs) to Windows environment path. If your python is 64-bit, make sure to use VLC 64-bit. Same for 32-bits versions of both python and VLC.
- Run the script:
python corona.py
- The app will open where the first frame will be fixed and waiting for you to draw a bounding box around your hand to be tracked. Draw a bounding box and click Enter. To stop the app, press Esc.