Alternatively you can browse code online - https://github.com/Itseez/opencv/blob/master/modules/objdetect/src/haar.cpp
How can I see inside cvHaarDetectObjects() in openCV?
-
26-06-2022 - |
Question
I am trying to optimize the Viola-Jones code written in pure C code since it takes longer to detect faces than the code using the openCV function.
I want to see how cvHaarDetectObjects function actually work but I can't find how.
Can anybody help me out here please?
Solution
OTHER TIPS
- Go here to download the source code so you can see how it was written. Make sure it is the same version as the one you are running
- Run the .exe file you just downloaded and specify a place to unpack the OpenCV library. It unpacks more than just the library itself; it includes plenty of helpful samples and documentation among other things
- Go to wherever you unpacked it and go to \modules\objdetect\src\haar.cpp and open it in whatever editor you want
- Press ctrl+F or whatever you need to do to search for text and look for cvHaarDetectObjects
- Absorb knowledge
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow