A method, system, device and medium for detecting flatness of heliostat back plate

By modifying the Harris response function and adding an adaptive threshold, combined with the distance constraint and the Lagrange multiplier method, the problem of the Harris algorithm being sensitive to noise is solved, and the accuracy and stability of the flatness detection of the heliostat backplate are improved.

CN118537334BActive Publication Date: 2024-10-15SEPCOIII ELECTRIC POWER CONSTR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411000506.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-15
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

The existing Harris algorithm is sensitive to noise in the image and may misjudge the noise as a corner point, resulting in inaccurate heliostat backplate flatness detection results, especially when the image quality is poor or there is a lot of noise.

Method used

Modify the Harris response function, add adaptive thresholds and distance constraints, reduce noise through preprocessing, and use the Lagrange multiplier method to calculate flatness to ensure the accuracy of corner point detection.

Benefits of technology

It improves the accuracy and stability of heliostat backplate flatness detection, reduces dependence on image quality, and enhances detection capabilities in noisy environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537334B_ABST
    Figure CN118537334B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of heliostat adjustment, and specifically relates to a method, system, device and medium for detecting the flatness of a back plate of a heliostat. The present invention utilizes a Harris corner point algorithm, which has low requirements on light and little effect on the rotation of an image. The steel structure of the back plate is very suitable for corner point recognition. The obtained corner point coordinates are used to calculate the flatness through a Lagrange multiplier algorithm, and the calculation speed is fast.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of heliostat adjustment, and specifically relates to a method, system, device and medium for detecting the flatness of a heliostat back plate. Background Art

[0002] After the heliostat backplane is produced, it will be transported. Due to the special structure, transportation will cause collisions. At the same time, collisions will also occur during production. If the deformed backplane is used to paste the heliostat, it will affect the reflection spot of the heliostat, thereby affecting the light and heat energy flow. The existing Harris algorithm is sensitive to noise in the image and may misjudge the noise as a corner point, resulting in inaccurate detection results. In practical applications, if the image quality is poor or there is a lot of noise, the corner point detection results of the Harris algorithm may be greatly affected. Summary of the invention

[0003] Based on the above problems, this application modifies the Harris response function and adds an adaptive threshold to reduce the impact of noise. Its technical solution is:

[0004] A method for detecting the flatness of a heliostat back plate comprises the following steps:

[0005] S1. Take a photo of the inspection backplane, capture the area to be processed, and pre-process the image;

[0006] S2. Use the modified corner point algorithm to select corner points: add distance constraints to enable it to adaptively detect a sufficient number of corner points that can represent the characteristics of the image;

[0007] S3. Calculate the flatness of the obtained corner point coordinates using the Lagrange multiplier method, and determine whether it is qualified based on the calculated flatness and the designed threshold.

[0008] Preferably, the picture preprocessing steps are as follows:

[0009] S11. Noise removal: Use Gaussian filtering or median filtering to reduce noise in the image;

[0010] S12. Grayscale: convert a color image into a grayscale image;

[0011] S13. Histogram equalization: Improves the contrast of the image, making feature points easier to detect.

[0012] Preferably, in step S2, a fixed window is set Slide in any direction on the image and compare the grayscale value changes of the pixels in the window area before and after sliding. If there is an obvious grayscale change in any direction, it is considered that there is a corner point in the window.

[0013] The response function calculation method is improved in the corner point algorithm, and the distance constraint is added. The formula is as follows:

[0014] ;

[0015] N is the number of corner points currently calculated, is the eigenvalue and k is a constant.

[0016] Preferably, in step S2, the corner point selection step is as follows:

[0017] S21. Compare the two eigenvalues ​​of the second-order moment matrix M, directly perform classification, and find the minimum eigenvalue of each pixel, which is recorded as the corner point response function R;

[0018] ;

[0019] ;

[0020] ;

[0021] In the formula, the fixed window , (u,v) is the pixel, (x,y) is the image coordinate, all image files are two-dimensional planes; I X represents the gradient in the X direction, I Y Represents the gradient in the Y direction;

[0022] S22. Arrange the diagonal point response functions R in descending order;

[0023] S23. Mark the pixel points corresponding to the first Q R values ​​as pre-selected corner points and traverse them in sequence. If there are points marked as corner points in the four neighborhoods of the pre-selected corner point, compare the distance between the two points. If the distance is less than the minimum tolerance distance of D pixels, the current pixel point is discarded because the R value of the pixel point determined as the corner point is larger and the corner point is more representative. Otherwise, the current pixel point is marked as a corner point.

