A tunnel drone positioning system based on image recognition and inertial navigation

By combining image recognition and inertial navigation technology in tunnel drones, using QR code marks and Kalman filter correction, the problem of low drone positioning accuracy in tunnel environments is solved, and high-precision, low-error tunnel navigation is achieved. UAV positioning is suitable for fast and efficient tunnel inspections.

CN115371668BActive Publication Date: 2024-08-23CHONGQING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210906244.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2024-08-23
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

Existing UAVs have low positioning accuracy and large errors under tunnel conditions, and image recognition is difficult. Existing technologies such as inertial navigation and visual navigation have poor robustness in tunnel environments, making it difficult to achieve fast and efficient tunnel inspections.

Method used

A tunnel UAV positioning system based on image recognition and inertial navigation is used, combined with QR code signs, cameras, gyroscopes, accelerometers and onboard computers, through YOLOv5 target detection, Zbar algorithm, gamma transformation, gradient final median filtering and Kalman filter technology, integrating inertial navigation and visual navigation data to improve positioning accuracy and real-time performance.

Benefits of technology

It achieves high-precision, low-error positioning in the tunnel environment, with the positioning deviation not exceeding 20cm. It has good real-time performance and is suitable for tunnel inspection needs. It makes up for the shortcomings of inertial navigation and visual navigation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115371668B
    Figure CN115371668B
Patent Text Reader

Abstract

The present invention provides a tunnel drone positioning system based on image recognition and inertial navigation, which belongs to the field of drone positioning technology, and includes a drone, a two-dimensional code mark, a camera, a gyroscope, an accelerometer, an onboard computer, and a background management system. The drone positioning system provided by the present invention mainly uses inertial navigation and is supplemented by visual navigation, and combines the advantages of both, so as to have better positioning performance; the drone positioning method provided by the present invention can reduce inertial navigation error and fusion positioning error, and can quickly and accurately realize tunnel drone positioning. The advantages of the method of the present invention are that it is easy to implement, is less affected by the tunnel environment, and has good real-time positioning and high precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of unmanned aerial vehicle positioning, and in particular to a tunnel unmanned aerial vehicle positioning system based on image recognition and inertial navigation. Background Art

[0002] Tunnels are an important part of urban transportation networks. A large number of tunnels and underground projects currently in operation have entered the "aging" stage. Lack of timely and appropriate maintenance may lead to structural damage and other conditions, with disastrous consequences. Therefore, regular inspections of tunnels are particularly important.

[0003] At present, the methods used for tunnel inspection at home and abroad mainly include manual inspection, semi-automatic instrument detection, etc. The semi-automatic instrument detection method requires the pre-embedded detection sensors during tunnel construction, and the survival rate is generally low. Due to the complex tunnel environment, manual inspection also has problems such as large workload, high risk factor, and low efficiency, which makes it urgent to use new technologies to develop a fast and efficient tunnel inspection equipment.

[0004] In recent years, the invention and research of common positioning methods for drones mainly include inertial navigation, satellite navigation, visual navigation, etc. For example, the drone positioning system using satellite navigation, which contains positioning equipment such as antennas and global navigation satellite system GNSS signal repeaters, is not suitable for tunnel scenarios. The drone positioning system using inertial navigation is equipped with sensors such as accelerometers and gyroscopes, but the positioning error of the system will continue to increase over time. The drone positioning system using visual navigation uses a camera to collect image information and uses image processing and other related technical means to estimate the carrier's posture information. It has high positioning accuracy and low cost, but due to poor real-time performance and being greatly affected by ambient light conditions, it has poor robustness in tunnel scenarios. For this reason, drone self-positioning in tunnel environments still faces huge challenges. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a tunnel drone positioning system based on image recognition and inertial navigation. The present invention aims to solve the problems of low positioning accuracy, large error and difficult image recognition of existing drones under tunnel conditions. The tunnel drone positioning system proposed by the present invention combines the advantages of inertial navigation and video positioning, can improve system performance and reduce positioning error.

[0006] To achieve the above-mentioned object, the present invention provides a tunnel UAV positioning system based on image recognition and inertial navigation, including a UAV, a QR code mark, a camera, a gyroscope, an accelerometer, an onboard computer and a background management system;

