Blade polishing uniformity evaluation system based on texture analysis

The blade polishing uniformity evaluation system based on texture analysis solves the problem of preserving details in the highlight and shadow areas in the existing technology, realizes the objective evaluation of the blade surface polishing quality, and improves the detection accuracy and quality control accuracy.

CN122312484BActive Publication Date: 2026-11-27ANHUI BAOLIFENG MACHINERY EQUIPMENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202610164881.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-02-05
Publication Date
2026-11-27
Estimated Expiration
2046-02-05

AI Technical Summary

Technical Problem

Existing image recognition technologies struggle to preserve details in both highlight and shadow areas when processing the quality inspection of highly reflective metal surfaces. Conventional algorithms often result in the loss of features in highlight areas or the enhancement of noise in shadow areas, and general edge detection operators cannot effectively distinguish between normal processing textures and defects or scratches.

Method used

A blade polishing uniformity evaluation system based on texture analysis is adopted. Through a local illumination perception module, a multi-scale texture extraction module, a scratch region segmentation module, and a uniformity quantification evaluation module, combined with adaptive local structure measurement, multi-scale top-hat transformation, and weighted texture feature map, a polishing uniformity rating index is generated.

Benefits of technology

It improves the saliency of defect features against complex texture backgrounds, enhances the signal-to-noise ratio of feature extraction, enables an objective evaluation of the polishing quality of the blade surface, avoids quality misjudgment caused by the aggregation of local defects, and improves the quality control accuracy in precision manufacturing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122312484B_ABST
    Figure CN122312484B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of image recognition, in particular to a blade polishing uniformity evaluation system based on texture analysis, which comprises a local light perception module, which is used for dividing a blade surface image into multiple rectangular sub-regions according to the collected blade surface image, calculating an adaptive local structure metric, and generating an adaptive enhanced blade image.In the present application, the region distribution density vector and the coefficient of variation are calculated based on the scratch connected region centroid coordinates, which realizes the leap from simple defect number statistics to spatial distribution uniformity quantitative evaluation, ensures that the evaluation index can objectively reflect the consistency and stability of the polishing quality of the blade surface, avoids the quality misjudgment caused by local defect aggregation, and improves the precision of quality control in the precision manufacturing link.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image recognition technology, and in particular to a blade polishing uniformity evaluation system based on texture analysis. Background Technology

[0002] Image recognition technology uses computers and related algorithms to process, analyze, and understand image data in order to automatically identify targets, objects, or features of various patterns.

[0003] Existing image recognition technologies often rely on global grayscale statistics or single-scale filtering algorithms when processing the quality inspection of highly reflective metal surfaces. However, when faced with the complex light reflection characteristics and subtle texture variations of polished blade surfaces, conventional algorithms struggle to preserve details in both highlight and shadow areas, easily leading to feature loss in highlights or increased noise in shadows. General edge detection operators lack targeted frequency domain or morphological filtering mechanisms when distinguishing normal processing textures from defects and scratches, often misclassifying normal metal lattice textures as defects, resulting in a high false alarm rate. Therefore, improvements are needed. Summary of the Invention

[0004] The purpose of this invention is to overcome the shortcomings of the existing technology and propose a blade polishing uniformity evaluation system based on texture analysis.

[0005] To achieve the above objectives, the present invention adopts the following technical solution: a blade polishing uniformity evaluation system based on texture analysis includes: The local illumination sensing module is used to divide the blade surface image into multiple rectangular sub-regions based on the acquired blade surface image, calculate the adaptive local structure metric, and generate an adaptive enhanced blade image. The multi-scale texture extraction module is used to call line and elliptical structural elements of different sizes according to the adaptively enhanced blade image, perform white top hat transformation and black top hat transformation respectively, generate a multi-scale top hat transformation map set, calculate the local information entropy of each image in the multi-scale top hat transformation map set as a weight factor, and calculate and generate a weighted texture feature map. The scratch region segmentation module is used to statistically analyze the pixel intensity distribution and set a segmentation threshold based on the weighted texture feature map, mark pixels with intensity above the segmentation threshold as foreground, perform binarization processing to generate a texture binarization mask, and mark the connected components of the texture binarization mask to generate a set of scratch connected regions. The uniformity quantification evaluation module is used to extract the centroid coordinates of each connected region based on the set of connected regions of the scratches, calculate the number and area ratio of connected regions per unit area, generate a regional distribution density vector, calculate the standard deviation and coefficient of variation of each element in the regional distribution density vector, compare and match the coefficient of variation with the preset uniformity level range, and generate a polishing uniformity rating index.

[0006] Preferably, the step of acquiring the adaptively enhanced blade image is as follows: Based on the collected blade surface image, the blade surface image is divided into several rectangular sub-regions with a fixed size. The occurrence frequency of gray levels in each rectangular sub-region is counted and normalized to a gray level probability distribution, forming a gray level probability sequence of the rectangular sub-region. Calculate the adaptive local structure metric based on the gray-level probability sequence of the rectangular sub-region; Based on the adaptive local structure metric, calculate the histogram equalization shearing threshold for the rectangular sub-region; Based on the histogram equalization shearing threshold, the contrast-limited histogram equalization operation is performed on each rectangular sub-region and then stitched together to generate an adaptive enhanced blade image.

[0007] Preferably, the steps for obtaining the multi-scale top-hat transformation atlas are as follows: Set up multiple sets of linear and elliptical structural elements of fixed size, and perform white top hat transformation and black top hat transformation on the adaptive enhanced blade image one by one according to size and shape. Record each output and archive it with size and shape index to generate a multi-scale top hat transformation atlas.

