An intelligent measurement method for blade size of industrial fans

By calculating and repairing the hole parallax area in the binocular camera blade measurement, the problem of inaccurate blade size measurement is solved and more accurate blade size measurement is achieved.

CN118365696BActive Publication Date: 2024-10-18WUXI MINGTONG POWER IND CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410790329.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-18
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

When the binocular camera measures the blade size, the hole parallax position is lost due to the blade texture and the shooting angle, resulting in inaccurate blade size measurement.

Method used

By obtaining the left and right image comparison blocks of the wind blade surface, calculating the deviation metric coefficient and recovery range, initially restoring the hole parallax area, dividing the unsmooth area, screening the abnormal parallax area for repair, and obtaining the disparity map after the hole filling is completed, and then merge it Image captures blade dimensions.

Benefits of technology

It improves the accuracy of blade size measurement, increases the authenticity of cavity recovery, and makes the blade size measurement results more accurate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118365696B_ABST
    Figure CN118365696B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and in particular to an intelligent measurement method for the size of fan blades of industrial fans, comprising: obtaining the deviation measurement coefficient of each pixel point in each hole parallax area on the left and right eye images in the comparison area group according to the difference in the grayscale value of each pixel point in each hole parallax area corresponding to each pixel point in the fan blade area of ​​the left and right eye images in the comparison area group; obtaining the initially restored hole parallax area according to the restoration range of each pixel point on the boundary of each hole parallax area. According to the normalization degree after associating any two non-smooth areas of each initially restored hole parallax area, screen out abnormal parallax areas from the non-smooth areas; repair the abnormal parallax area to obtain a parallax map after the hole is filled; merge the left and right eye images according to the parallax map after the hole is filled, and obtain the size of the fan blade in the merged image. The present invention makes the fan blade size measurement result more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an intelligent measurement method for the blade size of an industrial fan. Background Art

[0002] In industrial fans, the size and shape of the blades are critical to their performance. Therefore, in order to ensure the efficiency and stability of the fan, the size of the blades needs to be accurately measured. Blade defects may cause the fan to run unstably, break or fall off, which in turn causes safety accidents and equipment damage. Defective blades will affect the wind output effect of the fan, reduce wind energy utilization, and increase energy consumption; defects will accelerate the wear and aging of the blades, shorten their service life, and increase maintenance and replacement costs. The binocular camera can simultaneously obtain image data from the left and right perspectives to achieve a stereoscopic visual effect, thereby providing more depth information, which helps to accurately measure and analyze subtle defects on the surface of the blades. In the process of parallax matching by the binocular camera, first of all, due to the random placement of the blades, the blades’ own texture and the occlusion of the blade surface at the camera shooting angle will cause the loss of defect information, reduce the accuracy of blade defect detection, and may lead to inaccurate blade size measurement. Summary of the invention

[0003] The present invention provides an intelligent blade size measurement method for an industrial fan, so as to solve the problem that in the process of parallax matching of an existing binocular camera, defect information is lost and the blade size measurement is inaccurate due to the hollow parallax position caused by the occlusion of the blade's own texture and the blade surface at the camera shooting angle.

[0004] The present invention provides an intelligent method for measuring the size of fan blades of an industrial fan using the following technical solutions:

[0005] An embodiment of the present invention provides an intelligent method for measuring the size of a fan blade of an industrial fan, the method comprising the following steps:

[0006] Acquire several comparison area groups of the left and right eye images of the wind blade surface; wherein each comparison area group is composed of each hole parallax area obtained by parallax matching of the wind blade area in the left and right eye images, and each hole parallax area corresponds to an area in the left and right eye images; each pixel point in the hole parallax area has no parallax value, and each pixel point outside the hole parallax area corresponds to a parallax value;

[0007] According to the difference in the grayscale value of each pixel point in each hole parallax area corresponding to the wind blade area of ​​the left and right eye images in the comparison area group, the deviation measurement coefficient of each pixel point in each hole parallax area corresponding to the left and right eye images in the comparison area group is obtained;

[0008] According to the deviation measurement coefficient of each pixel point on the boundary of each hole disparity region corresponding to the left and right eye images in the comparison area group, the restoration range of each pixel point on the boundary of each hole disparity region is obtained; according to the restoration range of each pixel point on the boundary of each hole disparity region, a preliminary restored hole disparity region is obtained; each pixel point in the preliminary restored hole disparity region corresponds to a disparity value;

[0009] According to the disparity value of each pixel in the initially restored hole disparity area, a number of non-smooth areas are divided in the initially restored hole disparity area;

[0010] According to the centroid distance between any two non-smooth areas in the initially restored hole disparity area and the number of pixels in the non-smooth area, the normalization degree after associating any two non-smooth areas in each initially restored hole disparity area is obtained;

[0011] According to the normalization degree of association between any two non-smooth areas in each initially restored hole disparity area, an abnormal disparity area is screened out from the non-smooth area; the abnormal disparity area is repaired to obtain a disparity map after the hole is filled;

[0012] The left and right images are merged according to the disparity map after the hole filling is completed to obtain the size of the wind blade in the merged image.

[0013] Preferably, the step of obtaining the deviation measurement coefficient of each pixel point in each hole parallax area corresponding to the left and right eye images in the comparison area group according to the difference in the grayscale value of each pixel point in each hole parallax area corresponding to the wind blade area of ​​the left and right eye images in the comparison area group includes the following specific steps:

[0014] Obtain the internal and external parameters and baseline length of the binocular camera. According to the internal and external parameters of the binocular camera, convert the number of pixels of the baseline length into the displacement radius. ;

