Mapping method and device for inspection vehicle of photovoltaic power plant, storage medium and terminal
By using cameras and lidar on photovoltaic power plant inspection vehicles to process images and laser point cloud data, combined with SIFT feature points and inter-frame matching algorithms, the problem of positioning and mapping during photovoltaic power plant inspections is solved, achieving a more efficient and Accurate inspection.
Patent Information
- Application Number
- CN202411036364.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In special scenes such as long corridors of photovoltaic power plants, simple geometric features cannot provide enough information for accurate positioning and mapping, making traditional patrol vehicles inefficient and difficult to ensure the accuracy of patrols.
Using patrol vehicles equipped with cameras and lidar, we obtain images and laser point cloud data, perform grayscale processing and SIFT feature point extraction, create a mathematical model for reflection intensity correction and normalization, and combine the inter-frame matching algorithm and ikd- Tree map construction, using I-scan context descriptor for loop detection, and generating global map and pose trajectory.
It improves the positioning accuracy and efficiency of the patrol vehicle in complex environments, ensures the accuracy of the global map of the photovoltaic power plant and the posture trajectory of the patrol vehicle, and enhances the accuracy and efficiency of the patrol.
Smart Images

Figure CN118570335A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of photovoltaic power plants, and in particular to a mapping method, device, storage medium and terminal for a patrol vehicle of a photovoltaic power plant. Background Art
[0002] With the adjustment of the global energy structure and the rapid development of clean energy technology, photovoltaic power plants, as an important part of renewable energy, are of great significance in terms of construction and operation to ensure energy supply and promote green development. Photovoltaic power plants usually cover a large area and have widely distributed equipment, so efficient and accurate inspection and maintenance are the key to ensuring the stable operation of power plants. Traditional photovoltaic power plant inspections mainly rely on manual labor, which is not only inefficient, but also difficult to ensure the accuracy and timeliness of inspections. With the continuous advancement of automation and intelligent technology, automatic patrol vehicles can independently complete patrol tasks by carrying a variety of sensors and advanced navigation and positioning technologies, greatly improving patrol efficiency and accuracy. Among the core technologies of automatic patrol vehicles, SLAM (Simultaneous Localization and Mapping) technology can locate itself in real time in an unknown environment through sensor data and build a map of the surrounding environment. However, in special scenes such as the long corridors of photovoltaic power plants, simple geometric features often cannot provide enough information for accurate positioning and mapping.
[0003] Therefore, how to solve the deficiencies and shortcomings of existing technologies through effective mapping methods has become an important issue that researchers in this field need to solve urgently. Summary of the invention
[0004] The purpose of the present invention is to address the above-mentioned problems and to provide a method, device, storage medium and terminal for mapping a photovoltaic power plant patrol vehicle.
[0005] The technical solution of the present invention is: a method for mapping a patrol car of a photovoltaic power plant, wherein the patrol car is equipped with a camera and a laser radar, and comprises the following steps: acquiring an image of the photovoltaic power plant based on the camera, acquiring laser point cloud data of the photovoltaic power plant based on the laser radar, wherein the laser point cloud data comprises a plurality of laser points p; graying the image to obtain SIFT feature points of the image; creating a mathematical model, and using the mathematical model to correct and normalize the reflection intensity of each laser point p to obtain the corrected reflection intensity. ; Based on the SIFT feature points and the inter-frame matching algorithm, the position information of the SIFT feature points is obtained; Based on the SIFT feature points and the position information of the SIFT feature points, the ikd-Tree map is obtained, and the reflection intensity of all laser points p is used Loop closure detection is performed to obtain the global map of the photovoltaic power plant and the position trajectory of the patrol vehicle.
[0006] As an improvement of an embodiment of the present invention, the "gray-scaling the image to obtain the SIFT feature points of the image" specifically includes: gray-scaling the image, and based on the gray-scaled image and the Gaussian difference function, constructing a Gaussian pyramid to obtain the SIFT feature points of the image.
[0007] As an improvement of the embodiment of the present invention, the “creating a mathematical model, using the mathematical model to correct and normalize the reflection intensity of each laser point p, and obtaining the corrected reflection intensity Specifically, the laser point p includes the distance d from the laser radar to the object, the reflection intensity I of the laser point p, and the incident angle of the laser. The mathematical model is ,in, is the corrected reflection intensity, Is positively correlated.
[0008] As an improvement of the embodiment of the present invention, the "obtaining the position information of the SIFT feature points based on the SIFT feature points and the inter-frame matching algorithm" specifically includes: performing the following processing on any two adjacent first frame images and second frame images: graying the first and second frame images, calculating the centroid of the first frame image , calculate the center of mass of the second frame image , remove the centroid from the first frame , remove the centroid from the second frame , get the position information of SIFT feature points in the first frame image , get the position information of SIFT feature points in the second frame image , based on location information and location information A Hessian matrix H is constructed, and the matrix H is decomposed by SVD to obtain the position information of the SIFT feature points.
[0009] As an improvement of the embodiment of the present invention, the "calculating the centroid of the first frame image" , calculate the center of mass of the second frame image Specifically include: , , where N represents the number of SIFT feature points in the image, and represents the grayscale processed images of two adjacent frames; the "obtaining the position information of the SIFT feature points in the first frame image" , get the position information of SIFT feature points in the second frame image Specifically include: , ,in, Represents the position information of the SIFT feature points of the first frame image without removing the centroid, Represents the position information of the SIFT feature points of the second frame image without removing the centroid; the Hessian matrix .
[0010] As an improvement of an embodiment of the present invention, the "obtaining an ikd-Tree map based on the SIFT feature points and the position information of the SIFT feature points" specifically includes: creating an ikd-Tree map based on the SIFT feature points and the position information of the SIFT feature points, setting a sliding window, and using a laser beam adjustment method to optimize the ikd-Tree map within the sliding window.
[0011] As an improvement of the embodiment of the present invention, the “using the reflection intensity of all laser points p” Perform loop detection to obtain the global map of the photovoltaic power plant and the position trajectory of the patrol car. Specifically, use the corrected reflection intensity , loop detection is performed based on the I-scan context descriptor, and the offset and rotation angle of the patrol car corresponding to the adjacent frames are obtained; the cumulative offset and cumulative rotation angle of time period t are optimized through the factor graph to obtain the global map and the position trajectory of the patrol car.
[0012] To achieve one of the above-mentioned purposes of the invention, an embodiment of the present invention provides a mapping device for a patrol car of a photovoltaic power plant, wherein the patrol car is equipped with a camera and a laser radar, and comprises the following modules: an information acquisition module, used to acquire an image of the photovoltaic power plant based on the camera, and to acquire laser point cloud data of the photovoltaic power plant based on the laser radar, wherein the laser point cloud data comprises a number of laser points p; a processing module, used to grayscale the image to obtain the SIFT feature points of the image; a model creation module, used to create a mathematical model, and to use the mathematical model to correct and normalize the reflection intensity of each laser point p to obtain the corrected reflection intensity. ; A mapping module is used to obtain the position information of SIFT feature points based on the SIFT feature points and the inter-frame matching algorithm; an ikd-Tree map is obtained based on the SIFT feature points and the position information of the SIFT feature points, and the reflection intensity of all laser points p is used Loop closure detection is performed to obtain the global map of the photovoltaic power plant and the position trajectory of the patrol vehicle.
[0013] To achieve one of the above-mentioned objects of the invention, an embodiment of the present invention provides a storage medium storing program instructions, which implement the mapping method as described in any one of the above-mentioned items when executed.
[0014] To achieve one of the above-mentioned objects of the invention, an embodiment of the present invention provides a terminal, including a processor and a memory, wherein the memory stores program instructions, and the processor executes the program instructions to implement any of the above-mentioned mapping methods.
[0015] The photovoltaic power plant patrol car mapping method, device, storage medium and terminal provided by the embodiments of the present invention have the following advantages: the photovoltaic power plant mapping method proposed in the present invention can accurately extract and process the SIFT feature points of the image, and use the SIFT feature points and inter-frame matching algorithm to ensure that the patrol car can still accurately obtain the location information of the feature points in a complex environment; at the same time, the reflection intensity of the radar laser point is corrected and normalized by a mathematical model, and loop detection is performed based on the corrected reflection intensity and I-scan context descriptor, which effectively improves the accuracy of the loop detection, and can more accurately determine the global map of the photovoltaic power plant and the position trajectory of the patrol car, thereby improving the accuracy and efficiency of the patrol. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flow chart of the mapping method of the photovoltaic power plant patrol vehicle of the present invention. DETAILED DESCRIPTION
[0017] The present invention will be described in detail below in conjunction with the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional changes made by a person skilled in the art based on these embodiments are all within the scope of protection of the present invention.
[0018] If the present invention involves directions (for example, up, down, left, right, front, back, outside, inside, etc.) when describing, the directions involved need to be defined.
[0019] The scope of the embodiments herein includes the entire scope of the claims, and all available equivalents of the claims.Herein, the terms "first", "second", etc. are only used to distinguish one element from another, without requiring or implying any actual relationship or order between these elements.In fact, the first element can also be called the second element, and vice versa.Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the structure, device or equipment including a series of elements not only include those elements, but also include other elements not clearly listed, or also include elements inherent to such structure, device or equipment.In the absence of more restrictions, the elements limited by the statement "include one..." do not exclude the existence of other identical elements in the structure, device or equipment including the elements.Each embodiment herein is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same similar parts between each embodiment can be referred to each other.
[0020] The terms "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. in this document indicate the orientation or position relationship based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing this document and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In the description of this document, unless otherwise specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a mechanical connection or an electrical connection, it can also be the internal communication of two elements, it can be a direct connection, or it can be indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0021] Embodiment 1 of the present invention provides a method for mapping a patrol vehicle of a photovoltaic power plant, wherein the patrol vehicle is equipped with a camera and a laser radar. Figure 1 As shown, the mapping method includes the following steps: Step 101: acquiring an image of the photovoltaic power plant based on the camera, and acquiring laser point cloud data of the photovoltaic power plant based on the laser radar, wherein the laser point cloud data includes a plurality of laser points p; In practice, the image of the photovoltaic power plant is obtained by a camera installed on the patrol car. Preferably, the present invention uses a binocular camera to collect the image of the photovoltaic power plant. The binocular camera can simulate the stereoscopic visual perception of the human eye, and obtain the depth information of the image by calculating the parallax between the two cameras to form a three-dimensional scene, thereby enhancing the patrol car's perception of the environment. The binocular camera can be integrated with the laser radar or other sensors on the patrol car to achieve the complementarity and enhancement of multi-source information. Compared with the monocular camera, the binocular camera has lower requirements for lighting conditions. Even in the case of insufficient light or large changes in light, it can still work normally and obtain a clearer image. This is particularly important for photovoltaic power plants that are usually located outdoors and have variable lighting conditions. It can be understood that the depth information obtained by the binocular camera helps the patrol car to more accurately identify and locate key equipment such as photovoltaic panels, brackets, inverters, etc. The patrol car can also detect obstacles in the surrounding environment in real time and calculate the distance and position of the obstacles, so that the patrol car can autonomously navigate in a complex environment, ensure the safety and stability of driving, and improve the efficiency and accuracy of patrols.
[0022] The laser point cloud data of the photovoltaic power plant is obtained by the laser radar installed on the patrol car. The laser point cloud data includes a number of laser points p, each of which includes the distance d from the laser radar to the object. For each laser point p in the laser point cloud, the average distance of K neighboring points is calculated, and the laser points p with an average distance greater than a preset threshold are removed. It can be understood that by removing the laser points p with a large average distance, the noise data in the laser point cloud can be effectively removed, making the subsequent analysis and identification of the photovoltaic panel area more accurate, and improving the accuracy of the photovoltaic power plant inspection and the efficiency of data processing.
[0023] Step 102: grayscale the image to obtain SIFT feature points of the image; Here, the color image captured by the camera can be grayed by floating point method, integer method, shift method and average method, and the color image is composed of three monochrome colors R, G and B mixed according to a certain coefficient ratio. Preferably, the present invention uses floating point method to gray the image of the photovoltaic power plant, and the formula for calculating the gray value Gray by floating point method is: The floating point method uses a weighted method to mix the red, green and blue color components in a color image in a certain proportion to obtain a grayscale value. Among them, green has the highest weight and can more accurately reflect the brightness information of the image.
[0024] Step 103: Create a mathematical model, and use the mathematical model to correct and normalize the reflection intensity of each laser point p to obtain the corrected reflection intensity. ; In practice, due to factors such as lighting conditions and the surface material of the object, the reflection intensity value of the laser point p may have errors. Therefore, it is necessary to correct the reflection intensity. According to the actual situation, an appropriate function form can be selected to establish a mathematical model for reflection intensity correction, such as a linear model, a polynomial model, or a nonlinear model. The established correction model is applied to each laser point p in the original laser point cloud data, and the corrected reflection intensity is calculated according to the model. , and replaces the reflection intensity in the original.
[0025] Step 104: Based on the SIFT feature points and the inter-frame matching algorithm, the position information of the SIFT feature points is obtained; based on the SIFT feature points and the position information of the SIFT feature points, the ikd-Tree map is obtained, and the reflection intensity of all laser points p is used Loop closure detection is performed to obtain the global map of the photovoltaic power plant and the position trajectory of the patrol vehicle.
[0026] Here, the inter-frame matching algorithm is an algorithm that uses the nearest neighbor search or approximate nearest neighbor search to compare the SIFT feature points (Scale-Invariant Feature Transform) between adjacent frames to find similar feature point pairs. When the similarity of the SIFT feature points of two adjacent frames is greater than the preset similarity threshold, the SIFT feature points of the two adjacent frames are similar feature point pairs. Similar feature point pairs provide a relative transformation relationship between adjacent frames, that is, rotation and translation, so as to obtain the position information of the SIFT feature points. When constructing the ikd-Tree map, the extracted SIFT feature points and the position information of the SIFT feature points are inserted into the ikd-Tree as input data to establish a spatial index structure reflecting the environmental characteristics of the photovoltaic power plant. Here, ikd-Tree is a tree data structure for multi-dimensional spatial data indexing, which can efficiently handle spatial search and query operations. When the patrol car travels to a new position, the SIFT feature points of the current position are extracted, and the ikd-Tree is queried to see if there are similar historical feature points. If there are similar SIFT feature points, it means that the patrol car may have returned to the previous position, that is, a loop has occurred. It is understandable that through loop detection, the accumulated error can be eliminated and the accuracy of the global map can be improved. At the same time, combined with the posture information obtained by the inter-frame matching algorithm, a global map of the photovoltaic power plant can be constructed and the posture trajectory of the patrol car can be recorded.
[0027] In this embodiment, “gray-scaling the image to obtain SIFT feature points of the image” specifically includes: gray-scaling the image, and constructing a Gaussian pyramid based on the gray-scaling image and a Gaussian difference function to obtain SIFT feature points of the image.
[0028] In practice, we first need to use the Gaussian split function to perform Gaussian blur processing on the grayscale image. Here, the Gaussian split function usually refers to the process of splitting the Gaussian function into multiple sub-functions, which can be used to construct the Gaussian blur operation of the Gaussian pyramid. Gaussian blur is an image filtering technology that reduces image noise and detail levels by applying Gaussian functions. After that, the Gaussian blurred image is downsampled. Repeat the Gaussian blur and downsampling operations to generate multiple images of different scales. These images are arranged in order from large to small, forming a Gaussian pyramid. Each layer of the Gaussian pyramid is obtained by Gaussian blurring and downsampling the previous layer of images. On each layer of the Gaussian pyramid, local extreme points are obtained by comparing each pixel with its neighboring pixels as SIFT feature points.
[0029] In this embodiment, the “creating a mathematical model, using the mathematical model to correct and normalize the reflection intensity of each laser point p, and obtaining the corrected reflection intensity Specifically, the laser point p includes the distance d from the laser radar to the object, the reflection intensity I of the laser point p, and the incident angle of the laser. The mathematical model is ,in, is the corrected reflection intensity, Is positively correlated.
[0030] In this embodiment, the "obtaining the position information of the SIFT feature points based on the SIFT feature points and the inter-frame matching algorithm" specifically includes: performing the following processing on any two adjacent first frame images and second frame images: graying the first and second frame images, calculating the centroid of the first frame image , calculate the center of mass of the second frame image , remove the centroid from the first frame , remove the centroid from the second frame , get the position information of SIFT feature points in the first frame image , get the position information of SIFT feature points in the second frame image , based on location information and location information A Hessian matrix H is constructed, and the matrix H is decomposed by SVD to obtain the position information of the SIFT feature points.
[0031] Here, the centroid is the weighted average position of the grayscale values of all pixels in the image, representing the main brightness distribution of the image. For two adjacent frames of images, SIFT feature points are extracted respectively, and the centroid coordinates of each image are subtracted to obtain the SIFT feature point position information after removing the centroid. It can be understood that removing the centroid can eliminate the change in the feature point position caused by image translation or rotation. For each pair of SIFT feature point position information after removing the centroid, a Hessian matrix H is constructed. Here, the Hessian matrix is a second-order partial derivative matrix used to describe the local curvature of a function at a given point. The constructed Hessian matrix H is decomposed by SVD (Singular Value Decomposition). SVD decomposition can decompose a matrix into the product of three matrices, one of which is a diagonal matrix whose elements are the singular values of the original matrix. By performing SVD decomposition on the Hessian matrix, the main direction and scale information of the feature points can be obtained. Combined with the SIFT feature point position information after removing the centroid, the exact position of the feature point in the original image can be determined.
[0032] In this embodiment, the “calculating the centroid of the first frame image” , calculate the center of mass of the second frame image Specifically include: , , where N represents the number of SIFT feature points in the image, and represents the grayscale processed images of two adjacent frames; the "obtaining the position information of the SIFT feature points in the first frame image" , get the position information of SIFT feature points in the second frame image Specifically include: , ,in, Represents the position information of the SIFT feature points of the first frame image without removing the centroid, Represents the position information of the SIFT feature points of the second frame image without removing the centroid; the Hessian matrix .
[0033] In this embodiment, the "obtaining an ikd-Tree map based on the SIFT feature points and the position information of the SIFT feature points" specifically includes: creating an ikd-Tree map based on the SIFT feature points and the position information of the SIFT feature points, setting a sliding window, and using a laser beam adjustment method to optimize the ikd-Tree map within the sliding window.
[0034] Here, the sliding window selects a fixed number of frames from the continuous frames for local optimization and tracking. In the process of building the ikd-Tree map, the sliding window contains the multi-frame data collected in the latest period of time. In the sliding window, the ikd-Tree map is optimized using the bundle adjustment method. The bundle adjustment method is an optimization algorithm that estimates the camera pose and the three-dimensional position of the feature points by minimizing the reprojection error of all feature points. According to the optimized camera pose and feature point position, the feature point information in the ikd-Tree is updated.
[0035] In this embodiment, the “reflection intensity of all laser points p is used” Perform loop detection to obtain the global map of the photovoltaic power plant and the position trajectory of the patrol car. Specifically, use the corrected reflection intensity , loop detection is performed based on the I-scan context descriptor, and the offset and rotation angle of the patrol car corresponding to the adjacent frames are obtained; the cumulative offset and cumulative rotation angle of time period t are optimized through the factor graph to obtain the global map and the position trajectory of the patrol car.
[0036] Here, the I-scan context descriptor is a context descriptor based on laser scanning data, which is used to represent the intensity information and spatial relationship in the laser scanning data. In loop detection, the I-scan context descriptor can improve the accuracy and robustness of detection. In practice, the laser point cloud data is divided into multiple regions according to the reflection angle or distance interval. The mean, variance, maximum, minimum and other statistics of the reflection intensity values of all SIFT feature points in each region are calculated. These statistics are arranged in order to form a feature vector, which is the I-scan context descriptor. The extracted I-scan context descriptor is used for loop detection to obtain the offset and rotation angle of adjacent frame positions.
[0037] Here, the factor graph is a probabilistic graph model. In the SLAM system, the factor graph is usually used to represent the variables in the pose estimation problem and the constraint relationship between them. The nodes in the factor graph represent the variables, and the edges represent the constraint relationship between the variables. By defining appropriate cost functions and optimization algorithms, the factor graph can be solved and the global optimal solution can be obtained. All frames in the time period t are taken as nodes, and the relative pose relationships such as offsets and rotation angles between them are taken as edges to construct the factor graph. For each edge, a cost function is defined that describes the difference between the pose relationship corresponding to the edge and the actual observed data. The factor graph is solved using graph optimization algorithms such as g2o and CeresSolver to find the pose trajectory that minimizes the sum of all cost functions, that is, the global optimal pose trajectory. It can be understood that through factor graph optimization, the global pose trajectory and map of the photovoltaic power plant patrol car can be obtained. It is convenient for subsequent patrols, path planning and other tasks.
[0038] Embodiment 2 of the present invention provides a mapping device for a patrol vehicle of a photovoltaic power plant, wherein the patrol vehicle is equipped with a camera and a laser radar, and includes the following modules: An information acquisition module, used to acquire an image of the photovoltaic power plant based on the camera, and acquire laser point cloud data of the photovoltaic power plant based on the laser radar, wherein the laser point cloud data includes a number of laser points p; A processing module, used for performing grayscale processing on the image to obtain SIFT feature points of the image; The model creation module is used to create a mathematical model, and use the mathematical model to correct and normalize the reflection intensity of each laser point p to obtain the corrected reflection intensity. ; A mapping module is used to obtain the position information of SIFT feature points based on the SIFT feature points and the inter-frame matching algorithm; obtain an ikd-Tree map based on the SIFT feature points and the position information of the SIFT feature points, and use the reflection intensity of all laser points p Loop closure detection is performed to obtain the global map of the photovoltaic power plant and the position trajectory of the patrol vehicle.
[0039] Embodiment 3 of the present invention provides a storage medium storing program instructions, which implement any of the above-mentioned mapping methods when executed.
[0040] Embodiment 4 of the present invention provides a terminal, including a processor and a memory, wherein the memory stores program instructions, and the processor executes the program instructions to implement any of the above-mentioned mapping methods.
[0041] The present invention may be a system, a method and / or a computer program product. The computer program product may include a readable storage medium carrying computer readable program instructions for causing a processor to implement various aspects of the present invention.
[0042] The storage medium can be a tangible device that holds and stores instructions used by the instruction execution device. The storage medium can include, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a protruding structure in a groove on which instructions are stored, and any suitable combination thereof.
[0043] It should be understood that although this specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each implementation mode may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
[0044] The series of detailed descriptions listed above are only specific descriptions of feasible implementation methods of the present invention. They are not intended to limit the scope of protection of the present invention. Any equivalent implementation methods or changes that do not deviate from the technical spirit of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for mapping a patrol vehicle of a photovoltaic power plant, wherein the patrol vehicle is equipped with a camera and a laser radar, characterized in that: The following steps are involved: Acquire an image of the photovoltaic power plant based on the camera, and acquire laser point cloud data of the photovoltaic power plant based on the laser radar, wherein the laser point cloud data includes a number of laser points p; Performing grayscale processing on the image to obtain SIFT feature points of the image; Create a mathematical model, use the mathematical model to correct and normalize the reflection intensity of each laser point p, and obtain the corrected reflection intensity ; Obtaining position information of SIFT feature points based on the SIFT feature points and an inter-frame matching algorithm; Based on the SIFT feature points and the position information of the SIFT feature points, the ikd-Tree map is obtained, and the reflection intensity of all laser points p is used. Loop closure detection is performed to obtain the global map of the photovoltaic power plant and the position trajectory of the patrol vehicle.
2. The mapping method according to claim 1, characterized in that: The “gray-scaling the image to obtain the SIFT feature points of the image” specifically includes: gray-scaling the image, and constructing a Gaussian pyramid based on the gray-scaling image and a Gaussian difference function to obtain the SIFT feature points of the image.
3. The mapping method according to claim 1, characterized in that: The "creating a mathematical model, using the mathematical model to correct and normalize the reflection intensity of each laser point p, and obtaining the corrected reflection intensity Specifically, the laser point p includes the distance d from the laser radar to the object, the reflection intensity I of the laser point p, and the incident angle of the laser. The mathematical model is ,in, is the corrected reflection intensity, Is positively correlated.
4. The mapping method according to claim 1, characterized in that: The "obtaining the position information of the SIFT feature points based on the SIFT feature points and the inter-frame matching algorithm" specifically includes: performing the following processing on any two adjacent first frame images and second frame images: graying the first and second frame images, calculating the centroid of the first frame image , calculate the center of mass of the second frame image , remove the centroid from the first frame , remove the centroid from the second frame , get the position information of SIFT feature points in the first frame image , get the position information of SIFT feature points in the second frame image , based on location information and location information A Hessian matrix H is constructed, and the matrix H is decomposed by SVD to obtain the position information of the SIFT feature points.
5. The mapping method according to claim 4, characterized in that: The "calculate the centroid of the first frame image , calculate the center of mass of the second frame image Specifically include: , , where N represents the number of SIFT feature points in the image, and Represents the grayscale image of two adjacent frames; The "obtaining the position information of the SIFT feature points in the first frame image" , get the position information of SIFT feature points in the second frame image Specifically include: , ,in, Represents the position information of the SIFT feature points of the first frame image without removing the centroid, Represents the position information of the SIFT feature points of the second frame image without removing the centroid; the Hessian matrix .
6. The mapping method according to claim 1, characterized in that: The "obtaining an ikd-Tree map based on the SIFT feature points and the position information of the SIFT feature points" specifically includes: creating an ikd-Tree map based on the SIFT feature points and the position information of the SIFT feature points, setting a sliding window, and using a laser beam adjustment method to optimize the ikd-Tree map within the sliding window.
7. The mapping method according to claim 1, characterized in that: The "use the reflection intensity of all laser points p Perform loop detection to obtain the global map of the photovoltaic power plant and the position trajectory of the patrol car. Specifically, use the corrected reflection intensity , loop detection is performed based on the I-scan context descriptor, and the offset and rotation angle of the patrol car corresponding to the adjacent frames are obtained; the cumulative offset and cumulative rotation angle of time period t are optimized through the factor graph to obtain the global map and the position trajectory of the patrol car.
8. A mapping device for a patrol car of a photovoltaic power plant, wherein the patrol car is equipped with a camera and a laser radar, characterized in that: Includes the following modules: An information acquisition module, used to acquire an image of the photovoltaic power plant based on the camera, and acquire laser point cloud data of the photovoltaic power plant based on the laser radar, wherein the laser point cloud data includes a number of laser points p; A processing module, used for performing grayscale processing on the image to obtain SIFT feature points of the image; The model creation module is used to create a mathematical model, and use the mathematical model to correct and normalize the reflection intensity of each laser point p to obtain the corrected reflection intensity. ; A mapping module, used to obtain the position information of SIFT feature points based on the SIFT feature points and an inter-frame matching algorithm; Based on the SIFT feature points and the position information of the SIFT feature points, the ikd-Tree map is obtained, and the reflection intensity of all laser points p is used. Loop closure detection is performed to obtain the global map of the photovoltaic power plant and the position trajectory of the patrol vehicle.
9. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the mapping method according to any one of claims 1 to 7 is implemented.
10. A terminal, characterized in that: The method comprises a processor and a memory, wherein the memory stores program instructions, and the processor executes the program instructions to implement the mapping method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Robot instant localization and mapping method and system based on multiple information sources
CN113432600A
Using method of stereoscopic equipment based on mobile multispectral luminosity
CN117392329A
Synchronous positioning and mapping method and device, terminal and medium
CN117451033A
SLAM method and device based on adaptive feature extraction
CN118089704A
Pose construction method and device of unmanned vehicle, electronic equipment and storage medium
CN118230231A
