Video image geographic mosaic method, device, computer equipment and storage medium

Through the video image geographical splicing method, visual SLAM and GNSS information are used to construct a three-dimensional surface model and perform orthorectification, which solves the problem of low efficiency of traditional camera and drone image splicing and realizes real-time panoramic image generation in emergency situations. Support rapid response and security assurance.

CN118195922BActive Publication Date: 2024-09-20SHENZHEN INST OF ADVANCED TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410558811.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-08
Publication Date
2024-09-20
Estimated Expiration
2044-05-08

AI Technical Summary

Technical Problem

Traditional fixed-view cameras are difficult to meet the needs of quickly and accurately capturing on-site panoramic views and updating key information in real-time during emergencies. Moreover, drone image stitching efficiency is low, making it difficult to provide real-time panoramic maps in emergency search and rescue work.

Method used

The video image geographical splicing method is used to obtain real-time live images and GNSS information collected by multiple drones, and the visual SLAM algorithm is used for pose estimation and densification processing to build a three-dimensional surface model and integrate it into the global spliced ​​map through orthorectification. , generate a global image of a realistic scene.

Benefits of technology

It realizes multi-UAV collaborative and efficient global image stitching of real scenes, improves the real-time nature of data collection, ensures that on-site workers can quickly grasp global information, supports rapid emergency response, and ensures the safety of life and property.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118195922B
    Figure CN118195922B
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment and storage medium for geographic stitching of video images. The method includes: obtaining real-time live images of real scenes collected by multiple drones and GNSS information of multiple drones; using a visual SLAM algorithm to track the input frames of the real-time live images, and combining the visual trajectory and GNSS information to estimate the pose of the successfully tracked input frames, and generate a camera pose with a geographic reference; using the camera pose and surface reconstruction algorithm to densify the input frames, generate a depth map of the real scene, and project the depth map into a dense three-dimensional point cloud to construct a three-dimensional surface model of the real scene; using the camera pose and three-dimensional surface model to orthorectify the input frames, integrate the orthorectified input frames into the global stitching map, and generate a global image of the real scene. The embodiment of the present application can quickly obtain real-time images in real scenes, providing strong support for rapid emergency response in real scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of deep learning technology, and in particular, relates to a method, apparatus, computer equipment and storage medium for geographic stitching of video images. Background Art

[0002] In today's society, the rapid pace of urbanization has led to an increasing concentration of people, and security issues have become increasingly prominent. In this context, emergencies occur frequently, and the demand for fast and accurate capture of the full scene and real-time update of key information has become increasingly strong. Traditional fixed-view cameras are difficult to meet the needs of on-site personnel to understand the development of the scene in real time due to limitations such as fixed viewing angles and limited coverage. Therefore, how to quickly obtain a global image of the scene has become an issue that needs to be solved urgently.

[0003] With the rapid development and widespread application of drone technology, innovative solutions have been provided for the global image problem of scenes in emergency scenes. Compared with traditional fixed-view cameras, drones, with their flexible and changeable advantages, can assist on-site personnel in grasping the dynamics of the scene more timely and comprehensively in emergency situations. However, the pictures taken by drones are often scattered and can only cover local information, which is not conducive to the staff's comprehensive grasp of the overall scene. With the continuous advancement of visual SLAM technology, the combination of drone aerial images and visual SLAM technology can realize the efficient integration of discrete image data, making the real-time stitching of drone aerial images a reality, thus providing on-site personnel with a more intuitive scene view. However, the current drone image stitching mainly relies on image fusion technology, involving complex technical links such as feature extraction and matching, which is often time-consuming and inefficient. It is difficult to process data in real time during the flight of the drone, which restricts the timeliness of emergency search and rescue work. In particular, from the start of the task to the final generation of a panoramic map, the entire processing process may take several hours, which undoubtedly greatly increases the time cost of task execution and is difficult to meet the application requirements of rapid response to emergency tasks in emergency situations. Summary of the invention

[0004] The present application provides a video image geographic stitching method, apparatus, computer equipment and storage medium, aiming to solve at least one of the above-mentioned technical problems in the prior art to a certain extent.

[0005] In order to solve the above problems, this application provides the following technical solutions:

[0006] A video image geographic mosaic method, comprising:

[0007] Obtain real-time live images of real scenes collected by multiple drones and GNSS information of multiple drones;

