Ask Your Question

Constraining android camera to a still object

asked 2014-10-07 08:47:37 -0500

updated 2014-10-07 09:04:07 -0500

berak gravatar image

I am new to posting questions on this site, you will please forgive me for any anomalies;

I have a task where i need a robot using android camera to identify an object by taking various pictures of a still(not moving) object as it comes closer to the object. I am thinking to use real-time template matching of the previous image to match the image fed in by the camera and tell the robot to tilt the camera in order to match the image and finally shoot(take a clear photo). The problem is, the camera will lose sight of the object as the robot moves closer to the object and it won't have anything to compare with the previous image. Is there any way of constraining the camera to the still object as the robot comes closer?

I am doing this in order to finally obtain a large high resolution image of the still object which the robot can depend on to perform other actions.

USING: OPENCV, Android 4.2

Thanks in advance

edit retag flag offensive close merge delete



" I am thinking to use real-time template matching " - that's already a bad idea.

template matching works fine for, e.g. finding an icon in a screenshot, but not with images from a camera, since you're suffering from perspective distortion, scaling, rotation, etc.

berak gravatar imageberak ( 2014-10-07 09:02:22 -0500 )edit

Thanks #berak for the quick advice Any suggestions please are highly needed for i am actually new to image processing

Atuk Unda gravatar imageAtuk Unda ( 2014-10-07 09:13:43 -0500 )edit

I would suggest you to go on contours, or features, but it is very few specifications what you have said. How small can be your object? Maybe you can do some kind of adaptive threshold, and search for an object there?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2014-10-07 10:09:19 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-10-07 12:10:23 -0500

Thanks for the suggestions. My task is about the robot detecting a new notice on a noticeboard, read the notice and act according to the commands written on the notice. Thank you.

edit flag offensive delete link more

Question Tools


Asked: 2014-10-07 08:47:37 -0500

Seen: 78 times

Last updated: Oct 07 '14