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.
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.