[0008] Preferably, the step of obtaining the weighted texture feature map is as follows: Based on the multi-scale top-hat transform atlas, the neighborhood gray-level probability distribution is statistically analyzed by sliding a fixed neighborhood window on each image according to the image index. The information entropy of each neighborhood is calculated and the average value is taken as the weight factor of the corresponding image. The weight factors are arranged in the order of the image index to generate a local information entropy weight factor sequence. First, the local information entropy weight factor sequence is normalized by summing. Then, the multi-scale top-hat transform map is multiplied pixel by pixel by image index and pixel coordinate, and the result is summed while maintaining the same size as the adaptive enhanced blade image to generate a weighted texture feature map.

[0009] Preferably, the step of obtaining the texture binarization mask is as follows: The weighted texture feature map is traversed to statistically analyze the pixel intensity histogram and calculate the cumulative distribution. The pixel intensity corresponding to the inflection point of the cumulative distribution is located as the segmentation threshold. Pixels with a pixel intensity greater than the segmentation threshold are marked as foreground and set to 1, while pixels with a pixel intensity not greater than the segmentation threshold are set to zero, thus generating a texture binarization mask.

[0010] Preferably, the step of obtaining the set of connected scratch regions is as follows: Based on the texture binarization mask, the foreground pixels are scanned row by row according to the eight-neighborhood connectivity rule and equivalence class merging is completed. After unifying the labels, a unique label is assigned to each connected component and the set of pixel coordinates and the bounding rectangle range are recorded to generate a connected component labeling map. Based on the connected component labeling graph, the number of pixels contained in each unique label is calculated as the pixel area. The area setting value is set as the noise removal lower limit. Unique labels with pixel areas smaller than the area setting value and their corresponding pixel coordinate sets are deleted. The results are summarized and retained according to the unique label index to generate a scratch connected region set.

[0011] Preferably, the step of obtaining the regional distribution density vector is as follows: Based on the set of connected regions of the scratch, the pixel coordinates of each connected region are read by a unique label and the centroid coordinates are calculated. The number of pixels in each connected region is counted as the pixel area. The number of pixels per unit area is set and the adaptive enhanced blade image is divided into a unit area grid. The number of connected regions and the ratio of the pixel area of ​​the connected region to the number of pixels in the grid are counted grid by grid to generate a region distribution density vector.

[0012] Preferably, the step of obtaining the polishing uniformity rating index is as follows: Based on the regional distribution density vector, the number density sequence and area proportion sequence are organized according to the grid index per unit area within the entire map. The standard deviation is calculated on the number density sequence and the standard deviation is calculated on the area proportion sequence. The coefficient of variation of number density and the coefficient of variation of area proportion are obtained by dividing the corresponding standard deviation by the corresponding mean, and a set of uniformity statistical parameters is generated. Based on the set of uniformity statistical parameters, the coefficient of variation of quantity density and the coefficient of variation of area ratio are located and mapped according to the preset uniformity level range to generate a polishing uniformity rating index.

[0013] Compared with the prior art, the advantages and positive effects of the present invention are as follows: In this invention, the acquired blade surface image is divided into multiple rectangular sub-regions, and an adaptive local structure metric is calculated. A nonlinear shearing threshold mapping relationship is constructed by combining grayscale distribution probability and global variance. This enables adaptive enhancement targeting the uneven reflectivity and large texture differences of the metal surface, suppressing noise amplification in flat areas while improving the clarity of scratches in low-contrast areas. Multi-scale top-hat transformation is performed using line types and elliptical structuring elements of different sizes, capturing subtle scratch features of different directions and widths from all angles. Local information entropy is used as a weighting factor to perform weighted fusion of the multi-scale transformation atlas, enhancing the saliency of defect features against complex texture backgrounds and improving the signal-to-noise ratio of feature extraction. A binarized mask generated by setting a threshold based on statistical pixel intensity distribution, along with subsequent connected component labeling and area filtering, can eliminate artifact noise while preserving the true scratch morphology. Based on the centroid coordinates of the connected scratch region, the distribution density vector and coefficient of variation of the region are calculated, realizing a leap from simple defect quantity statistics to quantitative evaluation of spatial distribution uniformity. This ensures that the evaluation index can objectively reflect the consistency and stability of the polishing quality of the blade surface, avoids quality misjudgment caused by local defect aggregation, and improves the accuracy of quality control in precision manufacturing. Attached Figure Description

[0014] Figure 1 This is a system flowchart of the present invention. Detailed Implementation

[0015] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0016] Please see Figure 1 The present invention provides a technical solution: a blade polishing uniformity evaluation system based on texture analysis, comprising: The local illumination sensing module is used to divide the blade surface image into multiple rectangular sub-regions based on the acquired blade surface image, calculate the adaptive local structure metric, and generate an adaptive enhanced blade image. The multi-scale texture extraction module is used to call line and elliptical structure elements of different sizes according to the adaptively enhanced blade image, perform white top hat transformation and black top hat transformation respectively, generate a multi-scale top hat transformation map set, calculate the local information entropy of each image in the multi-scale top hat transformation map set as a weight factor, and calculate and generate a weighted texture feature map. The scratch region segmentation module is used to statistically analyze the pixel intensity distribution and set a segmentation threshold based on the weighted texture feature map. Pixels with intensity above the segmentation threshold are marked as foreground pixels, binarized, and a texture binarization mask is generated. Connected components are marked on the texture binarization mask to generate a set of scratch connected regions. The uniformity quantification evaluation module is used to extract the centroid coordinates of each connected region based on the set of connected regions of scratches, calculate the number and area ratio of connected regions per unit area, generate a regional distribution density vector, calculate the standard deviation and coefficient of variation of each element in the regional distribution density vector, compare and match the coefficient of variation with the preset uniformity level interval, and generate a polishing uniformity rating index.

