I'm trying to train my own cascade, but get the following error:
Unspecified error (No element name has been given) in cv::operator
<<, file C:\builds\2_4_PackSlave-win64-vc11-shared\opencv\modules\core\include\
opencv2/core/operations.hpp, line 2910
I made these steps:
- I cut 20 photos of the object so that they remained only the desired object
- Resize to 30x18
- Make objectSamples.dat file like this :
object(1).jpg 1 0 0 30 16
object(10).jpg 1 0 0 30 16
object(11).jpg 1 0 0 30 16
And negatives.dat like :
negatives\1.jpeg
negatives\10.jpg
negatives\11.jpg
size of pic ~ 500x500
4.Make vec file: opencv_createsamples -info objectSamples.dat -vec objectSamples.vec -w 30 -h 16 -num 20
5.Show samples ( my pictures are shown entirely) : opencv_createsamples -vec objectSamples.vec -w 30 -h 16
6.Try to train : opencv_traincascade -data Cascade -vec objectSamples.vec -bg negatives.dat -numPos 10 -numNeg 10 -numStages 2 -featureType HAAR -w 30 -h 16
But get an error:
What am I doing wrong?
I read these articles and the answer, but I didn't understand, in what a problem: