摘要 |
The invention relates to an optical method for inspecting containers (2) , said method consisting in: producing at least one image (10) of each container; determining , in the image of the container at least one search area (Zr) wherein at least one visual motif appears (3); producing a digital mask (Mi) for at least one area (Zt) for processing the images comprising at least the visual motif (3); and comparing at least each pixel of the image processing area with a digital mask (Mi). According to the invention the method consists in: selecting at least one visual motif (3) pertaining to the container; determining the position and the orientation of the visual motif (3) selected in said search area (Zr) of the image of the container; applying a geometric transformation (T) to the digital mask (Mi) or the processing area (Zt) in such a way as to be able during the processing step , to place the mask (Mi) and the processing area (Zt) in a position of coincidence; and applying an image processing operation to each pixel of the processing area (Zt) , depending on the value of intensity of the coinciding pixel of the digital mask (Mi). |