[0008] Tracking the input frames of the live broadcast image using a visual SLAM algorithm, and estimating the pose of the successfully tracked input frames by combining visual trajectories and GNSS information to generate a camera pose with geographic reference;

[0009] Densifying the successfully tracked input frame using the camera attitude and surface reconstruction algorithm, reconstructing a dense three-dimensional point cloud of the input frame, generating a depth map of the real scene, and projecting the depth map into the dense three-dimensional point cloud through a digital surface model to construct a three-dimensional surface model of the real scene;

[0010] The input frame is orthorectified using the camera posture and the three-dimensional surface model, and the orthorectified input frame is integrated into a global mosaic map to generate a global image of the real scene.

[0011] The technical solution adopted by the embodiment of the present application also includes: the real-time live images of the real scene collected by multiple drones and the GNSS information of multiple drones are obtained, specifically:

[0012] Real-time video communication technology is used by the node to receive real-time live images collected by multiple drones, and the real-time live images are processed according to the set frame rate. At the same time, the GNSS information of multiple drones is obtained through another node using real-time communication. The GNSS information includes the current position longitude and latitude, heading angle, pitch angle, roll angle and altitude.

[0013] The technical solution adopted by the embodiment of the present application also includes: after obtaining the real-time live images of the real scene collected by multiple drones and the GNSS information of the multiple drones, it also includes:

[0014] A histogram equalization algorithm is used to perform image enhancement processing on the real-time live image, and a projection transformation is used to transform the geographic coordinates of the GNSS information.

[0015] The technical solution adopted by the embodiment of the present application also includes: using the visual SLAM algorithm to track the input frame of the real-time live image, and combining the visual trajectory and GNSS information to estimate the pose of the successfully tracked input frame to generate a camera pose with a geographic reference, specifically:

[0016] Create a visual SLAM interface, pass in a real-time live image through the visual SLAM interface, and track the input frame of the incoming real-time live image. If the tracking fails, switch the state to lost, and do not set the visual posture; divide the successfully tracked input frame into frame insertion and key frame insertion, determine whether the current input frame contains important new information, and send the successfully tracked input frame to the georeferencer. The georeferencer combines the visual trajectory and GNSS information to identify and determine the conversion relationship from the local visual coordinate system to the global geographic coordinate system, calculate the camera posture matrix M of the input frame through the visual SLAM algorithm, and construct a sparse point cloud, where M is a 4x4 conversion matrix from the camera coordinate system to the world coordinate system:

[0017]

[0018] in, are the components of the (3x3) rotation matrix R, is the UTM coordinate of the global camera position, is the relative height of the camera.

[0019] The technical solution adopted by the embodiment of the present application also includes: using the camera posture and surface reconstruction algorithm to perform densification processing on the successfully tracked input frame, reconstructing the dense three-dimensional point cloud of the input frame, and generating a depth map of the real scene, specifically:

[0020] Evaluate the suitability of the input frame, and for the camera posture obtained through the visual trajectory, reconstruct the dense 3D point cloud of the input frame through a densification interface or sparse cloud interpolation; then reproject the sparse point cloud generated by the visual SLAM algorithm onto the image plane, and write the depth value at the pixel position according to the interpolation method to generate a relatively sparse depth map, and then repair the depth map to generate a complete and continuous depth map.

[0021] The technical solution adopted by the embodiment of the present application also includes: in the process of projecting the depth map onto a dense three-dimensional point cloud through a digital surface model to construct a three-dimensional surface model of a real scene: specifically:

[0022] The input frames are evaluated according to the pose estimation results and the densification processing results, and the input frames are divided into the following three types:

[0023] The first category: GNSS information frames with failed pose estimation, fixed pose, and no point cloud frames;

[0024] The second category, camera pose frames, precise poses, and sparse point cloud frames when densification fails;

[0025] The third category includes camera pose frames, precise poses, and dense point cloud frames where pose estimation and densification are both successful;

[0026] A digital surface model is extracted based on the evaluation results. The digital surface model is used to construct a three-dimensional surface model of the real scene in the form of a 2.5D elevation map: first, the surface hypothesis is determined, and the first and second types of input frames that have GNSS information but lack or have only sparse surface information are classified as "plane" frames, and the third type of input frames with dense point clouds are classified as "convex" frames; then, the digital surface model is used to project the depth map of the corresponding input frame into the dense three-dimensional point cloud according to the classification result to construct a three-dimensional surface model of the real scene.

