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 can I get an object's location coordinates with simple python code from D435i? #12876

Open
Tranthanhbao198 opened this issue Apr 22, 2024 · 4 comments
Labels

Comments

@Tranthanhbao198
Copy link

  • Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

  • All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)


Required Info
Camera Model { D435i }
Firmware Version (2.54.2.5684)
Operating System & Version Win 11 and mac os 14 Pro M1
Kernel Version (Linux Only) NA
Platform PC
SDK Version
Language python}
Segment {Robot arm }

Issue Description

Hello,
Currently I have my own project using D435i to observe objects, then get information about the object's location coordinates, then will use python code to take those location send to the robot arm's moving command to pick the object, i will do it with 2 levels. 1 is i will show all of the objects on the table, then get all of the object's location coordinates, 2: I will place the objects on the table one by one and the camera will observe and get the coordinates of the locations of those objects one by one. Please help me. thank you so much

@MartyG-RealSense
Copy link
Collaborator

Hi @Tranthanhbao198 If your project needs to be implemented in Python and you will not be using ROS then I would recommend getting the pose (position and rotation) of the observed objects using an OpenCV solvePNP algorithm. Links regarding doing so can be found at #10233 (comment)

@Tranthanhbao198
Copy link
Author

hi @MartyG-RealSense , thank you for your reply, but I didn't quite find what i was looking for there. can u give me more details. thank you

@MartyG-RealSense
Copy link
Collaborator

Do you need further information about solvePNP, please? If you do then the official OpenCV documentation has more here:

https://docs.opencv.org/4.x/d5/d1f/calib3d_solvePnP.html

@MartyG-RealSense
Copy link
Collaborator

Hi @Tranthanhbao198 Do you require further assistance with this case, please? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants