Heliostat curvature detection method based on image processing technology

Through the heliostat curvature detection method based on image processing technology, the black and white grid intersection coordinates of the calibration plate and the target plate and the image algorithm are used to quickly calculate the normal direction on the heliostat mirror surface, solving the problem of heliostats in the existing technology. The problem of rapid detection of large batches has improved the detection efficiency and automation.

CN118758209AInactive Publication Date: 2024-10-11SEPCOIII ELECTRIC POWER CONSTR CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410777496.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing heliostat curvature detection methods have the problems of complex operation and long time consumption in large-scale rapid detection, and are not suitable for the detection of large-scale heliostat arrays.

Method used

The heliostat curvature detection method based on image processing technology is used to determine the camera model parameters through the coordinates of the black and white grid intersections of the calibration plate and the target plate, combined with the image algorithm to detect the black and white grid intersections in the reflection image, and calculate the heliostat mirror surface The world coordinates and normal direction of the corresponding point at the intersection of black and white grids.

Benefits of technology

It realizes the rapid detection of the normal direction distribution of each point on the heliostat mirror plane while ensuring a certain accuracy. It is suitable for large-scale rapid detection of heliostats leaving the factory, improves detection efficiency, reduces manual operations, and avoids contact damage. and safety risks, adapting to different sizes and shapes of heliostats.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118758209A_ABST
    Figure CN118758209A_ABST
Patent Text Reader

Abstract

The invention relates to the field of heliostat curvature detection, and discloses a heliostat curvature detection method based on an image processing technology, which comprises the following steps of: respectively drawing or pasting checkerboards with black and white lattices alternated on a calibration board and a target board, and determining coordinates of intersection points of the black and white lattices; arranging verification equipment, moving the calibration plate, collecting image data of the calibration plate at different positions, and verifying the camera to obtain model parameters of the camera; the method comprises the following steps: replacing a calibration plate with a heliostat, positioning a camera position in a reflection image, detecting black-and-white lattice cross points in the reflection image by using an image algorithm, calculating world coordinates of points corresponding to the black-and-white lattice cross points on a heliostat surface, and finally calculating normal directions of the points corresponding to the black-and-white lattice cross points on the heliostat surface. And obtaining the heliostat curvature. The method disclosed by the invention can quickly detect the distribution of each point on the plane of the heliostat reflector in the normal direction on the premise of ensuring certain precision, and is suitable for large-scale quick detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of heliostat curvature detection, and in particular to a heliostat curvature detection method based on image processing technology. Background Art

[0002] Heliostat curvature detection is a key link to ensure the reflective performance of heliostats in solar thermal power generation systems. Commonly used heliostat curvature detection methods mainly include the following:

[0003] 1. Direct measurement method:

[0004] This method usually involves using precision measuring tools, such as theodolites, rangefinders, or total stations, to directly measure the reflective surface of the heliostat. By measuring the position and elevation of different points on the reflective surface, the relevant parameters of the curvature can be calculated. Although this method has high accuracy, it is complex to operate, time-consuming, and easily affected by environmental factors.

[0005] 2. Optical interferometry:

[0006] The curvature of the heliostat is detected using the principle of light interference. By projecting coherent light waves onto the surface of the heliostat and observing the distribution and shape of the interference fringes, the distribution of the curvature can be indirectly inferred. This method has high accuracy and sensitivity, but the equipment cost is high and the operating technical requirements are also strict.

[0007] 3. Laser scanning method:

[0008] The laser scanner is used to measure the surface of the heliostat in a non-contact manner. The laser scanner can obtain three-dimensional point cloud data of the reflective surface. By processing and analyzing this data, relevant information about the curvature can be obtained. This method has high accuracy, but it is not suitable for the detection of large-scale heliostat arrays.

[0009] The factory inspection of heliostats requires that the inspection method has the advantages of being easy to operate and fast while ensuring a certain degree of accuracy. In this case, although the above methods are highly accurate, they are time-consuming and are not suitable for large-scale rapid inspection of heliostats when they leave the factory. Summary of the invention

[0010] In order to solve the above technical problems, the present invention provides a heliostat curvature detection method based on image processing technology, so as to achieve the purpose of simple operation and suitability for large-scale rapid detection.

[0011] To achieve the above object, the technical solution of the present invention is as follows:

[0012] A method for detecting curvature of a heliostat based on image processing technology comprises the following steps:

[0013] Step 1, prepare a calibration plate and a target plate, draw or paste black and white checkerboards on the calibration plate and the target plate respectively, and the side length of each checkerboard on the target plate is twice the side length of each checkerboard on the calibration plate; detect the calibration plate and the target plate to determine the coordinates of the intersection of the black and white checkerboard on the calibration plate and the coordinates of the intersection of the black and white checkerboard on the target plate in the target plate coordinate system;

[0014] Step 2, arrange the calibration equipment, set the camera behind the target board, the camera lens extends out of the target board and is located in the same plane as the target board, and the calibration board is set in front of the target board, the long side of the target board is parallel to the long side of the calibration board, and the short side of the target board is parallel to the short side of the calibration board; take the calibration board coordinate system at this time as the world coordinate system, the calibration board coordinate system coordinates of the intersection of the black and white grids on the calibration board are its world coordinates, and translate the coordinate system to obtain the world coordinates of the intersection of the black and white grids on the target board; move the calibration board, collect image data of the calibration board at different positions, and use the world coordinates of the intersection of the black and white grids on the calibration board as a reference to calibrate the camera to obtain the model parameters of the camera, including the world coordinates and focal length of the camera;

[0015] Step 3, replace the calibration plate with the heliostat, locate the camera position in the reflected image, detect the intersection of black and white grids in the reflected image using an image algorithm, calculate the world coordinates of the corresponding points of the black and white grid intersections on the heliostat mirror according to the model parameters of the camera, and finally calculate the normal direction of the corresponding points of the black and white grid intersections on the heliostat mirror through the world coordinates of the black and white grid intersections on the target plate, the world coordinates of the corresponding points of the black and white grid intersections on the heliostat mirror, and the world coordinates of the camera to obtain the curvature of the heliostat.

[0016] In the above scheme, in the calibration equipment, the target plate area is larger than the calibration plate, ensuring that when the calibration plate is replaced with a heliostat of the same size, the camera cannot observe the edge of the target plate in the heliostat; the calibration plate and the target plate are parallel to two planes, the center line of the calibration plate and the target plate is parallel to the normal of the calibration plate, and the camera includes one or two or more cameras; the camera lens extends from a white grid in the center of the target plate, the camera optical axis is perpendicular to the calibration plate, the long sides of the target plate and the calibration plate are parallel to the horizontal direction, and the short sides are parallel to the vertical direction; the target plate is supported by a bracket below, and the calibration plate is lifted by a mechanical arm; after the arrangement, the camera can completely capture the calibration plate.

[0017] In the above scheme, in step 1, the method for determining the coordinates of the calibration board coordinate system of the intersection of the black and white grids on the calibration board is as follows:

[0018] (1) Prepare a flat plate made of rigid material as a calibration plate, and use a rangefinder or laser scanner to measure the coordinates of the intersection points of the black and white grid. The coordinates of these points form a matrix X mesure ;

[0019] (2) Subtract the coordinates of these points from their geometric center coordinates to obtain the matrix X mesure,c ;