[0027] The technical solution adopted by the embodiment of the present application also includes: using the camera posture and the three-dimensional surface model to orthorectify the input frame, and integrating the orthorectified input frame into the global mosaic map to generate a global image of the real scene, specifically:

[0028] orthorectifying the input frame using a grid-based orthographic projection method to generate a high-resolution orthographic image;

[0029] The orthorectified orthophoto images are integrated into the global mosaic map, and the global image mosaic is performed by mixing spatial information and minimizing variance using a probabilistic method; the global image mosaic process includes: receiving the first frame of the orthophoto image for initialization, using the subsequently received orthophoto image as a map update frame, and dividing the map update frame into a region without prior information and an overlapping region according to the association relationship with the first frame of the orthophoto image; the probabilistic method introduces three new data layers of elevation variance, elevation assumption, and number of observations into the global mosaic map, and when a new orthophoto image is received and it is a non-overlapping region, a temporary floating average of the new elevation is calculated for each grid cell:

[0030]

[0031] in is the current average elevation in the global mosaic map, is the number of observations, Update the elevation for the map; also, estimate the float sample variance Defined as:

[0032]

[0033] if If the variance is lower than the set variance threshold, the new floating sample variance and temporary floating average are written to the grid map layer, and the number of observations of the current grid cell is increased; if If the set variance threshold is exceeded, new floating sample variances are written to the elevation hypothesis layer while retaining the existing data.

[0034] Another technical solution adopted by the embodiment of the present application is: a video image geographic splicing device, comprising:

[0035] Data acquisition module: used to obtain real-time live images of real scenes collected by multiple drones and GNSS information of multiple drones;

[0036] Pose estimation module: used to track the input frame of the real-time live image using the visual SLAM algorithm, and perform pose estimation on the successfully tracked input frame in combination with the visual trajectory and GNSS information to generate a camera pose with geographic reference;

[0037] Surface generation module: used to densify the successfully tracked input frame using the camera posture and surface reconstruction algorithm, reconstruct the dense three-dimensional point cloud of the input frame, generate a depth map of the real scene, and project the depth map into the dense three-dimensional point cloud through the digital surface model to construct a three-dimensional surface model of the real scene;

[0038] Image stitching module: used for orthorectifying the input frame by using the camera posture and the three-dimensional surface model, and integrating the orthorectified input frame into the global stitching map to generate a global image of the real scene.

[0039] Another technical solution adopted by the embodiment of the present application is: a computer device, the computer device includes a processor and a memory coupled to the processor, wherein:

[0040] The memory stores program instructions for implementing the video image geographic stitching method;

[0041] The processor is used for executing the program instructions stored in the memory to control the video image geographic stitching method.

[0042] Another technical solution adopted by the embodiment of the present application is: a storage medium storing program instructions executable by a processor, wherein the program instructions are used to execute the video image geographic stitching method.

[0043] Compared with the prior art, the beneficial effects of the embodiments of the present application are as follows: the video image geographic stitching method, device, computer equipment and storage medium of the embodiments of the present application introduce real-time communication technology and drone multi-video strategy to obtain real-time live images and GNSS information of real scenes in real time. The real-time live images can provide intuitive and real on-site conditions, and the GNSS information can ensure the accuracy and completeness of global image stitching, and fully explore the advantages of visual SLAM. By using posture estimation, dense mapping, surface generation, orthorectification and image stitching and other technologies, multi-drone collaborative and efficient global image stitching of real scenes is achieved, which greatly improves the real-time performance of data collection, can quickly obtain real-time images in real scenes, ensure that on-site staff can quickly grasp global information, and provide on-site staff with an unprecedented perspective for a comprehensive and in-depth understanding of emergency scenes, and provide strong support for rapid emergency response in real scenes, thereby effectively protecting the lives and property safety of disaster victims. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 is a flow chart of a method for geographic stitching of video images according to an embodiment of the present application;

[0045] Figure 2 This is a schematic diagram of the structure of a video image geographic stitching device according to an embodiment of the present application;

[0046] Figure 3 A schematic diagram of the computer device structure of an embodiment of the present application;

