bernard357 / no-picture-camera

Raspberry Pi with camera and OpenCV, a better solution than CCTV
Apache License 2.0
8 stars 9 forks source link

TypeError line 102 #7

Closed BiohazardShell closed 7 years ago

BiohazardShell commented 7 years ago

Hi , There's a TypeError at line 102 in smart-video-counter.py. One of the parameters is a float while the function wants a int. Seems like the function as been updated. Running system:

BiohazardShell commented 7 years ago

I acutally correct the TypeError by replacing flow = cv2.calcOpticalFlowFarneback(prev, nextim, 0.5, 1, 15, 3, 5, 1.2, 0) by flow = cv2.calcOpticalFlowFarneback(prev, nextim, None, 0.5, 1, 3, 15, 3, 5, 1)

bernard357 commented 7 years ago

Thanks Alexis for the issue and for the solution. This has been integrated in the code and pushed back to GitHub.