There are two files: KivyApp, which uses Kivy and can only detect one person, and Flask app, which uses MoveNet, a multiple detection model that is considered the main app.
git clone https://github.com/A7medAbdien/safeDistacneFlask.gitpython -m venv .env.\.env\Scripts\activatepip install -r .\requirements.txtpython .\app.py
git clone https://github.com/A7medAbdien/safeDistacneFlask.git
python -m venv .env
.\.env\Scripts\activate
pip install -r .\requirements.txt
python .\app.py
If you are not using the default device camera, you may need to change the cameraIndex value in the app.py file. If setting the value to 1 does not work, try increasing the value until the intended camera is found.
In app.py file, line 22
"""
👋👋👋👋
please change me, if the camera did not work
"""
cameraIndex = 0
camera = cv2.VideoCapture(cameraIndex)