[0015] The first In the hole parallax area The pixel points correspond to the pixel points in the wind blade area of ​​the left image in the comparison area group, which are recorded as target pixel points;

[0016] With the target pixel as the center, With radius as the radius, a quarter circle is constructed from the horizontal right direction to the vertical upward direction, and the pixel points on the arc of the quarter circle that belong to the wind leaf area in the left image are recorded as reference pixels. Several arc segments on the arc of the quarter circle that do not belong to the wind leaf area in the left image are counted, and the maximum value of the lengths of all arc segments is recorded as the splitting length of the target pixel;

[0017] According to the reference pixel point of the target pixel point and the acquisition method of the split length, the first In the hole parallax area The pixel points correspond to the reference pixel points and split lengths of the pixel points corresponding to the fan blade area of ​​the right image in the comparison area group;

[0018] According to the grayscale value difference and splitting length of the reference pixel points corresponding to the pixel points in the wind blade area of ​​the left and right eye images in the comparison area group in each hole parallax area, the deviation measurement coefficient of each pixel point in each hole parallax area corresponding to the left and right eye images in the comparison area group is obtained.

[0019] Preferably, the deviation measurement coefficient of each pixel point in each hole parallax area corresponding to the left and right eye images in the comparison area group is obtained according to the gray value difference of the reference pixel point corresponding to the pixel point in the wind blade area of ​​the left and right eye images in the comparison area group and the splitting length, including the specific formula as follows:

[0020] ;

[0021] In the formula, Indicates In the hole parallax area The pixel points correspond to the deviation measurement coefficients on the left and right eye images in the comparison area group; Indicates In the hole parallax area The pixel points correspond to the number of reference pixel points of the corresponding pixel points in the wind blade area of ​​the left eye image in the comparison area group; Indicates In the hole parallax area The pixel points correspond to the number of reference pixel points of the corresponding pixel points in the wind blade area of ​​the right eye image in the comparison area group; Indicates In the hole parallax area The pixel points correspond to the number of all reference pixel points corresponding to the pixel points in the wind blade area of ​​the left and right eye images in the comparison area group; Indicates In the hole parallax area The pixel points correspond to the maximum value of the split lengths of the corresponding pixel points in the wind blade area of ​​the left and right eye images in the comparison area group; Indicates In the hole parallax area The pixel point corresponds to the first pixel point among all the reference pixel points corresponding to the pixel points in the wind blade area of ​​the left and right eye images in the comparison area group. Gray value of reference pixel; Indicates In the hole parallax region The pixel point corresponds to the average grayscale value of all reference pixel points corresponding to the pixel points in the wind blade area of ​​the left and right eye images in the comparison area group; Indicates In the hole parallax area The standard deviation of the grayscale values ​​of all reference pixel points corresponding to the pixel points in the wind blade area of ​​the left and right eye images in the comparison area group; is the absolute value function.

[0022] Preferably, the restoration range of each pixel point on the boundary of each hole disparity region is obtained according to the deviation measurement coefficient of each pixel point on the boundary of each hole disparity region corresponding to the left and right eye images in the comparison region group, and the specific formula included is as follows:

[0023] ;

[0024] In the formula, Indicates The first The restoration range of pixels; Indicates The first The pixel points correspond to the deviation measurement coefficients on the left and right eye images in the comparison area group; Indicates The maximum value of the deviation metric coefficients of all pixels on the boundary of the hole disparity region corresponding to the left and right eye images in the comparison region group; Indicates The minimum value of the deviation metric coefficient of all pixels on the boundary of the hole disparity region corresponding to the left and right eye images in the comparison region group; is the floor rounding function; is the preset threshold.

[0025] Preferably, the method of obtaining the initially restored hole disparity region according to the restored range of each pixel point on the boundary of each hole disparity region comprises the following specific steps:

[0026] Constructed with The first The pixel point is the center and the side length is The square neighborhood of ; the average of the disparity values ​​of all pixels with disparity values ​​in the neighborhood is taken as the first The disparity value of pixels; among them, Indicates The first The restoration range of pixels;

[0027] After assigning the disparity value to all pixels on the boundary, The hole parallax area is recorded as the first restored hole parallax area;

[0028] According to The first A method for obtaining the restoration range of each pixel point, and obtaining the restoration range of each pixel point on the boundary of the hole parallax area for the first restoration;

[0029] Using the restored range of each pixel point on the boundary of the first restored hole disparity region, and according to the method of obtaining the first restored hole disparity region, the second restored hole disparity region is obtained;

[0030] And so on, the initially restored hole parallax area is obtained.

[0031] Preferably, the method of dividing a plurality of non-smooth regions in the initially restored hole disparity region according to the disparity value of each pixel point in the initially restored hole disparity region comprises the following specific steps:

[0032] According to the disparity value of each pixel in each initially restored hole disparity region, the gradient of each pixel in each initially restored hole disparity region is obtained using the Sobel operator;

[0033] In each initially restored hole disparity region, The pixel point within the eight-neighborhood of the pixel point is recorded as the main pixel point;

[0034] Calculate the The angle between the gradient of each pixel and each main pixel is The angle between the gradients of pixels and all the main pixels will be The angle between the main pixel and the pixel point, denoted as The sub-pixel points corresponding to the pixel points;

[0035] In the sub-pixel points corresponding to all the pixel points in each initially restored hole disparity region, continuous adjacent sub-pixel points constitute a non-smooth region, thereby obtaining a plurality of non-smooth regions.

[0036] Preferably, the step of obtaining the normalization degree of association between any two non-smooth areas in each initially restored hole disparity area according to the centroid distance between any two non-smooth areas in the initially restored hole disparity area and the number of pixels in the non-smooth area comprises the following specific steps:

