gnebehay / CMT

http://www.gnebehay.com/cmt
Other
241 stars 112 forks source link

Adds check to fix startup on some windows machines #15

Closed krypt-n closed 5 years ago

krypt-n commented 9 years ago

On some windows machines, cmt fails to start because of a failed opencv assertion (img.height > 0 && img.width > 0 or something like that). I think it is caused by cap.read reading invalid images in the first few frames after camera initialisation.

This PR adds a is not None check to the preview to prevent cmt passing invalid images to opencv.