在opencv

时间:2016-02-11 06:16:54

标签: c++ opencv

我尝试下面的代码来读取文件夹中的多个图像

VideoCapture cap("/home/image%3d.jpg");
while( cap.isOpened() )
{

    Mat frame;
    cap.read(frame);

}

但它正在抛出错误,

Image step is wrong () in cvSetData, file /build/opencv-iepTEA/opencv-2.4.9+dfsg/modules/core/src/array.cpp,
line 928terminate called after throwing an instance of 'cv::Exception'
what():  /build/opencv-iepTEA/opencv- 2.4.9+dfsg/modules/core/src/array.cpp:928: 
error: (-13)  in function cvSetData

0 个答案:

没有答案