Tunnel face recognition method, device, equipment, medium and program product
By extracting and filtering features in the inclination recognition model inside the tunnel, and using convolution operations and the Soft-NMS filtering algorithm, the problem of low recognition accuracy under the influence of the tunnel environment is solved, and efficient tunnel face recognition is achieved.
Patent Information
- Application Number
- CN202410964929.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-07-18
AI Technical Summary
In the harsh environment inside the tunnel, the images of the tunnel face are easily affected by dust and dim lighting, resulting in low recognition accuracy.
A tilt angle recognition model is used to extract and filter features from the face of the tunnel. Through the feature extraction module, target detection module, and filtering module, convolution operation and Soft-NMS filtering algorithm are used to filter based on the coordinate information and probability of the predicted bounding box, remove interference factors, and improve the recognition accuracy.
It effectively removes interference factors in the face image, avoids false detections and duplicate detections, and improves the recognition accuracy.
Smart Images

Figure CN118982643B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of tunnel face recognition technology, and more particularly to tunnel face recognition methods, devices, equipment, media, and program products. Background Technology
[0002] Currently, when identifying the type of inclination angle of the main structural surface of the tunnel face, the existing target detection model is mainly used to identify the tunnel face image in order to determine the type of inclination angle of the main structural surface of the tunnel face based on the tunnel face image.
[0003] However, when using the target detection model to identify tunnel face images, the poor environment inside the tunnel makes it easy for the images to be affected by dust and dim lighting, resulting in many interfering factors in the images and thus a low recognition accuracy. Summary of the Invention
[0004] The main objective of this application is to provide a method, apparatus, device, medium, and program product for identifying tunnel face, aiming to solve the technical problem of low recognition accuracy caused by numerous interference factors in tunnel face images.
[0005] To achieve the above objectives, this application proposes a method for identifying tunnel face, comprising:
[0006] Obtain an image of the tunnel face; wherein the image of the tunnel face includes a mapped region corresponding to the structural surfaces of the tunnel face, which include cracks, joints and bedding planes;
[0007] The face image is input into the tilt angle recognition model to obtain the detection results output by the model. The detection results include the recognition regions of multiple face structure surfaces, represented by target predicted bounding boxes. The tilt angle recognition model includes a feature extraction module, a target detection module, and a filtering module. The feature extraction module extracts features from each face image to obtain image features. The target detection module, based on the image features, predicts multiple predicted regions containing face structure surfaces in the face image through convolution operations, along with the coordinate information of each predicted region in the face image and the probability of the presence of face structure surfaces in each predicted region. The predicted regions are represented by predicted bounding boxes. The filtering module filters the multiple predicted bounding boxes based on their coordinate information and probabilities to obtain the target predicted bounding boxes.
[0008] Based on the test results, the dip angle type of the tunnel face structure is determined; the dip angle type is near-horizontal rock dip angle, gently dipping rock dip angle, steep rock dip angle, or vertical rock dip angle.
[0009] In one embodiment, based on the coordinate information of each predicted bounding box and the probability, multiple predicted bounding boxes are filtered to obtain a target predicted bounding box, including:
[0010] For each predicted bounding box, the length, width, and the ratio between the length and width of the predicted bounding box are determined based on the coordinate information of the predicted bounding box.
[0011] The predicted bounding box with a ratio greater than a preset ratio is used as the first predicted bounding box;
[0012] Based on probability, the target predicted bounding box is determined from multiple first predicted bounding boxes.
[0013] In one embodiment, determining the target predicted bounding box from a plurality of first predicted bounding boxes based on probability includes:
[0014] A second predicted bounding box is determined from multiple first predicted bounding boxes; wherein the second predicted bounding box is the first predicted bounding box with the highest probability among the multiple first predicted bounding boxes;
[0015] For each first predicted bounding box, the first coordinate information of the center point of the first predicted bounding box is determined based on the coordinate information of the first predicted bounding box.
[0016] Based on the coordinate information of the second predicted bounding box, determine the second coordinate information of the center point of the second predicted bounding box;
[0017] Based on the first coordinate information and the second coordinate information, the center distance between the center point of each first predicted bounding box and the center point of each second predicted bounding box is determined.
[0018] The second predicted bounding box and the first predicted bounding box whose center distance is greater than a preset distance are used as the target predicted bounding box.
[0019] In one embodiment, the feature extraction module includes a square convolution kernel, a horizontal convolution kernel, a vertical convolution kernel, and an identity mapping layer.
[0020] In one embodiment, the square convolution kernel is 3×3 in size, the horizontal convolution kernel is 1×9 in size, and the vertical convolution kernel is 9×1 in size.
[0021] In one embodiment, the tilt angle recognition model is the SP-YOLOv8 model.
[0022] Furthermore, to achieve the above objectives, this application also proposes a tunnel face identification device, which includes:
[0023] The acquisition module is used to acquire the tunnel face image; wherein the tunnel face image includes a mapping region corresponding to the tunnel face structural surface, which includes cracks, joints and bedding planes;
[0024] The input module is used to input the face image into the tilt angle recognition model and obtain the detection results output by the tilt angle recognition model. The detection results include the recognition regions of multiple face structure surfaces, represented by target predicted bounding boxes. The tilt angle recognition model includes a feature extraction module, a target detection module, and a filtering module. The feature extraction module extracts features from each face image to obtain image features. The target detection module, based on the image features, predicts multiple predicted regions containing face structure surfaces in the face image through convolution operations, along with the coordinate information of each predicted region in the face image and the probability of containing face structure surfaces in each predicted region. The predicted regions are represented by predicted bounding boxes. The filtering module filters the multiple predicted bounding boxes based on their coordinate information and probabilities to obtain the target predicted bounding boxes.
[0025] The determination module is used to determine the dip angle type of the tunnel face structure based on the detection results; the dip angle type is near-horizontal rock dip angle, gently dipping rock dip angle, steep rock dip angle, or vertical rock dip angle.
[0026] In addition, to achieve the above objectives, this application also proposes a tunnel face identification device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the tunnel face identification method described above.
[0027] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the tunnel face recognition method described above.
[0028] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the tunnel face recognition method described above.
[0029] One or more technical solutions proposed in this application have at least the following technical effects:
[0030] Compared to related technologies that use target detection models to determine multiple predicted bounding boxes containing facet structures from a facet image and then directly output all predicted bounding boxes as detection results, the tilt angle recognition model in this application, during the facet image recognition process, determines multiple predicted bounding boxes containing facet structures from the facet image based on image features, and then filters these multiple predicted bounding boxes based on the coordinate information of each predicted bounding box and the probability of the presence of a facet structure to obtain the target predicted bounding box. This target predicted bounding box is then used as the detection result. In other words, this application, after obtaining the predicted bounding boxes containing multiple facet structures, further filters these predicted bounding boxes, which can remove interference factors in the facet image, thereby avoiding false detections and duplicate detections, and improving recognition accuracy. Attached Figure Description
[0031] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0032] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.
[0033] Figure 1 This is a flowchart illustrating an embodiment of the tunnel face identification method of this application.
[0034] Figure 2 This is a schematic diagram of the YOLOv8 confusion matrix of this application;
[0035] Figure 3 This is a schematic diagram of the confusion matrix of this application;
[0036] Figure 4 This is a schematic diagram illustrating the principle of the SP-DWConv2D convolutional layer in this application;
[0037] Figure 5 This is a schematic diagram illustrating how the SP-C2f module network replaces the C2f module of YOLOv8 in this application.
[0038] Figure 6 This is a schematic diagram illustrating the false inspection phenomenon in this application;
[0039] Figure 7 This is a schematic diagram illustrating the simultaneous occurrence of false detection and re-detection in this application;
[0040] Figure 8 This is a schematic diagram of the module structure of the tunnel face identification device according to an embodiment of this application;
[0041] Figure 9 This is a schematic diagram of the equipment structure of the hardware operating environment involved in the tunnel face recognition method in this application embodiment.
[0042] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0043] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0044] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0045] The main solution of this application embodiment is to acquire a tunnel face image; wherein, the tunnel face image includes a mapping region corresponding to the tunnel face structural surface, the tunnel face structural surface including cracks, joints, and bedding planes; the tunnel face image is input into a tilt angle recognition model to obtain the detection result output by the tilt angle recognition model; wherein, the detection result includes the recognition regions of multiple tunnel face structural surfaces, the recognition regions are represented by target prediction bounding boxes; the tilt angle recognition model includes a feature extraction module, a target detection module, and a filtering module, the feature extraction module is used to extract features from each tunnel face image to obtain image features; The target detection module is used to predict multiple regions containing facet structures in the facet image based on image features and through convolution operations, along with the coordinate information of each predicted region in the facet image and the probability of the presence of facet structures in each predicted region. The predicted regions are represented by predicted bounding boxes. The filtering module is used to filter multiple predicted bounding boxes based on the coordinate information and probability of each predicted bounding box to obtain the target predicted bounding box. Based on the detection results, the dip angle type of the facet structure is determined. The dip angle type is either near-horizontal rock dip angle, gently dipping rock dip angle, steep rock dip angle, or vertical rock dip angle.
[0046] Currently, when identifying the type of inclination angle of the main structural surface of the tunnel face, the existing target detection model is mainly used to identify the tunnel face image in order to determine the type of inclination angle of the main structural surface of the tunnel face based on the tunnel face image.
[0047] However, when using the target detection model to identify tunnel face images, the poor environment inside the tunnel makes it easy for the images to be affected by dust and dim lighting, resulting in many interfering factors in the images and thus a low recognition accuracy.
[0048] This application provides a solution that, compared to related technologies that use a target detection model to determine multiple predicted bounding boxes containing facet structures from a facet image and then directly output all predicted bounding boxes as detection results, the tilt angle recognition model in this application, during the facet image recognition process, determines multiple predicted bounding boxes containing facet structures from the facet image based on image features, and then filters these multiple predicted bounding boxes based on the coordinate information of each predicted bounding box and the probability of the presence of a facet structure to obtain the target predicted bounding box. This target predicted bounding box is then used as the detection result. In other words, this application, after obtaining the predicted bounding boxes containing multiple facet structures, further filters these predicted bounding boxes, which can remove interference factors in the facet image, thereby avoiding false detections and duplicate detections, and improving recognition accuracy.
[0049] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or tunnel face recognition device capable of performing the above functions. The following description uses a tunnel face recognition device as an example to illustrate this embodiment and the subsequent embodiments.
[0050] Based on this, the embodiments of this application provide a method for identifying tunnel face, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the tunnel face identification method of this application.
[0051] In this embodiment, the tunnel face identification method includes steps S10 to S30:
[0052] Step S10: Obtain the face image.
[0053] The tunnel face image includes a mapping region corresponding to the tunnel face structure, which includes cracks, joints, and bedding planes.
[0054] Specifically, users can acquire images of the tunnel face using an image acquisition device, and then transmit the images to the tunnel face recognition device by interacting with the virtual keyboard and / or buttons of the tunnel face recognition device.
[0055] Step S20: Input the face image into the tilt angle recognition model to obtain the detection result output by the tilt angle recognition model.
[0056] The detection results include the identification regions of multiple facet structures, which are represented by target predicted bounding boxes. The tilt angle recognition model includes a feature extraction module, a target detection module, and a filtering module. The feature extraction module is used to extract features from each facet image to obtain image features. The target detection module is used to predict multiple predicted regions of facet structures in the facet image, the coordinate information of each predicted region in the facet image, and the probability of the presence of facet structures in each predicted region, based on the image features and through convolution operations. The predicted regions are represented by predicted bounding boxes. The filtering module is used to filter multiple predicted bounding boxes based on the coordinate information and probability of each predicted bounding box to obtain the target predicted bounding box.
[0057] In this embodiment, the tilt angle identification model is an optimized version of the YOLOv8 model, namely the SP-YOLOv8 model (Structural PlaneYOLOv8 model, structural plane detection-YOLOv8 model).
[0058] Understandably, when using the YOLOv8 model to recognize tunnel face images, the YOLOv8 model experiences reduced accuracy and deteriorated performance. To determine the reasons for this, a confusion matrix for YOLOv8 can be constructed and analyzed to identify the underlying causes of these issues. (See the attached document for details.) Figure 2 As shown, Figure 2 This is the YOLOv8 confusion matrix in this embodiment. The confusion matrix is an evaluation metric for measuring model accuracy. It consists of four primary metrics: TP (True Positive), FN (False Negative), FP (False Positive), and TN (True Negative). Representing these four metrics together in a matrix constitutes the confusion matrix. The principle is as follows... Figure 3 As shown.
[0059] Reference Figure 2Based on the confusion matrix classification accuracy, the YOLOv8 model exhibited false positives in two categories when determining the inclination type of the tunnel face structure. The "background" row shows false negatives in four categories, indicating low accuracy in feature extraction, meaning the backbone network is experiencing feature loss in the tunnel face structure inclination type identification dataset. The "background" column shows false positives in every category, indicating the model is misclassifying non-tunnel face structures as primary structures, meaning the head structure performs poorly in this dataset. Therefore, the backbone and head structures of the YOLOv8 model need optimization for the primary structure inclination type classification dataset.
[0060] In this embodiment, the Backbone network of the YOLOv8 model primarily functions to extract image features from the face of the tunnel, which is the feature extraction module in the YOLOv8 model. However, when the Backbone network extracts image features from the face of the tunnel, image feature information is lost. Further analysis of the Backbone network reveals that the core of the Backbone network is the C2f module, which is used to convert the output of the convolutional layers into the input of the fully connected layers. This module is the key to causing missed detections and false detections. The Bottleneck structure within the C2f module can improve performance. Therefore, adjusting the number and size of the convolutional kernels in the Bottleneck structure can improve the accuracy of the feature extraction module in recognizing the face structure.
[0061] Specifically, asymmetric convolutional blocks can be added to the feature extraction module to improve its accuracy and performance. These asymmetric convolutional blocks include square kernels, horizontal kernels, and vertical kernels. While using asymmetric convolutional blocks to improve the accuracy and performance of the feature extraction module, it is also necessary to consider the potential loss of image features due to the increased number of kernels. To avoid this, an identity mapping layer can be added in parallel on the asymmetric convolutional blocks to form a structural plane-DWConv2D (SP-DWConv2D) convolutional layer optimized for the facet structure recognition dataset. (Refer to...) Figure 4 As shown, Figure 4 This is a schematic diagram of the SP-DWConv2D convolutional layer. Specifically, the feature extraction module includes square convolutional kernels, horizontal convolutional kernels, vertical convolutional kernels, and an identity mapping layer.
[0062] Reference Figure 4The SP-DWConv2D convolutional layer consists of a Split layer at the input front, three depthwise convolutional kernels, an identity layer, and a concat layer at the back for feature fusion. The three convolutional kernels are 3×3, 1×9, and 9×1 in size, respectively. That is, the square convolutional kernel is 3×3, the horizontal convolutional kernel is 1×9, and the vertical convolutional kernel is 9×1. By incorporating the SP-DWConv2D convolutional layer into the Bottleneck structure and replacing it upwards, a new structural plane-C2f (SP-C2f) modular network structure is formed, as shown below. Figure 4 As shown. Replace the YOLOv8 C2f module with the SP-C2f module network, as follows. Figure 5 As shown, the SP-C2f module network is used as the feature extraction module in the SP-YOLOv8 model.
[0063] Furthermore, when identifying the recognition area of the tunnel face structure from the tunnel face image, in addition to relying on features such as shape and color, the tunnel face structure is also determined based on its location in the tunnel. However, in deep learning, the following situations can lead to false detections and duplicate detections when determining the tunnel face structure: (1) the shadows of prominent rocks and mechanical facilities in the image; (2) the initial support section of the tunnel; (3) scratches from machinery and rocks during the removal of loose rocks can easily be identified as tunnel face structure. (See reference...) Figure 6 and Figure 7 As shown in Figure 6, which illustrates the phenomenon of false detection, Figure 7 This is a diagram illustrating the simultaneous occurrence of false detections and duplicate detections.
[0064] To avoid false detections and duplicate detections, the YOLOv8 model's head structure can be optimized. A Soft-NMS filtering algorithm with added aspect ratio and distance constraints can be used to eliminate false master structure surfaces, thus reducing the false detection and duplicate detection rates. Specifically, after the target detection module uses image features and convolution operations to predict multiple predicted regions containing master structure surfaces in the facet image, along with the coordinates of each predicted region and the probability of each predicted region containing a master structure surface, a filtering module filters these predicted bounding boxes based on their coordinates and probabilities to obtain the target predicted bounding boxes.
[0065] In the process of filtering multiple predicted bounding boxes, the width and length of the predicted bounding boxes, as well as the distance between the center points of any two predicted bounding boxes, can be used to filter them. Therefore, further, as an optional implementation, step S20 specifically includes:
[0066] Step S201: For each predicted bounding box, determine the length, width, and the ratio between the length and width of the predicted bounding box based on the coordinate information of the predicted bounding box.
[0067] Step S202: The predicted bounding box with a ratio greater than a preset ratio is used as the first predicted bounding box.
[0068] Step S203: Based on probability, determine the target predicted bounding box from multiple first predicted bounding boxes.
[0069] In this embodiment, the coordinate information of the predicted bounding box can be the vertex coordinate information of the predicted bounding box, such as the vertex coordinate information of the upper left corner and the vertex coordinate information of the lower right corner of the predicted bounding box.
[0070] After obtaining the coordinate information of each predicted bounding box, the length and width of each bounding box can be calculated based on its coordinates. Furthermore, the ratio between the length and width is calculated. Finally, predicted bounding boxes with a ratio less than a preset ratio are removed, resulting in the first predicted bounding box. For example, if the coordinates of the top-left vertex of a predicted bounding box are (x1, y1) and the coordinates of the bottom-right vertex are (x2, y2), the length of the predicted bounding box is x2-x1, and the width is y1-y2. The ratio l of the predicted bounding box's length to its width is then calculated as l = (x2-x1) / y1-y2. When l ≤ L, the predicted bounding box corresponding to l is removed. Here, L represents the preset ratio.
[0071] After determining multiple first predicted bounding boxes from multiple predicted bounding boxes, to further reduce false detections and duplicate detections, as an optional implementation, step S203 specifically includes:
[0072] Step S2031: Determine the second predicted bounding box from the plurality of first predicted bounding boxes.
[0073] Among them, the second predicted bounding box is the first predicted bounding box with the highest probability among multiple first predicted bounding boxes.
[0074] Step S2032: For each first predicted bounding box, determine the first coordinate information of the center point of the first predicted bounding box based on the coordinate information of the first predicted bounding box.
[0075] Step S2033: Based on the coordinate information of the second predicted bounding box, determine the second coordinate information of the center point of the second predicted bounding box.
[0076] Step S2034: Based on the first coordinate information and the second coordinate information, determine the center distance between the center point of each first predicted bounding box and the center point of each second predicted bounding box.
[0077] Step S2035: The second predicted bounding box and the first predicted bounding box whose center distance is greater than a preset distance are taken as the target predicted bounding box.
[0078] Specifically, based on the probability of each first predicted bounding box, all first predicted bounding boxes are sorted in descending order, and the first predicted bounding box ranked first is taken as the second predicted bounding box. After obtaining the second predicted bounding box, the second coordinate information of the center point of the second predicted bounding box can be calculated based on its coordinate information, and the first coordinate information of the center point of each first predicted bounding box can be calculated based on its coordinate information. After obtaining the first coordinate information of each first predicted bounding box, the first and second coordinate information are calculated to determine the center distance between the center point of each first predicted bounding box and the center point of the second predicted bounding box. The second predicted bounding box and the first predicted bounding box whose center distance is greater than a preset distance are taken as the target predicted bounding box.
[0079] For example, if the coordinates of the top-left vertex of the first predicted bounding box are (x11, y11) and the coordinates of the bottom-right vertex are (x12, y12), the first coordinates of the center point of the first predicted bounding box (x11, y11) can be calculated. o1 ,y o1 ),Right now The coordinates of the top-left vertex of the second predicted bounding box are (x21, y21), and the coordinates of the bottom-right vertex are (x22, y22). The second coordinates of the center point of the second predicted bounding box (x21, y21) can be calculated. o2 ,y o2 ),Right now After determining the first and second coordinate information, the center distance r can be calculated. When r is less than R, the first predicted bounding box corresponding to r is removed to obtain the target predicted bounding box. R is a preset distance.
[0080] In this embodiment, after the target detection module uses image features to predict multiple predicted regions containing facet structures in the facet image through convolution operations, along with the coordinate information of each predicted region in the facet image and the probability of each predicted region containing a facet structure, a filtering module filters these predicted bounding boxes based on their coordinate information and probabilities to obtain the target predicted bounding boxes. That is, the Soft-NMS filtering algorithm, with added aspect ratio and distance constraints, eliminates false main structural surfaces through aspect ratio and distance constraints, thereby reducing the model's false detection rate and re-detection rate.
[0081] Step S30: Based on the detection results, determine the inclination type of the tunnel face structure.
[0082] Among them, the dip angle types are near-horizontal rock dip angle, gently dipping rock dip angle, steep rock dip angle, or vertical rock dip angle.
[0083] In this embodiment, the dip angle of near-horizontal rock is 0° to 5°; the dip angle of gently dipping rock is 5° to 30°; the dip angle of inclined rock is 30° to 70°; the dip angle of steep rock is 70° to 85°; and the dip angle of vertical rock is 85° to 90°.
[0084] Specifically, after obtaining the detection results, visual analysis can be performed on the face structure in the identified area to extract information such as cracks, joints, and layers within the face. Combined with texture and crack features, the dip type of the face can be inferred. For example, a relatively uniform texture without obvious cracks indicates a near-horizontal structure, i.e., a near-horizontal rock dip. Cracks or textures extending vertically may exhibit vertical arrangement or fractures, i.e., a vertical rock dip.
[0085] In this embodiment, compared to related technologies where a target detection model determines multiple predicted bounding boxes of existing facet structures from a facet image and then directly outputs all predicted bounding boxes as detection results, the tilt angle recognition model of this application, during the facet image recognition process, determines multiple predicted bounding boxes of existing facet structures from the facet image based on image features, and then filters these multiple predicted bounding boxes based on the coordinate information of each predicted bounding box and the probability of the existence of a facet structure to obtain the target predicted bounding box. The target predicted bounding box is then used as the detection result. That is, after obtaining the predicted bounding boxes of multiple facet structures, this application filters these predicted bounding boxes, which can remove interference factors in the facet image, thereby avoiding false detections and duplicate detections, and improving recognition accuracy.
[0086] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the tunnel face identification method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0087] This application also provides a tunnel face identification device, please refer to... Figure 8 The tunnel face identification device includes:
[0088] The acquisition module is used to acquire the tunnel face image; wherein the tunnel face image includes a mapping region corresponding to the tunnel face structural surface, which includes cracks, joints and bedding planes;
[0089] The input module is used to input the face image into the tilt angle recognition model and obtain the detection results output by the tilt angle recognition model. The detection results include the recognition regions of multiple face structure surfaces, represented by target predicted bounding boxes. The tilt angle recognition model includes a feature extraction module, a target detection module, and a filtering module. The feature extraction module extracts features from each face image to obtain image features. The target detection module, based on the image features, predicts multiple predicted regions containing face structure surfaces in the face image through convolution operations, along with the coordinate information of each predicted region in the face image and the probability of containing face structure surfaces in each predicted region. The predicted regions are represented by predicted bounding boxes. The filtering module filters the multiple predicted bounding boxes based on their coordinate information and probabilities to obtain the target predicted bounding boxes.
[0090] The determination module is used to determine the dip angle type of the tunnel face structure based on the detection results; the dip angle type is near-horizontal rock dip angle, gently dipping rock dip angle, steep rock dip angle, or vertical rock dip angle.
[0091] The tunnel face recognition device provided in this application, employing the tunnel face recognition method described in the above embodiments, can solve the technical problem of low recognition accuracy caused by numerous interference factors in the tunnel face image. Compared with related technologies, the beneficial effects of the tunnel face recognition device provided in this application are the same as those of the tunnel face recognition method provided in the above embodiments, and other technical features in the tunnel face recognition device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0092] This application provides a tunnel face identification device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the tunnel face identification method in Embodiment 1 above.
[0093] The following is for reference. Figure 9 The diagram illustrates a structural schematic suitable for implementing the tunnel face identification device of the embodiments of this application. The tunnel face identification device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), vehicle terminals (e.g., vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 9The tunnel face identification device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0094] like Figure 9 As shown, the tunnel face identification device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the tunnel face identification device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the tunnel face identification device to communicate wirelessly or wiredly with other devices to exchange data. Although tunnel face identification devices with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems can be implemented alternatively.
[0095] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0096] The tunnel face recognition device provided in this application, employing the tunnel face recognition method described in the above embodiments, can solve the technical problem of low recognition accuracy caused by numerous interference factors in the tunnel face image. Compared with related technologies, the beneficial effects of the tunnel face recognition device provided in this application are the same as those of the tunnel face recognition method provided in the above embodiments, and other technical features of this tunnel face recognition device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0097] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0098] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0099] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the tunnel face recognition method in the above embodiments.
[0100] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0101] The aforementioned computer-readable storage medium may be included in the tunnel face identification device; or it may exist independently and not assembled into the tunnel face identification device.
[0102] The aforementioned computer-readable storage medium carries one or more programs that, when executed by the tunnel face recognition device, cause the tunnel face recognition device to: acquire a tunnel face image; wherein the tunnel face image includes a mapping region corresponding to a tunnel face structural surface, the tunnel face structural surface including cracks, joints, and bedding planes; input the tunnel face image into a tilt angle recognition model to obtain a detection result output by the tilt angle recognition model; wherein the detection result includes recognition regions of multiple tunnel face structural surfaces, the recognition regions being represented by target prediction bounding boxes; the tilt angle recognition model includes a feature extraction module, a target detection module, and a filtering module, the feature extraction module... The system is used to extract features from each face image to obtain image features; the target detection module is used to predict multiple predicted regions of face structure in the face image, the coordinate information of each predicted region in the face image, and the probability of face structure in each predicted region, based on the image features and through convolution operations. The predicted regions are represented by predicted bounding boxes; the filtering module is used to filter multiple predicted bounding boxes based on the coordinate information and probability of each predicted bounding box to obtain the target predicted bounding box; based on the detection results, the dip angle type of the face structure is determined; the dip angle type is near-horizontal rock dip angle, gently dipping rock dip angle, steep rock dip angle, or vertical rock dip angle.
[0103] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof. These programming languages include object-oriented programming languages—such as Java, Smalltalk, and C++—and conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user information computer, partially on the user information computer, as a standalone software package, partially on the user information computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user information computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0104] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0105] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0106] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described tunnel face recognition method, which can solve the technical problem of low recognition accuracy caused by numerous interference factors in the tunnel face image. Compared with related technologies, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the tunnel face recognition method provided in the above embodiments, and will not be repeated here.
[0107] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the tunnel face recognition method described above.
[0108] The computer program product provided in this application can solve the technical problem of low recognition accuracy caused by numerous interference factors in tunnel face images. Compared with related technologies, the beneficial effects of the computer program product provided in this application are the same as those of the tunnel face recognition method provided in the above embodiments, and will not be repeated here.
[0109] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A method for identifying the tunnel face, characterized in that, The method includes: Obtain a face image; wherein the face image includes a mapping region corresponding to the face structure, the face structure including cracks, joints and bedding planes; The face image is input into the tilt angle recognition model to obtain the detection result output by the tilt angle recognition model. The detection result includes recognition regions of multiple face structure surfaces, each represented by a target predicted bounding box. The tilt angle recognition model includes a feature extraction module, a target detection module, and a filtering module. The feature extraction module extracts features from each face image to obtain image features. The target detection module, based on the image features, predicts multiple predicted regions of the face structure surface in the face image, the coordinate information of each predicted region in the face image, and the probability of the face structure surface existing in each predicted region through convolution operations. The predicted regions are represented by predicted bounding boxes. The filtering module filters the multiple predicted bounding boxes based on the coordinate information and the probability to obtain the target predicted bounding box. Based on the detection results, the dip angle type of the tunnel face structure is determined; the dip angle type is a near-horizontal rock dip angle, a gently dipping rock dip angle, a steep rock dip angle, or a vertical rock dip angle. The step of filtering multiple predicted bounding boxes based on the coordinate information and the probability of each predicted bounding box to obtain the target predicted bounding box includes: For each predicted bounding box, the length, width, and ratio of the length to the width of the predicted bounding box are determined based on the coordinate information of the predicted bounding box. The predicted bounding box whose ratio is greater than a preset ratio is used as the first predicted bounding box; Based on the probability, the target predicted bounding box is determined from a plurality of first predicted bounding boxes; The feature extraction module includes a square convolution kernel, a horizontal convolution kernel, a vertical convolution kernel, and an identity mapping layer; The tilt angle recognition model is the SP-YOLOv8 model.
2. The method as described in claim 1, characterized in that, Determining the target predicted bounding box from a plurality of first predicted bounding boxes based on the probability includes: A second predicted bounding box is determined from a plurality of first predicted bounding boxes; wherein the second predicted bounding box is the first predicted bounding box with the highest probability among the plurality of first predicted bounding boxes; For each of the first predicted bounding boxes, the first coordinate information of the center point of the first predicted bounding box is determined based on the coordinate information of the first predicted bounding box. Based on the coordinate information of the second predicted bounding box, determine the second coordinate information of the center point of the second predicted bounding box; Based on each of the first coordinate information and the second coordinate information, the center distance between the center point of each of the first predicted bounding boxes and the center point of each of the second predicted bounding boxes is determined; The first predicted bounding box whose center distance from the second predicted bounding box is greater than a preset distance is taken as the target predicted bounding box.
3. The method as described in claim 1, characterized in that, The square convolution kernel has a size of 3×3, the horizontal convolution kernel has a size of 1×9, and the vertical convolution kernel has a size of 9×1.
4. A tunnel face identification device, characterized in that, The device includes: An acquisition module is used to acquire a face image; wherein the face image includes a mapping region corresponding to the face structure, and the face structure includes cracks, joints and bedding planes; An input module is used to input the face image into the tilt angle recognition model to obtain the detection result output by the tilt angle recognition model; wherein, the detection result includes recognition regions of multiple face structure surfaces, and the recognition regions are represented by target predicted bounding boxes; the tilt angle recognition model includes a feature extraction module, a target detection module, and a filtering module; the feature extraction module is used to extract features from each face image to obtain image features; the target detection module is used to predict multiple predicted regions of the face structure surfaces in the face image, the coordinate information of each predicted region in the face image, and the probability of the face structure surfaces in each predicted region, based on the image features, through convolution operations; the predicted regions are represented by predicted bounding boxes; the filtering module is used to filter the multiple predicted bounding boxes based on the coordinate information of each predicted bounding box and the probability to obtain target predicted bounding boxes; The determining module is used to determine the dip angle type of the tunnel face structure based on the detection results; the dip angle type is a near-horizontal rock dip angle, a gently dipping rock dip angle, a steep rock dip angle, or a vertical rock dip angle; The filtering module is further configured to, for each predicted bounding box, determine the length, width, and ratio between the length and width of the predicted bounding box based on the coordinate information of the predicted bounding box; designate the predicted bounding boxes whose ratio is greater than a preset ratio as first predicted bounding boxes; and determine the target predicted bounding box from multiple first predicted bounding boxes based on the probability. The feature extraction module includes a square convolution kernel, a horizontal convolution kernel, a vertical convolution kernel, and an identity mapping layer; The tilt angle recognition model is the SP-YOLOv8 model.
5. A tunnel face identification device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the tunnel face identification method as described in any one of claims 1 to 3.
6. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the tunnel face identification method as described in any one of claims 1 to 3.
7. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the tunnel face identification method as described in any one of claims 1 to 3.
