Method for automatically detecting adhesion defect of label of flat wine bottle

The invention discloses a method for automatically detecting the adhesion defect of a label of a flat wine bottle. According to the method, a lighting image acquisition system, an image processing system and an algorithm processing system are adopted, wherein the lighting image acquisition system is used for acquiring an image of a labeled wine bottle; the image processing system is used for preprocessing the obtained image of the wine bottle through image contrast stretching conversion, image noise reduction processing, image threshold processing and image filling processing in sequence; the algorithm processing system is used for positioning a body of the wine bottle and a set point in the image of the wine bottle, and comparing a position relation between a special point during correct adhesion of a label and the label with a position relation between a special point in the image needing to be detected and the label so as to judge whether the label has the adhesion defect. The method can be used for detecting the adhesion defect of the label of the flat wine bottle, which cannot be detected through a common label detection method and an ordinary visual detection method.