[0017] The steps for obtaining adaptively enhanced blade images are as follows: Based on the collected blade surface image, the blade surface image is divided into several rectangular sub-regions with a fixed size. The occurrence frequency of gray levels in each rectangular sub-region is counted and normalized to a gray level probability distribution, forming a gray level probability sequence of the rectangular sub-region. Based on the gray-level probability sequence of the rectangular sub-region, the adaptive local structure metric is calculated using the following formula: ; in, An adaptive local structure metric for the rectangular subregion r. Let j be the grayscale value corresponding to the grayscale index j. Let be the probability of gray level index j in the rectangular subregion r. Let be the average gray level of the rectangular sub-region r, and be the weighted average of the products of each gray level and its probability. The smallest positive constant is used to prevent the denominator from being zero. This is the global grayscale variance of the entire original blade image, which is obtained by calculating the variance of the grayscale of all pixels in the entire image before image segmentation; Based on the adaptive local structure metric, the histogram equalization shearing threshold for the rectangular sub-region is calculated using the following formula: ; in, The histogram equalization shearing threshold for the rectangular sub-region r. This is the lower limit of the shear threshold. This is the upper limit of the shear threshold. For adaptive local structure measurement, The median of the adaptive local structure metric for all rectangular subregions. Positive real numbers used to control the steepness of the curve; Based on the histogram equalization shearing threshold, the contrast-limited histogram equalization operation is performed on each rectangular sub-region and then stitched together to generate an adaptively enhanced blade image.

[0018] Specifically, based on the acquired image of the blade surface, the width of the image is read. With height Pixel size, based on the physical dimensional characteristics of the blade surface texture, sets the fixed size of the rectangular sub-region as follows: The pixel size is determined by analyzing the texture periodicity of 500 historical blade texture samples, calculating the average span of texture primitives, and selecting the smallest region containing at least two complete texture periods as the partitioning benchmark. This prevents the sub-region from being too small, causing the texture statistical features to fail, or too large, causing local details to be averaged out. The image is divided into grids along the horizontal and vertical directions with a fixed step size. If the edge region is insufficient... For each pixel, the edge pixels are padded using a mirror fill method to meet the size requirements. This process is repeated for each divided rectangular sub-region, establishing a length of... The grayscale statistics array is initialized with all elements to zero, and the grayscale values ​​of pixels within each sub-region are read one by one. Using the corresponding grayscale value as an index, the count value at the corresponding position in the statistics array is accumulated. After completing the traversal, the total number of pixels in the sub-region is counted. Using calculation formula The frequency of gray levels is normalized, where grayscale The statistical frequency is not simply converted to a percentage here; instead, it is retained to six decimal places to ensure the accuracy of subsequent higher-order moment calculations. The probability values ​​are arranged in index order to form a grayscale probability sequence for a rectangular sub-region.

[0019] In the adaptive local structure metric calculation formula, the first term is kurtosis calculation, which describes the tail thickness and peak degree of gray-level distribution, thereby distinguishing between flat areas and textured areas. The second term is a suppression factor based on global variance, which is used to suppress the metric value when the local variation is extremely small (such as pure background noise), so as to avoid misjudging background noise as structural features. The formula is designed to adaptively quantify the information content of each sub-block, providing a quantitative basis for subsequent differential enhancement. The steps to obtain it are as follows, where this parameter represents the grayscale index. The corresponding actual grayscale value, in an 8-bit depth image, ranges from integers 0 to 255. This parameter is directly derived from the bit depth definition of the image data and does not require additional calculation. However, it needs to be converted to floating-point data during the calculation process to prevent integer overflow. When reading the blade surface image, the bit depth information is obtained through the image decoding library to confirm the maximum grayscale range, thereby constructing a grayscale vector sequence. As The set of possible values; The steps to obtain this parameter are as follows: this parameter represents a rectangular sub-region. Medium grayscale index The probability of occurrence, ranging from 0 to 1, is obtained through the normalization operation in the preceding steps, specifically within a fixed range. Within a pixel sub-region, count the number of pixels with a specific grayscale value (e.g., grayscale value 128), and divide this count by the total number of pixels in that sub-region (4096). For example, if there are 41 pixels with a grayscale value of 100, then... This probability value constitutes the basic statistic for describing the texture distribution of a sub-region; The steps to obtain this parameter are as follows: this parameter represents a rectangular sub-region. The average gray level is a weighted average of the products of each gray level and its probability. This parameter reflects the brightness centroid of the sub-region. It is obtained by traversing the probability sequence of the sub-region, multiplying each gray level value by its corresponding probability, and then summing the results. For example, in a simplified gray level distribution, if only gray levels 50 and 150 each have a probability of 0.5, then... This value changes dynamically depending on the content of the sub-region; The steps to obtain this parameter are as follows: this parameter is a very small positive number to prevent the denominator from being zero. It is set based on the minimum precision limit of computer floating-point arithmetic, and is usually set to [value missing]. ; The steps to obtain this parameter are as follows: the parameter is the global grayscale variance of the entire original blade image, which is obtained by calculating the variance of the grayscale of all pixels in the entire image before image segmentation. The calculation formula is: ,in This represents the total number of pixels in the entire image. For the first grayscale of a pixel, The average gray level of the entire image is determined during the image preprocessing stage by scanning the entire image at a resolution of [resolution value missing]. The original image is obtained by summing the squares of the gray-level differences of all pixels and averaging them, which is used as a benchmark to measure the significance of local changes. Calculations based on parameters: Select a typical blade texture sub-region For example, after statistics and calculations, the average gray level of this area is... ; The second-order central moments (i.e., local variances) calculated based on the probability distribution are: ; The fourth-order central moment calculated based on the probability distribution is: ; Set a minimum constant ; Global grayscale variance calculated by full-image scanning ; First, calculate the kurtosis portion on the left side of the formula: ; Next, calculate the variance suppression factor on the right side of the formula, starting with the internal variance of the exponent: ; Calculate the index value: ; Calculate the inhibition factor: ; Finally, the adaptive local structure metric is calculated. : ; The results show that the adaptive local structure metric of the rectangular sub-region is 0.4437. The value reflects the texture peaks and energy intensity of the region. If the value is close to 0, it indicates that the region may be a smooth background or a noisy region. If the value is large, it indicates that the region contains significant texture structure or scratch features. This calculation result will serve as a key adjustment basis for the subsequent histogram equalization intensity.