[0037] In each initially restored hole parallax region, the Euclidean distance between the centroids of any two non-smooth regions is counted, and the minimum value of the Euclidean distances between each non-smooth region and the centroids of all other non-smooth regions is recorded as the final Euclidean distance between the centroids of each non-smooth region;

[0038] According to the Euclidean distance between the centroids of any two non-smooth areas in the initially restored hole disparity area, the final Euclidean distance between the centroids of all non-smooth areas and the number of pixels in the non-smooth area, the normalization degree after associating any two non-smooth areas in each initially restored hole disparity area is obtained.

[0039] Preferably, the normalization degree after associating any two non-smooth areas in each initially restored hole parallax area is obtained according to the Euclidean distance between the centroids of any two non-smooth areas in the initially restored hole parallax area, the final Euclidean distance between the centroids of all non-smooth areas, and the number of pixels in the non-smooth area, including the specific formula as follows:

[0040] ;

[0041] In the formula, Indicates The first The non-smooth area and The normalization degree after associating the non-smooth regions; Indicates The first The non-smooth area and The Euclidean distance between the centroids of the non-smooth regions; Indicates The mean of the final Euclidean distances between the centroids of all non-smooth regions in the initially restored hole disparity region; Indicates The first The number of all pixels in the non-smooth area; Indicates The first The number of all pixels in the non-smooth area; is the normalization function; is the absolute value function.

[0042] Preferably, the method of screening out abnormal disparity regions from the non-smooth regions according to the normalization degree of association between any two non-smooth regions in each initially restored hole disparity region comprises the following specific steps:

[0043] When The maximum value of the norm after associating the non-smooth area with all the non-smooth areas is less than the preset value When The non-smooth areas are recorded as abnormal disparity areas.

[0044] Preferably, the repairing of the abnormal disparity area to obtain the disparity map after the hole filling is completed includes the following specific steps:

[0045] The average of the disparity values ​​of all adjacent pixels outside each abnormal disparity area is recorded as the standard disparity value;

[0046] The updated disparity value of each pixel in each abnormal disparity area is set to the standard disparity value;

[0047] In all initially restored hole disparity regions, the disparity value of each pixel in each abnormal disparity region is replaced with the updated disparity value to obtain a disparity map after the hole filling is completed.

[0048] The beneficial effects of the technical solution of the present invention are as follows: according to the difference in the grayscale values ​​of the corresponding pixels in the wind blade area of ​​the left and right eye images in the comparison area group corresponding to each pixel in each hole disparity area, the deviation measurement coefficient of each pixel in each hole disparity area corresponding to the left and right eye images in the comparison area group is obtained; according to the deviation measurement coefficient of each pixel on the boundary of each hole disparity area corresponding to the left and right eye images in the comparison area group, the recovery range of each pixel on the boundary of each hole disparity area is obtained; according to the recovery range of each pixel on the boundary of each hole disparity area, the initially restored hole disparity area is obtained; the initially restored hole disparity area can be accurately obtained, and then the disparity map after the hole filling is accurately obtained. According to the normalization degree after the association of any two non-smooth areas in each initially restored hole disparity area, the abnormal disparity area is screened out from the non-smooth area; the abnormal disparity area is repaired to obtain the disparity map after the hole filling is completed. The accuracy of the wind blade size measurement is improved. Further, the abnormal disparity area is obtained by screening and analyzing the uneven disparity in the initial recovery result, and finally the disparity map after the hole filling is completed is obtained. Compared with the method of directly filling the parallax according to the existing global mean, the authenticity of the hole recovery is increased, making the wind blade size measurement result more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 A flowchart of the steps of an intelligent method for measuring the size of a fan blade of an industrial fan according to the present invention;

[0051] Figure 2 A grayscale image of a wind blade of a wind turbine provided in this embodiment;

[0052] Figure 3 A left-eye image of a wind blade in a set of images to be inspected provided in this embodiment;

[0053] Figure 4 A right-eye image of a wind blade in a set of images to be inspected provided in this embodiment;

[0054] Figure 5 A disparity map provided for this embodiment;

[0055] Figure 6 A preliminarily restored hole disparity region map provided in this embodiment;

[0056] Figure 7 This is a disparity map after hole filling provided by this embodiment. DETAILED DESCRIPTION

[0057] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method, structure, features and effects of an intelligent blade size measurement method for an industrial fan proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0058] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0059] The specific scheme of the intelligent measurement method for the blade size of an industrial fan provided by the present invention is described in detail below with reference to the accompanying drawings.

[0060] See also Figure 1 , which shows a flowchart of a method for intelligently measuring the size of a fan blade for an industrial fan provided by an embodiment of the present invention, the method comprising the following steps:

[0061] Step S001: Acquire several comparison area groups of the left and right eye images of the wind blade surface; wherein each comparison area group is composed of each hole parallax area obtained by parallax matching of the wind blade area in the left and right eye images, and the area corresponding to each hole parallax area in the left and right eye images.

[0062] First, after the wind blades are produced, they enter the quality inspection process. The quality inspection equipment uses a binocular camera mounted on the top to take a bird's-eye view of the wind blade surface, and can obtain a set of images to be inspected corresponding to a single wind blade. A set of images to be inspected is grayed to obtain a grayscale image group to be tested.

