Ask Your Question
0

pixel coordinates to 3D

asked 2015-01-08 09:40:19 -0500

rcj1986 gravatar image

Hi, I have a stereo camera mounted in a UR5 and I want to detect the holes of a work piece and move the tcp near the holes. I detect the centre of the holes with opencv and but I don't know how to extract this info to 3D coordinates. I'm using opencv to solve this problem but I don't know how to solve it. Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-01-09 14:13:35 -0500

Airuno2L gravatar image

updated 2015-01-09 14:13:53 -0500

If you're detecting the center of the hole in both images, you can draw a ray from each camera through the hole based on which pixel the hole corresponds to and the image distortion model. Then you can find where the two rays intersect to determine the 3D position of the hole. The image_geometry library has tools to help out with these types of problems.

edit flag offensive delete link more

Comments

Thanks, I'll take a look.

rcj1986 gravatar image rcj1986  ( 2015-01-12 05:03:27 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-01-08 09:40:19 -0500

Seen: 679 times

Last updated: Jan 09 '15