[0020] The formula for calculating the histogram equalization shear threshold utilizes the nonlinear mapping properties of the Sigmoid function, based on local structure measurements. Compared with the overall median The relative relationship between the contrast limits of each sub-region is dynamically adjusted. Higher clipping thresholds are allowed in textured areas to enhance details, while lower clipping thresholds are allowed in flat areas to suppress noise amplification, thus achieving an adaptive balance between enhancement and noise control. The steps to obtain this parameter are as follows: This parameter is the lower limit of the shearing threshold, set to prevent detail loss due to excessive smoothing. Enhancement tests are conducted on standard blade samples. While ensuring the minimum contrast requirement, the visibility of details in dark areas is observed. Multiple gradient values ​​(e.g., 1.0, 1.2, ..., 2.0) are set for subjective visual evaluation. Statistical expert scoring selects the optimal baseline value as 1.5, i.e., when... When the value is extremely small, the shearing threshold converges to this value, ensuring basic image contrast. The steps to obtain the parameter are as follows: the upper limit of the shearing threshold is set to prevent oversaturation and noise granularity. Sample images containing severe scratches are selected, and the upper limit of the shearing threshold is gradually increased (from 3.0 to 6.0). The peak signal-to-noise ratio is used as an objective evaluation index. When the PSNR decrease rate exceeds the preset threshold (such as 5%), the corresponding threshold is the upper limit. The value is set to 4.0 after experimentation, which represents the maximum allowable peak value of the histogram. The steps to obtain this parameter are as follows: This parameter is an adaptive local structure metric, which is calculated using the kurtosis and variance coupling formula in the previous steps. The value is 0.4437, which is the result of the previous step and represents the texture structure intensity of the current processing sub-region. The steps to obtain this parameter are as follows: the parameter is the median of the adaptive local structure metric of all rectangular sub-regions, which is obtained by collecting the median of all sub-regions of the entire image. The values ​​form a set of structural metrics. This set is then sorted in ascending order using the quicksort algorithm. The value at the middle position is selected. If the set length is even, the average of the two middle values ​​is taken. For example, in the 1024 sub-regions of the entire image... In the distribution, the value at position 512 after sorting is 0.5000, which serves as a dynamic baseline for distinguishing between "high" and "low" texture richness. The steps to obtain this parameter are as follows: the parameter is a positive real number controlling the steepness of the curve, and its setting is based on the sensitivity of the adaptive adjustment control. This is achieved by plotting different... The response curve at the value is observed. The nearby transformation rate requires a rapid increase in the shear threshold when the structural metric is slightly above the median. Comparative tests show that when... When the value is 2.0, the transition of the enhancement effect is the most natural, which avoids the block effect caused by the threshold change and ensures the distinguishability. Calculations based on parameters: Substitute the parameters obtained in the previous steps into the formula: , , ; Current subregion structure metric ; Median of the whole graph structure measure ; First, calculate the exponential part of the Sigmoid function: ; ; Calculate the index value: ; Calculate the denominator: ; Calculate the incremental part: ; Finally, calculate the shearing threshold: ; This result indicates that, due to the structural measurement of this sub-region Slightly below the median of the entire chart The corresponding histogram equalization shearing threshold is set to Between the lower limit With median This means that for relatively flat or less textured areas, the system automatically lowers the shear threshold, limiting the magnitude of contrast enhancement, thereby effectively avoiding excessive amplification of background noise and meeting the expected effect of adaptive enhancement.

[0021] Based on the histogram equalization shearing threshold, the original gray-level histogram of the current rectangular sub-region is read, and the frequency of each gray level in the histogram is compared with the calculated shearing threshold. For comparison, for frequencies exceeding The portion is truncated, and the total number of redundant pixels removed is [number missing]. Including statistics, a uniform distribution strategy is adopted to... The gray levels are evenly distributed across all gray levels in the histogram. If the frequency exceeds the threshold again after distribution, the distribution is repeated until the frequency of all gray levels is no greater than the shearing threshold, resulting in a modified cumulative distribution function (CDF). A gray-level mapping table is then established based on this CDF to map the pixel gray values ​​in the original sub-regions to new gray values. After completing the mapping of all sub-regions, a bilinear interpolation algorithm is used for smoothing to eliminate the blocky effect at the boundaries of the sub-regions. Taking the center point of each sub-region as a reference, for any pixel, the mapping function of its four nearest neighbor sub-region center points is selected. The weight coefficients are calculated based on the Euclidean distance from the pixel to these four center points. The four mapping results are weighted and summed to obtain the final pixel gray value. The processed pixel data is reassembled in row and column order to construct a complete image matrix with the same size as the original image, generating an adaptively enhanced blade image.

[0022] The steps for obtaining the multi-scale top-hat transform atlas are as follows: Set up multiple sets of linear and elliptical structural elements of fixed size, and perform white top-hat transformation and black top-hat transformation on the adaptively enhanced blade image one by one according to size and shape. Record each output and archive it with size and shape index to generate a multi-scale top-hat transformation atlas.

