Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Detection of holes

Im working on a project where we are trying to detect features, particularly the center of the terminals of electrical components. Following are some examples:

image description image description image description image description image description

The constraints of our system allow us to make the assumption that the terminal which we are seeking is the most centered of all the features seen. Other than that no additional information is available about individual components. Im trying to come up with a basic strategy to approach this problem.

So far my idea is to try to search for rectangle shapes and elliptical shapes and then select the ones closest to the center of the camera. This should work ok for single contact terminals, however for double contact terminals with two overlapping ovals, or joined rectangles this wont work. Can someone give me some pointers on how i might go about developing a stable algorithm to detect the center points of any terminal?

Regards