Method, device, equipment, medium and product for extracting information of a structure plane of a working face

By using adaptive convolution kernels and skeleton extraction algorithms to process tunnel face images, the problem of low accuracy in identifying structural surface information in the harsh environment of tunnels was solved, and higher recognition accuracy was achieved.

CN118982644BActive Publication Date: 2026-11-24CHINA RAILWAY 20TH BUREAU GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410964931.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2026-11-24
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

Images of the tunnel face taken in the harsh environment inside the tunnel are easily affected by dust and dim lighting, resulting in a low accuracy rate in identifying structural surface information.

Method used

An adaptive convolution kernel and skeleton extraction algorithm are used to extract and process features from the face image, including semantic segmentation and binarization. The skeleton extraction algorithm is used to extract the endpoint coordinates in the binarized image.

Benefits of technology

It improves the recognition accuracy of tunnel face structure information, reduces the misidentification of interference features, and enhances the accuracy of recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118982644B_ABST
    Figure CN118982644B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, device, medium, and product for extracting tunnel face structural surface information, relating to the field of tunnel face structural surface information extraction technology. The disclosed method includes acquiring a tunnel face image; wherein the tunnel face image includes a mapping region corresponding to the main structural surface of the tunnel face; inputting the tunnel face image into an information extraction model to obtain the main structural surface information of the tunnel face output by the information extraction model. This application can improve the recognition accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of tunnel face structural surface information extraction technology, and in particular to methods, apparatus, equipment, media and products for extracting tunnel face structural surface information. Background Technology

[0002] In current theories of surrounding rock classification for underground tunnels, the number of volumetric joints, the number of structural facets, and the average spacing of structural faces in the tunnel face structural information are important indicators for classifying the integrity of the tunnel rock mass. The basic classification of the surrounding rock is determined by the rock's hardness and the integrity of the rock mass. Therefore, tunnel face structural information is not only necessary for tunnel construction and advanced geological forecasting, but also a crucial factor to consider during the tunnel design and construction phases.

[0003] However, when extracting structural information from tunnel face images, the poor environment inside the tunnel makes it easy to be affected by dust and dim lighting when taking images, resulting in many interfering factors in the images and thus a low recognition accuracy. Summary of the Invention

[0004] The main purpose of this application is to provide a method, apparatus, equipment, medium and product for extracting structural surface information of the working face, which aims to solve the technical problem of low recognition accuracy caused by many interference factors in the working face image.

[0005] To achieve the above objectives, this application proposes a method for extracting structural surface information of the tunnel face, comprising:

[0006] Obtain the face image; wherein the face image includes the mapped region corresponding to the main structural surface of the face;

[0007] The face image is input into the information extraction model to obtain the main structural surface information of the face. The information extraction model includes a feature extraction module, an image feature processing module, and an information recognition module. The feature extraction module is used to extract features from the face image to obtain image features. The image feature processing module is used to perform semantic segmentation on the image features to obtain a mask image containing the mapped region, and then performs binarization processing on the mask image to obtain a binarized image. The information recognition module is used to extract the endpoint coordinates of the main structural surface of the face in the binarized image using a skeleton extraction algorithm to obtain the main structural surface information of the face.

[0008] In one embodiment, the feature extraction module includes an adaptive convolution kernel to extract features from the face image, obtaining image features including:

[0009] Feature extraction of the face image is performed using an adaptive convolution kernel to obtain image features.

[0010] In one embodiment, the endpoint coordinates of the main structural surface of the tunnel face are extracted from the binarized image using a skeleton extraction algorithm, and the information of the main structural surface of the tunnel face is obtained, including:

[0011] The outline of the main structural surface of the facet is obtained by processing the binarized image using a skeleton extraction algorithm.

[0012] Determine the first pixel coordinates of one endpoint of the contour line in the face image and the second pixel coordinates of the other endpoint in the face image;

[0013] Based on the first pixel coordinate information and the second pixel coordinate information, the endpoint coordinates of the main structural surface of the tunnel face are determined.

[0014] In one embodiment, determining the endpoint coordinates of the main structural surface of the tunnel face based on the first pixel coordinate information and the second pixel coordinate information includes:

[0015] Determine the coordinates of the third pixel of one vertex of the masked region in the face image, and the coordinates of the fourth pixel of the other vertex of the masked region in the face image.

