balajisrinivas / face-mask-detection Goto Github PK
View Code? Open in Web Editor NEWDetecting face masks using Python, Keras, OpenCV on real video streams
Detecting face masks using Python, Keras, OpenCV on real video streams
recommend a way or version of TF such that pip can install it and works with the code
In the file "detect_mask_video.py" in lines 16 and 17 you have:
blob = cv2.dnn.blobFromImage(frame, 1.0, (224, 224),
(104.0, 177.0, 123.0))
How did you calculate the mean values for RGB: (104.0, 177.0, 123.0)
? Why are these specific values used?
Should I change these values if I use another dataset?
G:\PavanProjects\Scripts\python.exe C:/Users/SUNNYBUNNY/Downloads/Face-Mask-Detection-master/detect_mask_video.py
Traceback (most recent call last):
File "C:/Users/SUNNYBUNNY/Downloads/Face-Mask-Detection-master/detect_mask_video.py", line 5, in
from imutils.video import VideoStream
File "G:\PavanProjects\lib\site-packages\imutils_init_.py", line 8, in
from .convenience import translate
File "G:\PavanProjects\lib\site-packages\imutils\convenience.py", line 6, in
import cv2
File "C:\Python37\lib\cv2_init_.py", line 96, in
bootstrap()
File "C:\Python37\lib\cv2_init_.py", line 86, in bootstrap
import cv2
ImportError: DLL load failed: The specified module could not be found.
ERROR: Could not find a version that satisfies the requirement tensorflow>=1.15.2 (from -r requirements.txt (line 1)) (from versions: none)
ERROR: No matching distribution found for tensorflow>=1.15.2 (from -r requirements.txt (line 1))
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'c:\users\abhiram nellutla\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip' command.
ValueError: decay is deprecated in the new Keras optimizer, pleasecheck the docstring for valid arguments, or use the legacy optimizer, e.g., tf.keras.optimizers.legacy.Adam.
What if you want to add more than 2 categories other than with mask and without mask during data training?
I want to try using more than 2 categories of types of masks, is that possible? Please help. Thank You
I am using Google Colab. This is the following output I am getting.
[INFO] starting video stream...
AttributeError Traceback (most recent call last)
in ()
89 # to have a maximum width of 400 pixels
90 frame = vs.read()
---> 91 frame = imutils.resize(frame, width=400)
92
93 # detect faces in the frame and determine if they are wearing a
/usr/local/lib/python3.6/dist-packages/imutils/convenience.py in resize(image, width, height, inter)
67 # grab the image size
68 dim = None
---> 69 (h, w) = image.shape[:2]
70
71 # if both the width and height are None, then return the
AttributeError: 'NoneType' object has no attribute 'shape'
Document.1.pdf
Sir please help me.
Traceback (most recent call last):
File "C:\Users\Face-Mask-Detection-master\detect_mask_video.py", line 107, in
label = "Mask" if mask > withoutMask else "No Mask"
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
When I run the line:- python detect_mask_video.py on my MacBook terminal, I got the error below.
Does this code use FaceNet from this paper? Or does it use another model.
can you tell which features you extracted to do face detection
File "/Users/suhasj/Documents/GitHub/Face-Mask-Detection/detect_mask_video.py", line 2, in
from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
ModuleNotFoundError: No module named 'tensorflow'
(base) suhasj@suhass-MacBook-Air Face-Mask-Detection %
How we can change our screen size which pop up when we start program
Hello
Kindly hep on this
C:\Users\madhubala\detection\Face-Mask-Detection-master>python detect_mask_video.py
Traceback (most recent call last):
File "detect_mask_video.py", line 2, in
from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
ModuleNotFoundError: No module named 'tensorflow'
C:\Users\madhubala\detection\Face-Mask-Detection-master>
Is the raspberry pi zero powerful enough for this? besides the camera input, what do you think would have to be changed?
Which algorithm is use in this Code
ERROR: tensorflow 2.5.0 has requirement numpy~=1.19.2, but you'll have numpy 1.18.2 which is incompatible.
Hi, I am Dabeen and I am a student who is currently working on Facial mask Detection project that uses both Single Shot mulitbox detectors (SSD). I would really like to contact you via email for us to dicuss about this with you personal. Please reply as soon as possible. I would like to talk to you via email as it is the best option for me.
Thank you :)
When I run the line:- python detect_mask_video.py on my MacBook terminal, I got the error below.
zsh: illegal hardware instruction python detect_mask_video.py
Having the same issue !!!..
error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\dnn\src\caffe\caffe_io.cpp:1121: error: (-2:Unspecified error) FAILED: fs.is_open(). Can't open "face_detector\ deploy.prototxt" in function 'cv::dnn::ReadProtoFromTextFile'
But even don't know how to rectify it...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.