Can someone help me with detecting face landmarks in Unity AR?
The best place to start is our Samples project: GitHub - Unity-Technologies/arfoundation-samples: Example content for Unity projects based on AR Foundation
No problem with detecting faces, I struggle to detect face landmarks
Keep reading the link I posted above?
I read this, but i want to detect the mouth region. More specific the landmarks that are in this region in order to determine if the mouth is open or closed and so on…
These samples demonstrate all the face tracking techniques available in ARCore and ARKit. On the ARKit side, mouth tracking is straightforward using Blend Shapes.
On ARCore, you would have to do some processing yourself based on the vertices of the Face Mesh, as ARCore’s Augmented Faces feature doesn’t specifically handle mouth tracking for you: Введение в дополненные лица | ARCore | Google for Developers
I need to do it on Android so i have to use ARCore. I got the OpenCV and the DlibFaceLandmarkDetector Assets but have problems to get it to work.
But about the face mesh. Does every vertex have an specific index? That way i would just have to loop through the vertices list.
Do you know which vertices specify the mouth region?
I am not certain, but I would wager that the vertices are always reported in the same order. I have not done this experiment but it seems possible that you could identify the mouth vertices.
I definitely can’t help you with OpenCV, but good luck on your app!
Do you know how to draw for example a circle at a specific vertex and display this on the device?