Unmanned aerial vehicle AR line superposition method and system based on SLAM algorithm

Through the UAV AR line superposition method based on the SLAM algorithm, the ORB-SLAM3 algorithm and feature point related information are used for point cloud modeling and coordinate conversion, which solves the problem of AR line superposition in UAV inspection and realizes real-time line location. Determination and navigation accuracy improved.

CN118587394APending Publication Date: 2024-09-03ZHEJIANG XIANHENG INT GENERAL EQUIPCO
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410810978.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

During the drone inspection process, it is difficult to achieve AR line superposition with existing technology, resulting in the problem of not being able to find the line location after flight and making it difficult for background staff to determine the line location.

Method used

The drone AR line superposition method based on the SLAM algorithm is used to perform point cloud modeling on the inspection video through the ORB-SLAM3 algorithm. The associated information of the feature points is combined to perform coordinate system conversion, determine the WGS-MapPoint parameters, and improve the algorithm to optimize the points. Cloud model, and realize real-time AR line overlay through error testing.

Benefits of technology

Real-time AR line overlay during drone inspection is realized, ensuring the determination of line location and geographical location, and improving the accuracy and efficiency of drone navigation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587394A
    Figure CN118587394A
Patent Text Reader

Abstract

The embodiment of the invention provides an unmanned aerial vehicle AR line superposition method and system based on an SLAM algorithm, and the method comprises the steps: collecting an unmanned aerial vehicle inspection video and related line data, and the line data comprises the correlation information of a mark target; carrying out point cloud modeling on the inspection video based on an ORB-SLAM3 algorithm, carrying out coordinate system conversion in combination with the associated information of the mark target in the modeling process, and determining a conversion parameter corresponding to a WGS-MapPoint parameter of the mark target; carrying out algorithm improvement on an ORB-SLAN3 algorithm, carrying out reprocessing on the line data in combination with the improved ORB-SLAN3 algorithm and the conversion parameters, and determining an improved point cloud model; preprocessing the improved point cloud model and the target route, and superposing the preprocessed target route to the point cloud model; and performing error test on the improved point cloud model through the line data and the target line, and when the test error of the error test result is smaller than a preset threshold value, performing real-time AR line superposition on the unmanned aerial vehicle of the target line based on the improved point cloud model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of AR augmented reality technology, and in particular to a method and system for superimposing AR lines of unmanned aerial vehicles based on a SLAM algorithm. Background Art

[0002] Augmented reality technology (AR), also known as augmentation technology, is a relatively new technology that integrates real-world information and virtual-world information. It simulates and processes physical information that is difficult to experience in the real world through relevant algorithms, and superimposes virtual information content on the real world for effective application.

[0003] SLAM (Simultaneous Localization and Mapping) refers to simultaneous positioning and mapping or simultaneous positioning and mapping. In essence, SLAM is a process that uses sensor feeds and / or IMU readings to build a map structure of an unknown environment and determine the position and orientation of a device in real time.

[0004] In the existing technical solutions, the technologies involved in the above two technical solutions mainly use different AR devices, such as smart robots and smart devices to obtain video data of equipment operation at the inspection site, which is then processed by inspection personnel. However, in the field of drone inspection, the technology for AR overlay is blank, and in the actual drone inspection process, problems such as the line location cannot be found after the flight and the relevant background staff cannot determine the line location are usually encountered. Summary of the invention

[0005] In view of the problems existing in the prior art, an embodiment of the present invention provides a method and system for superimposing AR lines of unmanned aerial vehicles based on SLAM algorithm.

[0006] The embodiment of the present invention provides a method for superimposing AR lines of unmanned aerial vehicles based on a SLAM algorithm, comprising: Collecting drone inspection videos and obtaining line data in the inspection videos, wherein the line data includes associated information of the marked targets; Based on the ORB-SLAM3 algorithm, point cloud modeling is performed on the inspection video, and in the modeling process, the coordinate system is transformed in combination with the associated information of the feature points to determine the conversion parameters corresponding to the WGS-MapPoint parameters of the marked target; Improve the ORB-SLAM3 algorithm, reprocess the route data in combination with the improved ORB-SLAM3 algorithm and the conversion parameters, and determine an improved point cloud model; Preprocessing the improved point cloud model and the target route, and superimposing the preprocessed target route on the point cloud model; The improved point cloud model is subjected to an error test using the route data and the target route. When the test error of the error test result is less than a preset threshold, the UAV of the target route is subjected to real-time AR route superposition based on the improved point cloud model.

