Design drawing and aerial video overlay display method and system based on real-time SLAM technology
Through real-time SLAM technology and perspective back-projection technology, the design drawings and aerial videos are superimposed and displayed in real time, which solves the problem of unstable combination of design drawings and aerial videos in the existing technology, and enables supervisors to monitor the work progress and design differences in real time. Effect.
Patent Information
- Application Number
- CN202410015328.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-04
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-01-04
AI Technical Summary
Existing technology cannot effectively combine design drawings and aerial videos, resulting in unstable tracking of scheme drawings and aerial footage, making it impossible to monitor work progress and design differences in real time.
Using real-time SLAM technology, the visual SLAM algorithm is used to real-time locate the absolute coordinates and attitude angle of the video frame relative to the geodetic coordinate system, and perspective back-projection technology is used to back-project the design drawings into the video frame to complete the real-time overlay of the design drawings and aerial video. show.
Supervisors can watch the superimposed display effect of ground video and design drawings in real time through aviation aircraft, intuitively compare the operation progress and design differences, and clearly manage the operation progress and risks.
Smart Images

Figure CN117998032B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of superimposed display, and in particular to a method and system for superimposed display of design drawings and aerial video based on real-time SLAM technology. Background Art
[0002] Aerial video observes the ground from a high-altitude perspective and overlooks the overall situation from a large market. It is often used for environmental reconnaissance and operation monitoring, and is represented by drone aerial video. Design drawings are a type of flat line drawing produced from software such as CAD and BIM. They are often used for design planning in the early stages of operations and are widely used in civil engineering, urban planning, garden design and other fields. At present, the two are separated independently and have no connection. The design institute assigns construction tasks to construction personnel according to CAD drawings. During the construction process, supervisors monitor the progress of operations through aircraft video cruises (such as drone cruises). Existing technologies cannot achieve the combination of road design drawings and aerial videos, and the tracking of scheme drawings and aerial real scenes is unstable. Summary of the invention
[0003] In order to overcome the above technical problems, the technical solution of the present invention is a real-time superposition display method of design drawings and aerial videos, comprising the following steps:
[0004] Step 1, obtaining the video image and position information of the video frame of the aircraft in real time, and performing subsequent steps 2 to 4 frame by frame;
[0005] Step 2: Based on the video image and the position information of the video frame of the aircraft, the visual SLAM algorithm is used to locate the absolute coordinates and absolute attitude angle of the video frame relative to the earth coordinate system in real time;
[0006] Step 3, importing the digital design drawings with absolute coordinates and elevation information in the geodetic coordinate system, and converting the digital design drawings into the video frame coordinate system;
[0007] Step 4: Based on the perspective back-projection technology, the design drawings are back-projected into the video frame to complete the overlay display.
[0008] Furthermore, in step 1, the position information of the aircraft's video image and video frame is obtained in real time through the SDK development kit provided by the aircraft manufacturer. If the position information is independent and collected at fixed time intervals, the position information of the video frame is calculated by interpolation after being aligned with the timestamp of the video frame.
[0009] Further, the specific implementation of step 2 is as follows;
[0010] 2.1, through the time of the video frames, the temporally adjacent video frames are used to construct matching pairs;
[0011] 2.2, use the ORB method to extract feature points from each video frame and match the feature points with the previous video frame;
[0012] 2.3, use the connection points to estimate the homography / essential matrix and perform singular value decomposition on it to calculate the relative pose of the matching pair, and use the image GPS to calculate the initial absolute pose;
[0013] 2.4, taking all connection points as observations, using the video frame positions as constraints, and the poses obtained by singular value decomposition as initial values, nonlinear optimization is performed to calculate the precise pose parameters.
[0014] Furthermore, the design drawings are in DXF format, SHP format or KML format files.
[0015] Furthermore, in step 3, the average elevation of the work area is used as the elevation information of the design drawing.
[0016] Furthermore, the back projection calculation formula is as follows:
[0017]
[0018] Among them, λ represents the scale, u, v are the image coordinates in the video frame, and f x , f y represents the focal length in the x-direction and y-direction, u0 and v0 represent the position of the image principal point, the first matrix on the right side of the equal sign is the intrinsic parameter matrix of the video acquisition camera, which is obtained by the calibration parameters when the aircraft leaves, or by the SLAM algorithm described in step 2; R, t is the extrinsic parameter matrix of the video frame, which is obtained by the SLAM algorithm described in step 2, X w , Y w , Z w It is the absolute coordinate of the design drawing, which is obtained by reading the drawing information.
[0019] The present invention also provides a design drawing and aerial video overlay display system based on real-time SLAM technology, including the following modules:
[0020] An information acquisition module, used to acquire the video image and position information of the video frame of the aircraft in real time;
[0021] The SLAM algorithm module is used to locate the absolute coordinates and absolute attitude angles of the video frame relative to the earth coordinate system in real time using the visual SLAM algorithm based on the position information of the aircraft's video image and video frame;
[0022] A coordinate conversion module is used to import digital design drawings with absolute coordinates and elevation information in the geodetic coordinate system, and convert the digital design drawings into the video frame coordinate system;
[0023] The display module is used to back-project the design drawings into the video frame based on the perspective back-projection technology to complete the overlay display.
[0024] Furthermore, the specific implementation of the SLAM algorithm module is as follows;
[0025] 2.1, through the time of the video frames, the temporally adjacent video frames are used to construct matching pairs;
[0026] 2.2, use the ORB method to extract feature points from each video frame and match the feature points with the previous video frame;
[0027] 2.3, use the connection points to estimate the homography / essential matrix and perform singular value decomposition on it to calculate the relative pose of the matching pair, and use the image GPS to calculate the initial absolute pose;
[0028] 2.4, taking all connection points as observations, using the video frame positions as constraints, and the poses obtained by singular value decomposition as initial values, nonlinear optimization is performed to calculate the precise pose parameters.
[0029] Furthermore, the back projection calculation formula is as follows:
[0030]
[0031] Among them, λ represents the scale, u, v are the image coordinates in the video frame, and f x , f y represents the focal length in the x-direction and the y-direction, u0 and v0 represent the position of the principal point of the image, the first matrix on the right side of the equal sign is the intrinsic parameter matrix of the video acquisition camera, which is obtained by the calibration parameters when the aircraft leaves, or by the SLAM algorithm described in the SLAM algorithm module; R, t is the extrinsic parameter matrix of the video frame, which is obtained by the SLAM algorithm, X w , Y w , Z w It is the absolute coordinate of the design drawing, which is obtained by reading the drawing information.
[0032] The present invention proposes a real-time superimposed display technology of design drawings and aerial videos, which allows supervisors to watch the superimposed display effects of ground videos and design drawings in real time by operating an aircraft (such as a small drone), intuitively compare the differences between the work progress and the design drawings, and manage the work progress and risks more clearly. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 This is a flow chart of an embodiment of the present invention;
[0034] Figure 2 This is a diagram showing the superposition of design drawings and aerial video in an embodiment of the present invention. DETAILED DESCRIPTION
[0035] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0036] like Figure 1 As shown, the design drawing and aerial video overlay display method based on real-time SLAM technology provided by the embodiment of the present invention includes the following steps:
[0037] Step 1: Use the SDK (Software Development Kit) provided by the aircraft manufacturer to obtain the aircraft video and video frame position information in real time. If the position information is collected independently and at a fixed time interval, the position information of the video frame is calculated by interpolation after being aligned with the timestamp of the video frame. Then, proceed to the subsequent steps 2-4 for each video frame.
[0038] Step 2: Based on the aircraft's video image and the position information of the video frame, a visual SLAM algorithm is used to locate the absolute coordinates and absolute attitude angle of the video frame relative to the earth coordinate system in real time. The technical steps are as follows:
[0039] 2.1, through the time of video frames, temporally adjacent video frames are constructed into matching pairs.
[0040] 2.2, use the ORB (Oriented FAST and Rotated BRIEF) method to extract feature points from each video frame and match the feature points with the previous video frame.
[0041] 2.3, using the connection points of feature point matching to estimate the homography / essential matrix, specifically: construct the homography matrix equation using the matching points of the image pair, calculate the homography matrix using the least squares method, perform singular value decomposition on it, calculate the relative pose of the matching pair, and use the image GPS to calculate the initial absolute pose.
[0042] 2.4, taking all connection points as observations, using the video frame positions as constraints, and the poses obtained by singular value decomposition as initial values, nonlinear optimization is performed to calculate the precise pose parameters.
[0043] After singular value decomposition, the relative rotation matrix and relative displacement can be obtained, thereby obtaining the relative initial absolute pose. For the calculation of the absolute initial absolute pose, the relative position of the image and the GPS are regarded as a rigid body respectively. By solving the rigid body transformation parameters, the rotation, translation and scaling parameters between the local coordinate system and the absolute coordinate system are obtained, and then the relative pose of the image is transformed to obtain the absolute pose.
[0044] Using all the connection points, the equation is constructed using the following projection formula:
[0045]
[0046] In addition, the constraint equations are constructed using image GPS:
[0047]
[0048] Among them, X s , Y s , Z s Indicates the GPS parameters of the image.
[0049] Since it is a nonlinear equation, the initial absolute pose obtained in the previous steps is used for nonlinear optimization using Newton's method to calculate the precise pose parameters.
[0050] Step 3, import digital design drawings, such as DXF, SHP format, KML format files. Plane drawings need to have absolute coordinates in the geodetic coordinate system. If the drawings do not have elevation information, manually enter the ground elevation information when importing, and the average elevation of the work area can be used as the elevation information. It should be noted that if the coordinate system of the digital design drawings is inconsistent with the coordinate system of the video frame parameters in step 2, the digital design drawings need to be converted to the video frame coordinate system, and the open source library GDAL is used for conversion.
[0051] Step 4: Back-project the plane drawing into the video frame based on the perspective back-projection technology to complete the overlay display. The back-projection formula is as follows:
[0052]
[0053] Among them, λ represents the scale, u, v are the image coordinates in the video frame, and f x , f y represents the focal length in the x-direction and y-direction, u0 and v0 represent the position of the principal point, the first matrix on the right side of the equal sign is the intrinsic parameter matrix of the video acquisition camera, which can be obtained through the calibration parameters when the aircraft leaves, or through the SLAM technology described in step 2 above; R, t is the extrinsic parameter matrix of the video frame, which can be obtained through the SLAM technology described in step 2 above, X w , Y w , Z w It is the absolute coordinate of the drawing, which is obtained by reading the drawing information. If necessary, the drawing coordinates are converted through the program to ensure that the drawing coordinates and the external parameters of the video frame are in the same coordinate system.
[0054] After the above steps, the final result is the design drawing and the aerial video superimposed display as shown below Figure 2 shown.
[0055] The present invention also provides a design drawing and aerial video overlay display system based on real-time SLAM technology, including the following modules:
[0056] An information acquisition module, used to acquire the video image and position information of the video frame of the aircraft in real time;
[0057] The SLAM algorithm module is used to locate the absolute coordinates and absolute attitude angles of the video frame relative to the earth coordinate system in real time using the visual SLAM algorithm based on the position information of the aircraft's video image and video frame;
[0058] A coordinate conversion module is used to import digital design drawings with absolute coordinates and elevation information in the geodetic coordinate system, and convert the digital design drawings into the video frame coordinate system;
[0059] The display module is used to back-project the design drawings into the video frame based on the perspective back-projection technology to complete the overlay display.
[0060] The specific implementation method of each module is the same as each step and will not be described in detail in the present invention.
[0061] The above description is only a preferred specific implementation manner of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention should be included in the scope of protection of the invention.
Claims
1. A method for superimposing and displaying design drawings and aerial videos based on real-time SLAM technology, characterized in that: The steps include: Step 1, obtaining the video image and position information of the video frame of the aircraft in real time, and performing subsequent steps 2 to 4 frame by frame; Step 2: Based on the video image and the position information of the video frame of the aircraft, the visual SLAM algorithm is used to locate the absolute coordinates and absolute attitude angle of the video frame relative to the earth coordinate system in real time; The specific implementation of step 2 is as follows; 2.1, through the time of the video frames, the temporally adjacent video frames are used to construct matching pairs; 2.2, use the ORB method to extract feature points from each video frame and match the feature points with the previous video frame; 2.3, use the connection points to estimate the homography / essential matrix and perform singular value decomposition on it to calculate the relative pose of the matching pair, and use the image GPS to calculate the initial absolute pose; 2.4, using all connection points as observations, using the video frame position as constraints, and the pose obtained by singular value decomposition as the initial value, nonlinear optimization is performed to calculate the precise pose parameters; Step 3, importing the digital design drawings with absolute coordinates and elevation information in the geodetic coordinate system, and converting the digital design drawings into the video frame coordinate system; Step 4: Based on the perspective back-projection technology, the design drawing is back-projected into the video frame to complete the overlay display; The back projection calculation formula is as follows: ; Among them, λ represents the scale, is the image coordinate within the video frame, f x , f y represents the focal length in the x-direction and the y-direction, u0 and v0 represent the position of the image principal point, and the first matrix on the right side of the equal sign is the intrinsic parameter matrix of the video acquisition camera, which is obtained through the calibration parameters when the aircraft leaves the scene, or through the SLAM algorithm described in step 2; is the video frame extrinsic matrix, obtained through the SLAM algorithm described in step 2, It is the absolute coordinate of the design drawing, which is obtained by reading the drawing information.
2. The design drawing and aerial video superposition display method based on real-time SLAM technology as claimed in claim 1, characterized in that: In step 1, the position information of the aircraft's video image and video frame is obtained in real time through the SDK development kit provided by the aircraft manufacturer. If the position information is independent and collected at fixed time intervals, the position information of the video frame is calculated by interpolation after being aligned with the timestamp of the video frame.
3. The design drawing and aerial video superposition display method based on real-time SLAM technology as claimed in claim 1, characterized in that: The design drawings are in DXF format, SHP format or KML format.
4. The design drawing and aerial video superposition display method based on real-time SLAM technology as claimed in claim 1, characterized in that: In step 3, the average elevation of the work area is used as the elevation information of the design drawing.
5. Design drawings and aerial video overlay display system based on real-time SLAM technology, characterized by: Includes the following modules: An information acquisition module, used to acquire the video image and position information of the video frame of the aircraft in real time; The SLAM algorithm module is used to locate the absolute coordinates and absolute attitude angles of the video frame relative to the earth coordinate system in real time using the visual SLAM algorithm based on the position information of the aircraft's video image and video frame; The specific implementation of the SLAM algorithm module is as follows; 2.1, through the time of the video frames, the temporally adjacent video frames are used to construct matching pairs; 2.2, use the ORB method to extract feature points from each video frame and match the feature points with the previous video frame; 2.3, use the connection points to estimate the homography / essential matrix and perform singular value decomposition on it to calculate the relative pose of the matching pair, and use the image GPS to calculate the initial absolute pose; 2.4, using all connection points as observations, using the video frame position as constraints, and the pose obtained by singular value decomposition as the initial value, nonlinear optimization is performed to calculate the precise pose parameters; A coordinate conversion module is used to import digital design drawings with absolute coordinates and elevation information in the geodetic coordinate system, and convert the digital design drawings into the video frame coordinate system; A display module is used to back-project the design drawings into the video frame based on the perspective back-projection technology to complete the overlay display; The back projection calculation formula is as follows: ; in, λ represents the scale, is the image coordinate within the video frame, f x , f y Indicates the focal length in the x-direction and the y-direction, u0 and v0 indicate the position of the image principal point, and the first matrix on the right side of the equal sign is the intrinsic parameter matrix of the video acquisition camera, which is obtained through the calibration parameters when the aircraft leaves the scene, or through the SLAM algorithm described in the SLAM algorithm module; is the video frame extrinsic matrix, obtained through the SLAM algorithm, It is the absolute coordinate of the design drawing, which is obtained by reading the drawing information.
Citation Information
Patent Citations
Visual inertial navigation SLAM method based on ground plane hypothesis
CN108717712A
Multi-measurement-in-one data acquisition and database building method for engineering construction project
CN113514041A
