Ask Your Question
0

Camera Pose Estimation Based on Balls in Image

asked 2016-02-14 07:38:00 -0600

Hi,

I just stumbled across OpenCV and would like to know if it might help with my problem.

I look for a way to have a photo like the attached as an input and which outputs me world space camera coordinates and rotation. This data will be used to put the camera into a 3d program to render a 3d object onto the image.

image description

The green markers I draw in the image will later be colored balls or other objects that will be placed in a perfect square of a known size which should help the solving.

Do you think this will be possible? Will a calibration photo also be needed?

Just need some pointers what to search for as I have no experience with this topic.

Thanks Andreas

edit retag flag offensive close merge delete

Comments

Do you have to use the green balls? An easier (an more accurate way) would be to create a huge marker (1mx1m) and find that. This is much easier implement but it covers of course a larger part of the image. But it looks as if you want to place a car in the image, so maybe the object is large enough to cover the marker. (Or you take one shot with marker and one without with a static camera).

FooBar gravatar imageFooBar ( 2016-02-14 11:31:08 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-02-14 10:32:36 -0600

Eduardo gravatar image

First, you will have to calibrate your camera to have the intrinsic parameters (focal length, principal point, distorsion coefficients):

Then, you will have to detect the balls. You can look for example to these questions:

And finally, you will have to match each ball 3D coordinate to his corresponding 2D image coordinate. The pose can be computed with:

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-02-14 07:37:26 -0600

Seen: 573 times

Last updated: Feb 14 '16