[0020] (3) For the matrix X mesure,c The transposed matrix and matrix X mesure,c The product of is decomposed to obtain the eigenvector matrix U, and X mesure,c Multiplying with the eigenvector matrix U yields the coordinate matrix X. The coordinate axes of the coordinate system of the coordinate matrix X are the long side, short side and normal of the calibration board, and the origin is the center of the checkerboard surface of the calibration board.

[0021] The method for determining the target plate coordinate system coordinates of the intersection of the black and white grids on the target plate is the same as the method for determining the calibration plate coordinate system coordinates of the intersection of the black and white grids on the calibration plate.

[0022] In the above scheme, in step 2, the specific method of verifying the camera is as follows:

[0023] (1) Take three pictures of the calibration plate at its original position, at a position moved forward or backward along the normal direction, and at a position moved left or right along the long side of the calibration plate;

[0024] (2) Select a small number of points on the calibration board, record the image coordinates, construct the loss function, solve the camera model parameters, and obtain a roughly calibrated camera model;

[0025] (3) Input the coordinates of the intersection points of the black and white grids on the calibration plate at different positions into the roughly calibrated camera model to roughly locate the coordinates of the intersection points of the black and white grids corresponding to each image;

[0026] (4) Use image recognition algorithms to determine the precise coordinates of the intersections of the black and white grids in each of the three images;

[0027] (5) The precise coordinates of the intersection of the black and white grids are obtained, and the model parameters of the camera are calculated according to the one-to-one correspondence between the world coordinates and the image coordinates, thereby obtaining a precisely calibrated camera model.

[0028] In the above scheme, the method of roughly calibrating the camera in step (2) is as follows:

[0029] (2.1) Select several intersection points from each of the three images, record them as intersection points (i, j), and manually measure the pixel coordinates of these points;

[0030] (2.2) According to the one-to-one correspondence between world coordinates and image coordinates, the pixel coordinates of the intersection point (i, j) in each image are calculated;

[0031] (2.3) The manually measured pixel coordinates of the intersection point (i, j) and the calculated pixel coordinates of the intersection point (i, j) are constructed into a loss function, and the loss function is solved. The model parameters of the camera can be obtained by minimizing the loss function.

[0032] In the above scheme, the image recognition algorithm of step (4) is as follows:

[0033] (4.1) Select four points near the four corners of the calibration plate on the image, replace the pixels outside the quadrilateral formed by these four points with (255, 255, 255), and then cut out the rectangular sub-image containing the calibration plate;

[0034] (4.2) Grayscale the sub-image to obtain a grayscale image;

[0035] (4.3) Calculate the gradient of the grayscale image matrix and scale it to obtain the scaled overall gradient matrix;

[0036] (4.4) Binarize the scaled overall gradient matrix to obtain a binary image;

[0037] (4.5) Perform contour detection on the binary image, and each intersection of black and white grids forms a contour;

[0038] (4.6) Calculate the center coordinates of each contour in the image before interception;

[0039] (4.7) Compare the pixel coordinates of the black-and-white grid intersections located by the roughly calibrated camera model with the center coordinates of each contour in the image before interception, match the center of the contour to the pixel coordinates of the black-and-white grid intersections, and then remove the outliers in the row and column directions respectively;

[0040] (4.8) Fit the row and column pixel coordinates with a second-order or third-order polynomial function respectively, and fine-tune the pixel coordinates at the intersection of the black and white grids.

[0041] In the above scheme, in step 3, when installing the heliostat, ensure that the center of the heliostat mirror surface coincides with the center of the calibration plate, the long sides of the heliostat mirror surface and the calibration plate are parallel to each other, the short sides are parallel to each other, and the heliostat mirror surface is parallel to the target plate.

[0042] In the above scheme, in step 3, the specific method for locating the camera position in the reflected image is as follows:

[0043] The three components of the camera's coordinates in the world coordinate system obtained in step 2 are x cam,P ,y cam,P 、z cam,P , the subscript P represents the exact solution result, which is the imaging center point of the heliostat mirror (x cam,P ,y cam,P ,-2z cam,P );

[0044] Substitute the camera model parameters determined in step 2 into F x and F y , get the camera model function, denoted as F x,P and Fy,P , F x Represents a function from a point in the world coordinate system to the horizontal coordinate of a pixel, F y represents a function from a point in the world coordinate system to the pixel ordinate; then the pixel coordinates of the imaging center point of the camera on the heliostat mirror are:

[0045] u cam =F x,P (x cam,P ,y cam,P ,-2z cam,P )

[0046] v cam =F y,P (x cam,P ,y cam,P ,-2z cam,P )

[0047] Among them, u cam and v cam They represent the horizontal and vertical pixel coordinates of the imaging center point of the camera on the heliostat mirror surface calculated by the camera model;

[0048] The camera occupies a white grid on the target plate, and appears as a black circular area in the target plate image reflected by the heliostat. The square pixel matrix of the camera and the white grid outside it is used as a template. cam ±τ5,v cam ±τ5), where τ5 is a matching region size threshold, the template matrix is ​​denoted as M, and the sub-region matrix matched with it is denoted as A. Their elements in row a and column b are denoted as M a,b and A a,b , the matching score s is expressed as:

[0049]

[0050] Among them, n row,M Indicates the number of rows in the template matrix, n col,M Indicates the number of columns of the template matrix;

[0051] in (u cam ±τ5,v cam The sub-region with the smallest template matching score within the range of ±τ5) is the camera's own imaging area, and its center is the camera's pixel coordinates. The horizontal and vertical pixel coordinates are marked as u′ cam and v′ cam ; The horizontal pixel difference and vertical pixel difference between them and the coordinates calculated by the camera model are recorded as Δu cam and Δv cam , expressed as

[0052] Δucam =u′ cam -u cam

[0053] Δv cam =v′ cam -v cam .

[0054] In the above scheme, in step 3, the method for calculating the world coordinates of the corresponding points of the black and white grid intersections on the heliostat mirror surface is as follows:

[0055] First, calculate the world coordinates of the ideal imaging point of a black and white grid intersection on the target plate on the heliostat mirror surface, then correct it according to the camera's own imaging position, and then match the point with the closest pixel distance among the detected black and white grid intersections, discard the points with too large distances, and calculate the world coordinates of the reflection point on the heliostat mirror surface for the points that meet the conditions, as follows:

[0056] The world coordinates of the intersection of a black and white grid on the target board are (x target,I,J ,y target,I,J ,z target,I,J ), the ideal coordinates of the imaging point of this point in the heliostat mirror are (x target,I,J ,y target,I,J ,-2z target,I,J ), the corresponding ideal pixel coordinates in the camera image are:

[0057] u target,I,J =F x,P (x target,I,J ,y target,I,J ,-2z target,I,J )

[0058] v target,I,J =F y,P (x target,I,J ,y target,I,J ,-2z target,I,J )

[0059] Among them, u target,I,J and v target,I,J They represent the horizontal and vertical pixel coordinates of the image point on the heliostat mirror surface calculated by the camera model under ideal conditions at the intersection of the black and white grids;

[0060] Considering the correction of the camera's own imaging position, the calculated coordinates after correction are:

[0061] u′ target,I,J =u target,I,J +Δu cam

[0062] v′ target,I,J =v target,I,J +Δv cam