[0007] In one embodiment, the method further comprises: Determine the video key frame of the inspection video by using the ORB-SLAM3 algorithm, determine the 3D coordinates of the marked target in the video key frame in the point cloud model, and cluster the associated information in combination with the associated information of the marked target, so as to determine the WGS-MapPoint parameters in the corresponding video frame; By tracking the WGS-MapPoint parameter changes of the ORB-marked target in the video frame, the corresponding point cloud model is constructed; The WGS-MapPoint parameters in the local map coordinate system in the point cloud model are converted into conversion parameters in the pixel-world coordinate system.

[0008] In one embodiment, the method further comprises: Improvements to the MapPoint structure in the ORB-SLAM3 algorithm include: adding 3D coordinates of the world coordinate system and world standard longitude and latitude coordinates; The global / local BA in the ORB-SLAM3 algorithm is improved and embedded into the ORB-SLAM3 structure.

[0009] In one embodiment, the method further comprises: Adding new marker targets or adjusting current marker targets to optimize the conversion parameters; Or, adjust the video key frame selection, feature extraction, feature description, and feature matching of the ORB-SLAM3 to optimize the conversion parameters; Or, for the point cloud data in the point cloud modeling, local resampling and feature enhancement are performed on the point cloud data.

[0010] In one embodiment, the method further comprises: The flight data and AR performance feedback of the drone performing the flight mission of the target route are collected, and the ORB-SLAM3 algorithm is reversely adjusted through the flight data and AR performance feedback to further optimize the ORB-SLAM3 algorithm.

[0011] In one embodiment, the association information includes: Latitude and longitude information, associated video information, and logo type.

[0012] The embodiment of the present invention provides a drone AR line superposition system based on a SLAM algorithm, comprising: A collection module is used to collect drone inspection videos and obtain line data in the inspection videos, wherein the line data includes associated information of the marked targets; A modeling module, used for performing point cloud modeling on the inspection video based on the ORB-SLAM3 algorithm, and performing coordinate system conversion in combination with the associated information of the marked target during the modeling process to determine the conversion parameters corresponding to the WGS-MapPoint parameters of the marked target; An improvement module, used for improving the ORB-SLAM3 algorithm, reprocessing the line data in combination with the improved ORB-SLAM3 algorithm and the conversion parameters, and determining an improved point cloud model; An overlay module, used for preprocessing the improved point cloud model and the target route, and overlaying the preprocessed target route onto the point cloud model; The testing module is used to perform an error test on the improved point cloud model through the route data and the target route. When the test error of the error test result is less than a preset threshold, real-time AR route superposition is performed on the drone of the target route based on the improved point cloud model.

[0013] In one embodiment, the system further comprises: A clustering module is used to determine the video key frame of the inspection video through the ORB-SLAM3 algorithm, determine the 3D coordinates of the marked target in the video key frame in the point cloud model, and cluster the associated information in combination with the associated information of the marked target, so as to determine the WGS-MapPoint parameters in the corresponding video key frame; The tracking module is used to build the corresponding point cloud model by tracking the WGS-MapPoint parameter changes of the ORB marked target in the video frame; The conversion module is used to convert the WGS-MapPoint parameters in the local map coordinate system in the point cloud model into conversion parameters in the pixel-world coordinate system.

[0014] An embodiment of the present invention provides an electronic device, including a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method described in one or more embodiments.

[0015] An embodiment of the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the above-mentioned drone AR line superposition method based on the SLAM algorithm are implemented.

