cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'
文章來源:http://www.zghlxwxcb.cn/news/detail-505660.html
(1)路徑寫錯了,多了斜杠
(2)img = cv2.imread(“…/data/lena.jpg”)文章來源地址http://www.zghlxwxcb.cn/news/detail-505660.html
路徑中不能有中文
路徑不對也會報錯
到了這里,關于bug:cv2.error: OpenCV(4.7.0)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!