[0063] Among them, u′ target,I,J and v′ target,I,J Respectively represent the horizontal and vertical pixel coordinates of the intersection of the black and white grid obtained after correction; Δu cam and Δv cam are the horizontal pixel difference and vertical pixel difference between the pixel coordinates determined by template matching and the pixel coordinates calculated by the camera model;

[0064] Find the image coordinates of the intersection points of the black and white grids obtained by image processing that correspond to (u′ target,I,J ,v′ target,I,J ) is the point closest to the target,I,J,mesure ,v target,I,J,mesure ), if the distance between them is greater than τ6, then the point is discarded and the next point is calculated. If the distance is less than τ6, the pixel coordinates of the intersection of the black and white grids (u target,I,J,mesure ,v target,I,J,mesure ) and the corresponding world coordinates of the point on the heliostat mirror have the following relationship:

[0065] u target,I,J,mesure =F x,cam,P (x target,I,J,cam ,y target,I,J,cam ,0)

[0066] v target,I,J,mesure =F y,cam,P (x target,I,J,cam ,y target,I,J,cam ,0)

[0067] Among them, x target,I,J,cam and target,I,J,cam Respectively represent the intersection of black and white grids (x target,I,J ,y target,I,J ,z target,I,J ) is the x and y components of the world coordinates of the point on the heliostat mirror surface corresponding to, and the z component is 0;

[0068] The two relations between the pixel coordinates of the intersection of the black and white grid and the corresponding world coordinates of the point on the heliostat mirror surface can be combined to obtain x target,I,J,cam and target,I,J,cam .

[0069] In the above scheme, in step 3, the normal direction of the corresponding point of the black and white grid intersection on the heliostat mirror surface is calculated as follows:

[0070] The light is given by (x target,I,J ,y target,I,J ,z target,I,J )Departure via (x target,I,J,cam ,y target,I,J,cam ,0)Reflection reaches (x cam,P ,ycam,P ,z cam,P ), then the point (x target,I,J,cam ,y target,I,J,cam ,0) is expressed as

[0071] c pre (x target,I,J +x cam,P -2x target,I,J,cam ,y target,I,J +y cam,P -2y target,I,J,cam ,z target,I,J +z cam,P )

[0072] Among them, c pre is the normalization factor, i.e.

[0073]

[0074] Through the above technical solution, the heliostat curvature detection method based on image processing technology provided by the present invention has the following beneficial effects:

[0075] 1. The present invention can quickly detect the normal direction distribution of each point on the heliostat reflector plane under the premise of ensuring a certain accuracy.

[0076] 2. The detection method of the present invention is simple and rapid, and is suitable for rapid mass detection of heliostats when they leave the factory.

[0077] 3. The entire detection process is realized through image processing algorithms, which greatly improves the degree of automation of the detection process, reduces dependence on manual operations, and improves detection efficiency.

[0078] 4. This method does not require direct contact with the heliostat surface, avoiding damage or contamination that may be caused by contact, and also reduces the safety risks of operators.

[0079] 5. This method can adapt to heliostats of different sizes, shapes, and materials by simply adjusting the camera model parameters accordingly. In addition, the image processing algorithm has a certain generalization ability and can adapt to different lighting conditions and reflection characteristics. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] 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 are briefly introduced below.

[0081] Figure 1 This is a schematic diagram of a calibration board disclosed in an embodiment of the present invention.

[0082] Figure 2 Schematic diagram of the calibration device.

[0083] Figure 3 Determine the four corners marking diagram for the scope of the verification plate.

[0084] Figure 4 Schematic diagram of a multi-camera calibration device.

[0085] In the figure, 1. camera; 2. target plate; 3. calibration plate; 4. bracket; 5. robotic arm; 6. camera lens. DETAILED DESCRIPTION

[0086] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0087] The present invention provides a heliostat curvature detection method based on image processing technology, comprising the following steps:

[0088] Step 1: Prepare the calibration plate and target plate, and draw or paste the following on the calibration plate and target plate respectively: Figure 1 The chessboard shown is an alternating black and white checkerboard, and the side length of each checkerboard on the target board is twice the side length of each checkerboard on the calibration board; the calibration board and the target board are tested to determine the calibration board coordinate system coordinates of the intersection of the black and white checkers on the calibration board and the target board coordinate system coordinates of the intersection of the black and white checkers on the target board.

[0089] This step uses a high-precision method to measure the coordinates of the intersection of the black and white grid on the calibration board, and then transforms the coordinates into a new coordinate system. The new coordinate system takes the center of the calibration board plane as the origin, and the straight lines in the long side direction, short side direction, and normal direction as the three coordinate axes x, y, and z respectively.

[0090] The method for determining the coordinates of the calibration board coordinate system of the intersection of the black and white grid on the calibration board is as follows:

[0091] (1) Prepare a flat plate made of rigid material as a calibration plate and use a rangefinder or laser scanner to measure the coordinates of the intersection points of the black and white grids, which can be expressed as

[0092] Wherein, j represents the intersection number of the calibration plate in the horizontal direction, i represents the intersection number of the calibration plate in the vertical direction, the top left intersection number is '1,1', the next point to its right is '1,2', and the point below it is '2,1'; the superscript mesure indicates that the current coordinate system is the measurement system; represents the x-coordinate of the point in the measurement coordinate system, represents the y coordinate of the point in the measurement coordinate system, Indicates the z coordinate of the point in the measurement coordinate system.

[0093] The coordinates of these points form a matrix X mesure ,Right now

[0094]

[0095] Among them, n x Indicates the number of columns of horizontal intersections, n y Indicates the number of rows of vertical intersections, matrix X mesure There are x n y OK, They represent the coordinates of the three directions of the '1,1' intersection point, and so on.

[0096] The geometric center of these points is

[0097]

[0098] in, and They are the x, y, and z coordinates of the geometric centers of these points respectively.

[0099] (2) Subtract the coordinates of the geometric center from the coordinates of these points to obtain a new set of coordinates, expressed as

[0100]

[0101] in,

[0102]

[0103] This new set of coordinates forms a new matrix X mesure,c , the transposed matrix of this matrix is ​​expressed as (X mesure,c ) T .

[0104] (3) For the matrix X mesure,c The transposed matrix (X mesure,c ) T and the matrix X mesure,c The product of is decomposed to obtain the eigenvector matrix U, that is

[0105] U T (X mesure,c ) T X mesure,c Y=Λ

[0106] Where U is the eigenvector matrix, U T is its transposed matrix, Λ is the eigenvalue matrix, which is a diagonal matrix.

[0107] X mesure,c Multiplying with the eigenvector matrix U gives the coordinate matrix X, that is

[0108] X=X mesure,c U

[0109] At this time, the coordinate axes of the coordinate system where the coordinate matrix X is located are the long side, short side and normal of the calibration board, and the origin is the center of the checkerboard surface of the calibration board.

[0110] The method for determining the coordinates of the target board coordinate system of the intersection of the black and white grid on the target board is the same as the method for determining the coordinates of the calibration board coordinate system of the intersection of the black and white grid on the calibration board. First, detect the coordinates of the intersection of the black and white grid on the target board and perform coordinate transformation. Then, translate the transformed coordinates in the negative direction of the z-axis of the world coordinate system by a distance d to obtain the world coordinates (x target,I,J ,y target,I,J ,z target,I,J ). Wherein, J represents the intersection number of the target plate in the horizontal direction, and I represents the intersection number of the target plate in the vertical direction.