[0024] S24. Experiments were conducted on the multispectral images acquired by the Q-frame camera for the backplane flatness detection target image. The threshold was adjusted continuously and the results were compared. When the number of corner points was reduced to B, the motion estimation and image stabilization could still be completed well. At this time, if the number of corner points was further reduced, the image stabilization effect observed by the human eye would be greatly weakened. Therefore, B was used as the reference value for the number of corner points when extracting corner points. When the number of true corner points was less than B, the number of pre-selected corner points was increased, and the true corner points were screened again.

[0025] Preferably, in step S3, the fitted plane equation is assumed to be:

[0026] (2-1);

[0027] The constraints are:

[0028] (2-2);

[0029] Get plane parameters At this time, to make the obtained fitting plane the best, it is to minimize the sum of the squares of the distances from the points to the plane, that is, to satisfy:

[0030] (2-3);

[0031] In the formula, is any point in the point cloud data To make , use the Lagrange multiplier method to solve the extreme value and get the function:

[0032] (2-4);

[0033] First, compare both sides of equation (2-4) Find the partial derivative and set it to zero, and we get:

[0034] (2-5);

[0035] make , , ; Centroid , , , ,but:

[0036] (2-6);

[0037] Pair both sides of equation (2-4) The partial derivative of , we get:

[0038] ;

[0039] The above system of equations is formed into an eigenvalue equation:

[0040] (2-7);

[0041] Where:

[0042] ;

[0043] ;

[0044] Then, solve for the plane parameters , is to solve the matrix to get the eigenvalue and eigenvector. And because is a 3rd order real symmetric matrix, and its eigenvalue solution formula is:

[0045] (2-8);

[0046] Under the constraints Next, we can get:

[0047] ;

[0048] The minimum value of the matrix The minimum eigenvalue of the plane parameter , using the centroid, we can get .

[0049] If a, b, c, and d are all calculated, then the equation of the fitted plane is Substitute it and it will be calculated. Then the coordinates of each point are known. The distance from the point to the plane is the result we want. e is the minimum value. By comparing e with the threshold, the threshold used in the project is 3mm.

[0050] A system for detecting the flatness of a heliostat back plate comprises an image acquisition module, a data processing module and an output module;

[0051] Image acquisition module: uses the camera to collect images and outputs the images to the data processing module;

[0052] Data processing module: performs data processing and uses the modified corner point algorithm to select corner points; calculates the flatness of the obtained corner point coordinates through the Lagrange multiplier method, and determines whether it is qualified based on the calculated flatness and the designed threshold;

[0053] Output module: Feedback the data processing results to the display system for visual display.

[0054] Preferably, the camera is calibrated using Zhang's calibration method, and the black and white grid calibration plate is moved 2 cm up, down, left and right to take pictures, and the camera is calibrated to convert the image coordinates into world coordinates.

[0055] A computer device includes at least one processor and a computer-readable medium storing a computer program, wherein the computer program implements the method of the present application when read and executed by the processor.

[0056] A computer-readable medium stores a computer program, and when the computer program is read and executed by a processor, the method of the present application is implemented.

[0057] Compared with the prior art, the present invention has the following beneficial effects:

[0058] The present invention utilizes the Harris corner point algorithm, which has low requirements on light and little effect on the rotation of the image. The steel structure of the back plate is very suitable for corner point recognition. The obtained corner point coordinates are used to calculate the flatness through the Lagrange multiplier algorithm with fast calculation speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 This is the flow chart of this application.

[0060] Figure 2 Backplane detection flow chart. DETAILED DESCRIPTION

[0061] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.

[0062] Figure 2 As shown, the back panel is manually placed in the loading area, triggering a signal that the back panel has been placed. After receiving the signal, the robot grabs the back panel. After the back panel reaches the detection position, it scans the QR code on the back panel. After the QR code is successfully recognized, a photo signal is sent to the camera. After receiving the signal, the camera takes a photo. The algorithm analysis module identifies the corner points of the image, and the coordinates of the identified corner points are used to calculate the flatness of the entire back panel through the Lagrange multiplier method. If the flatness meets the design requirements, it is qualified, otherwise it is unqualified.

[0063] The backboard is composed of steel frames, which has the advantage of corner recognition. The Harris corner detection algorithm is used to identify the corners of the backboard image. Harris corner detection is a commonly used corner detection algorithm in computer vision, which is mainly used to detect corner features in images. A corner point is usually defined as the intersection of two edges, or more strictly speaking, the local neighborhood of a corner point should have boundaries in different directions of two different regions. In the real world, corner points correspond to the corners of objects, such as road intersections, T-junctions, doors and windows of buildings, etc.

