Giter Club home page Giter Club logo

face-mask-detection's People

Contributors

balajisrinivas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

face-mask-detection's Issues

Error: OpenCV(4.2.0)

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...

TRACEBACK ERROR

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()

Running in a raspberry zero

Is the raspberry pi zero powerful enough for this? besides the camera input, what do you think would have to be changed?

URGENT: HELP WITH PROJECT

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 :)

error in installing module

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 %

zsh: illegal hardware instruction

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

Unable to execute the code, after installing requirements, please help

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.

How did you calculate the mean values for creating blob?

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?

Error while final execution

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>

Attribute Error

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'

ValueError

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.

Error while installing dependencies

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.

numpy error

ERROR: tensorflow 2.5.0 has requirement numpy~=1.19.2, but you'll have numpy 1.18.2 which is incompatible.

Memory Error

I tried it on windows 7 .
but I got this error ( Memory Error: unable to allocate 2.15 GiB for an array with shape (3833,224,224,3) and data type float32)
Thanks
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.