[0111] Step 2: Arrange the calibration equipment, such as Figure 2 As shown, the camera 1 is arranged behind the target plate 2, the camera lens 6 extends out of the target plate 2 and is located in the same plane as the target plate 2, and the calibration plate 3 is arranged in front of the target plate 2; in the verification equipment, the area of ​​the target plate 2 is larger than the calibration plate 3, ensuring that when the calibration plate 3 is replaced with a heliostat of the same size, the camera 1 cannot observe the edge of the target plate 2 in the heliostat; the calibration plate 3 is parallel to the two planes of the target plate 2, the center line of the calibration plate 3 and the target plate 2 is parallel to the normal of the calibration plate 3, and the camera 1 includes one or two or more; the camera lens 6 extends from a white grid in the center of the target plate 2, the camera optical axis is perpendicular to the calibration plate, the long side M of the target plate 2 and the long side P of the calibration plate 3 are parallel to the horizontal direction, and the short side N of the target plate 2 and the short side Q of the calibration plate 3 are parallel to the vertical direction; the target plate 2 is supported by a bracket 4 at the bottom, and the calibration plate 3 is lifted by a mechanical arm 5; after the arrangement, the camera 1 can completely capture the calibration plate 3, and the distance between the calibration plate 3 and the target plate 2 is d (for example, 6 meters).

[0112] The calibration board coordinate system at this time is taken as the world coordinate system, and the calibration board coordinate system coordinates of the intersection of the black and white grids on the calibration board are its world coordinates. The world coordinates of the intersection of the black and white grids on the target board are obtained by translating the coordinate system.

[0113] Move the calibration board, collect image data of the calibration board at different positions, and use the world coordinates of the intersection of the black and white grids on the calibration board as a reference to calibrate the camera and obtain the model parameters of the camera, including the world coordinates and focal length of the camera.

[0114] The specific method of calibrating the camera is as follows:

[0115] (1) Take three pictures of the calibration plate at its original position, at a position moved forward or backward along the normal direction, and at a position moved left or right along the long side of the calibration plate. Let the distance moved forward be Δz, and the distance moved right be Δx. The center coordinates of the calibration plate facing the camera are set as the origin, and the center coordinates of the calibration plate facing the camera at the three positions are (0,0,0), (0,0,Δz), and (Δx,0,0). The pictures collected by the camera at these three positions are named Pic1, Pic2, and Pic3 respectively.

[0116] (2) Select a small number of points on the calibration board, record the image coordinates, construct the loss function, solve the camera model parameters, and obtain a roughly calibrated camera model.

[0117] For a pinhole camera, the camera imaging model can be expressed as

[0118] u=f x x distorted +c x

[0119] v=f y y distorted +c y

[0120] in,

[0121]

[0122] Among them, u represents the horizontal pixel coordinate, v represents the vertical pixel coordinate, and f x 、f y Represents the focal length in the x and y directions, c x 、c y Respectively represent the horizontal and vertical pixel coordinates of the center of the image, x distorted Indicates the x coordinate after distortion, y distorted represents the y coordinate after distortion, x′, y′, z′ represent the coordinates of a point in space in three dimensions in the camera coordinate system, k1, k2, k3 represent the first-order, second-order, and third-order parameters of radial distortion, p1 and p2 represent the first-order and second-order parameters of tangential distortion, and r represents the distance from the point to the origin on the imaging plane.

[0123] The coordinate system established with the center of the calibration board grid as the origin, the long side as the x-axis, the short side as the y-axis, and the normal as the z-axis is named the world coordinate system, which is the coordinate system where the coordinate matrix X in step 1 is located. There is the following relationship between the camera coordinate system and the world coordinate system:

[0124]

[0125] Among them, x′, y′, and z′ are the three components of the coordinates of a point (x, y, z) in the world coordinate system in the camera coordinate system. cam ,y cam 、z cam They are the three components of the camera's coordinates in the world coordinate system, R x , R y , R z They are the rotation matrices around the x, y, and z axes when the camera coordinate system and the world coordinate system are transformed. These three rotation matrices can be expressed as:

[0126]

[0127]

[0128] Among them, α, β, and γ are the rotation angles around the x, y, and z axes when the camera coordinate system and the world coordinate system are transformed.

[0129] Here's how to roughly calibrate the camera:

[0130] (2.1) Select several intersection points from each of the three images and record them as intersection points (i, j). For example, the following intersection points can be selected: (1, 1), (1, 88), (1, 175), (50, 1), (50, 1), (1, 175), (99, 1), (99, 88), (99, 175). Manually measure the pixel coordinates of these points; the measurement method is to open the image with an image viewing software that does not perform visual correction on the image, zoom in on the part, move the mouse to the intersection point, and record the pixel coordinates. Taking the intersection point (i, j) of the image Pic1 as an example, its horizontal coordinate is marked as u i,j,11,mesure , will be marked as v i,j,11,mesure .

[0131] (2.2) According to the one-to-one correspondence between world coordinates and image coordinates, the pixel coordinates of the intersection point (i, j) in each image are calculated;

[0132] For the picture Pic1, the intersection point (i, j) can get two equations, namely

[0133] u i,j,1 =F x (x i,j ,y i,j ,z i,j |x cam ,y cam ,z cam ,α,β,γ,f x ,c x ,k1,k2,k3,p1,p2)

[0134] v i,j,1=F y (x i,j ,y i,j ,z i,j |x cam ,y cam ,z cam ,α,β,γ,f y ,c y ,k1,k2,k3,p1,p2)

[0135] Among them, u i,j,1 、v i,j,1 Respectively represent the pixel coordinates of the intersection points i and j in the picture Pic1, F x represents a function from a point in the world coordinate system to the horizontal coordinate of a pixel, that is, the function obtained by combining the transformation process from the world coordinate system to the camera coordinate system and then to the image coordinate system as described above. Similarly, F y A function that represents a point in the world coordinate system to the pixel ordinate.

[0136] For the picture Pic2, the two equations that can be obtained at the intersection point (i, j) are

[0137] u i,j,2 =F x (x i,j ,y i,j ,z i,j +Δz|x cam ,y cam ,z cam ,α,β,γ,f x ,c x ,k1,k2,k3,p1,p2)

[0138] v i,j,2 =F y (x i,j ,y i,j ,z i,j +Δz|x cam ,y cam ,z cam ,α,β,γ,f y ,c y ,k1,k2,k3,p1,p2)

[0139] Among them, u i,j,2 、v i,j,2 Respectively represent the pixel coordinates of intersection points i and j in picture Pic2.

[0140] For the picture Pic3, the two equations that can be obtained at the intersection point (i, j) are

[0141] u i,j,3 =F x(x i,j +Δx,y i,j ,z i,j |x cam ,y cam ,z cam ,α,β,γ,f x ,c x ,k1,k2,k3,p1,p2)

[0142] v i,j,3 =F y (x i,j +Δx,y i,j ,z i,j |x cam ,y cam ,z cam ,α,β,γ,f y ,c y ,k1,k2,k3,p1,p2)

[0143] Among them, u i,j,3 、v i,j,3 Respectively represent the pixel coordinates of intersection points i and j in picture Pic3.

