Answer the question
In order to leave comments, you need to log in
Why can't I start training the Haar cascade from the OpenCV library?
I am trying to write an algorithm for finding an object in a video stream. To begin with, I decided to take 350 positive and 700 negative examples.
I am using OpenCV version 2.4.9.
I created a .vec file, created a folder for the result.
Then I enter into the console:
opencv_traincascade.exe -data haarcascade -vec samples.vec -bg C:\Minion_search\Bad.dat -numStages 16 -minhitrate 0.999 -maxFalseAlarmRate 0.4 -numPos 280 -numNeg 700 -w 24 -h 24 -mode ALL -precalcValBufSize 1024 -precalcIdxBufSize 1024
But when I run opencv_traincascade.exe I get this error:
Image Reader can not be created from -vec samples.vec and -bg C:\Minion_search\
Bad.dat
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question