Ask Your Question
0

I am creating my own HAAR cascade i took 15 positive and 128 negative samples, how can i assign numPos and numNeg and num values

asked 2019-05-13 05:34:37 -0600

Sri Krishna gravatar image

updated 2019-05-13 05:48:15 -0600

I am creating my own HAAR cascade i took 15 positive and 128 negative samples, how can i assign numPos and numNeg and num values

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-05-13 15:47:33 -0600

According to the documentation, the command is

opencv_traincascade -data <cascade_dir_name> -vec <vec_file_name> -bg <background_file_name> -numPos <number_of_positive_samples> -numNeg <number_of_negative_samples> -numStages <number_of_stages> -w <sampleWidth> -h <sampleHeight>

So for your case it can be something like this:

opencv_traincascade -data data -vec positives.vec -bg background.txt -numPos 15 -numNeg 128 -numStages 30 -w 100 -h 100
edit flag offensive delete link more

Comments

tq for your response

Sri Krishna gravatar imageSri Krishna ( 2019-05-14 01:27:44 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-05-13 05:34:37 -0600

Seen: 137 times

Last updated: May 13 '19