[0023] Specifically, multiple sets of linear and elliptical structural elements of fixed dimensions are set. The dimensions and shapes are based on physical measurement statistics of common surface defects on blades. One hundred blade samples with typical polishing defects were selected, and the width distribution and directional characteristics of the scratches were measured using an electron microscope. Statistical results showed that the scratch width was mainly concentrated in the range of 3 to 15 pixels and exhibited multi-directional distribution characteristics. Therefore, a set of structural elements was constructed, including length... Linear structural elements of 3, 7, 11, and 15 pixels respectively, and their major and minor axes are respectively... , , Elliptical structuring elements and linear structuring elements of pixels are set at four directions: 0 degrees, 45 degrees, 90 degrees, and 135 degrees, to cover linear defects at different angles. A white-hat transformation is applied to each adaptively enhanced blade image according to its size and shape. This transformation is used to extract image details that are brighter than their neighbors and smaller than the structuring elements. The calculation formula is as follows: ,in This represents the output image of the white cap transform. The input represents the adaptively enhanced blade image. Represents the currently selected structural element. The morphological opening operation, which involves erosion followed by dilation, is used to eliminate bright details. Subtraction preserves the bright details. Simultaneously, a black top hat transformation is performed to extract image details darker than the neighborhood, making it particularly suitable for detecting indented scratches. The calculation formula is as follows: ,in This represents the output image of the Black Hat Transform. Represents an adaptively enhanced blade image. Represents the current structural element. The morphological closing operation, which is a dilation followed by erosion operation, is used to fill in dark details. Subtraction preserves the dark details. The above two transformations are performed on each set structuring element. For example, for a linear structuring element with a length of 7 pixels and an orientation of 45 degrees, a white top hat image and a black top hat image are calculated. All the calculated images are named and indexed according to the format of "transformation type_shape_size_angle", such as "WTH_Line_L7_A45". These image data are stored in the memory stack to form a multi-scale top hat transformation atlas containing multiple images with different scales and orientation feature response images.

[0024] The steps for obtaining the weighted texture feature map are as follows: Based on the multi-scale top-hat transform atlas, the neighborhood gray-level probability distribution is statistically analyzed by sliding a fixed neighborhood window on each image according to the image index. The information entropy of each neighborhood is calculated and the average value is taken as the weight factor of the corresponding image. The weight factors are arranged in the order of the image index to generate a local information entropy weight factor sequence. First, normalize the local information entropy weight factor sequence by summing it up. Then, multiply the multi-scale top-hat transform map atlas pixel by pixel by image index and pixel coordinate, sum them up and keep the same size as the adaptively enhanced blade image to generate a weighted texture feature map.

[0025] Specifically, based on the multi-scale top-hat transform atlas, each feature image in the atlas is read sequentially according to its image index, and the size of the fixed neighborhood window is set to... The window size is set with reference to the average granularity of the texture primitives on the blade surface, ensuring that the window contains sufficient statistical samples to reflect the consistency of local texture. The sliding operation is performed in one-pixel increments across each image, and for each pixel reached, its surrounding area is cropped. The grayscale values ​​of pixels within a neighborhood are analyzed. The frequency of each grayscale level within that neighborhood is counted, and the probability distribution of each grayscale level is calculated. The information entropy of that neighborhood is then calculated using the Shannon entropy principle. The calculation formula is as follows: ,in Image coordinates Local information entropy at the location, The total number of gray levels is usually set to 256. For grayscale indexing, gray levels within this neighborhood The probability of occurrence, i.e., gray level The number of pixels divided by the total number of pixels in the neighborhood is 81. For very small positive numbers, such as To prevent the logarithmic operation from resulting in a zero argument, the local entropy of all locations in the entire image is calculated by traversing the entire image. The entropy values ​​of all locations in the entire image are then summed and divided by the total number of pixels. The average value is taken as the global weight factor for this feature image. This weight factor reflects the richness of the structural elements of the corresponding scale and shape in extracting texture details. The larger the entropy value, the more non-uniform texture information is extracted. According to the arrangement order of the images in the image set, the calculated average entropy values ​​are stored sequentially in a floating-point array. For example, the average entropy of the first image is 4.5, the second is 3.2, and so on. Finally, a numerical sequence with a length equal to the number of images in the image set is constructed, generating the local entropy weight factor sequence.

[0026] First, normalize the local information entropy weight factor sequence by summing the values. Then, read all the weight values ​​in the sequence and calculate the sum of all weights. Each weight value in the sequence Divide by the sum To obtain the normalized weights The calculation formula is: ,in For the first The normalized weights corresponding to the images, The weights are the original local information entropy. The sum of all original weights is used to ensure that the sum of all normalized weights is 1. Then, the multiplication of the multiscale top-hat transform atlas pixel by pixel by image index and pixel coordinate is summed. A zero matrix with the exact same size as the adaptive enhancement blade image is initialized as an accumulator. This process is repeated for each image in the atlas. Each pixel value in the image and its corresponding normalized weight Multiply the products and add the results to the corresponding coordinates of the accumulator. The fusion calculation formula is as follows: ,in Coordinates after weighted fusion Pixel value at that location, This represents the total number of images in the multi-scale top-hat transform dataset. For the first Normalized weights of the images, For the first Image in coordinates The process of combining the grayscale values ​​of pixels at different scales not only integrates the brightness and darkness features at different scales, but also enhances the contribution of scales containing rich texture information through an entropy weighting mechanism. After all images are superimposed, the values ​​in the accumulator are truncated to ensure that the values ​​are within the effective grayscale range. If the value exceeds 255, it is truncated to 255; if it is less than 0, it is truncated to 0. Finally, the fused single-channel grayscale image is output, generating a weighted texture feature map.

[0027] The steps for obtaining the texture binarization mask are as follows: Traverse the weighted texture feature map to count the pixel intensity histogram and calculate the cumulative distribution. Locate the pixel intensity corresponding to the inflection point of the cumulative distribution as the segmentation threshold. Mark the pixels with pixel intensity greater than the segmentation threshold as foreground and set them to 1. Set the pixels with pixel intensity not greater than the segmentation threshold to zero to generate a texture binarization mask.