[0047] Figure 4 A schematic diagram of the structure of a storage medium according to an embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0049] The terms "first", "second" and "third" in this application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second" and "third" can explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. All directional indications (such as up, down, left, right, front, back...) in the embodiments of this application are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or computer device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or computer devices.

[0050] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0051] Specifically, see Figure 1 , is a flow chart of the video image geographic stitching method of the embodiment of the present application. The video image geographic stitching method of the embodiment of the present application comprises the following steps:

[0052] S100: Uses real-time communication technology to obtain real-time live images of real scenes collected by multiple drones and GNSS (Global Navigation Satellite System) information of multiple drones;

[0053] In this step, in order to improve the efficiency of obtaining global images in real scenes in emergency situations, the embodiment of the present application introduces real-time communication technology and drone multi-video strategy to obtain real-time live images and GNSS information of real scenes in real time. Real-time live images can provide intuitive and real on-site conditions, and GNSS information can ensure the accuracy and integrity of global image stitching. Specifically, firstly, with the help of real-time video communication technologies such as WebRTC, nodes are used to control the reception of real-time live images collected by multiple drones, and the real-time live images are processed according to the set frame rate to ensure smooth reception of real-time live images. At the same time, another node uses real-time communication methods such as WebSocket to obtain GNSS information such as the current position longitude and latitude, heading angle, pitch angle, roll angle and altitude of multiple drones, providing a basis for subsequent posture estimation. At the same time, when implementing the drone multi-video strategy, independent nodes are configured for each drone to ensure efficient reception of real-time live images and GNSS information of multiple drones.

[0054] S110: using a histogram equalization algorithm to perform image enhancement processing on the real-time live image, and using projection transformation to perform geographic coordinate transformation on the GNSS information;

[0055] In this step, the original real-time live broadcast image may not appear clear enough due to its narrow grayscale distribution. For example, the grayscale of an overexposed live broadcast image is concentrated in the highlight area, while the grayscale of an underexposed live broadcast image is concentrated in the darker area. In order to achieve the best global image stitching effect, the embodiment of the present application adopts a histogram equalization algorithm to adjust the histogram of the real-time live broadcast image, and transforms the histogram of the original real-time live broadcast image into a uniform distribution, thereby changing the grayscale level of the pixel, and then expanding the dynamic range between the pixel grayscale values, enhancing the overall contrast of the real-time live broadcast image, optimizing the visual effect of the live picture, and providing more accurate and reliable image materials for subsequent global image stitching, which helps to improve the quality and accuracy of global image stitching. For the GNSS information of multiple drones, the embodiment of the present application adopts projection transformation to perform geographic coordinate transformation to improve the stitching quality and accuracy of the global image to meet the needs of subsequent attitude estimation.

[0056] S120: Using the visual SLAM algorithm to track the input frame of the real-time live image after image enhancement processing, and combining the visual trajectory and the GNSS information after the geographic coordinate transformation to estimate the position of the successfully tracked input frame, and generate a camera posture with geographic reference;

[0057] In this step, in the pose estimation stage, a visual SLAM interface is first created, through which the real-time live image is passed in, and the input frame of the passed real-time live image is tracked. If the visual SLAM framework fails to track due to featureless surfaces such as water or flat fields, the state is switched to lost, and the visual pose is not set. The successfully tracked input frames are divided into frame insertion and key frame insertion to determine whether the current input frame contains important new information, and the successfully tracked input frames are sent to the georeferencer. The georeferencer combines the visual trajectory and GNSS information to identify and determine the conversion relationship from the local visual coordinate system to the global geographic coordinate system. The camera pose matrix M of the current input frame is calculated through the visual SLAM algorithm, and a sparse point cloud is constructed to preliminarily represent the scene structure, where M is a 4x4 transformation matrix from the camera coordinate system to the world coordinate system. The camera pose finally calculated is described as:

[0058] (1)

[0059] in, are the components of the (3x3) rotation matrix R, is the UTM (Universal Transverse Mercator coordinates, a plane rectangular coordinate system) coordinate of the global camera position, is the relative height of the camera.

[0060] In order to obtain a robust camera pose calculation result, a reliable set of initial measurements is required. Therefore, the incoming live images need to be paused and queued until the estimation error drops below a set threshold. After solving the scale problem and aligning the visual trajectory with the GNSS information, pose estimation is performed on all previously paused frames and newly tracked frames.

