EvilPort2 / Sign-Language

A very simple CNN project.
759 stars 354 forks source link

Error about executing recognize_gestures.py #26

Closed VuBrian22 closed 5 years ago

VuBrian22 commented 5 years ago

When I try to run recognize_gestures.py or fun_util.py. I get this error. I'm assuming I installed some packages via pip incorrectly. I don't know how to fix this. Could anyone please help me, Thank you.

Using TensorFlow backend. [ WARN:0] videoio(MSMF): can't grab frame. Error: -2147483638 [ WARN:1] terminating async callback Traceback (most recent call last): File "recognize_gesture.py", line 140, in recognize() File "recognize_gesture.py", line 110, in recognize if len(contours) > 0: TypeError: object of type 'NoneType' has no len() [ WARN:0] terminating async callback

EvilPort2 commented 5 years ago

This is something I don't know. No idea as to why that is happening

EvilPort2 commented 5 years ago

I have fixed the error. It was OpenCV version problem. I was using the older one. The OpenCV 4.0 compatibility has been added

VuBrian22 commented 5 years ago

I have fixed the error. It was OpenCV version problem. I was using the older one. The OpenCV 4.0 compatibility has been added

Alright, thank you. I will attend to my side. It seems to work fine.