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

Displaying the April Tag on a smartphone #4

Open
nirmalsnair opened this issue Dec 15, 2023 · 4 comments
Open

Displaying the April Tag on a smartphone #4

nirmalsnair opened this issue Dec 15, 2023 · 4 comments

Comments

@nirmalsnair
Copy link

Thanks again for providing the code! ⭐

I've successfully connected two depth cameras in Unity, and the calibration process is underway, detecting the April Tag. However, the calibration accuracy is low as the point clouds aren't aligning properly. I suspect this could be due to using my smartphone to display the April Tag instead of printing it on an A4 paper.

I have a couple of questions:

  1. Is it feasible to perform calibration by displaying the April Tag on a smartphone, or is a printed version necessary?
  2. If calibration using a smartphone is possible, what adjustments should be made in the code to accommodate the altered marker size?
@ababilinski
Copy link
Owner

Hi @nirmalsnair
Thank you! I haven't updated in a while so I'm glad it's still working properly and helping developers.

Regarding your questions:

  1. It is possible to use a smartphone, but it might result in bad pose estimation since the image isn't clear.
  2. You can change the expected marker size in RsCameraPoseEstimation.cs

@nirmalsnair
Copy link
Author

nirmalsnair commented Dec 26, 2023

Sorry for the delayed response. Yes, the code is working without any issues.

I printed the April Tag on an A4 paper, and now the alignment is very good. However, there's a slight translational difference along the x and z axes, though the orientation is perfect. I think tweaking the marker size should fix that. Thanks for the help!

@nirmalsnair
Copy link
Author

Hello again!

I experimented with values for Tag Size under Assets > RealSenseAprilTags > Examples > CameraCalibration > Prefabs > Cameras > Camera Pose Estimation. However, the point clouds still exhibit a slight misalignment.

Tag Size = 0.110

Screenshot 2024-01-10 172508

Tag Size = 0.114

Screenshot 2024-01-10 171611

Tag Size = 0.115 (Default)

Screenshot 2024-01-10 171721

Tag Size = 0.116

Screenshot 2024-01-10 171952

Tag Size = 0.120

Screenshot 2024-01-10 172126


Do you have any insights into what might be causing this issue? I am using an A4-size April Tag. Appreciate your assistance!

@nirmalsnair nirmalsnair reopened this Jan 10, 2024
@nirmalsnair
Copy link
Author

Hi @ababilinski, any ideas to rectify this slight misalignment issue?

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