[0144] (2.3) The manually measured pixel coordinates of the intersection point (i, j) and the calculated pixel coordinates of the intersection point (i, j) are constructed into a loss function, and the loss function is solved. The model parameters of the camera can be obtained by minimizing the loss function.

[0145] Loss Function as follows:

[0146]

[0147] Among them, img represents the image label, u i,j,img and v i,j,img Respectively represent the horizontal and vertical coordinates of the pixel at the intersection point i and j on the image img calculated by the camera model, u i,j,img,mesure and v i,j,img,mesure They represent the horizontal and vertical coordinates of the pixels of the intersection points i and j on the manually marked image img respectively. The sum of img is performed on the three images corresponding to the camera, and the sum of i and j is performed on all manually marked intersection points.

[0148] Parameter x cam ,y cam ,z cam The initial value of is set to the measured value of the distance between the camera and the center of the calibration plate in three directions; the initial values ​​of parameters α, β, γ are set to 0; the initial values ​​of parameters k1, k2, k3, p1, p2 are set to 0; the initial values ​​of parameter c x ,c yThe initial value of is taken as half of the resolution of the image in each direction. For example, if the image size is 2592×1944, the initial value is c x =1295.5, c y =971.5; parameter f x ,f y The initial value of is set as follows:

[0149]

[0150] Among them, f x,guess0 Represents parameter f x The initial value of Δu cali_plate represents the pixel length of the calibration plate, l cali_plate represents the actual length of the calibration plate, f y,guess0 Represents parameter f y The initial value of Δv cali_plate Represents the pixel width of the calibration plate, w cali_plate Represents the actual width of the calibration plate. Then, the conjugate direction method, gradient descent method, and other methods are used to minimize the loss function to obtain the camera model parameters.

[0151] (3) The coordinates of the intersection points of the black and white grids on the calibration plate at different positions are input into the roughly calibrated camera model to roughly locate the coordinates of the intersection points of the black and white grids corresponding to each image.

[0152] For the image Pic1, substitute the coordinates of the intersection points of the calibration board represented by the matrix X into the F of the roughly calibrated camera parameters obtained in step (2.3) x and F y In the example above, the pixel coordinates of the corresponding points on the image can be calculated.

[0153] For the image Pic2, add Δz to the z coordinates of the intersection points of the calibration board represented by the matrix X and insert them into the F matrix of the roughly calibrated camera parameters obtained in step (2.3). x and F y In the example above, the pixel coordinates of the corresponding points on the image can be calculated.

[0154] For the picture Pic3, add Δx to the x-coordinates of the intersection points of the calibration board represented by the matrix X and insert them into the F matrix of the roughly calibrated camera parameters obtained in step (2.3). x and F y In the example above, the pixel coordinates of the corresponding points on the image can be calculated.

[0155] (4) Use image recognition algorithms to determine the precise coordinates of the intersections of the black and white grids in the three images.

[0156] The image recognition algorithm is as follows:

[0157] (4.1) Select four points near the four corners of the calibration plate on the image, replace the pixels outside the quadrilateral formed by these four points with (255, 255, 255), and then cut out the rectangular sub-image containing the calibration plate.

[0158] Mark four points on the image. Make sure that the quadrilateral formed by these four points can include the calibration plate area and include as little part outside the calibration plate as possible (such as Figure 3 The pixel values ​​outside the quadrilateral are set to (255, 255, 255).

[0159] Take the minimum and maximum values ​​for the horizontal and vertical coordinates of these four points respectively, and the horizontal minimum value is u min , the horizontal maximum value is u max , the vertical minimum value is v min , the vertical maximum value is v max .

[0160] Cut four points from the image after pixel replacement (u min ,v min )、(u min ,v max )、(u max ,v max )、(u max ,v min ) is referred to as a sub-picture below.

[0161] (4.2) Grayscale the sub-image to obtain a grayscale image;

[0162] The gray value is calculated as follows:

[0163]

[0164] The matrix corresponding to the grayscale image is denoted as P grey .

[0165] (4.3) Calculate the gradient of the grayscale image matrix and scale it to obtain the scaled overall gradient matrix.

[0166] For the grayscale image matrix P grey The following convolution operation is performed in the horizontal direction:

[0167]

[0168] Among them, G x Represents the horizontal gradient matrix after horizontal convolution, and * represents the convolution operation.

[0169] For the grayscale image matrix P grey The following convolution operation is performed in the vertical direction:

[0170]

[0171] Among them, G y Represents the vertical gradient matrix after vertical convolution. The overall gradient matrix G is expressed as:

[0172]

[0173] in, Represents an element-by-element multiplication operation. The overall gradient matrix G is scaled so that each element ranges from 0 to 255, that is:

[0174]

[0175] Wherein, G′ represents the gradient matrix after scaling, min(G) represents the minimum value of all elements of the overall gradient matrix, and max(G) represents the maximum value of all elements of the overall gradient matrix.

[0176] (4.4) The scaled overall gradient matrix is ​​binarized to obtain a binary image.

[0177] Binarize the matrix G′, that is

[0178]

[0179] Among them, b v′,u′ Represents the value of the binary matrix B at the position v′,u′, g′ v′,u′ It represents the value of matrix G′ at position v′,u′. v′ and u′ represent the row and column numbers of the matrix respectively, and are also the vertical and horizontal pixel coordinates of the corresponding sub-image. The size of gradient image and binary image is the same as that of the sub-image. v′ and u′ are also their corresponding pixel coordinates. τ1 is the binarization threshold, which can be 150, for example.

[0180] (4.5) Perform contour detection on the binary image, and each intersection of black and white grids forms a contour.

[0181] Here’s how:

[0182] ① Detect each pixel of the binary image one by one. If a pixel whose own pixel value is not 0 has more than one 0 pixel in its 8 neighboring points (or 4 neighborhood points, i.e. 4 points above, below, left and right), then the point is a contour point.

[0183] ②Record the coordinates of all contour points.

[0184] ③ If the distance between two contour points is less than or equal to √2, then the two contour points are considered to belong to one contour. According to this principle, all contour points are grouped according to contours.

[0185] (4.6) Calculate the center coordinates of each contour in the image before clipping.

[0186] For a contour, its center coordinates in the original image before interception are

[0187]

[0188] Where c represents the contour number, Represents the horizontal coordinates of the center of contour c, Indicates the vertical coordinate of the center of contour c, n c represents the number of contour points of contour c, p represents the sequence number of contour points, represents the horizontal coordinate of the pth contour point in the cut sub-image of contour c, Represents the vertical coordinate of the pth contour point in contour c in the intercepted subimage.

[0189] (4.7) Compare the pixel coordinates of the black-and-white grid intersections located by the roughly calibrated camera model with the coordinates of the center of each contour in the image before clipping, match the center of the contour to the pixel coordinates of the black-and-white grid intersections, and then remove the outliers in the row and column directions respectively.

[0190] The specific method is as follows:

[0191] ① Compare the pixel coordinates of the roughly located black and white grid intersection in step (2.4) with the contour center coordinates in step (4.6) one by one. If the distance between the two is less than the threshold τ2, for example, it can be taken as 2, then this contour center is considered to be the contour center of the black and white grid intersection.

[0192] ② If there are multiple contour centers corresponding to a black-and-white grid intersection, the contour center with the smallest distance to the pixel coordinates of the roughly located black-and-white grid intersection is taken as its pixel coordinates.

[0193] ③ Take the pixel coordinates of the intersection of black and white grids by row. If the distance between a coordinate point in this row and the pixel coordinate point is less than the threshold τ3, such as 7, and the number of coordinate points in this row is less than the threshold τ4, such as 5, then the point is considered to be an outlier and deleted.

[0194] ④ Take the pixel coordinates of the intersection of black and white grids by column. If the distance between a coordinate point in this column and the pixel coordinate point is less than the threshold τ3, such as 7, and the number of coordinate points in this column is less than the threshold τ4, such as 5, then the point is considered to be an outlier and deleted.

[0195] (4.8) Fit the row and column pixel coordinates with a second-order or third-order polynomial function respectively, and fine-tune the pixel coordinates at the intersection of the black and white grids.

[0196] The specific method is as follows:

[0197] ① Take the pixel coordinates of the intersection points of black and white grids by row, use the column numbers of these points as independent variables and the pixel ordinates as dependent variables, fit a second-order or third-order polynomial function, and retain the fitting parameters of each row.

[0198] ② Take the pixel coordinates of the intersection points of black and white grids by column, use the row numbers of these points as independent variables and the horizontal coordinates of the pixels as dependent variables, fit a second-order or third-order polynomial function, and retain the fitting parameters of each column.

[0199] ③Substitute the row and column numbers into the fitting polynomials described in the first two steps to calculate the pixel coordinates of the intersection of the black and white grids after fine-tuning.

[0200] (5) The precise coordinates of the intersection of the black and white grids are obtained, and the model parameters of the camera are obtained according to the one-to-one functional relationship between the world coordinates and the image coordinates (the solution method shown in step 2.3), thereby obtaining a precisely calibrated camera model.

[0201] Step 3, replace the calibration plate with the heliostat, locate the camera position in the reflected image, detect the intersection of black and white grids in the reflected image using an image algorithm, calculate the world coordinates of the corresponding points of the black and white grid intersections on the heliostat mirror according to the model parameters of the camera, and finally calculate the normal direction of the corresponding points of the black and white grid intersections on the heliostat mirror through the world coordinates of the black and white grid intersections on the target plate, the world coordinates of the corresponding points of the black and white grid intersections on the heliostat mirror, and the world coordinates of the camera to obtain the curvature of the heliostat.

[0202] When installing the heliostat, ensure that the center of the heliostat mirror coincides with the center of the calibration plate, the long sides of the heliostat mirror and the calibration plate are parallel to each other, the short sides are parallel to each other, and the heliostat mirror is parallel to the target plate.

[0203] The specific method for locating the camera position in the reflection image is as follows:

[0204] The three components of the camera's coordinates in the world coordinate system obtained in step 2 are x cam,P ,y cam,P 、z cam,P , the subscript P represents the exact solution result, which is the imaging center point of the heliostat mirror (x cam,P ,y cam,P ,-2z cam,P );

[0205] Substitute the camera model parameters determined in step 2 into F x and F y , get the camera model function, denoted as F x,P and F y,P , F x Represents a function from a point in the world coordinate system to the horizontal coordinate of a pixel, F yrepresents a function from a point in the world coordinate system to the pixel ordinate; then the pixel coordinates of the imaging center point of the camera on the heliostat mirror are:

[0206] u cam =F x,P (x cam,P ,y cam,P ,-2z cam,P )

[0207] v cam =F y,P (x cam,P ,y cam,P ,-2z cam,P )

[0208] Among them, u cam and v cam They represent the horizontal and vertical pixel coordinates of the imaging center point of the camera on the heliostat mirror surface calculated by the camera model.

[0209] The camera lens occupies a white grid on the target plate, which appears as a black circular area in the target plate image reflected by the heliostat. The square pixel matrix of the camera and the white grid outside it is used as a template. cam ±τ5,v cam ±τ5), where τ5 is a matching region size threshold, for example, 50. The template matrix is ​​denoted as M, and the sub-region matrix that matches it is denoted as A. Their elements in row a and column b are denoted as M a,b and A a,b , the matching score s is expressed as:

