Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

traincascade: object detection size.

I have trained a cascade using LBP to detect certain object. I have trained the cascade using 400 positive images of objects having same size (100*40).

To train cascade, I used following command : opencv_traincascade -data data -vec object.vec -bg bg.txt -numPos 400 -numNeg 500 -numStages 14 -w 50 -h 20 -featureType LBP -maxFalseAlarmRate 0.4 -minHitRate 0.99 -precalcValBufSize 2048 -precalcIdxBufSize 2048

Now when I use this cascade on test images, will it detect objects only if they are of the size for which they are trained for or they can detect bigger objects too ? I tried using images (500500) with object being more than (10040) and it cannot detect objects in them.

traincascade: object detection size.

I have trained a cascade using LBP to detect certain object. I have trained the cascade using 400 positive images of objects having same size (100*40). (100 X 40).

To train cascade, I used following command : opencv_traincascade -data data -vec object.vec -bg bg.txt -numPos 400 -numNeg 500 -numStages 14 -w 50 -h 20 -featureType LBP -maxFalseAlarmRate 0.4 -minHitRate 0.99 -precalcValBufSize 2048 -precalcIdxBufSize 2048

Now when I use this cascade on test images, will it detect objects only if they are of the size for which they are trained for or they can detect bigger objects too ? I tried using images (500(500 X 500) with object being more than (100(100 X 40) and it cannot detect objects in them.