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

How to get the relative location between objects? #76

Open
z-yf17 opened this issue Jul 4, 2023 · 1 comment
Open

How to get the relative location between objects? #76

z-yf17 opened this issue Jul 4, 2023 · 1 comment

Comments

@z-yf17
Copy link

z-yf17 commented Jul 4, 2023

Hi, thanks for your great work!

I noticed that your input image is cropped before training and inferencing. After obtaining the inferencing results, I can accurately obtain the rotation angle of the object, but the position of the object is relative to the cropped image. How can I obtain the relative position between different objects? Or, how can I know the absolute position of each object in the entire image?

Looking foward to your reply!

@Lakonik
Copy link
Collaborator

Lakonik commented Jul 7, 2023

Thank you for your interest in our work. The position of the object can be inferred from the 2d coordinate map (x2d) of that cropped image, which include coordinates in the original image space. These coordinates are used as the input of the PnP layer.
Besides, in EPro-PnP-6DoF v2,we also improved the scale handling by feeding the original size of the cropped image.
Hope these can answer your question.

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