Emojinator icon indicating copy to clipboard operation
Emojinator copied to clipboard

CreateGest.py and get_hand_images.py both are not working

Open omkarsabane opened this issue 5 years ago • 4 comments

Hi, CreateGest.py and get_hand_images.py both are not working for me. even after videocapture(0) it is not able to start camera. I tried playing with while loop then it started camera, but as i am new to python and ML both i was not able to successfully execute it.

omkarsabane avatar May 09 '19 12:05 omkarsabane

Same issue here: script does not start webcam. I'm using macOS Catalina. Do I have to start the webcam separately?

mthomp89 avatar Jan 13 '20 23:01 mthomp89

UPDATE

I had to install iTerm2 in order to gain access to the camera from the terminal.

mthomp89 avatar Jan 16 '20 00:01 mthomp89

It is just capturing images not playing the video.

sohanatarafder99 avatar Feb 04 '20 13:02 sohanatarafder99

take a look at OpenCV docs, cv2.findContours has changed:

https://docs.opencv.org/4.2.0/d3/dc0/group__imgproc__shape.html#gadf1ad6a0b82947fa1fe3c3d497f260e0

in the code, it should be like this:

contours = cv2.findContours(thresh.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)[0]

mhsattarian avatar Feb 07 '20 19:02 mhsattarian