当前位置:   article > 正文

解决cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can‘t find starting number 报错问题_error: (-5:bad argument) cap_images: can't find st

error: (-5:bad argument) cap_images: can't find starting number (in the name

环境: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源码(中文是本人标注):

  1. std::string icvExtractPattern(const std::string& filename, unsigned *offset)
  2. {
  3.     size_t len = filename.size();
  4.     CV_Assert(!filename.empty());
  5.     CV_Assert(o
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/539488
推荐阅读
相关标签
  

闽ICP备14008679号