Article ID: 000093371 Content Type: Error Messages Last Reviewed: 11/16/2023

Encountered: “! ssize.empty() in Function ‘Cv::resize’” When Running Image Classification Async Python Sample

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Verify the image properties before running the Image Classification Async Python Sample.

Description
  1. Ran the Image Classification Async Python Sample with an image.
  2. Encountered the following error:

    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'

Resolution

Related Products

This article applies to 1 products