The invention discloses a
bottleneck quality detection method based on
machine vision. The
bottleneck quality detection method comprises the following steps: collecting an image of a to-be-detected
bottleneck, and converting the image into a grey-
scale map; calculating the gradient vector of each pixel point of the grey-
scale map, so as to obtain an edge image of the grey-
scale map of the to-be-detected bottleneck;
cutting edges according to a grey-scale threshold;
cutting an inner ring and an outer ring of the to-be-detected bottleneck by taking the area as a character; respectively calculating circle center coordinates and radiuses of the inner ring and the outer ring, averaging the circle center coordinates to obtain the circle center coordinate of the to-be-detected bottleneck, and setting a
radius value range according to the radiuses of the inner ring and the outer ring; acquiring a circle
parameter equation according to the circle center coordinate and the
radius value range of the to-be-detected bottleneck, carrying out circular scanning on a circular ring according to the circle
parameter equation, calculating an average gray value, and drawing an average gray value curve; and analyzing the average gray value curve, and determining the annular ring is not damaged when the variation range of the annular ring is in a certain range. According to the bottleneck quality detection method, the detection efficiency of the bottleneck quality is improved.