[0063] It should be noted that after the production of the industrial fan blades is completed, workers or robotic arms will place the blades on the test stand. The placement process does not require accurate placement at the specified coordinates, but only ensures that the blades are within the camera acquisition range and that both camera units of the binocular camera can capture the complete blade area. However, during the shooting process, due to the defective angle, it may occasionally be clear in one image but not in the other, or both may be unclear, which will interfere with the accuracy of the recognition. In this embodiment, the fan blades are as follows: Figure 2 As shown in the figure, the left image of the wind blade in a set of images to be inspected is as follows: Figure 3 As shown, the right image of the wind blade is as follows Figure 4 shown.

[0064] The grayscale image group to be tested is input into the semi-global stereo matching algorithm to obtain the disparity value corresponding to each pixel point and form the corresponding disparity map, such as Figure 5 shown.

[0065] It should be noted that, due to the great grayscale difference between the wind blade area and the background area, the embodiment of the present invention adopts a segmentation neural network to identify and segment the wind blade area and the background area in the grayscale image to be tested. The relevant content of the segmentation neural network is: the segmentation neural network used in this embodiment is the Mask R-CNN neural network; the data set used is the grayscale image data set to be tested. Among them, Mask R-CNN is a well-known technology, and the specific method is not introduced here. The full name of Mask R-CNN in Chinese is "Mask Region-based Convolutional Neural Network", and the full name in English is "Mask Region-based Convolutional Neural Network". The pixels that need to be segmented are divided into 2 categories, that is, the label annotation process corresponding to the training set is: a single-channel semantic label, the corresponding position pixel point belongs to the wind blade area is marked as 0, and the pixel point belongs to the background area is marked as 1. The task of the network is classification, so the loss function used is the cross entropy loss function. The wind blade area and the background area in the grayscale image to be tested are obtained by segmenting the neural network. This process is a well-known technology, and the specific method is not introduced here.

[0066] Thus, the wind blade area in the left and right eye images in the grayscale image group to be tested is disparity matched to obtain a matching result. The pixel positions where there is no disparity value in the wind blade area disparity matching result are recorded as vacant disparity points (zero disparity is 0, not null where there is no value), and continuous adjacent vacant disparity points form a hole disparity area, and several hole disparity areas are obtained.

[0067] Among them, the semi-global stereo matching algorithm is a disparity matching algorithm, which is a well-known technology and the specific method will not be introduced here.

[0068] Step S002: Obtain the deviation measurement coefficient of each pixel point in each hole parallax area on the left and right eye images in the comparison area group according to the difference in grayscale values ​​of the pixel points corresponding to each pixel point in each hole parallax area in the wind blade area of ​​the left and right eye images in the comparison area group.

[0069] It should be noted that the hole disparity area is in the corresponding range of the left and right eye images. The disparity is the position deviation of the pixel points in the left and right eye images of the same pixel point imaged by the left and right eye cameras. When the computer cannot find a corresponding point in the right eye image for any point in the left eye image, the computer cannot calculate the position difference between the pixels (i.e., disparity). Therefore, the hole disparity area represents an area in the left eye image where the computer cannot recognize the corresponding pixel points. Therefore, the corresponding areas are found in the left and right eye images respectively through the corresponding pixel point positions of the hole disparity area in the disparity map, which are recorded as the comparison area group.

[0070] It should be noted that after obtaining the comparison area group, the grayscale change of the comparison area group generated by the baseline length of the binocular camera is analyzed. The actual distance between the left and right cameras of the binocular camera is used as the baseline, and the baseline length is converted into the number of pixels through the internal and external parameters of the binocular camera; then the disparity recovery range of the current pixel is screened through the similarity relationship between the grayscale change of the pixel in the binocular image and the pixel on the rotation path of the displacement radius.

[0071] The internal and external parameters of the existing binocular camera convert the baseline length into the number of pixels, which is recorded as the displacement radius ;

[0072] The first In the hole parallax area The pixel points correspond to the pixel points in the wind blade area of ​​the left image in the comparison area group, which are recorded as target pixel points.

[0073] With the target pixel as the center, With radius as , a quarter circle is constructed from the horizontal right direction to the vertical upward direction, and the pixel points on the arc of the quarter circle that belong to the wind leaf area in the left eye image are recorded as reference pixels. Several arc segments on the arc of the quarter circle that do not belong to the wind leaf area in the left eye image are counted, and the maximum value of the lengths of all arc segments is recorded as the splitting length of the target pixel.

[0074] According to the above method, we get In the hole parallax area The pixel points correspond to several reference pixel points and the splitting length of the pixel points corresponding to the pixel points in the wind blade area of ​​the right eye image in the comparison area group.

[0075] No. In the hole parallax area The calculation method of the deviation measurement coefficient of the pixel points corresponding to the left and right eye images in the comparison area group is as follows:

[0076] ;

[0077] In the formula, Indicates In the hole parallax area The pixel points correspond to the deviation measurement coefficients on the left and right eye images in the comparison area group; Indicates In the hole parallax area The pixel points correspond to the number of reference pixel points corresponding to the pixel points in the wind blade area of ​​the left eye image in the comparison area group; Indicates In the hole parallax area The pixel points correspond to the number of reference pixel points of the corresponding pixel points in the wind blade area of ​​the right eye image in the comparison area group; Indicates In the hole parallax area The pixel points correspond to the number of all reference pixel points corresponding to the pixel points in the wind blade area of ​​the left and right eye images in the comparison area group; Indicates In the hole parallax area The pixel points correspond to the maximum value of the split lengths of the corresponding pixel points in the wind blade area of ​​the left and right eye images in the comparison area group; Indicates In the hole parallax area The pixel point corresponds to the first pixel point among all the reference pixel points corresponding to the pixel points in the wind blade area of ​​the left and right eye images in the comparison area group. Gray value of reference pixel; Indicates In the hole parallax area The pixel point corresponds to the average grayscale value of all reference pixel points corresponding to the pixel points in the wind blade area of ​​the left and right eye images in the comparison area group; Indicates In the hole parallax area The standard deviation of the grayscale values ​​of all reference pixel points corresponding to the pixel points in the wind blade area of ​​the left and right eye images in the comparison area group; is the absolute value function.