[0016] The sum of the pixel ordinate value in the first pixel coordinate information and the pixel ordinate value in the third pixel coordinate information is used as the first pixel ordinate value;

[0017] Use the x-coordinate value of the pixel in the first pixel coordinate information as the x-coordinate value of the first pixel;

[0018] The first target coordinate information of one end point of the main structural surface of the tunnel face is determined based on the first pixel ordinate value and the first pixel abscissa value;

[0019] The sum of the pixel ordinate value in the second pixel coordinate information and the pixel ordinate value in the fourth pixel coordinate information is used as the second pixel ordinate value;

[0020] Use the pixel x-coordinate value in the second pixel coordinate information as the second pixel x-coordinate value;

[0021] The second target coordinate information of the other end point of the main structural surface of the tunnel face is determined based on the second pixel ordinate value and the second pixel abscissa value;

[0022] Use the coordinates of the first target and the coordinates of the second target as the endpoint coordinates.

[0023] In one embodiment, after using the first target coordinate information and the second target coordinate information as endpoint coordinates, the method further includes:

[0024] Determine the actual height of the working face and the total pixel height of the working face image;

[0025] The first actual height of one end point is obtained by using the actual height of the working face, the total height of pixels, and the ordinate value of the first pixel.

[0026] The second actual height of the other end point is obtained by using the actual height of the face, the total height of pixels, and the ordinate value of the second pixel.

[0027] In one embodiment, the information extraction model is the SPM-YOLOv8-seg model.

[0028] Furthermore, to achieve the above objectives, this application also proposes a device for extracting tunnel face structural surface information, which includes:

[0029] The acquisition module is used to acquire the face image; wherein the face image includes a mapping region corresponding to the main structural surface of the face.

[0030] The input module is used to input the face image into the information extraction model and obtain the main structural surface information of the face from the output of the information extraction model. The information extraction model includes a feature extraction module, an image feature processing module, and an information recognition module. The feature extraction module is used to extract features from the face image to obtain image features. The image feature processing module is used to perform semantic segmentation on the image features to obtain a mask image containing the mapped region, and to perform binarization on the mask image to obtain a binarized image. The information recognition module is used to extract the endpoint coordinates of the main structural surface of the face from the binarized image using a skeleton extraction algorithm to obtain the main structural surface information of the face.

[0031] In addition, to achieve the above objectives, this application also proposes a device for extracting tunnel face structure information. The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer program is configured to implement the steps of the tunnel face structure information extraction method described above.

[0032] 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 method for extracting the face structure information as described above.

[0033] 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 method for extracting the structural surface information of the facet as described above.

[0034] One or more technical solutions proposed in this application have at least the following technical effects:

[0035] In this application, after extracting image features, semantic segmentation is performed on the image features to obtain a mask image corresponding to the mapping region of the main structural surface of the tunnel face. The mask image is then binarized to obtain a binarized image. Finally, a skeleton extraction algorithm is used to extract the endpoint coordinates of the main structural surface of the tunnel face from the binarized image. In other words, this application, through semantic segmentation, can accurately identify the mapping region of the tunnel face structure from image features, thereby reducing interference features in the mask image containing the mapping region and avoiding the misidentification of interference features as the main structural surface of the tunnel face, thus improving the recognition accuracy. Attached Figure Description

[0036] 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.

[0037] 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, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0038] Figure 1 This is a flowchart illustrating an embodiment of the method for extracting structural surface information of the working face in this application.

[0039] Figure 2 This is a schematic diagram of the process for extracting image features using traditional convolutional kernels in this application;

[0040] Figure 3 This is a schematic diagram illustrating the process of extracting image features using adaptive convolution kernels in this application;

[0041] Figure 4 This is a schematic diagram illustrating the principle of the skeleton extraction algorithm in this application;

[0042] Figure 5 This is a schematic diagram of the module structure of the face structure information extraction device according to an embodiment of this application;

[0043] Figure 6 This is a schematic diagram of the hardware operating environment involved in the method for extracting surface information of the tunnel face in this embodiment of the application.

[0044] 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

[0045] 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.

[0046] 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.

