Constraining android camera to a still object
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
" 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.
Thanks #berak for the quick advice Any suggestions please are highly needed for i am actually new to image processing
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?