The invention relates to the technical field of image
data processing, in particular to a fire
mask defect detection method based on image recognition, and the method comprises the steps: obtaining a plurality of to-be-analyzed pixel points in a gray image of a fire
mask, carrying out the clustering of the to-be-analyzed pixel points, obtaining a plurality of pixel types, and carrying out the recognition of the to-be-analyzed pixel points; calculating the possibility that any pixel category is a defect area, taking the possibility of the defect area as the defect expression degree of each pixel point in the corresponding pixel category, updating the
Gaussian surrounding scale when the SSR
algorithm is used for enhancing the
gray level image, and enabling the updated
Gaussian surrounding scale to be in
positive correlation with the range and the minimum value of the
Gaussian surrounding scale, and the defect representation degree is negatively correlated with the defect representation degree of the corresponding pixel point, so that defect detection is carried out based on the enhanced
grayscale image. According to the method, the problem of detail loss or excessive enhancement of the enhanced image can be avoided, and the enhancement effect of the image is improved, so that the accuracy of defect detection can be improved.