[0016] In view of the above, in one or more embodiments of the present specification, the inspection video of the drone is collected, and the line data in the inspection video is obtained, and the line data contains the associated information of the target; the line data and the line environment are point cloud modeled based on the ORB-SLAM3 algorithm, and the coordinate system is converted in combination with the associated information of the characteristic points of the target in the modeling process to determine the conversion parameters corresponding to the WGS-MapPoint parameters under the flight parameters; the ORB-SLAM3 algorithm is improved, and the line data is reprocessed in combination with the improved ORB-SLAM3 algorithm and the conversion parameters to determine the improved point cloud model; the improved point cloud model and the target route are preprocessed, and the preprocessed target route is superimposed on the point cloud model; the improved point cloud model is error tested by the line data and the target route, and when the test error of the error test result is less than the preset threshold, the drone of the target route is real-time AR line superimposed based on the improved point cloud model. In this way, the AR line superposition technology of the drone under the improvement of the ORB-SLAM3 algorithm can be used to perform AR superposition on the drone when it is driving, so that the drone can determine the corresponding line position and its own geographical location during inspection. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 This is a flowchart of a drone AR line superposition method based on a SLAM algorithm provided in an embodiment of this specification.

[0019] Figure 2 This is a flowchart of another drone AR line superposition method based on SLAM algorithm provided by an embodiment of this specification.

[0020] Figure 3 It is a structural schematic diagram of a drone AR line superposition system based on a SLAM algorithm provided in an embodiment of this specification.

[0021] Figure 4 It is a structural schematic diagram of an electronic device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0022] The subject matter described herein will now be discussed with reference to example embodiments. It should be understood that the discussion of these embodiments is only to enable those skilled in the art to better understand and implement the subject matter described herein, and is not a limitation of the scope of protection, applicability or examples set forth in the claims. The functions and arrangements of the elements discussed can be changed without departing from the scope of protection of the contents of this specification. Various examples can omit, replace or add various processes or components as needed. For example, the described method can be performed in an order different from the described order, and various steps can be added, omitted or combined. In addition, the features described relative to some examples can also be combined in other examples.

[0023] As used herein, the term "including" and its variations represent open terms, meaning "including but not limited to". The term "based on" means "based at least in part on". The terms "one embodiment" and "an embodiment" mean "at least one embodiment". The term "another embodiment" means "at least one other embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other definitions may be included below, whether explicit or implicit. Unless the context clearly indicates otherwise, the definition of a term is consistent throughout the specification.

[0024] like Figure 1 As shown, an embodiment of the present invention provides a method for superimposing AR lines of a drone based on a SLAM algorithm, comprising: Step S101, collecting drone inspection videos and obtaining line data in the inspection videos, wherein the line data includes associated information of marked targets.

[0025] Specifically, historical video data of the drone performing the inspection task is collected, or the drone's operation route is simulated, so that the line data of the inspection task can be obtained during the flight of the drone. The confirmation method of the line data can record the flight information through the MQTT (Message Queuing Telemetry Transport) protocol. In the drone inspection project, the client on the drone will publish the flight status information to the message broker (Broker) through the MQTT protocol. At the same time, the real-time location information and sensor data of the drone (such as lidar or inertial measurement unit IMU data) will also be recorded through MQTT to determine the corresponding line data part. In addition, in addition to obtaining the line data, some obvious and easy-to-identify marker targets can be arranged in the inspection area of ​​the inspection task, and then the latitude and longitude and altitude of each marker target can be accurately measured using high-precision GPS receivers or RTK (Real Time Kinematic) technology. Related information. In addition, in order to make the SLAM algorithm in the subsequent steps adapt to the navigation requirements under different conditions, the drone needs to perform multiple inspections of the scene under different flight parameter settings (such as different altitudes, speeds, and heading angles). In this way, diverse visual data and route data information can be collected, enhancing the robustness and adaptability of the algorithm.

[0026] Step S102, point cloud modeling is performed on the inspection video based on the ORB-SLAM3 algorithm, and during the modeling process, coordinate system conversion is performed in combination with the associated information of the marked target to determine the conversion parameters corresponding to the WGS-MapPoint parameters of the marked target.

