Ask Your Question
0

Error while opencv_traincascade

asked 2018-07-24 00:05:32 -0600

akuma308 gravatar image

updated 2018-07-24 03:35:53 -0600

When i am creating vec file with opencv_createsamples using command opencv_createsamples -info info.dat -w 20 -h 20 -vec postives1.vec This message is coming "info.dat(685) : parse errorDone. Created 684 samples" . I do belive that there is a error in one file. But how to debug that?

Secondly when i am using this file for opencv_traincascade , This error is coming "Cascade classifier can't be trained. Check the used training parameters.

edit retag flag offensive close merge delete

Comments

please, no useless screenshots of text here. (i removed yours)

edit your QUESTION again, and add a TEXT version of your console output here.

it can't parse line 685 of your info.dat. which is, exactly ?

berak gravatar imageberak ( 2018-07-24 00:13:24 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-07-24 04:09:01 -0600

info.dat(685) : parse errorDone. Created 684 samples --> this message is not an error. Basically it keeps running through the data file until it doesnt find a new entry. The output is simply badly chosen, but states that you are at the end of your file and that 684 samples are collected.

Without more info on your train cascade parameters and command, we cannot help you any further.

edit flag offensive delete link more

Comments

My command for training is " opencv_traincascade -data data/ -vec pos/postives.vec -bg neg/info.dat -numPos 3 -numNeg 5 -numStages 5 -w 20 -h 20" .

akuma308 gravatar imageakuma308 ( 2018-07-24 05:04:17 -0600 )edit

Is there any restrictions in parameter's value ??

akuma308 gravatar imageakuma308 ( 2018-07-24 05:46:18 -0600 )edit

why is -numPos 3 -numNeg 5 if you have 684 samples? I would think that -numPos is at least 85% of that amount and -numNeg a multitude of that.

StevenPuttemans gravatar imageStevenPuttemans ( 2018-07-24 09:03:56 -0600 )edit

Thanks for that. Now the training got started but ended with error "Train dataset for temp stage can not be filled. Branch training terminated." .

My command for training goes by: opencv_traincascade -data data/ -vec pos/postives.vec -bg neg/info.dat -numPos 550 -numNeg 700 -numStages 15 -w 20 -h 20 -maxFalseAlarmRate 0.7. It is stopping at 8th stage, but when i am giving it for 7 stages, it is running fine? Can you possibily tell me what is the error?

akuma308 gravatar imageakuma308 ( 2018-07-24 14:01:37 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-07-24 00:05:32 -0600

Seen: 423 times

Last updated: Jul 24 '18