balajisrinivas / Face-Mask-Detection

Detecting face masks using Python, Keras, OpenCV on real video streams
481 stars 683 forks source link

Attribute Error #4

Open deepak0922 opened 3 years ago

deepak0922 commented 3 years ago

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'
rimsham66 commented 3 years ago

Were you able to resolve this error? because i have same error

Ritvik-Sapra commented 3 years ago

I think you changed something in the code. Just copy paste the original code again, and it should be fine.

guilombardi91 commented 2 years ago

Same error, original files

priyanka31-12 commented 2 years ago

I also got the same error, can you please tell me if you have resolved it?

priyanka31-12 commented 2 years ago

I think you changed something in the code. Just copy paste the original code again, and it should be fine.

I tried this but still not working