error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
时间: 2023-10-10 17:07:56 浏览: 239
这个错误是OpenCV中的一个Assertion错误,错误信息是"Assertion failed (!empty())"。这个错误通常出现在使用cv2.imread或者cv2.resize读取或处理图片时。出现这个错误的原因可能有两种:一种是路径存在,但文件不是正常的.jpg或.png等图片格式;另一种是文件路径不存在。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [JAVA OpenCV Error: Assertion failed (!empty()) in cv::CascadeClassifier::detectMultiScale….](https://download.csdn.net/download/weixin_38616120/14042368)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [error: (-215:Assertion failed) !ssize.empty() in function ‘cv::resize‘分析及解决方案](https://blog.csdn.net/P13643822101/article/details/127793783)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文