[0210]

[0211] Among them, n row,M Indicates the number of rows in the template matrix, n col,M Indicates the number of columns of the template matrix;

[0212] in (u cam ±τ5,v cam The sub-region with the smallest template matching score within the range of ±τ5) is the camera's own imaging area, and its center is the camera's pixel coordinates. The horizontal and vertical pixel coordinates are marked as u′ cam and v′ cam ; The horizontal pixel difference and vertical pixel difference between them and the coordinates calculated by the camera model are recorded as Δu cam and Δv cam , expressed as

[0213] Δu cam =u′ cam -u cam

[0214] Δv cam =v′ cam -v cam .

[0215] The calculation method of the world coordinates of the corresponding points of the black and white grid intersections on the heliostat mirror is as follows:

[0216] First, calculate the world coordinates of the ideal imaging point of a black and white grid intersection on the target plate on the heliostat mirror surface, then correct it according to the camera's own imaging position, and then match the point with the closest pixel distance among the detected black and white grid intersections, discard the points with too large distances, and calculate the world coordinates of the reflection point on the heliostat mirror surface for the points that meet the conditions, as follows:

[0217] The world coordinates of the intersection of a black and white grid on the target board are (x target,I,J ,y target,I,J ,z target,I,J ), the ideal coordinates of the imaging point of this point in the heliostat mirror are (x target,I,J ,y target,I,J ,-2z target,I,J ), the corresponding ideal pixel coordinates in the camera image are:

[0218] u target,I,J =F x,P (x target,I,J ,y target,I,J ,-2z target,I,J )

[0219] v target,I,J =F y,P (x target,I,J ,y target,I,J ,-2z target,I,J )

[0220] Among them, u target,I,J and v target,I,J They represent the horizontal and vertical pixel coordinates of the image point on the heliostat mirror surface calculated by the camera model under ideal conditions at the intersection of the black and white grids;

[0221] Considering the correction of the camera's own imaging position, the calculated coordinates after correction are:

[0222] u′ target,I,J =u target,I,J +Δu cam

[0223] v′ target,I,J =v target,I,J +Δv cam

[0224] Among them, u′ target,I,J and v′target,I,J Respectively represent the horizontal and vertical pixel coordinates of the intersection of the black and white grid obtained after correction; Δu cam and Δv cam are the horizontal pixel difference and vertical pixel difference between the pixel coordinates determined by template matching and the pixel coordinates calculated by the camera model;

[0225] From the image coordinates of each black and white grid intersection obtained in step (4.8), find the coordinates corresponding to (u′ target,I,J ,v′ target,I,J ) is the point closest to the target,I,J,mesure ,v target,I,J,mesure ), if the distance between them is greater than τ6, for example, 4, then the point is discarded and the next point is calculated. If the distance is less than τ6, the pixel coordinates of the intersection of the black and white grids (u target,I,J,mesure ,v target,I,J,mesure ) and the corresponding world coordinates of the point on the heliostat mirror have the following relationship:

[0226] u target,I,J,mesure =F x,cam,P (x target,I,J,cam ,y target,I,J,cam ,0)

[0227] v target,I,J,mesure =F y,cam,P (x target,I,J,cam ,y target,I,J,cam ,0)

