suggested error handling
blafasel42 opened this issue · 0 comments
blafasel42 commented
hi, after there a some issues related to images not loading, i suggest to add some error handling after:
I would add after image = cv2.imread(image_path)
:
if image is None:
raise Exception('Image could not be read', image_path)