Getting Error "Image reader can not be created from -vec vector.vec and -bg bkg.dat"
I was trying to train cascade using opencv_traincascade binary, I am using linux 3.7, I threw the below command,
opencv_traincascade -data imgs/cascade/ -numPos 200 -numNeg 8 -numStages 10 -featureType LBP -maxFalseAlarmRate 0.9 -w 640 -h 480 -vec imgs/vector.vec -bg negatve.dat
but it is giving me error "Image reader can not be created from -vec imgs/vector.vec and -bg negatve.dat."
what should be width and height while training cascade.
Ok I will try 64x48, just now i am working with 24x24, 640x480 was some random number My Assumption that why we are taking small size is, that we can recognize the image even at that small size so why to take large size image when they will fill ur ram.
I solved the error "Image reader can not be created from -vec vector.vec and -bg bkg.dat" it was because of silly typo i spelled the negative.dat as negatve.dat" sorry for posting silly error but that error gave me no hint that file does not exist or some ting like that
Btw, if your problem is solved, please give a shout, I will add my comments as an answer and then you can accept them.
Don't mind :) I know that happens to the most of people who have problems with the traincascade algorithm.