[0027] Specifically, through the traditional ORB-SLAM3, a sparse real-time monocular SLAM (Simultaneous Localization And Mapping) system based on feature points, the algorithm performs point cloud modeling on the line data and the line environment. The original ORB-SLAM3 algorithm is applied to the inspection video data collected in the above steps. By tracking the changes of ORB (Oriented FAST and Rotated BRIEF, feature detection) feature points between video frames and estimating the position of the camera (i.e., the camera on the drone), a three-dimensional map of the environment is gradually constructed. When constructing the three-dimensional map, the feature point recognition and positioning are combined to determine the coordinate system coordinates of the feature points in the three-dimensional map modeled by the point cloud, i.e., WGS-MapPoint (World Geodetic System, World Geodetic System, MapPoint coordinate system). In addition, the process of determining the location of feature points in video key frames can be explained by giving an example. For example, after importing the line data, the corresponding video key frames are tracked, and then the longitude and latitude information in each key frame (feature point) in the video data is determined. Then, the Chebyshev distance between the WGS-MapPoint map point information and the line node in the initial point cloud model is calculated, and the 100 map points closest to the WGS-MapPoint map point from the line node are recorded. Then, these map points are clustered using the kernelk-means algorithm to obtain the cluster center, and the cluster center is used to replace the line node information to determine the position of the line node in the point cloud map. Coordinate system conversion means converting the point cloud data in the local map coordinate system constructed by the drone in the ORB-SLAM3 process (when performing point cloud modeling on route data, the map of the inspection task is usually not selected, but part of the map is selected for modeling) into the conversion parameters in the pixel coordinate system. By comparing the precise position of known landmarks in the WGS84 coordinate system, the pixel coordinate position in the key frame and the observed position in the MapPoint coordinate system, the least squares method or other optimization methods can be used to calculate this conversion matrix, which can align the local navigation information of the drone with the real-world geographic coordinate system and determine the conversion parameters of the pixel-world coordinate system.

[0028] Step S103, improving the ORB-SLAM3 algorithm, reprocessing the route data in combination with the improved ORB-SLAM3 algorithm and the conversion parameters, and determining an improved point cloud model.

[0029] Specifically, after determining the conversion parameters of WGS-MapPoint, the original ORB-SLAM3 algorithm can be further improved to make the ORB-SLAM3 algorithm better match the conversion parameters of WGS-MapPoint, including: improving the MapPoint structure in the ORB-SLAM3 algorithm, improving the MapPoint structure of the original ORB-SLAM3 algorithm, and the improvements are as follows: 1. 3D coordinates of the world coordinate system; 2. World standard longitude and latitude coordinates (WGS-84), directly related to the global geographic coordinate system; 3. Feature descriptors corresponding to the feature extraction algorithm (if there are corresponding improvements to the feature extraction algorithm); 4. View direction; 5. WGS-MapPoint conversion parameters under the current flight parameters. In addition, in addition to the above-mentioned optimization of the conversion parameters, the improvement direction of the ORB-SLAM3 algorithm can also include: algorithm replacement, introduction of other algorithm ideas, etc., such as replacing the FAST algorithm in SLAM with the SURF (SpeededUp Robust Features) algorithm for feature extraction. Compared with FAST, the SURF algorithm provides stronger rotation invariance and scale invariance. It can also absorb the algorithm idea of ​​the DBA module in the DROID-SLAM algorithm, introduce the concept of average optical flow, and use the Minkowski distance to replace the original Chebyshev distance, so as to minimize the reprojection / photometric error, and better optimize the camera pose in the co-viewing image, improve the tracking accuracy, that is, obtain a better local successive trajectory and a better local keyframe set. After improving the SLAM algorithm, the inspection video and line data are reprocessed by combining the improved algorithm with the conversion parameters, and the inspection video and flight information are converted and aligned with the target through the improved algorithm, in order to improve the accuracy, density and coherence of the point cloud model.

[0030] Step S104, preprocessing the improved point cloud model and the target route, and superimposing the preprocessed route data onto the point cloud model.

[0031] Specifically, the improved point cloud model is optimized, and the target route, i.e., the UAV operation route required by the user, is preprocessed so that the target route can be accurately superimposed and integrated into the point cloud model, thereby creating a comprehensive three-dimensional space model. The optimization of the point cloud model may include density optimization of the point cloud, optimization of the point cloud map point generation logic, optimization of the local map and global map fusion strategy, etc. The preprocessing of the target route may include adjusting the coordinate system of the target route to be consistent with the coordinates of the point cloud model, and then using the conversion parameters of the WGS-MapPoint parameters in the above steps to ensure that the data of the target route is aligned with the point cloud model to a certain extent, and visual integration is performed to determine that the target route model is superimposed on the point cloud model in the form of lines or tubular structures.

[0032] Step S105, performing an error test on the improved point cloud model using the route data and the target route. When the test error of the error test result is less than a preset threshold, real-time AR route superposition is performed on the drone of the target route based on the improved point cloud model.