[0061] S130: passing the successfully tracked input frame to a densification module, which reconstructs a dense three-dimensional point cloud of the real scene using the camera pose of the input frame and a surface reconstruction algorithm to generate a depth map of the real scene;

[0062] In this step, the camera pose of the current input frame is calculated in the geographic coordinate system through visual trajectory or based on GNSS information. The visual trajectory can achieve high accuracy, but lacks robustness in featureless areas. The camera pose calculated by GNSS information is fixed, but the uncertainty is high. Therefore, the present application implements the densification module to use the input frame with visual estimated pose to densify the sparse point cloud and generate a dense three-dimensional point cloud of the real scene, thereby describing the surface details of the real scene in a more detailed way.

[0063] Specifically, the densification module uses visual gestures and integrated surface reconstruction algorithms to reconstruct the dense 3D point cloud of the current input frame. The densification process includes: first, evaluating the applicability of the current input frame. For the camera gesture obtained through the visual trajectory, the dense 3D point cloud of the current input frame can be reconstructed through the densification interface or sparse cloud interpolation. Specifically, a set of frames is passed through the densification interface, an advanced reconstruction framework is integrated, and multi-view geometry and other frames are used for surface reconstruction; sparse cloud interpolation is only applicable to a single frame. This method only interpolates existing data and cannot generate new information. Its accuracy and resolution depend on the quality of the sparse point cloud generated by the visual SLAM algorithm. Then, the sparse point cloud generated by the visual SLAM algorithm is reprojected onto the image plane, and the depth value is written at the pixel position according to the interpolation method to generate a relatively sparse depth map. The sparse depth map is then repaired to fill the blank areas between the sampling points to generate a more complete and continuous depth map.

[0064] S140: Projecting the depth map into a dense 3D point cloud through a digital surface model to construct a 3D surface model of the real scene;

[0065] In this step, during the 3D surface model generation phase, the current input frame needs to be evaluated based on the pose estimation results and the densification processing results, and the input frames are divided into the following three types:

[0066] The first category: GNSS information frames with failed pose estimation, fixed pose, and no point cloud frames;

[0067] The second category, camera pose frames, precise poses, and sparse point cloud frames when densification fails;

[0068] The third category includes camera pose frames, precise poses, and dense point cloud frames where both pose estimation and densification are successful.

[0069] After the evaluation is completed, a digital surface model is extracted based on the evaluation results. The model uses a 2.5D elevation map to accurately depict the observed real scene to construct a three-dimensional surface model of the real scene. The digital surface model is constructed in the following way: first, the surface hypothesis is determined, and the first and second input frames with GNSS information but lacking or only sparse surface information are classified as "flat" frames, and the third input frames with dense point clouds are classified as "convex" frames; then, the depth map of the corresponding input frame is projected into the dense three-dimensional point cloud through the digital surface model according to the classification results to construct a three-dimensional surface model of the real scene.

[0070] S150: orthorectify the input frame using the camera posture and the three-dimensional surface model to generate a high-resolution orthoimage;

[0071] In this step, the goal of orthorectification is to use the constructed three-dimensional surface model and camera posture to correct the image visual distortion caused by the viewing angle and the surface structure, and ensure the geometric accuracy in the global image stitching process. Specifically, the embodiment of the present application adopts a grid-based orthographic projection (i.e., backward projection) method to orthorectify the input frame. When the mapped input frame is significantly larger than the image that can be processed by multi-view reconstruction, the initialization grid is adjusted to the maximum expected ground sampling distance GSD using a grid-based orthographic projection method. By saving the elevation of the real scene as a 2.5D grid map, it is regarded as a conventional single-channel image with floating-point data rather than intensity values. In terms of spatial resolution and texture resolution, both can be treated as independent parameters. Among them, the spatial resolution mainly depends on the densification processing and the generation of the three-dimensional surface model, while the texture resolution is independent and can be set to any value limited only by the resolution of the original image.

[0072] S160: Integrate the orthorectified orthophoto image into the global stitching map for stitching to generate a global image of the real scene;

[0073] In this step, after completing the orthorectification of the input frames of all drones, the orthophoto images of all drones are integrated into the global stitching map to form a complete global image. The staff in the on-site scene can observe the stitching of the global image in real time to ensure the accuracy and real-time performance of the global image stitching.

