Closed aoxipo closed 3 years ago
Hi @aoxipo, Have a look at this comment https://github.com/google/mediapipe/issues/1895#issuecomment-822121488 face geometry is clearly explained with all the coordinates.
@aoxipo Hi, how do you understand the z coordiante value now ?
@aoxipo Hi, how do you understand the z coordiante value now ? according to the documents from mediapipe: "The Face Landmark Model performs a single-camera face landmark detection in the screen coordinate space: the X- and Y- coordinates are normalized screen coordinates, while the Z coordinate is relative and is scaled as the X coordinate under the weak perspective projection camera model." So in my opinion the z coodiante is a pixel-scale value, we must multiply the width to get the absolute pixel value. And if u want to get the real-world value u can use camera intrinsic parameters to get the meter-scale z value.
i am try to use face landmark in face_mesh solution , luckly i get right x and y in the landmark by code
but when i mesh the landmark in the face there some error in z coordinate here is picture,
I found that the value of forehead is - 55, and the value of nose is - 145. In contrast, the position of forehead and nose is significantly different. And when I get close to the camera, the value of nose becomes larger, rather than gradually decreasing to 0. Why are some landmark positive and some negative?
Did I use the wrong way to get or transform Z coordinate??