[0078] What needs to be explained is that when the denominator in the formula is 0, set the denominator to 1 and use this as an example to ensure that the formula is valid.

[0079] What needs to be explained is that The larger the numerator is, the greater the position difference between the two pixels in the wind blade area is, and the larger the deviation measurement coefficient of the pixel position in the binocular camera represented by the two pixels is. It is the deviation measurement coefficient between the grayscale value mean of two pixels and the corresponding pixel. The larger the value is, the more it reflects the uneven surface of the wind blade and the easier it is to produce grayscale changes, making it difficult to find the corresponding deviation position during the parallax matching process.

[0080] At this point, the deviation measurement coefficient of each pixel point in each hole disparity area corresponding to the left and right eye images in the comparison area group is obtained.

[0081] Step S003: According to the deviation measurement coefficient of each pixel point on the boundary of each hole parallax area corresponding to the left and right eye images in the comparison area group, the restoration range of each pixel point on the boundary of each hole parallax area is obtained; according to the restoration range of each pixel point on the boundary of each hole parallax area, the initially restored hole parallax area is obtained.

[0082] It should be noted that the parallax restoration of the hole parallax area mainly relies on the averaging of the parallax values ​​of the surrounding pixels. However, the metal materials such as rivets and aerodynamic patterns on the surface of the wind blades are affected by the camera lighting and will produce different light and shadows at different angles. Directly filling the parallax by averaging will introduce interference information into the hole parallax position. The pixel points analyzed by the grayscale image have a lower deviation measurement coefficient in the left and right eye images, which means that the deviation of the material texture of the wind blade itself interferes with the parallax judgment during the image acquisition process of the wind blade by the binocular camera. The authenticity after restoring the parallax value is higher. Therefore, the parallax restoration range can be judged according to the order of the deviation measurement coefficients of the pixels.

[0083] It should be noted that since there is real parallax around the edge between the hole parallax area and the area with parallax, the restoration process can obtain more real parallax data support, so the edge between the hole parallax area and the area with parallax should be restored first.

[0084] It should be noted that the order of hole disparity positions corresponding to the descending order of the deviation metric coefficient is used as the restoration order; preliminary restoration is first performed by taking the average of adjacent disparities, and the pixel point with the minimum value of the deviation metric coefficient represents the most credible position of the difference in the hole disparity position, so a smaller adjacent area range can be selected to achieve a more accurate restoration value.

[0085] No. The first The calculation method of the restoration range of pixels is as follows:

[0086] ;

[0087] In the formula, Indicates The first The restoration range of pixels; Indicates The first The pixel points correspond to the deviation measurement coefficients on the left and right eye images in the comparison area group; Indicates The maximum value of the deviation metric coefficients of all pixels on the boundary of the hole disparity region corresponding to the left and right eye images in the comparison region group; Indicates The minimum value of the deviation metric coefficient of all pixels on the boundary of the hole disparity region corresponding to the left and right eye images in the comparison region group; is the displacement radius; is the floor rounding function; is the preset threshold.

[0088] It should be noted that, when the deviation metric coefficient corresponding to the pixel point in the hole parallax area is smaller, the position with parallax should be selected through a closer restoration range for restoration to ensure the authenticity of the restored parallax; the preset threshold 2, the adjacent range is limited by rounding down, and the preset threshold is added Avoid scope that is too small.

[0089] What needs to be explained is that when the denominator in the formula is 0, set the denominator to 1 and use this as an example to ensure that the formula is valid.

[0090] At this point, the restoration range of each pixel on the boundary of each hole disparity area is obtained.

[0091] Get the first The first The pixel restoration range Then, select The pixel point is the center and the side length is The square neighborhood of ; the average of the disparity values ​​of all pixels with disparity values ​​in the neighborhood is taken as the first The disparity value of each pixel.

[0092] It should be noted that when When is an even number, let The pixel point is the upper left pixel point among the four central points in the neighborhood.

[0093] According to the above method, we get The disparity values ​​of all pixels on the boundary of the hole disparity area.

[0094] After assigning the disparity value to all pixels on the boundary, The hole disparity area is recorded as the first restored hole disparity area.

[0095] According to The first A method for obtaining the restoration range of each pixel point, and obtaining the restoration range of each pixel point on the boundary of the hole parallax area for the first restoration;

[0096] The restored range of each pixel on the boundary of the first restored hole disparity region is used, and the second restored hole disparity region is obtained according to the method of obtaining the first restored hole disparity region.

[0097] By analogy, we can obtain the initially restored hole disparity region, such as Figure 6 As shown, each pixel in the initially restored hole disparity area has a disparity value.

[0098] At this point, a preliminarily restored hole parallax region is obtained.

[0099] Step S004: According to the centroid distance between any two non-smooth areas in the initially restored hole disparity area and the number of pixels in the non-smooth area, obtain the normalization degree after any two non-smooth areas in each initially restored hole disparity area are associated. According to the normalization degree after any two non-smooth areas in each initially restored hole disparity area are associated, filter out abnormal disparity areas from the non-smooth areas; repair the abnormal disparity areas, and obtain the disparity map after the hole filling is completed.

