OpenCV(4.7.0) error: (-215:Assertion failed)number < max_number in function ‘icvExtractPattern’ 解決方法
問題:
博主在用 cv.VideoCapture()的時候(注:用的是opencv-python庫),發(fā)現(xiàn)出現(xiàn)下面的問題。
[ERROR:0@0.012] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
已有的出現(xiàn)問題的現(xiàn)象以及解決方法
1.降低opencv-python的庫版本 這個有點麻煩,而且你在卸載然后安裝會出現(xiàn)依賴庫缺失的現(xiàn)象。
2.更改fourcc 變?yōu)?1 這個是
運行cv2.VideoWriter()出現(xiàn)的問題文章來源:http://www.zghlxwxcb.cn/news/detail-634277.html
out = cv2.VideoWriter("output.avi", fourcc, FPS, SCREEN_SIZE)
另類出現(xiàn)問題的解決方法
查看你的讀取路徑是否正確! 文件讀取路徑不對也會出現(xiàn)這個問題文章來源地址http://www.zghlxwxcb.cn/news/detail-634277.html
到了這里,關(guān)于OpenCV(4.7.0) error: (-215:Assertion failed)number < max_number in function ‘icvExtractPattern‘解決方法的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!