Searching for objects in an image
In order to make your project or installation respond to user actions by using the data from camera, often you need to search, recognize, and track objects on the live video from camera. In this section, we will only cover searching objects.
There are several methods to search a specific object in an image:
Template matching is used for searching objects of a fixed shape. The image is scanned using a referenced "ideal" template of the interested object for finding the best match.
Contour analysis (other name is geometrical matching) is used for searching objects captured by the camera on a simple background (such as details on the conveyor line). It's based on computing and analyzing the edges of the objects on the image for searching the edge's configurations and matching the interested objects.
This method can work with complex and overlapped objects but is sensitive to a number of conditions; for example, object should have distinctive edges and there...