[0100] It should be noted that the surface material of the wind blade formed in the area belonging to the same wind blade surface is smoother, and the uneven positions such as aerodynamic patterns are usually made into a smooth transition shape in order to maximize ventilation efficiency. Therefore, after the initial parallax recovery, the parallax of some uneven positions leads to the actual parallax situation when the initial recovery is performed by averaging. Due to the deviation in the acquisition angles of the left and right camera units, an uneven parallax position is formed. Direct matching will cause abnormal stretching of pixels in the wind blade area to form image deformation, resulting in a decrease in the authenticity of the matching result. It is necessary to update the parallax value of the uneven parallax area formed in the restored parallax area, judge the different smoothing directions and unevenness of the unevenness intensity of the parallax unevenness reflected by the uneven positions and the defects on the wind blade surface, and screen the abnormal positions for the parallax values ​​of each position in the hole parallax area that has undergone initial parallax recovery.

[0101] What needs to be explained is that the parallax trend of adjacent edges obtained each time during the recovery process of the hole parallax area is analyzed: since the restored parallax value should tend to change towards the area where there is non-smoothness, it can reflect the different characteristics of the defect position displayed by the blade surface defects at different perspectives in the images taken by the left and right cameras.

[0102] According to the disparity value of each pixel in each initially restored hole disparity region, the gradient of each pixel in each initially restored hole disparity region is obtained using the Sobel operator, wherein the Sobel operator is a well-known technology, and the specific method is not introduced here.

[0103] In each initially restored hole disparity region, The pixel points within the eight neighborhoods of the pixel points are recorded as the main pixel points.

[0104] Calculate the The angle between the gradient of each pixel and each main pixel is The angle between the gradients of pixels and all the main pixels will be The angle between the main pixel and the pixel point, denoted as The sub-pixel corresponding to the pixel.

[0105] According to the above method, the sub-pixel point corresponding to each pixel point in each initially restored hole disparity area is obtained.

[0106] Continuously adjacent sub-pixel points form a non-smooth area, and a plurality of non-smooth areas are obtained.

[0107] In each initially restored hole disparity region, the Euclidean distance between the centroids of any two non-smooth regions is counted, and the minimum value of the Euclidean distances between each non-smooth region and the centroids of all other non-smooth regions is recorded as the final Euclidean distance between the centroids of each non-smooth region.

[0108] What needs to be explained is that first, from the hole disparity area that has been preliminarily restored, the gradient of the disparity value in the area is judged to obtain the non-smooth position, and then several non-smooth areas are obtained. The non-uniformity of the disparity is judged by the distribution between the non-smooth areas, so as to screen the abnormal positions in the hole disparity values.

[0109] It should be noted that the non-smooth area reflects the conflict in the direction of the parallax change generated here by screening the positions with completely opposite directions of the parallax gradients. It is more likely that the uneven area on the wind blade surface causes the change direction of the parallax values ​​between the uneven surfaces to intersect here. The uneven area on the wind blade surface is more likely to be aerodynamic patterns and connecting rivets with relatively regular shapes and high similarity in spacing distances. Compared with the defects on the wind blade surface, the area formed by the intersection of parallax changes is more scattered and can better reflect the defects on the wind blade surface.

[0110] No. The first The non-smooth area and The calculation method of the normalization degree after associating the non-smooth regions is as follows:

[0111] ;

[0112] In the formula, Indicates The first The non-smooth area and The normalization degree after associating the non-smooth regions; Indicates The first The non-smooth area and The Euclidean distance between the centroids of the non-smooth regions; Indicates The mean of the final Euclidean distances between the centroids of all non-smooth regions in the initially restored hole disparity region; Indicates The first The number of all pixels in the non-smooth area; Indicates The first The number of all pixels in the non-smooth area; is the normalization function; is the absolute value function.

[0113] What needs to be explained is that when the denominator in the formula is 0, set the denominator to 1 and use this as an example to ensure that the formula is valid.

[0114] What needs to be explained is that There are two non-smooth areas and The difference in the number of pixels in the image is large. The larger the value, the higher the length similarity between the current regions. The similarity of the parallax non-smooth regions formed by the aerodynamic patterns with regular shapes on the wind blades is large, so after merging, it is more likely to be the parallax non-smooth region of the wind blade texture.

[0115] At this point, the normalization degree of the association between any two non-smooth regions in each initially restored hole disparity region is obtained.

[0116] Default Value is 0.2, taking this as an example; when The maximum value of the norm after associating the non-smooth area with all the non-smooth areas is less than the preset value When The non-smooth areas are recorded as abnormal disparity areas.

[0117] At this point, each abnormal disparity region is obtained.

[0118] The average of the disparity values ​​of all adjacent pixels outside each abnormal disparity area is recorded as the standard disparity value;

[0119] The updated disparity value of each pixel in each abnormal disparity area is set to the standard disparity value;

[0120] In all the initially restored hole disparity regions in the disparity map, the disparity value of each pixel in each abnormal disparity region is replaced with the updated disparity value to obtain a disparity map after the hole filling is completed.

[0121] Correct all abnormal disparity areas and obtain the disparity map after hole filling, as shown in Figure 7 shown.

[0122] Step S005: Merge the left and right images according to the disparity map after the hole filling is completed to obtain the size of the wind blade in the merged image.

[0123] According to the disparity map after the hole filling is completed, the left and right images are merged into a merged image, and the size of the wind blade in the merged image is obtained.

[0124] It should be noted that after obtaining the disparity map after the hole filling is completed, the corresponding pixel points between the left and right images are found according to the disparity value of each pixel point in the disparity map to form the coordinates of the matching corresponding pixel points. According to the acquisition method of the corresponding pixel points of the wind blade area in the left and right images, the wind blade area in the merged image is obtained. Then, the pixel coordinates of the matching corresponding points are converted into world coordinates through the prior camera internal and external parameters of the binocular camera, so as to obtain the size of the wind blade.

