摘要 |
The present invention enables accurate inspection of a defect at a start end of a screw of a glass bottle. An image of a container mouth portion is captured by a camera from above a container, a ring-shaped inspection gate is created on a ring-shaped screw image in the captured image, a dark section having a light/shade difference that exceeds a predetermined light/shade difference is searched for in the ring-shaped inspection gate, and a screw end inspection gate is created in a partial region of the ring-shaped inspection gate including the dark section. In the screw end inspection gate, a screw end image that pattern-matches a preregistered screw end registration image is searched for, and right/left portion inspection gates are created respectively in the partial regions of the ring-shaped inspection gates on both sides of the pattern-matching screw end. When a dark section having a light/shade difference and an area that exceed predetermined light/shade difference and area is detected in the right/left portion inspection gates, the dark section is determined as a defect. |