The problem is as the title says.
This is an error that appears when performing image processing using OpenCV on Python. For the Open CV library, it doesn't cause an error even if it doesn't pass, so at first glance it looks like there is no problem with the program. However, there is a problem that the image is not actually loaded.
cv2.py
import cv2
img = cv2.imread('xxxxx')
if img:
print('Image is read.')
else:
print('Image is not read.')
Image is not read.
When it is read as above, it is possible to check whether it is read by returning a sentence indicating that it has been read.
Recommended Posts