[0228] Among them, x target,I,J,cam and target,I,J,cam Respectively represent the intersection of black and white grids (x target,I,J ,y target,I,J ,z target,I,J ) is the x and y components of the world coordinates of the point on the heliostat mirror surface corresponding to, and the z component is 0;

[0229] The two relations between the pixel coordinates of the intersection of the black and white grid and the corresponding world coordinates of the point on the heliostat mirror surface can be combined to obtain x target,I,J,cam and target,I,J,cam .

[0230] The calculation of the normal direction of the corresponding point of the black and white grid intersection on the heliostat mirror surface is as follows:

[0231] The light is given by (x target,I,J ,y target,I,J ,z target,I,J )Departure via (x target,I,J,cam ,y target,I,J,cam ,0)Reflection reaches (x cam,P ,y cam,P ,z cam,P ), then the point (xtarget,I,J,cam ,y target,I,J,cam ,0) is represented by c pre (x target,I,J +x cam,P -2x target,I,J,cam ,y target,I,J +y cam,P -2y target,I,J,cam ,z target,I,J +z cam,P )

[0232] Among them, c pre is the normalization factor, i.e.

[0233]

[0234] The normal directions of the remaining black and white grid intersections of the heliostat reflector plane on the image taken by the camera are also obtained using the above method.

[0235] The above method is for the case of using one camera to detect the curvature of the heliostat. The same effect can be achieved by using two or more cameras. Figure 4 As shown, both camera lenses 6 are arranged near the center of the target plate 2. When multiple cameras are used for curvature detection, if the detection points of two cameras coincide or nearly coincide (the pixel distance is less than the threshold value τ7, such as 0.2), the bisector direction of the two normal direction vectors is taken as the new normal, and the normal direction at the midpoint of the two detection points is considered to be the new normal direction.

[0236] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A heliostat curvature detection method based on image processing technology, characterized in that: The steps include: Step 1, prepare a calibration plate and a target plate, draw or paste black and white checkerboards on the calibration plate and the target plate respectively, and the side length of each checkerboard on the target plate is twice the side length of each checkerboard on the calibration plate; detect the calibration plate and the target plate to determine the coordinates of the intersection of the black and white checkerboard on the calibration plate and the coordinates of the intersection of the black and white checkerboard on the target plate in the target plate coordinate system; Step 2, arrange the calibration equipment, set the camera behind the target board, the camera lens extends out of the target board and is located in the same plane as the target board, and the calibration board is set in front of the target board, the long side of the target board is parallel to the long side of the calibration board, and the short side of the target board is parallel to the short side of the calibration board; take the calibration board coordinate system at this time as the world coordinate system, the calibration board coordinate system coordinates of the intersection of the black and white grids on the calibration board are its world coordinates, and translate the coordinate system to obtain the world coordinates of the intersection of the black and white grids on the target board; move the calibration board, collect image data of the calibration board at different positions, and use the world coordinates of the intersection of the black and white grids on the calibration board as a reference to calibrate the camera to obtain the model parameters of the camera, including the world coordinates and focal length of the camera; Step 3, replace the calibration plate with the heliostat, locate the camera position in the reflected image, detect the intersection of black and white grids in the reflected image using an image algorithm, calculate the world coordinates of the corresponding points of the black and white grid intersections on the heliostat mirror according to the model parameters of the camera, and finally calculate the normal direction of the corresponding points of the black and white grid intersections on the heliostat mirror through the world coordinates of the black and white grid intersections on the target plate, the world coordinates of the corresponding points of the black and white grid intersections on the heliostat mirror, and the world coordinates of the camera to obtain the curvature of the heliostat.

2. The method for detecting curvature of a heliostat based on image processing technology according to claim 1, characterized in that: In the verification device, the target plate area is larger than the calibration plate, ensuring that when the calibration plate is replaced with a heliostat of the same size, the camera cannot observe the edge of the target plate in the heliostat; the calibration plate and the target plate are parallel to two planes, the center line of the calibration plate and the target plate is parallel to the normal of the calibration plate, and the camera includes one or two or more cameras; the camera lens extends from a white grid in the center of the target plate, the camera optical axis is perpendicular to the calibration plate, the long sides of the target plate and the calibration plate are parallel to the horizontal direction, and the short sides are parallel to the vertical direction; the target plate is supported by a bracket below, and the calibration plate is lifted by a mechanical arm; after the arrangement, the camera can completely capture the calibration plate.

3. The method for detecting curvature of a heliostat based on image processing technology according to claim 1, characterized in that: In step 1, the method for determining the coordinates of the calibration board coordinate system of the intersection of the black and white grid on the calibration board is as follows: (1) Prepare a flat plate made of rigid material as a calibration plate, and use a rangefinder or laser scanner to measure the coordinates of the intersection points of the black and white grid. The coordinates of these points form a matrix X mesure ; (2) Subtract the coordinates of these points from their geometric center coordinates to obtain the matrix X mesure,c ; (3) For the matrix X mesure,c The transposed matrix and matrix X mesure,c The product of is decomposed to obtain the eigenvector matrix U, and X mesure,c Multiplying with the eigenvector matrix U yields the coordinate matrix X. The coordinate axes of the coordinate system of the coordinate matrix X are the long side, short side and normal of the calibration board, and the origin is the center of the checkerboard surface of the calibration board. The method for determining the target plate coordinate system coordinates of the intersection of the black and white grids on the target plate is the same as the method for determining the calibration plate coordinate system coordinates of the intersection of the black and white grids on the calibration plate.

4. The method for detecting curvature of a heliostat based on image processing technology according to claim 1, characterized in that: In step 2, the specific method of calibrating the camera is as follows: (1) Take three pictures of the calibration plate at its original position, at a position moved forward or backward along the normal direction, and at a position moved left or right along the long side of the calibration plate; (2) Select a small number of points on the calibration board, record the image coordinates, construct the loss function, solve the camera model parameters, and obtain a roughly calibrated camera model; (3) Input the coordinates of the intersection points of the black and white grids on the calibration plate at different positions into the roughly calibrated camera model to roughly locate the coordinates of the intersection points of the black and white grids corresponding to each image; (4) Use image recognition algorithms to determine the precise coordinates of the intersections of the black and white grids in each of the three images; (5) The precise coordinates of the intersection of the black and white grids are obtained, and the model parameters of the camera are calculated according to the one-to-one correspondence between the world coordinates and the image coordinates, thereby obtaining a precisely calibrated camera model.

5. The method for detecting curvature of a heliostat based on image processing technology according to claim 4, characterized in that: Step (2) The method for roughly calibrating the camera is as follows: (2.1) Select several intersection points from each of the three images, record them as intersection points (i, j), and manually measure the pixel coordinates of these points; (2.2) According to the one-to-one correspondence between world coordinates and image coordinates, the pixel coordinates of the intersection point (i, j) in each image are calculated; (2.3) The manually measured pixel coordinates of the intersection point (i, j) and the calculated pixel coordinates of the intersection point (i, j) are constructed into a loss function, and the loss function is solved. The model parameters of the camera can be obtained by minimizing the loss function.