[0028] Specifically, the weighted texture feature map is traversed to statistically analyze the pixel intensity histogram and calculate the cumulative distribution. A contiguous memory space is allocated to construct a histogram array with a length of 256 to match the quantization levels of an 8-bit grayscale image. The grayscale value of each pixel in the weighted texture feature map is read row by row and column by column, and this value is used as the array index to increment the corresponding frequency by 1. After the image scanning is completed, the frequency of each grayscale level recorded in the array is divided by the total number of pixels in the image to obtain a normalized grayscale probability distribution sequence. Then, the probability distribution sequence is cumulatively summed in ascending order of grayscale level, using the following formula: ,in Represents grayscale level The corresponding cumulative probability, Represents grayscale level The probability of occurrence is used to construct a monotonically increasing cumulative distribution curve. The pixel intensity corresponding to the inflection point of the cumulative distribution is used as the segmentation threshold. The selection of this threshold adopts a geometric determination method based on the maximum deviation distance. First, the starting coordinate point of the cumulative distribution curve is determined. and the termination coordinate point Establish a connection point With point The reference line is then used to iterate through every point on the curve. Calculate the Euclidean distance from the point to the reference line using the following formula: ,in grayscale The corresponding distance, The x-coordinate of the current point is its gray level. The ordinate of the current point represents the cumulative probability. This distance reflects the degree to which the current gray level deviates from a uniform distribution. By comparing all calculated distance values, the maximum distance is found. The corresponding gray level The optimal segmentation threshold is determined by this method. This method utilizes the statistical characteristics that the foreground scratch pixels account for a very small proportion and have a high gray level in the image. It can locate the cutoff point of the background noise distribution. Pixels with a pixel intensity greater than the segmentation threshold are marked as foreground and set to one, while pixels with a pixel intensity not greater than the segmentation threshold are set to zero, thus generating a texture binarization mask.

[0029] The steps to obtain the set of connected regions with scratches are as follows: Based on the texture binarization mask, the foreground pixels are scanned row by row according to the eight-neighborhood connectivity rule and equivalence class merging is completed. After unifying the labels, a unique label is assigned to each connected component and the set of pixel coordinates and the bounding rectangle range are recorded to generate a connected component labeling map. Based on the connected component labeling graph, the number of pixels contained in each unique label is calculated as the pixel area. The area setting value is set as the lower limit for noise removal. Unique labels with pixel areas smaller than the area setting value and their corresponding pixel coordinate sets are deleted. The results are summarized and retained according to the unique label index to generate a set of connected regions with scratches.

[0030] Specifically, based on the texture binarization mask, the foreground pixels are scanned row by row according to the eight-neighbor connectivity rule, and equivalence class merging is completed. First, an integer label matrix of the same size as the mask image is initialized, and all elements are preset to 0. At the same time, an equivalence relation table is established to record label conflicts. A raster scan method is used, that is, starting from the top left corner of the image, each pixel in the mask is traversed from left to right and from top to bottom. When the value of the current pixel is detected to be 1, the pixel label status in its eight-neighbor range (i.e., the four scanned positions of top left, top right, top right, and left side) is checked. If the label values ​​of these four neighbor positions are all 0, it indicates that the current pixel belongs to a new connected region, and a new unique integer label is assigned to the pixel. If there is a non-zero label in the neighbor position, the label is directly applied. Assigning a label to the current pixel: If there are two or more distinct non-zero labels in its neighborhood, it means the current pixel connects two previously considered independent connected components. In this case, the smallest label is assigned to the current pixel, and these distinct label pairs are recorded in the equivalence relation table. After the first full-image scan, the disjoint-set data structure algorithm is used to process the equivalence relation table, merging all related labels under the same root label to resolve label conflicts. Then, a second full-image scan is performed, using the merged mapping relationship to replace the temporary labels in the label matrix with the final unified labels. After unifying the labels, a unique label is assigned to each connected component, and the set of pixel coordinates and the bounding rectangle range are recorded. While updating the labels, a data structure is maintained for each unique label, and the pixel coordinates belonging to that label are updated in real time. Add it to the coordinate list, and dynamically update the bounding rectangle boundary of the connected component through comparison operations, i.e., continuously refresh it. , , and The values ​​are used to ensure that the final recorded rectangular range can accurately surround all pixels of the connected component, generating a connected component labeling map.

[0031] Based on the connected component labeling graph, the number of pixels contained in each unique label is calculated as the pixel area. By traversing the list storing connected component information, the total number of coordinate points in the coordinate set corresponding to each unique label is counted. This total number is used as a physical indicator to measure the size of the connected component. The area is set as the lower limit for noise removal. The process of setting this threshold is based on rigorous statistical analysis and actual sample measurement. First, two hundred images of qualified blades that have been manually inspected and confirmed to have smooth surfaces and no scratches or defects are collected as a negative sample set. Image enhancement, binarization, and connected component labeling operations are performed on these negative sample sets in the same manner as the previous steps. All tiny connected spots caused by surface micro-textures or sensor noise are extracted. The pixel area of ​​these noise spots is counted, a noise area distribution histogram is constructed, and the average value of the distribution is calculated. with standard deviation According to the normal distribution In principle, and with an additional safety margin, the calculation logic for the area setting value is the average value plus five times the standard deviation, i.e. For example, in an actual calibration process, the average area of ​​the noise spots was measured to be... pixels, with a standard deviation of . 1 pixel, substituting into the calculation yields Round up to determine the area setting value. This setting, for each pixel, aims to completely eliminate non-scratch-related random noise with extremely high confidence. It removes unique identifiers and their corresponding pixel coordinate sets for pixels with areas smaller than a set area value, and compares the areas of all extracted connected components one by one with this set value. For areas smaller than... Connected components of a given pixel are identified as background noise and completely removed from the results list, retaining only those with an area greater than or equal to [a certain value]. Connected regions of each pixel are used as suspected scratch regions. The results are summarized and retained by indexing by a unique number to generate a set of connected scratch regions.

