문제

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

screenshot

도움이 되었습니까?

해결책

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.

다른 팁

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);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top