[0033] Specifically, after the target route is superimposed on the point cloud model, it is necessary to detect the accuracy and practicality of the target route. The accuracy of the target route in the point cloud model is evaluated by comparing it with the line data in the inspection video. The comparison method can be, for example, to conduct an actual flight test on the line data in the inspection video and the point cloud model, and by comparing the pipeline superposition position in the video screen with the actual position of the pipeline, the offset error between the two is calculated, including but not limited to position deviation, angle deviation, etc., and then the corresponding error threshold is determined according to the requirements of the target route. When the test error of the actual flight test result is less than the preset threshold, it means that the point cloud model has passed the test. When the UAV performs the flight mission of the target route, the point cloud model and the real-time position of the UAV are used to perform AR superposition of the real-time route, so as to determine the position of the UAV while executing the target route, and at the same time, the preset AR annotations (such as line identification, fault warning, historical data comparison, etc.) can be accurately superimposed on the real-time video stream.

[0034] In addition, when the test error of the actual flight test results is greater than the preset threshold, optimization is required. The optimization directions can include optimization of conversion parameters, feature extraction, feature matching, point cloud modeling, etc. For example: WGS-MapPoint parameter optimization: re-examine and adjust the coordinate conversion parameters, consider whether a more sophisticated geographic correction method is needed or introduce more correction points to improve the conversion accuracy; ORB-SLAM3 algorithm logic optimization: in-depth analysis of the key frame selection, feature extraction, map update and other links in the ORB-SLAM3 process, optimize the algorithm logic to reduce tracking drift, improve reconstruction accuracy, optimize the global BA, and calculate the average optical flow size to obtain the distance between frame pairs and remove redundant frames. If no frame is a candidate for deletion, the oldest keyframe is deleted, and the Chebyshev distance is used for edge suppression, and the Minkowski distance is used for optical flow edge suppression, which is named M-DBA optimization; M-DBA optimization replaces the local BA in ORB-SLAM3 to obtain a better local successive trajectory and a better set of local keyframes; point cloud model optimization: According to the error analysis results, point cloud data processing is optimized in a targeted manner, such as local resampling, feature enhancement, etc., to reduce the error of the model itself. After the optimization is completed, the processing flow can be rerun based on the optimized algorithm and parameters, and the error test can be performed again through the updated model to ensure that the test error is within the preset threshold.

[0035] In addition, flight data and AR performance feedback of the drone's flight mission on the target route can be collected, and these data can be analyzed regularly to identify weaknesses or drift trends in the model, as well as inaccuracies in AR overlays, to provide a basis for optimization. Specifically, for example, online learning or transfer learning strategies can be adopted to allow the improved ORB-SLAM3 model to self-adjust and optimize according to the newly collected data, continuously learn new environmental features or changes, and improve its ability to adapt to the environment.

[0036] In addition, based on the above processing steps, the specific flow chart of the UAV AR line superposition method based on the SLAM algorithm can be further described as follows: Figure 2 As shown, in Figure 2 In the present invention, the process of the UAV AR route superposition method based on the SLAM algorithm is more specifically characterized, including: the process of collecting simulation data and recording flight information; the process of obtaining WGS-MapPoint conversion parameters (including generating an initial point cloud model through the ORB-SLAM3 algorithm in the SLAM algorithm, and then generating WGS-MapPoint conversion parameters), and then improving the ORB-SLAM3 algorithm, superimposing the point cloud model through the improved algorithm, and performing superposition tests to generate the corresponding target route deployment model, and then performing daily inspections, and repeating the process optimization model in daily inspections.

[0037] The embodiment of the present invention provides a method for overlaying AR lines of unmanned aerial vehicles based on SLAM algorithm, which collects inspection videos of unmanned aerial vehicles and obtains line data in the inspection videos, wherein the line data contains the association information of feature points; based on the ORB-SLAM3 algorithm, point cloud modeling is performed on the line data and line environment, and coordinate system conversion is performed in combination with the association information of feature points during the modeling process to determine the conversion parameters corresponding to the WGS-MapPoint parameters of the feature points; the ORB-SLAM3 algorithm is improved, and the line data is reprocessed in combination with the improved ORB-SLAM3 algorithm and the conversion parameters to determine the improved point cloud model; the improved point cloud model and the target route are preprocessed, and the preprocessed target route is superimposed on the point cloud model; the improved point cloud model is error tested by the line data and the target route, and when the test error of the error test result is less than the preset threshold, the unmanned aerial vehicle of the target route is real-time AR line superimposed based on the improved point cloud model. In this way, the AR line superposition technology of the unmanned aerial vehicle improved by the SLAM algorithm can be used to perform AR superposition on the unmanned aerial vehicle when it is traveling, so that the unmanned aerial vehicle can determine the corresponding line position and its own geographical location during inspection.

