cascadeclassifier value
hi.
how can i get a value from detectmultiscale function that expresses a probability of true detection ?.
thanks
hi.
how can i get a value from detectmultiscale function that expresses a probability of true detection ?.
thanks
Hi, You need to write a hack for it. I am actually trying to evaluate at only one location using ::runat, but unfortunately, in the newer version of OpenCV it looks bit more complicated. Somethings are not straight forward.
Check in haar.cpp located in /OpenCV-2.4.3/modules/objdetect/src/haar.cpp and search for "runat", and you will get an idea on how to proceed.
I am not sure if you get the probability of true detection but you get a response > 0 indicating that a face is detected. I hope the above answer helps you a bit.
Thanks Venky
cascadeclassifire has two detectmultiscale functions that one of them calls another one. the main function is : void CascadeClassifier::detectMultiScale( const Mat& image, vector<Rect>& objects, vector<int>& rejectLevels, vector<double>& levelWeights, double scaleFactor, int minNeighbors, int flags, Size minObjectSize, Size maxObjectSize, bool outputRejectLevels ) we can use levelweight to compute probability of true detection. :)
In order to create a good classification rate, you could simply do the following.
This is basically in simple terms what the algorithm does itself based on the neighbors parameter.
Hi, would you give any example of your usage of this parameter levelweight ? I'm also looking for the probability of true detection but cannot find a way to compute it. Moreover, I cannot find the function that you are talking about. I found only the basic one with fewer parameters.
Asked: 2012-11-28 02:41:47 -0600
Seen: 983 times
Last updated: Apr 12 '13
Control senstivity of object detector
Android: how to use detectMultiScale()
CascadeClassifier with haarcascade apparently not working
Where're CascadeClassifier and DetectMultiScale Algorithm Location?
CascadeClassifier wont detect image using runAt that it has already found using dectectMultiScale
Cascade classifier return different result in C++ and Java version [closed]