I have run this Opencv Haarlike eye-detection from this link with C++ visual studio 2010
http://docs.opencv.org/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.html
And my camera isn't running smooth. So I delete for-loop(of this code) out and running only camera. The camera running smooth.
The question is if I want to modified this code to detect eye and face.
How can I modified this code to running in smooth?
please show the example to modified this code.
Best thank and sorry for bad language Chairat(Thailand)
Generally it's not a trivial question, but a basic idea (which i used for my BSc thesis) is quite simple. It's not the entire solution i've used, but this should be enough right now, if not - let me know i will write more about it.
For first frame:
haarcascade_frontalface_default.xml cascade, but you may try with different) and remember its position.haarcascade_mcs_eyepair_big.xml), not for one eye - it's much faster and simpler solution) and remember position.For other frames:
Few important things:
CV_HAAR_FIND_BIGGEST_OBJECT flag.equalizeHist function. Note that it works only on grayscale images.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With