[0038] See also Figure 3 , Figure 3 Schematic diagram of the structure of a drone AR line superposition system based on SLAM algorithm provided in the embodiment of the present application. Figure 3 As shown, the system comprises: The acquisition module S201 is used to acquire the inspection video of the drone and obtain the line data in the inspection video, wherein the line data includes the associated information of the marked target; A modeling module S202 is used to perform point cloud modeling on the route data based on the ORB-SLAM3 algorithm, and to perform coordinate system conversion in combination with the associated information of the marker target during the modeling process to determine the conversion parameters corresponding to the WGS-MapPoint parameters of the marker target; An improvement module S203 is used to improve the SLAM algorithm, reprocess the route data in combination with the improved SLAM algorithm and the conversion parameters, and determine an improved point cloud model; The superposition module S204 is used to preprocess the improved point cloud model and the target route, and superimpose the preprocessed target route on the point cloud model; The testing module S205 is used to perform an error test on the improved point cloud model through the route data and the target route. When the test error of the error test result is less than a preset threshold, real-time AR route superposition is performed on the drone of the target route based on the improved point cloud model.

[0039] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.

[0040] Each processing unit and / or module of the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.

[0041] See also Figure 4 , which shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, the electronic device can be used to implement Figure 1 The method in the embodiment shown. Figure 4 As shown, the electronic device 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .

[0042] The communication bus 302 is used to realize the connection and communication between these components.

[0043] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0044] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0045] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts of the entire electronic device 300, and executes various functions and processes data of the terminal 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 301 can integrate one or a combination of a processor (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.

[0046] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may also be optionally at least one storage device located away from the aforementioned processor 301. As Figure 4 As shown, the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.

[0047] exist Figure 4In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 301 can be used to call the interactive application based on image generation stored in the memory 305, and specifically perform the following operations: collect drone inspection videos, and obtain line data in the inspection videos, where the line data contains associated information of the marker target; perform point cloud modeling on the line data based on the ORB-SLAM3 algorithm, and perform coordinate system conversion in combination with the associated information of the marker target during the modeling process to determine the conversion parameters corresponding to the WGS-MapPoint parameters of the marker target; improve the ORB-SLAM3 algorithm, reprocess the line data in combination with the improved SLAM algorithm and the conversion parameters to determine the improved point cloud model; preprocess the improved point cloud model and the target route, and superimpose the preprocessed target route on the point cloud model; perform error testing on the improved point cloud model through the line data and the target route, and when the test error of the error test result is less than the preset threshold, perform real-time AR line superposition on the drone of the target route based on the improved point cloud model.

[0048] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0049] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0050] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0051] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0052] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0053] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0054] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.

[0055] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct related hardware, and the program may be stored in a computer-readable memory, which may include a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0056] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

Claims

1. A drone AR line superposition method based on SLAM algorithm, characterized in that: include: Collecting drone inspection videos and obtaining line data in the inspection videos, wherein the line data includes associated information of the marked targets; Based on the ORB-SLAM3 algorithm, point cloud modeling is performed on the inspection video, and during the modeling process, the coordinate system is transformed in combination with the associated information of the marked target to determine the conversion parameters corresponding to the WGS-MapPoint parameters of the marked target; Improve the ORB-SLAM3 algorithm, reprocess the route data in combination with the improved ORB-SLAM3 algorithm and the conversion parameters, and determine an improved point cloud model; Preprocessing the improved point cloud model and the target route, and superimposing the preprocessed target route on the point cloud model; The improved point cloud model is subjected to an error test using the route data and the target route. When the test error of the error test result is less than a preset threshold, the UAV of the target route is subjected to real-time AR route superposition based on the improved point cloud model.