[0074] Specifically, the embodiment of the present application achieves optimal global image stitching by using a probabilistic method to mix spatial information and minimize its variance. First, the global mapping is initialized by receiving the first frame of orthophoto image after orthorectification, and the subsequently received orthophoto image is used as the map update frame, and the map update frame is divided into two categories: areas without prior information and overlapping areas according to the association relationship with the first frame of orthophoto image. The probabilistic method introduces three new data layers of altitude variance, altitude assumptions, and number of observations on the global stitching map. When a new orthophoto image is received and it is a non-overlapping area, a temporary floating average of the new elevation is calculated for each grid cell:

[0075] (2)

[0076] in is the current average elevation in the global mosaic map, is the number of observations, Update the elevation for the map. Also, estimate the float sample variance Defined as:

[0077] (3)

[0078] if If the variance is lower than the set variance threshold, the new floating sample variance and temporary floating average are written to the grid map layer, and the number of observations of the current grid cell is increased; if If the variance threshold is exceeded, the new floating sample variance is written to the elevation hypothesis layer while retaining the existing data. Through these strategies, the variance can be minimized to reduce the noise in the elevation.

[0079] Based on the above, the video image geographic stitching method of the embodiment of the present application introduces real-time communication technology and drone multi-video strategy to obtain real-time live images and GNSS information of real scenes in real time. The real-time live images can provide intuitive and real on-site conditions, and the GNSS information can ensure the accuracy and completeness of global image stitching, and fully explore the advantages of visual SLAM. By using posture estimation, dense mapping, surface generation, orthorectification and image stitching and other technologies, multi-drone collaborative and efficient global image stitching of real scenes is achieved, which greatly improves the real-time performance of data collection, and can quickly obtain real-time images in real scenes, ensuring that on-site staff can quickly grasp global information, providing on-site staff with an unprecedented perspective for a comprehensive and in-depth understanding of emergency scenes, and providing strong support for rapid emergency response in real scenes, thereby effectively protecting the lives and property safety of disaster victims.

[0080] See also Figure 2 , is a schematic diagram of the structure of a video image geographic stitching device according to an embodiment of the present application. The video image geographic stitching device 40 according to an embodiment of the present application comprises:

[0081] Data acquisition module 41: used to acquire real-time live images of real scenes collected by multiple drones and GNSS information of multiple drones;

[0082] The pose estimation module 42 is used to track the input frame of the real-time live image using a visual SLAM algorithm, and estimate the pose of the successfully tracked input frame in combination with the visual trajectory and GNSS information to generate a camera pose with a geographic reference;

[0083] Surface generation module 43: used to perform densification processing on the successfully tracked input frame using the camera posture and surface reconstruction algorithm, reconstruct the dense three-dimensional point cloud of the input frame, generate a depth map of the real scene, and project the depth map into the dense three-dimensional point cloud through the digital surface model to construct a three-dimensional surface model of the real scene;

[0084] Image stitching module 44: used for orthorectifying the input frame by using the camera posture and the three-dimensional surface model, and integrating the orthorectified input frame into the global stitching map to generate a global image of the real scene.

[0085] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0086] The device provided in the embodiment of the present application can be applied in the aforementioned method embodiment. For details, please refer to the description of the aforementioned method embodiment, which will not be repeated here.

[0087] See also Figure 3 , is a schematic diagram of the computer device structure of an embodiment of the present application. The computer device 50 includes:

[0088] A memory 51 storing executable program instructions;

[0089] A processor 52 connected to the memory 51;

[0090] The processor 52 is used to call the executable program instructions stored in the memory 51 and perform the following steps: obtain real-time live images of real scenes collected by multiple drones and GNSS information of multiple drones; use the visual SLAM algorithm to track the input frames of the real-time live images, and combine the visual trajectory and GNSS information to estimate the pose of the successfully tracked input frames to generate a camera pose with geographic reference; use the camera pose and surface reconstruction algorithm to densify the successfully tracked input frames, reconstruct the dense three-dimensional point cloud of the input frames, generate a depth map of the real scene, and project the depth map into the dense three-dimensional point cloud through the digital surface model to construct a three-dimensional surface model of the real scene; use the camera pose and three-dimensional surface model to orthorectify the input frames, and integrate the orthorectified input frames into the global mosaic map to generate a global image of the real scene.