[0047] The main solution of this application embodiment is: acquiring a face image; wherein the face image includes a mapping region corresponding to the main structural surface of the face; inputting the face image into an information extraction model to obtain the main structural surface information of the face output by the information extraction model; wherein the information extraction model includes a feature extraction module, an image feature processing module, and an information recognition module; the feature extraction module is used to extract features from the face image to obtain image features; the image feature processing module is used to perform semantic segmentation on the image features to obtain a mask image containing the mapping region, and to perform binarization processing on the mask image to obtain a binarized image; the information recognition module is used to extract the endpoint coordinates of the main structural surface of the face in the binarized image using a skeleton extraction algorithm to obtain the main structural surface information of the face.

[0048] In current theories of surrounding rock classification for underground tunnels, the number of volumetric joints, the number of structural facets, and the average spacing of structural faces in the tunnel face structural information are important indicators for classifying the integrity of the tunnel rock mass. The basic classification of the surrounding rock is determined by the rock's hardness and the integrity of the rock mass. Therefore, tunnel face structural information is not only necessary for tunnel construction and advanced geological forecasting, but also a crucial factor to consider during the tunnel design and construction phases.

[0049] However, when extracting structural information from tunnel face images, the poor environment inside the tunnel makes it easy to be affected by dust and dim lighting when taking images, resulting in many interfering factors in the images and thus a low recognition accuracy.

[0050] This application provides a solution that, after extracting image features, performs semantic segmentation on the image features to obtain a mask image corresponding to the mapping region of the main structural surface of the tunnel face. The mask image is then binarized to obtain a binarized image. Finally, a skeleton extraction algorithm is used to extract the endpoint coordinates of the main structural surface of the tunnel face from the binarized image. In other words, this application, through semantic segmentation, can accurately identify the mapping region of the tunnel face structure from image features, reducing interference features in the mask image containing the mapping region, thereby avoiding the misidentification of interference features as the main structural surface of the tunnel face, and thus improving the recognition accuracy.

[0051] 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 capable of performing the above functions, such as a face structure information extraction device. The following description uses a face structure information extraction device as an example to illustrate this embodiment and the subsequent embodiments.

[0052] Based on this, embodiments of this application provide a method for extracting structural surface information of the tunnel face, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the method for extracting structural surface information of the working face in this application.

[0053] In this embodiment, the method for extracting the structural surface information of the tunnel face includes steps S10 to S20:

[0054] Step S10: Obtain the face image.

[0055] The face image includes a mapped region corresponding to the main structural plane of the face.

[0056] 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.

[0057] Step S20: Input the face image into the information extraction model to obtain the main structural surface information of the face output by the information extraction model.

[0058] The information extraction model includes a feature extraction module, an image feature processing module, and an information recognition module. The feature extraction module is used to extract features from the face image to obtain image features. The image feature processing module is used to perform semantic segmentation on the image features to obtain a mask image containing the mapped region, and to perform binarization on the mask image to obtain a binarized image. The information recognition module is used to extract the endpoint coordinates of the main structural surface of the face in the binarized image using a skeleton extraction algorithm to obtain the main structural surface information of the face.

[0059] In this embodiment, the information extraction model is an optimized version of the YOLOv8-seg model, namely the SPM-YOLOv8-seg model (YOLOv8 segmentation model).

[0060] It should be noted that when inputting the face image into the YOLOv8-seg model and using its feature extraction module to extract image features, the traditional convolutional kernels in the YOLOv8-seg model, when performing feature extraction, refer to... Figure 2 As shown, traditional convolutional kernels can only extract features using a fixed-size, fixed-window sampling sliding window. Therefore, they extract interfering features, leading to a decrease in recognition accuracy during subsequent recognition due to excessive interference. To reduce interfering features in the image, the convolutional kernel in the feature extraction module can be replaced with AKconv (adaptive convolutional kernel). That is, during feature extraction, an adaptive convolutional kernel is used to extract features from the facet image to obtain the image features. (Refer to...) Figure 3 As shown, when extracting image features, the adaptive convolution kernel can automatically adjust its own shape and size to avoid extracting interfering features during the image feature extraction process.

[0061] In this embodiment, an adaptive convolution kernel is used to replace the traditional convolution kernel in the feature extraction module. The adaptive convolution kernel can change its size and shape, thereby avoiding the extraction of interfering features during feature extraction and thus improving the recognition accuracy.