[0032] The steps to obtain the regional distribution density vector are as follows: Based on the set of connected regions of the scratch, the pixel coordinates of each connected region are read by a unique label and the centroid coordinates are calculated. The number of pixels in each connected region is counted as the pixel area. The number of pixels per unit area is set and the adaptively enhanced blade image is divided into a unit area grid. The number of connected regions and the ratio of the pixel area of ​​the connected region to the number of pixels in the grid are counted grid by grid to generate a region distribution density vector.

[0033] Specifically, based on the set of connected regions of the scratches, the pixel coordinates of each connected region are read by a unique label and the centroid coordinates are calculated. The number of pixels in each connected region is counted as the pixel area. Then, each scratch object stored in the set is traversed, and the row coordinates of all pixels contained in it are extracted. with column coordinates Using the summation formula and Calculate the position of the centroid, where This represents the total number of pixels in the connected region. For the first The coordinates of each pixel are used to calculate the centroid coordinates. With pixel area This is stored together as a core attribute of the scratch, the number of pixels per unit area is set, and the adaptively enhanced blade image is divided into a unit area grid, the set value of which is... The pixel setting is based on the minimum field of view requirement for local uniformity detection in industrial polishing standards, i.e., within... The defect distribution is evaluated within a range of pixels, and a regular grid system is established on the image according to this size. If the image edges are insufficient... For each pixel, edge regions are discarded. The number of connected regions and the proportion of the pixel area of ​​a connected region to the total number of pixels in the grid are counted grid by grid. For each grid, it is determined whether the centroid of all scratches falls within the grid. The total number of centroids falling within the grid is counted as the number of connected regions. At the same time, the pixel areas of all scratches falling within the grid are accumulated, and the accumulated area is divided by the total number of pixels in the grid. Once the area percentage is obtained, the quantity values ​​obtained from the statistics of all grids in the entire map and the area percentage values ​​are arranged in grid index order to form a two-dimensional data sequence, generating a regional distribution density vector.

[0034] The steps for obtaining the polishing uniformity rating index are as follows: Based on the regional distribution density vector, the number density sequence and area proportion sequence are organized according to the grid index per unit area within the entire map. The standard deviation is calculated on the number density sequence and the standard deviation is calculated on the area proportion sequence. The coefficient of variation of number density and the coefficient of variation of area proportion are obtained by dividing the corresponding standard deviation by the corresponding mean, and a set of uniformity statistical parameters is generated. Based on the set of uniformity statistical parameters, the coefficient of variation of quantity density and the coefficient of variation of area ratio are located and mapped to the level according to the preset uniformity level range to generate a polishing uniformity rating index.

[0035] Specifically, based on the regional distribution density vector, the quantity density sequence and area percentage sequence are organized separately according to the grid index per unit area across the entire map. The standard deviation is calculated on both the quantity density sequence and the area percentage sequence. First, all values ​​in the quantity density sequence are read, and the average value of the sequence is calculated. Then, the square of the difference between each value and the mean is calculated, summed, divided by the total number of grid cells minus one to obtain the variance, and the square root is taken to obtain the standard deviation of the number density. Similarly, perform the same statistical operation on the area percentage sequence and calculate its average value. with standard deviation The coefficients of variation for quantity density and area ratio are obtained by dividing the corresponding standard deviation by the corresponding mean, respectively. The calculation formulas are as follows: and These two coefficients of variation eliminate the influence of dimensions and can objectively reflect the spatial dispersion of the scratches. A smaller coefficient of variation indicates a more uniform scratch distribution, while a larger coefficient indicates the presence of local clustering. The calculated... and As a core parameter describing polishing quality, a set of uniformity statistical parameters is generated.

[0036] Based on the set of uniformity statistical parameters, the coefficient of variation of quantity density and the coefficient of variation of area ratio are positioned and mapped according to the preset uniformity level range. The setting of this level range refers to the industry-standard precision machining surface quality standard ISO 10110, and has been fine-tuned based on actual production line yield data. The first level (excellent) range is set as the coefficient of variation. The second-level (good) range is The third-level (qualified) range is: The fourth level (unqualified) range is: The specific mapping logic is as follows: First, determine the following respectively. and If the two levels belong to the same grade range, the grade is output directly; if they do not belong to the same grade range, the lower grade is selected as the final rating, following the strict quality control principle of "choosing the lower grade over the higher grade". For example, if It belongs to level one, but If it belongs to level three, the final result is determined to be level three. This determination mechanism ensures that if there is significant non-uniformity in either the quantity distribution or the area distribution, it will be downgraded, thereby ensuring the high standard requirement of surface consistency of the blades leaving the factory, and finally outputting the determination result to generate a polishing uniformity rating index.

Claims