[0091] The processor 52 may also be referred to as a CPU (Central Processing Unit). The processor 52 may be an integrated circuit chip having the ability to process signals. The processor 52 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0092] See also Figure 4, which is a schematic diagram of the structure of the storage medium of the embodiment of the present application. The storage medium of the embodiment of the present application stores a program instruction 61 capable of implementing the following steps: obtaining real-time live images of real scenes collected by multiple drones and GNSS information of multiple drones; using a visual SLAM algorithm to track the input frames of the real-time live images, and combining the visual trajectory and GNSS information to estimate the pose of the successfully tracked input frames, and generate a camera posture with a geographic reference; using the camera posture and surface reconstruction algorithm to densify the successfully tracked input frames, reconstruct the dense three-dimensional point cloud of the input frames, generate a depth map of the real scene, and project the depth map into the dense three-dimensional point cloud through a digital surface model to construct a three-dimensional surface model of the real scene; using the camera posture and three-dimensional surface model to orthorectify the input frames, and integrate the orthorectified input frames into a global mosaic map to generate a global image of the real scene. Among them, the program instruction 61 can be stored in the above storage medium in the form of a software product, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network computer device, etc.) or a processor to perform all or part of the steps of the various implementation methods of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program instructions, or terminal computer devices such as computers, servers, mobile phones, tablets, etc. Among them, the server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0093] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of units 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0094] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. The above is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the description and drawings of this application, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present application.

Claims

1. A video image geographic mosaic method, characterized in that: include: Obtain real-time live images of real scenes collected by multiple drones and GNSS information of multiple drones; Tracking the input frames of the live broadcast image using a visual SLAM algorithm, and estimating the pose of the successfully tracked input frames by combining visual trajectories and GNSS information to generate a camera pose with geographic reference; Densifying the successfully tracked input frame using the camera attitude and surface reconstruction algorithm, reconstructing a dense three-dimensional point cloud of the input frame, generating a depth map of the real scene, and projecting the depth map into the dense three-dimensional point cloud through a digital surface model to construct a three-dimensional surface model of the real scene; orthorectifying the input frame using the camera posture and the three-dimensional surface model, and integrating the orthorectified input frame into a global mosaic map to generate a global image of the real scene; The visual SLAM algorithm is used to track the input frame of the real-time live image, and the position and posture of the successfully tracked input frame is estimated by combining the visual trajectory and GNSS information to generate a camera posture with geographic reference, specifically: Create a visual SLAM interface, pass in a real-time live image through the visual SLAM interface, and track the input frame of the passed real-time live image. If the tracking fails, switch the state to lost and do not set the visual posture; The successfully tracked input frame is divided into frame insertion and key frame insertion, and it is determined whether the current input frame contains important new information. The successfully tracked input frame is sent to the georeferencer, which combines the visual trajectory and GNSS information to identify and determine the transformation relationship from the local visual coordinate system to the global geographic coordinate system, calculates the camera pose matrix M of the input frame through the visual SLAM algorithm, and constructs a sparse point cloud, where M is a 4x4 transformation matrix from the camera coordinate system to the world coordinate system: in, are the components of the (3x3) rotation matrix R, is the UTM coordinate of the global camera position, is the relative height of the camera.

2. The video image geographic stitching method according to claim 1, characterized in that: The real-time live images of the real scene collected by multiple drones and the GNSS information of the multiple drones are obtained, specifically: Real-time video communication technology is used by the node to receive real-time live images collected by multiple drones, and the real-time live images are processed according to the set frame rate. At the same time, the GNSS information of multiple drones is obtained through another node using real-time communication. The GNSS information includes the current position longitude and latitude, heading angle, pitch angle, roll angle and altitude.

3. The video image geographic stitching method according to claim 2, characterized in that: After acquiring the real-time live images of the real scene collected by multiple drones and the GNSS information of the multiple drones, the method further includes: A histogram equalization algorithm is used to perform image enhancement processing on the real-time live image, and a projection transformation is used to transform the geographic coordinates of the GNSS information.

