Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the 3d coordinate output of the model #19

Open
Youmimzy opened this issue Sep 27, 2022 · 6 comments
Open

Get the 3d coordinate output of the model #19

Youmimzy opened this issue Sep 27, 2022 · 6 comments

Comments

@Youmimzy
Copy link

image
image
The output data seems to be different from python,where am i doing wrong?

@pntt3011
Copy link
Owner

Hi @Youmimzy, did you rescale the coordinate like FaceLandmark::getFaceLandmarkAt ?

@Youmimzy
Copy link
Author

你好@Youmimzy,您是否重新调整了坐标FaceLandmark::getFaceLandmarkAt

image
This code they output is the pixel coordinates of the image, I want to know how to operate the output three-dimensional coordinates of the world。thanks。

@pntt3011
Copy link
Owner

I think the official code does some post-processing with the output from tensorflowlite model. You can check my answer here

@Youmimzy
Copy link
Author

我认为官方代码对 tensorflowlite 模型的输出进行了一些后处​​理。你可以在这里查看我的答案

Thanks for your guidance, I solved the problem。

@Youmimzy
Copy link
Author

我认为官方代码对 tensorflowlite 模型的输出进行了一些后处​​理。你可以在这里查看我的答案

感谢您的指导,我解决了这个问题。

Sorry I found that I didn't seem to solve this problem. I modified my own code to get the normalized real world x, y, z coordinates through the following official code.
image
my code:
image
But the output doesn't seem to be correct, what am I doing wrong?

@Youmimzy Youmimzy reopened this Sep 28, 2022
@pntt3011
Copy link
Owner

I mentioned in the link above that using the model alone cannot give you the real-world coordinates. The normalize step just gives you the image coordinate (even z axis).
According to the official doc, they use a geometry module to process the model output. Maybe the python wrapper has that module included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants