Ask Your Question

traincascade.exe can’t work

asked 2015-03-07 23:28:37 -0500

Sheng Liu gravatar image

updated 2015-03-08 19:08:56 -0500

image.jpg I take a video file and extract the frames as images.The positive images are about 2444 images size of 120x120.Some of images in the positive set are similar. The format of all images is PNG.I have a negative set about 3300 images.When I enter the command “opencv_traincascade -data dt -vec train.vec -bg bg.txt -numPos 1500 -numNeg 3000 -w 120 -h 120”, opencv_traincascade.exe can't work immediately. Is there a bug in the traincascade of Opencv 2411? Could you give me some advice?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2015-03-08 10:03:53 -0500

vohungvi gravatar image

Is there any error message? If have comment it to here

edit flag offensive delete link more


Tanks for your help.I have uploaded the error image.

Sheng Liu gravatar imageSheng Liu ( 2015-03-08 19:20:52 -0500 )edit

I just increase the command "-featureType LBP" .Then the program can run well.I don't know why the default mode HAAR couldn't work.And how to increase the training speed?Thanks in advance.

Sheng Liu gravatar imageSheng Liu ( 2015-03-08 23:48:11 -0500 )edit

Question Tools

1 follower


Asked: 2015-03-07 23:28:37 -0500

Seen: 117 times

Last updated: Mar 08 '15