Domanda

How can I have mouth and eyes corner points and nose central point using OpenCv like in this picture?

screenshot

È stato utile?

Soluzione

The procedure is actually like this:

Face recognition --> face landmark --> delaunay triangulation

The title is misleading. Delaunay is actually used after you get those points. However, I suspect your question mainly lies in how to get the face landmarks. For this you could refer to my blog post. It's my own implementation. However it is in Chinese that I cannot expect you to understand.

You can just search for face landmarks and you'll get lots of codes for that. This topic has been under exhaustive research during these decades. Also there's close source solutions on this, e.g. Visage Tech's Visage SDK.

Altri suggerimenti

You can use Active Appearance Models (AAM). This wikipedia page has links to non-commercial tools that can help you to do this with little effort.

shape_predictor pose_model;
deserialize("shape_predictor_68_face_landmarks.dat") >> pose_model;
full_object_detection shape = pose_model(cimg,face);
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top