[0062] After obtaining the binarized image, when extracting the endpoint coordinates of the main structural surface of the tunnel face from the binarized image using the skeleton extraction algorithm through the information recognition module, in order to reduce the image preprocessing steps and still be able to extract the endpoint coordinates of the main structural surface of the tunnel face even when the image quality is poor, further, as an optional implementation method, step S20 specifically includes:

[0063] Step S201: The binarized image is processed using a skeleton extraction algorithm to obtain the outline of the main structural surface of the facet.

[0064] Step S202: Determine the first pixel coordinate information of one end point of the contour line in the face image and the second pixel coordinate information of the other end point in the face image.

[0065] Step S203: Determine the endpoint coordinates of the main structural surface of the tunnel face based on the first pixel coordinate information and the second pixel coordinate information.

[0066] In this embodiment, the skeleton extraction algorithm can be the Zhang-Suen skeleton extraction algorithm, or other skeleton extraction algorithms, such as the Guo-Hall algorithm, the Thinning algorithm, etc. This embodiment does not limit the algorithm.

[0067] Specifically, refer to Figure 4 As shown, Figure 4The principle of skeleton extraction algorithms is to iterate multiple times over the region to be extracted, indenting from the edges towards the center to form traces. In other words, the skeleton extraction algorithm processes the binarized image to obtain the contour lines of the main structural surfaces of the tunnel face. After obtaining the contour lines, the positions of the endpoints on both sides of the contour lines can be determined. Using any vertex of the tunnel face image as the origin, an image coordinate system is constructed to determine the coordinates of one endpoint of the contour line relative to the origin, and the coordinates of the other endpoint of the contour line relative to the origin. This means determining the first pixel coordinate information of one endpoint of the contour line in the tunnel face image, and the second pixel coordinate information of the other endpoint in the tunnel face image.

[0068] After obtaining the first pixel coordinate information and the second pixel coordinate information, since the vertical coordinate pixel value in the first pixel coordinate information and the second pixel coordinate information is the height of the skeleton or central part of the main structural surface of the tunnel face, and in order to better cover the overall range of the main structural surface of the tunnel face, further, as an optional implementation method, step S203 specifically includes:

[0069] Step A10: Determine the coordinate information of the third pixel of one side vertex of the masked region in the face image, and the coordinate information of the fourth pixel of the other side vertex of the masked region in the face image.

[0070] Step A20: The sum of the pixel ordinate value in the first pixel coordinate information and the pixel ordinate value in the third pixel coordinate information is used as the first pixel ordinate value.

[0071] Step A30: Use the pixel x-coordinate value in the first pixel coordinate information as the first pixel x-coordinate value.

[0072] Step A40: Determine the first target coordinate information of one end point of the main structural surface of the tunnel face based on the first pixel ordinate value and the first pixel abscissa value.

[0073] Step A50: The sum of the pixel ordinate value in the second pixel coordinate information and the pixel ordinate value in the fourth pixel coordinate information is taken as the second pixel ordinate value.

[0074] Step A60: Use the pixel x-coordinate value in the second pixel coordinate information as the second pixel x-coordinate value.

[0075] Step A70: Determine the second target coordinate information of the other end point of the main structural surface of the tunnel face based on the second pixel ordinate value and the second pixel abscissa value.

[0076] Step A80: Use the coordinate information of the first target and the coordinate information of the second target as the endpoint coordinates.

[0077] In this embodiment, the direction of one vertex of the mask region is consistent with the direction of one endpoint of the contour line, and the direction of the other vertex of the mask region is consistent with the direction of the other endpoint of the contour line.

[0078] Specifically, after determining the masked region, the coordinates of one vertex of the masked region relative to the origin (i.e., the third pixel coordinates) and the coordinates of the other vertex of the masked region relative to the origin (i.e., the fourth pixel coordinates) can be determined by referring to the aforementioned image coordinate system. After determining the third and fourth pixel coordinates, the sum of the pixel ordinate values ​​in the first and third pixel coordinate information can be used as the first pixel ordinate value, and the pixel abscissa value in the first pixel coordinate information can be used as the first pixel abscissa value. Finally, the first pixel ordinate value and the first pixel abscissa value are used to determine the first target coordinate information of one endpoint of the main structural surface of the tunnel face. Correspondingly, the sum of the pixel ordinate values ​​in the second and fourth pixel coordinate information can be used as the second pixel ordinate value, and the pixel abscissa value in the second pixel coordinate information can be used as the second pixel abscissa value. The second pixel ordinate value and the second pixel abscissa value are used to determine the second target coordinate information of the other endpoint of the main structural surface of the tunnel face. Finally, the first and second target coordinates are used as the endpoint coordinates.

