赞
踩
环境:linux
在用cv::VideoCapture cap("video/test.avi")读取视频时,报错:
OpenCV(4.5.1) opencv-4.5.1/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): video/test.avi in function 'icvExtractPattern'
啥情况?
看下icvExtractPattern源码(中文是本人标注):
- std::string icvExtractPattern(const std::string& filename, unsigned *offset)
- {
- size_t len = filename.size();
- CV_Assert(!filename.empty());
- CV_Assert(o
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。