[0007] The two-dimensional code mark is used for positioning in the tunnel. A luminous two-dimensional code mark is set every 100 meters in the tunnel;

[0008] The camera is used to capture the QR code logo and video information in the tunnel;

[0009] The accelerometer is used to measure the acceleration of the drone, and the gyroscope is used to measure the deflection angle of the drone;

[0010] The onboard computer is used to process the data acquired by inertial navigation and visual navigation, and the onboard computer is connected to the background management system for communication, and the onboard computer can transmit the processed data to the background management system;

[0011] The background management system is used to control and navigate the inspection route of the drone in the tunnel;

[0012] The camera, gyroscope, accelerometer and onboard computer are all installed on the drone.

[0013] The present invention also provides a tunnel UAV positioning method based on image recognition and inertial navigation, comprising the following steps:

[0014] 1) Inertial navigation: Analyze the data obtained by the gyroscope and accelerometer, and pre-process the data to calculate the position of the tunnel drone;

[0015] 2) Use the YOLOv5 target detection algorithm to detect and record the QR code tags that appear during the tunnel drone flight;

[0016] 3) Perform blur image processing on the QR code label detected in step 2: adopt gamma transformation to enhance low grayscale or high grayscale details, strengthen the edge contour of the image by sharpening, and adopt the median filtering method based on gradient calculation to reduce noise;

[0017] 4) Using the Zbar algorithm to detect the QR code label after the blurred image processing in step 3, the QR code information is recognized to obtain visual positioning data;

[0018] 5) Fuse the inertial navigation data through the first round of Kalman filter correction;

[0019] 6) Through a secondary round of Kalman filter correction, the QR code positioning data and inertial navigation data are fused.

[0020] Furthermore, in step 1, the data obtained by the gyroscope and the accelerometer are processed by the onboard computer to synthesize the motion curve of the tunnel drone, thereby obtaining the real-time position coordinates of the tunnel drone and the real-time distance s between the tunnel drone and the tunnel entrance. The calculation formula of the real-time distance s is as follows:

[0021]

[0022] In the formula, (x i ,y i ) is the current position coordinate of the tunnel drone, (x i-1 ,y i-1 ) is the position coordinate of the tunnel UAV at the previous sampling moment, and the tunnel entrance is the coordinate origin.

[0023] Furthermore, in step 3, the median filtering method based on gradient calculation uses a Sobel template to calculate the gradient of each point in the image.

[0024] Further, the process of step 5 is as follows:

[0025] 5.1) Calculate the actual value Z through the pre-processed data sent back by inertial navigation k , the calculation expression is as follows:

[0026] Z k =HX k +V(k)

[0027] Where H is the parameter matrix of the measurement system, i.e., the scaling factor; X k is the actual measurement value of inertial navigation; V(k) is the measurement noise sequence;

[0028] 5.2) Estimate the current state of the system based on the previous state of the system through the system motion process. The calculation expression is as follows:

[0029]

[0030] In the formula, is the estimated value of the position at time k, A is the state transfer matrix, is the estimated value of the position at time k-1, Bu k represents processing noise;

[0031] 5.3) Calculate the covariance matrix of the prior estimate. The calculation expression is as follows:

[0032] P k =AP k-1 A T +Q

[0033] Where P k is the prediction error covariance matrix of this period, P k-1 is the forecast error covariance matrix of the previous period, Q is the variance matrix of the process noise sequence;

[0034] 5.4) The Kalman filter gain is calculated by the current state prior estimate and its covariance. The calculation expression is as follows:

[0035] G k =P k H T (HP k H T +R) -1

[0036] In the formula, G k is the Kalman filter gain, R is the variance matrix of the measurement noise sequence;

[0037] 5.5) Calculate the actual value Z k and the prior state, i.e., the predicted value The difference between The calculation expression is as follows:

[0038]

[0039] 5.6) Update the error covariance matrix P of the optimal estimate k ', the calculation expression is as follows:

[0040] P k '=(1-G k H)P k

[0041] 5.7) The error covariance matrix P of the updated optimal estimate k ', can be used for position calculation at the next moment, and the calculation method is shown in steps 5.1 to 5.5.

