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

Distance #25

Open
sadeola213 opened this issue Jul 22, 2021 · 1 comment
Open

Distance #25

sadeola213 opened this issue Jul 22, 2021 · 1 comment

Comments

@sadeola213
Copy link

Hey, I wanted to know in what way I could find the distance between the camera and a tag using these codes

@slyguy5646
Copy link

@sadeola213

This is a pretty vague question and there are a ton of ways to approach it. In general you can get 6DoF (pose) from the tag in multiple ways.

Here's a good article from OpenCV explaining pose estimation: https://docs.opencv.org/3.4/d7/d53/tutorial_py_pose.html

This library has a built in detection_pose function that you need to pass some intrinsic camera parameters.

Here's a good OpenCV article explaining how to get those values: https://docs.opencv.org/4.x/dc/dbb/tutorial_py_calibration.html

From there you can calculate distance in a few ways. Let me know if that helps!

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