[0064] The principle of Harris corner detection algorithm is to determine whether it is a corner point by calculating the response function of each pixel in the image. This response function is based on the grayscale change of the image and the covariance matrix of the local window, and the position of the corner point is determined by calculating the eigenvalue. When the eigenvalue is large, it means that there is a corner point at the pixel. Specifically, the Harris corner detection algorithm is based on the following observation: when a pixel in the image moves, if the intensity of the surrounding area changes significantly, it means that the point may be a corner point.

[0065] Camera calibration:

[0066] With the development of computer vision technology, 3D reconstruction technology has been widely used in robot vision, industrial manufacturing, engineering construction, cultural relics protection and medical fields. 3D reconstruction is to restore 3D spatial information by using the basic information in 2D images. To obtain 3D spatial information from 2D image information, it is necessary to study the correspondence between the 2D coordinates of points, lines and surfaces in 2D images and the corresponding points, lines and surfaces in 3D space, so as to quantitatively analyze the size and position relationship of spatial objects. Therefore, camera calibration is an indispensable step in 3D reconstruction.

[0067] The world coordinate system is the absolute coordinate system of the objective three-dimensional space, also called the objective coordinate system. The position of the camera in the three-dimensional space is determined by establishing the world coordinate system. When the camera position is determined, the position of the target object in the three-dimensional space is also determined.

[0068] The camera is calibrated using Zhang’s calibration method. The black and white grid calibration plate is moved 2 cm up, down, left and right to take pictures. The camera is calibrated and the image coordinates are converted into world coordinates.

[0069] Image preprocessing:

[0070] Take a photo of the inspection backplane and capture the area that needs to be processed;

[0071] Noise removal: Use filters, such as Gaussian or median filters, to reduce noise in the image.

[0072] Grayscale: Convert color images into grayscale images to simplify the processing process;

[0073] Histogram equalization: Improves the contrast of the image, making feature points easier to detect.

[0074] The advantage of the Harris corner detection algorithm is that it is invariant to image rotation, scale change, and brightness change, and the calculation is simple and fast.

[0075] Figure 1 As shown, a method for detecting the flatness of a heliostat back plate includes the following steps:

[0076] S1. Take a photo of the inspection backplane, capture the area to be processed, and pre-process the image;

[0077] S11. Noise removal: Use Gaussian filtering or median filtering to reduce noise in the image;

[0078] S12. Grayscale: convert a color image into a grayscale image;

[0079] S13. Histogram equalization: Improves the contrast of the image, making feature points easier to detect.

[0080] S2. Use the modified corner point algorithm to select corner points: add distance constraints so that it can adaptively detect a sufficient number of corner points that can represent the characteristics of the image;

[0081] In step S2, a fixed window is set Slide in any direction on the image and compare the grayscale value changes of the pixels in the window area before and after sliding. If there is an obvious grayscale change in any direction, it is considered that there is a corner point in the window.

[0082] The response function calculation method is improved in the corner point algorithm, and the distance constraint is added. The formula is as follows:

[0083] ;

[0084] N is the number of corner points currently calculated, is the eigenvalue and k is a constant.

[0085] Preferably, in step S2, the corner point selection step is as follows:

[0086] S21. Compare the two eigenvalues ​​of the second-order moment matrix M, directly perform classification, and find the minimum eigenvalue of each pixel, which is recorded as the corner point response function R;

[0087] ;

[0088] ;

[0089] .

[0090] In the formula, the fixed window , (u,v) is the pixel, (x,y) is the image coordinate, all image files are two-dimensional planes; I X represents the gradient in the X direction, I Y Represents the gradient in the Y direction.

[0091] S22. Arrange the corner point response functions R in descending order.

[0092] S23. Then take the first 200 pixels corresponding to the R value and mark them as pre-selected corner points and traverse them in turn. If there are points marked as corner points in the four neighborhoods of the pre-selected corner points, compare the distance between the two points. If the distance is less than the minimum tolerance distance of D pixels, the current pixel point is discarded because the R value of the pixel point determined as the corner point is larger and the corner point is more representative. Otherwise, the current pixel point is marked as a corner point.

[0093] S24. Experiments were conducted on the multispectral images acquired by the Q-frame camera for the backplane flatness detection target image. The threshold was adjusted continuously and the results were compared. When the number of corner points was reduced to B, the motion estimation and image stabilization could still be completed well. At this time, if the number of corner points was further reduced, the image stabilization effect observed by the human eye would be greatly weakened. Therefore, B was used as the reference value for the number of corner points when extracting corner points. When the number of true corner points was less than B, the number of pre-selected corner points was increased, and the true corner points were screened again.