[0042] Further, the process of step 6 is as follows:

[0043] 6.1) Calculate the actual value Z through the identified QR code information k , the calculation expression is as follows:

[0044] Z k =HX k +V(k)

[0045] Where H is the parameter matrix of the measurement system, i.e., the scaling factor; X k is the actual measured value of the two-dimensional code information; V(k) is the measurement noise sequence;

[0046] 6.2) The optimal state estimate obtained by the first round of Kalman filter fusion at time k is used as the estimated value of the position at time k-1 to estimate the current state of the system. The calculation expression is as follows:

[0047]

[0048] In the formula, is the estimated value of the position at time k, A is the state transfer matrix, is the estimated value of the position at time k-1, Bu k represents processing noise;

[0049] 6.3) The subsequent steps and calculation method of step 6 are the same as step 5.

[0050] The beneficial effects of the present invention are:

[0051] 1) The present invention provides a tunnel UAV positioning system based on image recognition and inertial navigation. The positioning system is mainly based on inertial navigation and supplemented by visual navigation. The two are combined in an appropriate manner to form complementary advantages, which can well make up for their respective shortcomings, thereby obtaining better positioning performance.

[0052] 2) The present invention provides a tunnel UAV positioning method based on image recognition and inertial navigation. The method of the present invention can reduce inertial navigation error and fusion positioning error through Kalman filter correction, and can quickly and accurately realize tunnel UAV positioning; the advantages of the method of the present invention are easy to implement, less affected by the tunnel environment, good real-time positioning and high accuracy, and the positioning deviation does not exceed 20cm.

[0053] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a flow chart of a method for positioning a tunnel UAV based on image recognition and inertial navigation of the present invention;

[0055] Figure 2 It is a flow chart of the region segmentation of Kalman filtering involved in the positioning method of the present invention. DETAILED DESCRIPTION

[0056] In order to make the technical solutions, advantages and purposes of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the described embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of this application.

[0057] The present invention provides a tunnel UAV positioning system based on image recognition and inertial navigation, comprising a UAV, a QR code mark, a camera, a gyroscope, an accelerometer, an onboard computer and a background management system;

[0058] The QR code sign is used for positioning in the tunnel. A luminous QR code sign is set every 100 meters in the tunnel;

[0059] The camera is used to capture the QR code logo and video information in the tunnel;

[0060] The accelerometer is used to measure the acceleration of the drone, and the gyroscope is used to measure the deflection angle of the drone;

[0061] The onboard computer is used to process the data obtained by inertial navigation and visual navigation. The onboard computer is equipped with an inertial navigation calculation unit and a Kalman filter calculation unit. The onboard computer is connected to the background management system in communication, and the onboard computer can transmit the processed data to the background management system;

[0062] The backend management system is used to control and navigate the inspection routes of the drone in the tunnel;

[0063] Cameras, gyroscopes, accelerometers, and an onboard computer are all installed on the drone.

[0064] The present invention also provides a tunnel UAV positioning method based on image recognition and inertial navigation, such as Figure 1 As shown, the method of the present invention uses sensors in parallel to acquire data, that is, inertial navigation data acquisition and visual data acquisition are carried out in parallel without interfering with each other, and the obtained data are transmitted to the drone onboard computer for data processing and output.

[0065] The method of the present invention comprises the following steps:

[0066] Step 1: Analyze the data obtained by the gyroscope and accelerometer and pre-process the data to calculate the position of the tunnel drone.

[0067] The inertial navigation of the UAV includes two main components: the accelerometer and the gyroscope. The accelerometer can continuously measure the acceleration of the UAV, obtain the velocity component through integration operation, and then integrate again to obtain the position coordinate signal in one direction. Combined with the angle information obtained by the gyroscope, the initial position of the UAV is taken as the origin, the direction of the UAV nose is taken as the x-axis, the horizontal plane perpendicular to the nose direction is taken as the y-axis, and the vertical direction is taken as the z-axis. The instrument measurement results are obtained from the three coordinate directions, the motion curve is integrated, and the spatial position of the UAV at each moment is given, thereby obtaining the real-time position coordinates of the UAV.

[0068] according to Calculate the real-time distance s between the UAV and the origin (i.e. the tunnel entrance).

