I´m triying to create a vector using this opencv_createsamples -info info/info.lst -num 1330 -w 20 -h 20 -vec positives.vec in cmd.
I have 1350 pictures in info and info.lst has this structure: picturename.jpg objects x1 y1 x2 y2 (x and y are the first and the last point of the rectangle label).
But I get this problem: OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in cv::Mat::Mat, file C:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\matrix.cpp, line 538
Y use -show and i think that the problem is that mi pictures has 600x480 pixels and when any label has any point of the rectangle higher than 350, i get the same problem mensaje.
Anyone know any solution in order to keep my labels?
Sorry for my english. Thanks for your time.