2. The unmanned aerial vehicle AR line superposition method based on the SLAM algorithm according to claim 1 is characterized in that: The coordinate system conversion is performed in combination with the associated information of the marker target during the modeling process to determine the conversion parameters corresponding to the WGS-MapPoint parameters of the marker target, including: Determine the video key frame of the inspection video by using the ORB-SLAM3 algorithm, determine the 3D coordinates of the marked target in the video key frame in the point cloud model, and cluster the associated information in combination with the associated information of the marked target, so as to determine the WGS-MapPoint parameters in the corresponding video key frame; By tracking the WGS-MapPoint parameter changes of the ORB-marked target in the video frame, the corresponding point cloud model is constructed; The WGS-MapPoint parameters in the local map coordinate system in the point cloud model are converted into conversion parameters in the pixel-world coordinate system.

3. The unmanned aerial vehicle AR line superposition method based on the SLAM algorithm according to claim 1 is characterized in that: The ORB-SLAM3 algorithm is improved, including: Improvements to the MapPoint structure in the ORB-SLAM3 algorithm include: adding 3D coordinates of the world coordinate system, world standard longitude and latitude coordinates, The global / local BA in the ORB-SLAM3 algorithm is improved and embedded into the ORB-SLAM3 structure.

4. The unmanned aerial vehicle AR line superposition method based on the SLAM algorithm according to claim 1 is characterized in that: When the test error of the error test result is greater than a preset threshold, the method further includes: Adding new marker targets or adjusting current marker targets to optimize the conversion parameters; Or, adjust the video key frame selection, feature extraction, feature description, and feature matching of the ORB-SLAM3 to optimize the conversion parameters; Or, for the point cloud data in the point cloud modeling, local resampling and feature enhancement are performed on the point cloud data.

5. The unmanned aerial vehicle AR line superposition method based on SLAM algorithm according to claim 1 is characterized in that: The method further comprises: The flight data and AR performance feedback of the drone performing the flight mission of the target route are collected, and the ORB-SLAM3 algorithm is reversely adjusted through the flight data and AR performance feedback to further optimize the ORB-SLAM3 algorithm.

6. The method for superimposing UAV AR lines based on SLAM algorithm according to claim 1, characterized in that: The associated information includes: Latitude and longitude information, associated video information, and logo type.

7. A drone AR line superposition system based on SLAM algorithm, characterized in that: The system comprises: A collection module is used to collect drone inspection videos and obtain line data in the inspection videos, wherein the line data includes associated information of the marked targets; A modeling module, used for performing point cloud modeling on the inspection video based on the ORB-SLAM3 algorithm, and performing coordinate system conversion in combination with the associated information of the marked target during the modeling process to determine the conversion parameters corresponding to the WGS-MapPoint parameters of the marked target; An improvement module, used for improving the ORB-SLAM3 algorithm, reprocessing the line data in combination with the improved ORB-SLAM3 algorithm and the conversion parameters, and determining an improved point cloud model; An overlay module, used for preprocessing the improved point cloud model and the target route, and overlaying the preprocessed target route onto the point cloud model; The testing module is used to perform an error test on the improved point cloud model through the route data and the target route. When the test error of the error test result is less than a preset threshold, real-time AR route superposition is performed on the drone of the target route based on the improved point cloud model.

8. The unmanned aerial vehicle AR line superposition system based on SLAM algorithm according to claim 1, characterized in that: The system further comprises: A clustering module is used to determine the video key frame of the inspection video through the ORB-SLAM3 algorithm, determine the 3D coordinates of the marked target in the video key frame in the point cloud model, and cluster the associated information in combination with the associated information of the marked target, so as to determine the WGS-MapPoint parameters in the corresponding video key frame; The tracking module is used to build the corresponding point cloud model by tracking the WGS-MapPoint parameter changes of the ORB marked target in the video frame; The conversion module is used to convert the WGS-MapPoint parameters in the local map coordinate system in the point cloud model into conversion parameters in the pixel-world coordinate system.

9. An electronic device comprising a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method according to any one of claims 1 to 6.

10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1 to 6 when executed by a processor.

Citation Information

Cited By

  • North pointing calibration system and method in complex outdoor environment

    CN119803523A

  • Warning line superposition method and device

    CN120201168A

  • A warning line superposition method and device

    CN120201168B