Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

How to train a CascadeClassifier to detect object with different aspect ratio?

$
0
0
I tried to detect object which could have different aspect ration in the positive photo. I used the next params: opencv_traincascade -data haarcascade -vec samples.vec -bg negative.dat -numStages 15 -minhitrate 0.99 -maxFalseAlarmRate 0.4 -numPos 797 -numNeg 933 -w 15 -h 30 -mode ALL -precalcValBufSize 2048 -precalcIdxBufSize 2048 So, aspect ratio is 1:2 in the image pattern. And when I use a generated cascade.xml I can detect an object in the pictures only with the similar aspect ratio. But some photos contains objects with 2:3 or even 1:1 ratio. How can I detect these objects?

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>