[0069] In the formula, (x i ,y i ) is the current position coordinate of the tunnel drone, (x i-1 ,yi-1 ) is the position coordinate of the tunnel UAV at the previous sampling moment, and the tunnel entrance is the coordinate origin.

[0070] Step 2: Use the YOLOv5 target detection algorithm to detect and record the QR code labels that appear during the flight of the tunnel drone.

[0071] The drone camera takes real-time video information of the tunnel wall and feeds it into the yolov5 model. The yolov5 model extracts frames from the obtained video data, detects whether there is QR code information in it, saves the pictures with detected QR codes for later use, and deletes the video data after frame extraction and the pictures without detected QR code labels to reduce memory usage.

[0072] Step 3: Blur the image of the QR code label detected in step 2. Gamma transform is used to enhance low-grayscale or high-grayscale details, sharpening is used to strengthen the edge contour of the image, and a median filter method based on gradient calculation is used for noise reduction.

[0073] The median filtering method based on gradient calculation uses the Sobel template to calculate the gradient of each point in the image. Considering that the edge direction of the QR code cannot be predicted due to the change in the shooting angle of the drone, the simple horizontal and vertical gradients cannot effectively reflect the boundary features, and the gradient templates in the two directions of 45 degrees and 135 degrees are added. After obtaining the gradient values ​​in the four directions, the direction of the maximum value is selected as the direction of grayscale mutation. Each direction corresponds to two filter windows. For the edge points of the QR code, along the direction with the largest gradient value, one side is black and the other side is white. In order to retain the information of the edge points, the side of the black area is selected as the filter window, and the difference between the grayscale values ​​of other pixels in the window and the grayscale value of the center point is calculated, and the cumulative sum is calculated. The filter window with the smaller value of the two is selected for median filtering.

[0074] Step 4: zbar QR code information recognition.

[0075] The Zbar algorithm is used to detect the image after blurring and identify the QR code information, thereby obtaining visual positioning data. Considering that the QR code photographed by the drone cannot be guaranteed to be completely aligned, the affine transformation correction method is used to correct the distorted QR code through a series of operations such as filtering, binarization → corrosion operation → defining morphological boundaries → finding straight lines → locating intersections → affine transformation, etc., to obtain accurate QR code information.

[0076] Step 5: Through the first round of Kalman filter correction, the inertial navigation data is fused to reduce the error.

[0077] The process for step 5 is as follows:

[0078] 5.1) Calculate the actual value Z through the pre-processed data sent back by inertial navigation k , the calculation expression is as follows:

[0079] Z k =HX k +V(k)

[0080] Where H is the parameter matrix of the measurement system, i.e., the scaling factor; X k is the actual measurement value of inertial navigation; V(k) is the measurement noise sequence, which is related to the actual measurement noise of inertial navigation.

[0081] 5.2) Estimate the current state of the system based on the previous state of the system through the system motion process. The calculation expression is as follows:

[0082]

[0083] In the formula, is the estimated value of the position at time k; A is the state transfer matrix; is the estimated value of the position at time k-1; Bu k It stands for processing noise. This noise is the difference between the processing model and the actual situation, such as the impact of tunnel wind speed, obstacles, etc. on the speed of the drone, which affects the positioning data.

[0084] 5.3) Calculate the covariance matrix of the prior estimate. The calculation expression is as follows:

[0085] P k =AP k-1 A T +Q

[0086] Where P k is the prediction error covariance matrix of this period, P k-1 is the prediction error covariance matrix of the previous period, Q is the variance matrix of the process noise sequence; T represents the transpose of the matrix, which is a matrix operation rule.

[0087] 5.4) The Kalman filter gain is calculated by the current state prior estimate and its covariance. The calculation expression is as follows:

[0088] G k =P k H T (HP k H T +R) -1

[0089] In the formula, G k is the Kalman filter gain, and R is the variance matrix of the measurement noise sequence.

[0090] 5.5) Calculate the actual value Z kand the prior state, i.e., the predicted value The difference between the two, also called the residual, is used to obtain the optimal state estimate The calculation expression is as follows:

[0091]

[0092] 5.6) Update the error covariance matrix P of the optimal estimate k ', the calculation expression is as follows:

