Problem about object in opencv

asked 2015-01-22 04:42:21 -0500

macbookpro gravatar image

updated 2015-02-10 07:43:42 -0500

Hello everybody.

I am doing object detection project in open cv. Using opencv_traincascade.exe, i am trying to run this by giving argument for this in command line.But this is giving me runtime error.

here is the command (oprating system windows 7)

opencv_traincascade.exe -data C:\Users\Chan\project\train -vec C:\Users\Chan\project\img_p\abc.vec -bg C:\Users\Chan\project\img_n\bg.txt -numPos 5 -numNeg 3 -numStages 20 -precalcValBufSize 256 -precalcIdxBufSize 256 -stageType BOOST -featureType HAAR -w 24 -h 24 -bt DAB -minHitRate .99 -maxFalseAlarmRate 5 -weightTrimRate 0.95 -maxDepth 1 -maxWeakCount 1 -mode BASIC
edit retag flag offensive close merge delete

Comments

4

What is your question? What is the error message?

boaz001 gravatar imageboaz001 ( 2015-01-22 04:51:02 -0500 )edit
2

-maxFalseAlarmRate 5 are the reason for all your errors. The value should be between 1 and 0. Probably a typo and you meant 0.5 as standard value. Also 5 positives and 3 negatives will get you nowhere. Please use more samples.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-02-10 07:45:28 -0500 )edit