Encountered: “! ssize.empty() in Function ‘Cv::resize’” When Running Image Classification Async Python Sample
Content Type: Error Messages | Article ID: 000093371 | Last Reviewed: 11/16/2023
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)