[0093] P k '=(1-G k H)P k

[0094] 5.7) The error covariance matrix P of the updated optimal estimate k ', can be used for position calculation at the next moment, and the calculation method is shown in steps 5.1 to 5.5.

[0095] Step 6: Through the second round of Kalman filter correction, the QR code positioning data and inertial navigation data are fused.

[0096] The process for step 6 is as follows:

[0097] 6.1) Calculate the actual value Z through the identified QR code information k , the calculation expression is as follows:

[0098] Z k =HX k +V(k)

[0099] Where H is the parameter matrix of the measurement system, i.e., the scaling factor; X k is the actual measured value of the two-dimensional code information; V(k) is the measurement noise sequence;

[0100] 6.2) The optimal state estimate obtained by the first round of Kalman filter fusion at time k is used as the estimated value of the position at time k-1 to estimate the current state of the system. The calculation expression is as follows:

[0101]

[0102] In the formula, is the estimated value of the position at time k, A is the state transfer matrix, is the estimated value of the position at time k-1, Bu k Represents processing noise, which is related to factors such as the deviation between the detected QR code and the actual QR code target position and the QR code image processing time;

[0103] 6.3) Calculate the covariance matrix of the prior estimate. The calculation expression is as follows:

[0104] Pk =AP k-1 A T +Q

[0105] Where P k is the prediction error covariance matrix of this period, P k-1 is the prediction error covariance matrix of the previous period, and Q is the variance matrix of the process noise sequence.

[0106] 6.4) The Kalman filter gain is calculated by the current state prior estimate and its covariance. The calculation expression is as follows:

[0107] G k =P k H T (HP k H T +R) -1

[0108] In the formula, G k is the Kalman filter gain, and R is the variance matrix of the measurement noise sequence.

[0109] 6.5) Calculate the actual value Z k and the prior state, i.e., the predicted value The difference between the two, also called the residual, is used to obtain the optimal state estimate The calculation expression is as follows:

[0110]

[0111] 6.6) Update the error covariance matrix P of the optimal estimate k ', the calculation expression is as follows:

[0112] P k '=(1-G k H)P k

[0113] 6.7) The error covariance matrix P of the updated optimal estimate k ', can be used for position calculation at the next moment.

[0114] The specific implementation steps of Kalman filtering are shown in Figure 2 , which includes two calculation loops: the gain calculation loop and the filter calculation loop. Given the initial values ​​X(O) and P(O), the algorithm can continue to run autoregressively. Therefore, according to the measured value Z(k) at time k and the prior estimate The optimal state estimate at time k can be recursively calculated

