Emojinator
Emojinator copied to clipboard
CreateGest.py and get_hand_images.py both are not working
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.
Same issue here: script does not start webcam. I'm using macOS Catalina. Do I have to start the webcam separately?
UPDATE
I had to install iTerm2 in order to gain access to the camera from the terminal.
It is just capturing images not playing the video.
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]