0

i tried below code to read the multiple images from a folder

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

    Mat frame;
    cap.read(frame);

}

But it's throwing error as,

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
Ramya Selvarani
  • 499
  • 1
  • 9
  • 23

0 Answers0