[0079] In this embodiment, when extracting the endpoint coordinates of the main structural surface of the tunnel face from the binarized image, a skeleton extraction algorithm is used to process the binarized image to obtain the contour line of the main structural surface. This reduces the preprocessing steps of the binarized image and can still extract the endpoint coordinates of the main structural surface even when the binarized image quality is poor. Furthermore, after determining the coordinates of the two endpoints of the contour line, since the ordinates of the two endpoints mainly represent the height of the skeleton or central part of the main structural surface, to better describe the overall height of the main structural surface, after determining the coordinates of the two vertices of the mask region, the pixel ordinates of the vertices of the mask region and the pixel ordinates of the endpoints of the contour line can be used as the first pixel ordinate. Since the pixel ordinates of the vertices of the mask region can reflect the edge or outer contour of the main structural surface, adding them together can better cover the overall range of the main structural surface, thus providing more information about the shape and size of the main structural surface.

[0080] After obtaining the endpoint coordinates of the main structural surface of the tunnel face, in order to determine the actual height of the main structural surface of the tunnel face, as an optional implementation, after step A80, the following steps are further included:

[0081] Step A81: Determine the actual height of the working face and the total pixel height of the working face image.

[0082] Step A82: Using the actual height of the face, the total pixel height, and the ordinate value of the first pixel, obtain the first actual height of one end point.

[0083] Step A83: Using the actual height of the face, the total pixel height, and the ordinate value of the second pixel, obtain the second actual height of the other end point.

[0084] In this embodiment, a height measuring device can be used to collect the actual height of the working face. After collecting the actual height of the working face, relevant personnel can transmit the actual height of the working face to the working face structure information extraction device by interacting with the virtual keyboard and / or buttons in the working face structure information extraction device. After receiving the actual height of each working face, the working face structure information extraction device can store the actual height of the working face to its local machine or the cloud, so that when executing step A81, the actual height of the working face can be directly retrieved from the local machine or the cloud.

[0085] Specifically, based on the foregoing, after constructing an image coordinate system with any vertex of the face image as the origin, another vertex on the same vertical line as the origin is determined along the Y-axis of the image coordinate system, and the pixel distance between the origin and the other vertex is taken as the total pixel height. After determining the actual height of the face and the total pixel height, the first actual height of one endpoint can be obtained based on the actual height of the face, the total pixel height, and the first pixel's ordinate value. Y1 represents the first actual height of one endpoint, y1 represents the first pixel's ordinate value, H represents the actual height of the face, and h represents the total pixel height. Correspondingly, based on the actual height of the face, the total pixel height, and the second pixel's ordinate value, the second actual height of the other endpoint can be obtained. Y2 represents the second actual height of the other end point, and y2 represents the second pixel ordinate value.

[0086] In this embodiment, after obtaining the endpoint coordinates of the main structural surface of the tunnel face, the actual heights of the two endpoints of the main structural surface of the tunnel face are calculated using the actual height of the tunnel face, the total pixel height, and the endpoint coordinates. This helps to determine the actual position of the main structural surface of the tunnel face in the tunnel face, so as to better determine the position information of the main structure of the tunnel face.

[0087] In this embodiment, after extracting image features, semantic segmentation is performed on the image features to obtain a mask image corresponding to the mapping region of the main structural surface of the tunnel face. The mask image is then binarized to obtain a binarized image. Finally, a skeleton extraction algorithm is used to extract the endpoint coordinates of the main structural surface of the tunnel face from the binarized image. That is, this application, through semantic segmentation, can accurately identify the mapping region of the tunnel face structure from image features, thereby reducing interference features in the mask image containing the mapping region and avoiding the misidentification of interference features as the main structural surface of the tunnel face, thus improving the recognition accuracy.