1. A blade polishing uniformity evaluation system based on texture analysis, characterized in that, The system includes: The local illumination sensing module is used to divide the blade surface image into multiple rectangular sub-regions based on the acquired blade surface image, calculate the adaptive local structure metric, and generate an adaptive enhanced blade image. The multi-scale texture extraction module is used to call line and elliptical structural elements of different sizes according to the adaptively enhanced blade image, perform white top hat transformation and black top hat transformation respectively, generate a multi-scale top hat transformation map set, calculate the local information entropy of each image in the multi-scale top hat transformation map set as a weight factor, and calculate and generate a weighted texture feature map. The scratch region segmentation module is used to statistically analyze the pixel intensity distribution and set a segmentation threshold based on the weighted texture feature map, mark pixels with intensity above the segmentation threshold as foreground, perform binarization processing to generate a texture binarization mask, and mark the connected components of the texture binarization mask to generate a set of scratch connected regions. The uniformity quantification evaluation module is used to extract the centroid coordinates of each connected region based on the set of connected regions of the scratch, calculate the number and area ratio of connected regions per unit area, generate a region distribution density vector, calculate the standard deviation and coefficient of variation of each element in the region distribution density vector, compare and match the coefficient of variation with the preset uniformity level range, and generate a polishing uniformity rating index. The steps for obtaining the adaptively enhanced blade image are as follows: Based on the collected blade surface image, the blade surface image is divided into several rectangular sub-regions with a fixed size. The occurrence frequency of gray levels in each rectangular sub-region is counted and normalized to a gray level probability distribution, forming a gray level probability sequence of the rectangular sub-region. Based on the gray-level probability sequence of the rectangular sub-region, the adaptive local structure metric is calculated using the following formula: ; in, An adaptive local structure metric for the rectangular subregion r. Let j be the grayscale value corresponding to the grayscale index j. Let be the probability of gray level index j in the rectangular subregion r. Let be the average gray level of the rectangular sub-region r, and be the weighted average of the products of each gray level and its probability. The smallest positive constant is used to prevent the denominator from being zero. The global grayscale variance of the entire original blade image; Based on the adaptive local structure metric, the histogram equalization shearing threshold of the rectangular sub-region is calculated using the following formula: ; in, The histogram equalization shearing threshold for the rectangular sub-region r. This is the lower limit of the shear threshold. This is the upper limit of the shear threshold. For adaptive local structure measurement, The median of the adaptive local structure metric for all rectangular subregions. Positive real numbers used to control the steepness of the curve; Based on the histogram equalization shearing threshold, the contrast-limited histogram equalization operation is performed on each rectangular sub-region and then stitched together to generate an adaptive enhanced blade image. The steps for obtaining the weighted texture feature map are as follows: Based on the multi-scale top-hat transform atlas, the neighborhood gray-level probability distribution is statistically analyzed by sliding a fixed neighborhood window on each image according to the image index. The information entropy of each neighborhood is calculated and the average value is taken as the weight factor of the corresponding image. The weight factors are arranged in the order of the image index to generate a local information entropy weight factor sequence. First, the local information entropy weight factor sequence is normalized by summing. Then, the multi-scale top-hat transform map is multiplied pixel by pixel by image index and pixel coordinate, and the result is summed while maintaining the same size as the adaptive enhanced blade image to generate a weighted texture feature map.

2. The blade polishing uniformity evaluation system based on texture analysis according to claim 1, characterized in that, The steps for obtaining the multi-scale top-hat transformation atlas are as follows: Set up multiple sets of linear and elliptical structural elements of fixed size, and perform white top hat transformation and black top hat transformation on the adaptive enhanced blade image one by one according to size and shape. Record each output and archive it with size and shape index to generate a multi-scale top hat transformation atlas.

3. The blade polishing uniformity evaluation system based on texture analysis according to claim 1, characterized in that, The steps for obtaining the texture binarization mask are as follows: The weighted texture feature map is traversed to statistically analyze the pixel intensity histogram and calculate the cumulative distribution. The pixel intensity corresponding to the inflection point of the cumulative distribution is located as the segmentation threshold. Pixels with a pixel intensity greater than the segmentation threshold are marked as foreground and set to 1, while pixels with a pixel intensity not greater than the segmentation threshold are set to zero, thus generating a texture binarization mask.

4. The blade polishing uniformity evaluation system based on texture analysis according to claim 1, characterized in that, The steps for obtaining the set of connected regions of the scratches are as follows: Based on the texture binarization mask, the foreground pixels are scanned row by row according to the eight-neighborhood connectivity rule and equivalence class merging is completed. After unifying the labels, a unique label is assigned to each connected component and the set of pixel coordinates and the bounding rectangle range are recorded to generate a connected component labeling map. Based on the connected component labeling graph, the number of pixels contained in each unique label is calculated as the pixel area. The area setting value is set as the noise removal lower limit. Unique labels with pixel areas smaller than the area setting value and their corresponding pixel coordinate sets are deleted. The results are summarized and retained according to the unique label index to generate a scratch connected region set.

5. The blade polishing uniformity evaluation system based on texture analysis according to claim 1, characterized in that, The steps for obtaining the regional distribution density vector are as follows: Based on the set of connected regions of the scratch, the pixel coordinates of each connected region are read by a unique label and the centroid coordinates are calculated. The number of pixels in each connected region is counted as the pixel area. The number of pixels per unit area is set and the adaptive enhanced blade image is divided into a unit area grid. The number of connected regions and the ratio of the pixel area of ​​the connected region to the number of pixels in the grid are counted grid by grid to generate a region distribution density vector.

6. The blade polishing uniformity evaluation system based on texture analysis according to claim 1, characterized in that, The steps for obtaining the polishing uniformity rating index are as follows: Based on the regional distribution density vector, the number density sequence and area proportion sequence are organized according to the grid index per unit area within the entire map. The standard deviation is calculated on the number density sequence and the standard deviation is calculated on the area proportion sequence. The coefficient of variation of number density and the coefficient of variation of area proportion are obtained by dividing the corresponding standard deviation by the corresponding mean, and a set of uniformity statistical parameters is generated. Based on the set of uniformity statistical parameters, the coefficient of variation of quantity density and the coefficient of variation of area ratio are located and mapped according to the preset uniformity level range to generate a polishing uniformity rating index.

Citation Information

Patent Citations

  • Bridge detection image recognition method and system based on artificial intelligence

    CN118823481A

  • Code spraying quality detection method of intelligent code spraying machine

    CN119379686A