First time here? Check out the FAQ!
answered 2018-08-16 02:27:11 -0600
This error is generated because your document file is corrupt or bad.
Try to do this, it will work fine:
try: #Your Code here except cv2.error as e: pass