[0088] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the method for extracting tunnel face structure information of this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0089] This application also provides a device for extracting information about the working face structure. Please refer to [reference needed]. Figure 5 The face structure information extraction device includes:

[0090] The acquisition module is used to acquire the face image; wherein the face image includes a mapping region corresponding to the main structural surface of the face.

[0091] The input module is used to input the face image into the information extraction model and obtain the main structural surface information of the face from the output of the information extraction model. The information extraction model includes a feature extraction module, an image feature processing module, and an information recognition module. The feature extraction module is used to extract features from the face image to obtain image features. The image feature processing module is used to perform semantic segmentation on the image features to obtain a mask image containing the mapped region, and to perform binarization on the mask image to obtain a binarized image. The information recognition module is used to extract the endpoint coordinates of the main structural surface of the face from the binarized image using a skeleton extraction algorithm to obtain the main structural surface information of the face.

[0092] The face structure information extraction device provided in this application, employing the face structure information extraction method described in the above embodiments, can solve the technical problem of low recognition accuracy caused by numerous interference factors in face images. Compared with related technologies, the beneficial effects of the face structure information extraction device provided in this application are the same as those of the face structure information extraction method provided in the above embodiments, and other technical features in the face structure information extraction device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0093] This application provides a face structure information extraction 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, and the instructions are executed by the at least one processor to enable the at least one processor to perform the face structure information extraction method in the first embodiment described above.

[0094] The following is for reference. Figure 6 This document illustrates a structural schematic diagram of a working face structure information extraction device suitable for implementing embodiments of this application. The working face structure information extraction device in 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), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 6 The illustrated face structure information extraction device is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0095] like Figure 6As shown, the face structure information extraction 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 face structure information extraction 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 face structure information extraction device to exchange data wirelessly or via wired communication with other devices. Although face structure information extraction devices with various systems are shown in the figures, it should be understood that it is not required to implement or possess all of the systems shown. More or fewer systems may be implemented alternatively.

[0096] 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.

[0097] The face structure information extraction device provided in this application, employing the face structure information extraction method described in the above embodiments, can solve the technical problem of low recognition accuracy caused by numerous interference factors in face images. Compared with related technologies, the beneficial effects of the face structure information extraction device provided in this application are the same as those of the face structure information extraction method provided in the above embodiments, and other technical features of this face structure information extraction device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0098] 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.

[0099] 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.

[0100] 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 method for extracting tunnel face structure information in the above embodiments.

[0101] 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 fibers, 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.

[0102] The aforementioned computer-readable storage medium may be included in the face structure information extraction device; or it may exist independently and not be assembled into the face structure information extraction device.

[0103] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by the face structure information extraction device, the face structure information extraction device causes the following: it acquires a face image; wherein the face image includes a mapping region corresponding to the main face structure; it inputs the face image into an information extraction model to obtain the main face structure information output by the information extraction model; wherein the information extraction model includes a feature extraction module, an image feature processing module, and an information recognition module; the feature extraction module is used to extract features from the face image to obtain image features; the image feature processing module is used to perform semantic segmentation on the image features to obtain a mask image containing the mapping region, and to perform binarization processing on the mask image to obtain a binarized image; the information recognition module is used to extract the endpoint coordinates of the main face structure in the binarized image using a skeleton extraction algorithm to obtain the main face structure information.

[0104] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including 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's computer, partially on the user's computer, as a standalone software package, partially on the user's 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's 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).

[0105] 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.

[0106] 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.

[0107] 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 method for extracting the structural surface information of the working face. This solves the technical problem of low recognition accuracy caused by numerous interference factors in the working 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 working face structural surface information extraction method provided in the above embodiments, and will not be elaborated upon here.

[0108] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method for extracting information about the tunnel face structure.

[0109] The computer program product provided in this application can solve the technical problem of low recognition accuracy caused by numerous interference factors in the face of the tunnel. Compared with related technologies, the beneficial effects of the computer program product provided in this application are the same as those of the face structure information extraction method provided in the above embodiments, and will not be repeated here.

