| CPC G06T 7/0004 (2013.01) [G06T 7/70 (2017.01); H04N 23/56 (2023.01); G06T 2207/20081 (2013.01); G06T 2207/30136 (2013.01)] | 19 Claims |

|
1. An inspection device comprising:
a position detector to detect a position of an inspection target in an inspection image by (i) extracting a plurality of portions of the inspection image on the basis of a rough detection result of the position of the inspection target calculated by applying the inspection image including the inspection target to a position rough detection model generated by machine learning using image information of a training image, (ii) applying the plurality of extracted portions of the inspection image to a position detection model generated by machine learning using the image information of the training image to calculate a position detection score for the plurality of extracted portions of the inspection image, (iii) specifying an extracted portion from the plurality of extracted portions of the inspection image where the position detection score satisfies a predetermined relationship, and then (iv) specifying a position of a pixel in the inspection image where a brightness value of a pixel among a plurality of pixels is greatest in a predetermined range centered on a position of the specified extracted portion of the inspection image and (v) detecting, based on the specified position of the pixel in the inspection image where the brightness value is greatest, the position of the inspection target in the inspection image; and
a position outputter to output the position of the inspection target detected by the position detector.
|