4. The video image geographic stitching method according to claim 3, characterized in that: The method of using the camera posture and surface reconstruction algorithm to perform densification processing on the successfully tracked input frame, reconstructing a dense three-dimensional point cloud of the input frame, and generating a depth map of the real scene is specifically as follows: Evaluate the suitability of the input frame, and for the camera posture obtained through the visual trajectory, reconstruct the dense 3D point cloud of the input frame through a densification interface or sparse cloud interpolation; then reproject the sparse point cloud generated by the visual SLAM algorithm onto the image plane, and write the depth value at the pixel position according to the interpolation method to generate a relatively sparse depth map, and then repair the depth map to generate a complete and continuous depth map.

5. The video image geographic stitching method according to claim 4, characterized in that: The process of projecting the depth map onto a dense three-dimensional point cloud through a digital surface model to construct a three-dimensional surface model of a real scene is as follows: The input frames are evaluated according to the pose estimation results and the densification processing results, and the input frames are divided into the following three types: The first category: GNSS information frames with failed pose estimation, fixed pose, and no point cloud frames; The second category, camera pose frames, precise poses, and sparse point cloud frames when densification fails; The third category includes camera pose frames, precise poses, and dense point cloud frames where pose estimation and densification are both successful; A digital surface model is extracted based on the evaluation results. The digital surface model is used to construct a three-dimensional surface model of the real scene in the form of a 2.5D elevation map: first, the surface hypothesis is determined, and the first and second types of input frames that have GNSS information but lack or have only sparse surface information are classified as "plane" frames, and the third type of input frames with dense point clouds are classified as "convex" frames; then, the digital surface model is used to project the depth map of the corresponding input frame into the dense three-dimensional point cloud according to the classification result to construct a three-dimensional surface model of the real scene.

6. The video image geographic stitching method according to claim 5, characterized in that: The input frame is orthorectified using the camera posture and the three-dimensional surface model, and the orthorectified input frame is integrated into the global mosaic map to generate a global image of the real scene, specifically: orthorectifying the input frame by using a grid-based orthographic projection method to generate a high-resolution orthographic image; Integrate the orthorectified orthoimage into a global mosaic map, and perform global image mosaicking using a probabilistic method to mix spatial information and minimize variance; The global image stitching process includes: receiving a first frame of orthophoto image for initialization, using the subsequently received orthophoto image as a map update frame, and dividing the map update frame into a region without prior information and an overlapping region according to the association relationship with the first frame of orthophoto image; the probabilistic method introduces three new data layers of elevation variance, elevation assumption and number of observations into the global stitching map, and when a new orthophoto image is received and it is a non-overlapping region, a temporary floating average of the new elevation is calculated for each grid cell: in is the current average elevation in the global mosaic map, is the number of observations, Update the elevation for the map; also, estimate the float sample variance Defined as: if If the variance is lower than the set variance threshold, the new floating sample variance and temporary floating average are written to the grid map layer, and the number of observations of the current grid cell is increased; if If the set variance threshold is exceeded, new floating sample variances are written to the elevation hypothesis layer while retaining the existing data.

7. A video image geographic stitching device using the video image geographic stitching method according to claim 1, characterized in that: include: Data acquisition module: used to obtain real-time live images of real scenes collected by multiple drones and GNSS information of multiple drones; Pose estimation module: used to track the input frame of the real-time live image using the visual SLAM algorithm, and perform pose estimation on the successfully tracked input frame in combination with the visual trajectory and GNSS information to generate a camera pose with geographic reference; Surface generation module: used to densify the successfully tracked input frame using the camera posture and surface reconstruction algorithm, reconstruct the dense three-dimensional point cloud of the input frame, generate a depth map of the real scene, and project the depth map into the dense three-dimensional point cloud through the digital surface model to construct a three-dimensional surface model of the real scene; Image stitching module: used for orthorectifying the input frame by using the camera posture and the three-dimensional surface model, and integrating the orthorectified input frame into the global stitching map to generate a global image of the real scene.

8. A computer device, characterized in that: The computer device includes a processor and a memory coupled to the processor, wherein: The memory stores program instructions for implementing the video image geographic stitching method according to any one of claims 1 to 6; The processor is used for executing the program instructions stored in the memory to control the video image geographic stitching method.

9. A storage medium, characterized in that: The device stores program instructions executable by a processor, wherein the program instructions are used to execute the video image geographic stitching method according to any one of claims 1 to 6.