1

I have a problem with opencv_createsamples operation. I use the command to prepare files:

opencv_createsamples.exe -info D:\Almanac\haar\generating\data\Good.dat 
-vec samples.vec -num 770 -w 80 -h 114

and receive this error:

OpenCV(3.4.6) 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\3_4_winpack-build-win64-vc15\opencv\modules\core\src\matrix.cpp,
   line 466

My info file looks like this

Good\1.jpg 1 578 559 658 673
Good\2.jpg 1 578 697 658 811

I've tried to change some properties (added number of good samples, changed parameters -w -h from (-w 7 -h 10) to state above), but it didn't worked for me

I use openCV version 3.4.6.

I really hope for your help

jmsinusa
  • 1,584
  • 1
  • 13
  • 21

0 Answers0