[0125] What needs to be explained is that the actual measured size is compared with the size specification. If the actual size is within the specification range, it is judged as a qualified product; if the size exceeds the specification range, it is judged as a defective product. According to the judgment result, the qualified product can enter the next process, while the defective product needs to be disposed of. The handling of defective products may include repair, rework or scrapping, depending on the degree of defect and repairability of the defective product.

[0126] Among them, merging the left and right eye images of the disparity map after filling is a well-known technology, and the specific method will not be introduced here.

[0127] At this point, this embodiment is completed.

[0128] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An intelligent measurement method for the blade size of industrial fans. It is characterized in that The method comprises the following steps: Acquire several comparison area groups of the left and right eye images of the wind blade surface; wherein each comparison area group is composed of each hole parallax area obtained by parallax matching of the wind blade area in the left and right eye images, and each hole parallax area corresponds to an area in the left and right eye images; each pixel point in the hole parallax area has no parallax value, and each pixel point outside the hole parallax area corresponds to a parallax value; According to the difference in the grayscale value of each pixel point in each hole parallax area corresponding to the wind blade area of ​​the left and right eye images in the comparison area group, the deviation measurement coefficient of each pixel point in each hole parallax area corresponding to the left and right eye images in the comparison area group is obtained; According to the deviation measurement coefficient of each pixel point on the boundary of each hole disparity region corresponding to the left and right eye images in the comparison area group, the restoration range of each pixel point on the boundary of each hole disparity region is obtained; according to the restoration range of each pixel point on the boundary of each hole disparity region, a preliminary restored hole disparity region is obtained; each pixel point in the preliminary restored hole disparity region corresponds to a disparity value; According to the disparity value of each pixel in the initially restored hole disparity area, a number of non-smooth areas are divided in the initially restored hole disparity area; According to the centroid distance between any two non-smooth areas in the initially restored hole disparity area and the number of pixels in the non-smooth area, the normalization degree after associating any two non-smooth areas in each initially restored hole disparity area is obtained; According to the normalization degree of association between any two non-smooth areas in each initially restored hole disparity area, an abnormal disparity area is screened out from the non-smooth area; the abnormal disparity area is repaired to obtain a disparity map after the hole is filled; The left and right images are merged according to the disparity map after the hole filling is completed, and the size of the wind blade in the merged image is obtained; The step of obtaining the deviation measurement coefficient of each pixel point in each hole parallax area corresponding to the left and right eye images in the comparison area group according to the difference in the grayscale value of each pixel point in each hole parallax area corresponding to the wind blade area of ​​the left and right eye images in the comparison area group includes the following specific steps: Obtain the internal and external parameters and baseline length of the binocular camera. According to the internal and external parameters of the binocular camera, convert the number of pixels of the baseline length into the displacement radius. ; The first In the hole parallax area The pixel points correspond to the pixel points in the wind blade area of ​​the left image in the comparison area group, which are recorded as target pixel points; With the target pixel as the center, With radius as the radius, a quarter circle is constructed from the horizontal right direction to the vertical upward direction, and the pixel points on the arc of the quarter circle that belong to the wind leaf area in the left image are recorded as reference pixels. Several arc segments on the arc of the quarter circle that do not belong to the wind leaf area in the left image are counted, and the maximum value of the lengths of all arc segments is recorded as the splitting length of the target pixel; According to the reference pixel point of the target pixel point and the acquisition method of the split length, the first In the hole parallax area The pixel points correspond to the reference pixel points and split lengths of the pixel points corresponding to the pixel points in the wind blade area of ​​the right eye image in the comparison area group; According to the gray value difference and split length of the reference pixel points corresponding to each pixel point in each hole disparity area in the wind blade area of ​​the left and right eye images in the comparison area group, the deviation measurement coefficient corresponding to each pixel point in each hole disparity area on the left and right eye images in the comparison area group is obtained; According to the gray value difference and split length of the reference pixel points corresponding to the pixel points in the wind blade area of ​​the left and right eye images in the comparison area group in each hole disparity area, the deviation measurement coefficient corresponding to each pixel point in each hole disparity area on the left and right eye images in the comparison area group is obtained, including the specific formula as follows: ; In the formula, Indicates In the hole parallax area The pixel points correspond to the deviation measurement coefficients on the left and right eye images in the comparison area group; Indicates In the hole parallax area The pixel points correspond to the number of reference pixel points of the corresponding pixel points in the wind blade area of ​​the left eye image in the comparison area group; Indicates In the hole parallax area The pixel points correspond to the number of reference pixel points of the corresponding pixel points in the wind blade area of ​​the right eye image in the comparison area group; Indicates In the hole parallax area The pixel points correspond to the number of all reference pixel points corresponding to the pixel points in the wind blade area of ​​the left and right eye images in the comparison area group; Indicates In the hole parallax area The pixel points correspond to the maximum value of the split lengths of the corresponding pixel points in the wind blade area of ​​the left and right eye images in the comparison area group; Indicates In the hole parallax area The pixel point corresponds to the first pixel point among all the reference pixel points corresponding to the pixel points in the wind blade area of ​​the left and right eye images in the comparison area group. Gray value of reference pixel; Indicates In the hole parallax area The pixel point corresponds to the average grayscale value of all reference pixel points corresponding to the pixel points in the wind blade area of ​​the left and right eye images in the comparison area group; Indicates In the hole parallax area The standard deviation of the grayscale values ​​of all reference pixel points corresponding to the pixel points in the wind blade area of ​​the left and right eye images in the comparison area group; is the absolute value function.