[0110] 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 extracting structural surface information of a tunnel face, characterized in that, The method includes: Obtain a face image; wherein the face image includes a mapping region corresponding to the main structural surface of the face; The face image is input into an information extraction model to obtain the main structural surface information of the face output by the information extraction model. The information extraction model includes a feature extraction module, an image feature processing module, and an information recognition module. The feature extraction module extracts features from the face image to obtain image features. The image feature processing module performs semantic segmentation on the image features to obtain a mask image containing the mapped region, and binarizes the mask image to obtain a binarized image. The information recognition module uses a skeleton extraction algorithm to extract the endpoint coordinates of the main structural surface of the face in the binarized image to obtain the main structural surface information of the face. The feature extraction module includes an adaptive convolution kernel, and the feature extraction of the palm face image to obtain image features includes: The adaptive convolution kernel is used to extract features from the face image to obtain the image features; The step of extracting the endpoint coordinates of the main structural surface of the tunnel face from the binarized image using a skeleton extraction algorithm to obtain the information of the main structural surface of the tunnel face includes: The skeleton extraction algorithm is used to process the binarized image to obtain the outline of the main structural surface of the facet. Determine the first pixel coordinate information of one endpoint of the contour line in the face image and the second pixel coordinate information of the other endpoint in the face image; Based on the first pixel coordinate information and the second pixel coordinate information, the endpoint coordinates of the main structural surface of the tunnel face are determined; The information extraction model is the SPM-YOLOv8-seg model.

2. The method as described in claim 1, characterized in that, Determining the endpoint coordinates of the main structural surface of the tunnel face based on the first pixel coordinate information and the second pixel coordinate information includes: Determine the third pixel coordinate information of one vertex of the masked region in the face image, and the fourth pixel coordinate information of the other vertex of the masked region in the face image; The sum of the pixel ordinate value in the first pixel coordinate information and the pixel ordinate value in the third pixel coordinate information is taken as the first pixel ordinate value; Use the pixel x-coordinate value in the first pixel coordinate information as the first pixel x-coordinate value; The first target coordinate information of one end point of the main structural surface of the face is determined based on the first pixel's vertical coordinate value and the first pixel's horizontal coordinate value; The sum of the pixel ordinate value in the second pixel coordinate information and the pixel ordinate value in the fourth pixel coordinate information is used as the second pixel ordinate value; Use the pixel x-coordinate value in the second pixel coordinate information as the second pixel x-coordinate value; The second target coordinate information of the other end point of the main structural surface of the tunnel face is determined based on the second pixel ordinate value and the second pixel abscissa value; The first target coordinate information and the second target coordinate information are used as the endpoint coordinates.

3. The method as described in claim 2, characterized in that, After using the first target coordinate information and the second target coordinate information as the endpoint coordinates, the method further includes: Determine the actual height of the working face and the total pixel height of the working face image; The first actual height of one end point is obtained by using the actual height of the working face, the total height of the pixels, and the ordinate value of the first pixel. The second actual height of the other end point is obtained by using the actual height of the face, the total height of the pixels, and the ordinate value of the second pixel.

4. A device for extracting structural surface information of a tunnel face, 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 main structural surface of the face; An input module is used to input the face image into an information extraction model to obtain the main structural surface information of the face output by the information extraction model. The information extraction model includes a feature extraction module, an image feature processing module, and an information recognition module. The feature extraction module is used to extract features from the face image to obtain image features. The image feature processing module is used to perform semantic segmentation on the image features to obtain a mask image containing the mapped region, and to perform binarization on the mask image to obtain a binarized image. The information recognition module is used to extract the endpoint coordinates of the main structural surface of the face in the binarized image using a skeleton extraction algorithm to obtain the main structural surface information of the face. The feature extraction module includes an adaptive convolution kernel; The feature extraction module is further configured to use the adaptive convolution kernel to extract features from the face image to obtain the image features; The information recognition module is also used to process the binarized image using the skeleton extraction algorithm to obtain the outline of the main structural surface of the face; Determine the first pixel coordinate information of one endpoint of the contour line in the face image and the second pixel coordinate information of the other endpoint in the face image; Based on the first pixel coordinate information and the second pixel coordinate information, the endpoint coordinates of the main structural surface of the tunnel face are determined; The information extraction model is the SPM-YOLOv8-seg model.

5. A device for extracting structural surface information of a tunnel face, 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 method for extracting tunnel face structure information 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 method for extracting the structural surface information of the tunnel face 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 method for extracting tunnel face structure information as described in any one of claims 1 to 3.