6. The method for detecting curvature of a heliostat based on image processing technology according to claim 4, characterized in that: The image recognition algorithm of step (4) is as follows: (4.1) Select four points near the four corners of the calibration plate on the image, replace the pixels outside the quadrilateral formed by these four points with (255, 255, 255), and then cut out the rectangular sub-image containing the calibration plate; (4.2) Grayscale the sub-image to obtain a grayscale image; (4.3) Calculate the gradient of the grayscale image matrix and scale it to obtain the scaled overall gradient matrix; (4.4) Binarize the scaled overall gradient matrix to obtain a binary image; (4.5) Perform contour detection on the binary image, and each intersection of black and white grids forms a contour; (4.6) Calculate the center coordinates of each contour in the image before interception; (4.7) Compare the pixel coordinates of the black-and-white grid intersections located by the roughly calibrated camera model with the center coordinates of each contour in the image before interception, match the center of the contour to the pixel coordinates of the black-and-white grid intersections, and then remove the outliers in the row and column directions respectively; (4.8) Fit the row and column pixel coordinates with a second-order or third-order polynomial function respectively, and fine-tune the pixel coordinates at the intersection of the black and white grids.

7. The method for detecting curvature of a heliostat based on image processing technology according to claim 1, characterized in that: In step 3, when installing the heliostat, ensure that the center of the heliostat mirror surface coincides with the center of the calibration plate, the long sides of the heliostat mirror surface and the calibration plate are parallel to each other, the short sides are parallel to each other, and the heliostat mirror surface is parallel to the target plate.

8. The method for detecting curvature of a heliostat based on image processing technology according to claim 1, characterized in that: In step 3, the specific method for locating the camera position in the reflected image is as follows: The three components of the camera's coordinates in the world coordinate system obtained in step 2 are x cam,P ,y cam,P 、z cam,P , the subscript P represents the exact solution result, which is the imaging center point of the heliostat mirror (x cam,P ,y cam,P ,-2z cam,P ); Substitute the camera model parameters determined in step 2 into F x and F y , get the camera model function, denoted as F x,P and F y,P , F x Represents a function from a point in the world coordinate system to the horizontal coordinate of a pixel, F y represents a function from a point in the world coordinate system to the pixel ordinate; then the pixel coordinates of the imaging center point of the camera on the heliostat mirror are: u cam =F x,P (x cam,P ,y cam,P ,-2z cam,P ) v cam =F y,P (x cam,P ,y cam,P ,-2z cam,P ) Among them, u cam and v cam They represent the horizontal and vertical pixel coordinates of the imaging center point of the camera on the heliostat mirror surface calculated by the camera model; The camera occupies a white grid on the target plate, and appears as a black circular area in the target plate image reflected by the heliostat. The square pixel matrix of the camera and the white grid outside it is used as a template. cam ±τ5,v cam ±τ5), where τ5 is a matching region size threshold, the template matrix is ​​denoted as M, and the sub-region matrix matched with it is denoted as A. Their elements in row a and column b are denoted as M a,b and A a,b , the matching score s is expressed as: Among them, n row,M Indicates the number of rows in the template matrix, n col,M Indicates the number of columns of the template matrix; in (u cam ±τ5,v cam The sub-region with the smallest template matching score within the range of ±τ5) is the camera's own imaging area, and its center is the camera's pixel coordinates. The horizontal and vertical pixel coordinates are marked as u′ cam and v′ cam ; The horizontal pixel difference and vertical pixel difference between them and the coordinates calculated by the camera model are recorded as Δu cam and Δv cam , expressed as Δu cam =u′ cam -u cam Δv cam =v′ cam -v cam 。 9. The method for detecting curvature of a heliostat based on image processing technology according to claim 1, characterized in that: In step 3, the world coordinates of the points corresponding to the intersections of the black and white grids on the heliostat mirror are calculated as follows: First, calculate the world coordinates of the ideal imaging point of a black and white grid intersection on the target plate on the heliostat mirror surface, then correct it according to the camera's own imaging position, and then match the point with the closest pixel distance among the detected black and white grid intersections, discard the points with too large distances, and calculate the world coordinates of the reflection point on the heliostat mirror surface for the points that meet the conditions, as follows: The world coordinates of the intersection of a black and white grid on the target board are (x target,I,J ,y target,I,J ,z target,I,J ), the ideal coordinates of the imaging point of this point in the heliostat mirror are (x target,I,J ,y target,I,J ,-2z target,I,J ), the corresponding ideal pixel coordinates in the camera image are: u target,I,J =F x,P (x target,I,J ,y target,I,J ,-2z target,I,J ) v target,I,J =F y,P (x target,I,J ,y target,I,J ,-2z target,I,J ) Among them, u target,I,J and v target,I,J They represent the horizontal and vertical pixel coordinates of the image point on the heliostat mirror surface calculated by the camera model under ideal conditions at the intersection of the black and white grids; Considering the correction of the camera's own imaging position, the calculated coordinates after correction are: u' target,I,J =u target,I,J +Δu cam v′ target,I,J =v target,I,J +Δv cam Among them, u′ target,I,J and v′ target,I,J Respectively represent the horizontal and vertical pixel coordinates of the intersection of the black and white grid obtained after correction; Δu cam and Δv cam are the horizontal pixel difference and vertical pixel difference between the pixel coordinates determined by template matching and the pixel coordinates calculated by the camera model; Find the image coordinates of the intersection points of the black and white grids obtained by image processing that correspond to (u′ target,I,J ,v′ target,I,J ) is the point closest to the target,I,J,mesure ,v target,I,J,mesure ), if the distance between them is greater than τ6, then the point is discarded and the next point is calculated. If the distance is less than τ6, the pixel coordinates of the intersection of the black and white grids (u target,I,J,mesure ,v target,I,J,mesure ) and the corresponding world coordinates of the point on the heliostat mirror have the following relationship: u target,I,J,mesure =F x,cam,P (x target,I,J,cam ,y target,I,J,cam ,0) v target,I,J,mesure =F y,cam,P (x target,I,J,cam ,y target,I,J,cam ,0) Among them, x target,I,J,cam and target,I,J,cam Respectively represent the intersection of black and white grids (x target,I,J ,y target,I,J ,z target,I,J ) is the x and y components of the world coordinates of the point on the heliostat mirror surface corresponding to, and the z component is 0; The two relations between the pixel coordinates of the intersection of the black and white grid and the corresponding world coordinates of the point on the heliostat mirror surface can be combined to obtain x target,I,J,cam and target,I,J,cam .

10. The method for detecting curvature of a heliostat based on image processing technology according to claim 9, characterized in that: In step 3, the normal direction of the corresponding point of the black and white grid intersection on the heliostat mirror surface is calculated as follows: The light is given by (x target,I,J ,y target,I,J ,z target,I,J )Departure via (x target,I,J,cam ,y target,I,J,cam ,0)Reflection reaches (x cam,P ,y cam,P ,z cam,P ), then the point (x target,I,J,cam ,y target,I,J,cam ,0) is expressed as c pre ( x target,I,J +x cam,P -2x target,I,J,cam ,y target,I,J +y cam,P -2y target,I,J,cam ,z target,I,J +z cam,P ) Among them, c pre is the normalization factor, i.e.

Citation Information

Cited By

  • OCT imaging system distortion correction method

    CN120746908A

  • Heliostat feature extraction method, heliostat pneumatic simulation method and equipment

    CN120912906A

  • A heliostat feature extraction method, a heliostat aerodynamic simulation method and equipment

    CN120912906B