问题
I'm curious about finding the eyes from an image. Let's say I have an thresholded image and I have 3 blobs representing two eyes and the mouth. Is there a way to detect which of the region of pixels is eye region and approximate it's center?
回答1:
You can check the following blog which is much equipped with facial landmarks detection including eye regions. It will be very much easier to find approximate center of eye. It gives six points (37-42 left eye & 43-48 right eye) of eye along the eye lid which can be used to calculate the eye center.
Detect eyes, nose, lips, and jaw with dlib, OpenCV, and Python
There are much more you may find them very much interesting and helpful.
回答2:
I am not sure if I follow your question right! Do you want to process a gray level/ color image or a binary image.
You might find the following links relevant if you are trying to locate fiducial points on face images
1) http://www.learnopencv.com/facial-landmark-detection/
2) http://danielnouri.org/notes/2014/12/17/using-convolutional-neural-nets-to-detect-facial-keypoints-tutorial/
3)http://cmp.felk.cvut.cz/~uricamic/flandmark/
回答3:
I would actually recommend you to use dlib library.
I used it recently. You can use it very easily for object detection and if you want to train it for your own objects it is fairly easy using imglab.
http://blog.dlib.net/2014/02/dlib-186-released-make-your-own-object.html
See this.
回答4:
OpenCV is the acronym of Open Computer Vision . this is a project that works on face-recognition pattern-recognition face-traking and much much more.
There is a well-written documentation and a lot of examples all over the web. I suggest you to take a look at this.
It works with Java,c++ and python.
Search for eye-traking if this is your main interest.
来源:https://stackoverflow.com/questions/37888367/find-eyes-and-mouth-in-an-face-image