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

Question about actual_depth #24

Open
menggui1993 opened this issue Dec 9, 2024 · 1 comment
Open

Question about actual_depth #24

menggui1993 opened this issue Dec 9, 2024 · 1 comment

Comments

@menggui1993
Copy link

Hi, I have a question about the actual_depth processing before localnet. In function center2dtopc, the actual_depth is calculated for each grasp group. The value is rescaled by (1280 // output_size[0]). The depth is read from the depth image of size (1280, 720) directly, then added by the predicted depth_offset from anchornet. I can't see why another scaling factor (1280 // outputsize[0]) is needed. I referred to this part of code.
Could you please explain why? Thanks.

@ChenThree
Copy link
Collaborator

This is because we directly use the function pixel_depth_2_points for width conversion, which uses the original camera intrinsics with resolution (1280, 720). Thus, rescaling the depth, that is the z in the width conversion function, will result in the correct results. (But this may not be an ideal way for understanding)

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