for imagePath in imagePaths[1]:
# load the image, pre-process it, and store it in the data list
image = cv2.imread(imagePath)
print(imagePath)
print(IMAGE_DIMS[1],IMAGE_DIMS[0])
image = cv2.resize(image,(IMAGE_DIMS[1],IMAGE_DIMS[0]))
image = img_to_array(image)
data.append(image)
今天cv2突然不好用了,一直报错
cv2.error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-nxx381if\opencv\modules\imgproc\src\resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty(
) in function ‘cv::resize’
以前写好的可以运行的也会报错,有大佬知道怎么回事吗
2020-11-12
最新推荐文章于 2022-11-15 16:06:00 发布