Hi All,
I am trying to make their own cascade classifier.
Here's what I've done:
1)positive file
opencv_createsamples.exe -img sample.png -vec sample.vec -num 1000 -bgcolor 255 -randinv -w 196 -h 106
2)negative file
bg.txt in image PATH. (PATH + name.jpg&png&gif)
3)traincascade
opencv_traincascade -data sample/ -vec sample.vec -bg bg.txt -numPos 900 -numNeg 270 -featureType HAAR -mode ALL
But...Here, the error will occur.
Error code.
===== TRAINING 0-stage =====
OpenCV Error: Assertion failed (_img.rows * _img.cols == vecSize) in CvCascadeIm ageReader::PosReader::get, file C:\builds\master_PackSlave-win32-vc12-shared\opencv\apps\traincascade\imagestorage.cpp, line 152
Nothing no clue.
I do not know what to do.
Please help me.
Sorry...I can't English.(Using Google Translation)
Thanks for reading.