A method for tunnel disease image detection and location based on deep learning
Through deep learning and image splicing technology, combined with the Resftnet model, the detection and location of tunnel diseases are realized, solving the difficulty of disease location caused by human factors and poor light conditions in the existing technology, and providing a solution for accurate positioning and efficient detection.
Patent Information
- Application Number
- CN202111264015.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-10-27
AI Technical Summary
Existing tunnel disease detection methods have problems such as high human factors, time and effort, and difficulty in accurately locating the disease location. Especially in environments with poor light conditions, it is difficult to effectively detect and locate diseases in tunnels.
Using a method based on deep learning, combined with image stitching technology, video images are collected through industrial cameras, preprocessed and panoramic stitched, and a deep learning network model Resftnet is constructed to identify and locate diseases, establish a correspondence between pixels and actual distances, and calculate Disease distance from starting point.
It can accurately detect and locate tunnel diseases under harsh lighting conditions, provide precise location information of the disease, improve detection efficiency and accuracy, and solve the inconsistency and safety issues of manual detection.
Smart Images

Figure CN114140387B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of image processing, and in particular relates to tunnel image splicing and tunnel image defect detection and defect positioning, and is usually used for defect detection and positioning in tunnels. Background Art
[0002] With the rapid development of public transportation in my country, large-scale construction projects such as highway tunnels and subway tunnels have become the main road traffic facilities for people to travel. Tunnels are subjected to the combined effects of various pressures underground, which will cause deformation and even various defects such as cracks and water leakage. If not handled in time, it will cause the metal facilities in the pipeline to rust and the concrete surface to fall off. Especially for cross-river tunnels, cracks and water leakage are very serious defects, which may cause the influx of river water in severe cases, causing serious harm to the operation of the tunnel and the safety of the people.
[0003] At present, tunnel disease detection mainly relies on manual detection and intelligent detection using technologies such as computer vision. Manual detection means that the inspectors go down to the tunnel to observe the surface state of the tunnel with their eyes and collect the surface data of the tunnel with cameras. However, this method is not only time-consuming and labor-intensive, but also has a large number of human factors, which will cause inconsistent detection standards and even certain safety issues for inspectors, especially for some tunnels with small spaces and poor detection environments. In recent years, with the development of artificial intelligence, tunnel disease detection has shifted from traditional manual detection to artificial intelligence-based detection methods. However, the light conditions in the tunnel are poor, and shadows sometimes appear when collecting videos. The emergence of these situations has posed a huge challenge to tunnel disease detection. General disease detection methods only detect the type of disease, but do not provide effective data for the specific location of the disease. Therefore, it is very difficult to determine the location of the disease in a tunnel that is more than ten kilometers or even tens of kilometers long. If the tunnel disease cannot be located, it is also a huge challenge for maintenance personnel. Based on the above situation, it is a very necessary project to propose a tunnel disease image detection and positioning based on deep learning. Summary of the invention
[0004] In view of the problems existing in the prior art, the purpose of the present invention is to provide a method for detecting and locating tunnel disease images based on deep learning. By combining deep learning with the image stitching method, the detection and location of tunnel disease images can be achieved.
[0005] In order to achieve the above purpose, the present invention adopts the following technical solutions:
[0006] A method for tunnel disease image detection and positioning based on deep learning, comprising the following steps:
[0007] Step 1), using an industrial camera to collect visible light video images inside the tunnel;
[0008] Step 2), extracting the video images collected in step 1) to obtain a sequence of video images; and preprocessing the obtained sequence of images;
[0009] Step 3), stitching the sequence images generated in step 2) to obtain a panoramic image of the tunnel;
[0010] Step 4), creating a data set of a deep learning network model for the video sequence images obtained in step 2);
[0011] Step 5), cropping the panoramic image obtained in step 3) at a certain pixel interval to obtain a sequence of images of equal size;
[0012] Step 6), construction and training of the deep learning network model Resftnet;
[0013] Step 7), the panoramic sequence images obtained in step 5) are sent to the trained deep learning network model Resftnet to identify tunnel defects;
[0014] Step 8), for the sequence images obtained in step 5), a corresponding relationship between pixels and actual distances is established;
[0015] Step 9), for the disease sequence detected in step 7), according to the relationship between each pixel and the actual distance in step 8), calculate the distance of each disease from the starting point;
[0016] Step 10), importing the test result data of step 9) into a database management system;
[0017] Step 11), generating a test report based on the result of step 10).
[0018] Preferably, the step 2) extracts the collected visible light video images to obtain a sequence of video images; and preprocesses the obtained sequence of images. The specific steps are as follows:
[0019] Step 2.1), performing Gaussian filtering on the video sequence images collected in step 1) to remove high-frequency noise in the sequence images;
[0020] Step 2.2), dedistorting and correcting the image obtained in step 2.1);
[0021] Step 2.3), uniform brightness processing is performed on the RGB image obtained in step 2.2), and finally the brightness enhancement of the image is completed.
[0022] Preferably, the step 3) stitches the sequence images generated in step 2) to obtain a panoramic image of the tunnel image, and its main implementation steps are:
[0023] Step 3.1), extract the pixel columns of the sequence image; a rectangle with a height equal to the image height and a width of one pixel is called a pixel column; the model of the pixel column is P ic and pixel column set G p :
[0024] P ic =V(1,h)(i is the image sequence number, h=Im g.rows())
[0025] G P = {P i1 ,P i2 ,...,P ic ,...,P nc}(c≤Im g.cols()), i is the image sequence number, n is the total number of images;
[0026] Step 3.2), using the pixel column set G in step 3.1) p Calculate the pixel column with the closest Euclidean distance to the pixel; the calculation model is:
[0027] D p =min(P ik1 ,P jk2 )(i≠j,k1≤c,k2≤c)
[0028] Where k1 and k2 are pixel column numbers, c is the total number of pixel columns, i is the image sequence number, j is the image sequence number, and j>i;
[0029] Select two columns of pixels with the closest Euclidean distance in the pixel column set for matching;
[0030] Step 3.3), according to the serial number P of the right pixel column of the two matching pixel columns jk2 , copy all the right pixel columns of the image where j is located to the right side of the matching pixel column j; at the same time, find the last pixel column k1 of the image j where k2 is located;
[0031] Step 3.4), using j obtained in step 3.3), execute step 3.2) in this cycle to complete the panoramic image stitching of the video sequence images; the matching process is as follows:
[0032]
[0033] Preferably, the step 4) produces a data set of a deep learning network for the video sequence images obtained in step 2); the main implementation steps are:
[0034] Step 4.1), perform data enhancement on the sequence images obtained in step 2), and expand the data set according to brightness 1, 1.1, 1.2, 1.3, 1.4, 1.5;
[0035] Step 4.2), create training set, test set, and validation set data sets for the data set obtained in step 4.1); the distribution of the data sets is 0.9:0.05:0.05;
[0036] Step 4.3), when making the data set, in order to detect compound diseases, for images with compound diseases, each disease must be labeled;
[0037] Preferably, the step 5) crops the panoramic image obtained in step 3) at a certain pixel interval to obtain a sequence of images of equal size; the main implementation steps are:
[0038] Step 5.1), for the obtained panoramic sequence image Im g, calculate the height and width of the panoramic image:
[0039] (Heigh,Width)=(Im g.rows(),Im g.cols())
[0040] Step 5.2), divide the (Height, Width) obtained in step 5.1) into n equal parts:
[0041] (heigh,width)=(Heigh,Width / n);
[0042] Preferably, the step 6) is to construct and train the deep learning network model Resftnet; its main implementation steps are:
[0043] Step 6.1), for the tunnel video sequence images with certain shadows and ghosts, construct the RFB-F (3) network block;
[0044] Step 6.2), in order to fully integrate the image features extracted by Resnet50, the PFnet(2) network block is constructed;
[0045] Step 6.3), construct a deep learning network model Resftnet, which consists of Resnet50 (1), PFnet (2), RFB-F (3), TRI-T (4), FPN (5), classification block (6) and regression block (7), and train the model;
[0046] Preferably, in step 7), the panoramic sequence images obtained in step 5) are fed into a trained deep learning network model to identify tunnel defects; the main implementation steps are:
[0047] Step 7.1), the cropped panoramic image sequence images are numbered starting from 0;
[0048] Step 7.2), the original collected video sequence images before splicing are used as the data set to start training the deep learning network model Resftnet;
[0049] Step 7.3), using the Resftnet model trained in step 7.2) to detect the sequence images in step 7.1); obtaining the category information and coordinate information of the disease;
[0050] Preferably, the step 8) establishes a corresponding relationship between pixels and actual distances for the sequence images obtained in step 5); the main implementation steps are:
[0051] Step 8.1), when shooting the video, place a label every lmm on the surface of the tunnel being filmed, and place 10 labels in total; the label sequence is L = {l1,l2,...,l k ,...,l 10}(where k is the label number, k≤10);
[0052] Step 8.2), in the cropped sequence image, find the pixel number sequence P between the marked points = {p1, p2, ..., p m ,...,p 10}(where m is the pixel column number, m≤10);
[0053] Step 8.3), calculate the actual distance D corresponding to each pixel according to step 8.1) and step 8.2) p ,
[0054] D pt =(l t+6 -l t+1 ) / (p t+6 -p t+1 )(0≤t<5), where t is the label number;
[0055]
[0056] Preferably, the step 9) calculates the distance of each disease from the starting point for the disease sequence detected in step 7) according to the relationship between each pixel and the actual distance in step 8). The main implementation steps are:
[0057] Step 9.1), the sequence images obtained in step 5) are named from left to right in increments of 0 to 1; the names of the sequence images are obtained: L name ={0,1,2,...,i,...n-1}, where n is the total number of images captured;
[0058] Step 9.2), after the deep learning model is used to detect, the coordinates of the defect in the current image are obtained as P. = (x1, y1, x2, y2), where (x1, y1) is the coordinate of the upper left corner of the image, and (x2, y2) is the coordinate of the lower right corner of the image;
[0059] Step 9.3), based on P. obtained in step 9.2), calculate the center coordinates of the current disease as: P c .=((x2-x1) / 2,(y2-y1) / 2);
[0060] Step 9.4), based on the relationship between each pixel and the actual distance in step 8), calculate the distance of each disease from the starting point:
[0061] S=L namei ×D p ×width+P c.x ×D p (P c.x =(x2-x1) / 2)
[0062] Where width is the width of the image, x1 is the horizontal coordinate of the upper left corner of the image, x2 is the horizontal coordinate of the lower right corner of the image, and D p The actual distance corresponding to each pixel, L namei is the image number where the current disease is located.
[0063] Preferably, in step 10), the detection result data is imported into a database management system; the results and related data of the deep learning model detection are imported into the database management system;
[0064] Preferably, the step 11) generates a test report based on the test results of the model; the main implementation steps are:
[0065] Step 11.1), create a web server;
[0066] Step 11.2), the client accesses the server according to the interface and generates a detection report.
[0067] Compared with the prior art, the present invention has the following obvious outstanding substantive features and significant advantages:
[0068] 1. The present invention can detect tunnel diseases in tunnels with poor lighting conditions such as shadows and phantoms and a large number of interference factors;
[0069] 2. The present invention can accurately locate the defects in the tunnel and accurately calculate the distance between the defects in the tunnel and the starting point. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 It is the overall flow chart of the method of the present invention.
[0071] Figure 2 This is a structural diagram of the deep learning model Resftnet of the method of the present invention.
[0072] Figure 3 This is the PFnet structure diagram in the deep learning model structure diagram of the method of the present invention.
[0073] Figure 4 This is the RFB-F structure diagram in the deep learning model structure diagram of the method of the present invention.
[0074] Figure 5 This is the TRI-T structure diagram in the deep learning model structure diagram of the method of the present invention. DETAILED DESCRIPTION
[0075] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and preferred embodiments:
[0076] Embodiment 1
[0077] In this embodiment, a method for detecting and locating tunnel disease images based on deep learning includes the following steps:
[0078] Step 1), using an industrial camera to collect visible light video images inside the tunnel;
[0079] Step 2), extracting the video images collected in step 1) to obtain a sequence of video images; and preprocessing the obtained sequence of images;
[0080] Step 3), stitching the sequence images generated in step 2) to obtain a panoramic image of the tunnel;
[0081] Step 4), creating a data set of a deep learning network model for the video sequence images obtained in step 2);
[0082] Step 5), cropping the panoramic image obtained in step 3) at a certain pixel interval to obtain a sequence of images of equal size;
[0083] Step 6), construction and training of the deep learning network model Resftnet;
[0084] Step 7), the panoramic sequence images obtained in step 5) are sent to the trained deep learning network model Resftnet to identify tunnel defects;
[0085] Step 8), for the sequence images obtained in step 5), a corresponding relationship between pixels and actual distances is established;
[0086] Step 9), for the disease sequence detected in step 7), according to the relationship between each pixel and the actual distance in step 8), calculate the distance of each disease from the starting point;
[0087] Step 10), importing the test result data of step 9) into a database management system;
[0088] Step 11), generating a test report based on the result of step 10).
[0089] The method of this embodiment can detect tunnel defects in a tunnel with poor lighting conditions such as shadows and phantoms and a large number of interference factors.
[0090] Embodiment 2
[0091] This embodiment is basically the same as the first embodiment, with the following special features:
[0092] In this embodiment, see Figure 1-Figure 5 , a method for tunnel disease image detection and positioning based on deep learning, specifically comprising the following steps:
[0093] Step 1) using an industrial camera to collect visible light video images inside the tunnel;
[0094] Step 2) extracting the video images collected in step 1) to obtain a sequence of video images; and preprocessing the obtained sequence of images;
[0095] Step 2.1) The video sequence images collected in step 1 are subjected to Gaussian filtering to remove high-frequency noise in the sequence images.
[0096] Step 2.2) Dedistorting and correcting the image obtained in step 2.1);
[0097] Step 2.3) performs uniform brightness processing on the image RGB obtained in step 2.2) to finally complete the brightness enhancement of the image.
[0098] Step 3) stitching the sequence images generated in step 2) to obtain a panoramic image of the tunnel image;
[0099] Step 3.1) Extract pixel columns of the sequence image; a rectangle with a height equal to the image height and a width of one pixel is called a pixel column; the model of the pixel column is P xc :
[0100] P ic =V(1,h)(i is the image sequence number, h=Im g.rows())
[0101] G P = {P i1 ,P i2 ,...,Pic ,...,P nc}(c≤Im g.cols(), i is the image sequence number, n is the total number of images)
[0102] Step 3.2) Use the pixel column set G in step 3.1) p Calculate the pixel column with the closest Euclidean distance to the pixel; the calculation model is:
[0103] D p =min(P ik1 ,P jk2 )(i≠j,k1≤c,k2≤c), select the two columns of pixels with the closest Euclidean distance for matching, where k1 and k2 are the pixel column numbers, c is the total number of pixel columns; i is the image sequence number, j represents the image sequence number, and j>i;
[0104] Step 3.3) According to the serial number P of the right pixel column of the two matching pixel columns jk2 , copy all the right pixel columns of the image where j is located to the right side of the matching pixel column j; at the same time, find the last pixel column k1 of the image j where k2 is located;
[0105] Step 3.4) Using k obtained in step 3.3), execute step 3.2) in this cycle to complete the panoramic image stitching of the video sequence images; the matching process is as follows:
[0106]
[0107] Step 4) creating a data set of a deep learning network for the video sequence images obtained in step 2);
[0108] Step 4.1) Perform data enhancement on the sequence images obtained in step 2) and expand the data set according to brightness 1, 1.1, 1.2, 1.3, 1.4, and 1.5;
[0109] Step 4.2) Create training set, test set, and validation set data sets for the data set obtained in step 4.1); the distribution of the data sets is 0.9:0.05:0.05;
[0110] Step 4.3) When making the data set, in order to detect compound diseases, for images with compound diseases, each disease must be labeled;
[0111] Step 5) cropping the panoramic image obtained in step 3) at a certain pixel interval to obtain a sequence of images of equal size;
[0112] Step 5.1) For the obtained panoramic sequence image Im g, calculate the height and width of the panoramic image
[0113] (Heigh,Width)=(Im g.rows(),Im g.cols());
[0114] Step 5.2) Divide the (Height, Width) obtained in step 5.1) into n equal parts;
[0115] (heigh,width)=(Heigh,Width / n).
[0116] Step 6) Construction and training of the deep learning network model Resfmnet;
[0117] Step 6.1), for the tunnel video sequence images with certain shadows and ghosts, construct the RFB-F (3) network block;
[0118] Step 6.2), in order to fully integrate the image features extracted by Resnet50, the PFnet(2) network block is constructed;
[0119] Step 6.3), construct a deep learning network model Resftnet, which consists of Resnet50 (1), PFnet (2), RFB-F (3), TRI-T (4), FPN (5), classification block (6) and regression block (7), and train the model.
[0120] Step 7) The panoramic sequence images obtained in step 5) are fed into a trained deep learning network model to identify tunnel defects;
[0121] Step 7.1), the cropped panoramic image sequence images are numbered starting from 0;
[0122] Step 7.2), the original collected video sequence images before splicing are used as the data set to start training the deep learning network model Resftnet;
[0123] Step 7.3), the Resftnet model trained in step 7.2) is used to detect the sequence images in step 7.1); and the category information and coordinate information of the disease are obtained.
[0124] Step 8) establishing a corresponding relationship between pixels and actual distances for the sequence images obtained in step 5);
[0125] Step 8.1), when shooting the video, place a label every lmm on the surface of the tunnel being filmed, and place 10 labels in total; the label sequence is L = {l1,l2,...,l k ,...,l 10}(where k is the label number, k≤10);
[0126] Step 8.2), in the cropped sequence image, find the pixel number sequence P between the marked points = {p1, p2, ..., p m ,...,p 10}(where m is the pixel column number, m≤10);
[0127] Step 8.3), calculate the actual distance D corresponding to each pixel according to step 8.1) and step 8.2) p ,
[0128] D pt =(l t+6 -l t+1 ) / (p t+6 -p t+1 )(0≤t<5), where t is the label number;
[0129]
[0130] Step 9) for the disease sequence detected in step 7), according to the relationship between each pixel and the actual distance in step 8), the distance of each disease from the starting point is calculated;
[0131] Step 9.1), the sequence images obtained in step 5) are named from left to right in increments of 0 to 1; the names of the sequence images are obtained: L name ={0,1,2,...,i,...n-1}, where n is the total number of images captured;
[0132] Step 9.2), after deep learning model detection, the coordinates of the disease in the current image are obtained as P . =(x1,y1,x2,y2), where (x1,y1) is the coordinate of the upper left corner of the image, and (x2,y2) is the coordinate of the lower right corner of the image;
[0133] Step 9.3), based on P. obtained in step 9.2), calculate the center coordinates of the current disease as: P c .=((x2-x1) / 2,(y2-y1) / 2);
[0134] Step 9.4), based on the relationship between each pixel and the actual distance in step 8), calculate the distance of each disease from the starting point:
[0135] S=L namei ×D p ×width+P c.x ×D p (P c.x =(x2-x1) / 2)
[0136] Where width is the width of the image, x1 is the horizontal coordinate of the upper left corner of the image, x2 is the horizontal coordinate of the lower right corner of the image, and D p The actual distance corresponding to each pixel, L namei is the image number where the current disease is located.
[0137] Step 10) importing the test result data of step 9) into a database management system;
[0138] Step 11) generating a test report based on the result of step 10);
[0139] Step 11.1) Create a web server;
[0140] Step 11.2) The client accesses the server according to the interface and generates a detection report.
[0141] The method for detecting and locating tunnel defects based on deep learning in this embodiment first uses an industrial camera to capture video images in the tunnel; secondly, the obtained video is cropped and preprocessed to obtain a corrected image with uniform brightness; thirdly, based on the corrected image, pixel columns of the image are extracted, and the best pixel columns are matched to obtain a panoramic view of the tunnel image; then, the panoramic view of the tunnel image is used for equal-interval cropping and the correspondence between the pixels of the tunnel image and the actual distance is calculated; the cropped tunnel image sequence is then sent to a deep learning model for defect detection, and finally, the defect detection result information is stored in a database management system; the method in this embodiment effectively solves the problem of being unable to provide GPS positioning in the tunnel, and accurately realizes the positioning of tunnel defects, making it convenient for users to quickly find the location of defects that need to be corrected in a long tunnel; and realizes the automation of defect detection in the tunnel.
[0142] In summary, the present invention uses image processing technologies such as deep learning and image stitching to design a set of methods from tunnel video image acquisition to tunnel disease detection and disease location, which effectively solves the detection problem of tunnel disease images with poor lighting conditions and shadows, and has the advantages of high flexibility and automation; it provides an effective solution for determining the location of diseases in tunnels.
[0143] The above describes the embodiments of the present invention in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Various changes can be made according to the purpose of the invention. Any changes, modifications, substitutions, combinations or simplifications made according to the spirit and principle of the technical solution of the present invention should be equivalent replacement methods. As long as they meet the purpose of the invention, they belong to the protection scope of the present invention.
Claims
1. A method for tunnel disease image detection and location based on deep learning, characterized in that: The steps include: Step 1), using an industrial camera to collect visible light video images inside the tunnel; Step 2), extracting the video images collected in step 1) to obtain a sequence of video images; and preprocessing the obtained sequence of images; Step 3), stitching the sequence images generated in step 2) to obtain a panoramic image of the tunnel; Step 4), creating a data set of a deep learning network model for the video sequence images obtained in step 2); Step 5), cropping the panoramic image obtained in step 3) at a certain pixel interval to obtain a sequence of images of equal size; Step 6), construction and training of the deep learning network model Resftnet; Step 7), the panoramic sequence images obtained in step 5) are sent to the trained deep learning network model Resftnet to identify tunnel defects; Step 8), for the sequence images obtained in step 5), a corresponding relationship between pixels and actual distances is established; Step 9), for the disease sequence detected in step 7), according to the relationship between each pixel and the actual distance in step 8), calculate the distance of each disease from the starting point; Step 10), importing the test result data of step 9) into a database management system; Step 11), generating a test report based on the result of step 10).
2. The method for tunnel disease image detection and positioning based on deep learning according to claim 1 is characterized in that: The step 2) extracts the collected visible light video images to obtain a sequence of video images, and preprocesses the obtained sequence of images; the specific steps are as follows: Step 2.1), performing Gaussian filtering on the video sequence images collected in step 1) to remove high-frequency noise in the sequence images; Step 2.2), dedistorting and correcting the image obtained in step 2.1); Step 2.3), uniform brightness processing is performed on the RGB image obtained in step 2.2), and finally the brightness enhancement of the image is completed.
3. The method for tunnel disease image detection and positioning based on deep learning according to claim 1, characterized in that: The step 3) stitches the sequence images generated in step 2) to obtain a panoramic image of the tunnel image, and its main implementation steps are: Step 3.1), extract the pixel columns of the sequence image; a rectangle with a height equal to the image height and a width of one pixel is called a pixel column; the model of the pixel column is P ic and pixel column set G p : P ic =V(1,h)(i is the image sequence number, h=Img.rows()) G P = {P i1 ,P i2 ,...,P ic ,...,P nc }, (c≤Img.cols()), n is the total number of images; Step 3.2), using the pixel column set G in step 3.1) p Calculate the pixel column with the closest Euclidean distance to the pixel; The calculation model is: D p =min(Pik1,P jk2 )(i≠j,k1≤c,k2≤c) Where k1 and k2 are pixel column numbers, c is the total number of pixel columns, i is the image sequence number, j is the image sequence number, and j>i; Select two columns of pixels with the closest Euclidean distance in the pixel column set for matching; Step 3.3), according to the serial number P of the right pixel column of the two matching pixel columns jk2 , copy all the right pixel columns of the image where j is located to the right side of the matching pixel column j; at the same time, find the last pixel column k1 of the image j where k2 is located; Step 3.4), using j obtained in step 3.3), execute step 3.2) in this cycle to complete the panoramic image stitching of the video sequence images; the matching process is as follows: 。 4. The method for tunnel disease image detection and positioning based on deep learning according to claim 1, characterized in that: The step 4) produces a data set of a deep learning network for the video sequence images obtained in step 2); The main implementation steps are: Step 4.1), perform data enhancement on the sequence images obtained in step 2), and expand the data set according to brightness 1, 1.1, 1.2, 1.3, 1.4, 1.5; Step 4.2), create training set, test set, and validation set data sets for the data set obtained in step 4.1); the distribution of the data sets is 0.9:0.05:0.05; Step 4.3), when making the data set, in order to detect complex diseases, for images with complex diseases, each disease must be labeled.
5. The method for tunnel disease image detection and positioning based on deep learning according to claim 1, characterized in that: The step 5) cuts the panoramic image obtained in step 3) at a certain pixel interval to obtain a sequence of images of equal size; The main implementation steps are: Step 5.1), for the obtained panoramic sequence image Img, calculate the height and width of the panoramic image: (Heigh,Width)=(Img.rows(),Img.cols()) Step 5.2), divide the (Height, Width) obtained in step 5.1) into n equal parts: (heigh,width)=(Heigh,Width / n).
6. The method for tunnel disease image detection and positioning based on deep learning according to claim 1, characterized in that: The step 6) constructing and training the deep learning network model Resftnet; The main implementation steps are: Step 6.1), for the tunnel video sequence images with certain shadows and ghosts, construct the RFB-F (3) network block; Step 6.2), in order to fully integrate the image features extracted by Resnet50, the PFnet(2) network block is constructed; Step 6.3), construct a deep learning network model Resftnet, which consists of Resnet50 (1), PFnet (2), RFB-F (3), TRI-T (4), FPN (5), classification block (6) and regression block (7), and train the model.
7. The method for tunnel disease image detection and positioning based on deep learning according to claim 1, characterized in that: In the step 7), the panoramic sequence images obtained in the step 5) are fed into a trained deep learning network model to identify tunnel defects; The main implementation steps are: Step 7.1), the cropped panoramic image sequence images are numbered starting from 0; Step 7.2), the original collected video sequence images before splicing are used as the data set to start training the deep learning network model Resftnet; Step 7.3), the Resftnet model trained in step 7.2) is used to detect the sequence images in step 7.1); and the category information and coordinate information of the disease are obtained.
8. The method for tunnel disease image detection and positioning based on deep learning according to claim 1, characterized in that: The step 8) establishes a corresponding relationship between pixels and actual distances for the sequence images obtained in step 5); The main implementation steps are: Step 8.1), when shooting the video, place a label every lmm on the surface of the tunnel being filmed, and place 10 labels in total; the label sequence is L = {l1,l2,...,l k ,...,l 10 }(where k is the label number, k≤10); Step 8.2), in the cropped sequence image, find the pixel number sequence P between the marked points = {p1, p2, ..., p m ,...,p 10 }(where m is the pixel column number, m≤10); Step 8.3), calculate the actual distance D corresponding to each pixel according to step 8.1) and step 8.2) p , D pt =(l t+6 -l t+1 ) / (p t+6 -p t+1 )(0≤t<5), where t is the label number; 9. The method for tunnel disease image detection and positioning based on deep learning according to claim 1, characterized in that: The step 9) calculates the distance of each disease from the starting point based on the relationship between each pixel and the actual distance in step 8) for the disease sequence detected in step 7); The main implementation steps are: Step 9.1), the sequence images obtained in step 5) are named from left to right in increments of 0 to 1; the names of the sequence images are obtained: L name ={0,1,2,...,i,...n-1}, where n is the total number of images captured; Step 9.2), after the deep learning model is used to detect, the coordinates of the defect in the current image are obtained as P. = (x1, y1, x2, y2), where (x1, y1) is the coordinate of the upper left corner of the image, and (x2, y2) is the coordinate of the lower right corner of the image; Step 9.3), based on P. obtained in step 9.2), calculate the center coordinates of the current disease as: P c .=((x2-x1) / 2,(y2-y1) / 2); Step 9.4), based on the relationship between each pixel and the actual distance in step 8), calculate the distance of each disease from the starting point: S=L namei ×D p ×width+P c.x ×D p (P c.x =(x2-x1) / 2) Where width is the width of the image, x1 is the horizontal coordinate of the upper left corner of the image, x2 is the horizontal coordinate of the lower right corner of the image, and D p The actual distance corresponding to each pixel, L namei is the image number where the current disease is located.