[0094] From a statistical point of view, this application conducts experiments on 200 multispectral images collected by cameras for backplane flatness detection target images, continuously adjusts the threshold, and compares the results to find that when the number of corner points is reduced to about 30, motion estimation can still be completed well and image stabilization can be completed. At this time, if the number of corner points is further reduced, the image stabilization effect seen by the human eye will be greatly weakened. Therefore, 30 is used as the reference value for the number of corner points when extracting corner points. When the number of true corner points is less than 30, the number of pre-selected corner points is increased, and the true corner points are screened again.

[0095] Invariance to 2D translation and rotation: The Harris corner detection algorithm is somewhat invariant to 2D translation and rotation. This means that when the image is translated or rotated on a 2D plane, the algorithm can still accurately detect the corners. This invariance makes the algorithm more reliable when processing images with different perspectives and orientations.

[0096] S3. Calculate the flatness of the obtained corner point coordinates using the Lagrange multiplier method, and determine whether it is qualified based on the calculated flatness and the designed threshold.

[0097] In step S3, the fitted plane equation is assumed to be:

[0098] (2-1);

[0099] The constraints are:

[0100] (2-2);

[0101] Get plane parameters At this time, to make the obtained fitting plane the best, it is to minimize the sum of the squares of the distances from the points to the plane, that is, to satisfy:

[0102] (2-3);

[0103] In the formula, , is any point in the point cloud data To make , use the Lagrange multiplier method to solve the extreme value and get the function:

[0104] (2-4);

[0105] First, compare both sides of equation (2-4) Find the partial derivative and set it to zero, and we get:

[0106] (2-5);

[0107] make , centroid , , , ,but:

[0108] (2-6);

[0109] Pair both sides of equation (2-4) The partial derivative of , we get:

[0110] ;

[0111] The above system of equations is formed into an eigenvalue equation:

[0112] (2-7);

[0113] ;

[0114] ;

[0115] Then, solve for the plane parameters , is to solve the matrix to get the eigenvalues ​​and eigenvectors; and because is a 3rd order real symmetric matrix, and its eigenvalue solution formula is:

[0116] (2-8);

[0117] Under the constraints Next, we can get:

[0118] ;

[0119] The minimum value of the matrix The minimum eigenvalue of the plane parameter , using the centroid, we can get .

[0120] If a, b, c, and d are all calculated, then the equation of the fitted plane is Substitute it and it will be calculated. Then the coordinates of each point are known. The distance from the point to the plane is the result we want. e is the minimum value. By comparing e with the threshold, the threshold used in the project is 3mm.

[0121] A system for detecting the flatness of a heliostat back plate comprises an image acquisition module, a data processing module and an output module;

[0122] Image acquisition module: uses the camera to collect images and outputs the images to the data processing module;

[0123] Data processing module: perform data processing and use the modified corner point algorithm to select corner points; calculate the flatness of the obtained corner point coordinates through the Lagrange multiplier method, and judge whether it is qualified based on the calculated flatness and the designed threshold;

[0124] Output module: Feedback the data processing results to the display system for visual display.

[0125] Preferably, the camera is calibrated using Zhang's calibration method, and the black and white grid calibration plate is moved 2 cm up, down, left and right to take pictures, and the camera is calibrated to convert the image coordinates into world coordinates.

[0126] A computer device includes at least one processor and a computer-readable medium storing a computer program, wherein the computer program implements the method of the present application when read and executed by the processor.

[0127] A computer-readable medium stores a computer program, and when the computer program is read and executed by a processor, the method of the present application is implemented.

[0128] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus dynamic random access memory (Rambus DRAM, referred to as RDRAM), and interface dynamic random access memory (DRDRAM).

[0129] In the description of this specification, the description with reference to the terms "some embodiments", "other embodiments", "ideal embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.

[0130] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

Claims

