Suryaveer

Results 10 comments of Suryaveer

Thanks @ViktoriiaBaib for suggestions. Create a merge request I will test/review and merge with my code.

This problem is because of OpenCv version, you can now use: contours,hierarchy = cv2.findContours(thresh, cv2.RETR_CCOMP, cv2.CHAIN_APPROX_SIMPLE)

@TechMastering1 follow this issue https://github.com/surya-veer/movement-tracking/issues/4#issuecomment-664018021

`video_capture = cv2.VideoCapture(-1)` to `video_capture = cv2.VideoCapture('dev/video0')`

Add this after line 75: ``` height, width = img.shape[:2] resize = .5 # lets say 50% img = cv2.resize(img, (int(resize*width), int(resize *height))) ``` Hope it will help.

@sagarnibandhe this is obuous, cv2.resize(img, (int(resize*width), int(resize *height)))

Unable to get camera on -1 Go to line 67 video_capture = cv2.VideoCapture(-1) try to change -1 to 0 or 1 it will work for you

Since your camera is not capturing video and returning **None** which is raising an exception in typecast. You need to set the correct camera path to resolve this. **LINUX/MAC:** run...

@Hasnainajmal https://github.com/surya-veer/movement-tracking/issues/4#issuecomment-664018021