| CPC G06V 10/751 (2022.01) [G06T 7/0004 (2013.01)] | 14 Claims |

|
1. A method for searching a hole pattern in an image comprising:
extracting, from an image where a hole pattern is formed, a plurality of outline position candidates serving as candidates for a plurality of positions where an outline of the hole pattern passes;
generating, with respect to each pixel in a region including the plurality of outline position candidates, for each direction of a plurality of directions, a distance map which defines a distance from each of the plurality of outline position candidates to each of pixels arrayed in a target direction of the plurality of directions;
extracting a candidate for a center pixel of the hole pattern by using the distance map generated for the each direction; and
searching, in the plurality of outline position candidates, a group of outline position candidates which satisfies a predetermined condition in a case of using the candidate for the center pixel as a starting point, as a plurality of outline positions where the outline of the hole pattern passes.
|