What space does the transformation matrix given by Face Landmarker transform to? #5883
Labels
os:windows
MediaPipe issues on Windows
platform::android
Android Solutions
task:face landmarker
Issues related to Face Landmarker: Identify facial features for visual effects and avatars.
type:support
General questions
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
Windows
MediaPipe Tasks SDK version
0.10.14
Task name (e.g. Image classification, Gesture recognition etc.)
Face Landmarker
Programming Language and version (e.g. C++, Python, Java)
Java
Describe the actual behavior
When a face is detected, a quad, which has the size same as bounding box of detected face, is always at the center of the screen. Its width was unchanged with the detected face width but its height has changed a bit with detected face height.
Describe the expected behaviour
When a face is detected, a quad, which has the size same as bounding box of detected face, should have size matching the detected face and cover the detected face.
Standalone code/steps you may have used to try to get what you need
I have loaded the canonical face from the face_with_iris.obj file and get the vertices in unit of cm and converted the unit into meter. Then applied the given transformation matrix to the canonical face to get the transformed vertices in a unknown space. Then used the transformed vertices to get the minimum and maximum x and y values and the center of the transformed vertices and applying these data to draw a quad using OpenGL.
Other info / Complete Logs
The text was updated successfully, but these errors were encountered: