我尝试下面的代码来读取文件夹中的多个图像
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