1.accuracy
2.speed detection
3.multipe face detection at a time
Use GPU for more --speed This project files contains:(//Testing//)
- sample testing only to view live (no dependent modules ---file=detection.py run it "python detection.py")
- Full deployment run it "python app.py"
Face Mask Detection
python version 3.7.7
-
step1:"conda create -n <env_name> python=3.7"
-
step2:"conda activate <env_name>"
-
step3:"pip install numpy"
-
step4:"pip install flask"
-
step5:"pip install opencv-python"
-
step6:"pip install --upgrade tensorflow"
or
-
step1:"conda activate <env_name>" navigate to working dir (requirements.txt)
-
step2:"pip install --upgrade requirements.txt"
Testing:(/Testing/)
Full deployment (server) :
If any problem with this application try with detection.py as shown in below of this (sample testing)
please close other windows expect Browser and anaconda prompt to taste the application.
- 1.open Anaconda powershell prompt.
- 2.Navigate to Testing dir.
- 3.Type "python app.py".
- 4.Then open "http://localhost:5000/"
- 5.If any buffering while starting... hit the enter button on anaconda powershell prompt.
- 6.The below file works for only webcam which is inbuilt of system.(if want to change the camera try to open the camera.py with Editor and change the "cv2.VideoCapture(1)" at 21th line.
open a console of anaconda power shell prompt.
-
1.The below file works for only webcam which is inbuilt of system.(if want to change the camera try to open the detection.py with Editor and change the "cv2.VideoCapture(1)" at 19th line.
-
2.Run the detection file with command (python detection.py).
-
3.The above file has no inter dependencies .(only with env) .
-
4.If any problem with mobules like numpy....try to install with pip commands("pip uninstall numpy"---> "pip install numpy").