遇到:“!运行图像分类异步 Python 示例时函数 'Cv::resize'“ 中的 ssize.empty()
内容类型: 错误讯息 | 文章 ID: 000093371 | 上次审核日期: 2023 年 11 月 16 日
cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\imagproc\src\resize.cpp:4052: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
import cv2
image = cv2.imread("<image_file>")
print(image.shape)