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

Image Rectification #214

Open
Nielsencu opened this issue Feb 1, 2022 · 1 comment
Open

Image Rectification #214

Nielsencu opened this issue Feb 1, 2022 · 1 comment

Comments

@Nielsencu
Copy link

Nielsencu commented Feb 1, 2022

I have succesfully trained a model which can detect the orientation of the 3D model quite well.
https://user-images.githubusercontent.com/50238554/151923763-57abd341-871e-4665-aebb-0521ba86a6ba.mp4

However, the 3D centroid position in meters relative to the camera which is output by the network is still off, even though visually the 3D bounding box looks quite accurate. The issue might be with the deprojection by the PnP.

I am running the inference on intel realsense camera with fetches the camera intrinsics using the realsense API, and realsense documentation mentions that the camera by default should be well-calibrated with 0 distortion coeficients. The 3D bounding box of the model should also be correct because I got them from a 3D mesh which is hand-scanned. So the parameters passed to the PnP algorithm should be correct.

One possible explanation is #203 where it is suggested that image rectification should be done before feeding them to DOPE. Can you kindly provide a more detailed explanation on how should this image rectification be performed?

@mintar
Copy link
Contributor

mintar commented Feb 1, 2022

After you launch this file:

roslaunch realsense2_camera rs_rgbd.launch

... there is this topic:

/camera/color/image_rect_color

This is the rectified input topic which should be used as input to DOPE.

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