1. A method for detecting the flatness of a heliostat back plate, characterized in that: The steps include: S1. Take a picture of the inspection backplane, capture the area to be processed, and pre-process the picture; S2. Use the modified corner point algorithm to select corner points: add distance constraints so that it can adaptively detect a sufficient number of corner points that can represent the characteristics of the image; Set a fixed window ω(x,y) to slide in any direction on the image, and compare the changes in the pixel grayscale values ​​in the window area before and after sliding. If there is an obvious grayscale change in any direction, it is considered that there is a corner point in the window; The response function calculation method is improved in the corner point algorithm, and the distance constraint is added. The formula is as follows: N is the number of corner points currently calculated, λ1 and λ2 are eigenvalues, and k is a constant; The steps for corner point selection are as follows: S21. Compare the two eigenvalues ​​of the second-order moment matrix M, directly classify, and find the minimum eigenvalue of each pixel; In the formula, the fixed window ω(x,y), (u,v) is the pixel, (x,y) is the image coordinate, and all image files are a two-dimensional plane; I X represents the gradient in the X direction, I Y Represents the gradient in the Y direction; S22. Arrange the corner point response functions R in descending order; S23. Mark the pixel points corresponding to the first Q R values ​​as pre-selected corner points and traverse them in sequence. If there are points marked as corner points in the four neighborhoods of the pre-selected corner point, compare the distance between the two points. If the distance is less than the minimum tolerance distance of D pixels, the current pixel point is discarded because the R value of the pixel point determined as the corner point is larger and the corner point is more representative. Otherwise, the current pixel point is marked as a corner point. S24. Experiments are conducted on the multispectral images acquired by the Q-band camera of the backplane flatness detection target image, and the threshold is continuously adjusted. The results are compared. When the number of corner points is reduced to B, the motion estimation can still be completed well and the image stabilization can be completed. Therefore, B is used as the reference value of the number of corner points when extracting corner points. When the number of true corner points is less than B, the number of pre-selected corner points is increased, and the true corner points are screened again. S3. Calculate the flatness of the obtained corner point coordinates by Lagrange multiplier method, and determine whether it is qualified according to the calculated flatness and the designed threshold; In S3, the fitted plane equation is assumed to be: ax+by+cz+d=0 (2-1) The constraints are: a 2 +b 2 +c 2 =1 (2-2) The plane parameters a, b, c, and d are obtained. At this time, to make the obtained fitting plane optimal, the sum of the squares of the distances from the points to the plane is minimized, which satisfies: Where, d i =|ax i +by i +cz i +d|, is any point p in the point cloud data i (x i ,y i , z i ) to this plane; to make e→min, use the Lagrange multiplier method to solve the extreme value and get the function: First, take the partial derivatives of both sides of equation (2-4) with respect to d, and set the partial derivatives to zero, and we get: make Centroid but: d i =|aΔ i +bΔy i +cΔz i | (2-6) Taking the partial derivatives of both sides of equation (2-4) with respect to a, b, and c, we get The above system of equations is formed into an eigenvalue equation: Ax=λ3x (2-7) In the formula, Then, solving the plane parameters a, b, c is to solve the matrix to obtain the eigenvalues ​​and eigenvectors; and because A is a 3rd-order real symmetric matrix, the formula for solving its eigenvalues ​​is: Under the constraint a 2 +b 2 +c 2 =1, we get The minimum value of e is the minimum eigenvalue of matrix A. The corresponding eigenvector is the plane parameters a, b, and c. d can be obtained using the centroid.

2. A method for detecting the flatness of a heliostat back plate according to claim 1, characterized in that: In step S1, the image preprocessing steps are as follows: S11. Noise removal: Use Gaussian filtering or median filtering to reduce noise in the image; S12. Grayscale: convert a color image into a grayscale image; S13. Histogram equalization: Improves the contrast of the image, making feature points easier to detect.

3. A system for detecting the flatness of a heliostat back plate according to any one of claims 1-2, characterized in that: It includes an image acquisition module, a data processing module and an output module; Image acquisition module: uses the camera to collect images and outputs the images to the data processing module; Data processing module: perform data processing and use the modified corner point algorithm to select corner points; calculate the flatness of the obtained corner point coordinates through the Lagrange multiplier method, and judge whether it is qualified based on the calculated flatness and the designed threshold; Output module: Feedback the data processing results to the display system for visual display.

4. The system for detecting the flatness of the back plate of a heliostat according to claim 3, characterized in that: The camera was calibrated using Zhang’s calibration method. The black and white grid calibration plate was moved 2 cm up, down, left and right to take pictures. The camera was calibrated and the image coordinates were converted into world coordinates.

5. A computer device, characterized in that: The invention comprises at least one processor and a computer-readable medium storing a computer program, wherein when the computer program is read and executed by the processor, the method according to any one of claims 1 to 2 is implemented.

6. A computer-readable medium, characterized in that The computer-readable medium stores a computer program, and when the computer program is read and executed by a processor, the method according to any one of claims 1 to 2 is implemented.