is not guaranteed to return a valid frame.

ret is either True or False depending on whether a frame was read successfully. You should check this value before attempting to further process the frame — e.g. by adding:

if not ret:

The path in the error message is the path to the source code on the machine that was used to build OpenCV, so isn’t necessarily the a real path on your machine. That is nothing to worry about.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top