[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the protection scope of the present invention.

Claims

1. A tunnel drone positioning method based on image recognition and inertial navigation, characterized in that: The following steps are involved: 1) Inertial navigation: Analyze the data obtained by the gyroscope and accelerometer, and pre-process the data to calculate the position of the tunnel drone; 2) Use the YOLOv5 target detection algorithm to detect and record the QR code tags that appear during the tunnel drone flight; 3) Perform blur image processing on the QR code label detected in step 2: adopt gamma transformation to enhance low grayscale or high grayscale details, strengthen the edge contour of the image by sharpening, and adopt the median filtering method based on gradient calculation to reduce noise; 4) Using the Zbar algorithm to detect the QR code label after the blurred image processing in step 3, the QR code information is recognized to obtain visual positioning data; 5) Fuse the inertial navigation data through the first round of Kalman filter correction; 5.1) Calculate the actual value Z through the pre-processed data sent back by inertial navigation k , the calculation expression is as follows: Z k =HX k +V(k) Where H is the parameter matrix of the measurement system, i.e., the scaling factor; X k is the actual measurement value of inertial navigation; V(k) is the measurement noise sequence; 5.2) Estimate the current state of the system based on the previous state of the system through the system motion process. The calculation expression is as follows: In the formula, is the estimated value of the position at time k, A is the state transfer matrix, is the estimated value of the position at time k-1, Bu k represents processing noise; 5.3) Calculate the covariance matrix of the prior estimate. The calculation expression is as follows: P k =AP k-1 From T +Q Where P k is the prediction error covariance matrix of this period, P k-1 is the forecast error covariance matrix of the previous period, Q is the variance matrix of the process noise sequence; 5.4) The Kalman filter gain is calculated by the current state prior estimate and its covariance. The calculation expression is as follows: G k =P k H T (HP k H T +R) -1 In the formula, G k is the Kalman filter gain, R is the variance matrix of the measurement noise sequence; 5.5) Calculate the actual value Z k and the prior state, i.e., the predicted value The difference between The calculation expression is as follows: 5.6) Update the error covariance matrix P of the optimal estimate k ', the calculation expression is as follows: P k ’=(1-G k H)P k 5.7) The error covariance matrix P of the updated optimal estimate k ', can be used for position calculation at the next moment, the calculation method is as shown in steps 5.1 to 5.5; 6) Through the secondary round of Kalman filter correction, the QR code positioning data and inertial navigation data are integrated; 6.1) Calculate the actual value Z through the identified QR code information k , the calculation expression is as follows: Z k =HX k +V(k) Where H is the parameter matrix of the measurement system, i.e., the scaling factor; X k is the actual measured value of the two-dimensional code information; V(k) is the measurement noise sequence; 6.2) The optimal state estimate obtained by the first round of Kalman filter fusion at time k is used as the estimated value of the position at time k-1 to estimate the current state of the system. The calculation expression is as follows: In the formula, is the estimated value of the position at time k, A is the state transfer matrix, is the estimated value of the position at time k-1, Bu k represents processing noise; 6.3) Calculate the covariance matrix of the prior estimate. The calculation expression is as follows: P k =AP k-1 From T +Q Where P k is the forecast error covariance matrix of this period, P k-1 is the forecast error covariance matrix of the previous period, Q is the variance matrix of the process noise sequence; 6.4) The Kalman filter gain is calculated by the current state prior estimate and its covariance. The calculation expression is as follows: G k =P k H T (HP k H T +R) -1 In the formula, G k is the Kalman filter gain, R is the variance matrix of the measurement noise sequence; 6.5) Calculate the actual value Z k and the prior state, i.e., the predicted value The difference between The calculation expression is as follows: 6.6) Update the error covariance matrix P of the optimal estimate k ', the calculation expression is as follows: P k ’=(1-G k H)P k 6.7) The error covariance matrix P of the updated optimal estimate k ', can be used for position calculation at the next moment, and the calculation method is shown in steps 6.1 to 6.

5.

2. The method for positioning a tunnel drone based on image recognition and inertial navigation according to claim 1, characterized in that: In step 1, the data obtained by the gyroscope and accelerometer are processed by the onboard computer to synthesize the motion curve of the tunnel drone, thereby obtaining the real-time position coordinates of the tunnel drone and the real-time distance s between the tunnel drone and the tunnel entrance. The calculation formula of the real-time distance s is as follows: In the formula, (x i ,y i ) is the current position coordinate of the tunnel drone, (x i-1 ,y i-1 ) is the position coordinate of the tunnel UAV at the previous sampling moment, and the tunnel entrance is the coordinate origin.

3. The method for positioning a tunnel UAV based on image recognition and inertial navigation according to claim 1, characterized in that: In step 3, the median filtering method based on gradient calculation uses a Sobel template to calculate the gradient of each point in the image.

4. A tunnel drone positioning system based on image recognition and inertial navigation, characterized in that: The drone positioning system applies the drone positioning method described in any one of claims 1 to 3, and the drone positioning system includes a drone, a QR code mark, a camera, a gyroscope, an accelerometer, an onboard computer, and a background management system; The two-dimensional code mark is used for positioning in the tunnel. A luminous two-dimensional code mark is set every 100 meters in the tunnel; The camera is used to capture the QR code logo and video information in the tunnel; The accelerometer is used to measure the acceleration of the drone, and the gyroscope is used to measure the deflection angle of the drone; The onboard computer is used to process the data acquired by inertial navigation and visual navigation, and the onboard computer is connected to the background management system for communication, and the onboard computer can transmit the processed data to the background management system; The background management system is used to control and navigate the inspection route of the drone in the tunnel; The camera, gyroscope, accelerometer and onboard computer are all installed on the drone.