2. According to claim 1, a method for intelligently measuring the size of fan blades for industrial fans, It is characterized in that The restoration range of each pixel point on the boundary of each hole disparity region is obtained according to the deviation measurement coefficient of each pixel point on the left and right eye images in the comparison region group, and the specific formula included is as follows: ; In the formula, Indicates The first The restoration range of pixels; Indicates The first The pixel points correspond to the deviation measurement coefficients on the left and right eye images in the comparison area group; Indicates The maximum value of the deviation metric coefficients of all pixels on the boundary of the hole disparity region corresponding to the left and right eye images in the comparison region group; Indicates The minimum value of the deviation metric coefficient of all pixels on the boundary of the hole disparity region corresponding to the left and right eye images in the comparison region group; is the floor rounding function; is the preset threshold.

3. According to claim 1, a method for intelligently measuring the size of fan blades for industrial fans, It is characterized in that The method of obtaining a preliminarily restored hole disparity region according to the restored range of each pixel point on the boundary of each hole disparity region includes the following specific steps: Constructed with The first The pixel point is the center and the side length is The square neighborhood of ; the average of the disparity values ​​of all pixels with disparity values ​​in the neighborhood is taken as the first The disparity value of pixels; among them, Indicates The first The restoration range of pixels; After assigning the disparity value to all pixels on the boundary, The hole parallax area is recorded as the first restored hole parallax area; According to The first A method for obtaining the restoration range of each pixel point, and obtaining the restoration range of each pixel point on the boundary of the hole parallax area for the first restoration; Using the restored range of each pixel point on the boundary of the first restored hole disparity region, and according to the method of obtaining the first restored hole disparity region, the second restored hole disparity region is obtained; And so on, the initially restored hole parallax area is obtained.

4. According to claim 1, a method for intelligently measuring the size of fan blades for industrial fans, It is characterized in that The method of dividing a plurality of non-smooth regions in the initially restored hole disparity region according to the disparity value of each pixel point in the initially restored hole disparity region includes the following specific steps: According to the disparity value of each pixel in each initially restored hole disparity region, the gradient of each pixel in each initially restored hole disparity region is obtained using the Sobel operator; In each initially restored hole disparity region, The pixel point within the eight-neighborhood of the pixel point is recorded as the main pixel point; Calculate the The angle between the gradient of each pixel and each main pixel is The angle between the gradients of pixels and all the main pixels will be The angle between the main pixel and the pixel point, denoted as The sub-pixel points corresponding to the pixel points; In the sub-pixel points corresponding to all the pixel points in each initially restored hole disparity region, continuous adjacent sub-pixel points constitute a non-smooth region, thereby obtaining a plurality of non-smooth regions.

5. According to claim 1, a method for intelligently measuring the size of fan blades for industrial fans, It is characterized in that The method of obtaining the normalization degree of association between any two non-smooth areas in each initially restored hole disparity area according to the centroid distance between any two non-smooth areas in the initially restored hole disparity area and the number of pixels in the non-smooth area includes the following specific steps: In each initially restored hole parallax region, the Euclidean distance between the centroids of any two non-smooth regions is counted, and the minimum value of the Euclidean distances between each non-smooth region and the centroids of all other non-smooth regions is recorded as the final Euclidean distance between the centroids of each non-smooth region; According to the Euclidean distance between the centroids of any two non-smooth areas in the initially restored hole disparity area, the final Euclidean distance between the centroids of all non-smooth areas and the number of pixels in the non-smooth area, the normalization degree after associating any two non-smooth areas in each initially restored hole disparity area is obtained.

6. According to claim 5, an intelligent measurement method for the blade size of an industrial fan, It is characterized in that According to the Euclidean distance between the centroids of any two non-smooth areas in the initially restored hole parallax area, the final Euclidean distance between the centroids of all non-smooth areas, and the number of pixels in the non-smooth area, the normalization degree after associating any two non-smooth areas in each initially restored hole parallax area is obtained, including the specific formula as follows: ; In the formula, Indicates The first The non-smooth area and The normalization degree after associating the non-smooth regions; Indicates The first The non-smooth area and The Euclidean distance between the centroids of the non-smooth regions; Indicates The mean of the final Euclidean distances between the centroids of all non-smooth regions in the initially restored hole disparity region; Indicates The first The number of all pixels in the non-smooth area; Indicates The first The number of all pixels in the non-smooth area; is the normalization function; is the absolute value function.

7. According to claim 1, a method for intelligently measuring the size of fan blades for industrial fans, It is characterized in that The specific steps of screening out abnormal disparity regions from the non-smooth regions according to the normalization degree of association between any two non-smooth regions in each initially restored hole disparity region are as follows: When The maximum value of the norm after associating the non-smooth area with all the non-smooth areas is less than the preset value When The non-smooth areas are recorded as abnormal disparity areas.

8. According to claim 1, a method for intelligently measuring the size of fan blades for industrial fans, It is characterized in that The abnormal disparity area is repaired to obtain a disparity map after the hole filling is completed, and the specific steps include the following: The average of the disparity values ​​of all adjacent pixels outside each abnormal disparity area is recorded as the standard disparity value; The updated disparity value of each pixel in each abnormal disparity area is set to the standard disparity value; In all initially restored hole disparity regions, the disparity value of each pixel in each abnormal disparity region is replaced with the updated disparity value to obtain a disparity map after the hole filling is completed.

Citation Information

Patent Citations

  • Visual inspection method for surface defects of fan blade

    CN116664557A

  • Parallax filling method and system and storage medium

    CN117576256A

  • Method and terminal for obtaining depth information of low-texture regions in image

    WO2017067390A1