Geological data processing method, device and product in underground engineering scene

By segmenting rock images and using standard Euclidean distance of color and texture data to classify rock types, and combining gradient magnitude and depth data to analyze fracture surfaces, this method solves the problems of inaccurate rock type identification and high cost of dip angle identification in existing technologies, and achieves efficient and low-cost rock identification.

CN118887463APending Publication Date: 2024-11-01THREE GORGES GROUP IND DEVELOPMENT (BEIJING) CO LTD +1

Patent Information

Application Number
CN202410922701.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

Existing technologies for identifying rock types suffer from limitations. Image clustering algorithms based on the RGB color space have weak differentiation capabilities when the main color tones are similar, making accurate classification difficult. Manual identification of rock dip angles is inefficient and costly, while seismic wave identification methods require specialized equipment.

Method used

By acquiring rectangular rock images, segmenting them into strip images, and using the standard Euclidean distance of color and texture data to divide the rocks, the fracture surface is determined by combining gradient magnitude, and depth data is obtained to analyze the fracture surface.

Benefits of technology

It improves rock identification efficiency, reduces unknown errors, lowers equipment costs, and enables accurate identification of rock types and dip angles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887463A_ABST
    Figure CN118887463A_ABST
Patent Text Reader

Abstract

The invention provides a geological data processing method, device and product in an underground engineering scene, and the method comprises the steps: obtaining a rock rectangular image, and segmenting the rectangular image into at least one strip-shaped image; the rectangular image comprises a fracture surface; acquiring color data and texture data of the rock on the strip-shaped image and gradient amplitudes of pixel points in the strip-shaped image; based on a first standard Euclidean distance of the color data of the rocks on any two bar-shaped images and a second standard Euclidean distance of the texture data of the rocks on any two bar-shaped images, dividing the rocks on the bar-shaped images into at least one type; determining a name of at least one type of rock based on the color data and the texture data; based on the gradient amplitude, the first amplitude threshold value and the second amplitude threshold value, whether the pixel point is the pixel point of the fracture surface or not is judged; the first amplitude threshold value is greater than the second amplitude threshold value; if yes, depth data of the pixel points of the fracture surface are obtained, the fracture surface is analyzed based on the depth data, and the rock recognition and fracture surface analysis efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of geological survey technology, and in particular to a method, device and product for processing geological data in underground engineering scenarios. Background Art

[0002] Existing technologies usually identify rock types through image clustering algorithms based on RGB color space. This method analyzes the RGB color information of each pixel in the rock panoramic image and divides similar image areas or the entire image into different rock types. However, when the main tones of the images are similar, this method has weaker distinguishing ability and often fails to achieve accurate classification.

[0003] Panoramic images of rocks usually include fissures and joints. These fissures and joints are cracks in the rock, which appear as fracture surfaces in the panoramic images. These fracture surfaces usually have a certain inclination, that is, the angle between the fracture surface and the horizontal plane. When identifying the inclination in the panoramic images of rocks, the existing technology mainly relies on manual identification to punctuate or mark the fissures and joints on the panoramic images. Then, based on these annotations or marks, the inclination of the fissures and joints is analyzed through geometric analysis or mathematical calculations. However, this manual identification method is inefficient. In addition, the existing technology can also use seismic waves to identify the inclination of fissures and joints, but this method requires the use of professional equipment and is costly. Summary of the invention

[0004] The embodiments of the present invention provide a geological data processing method, device and product in an underground engineering scenario, so as to at least solve the problem that when the main tones of the images are similar, the identification of the surrounding rock types by an image clustering algorithm based on the RGB color space has weak distinguishing ability and is often difficult to achieve accurate classification, and the method of manually identifying the inclination angle is inefficient, and the use of seismic waves to identify the inclination angles of cracks and joints requires the use of professional equipment and is costly.

[0005] The embodiment of the present invention discloses a method for processing geological data in an underground engineering scenario, comprising:

[0006] Acquire a rectangular image of a preset rock, and divide the rectangular image into at least one strip image; the rectangular image includes at least one fracture surface;

[0007] Acquire color data and texture data of the rock on the strip image, and gradient amplitude of pixel points in the strip image;

[0008] Classifying the rocks on the strip images into at least one category based on a first standard Euclidean distance between color data of any two rocks on the strip images and a second standard Euclidean distance between texture data of any two rocks on the strip images;

[0009] determining a name of the at least one type of rock based on the color data and the texture data;

[0010] Based on the gradient amplitude, a preset first amplitude threshold and a preset second amplitude threshold, determining whether the pixel point is a pixel point of the fracture surface; the first amplitude threshold is greater than the second amplitude threshold;

[0011] If the pixel point is a pixel point of the fracture surface, the depth data of the pixel point of the fracture surface is acquired, and the fracture surface is analyzed based on the depth data.

[0012] Optionally, the step of classifying the rocks on the strip images into at least one category based on a first standard Euclidean distance between color data of any two rocks on the strip images and a second standard Euclidean distance between texture data of any two rocks on the strip images comprises:

[0013] For any of the strip images, use the strip image as a first strip image;

[0014] According to a preset sequential naming method, the type of rock on the first strip image is used as a preset first type; the sequential naming method refers to a method of naming the rock types using a numerical sequence according to the order in which the rock types on the strip image are divided;

[0015] For any of the strip images except the first strip image, use the strip image as a second strip image;

[0016] Based on a first standard Euclidean distance between the first strip image and the second strip image, determining whether the type of rock on the second strip image is the first type;

[0017] If the type of the rock on the second strip image is not the first type, then according to the sequential naming method, the type of the rock on the second strip image is used as the preset second type.

[0018] Optionally, the step of classifying the rocks on the strip images into at least one category based on a first standard Euclidean distance between color data of any two rocks on the strip images and a second standard Euclidean distance between texture data of any two rocks on the strip images comprises:

[0019] The strip images that have been divided into categories are combined to obtain a strip image set;

[0020] Traversing the unclassified strip images, and judging whether there are rocks of the same type as the rocks on the currently traversed strip image in the strip image set, based on the first standard Euclidean distance and the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set;

[0021] If there is no rock of the same type as the rock on the currently traversed strip image among the rocks corresponding to the strip image set, then according to the sequential nomenclature, the rock on the currently traversed strip image is taken as the rock of the target sequence type;

[0022] After the currently traversed strip image is traversed, the currently traversed strip image is added to the strip image set, and the remaining unclassified strip images are continuously traversed until all the unclassified strip images are added to the strip image set.

[0023] Optionally, the step of determining the name of the at least one type of rock based on the color data and the texture data comprises:

[0024] In the process of classifying the rocks on the strip image into at least one type, based on the color data and texture data of the rocks of the type on the strip image, target color data and target texture data of the rocks of the type are determined;

[0025] For any of the types of rocks, the name of the type of rock is determined based on the target color data and the target texture data.

[0026] Optionally, in the process of classifying the rocks on the strip image into at least one type, the step of determining target color data and target texture data of the type of rocks based on the color data and texture data of the type of rocks on the strip image comprises:

[0027] Using the color data and texture data of the rock on the first strip image as the target color data and target texture data of the first type of rock;

[0028] If the type of the rock on the second strip image is the first type, then updating the average value of the color data of the rock on the first strip image and the second strip image to the target color data of the rock of the first type, and updating the average value of the texture data of the rock on the first strip image and the second strip image to the target texture data of the rock of the first type;

[0029] If the type of the rock on the second strip image is not the first type, the color data and texture data of the rock on the second strip image are used as the target color data and target texture data of the second type of rock.

[0030] Optionally, in the process of classifying the rocks on the strip image into at least one type, the step of determining target color data and target texture data of the type of rocks based on the color data and texture data of the type of rocks on the strip image comprises:

[0031] If there is no rock of the same type as the rock on the currently traversed strip image among the rocks corresponding to the strip image set, the color data and texture data of the rock on the currently traversed strip image are used as the target color data and target texture data of the rock of the target order type;

[0032] If there are rocks of the same type as the rocks on the currently traversed strip image in the rocks corresponding to the strip image set, the type of the rocks of the same type as the rocks on the currently traversed strip image in the rocks corresponding to the strip image set is taken as the target type;

[0033] Updating the average value of the color data of the target type of rock and the rock on the currently traversed strip image as the target color data of the target type of rock;

[0034] The average value of the texture data of the target type of rock and the rock on the currently traversed strip image is updated as the target texture data of the target type of rock.

[0035] Optionally, the step of judging whether the type of rock on the second strip image is the first type based on the first standard Euclidean distance between the first strip image and the second strip image comprises:

[0036] Determining whether a first standard Euclidean distance between the first strip image and the second strip image is greater than a preset distance threshold;

[0037] If the first standard Euclidean distance between the first strip image and the second strip image is not greater than the preset distance threshold, it is confirmed that the type of the rock on the second strip image is the first type.

[0038] Optionally, the step of judging whether there are rocks of the same type as the rocks on the currently traversed strip image in the rock image set corresponding to the strip image set based on the first standard Euclidean distance and the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set comprises:

[0039] Combining the first standard Euclidean distances between the currently traversed strip image and the strip images in the strip image set to obtain a first standard Euclidean distance set;

[0040] Taking the minimum value in the first standard Euclidean distance set as the first target standard Euclidean distance;

[0041] If the first target standard Euclidean distance is not greater than the preset distance threshold, determining whether the first standard Euclidean distance in the first standard Euclidean distance set is not greater than the preset distance threshold;

[0042] If the number of the first standard Euclidean distances in the first standard Euclidean distance set that is not greater than the preset distance threshold meets the preset number requirement, it is confirmed that the type of rock on the strip image in the strip image set corresponding to the first target standard Euclidean distance is the same as the type of rock in the currently traversed strip image.

[0043] Optionally, the step of judging whether there are rocks of the same type as the rocks on the currently traversed strip image in the rock image set corresponding to the strip image set based on the first standard Euclidean distance and the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set comprises:

[0044] If the number of the first standard Euclidean distances in the first standard Euclidean distance set that is not greater than the preset distance threshold does not meet the preset number requirement, taking the minimum value of the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set as the second target standard Euclidean distance;

[0045] Confirm that the type of rock on the strip image in the strip image set corresponding to the second target standard Euclidean distance is the same as the type of rock in the currently traversed strip image.

[0046] Optionally, the step of judging whether there are rocks of the same type as the rocks on the currently traversed strip image in the rock image set corresponding to the strip image set based on the first standard Euclidean distance and the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set comprises:

[0047] If the first target standard Euclidean distance is greater than the preset distance threshold, it is confirmed that there is no rock of the same type as the rock on the currently traversed strip image in the rocks corresponding to the strip image set.

[0048] Optionally, the step of judging whether the pixel point is a pixel point of the fracture surface based on the gradient amplitude, a preset first amplitude threshold and a preset second amplitude threshold comprises:

[0049] If the gradient amplitude of the pixel point is greater than the first amplitude threshold, confirming that the pixel point is a pixel point of the fracture surface;

[0050] If the gradient amplitude of the pixel point is less than the second amplitude threshold, confirming that the pixel point is not a pixel point of the fracture surface;

[0051] If the gradient amplitude of the pixel point is not greater than the first amplitude threshold and not less than the second amplitude threshold, it is determined whether the pixel point is within a first preset area; the first preset area refers to a circular area with a pixel point of any of the fracture surfaces as the center and a first preset length as the radius;

[0052] If the pixel point is within the first preset area, the pixel point is confirmed to be a pixel point of the fracture surface.

[0053] Optionally, the step of judging whether the pixel point is a pixel point of the fracture surface based on the gradient amplitude, a preset first amplitude threshold and a preset second amplitude threshold comprises:

[0054] Combining the pixel points of the fracture surface to obtain a pixel point set of the fracture surface;

[0055] For any pixel point of the fracture surface in the pixel point set, calculating the gradient direction of the pixel point of the fracture surface;

[0056] Based on the gradient direction of the pixel point of the fracture surface, determining the adjacent pixel points of the pixel point of the fracture surface in the gradient direction, and calculating the gradient amplitude of the adjacent pixel points;

[0057] If the gradient amplitude of the pixel point on the fracture surface is smaller than the gradient amplitude of the adjacent pixel point, the pixel point on the fracture surface is deleted from the pixel point set.

[0058] Optionally, the step of judging whether the pixel point is a pixel point of the fracture surface based on the gradient amplitude, a preset first amplitude threshold and a preset second amplitude threshold comprises:

[0059] Increasing the first amplitude threshold to obtain a third amplitude threshold, and decreasing the second amplitude threshold to obtain a fourth amplitude threshold;

[0060] For any pixel point of the fracture surface in the pixel point set, if the gradient amplitude of the pixel point of the fracture surface is less than the fourth amplitude threshold, deleting the pixel point of the fracture surface from the pixel point set;

[0061] If the gradient amplitude of the pixel point of the fracture surface is not greater than the third amplitude threshold, not less than the fourth amplitude threshold, and the pixel point is not located in the second preset area, the pixel point of the fracture surface is deleted from the pixel point set; the second preset area refers to a circular area with any pixel point of the fracture surface in the pixel point set as the center and a second preset length as the radius.

[0062] The embodiment of the present invention further discloses a geological data processing device in an underground engineering scenario, comprising:

[0063] A rectangular image acquisition module, used to acquire a rectangular image of a preset rock and divide the rectangular image into at least one strip image; the rectangular image includes at least one fracture surface;

[0064] A data acquisition module, used to acquire color data and texture data of the rock on the strip image, and gradient amplitude of pixel points in the strip image;

[0065] A category classification module, used for classifying the rocks on the strip image into at least one category based on a first standard Euclidean distance between color data of any two rocks on the strip image and a second standard Euclidean distance between texture data of any two rocks on the strip image;

[0066] a name determination module, configured to determine a name of the at least one type of rock based on the color data and the texture data;

[0067] a pixel point judgment module, used to judge whether the pixel point is a pixel point of the fracture surface based on the gradient amplitude, a preset first amplitude threshold and a preset second amplitude threshold; the first amplitude threshold is greater than the second amplitude threshold;

[0068] A depth data acquisition module is used to acquire depth data of the pixel point of the fracture surface if the pixel point is a pixel point of the fracture surface, and analyze the fracture surface based on the depth data.

[0069] Optionally, the category classification module includes:

[0070] The first strip image is used as a submodule, and is used to use any of the strip images as the first strip image;

[0071] The first category is used as a submodule, and is used to use the rock type on the first strip image as the preset first category according to a preset sequential naming method; the sequential naming method refers to a method of naming the rock type using a numerical sequence according to the division order of the rock types on the strip image;

[0072] The second strip image is used as a submodule, and is used to use any strip image except the first strip image as the second strip image;

[0073] A first type determination submodule, configured to determine whether the type of rock on the second strip image is the first type based on a first standard Euclidean distance between the first strip image and the second strip image;

[0074] The second category is used as a submodule, and is used to, if the type of the rock on the second strip image is not the first type, use the type of the rock on the second strip image as the preset second category according to the sequential naming method.

[0075] Optionally, the category classification module includes:

[0076] A strip image set obtaining submodule is used to combine the strip images that have been classified into categories to obtain a strip image set;

[0077] A traversal submodule, used for traversing the unclassified strip images, and judging whether there are rocks of the same type as the rocks on the strip image currently traversed, in the rocks corresponding to the strip image set, based on the first standard Euclidean distance and the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set;

[0078] The target order type of rock is used as a submodule, and is used to, if there is no rock of the same type as the rock on the currently traversed strip image among the rocks corresponding to the strip image set, then according to the sequential nomenclature, take the rock on the currently traversed strip image as the target order type of rock;

[0079] The adding submodule is used to add the currently traversed bar image to the bar image set after the currently traversed bar image is traversed, and continue to traverse the remaining unclassified bar images until all the unclassified bar images are added to the bar image set.

[0080] Optionally, the name determination module includes:

[0081] a target data determination submodule, for determining target color data and target texture data of the rock of the type based on the color data and texture data of the rock of the type on the strip image during the process of classifying the rock on the strip image into at least one type;

[0082] The name determination submodule is used to determine the name of any type of rock based on the target color data and the target texture data.

[0083] Optionally, the target data determination submodule includes:

[0084] The first data is used as a unit to use the color data and texture data of the rock on the first strip image as the target color data and target texture data of the first type of rock;

[0085] a first updating unit, configured to update an average value of color data of the rocks on the first strip image and the second strip image to target color data of the rocks of the first type, and to update an average value of texture data of the rocks on the first strip image and the second strip image to target texture data of the rocks of the first type, if the type of the rocks on the second strip image is the first type;

[0086] The second data is used as a unit, and if the type of rock on the second strip image is not the first type, the color data and texture data of the rock on the second strip image are used as the target color data and target texture data of the second type of rock.

[0087] Optionally, the target data determination submodule includes:

[0088] The third data is used as a unit, and is used to use the color data and texture data of the rock on the currently traversed strip image as the target color data and target texture data of the rock of the target order type if there is no rock of the same type as the rock on the currently traversed strip image among the rocks corresponding to the strip image set;

[0089] The target type is used as a unit, and if there is a rock of the same type as the rock on the currently traversed strip image in the rocks corresponding to the strip image set, the type of the rock of the same type as the rock on the currently traversed strip image in the rocks corresponding to the strip image set is used as the target type;

[0090] A second updating unit, configured to update the average value of the color data of the target type of rock and the rock on the currently traversed strip image to the target color data of the target type of rock;

[0091] The third updating unit is used to update the average value of the texture data of the target type of rock and the rock on the currently traversed strip image to the target texture data of the target type of rock.

[0092] Optionally, the first type determination submodule includes:

[0093] A first judging unit, configured to judge whether a first standard Euclidean distance between the first strip image and the second strip image is greater than a preset distance threshold;

[0094] The first type confirmation unit is used to confirm that the type of the rock on the second strip image is the first type if the first standard Euclidean distance between the first strip image and the second strip image is not greater than the preset distance threshold.

[0095] Optionally, the traversal submodule includes:

[0096] A combining unit, used for combining the first standard Euclidean distances between the currently traversed strip image and the strip images in the strip image set to obtain a first standard Euclidean distance set;

[0097] The first target standard Euclidean distance is used as a unit, and is used to take the minimum value in the first standard Euclidean distance set as the first target standard Euclidean distance;

[0098] a second judgment unit, configured to judge whether the first standard Euclidean distance in the first standard Euclidean distance set is not greater than the preset distance threshold if the first target standard Euclidean distance is not greater than the preset distance threshold;

[0099] A first confirmation unit is used to confirm that the type of rock on the strip image in the strip image set corresponding to the first target standard Euclidean distance is the same as the type of rock in the currently traversed strip image if the number of the first standard Euclidean distances in the first standard Euclidean distance set that is not greater than the preset distance threshold meets the preset number requirement.

[0100] Optionally, the traversal submodule includes:

[0101] The second target standard Euclidean distance is used as a unit, and is used to take the minimum value of the second standard Euclidean distance between the currently traversed strip image and the strip image in the strip image set as the second target standard Euclidean distance if the number of the first standard Euclidean distances in the first standard Euclidean distance set that is not greater than the preset distance threshold does not meet the preset number requirement;

[0102] The second confirmation unit is used to confirm that the type of rock on the strip image in the strip image set corresponding to the second target standard Euclidean distance is the same as the type of rock in the currently traversed strip image.

[0103] Optionally, the traversal submodule includes:

[0104] The third confirmation unit is used to confirm that there is no rock of the same type as the rock on the currently traversed strip image in the rocks corresponding to the strip image set if the first target standard Euclidean distance is greater than the preset distance threshold.

[0105] Optionally, the pixel point determination module includes:

[0106] A first pixel point confirmation submodule, configured to confirm that the pixel point is a pixel point of the fracture surface if the gradient amplitude of the pixel point is greater than the first amplitude threshold;

[0107] A second pixel point confirmation submodule, configured to confirm that the pixel point is not a pixel point of the fracture surface if the gradient amplitude of the pixel point is less than the second amplitude threshold;

[0108] A first preset region judgment submodule is used to judge whether the pixel point is within a first preset region if the gradient amplitude of the pixel point is not greater than the first amplitude threshold and not less than the second amplitude threshold; the first preset region refers to a circular region with a pixel point of any of the fracture surfaces as the center and a first preset length as the radius;

[0109] The third pixel point confirmation submodule is used to confirm that the pixel point is a pixel point of the fracture surface if the pixel point is within the first preset area.

[0110] Optionally, the pixel point determination module includes:

[0111] A pixel point combination submodule, used for combining the pixel points of the fracture surface to obtain a pixel point set of the fracture surface;

[0112] A gradient direction calculation submodule, used for calculating the gradient direction of a pixel point of the fracture surface for any pixel point of the fracture surface in the pixel point set;

[0113] An adjacent pixel point determination submodule, used to determine adjacent pixel points of the pixel point of the fracture surface in the gradient direction based on the gradient direction of the pixel point of the fracture surface, and calculate the gradient amplitude of the adjacent pixel points;

[0114] The first pixel point deletion submodule is used to delete the pixel point of the fracture surface from the pixel point set if the gradient amplitude of the pixel point of the fracture surface is smaller than the gradient amplitude of the adjacent pixel point.

[0115] Optionally, the pixel point determination module includes:

[0116] an increasing submodule, configured to increase the first amplitude threshold to obtain a third amplitude threshold, and to reduce the second amplitude threshold to obtain a fourth amplitude threshold;

[0117] A second pixel point deletion submodule is used for deleting the pixel point of any of the fracture surfaces in the pixel point set from the pixel point set if the gradient amplitude of the pixel point of the fracture surface is less than the fourth amplitude threshold;

[0118] The third pixel point deletion submodule is used to delete the pixel points of the fracture surface from the pixel point set if the gradient amplitude of the pixel points of the fracture surface is not greater than the third amplitude threshold, not less than the fourth amplitude threshold and the pixel points are not located in the second preset area; the second preset area refers to a circular area with any pixel point of the fracture surface in the pixel point set as the center and a second preset length as the radius.

[0119] The embodiment of the present invention further discloses a computer program product, including a computer program / instruction, wherein the computer program / instruction implements the steps of the method described in the embodiment of the present invention when executed by a processor.

[0120] The embodiments of the present invention include the following advantages:

[0121] In an embodiment of the present invention, a rectangular image of a preset rock is obtained, and the rectangular image is segmented into at least one strip image, wherein the rectangular image includes at least one fracture surface. The color data and texture data of the rock on the strip image, as well as the gradient amplitude of the pixel points in the strip image are obtained, and the rock on the strip image is divided into at least one type based on the first standard Euclidean distance between the color data of the rock on any two strip images and the second standard Euclidean distance between the texture data of the rock on any two strip images, and the name of at least one type of rock is determined based on the color data and the texture data. The classification of the rock types in the strip image and the recognition of the rock names of the same type of strip image are realized, the rock recognition efficiency is improved, the generation of unknown errors is minimized, and the possibility of encountering data outside the training set of the rock recognition model is avoided.

[0122] Based on the gradient amplitude, the preset first amplitude threshold and the preset second amplitude threshold, it is determined whether the pixel point is a pixel point of the fracture surface; the first amplitude threshold is greater than the second amplitude threshold; if the pixel point is a pixel point of the fracture surface, the depth data of the pixel point of the fracture surface is obtained, and the fracture surface is analyzed based on the depth data. The method of manually identifying the dip angle is inefficient, and the use of seismic waves to identify the dip angle of cracks and joints requires the use of professional equipment, which is costly. BRIEF DESCRIPTION OF THE DRAWINGS

[0123] Figure 1 It is a schematic diagram of a fisheye lens provided by the prior art;

[0124] Figure 2 It is a panoramic image of surrounding rock provided by the prior art;

[0125] Figure 3 It is a schematic diagram of constructing a multi-source image result fusion classifier provided by the prior art;

[0126] Figure 4 is a schematic diagram of a first image acquisition device in an underground engineering scenario provided in an embodiment of the present invention;

[0127] Figure 5 is a schematic diagram of a downhole acquisition device provided by an embodiment of the present invention;

[0128] Figure 6 is a flowchart of the steps of an image acquisition method in an underground engineering scenario provided in an embodiment of the present invention;

[0129] Figure 7 is a schematic diagram of a second image acquisition device in an underground engineering scenario provided in an embodiment of the present invention;

[0130] Figure 8 is a flowchart of the steps of another image acquisition method in an underground engineering scenario provided in an embodiment of the present invention;

[0131] Fig. 9 It is a flowchart of the steps of a geological data processing method in an underground engineering scenario provided in an embodiment of the present invention;

[0132] Fig.10 is a schematic diagram of a strip image obtained by dividing a rectangular image provided by an embodiment of the present invention;

[0133] Fig.11 It is a structural block diagram of a geological data processing device in an underground engineering scenario provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0134] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0135] To facilitate understanding of the technical solutions and technical effects of the embodiments of the present invention, the prior art of the present invention is briefly described below.

[0136] A pumped storage power station is a power station that uses water power to store and regulate energy. This type of power station usually includes an upper reservoir and a lower reservoir. During low electricity demand periods, such as at night, the power station will use excess power from the power grid to pump water from the lower reservoir to the upper reservoir for storage; during peak electricity demand periods, such as during the day, the power station will release water to generate electricity to meet the peak load demand of the power grid.

[0137] The diversion tunnel is an important part of a pumped storage power station. It connects the upper reservoir and the lower reservoir and is used to guide water flow for power generation or pumping. The design and construction of the diversion tunnel need to fully consider the geological conditions to ensure its safe, stable and efficient operation.

[0138] In the construction of a pumped storage power station, the geological sketch of the diversion tunnel is an important task, which involves the detailed recording and description of the geological conditions along the diversion tunnel. The geological sketch usually includes geological structure and lithology description. Among them, the geological structure records the main geological structures along the diversion tunnel, such as faults, joints, fissures, etc., as well as their occurrence (dip and dip), scale and distribution. The lithology description describes in detail the rock types encountered along the diversion tunnel, including the name, color, structure, texture, mineral composition, etc. of the rock.

[0139] First, the geological sketch of the water diversion tunnel involves the collection of geological information. The traditional geological information collection methods currently used have some limitations, such as low collection accuracy, single dimension of information obtained, and inadaptability when dealing with the complex well wall environment of the water diversion tunnel. These shortcomings seriously restrict the smooth progress of the water diversion tunnel construction and the optimization of the final effect. In addition, in the current practice of rock geological information collection in the water diversion tunnel, it mainly relies on manual sampling and traditional logging equipment. Most of these devices are cylindrical in shape, passively centered by spring brackets, and move in the hole by relying on the weight of the equipment itself. However, the traditional mechanical structure centering method based on spring brackets has some limitations. Because it mainly relies on the spring bracket for passive centering, the equipment is easy to get stuck when encountering pits or depressions on the wall of the cave, and often cannot extricate itself, cannot move up and down, and the equipment lacks sufficient obstacle crossing and escape capabilities. In addition, since the movement of the equipment in the cave mainly depends on its own weight, this will cause the equipment to drag on the ground or be top-heavy in inclined or horizontal wells, affecting its smooth movement and may even cause safety hazards.

[0140] Second, the geological sketch of the diversion tunnel involves the acquisition of a panoramic image of the diversion tunnel rock. However, due to the unique environment of the diversion tunnel, the traditional fisheye lens photography method often has difficulty in achieving complete and clear capture of the panoramic image when dealing with a diversion tunnel with a large hole diameter (more than 1 meter in diameter).

[0141] Reference Figure 1 , shows a schematic diagram of a fisheye lens provided by the prior art. The fisheye lens is a special ultra-wide-angle lens that can provide a viewing angle of up to 180 degrees or even wider. However, due to its imaging characteristics, the fisheye lens cannot capture the image directly below the lens, so a blind spot of vision is formed below the lens. In addition, when using a fisheye lens to obtain a panoramic image of the rock of the water diversion tunnel, the resulting image often has significant distortion, especially at the edge of the image, where the object may be over-stretched and deformed. In order to obtain a complete image that is as close to the real scene as possible, the annular image captured by the fisheye lens can be intercepted, and these annular images can be spliced ​​together using image processing technology to obtain an expanded panoramic image. This process usually involves anti-distortion algorithms such as image distortion correction, alignment and fusion.

[0142] In the process of using fisheye lenses to capture annular images for panoramic stitching, the camera's effective pixel utilization is low, resulting in less than 50% of the actual available image range. This pixel loss limits the details and clarity of the image. Moreover, the fisheye lens is usually installed in the center of the shooting device, while the target rock is located in the annular area around the lens. This layout will cause large image distortion during shooting. Even if the anti-distortion algorithm is used to try to restore the original appearance of the image, this process often cannot avoid information loss and image distortion. In addition, when the diameter of the water diversion tunnel is large, due to the fixed position and viewing angle limitations of the fisheye lens, it is easy to cause the resolution of the captured image to be too low and the details cannot be clearly displayed. Finally, since the shooting equipment adopts an integrated design of a transparent glass tube, external environmental factors such as fog, water droplets, and wear on the outer wall of the equipment may have a significant impact on the shooting effect, further reducing the quality of the image.

[0143] Third, when obtaining a panoramic image of the rock in the water diversion tunnel, borehole imaging technology can be used to obtain a panoramic image of the surrounding rock (i.e., the rock around the borehole). This technology is commonly used in industries such as grouting holes (holes used to reinforce foundations), exploration holes (holes used to find mineral resources), and well logging (a technology used to assess the reserves of resources such as oil wells). It should be noted that the fisheye lens provides a perspective that radiates from a certain position in the water diversion tunnel to the surrounding areas, which can show the spatial structure and overall environment inside the water diversion tunnel. Borehole imaging technology provides a radial perspective from the inside of the borehole to the outside, mainly showing the geological conditions around the borehole path.

[0144] Specifically, borehole imaging technology refers to the process of placing borehole imaging equipment into a borehole and scanning the inner wall of the borehole to obtain a panoramic image of the rocks around the borehole. This image not only shows the visual information of the rocks, but also contains depth data and geomagnetic information. The full length of the panoramic image usually refers to the depth of the borehole, which is usually more than 20 meters; the width of the panoramic image is usually the circumference of the borehole. Since the diameter of the borehole is usually not too large, this width is generally less than 1 meter.

[0145] Reference Figure 2 , showing a panoramic image of surrounding rock provided by the prior art. Figure 2 There are two panoramic images of the surrounding rock. N (North), E (East), S (South), and W (West) in the panoramic image of the surrounding rock on the left and the panoramic image of the surrounding rock on the right respectively represent the actual geographical directions corresponding to each part of the panoramic image. 20.6, 20.7, 20.8, 20.9, 21.0, 0.0, 0.1, 0.2, 0.3, and 0.4 in the two surrounding rock images respectively represent the depth data corresponding to each part of the panoramic image.

[0146] Fourth, in the prior art, when identifying rock types in panoramic images of rocks, a full manual labeling method or a deep learning method is usually used to identify rock types. If a full manual labeling method is used to identify rock types, when the borehole is a long and deep hole, that is, the depth of the borehole exceeds 20 meters, the efficiency of identifying rock types is low, and even omissions may occur. If a deep learning method is used to identify rock types, a database containing a large number of panoramic images with labeled rock types must first be established to train a deep learning model to obtain a model for identifying rock types. Specifically, the above method can be used to train a deep learning model with the same structure to obtain three models for identifying single polarized images, orthogonal polarized images, and fused images, respectively. The three models can be called three groups of primary classifiers with the same model structure. The three groups of primary classifiers can be used to construct a fusion classifier that can process multi-source image results, and the fusion classifier can be used to identify rock types. Refer to Figure 3 , shows a schematic diagram of building a multi-source image result fusion classifier provided by the prior art. The construction process of this classifier includes two stages:

[0147] 1. Primary classifier establishment stage: In this stage, three groups of primary classifiers are designed, which have the same model structure and are respectively targeted at three different types of rock images: single polarization images, orthogonal polarization images, and fusion images. The purpose of these three groups of primary classifiers is to perform preliminary identification of the types of their respective rock images. It should be noted that the same model structure can be an MFT-CNN model.

[0148] 2. Integrated fusion classifier construction phase: In the second phase, a multi-source image result fusion classifier is used to integrate the results of the three groups of primary classifiers to produce a final classification result. Figure 3 The "SoftMax" in the figure refers to the output layer of the three sets of primary classifiers; Results refers to the results of the primary classifiers.

[0149] When using deep learning to identify rock types, if the rock type to be identified is not included in the model training database, it is often impossible to accurately identify it. In addition, even for the same type of rock, due to different water content and weathering degree, the color characteristics may vary significantly, resulting in inaccurate rock type identification results.

[0150] Therefore, in order to improve the accuracy of rock type identification, it is necessary to expand the data sources in the model training database. However, when using borehole imaging technology to obtain panoramic images of rocks, only optical direct-viewing images can be obtained, and polarized images cannot be obtained, which limits the accuracy of rock type identification.

[0151] In the prior art, another method for identifying rock types is an image clustering algorithm based on RGB color space. This method divides similar image areas or the entire image into different rock types by analyzing the RGB color information of each pixel in the rock panoramic image. However, when the main colors of the images are similar, the distinguishing ability of this method is weak and it is often difficult to achieve accurate classification. In addition, images of granite and mineral-rich rocks usually show a background color and at least one block color, and the block color is embedded in the background color. When using an image clustering algorithm based on RGB color space to identify these rock images and determine the rock type, if the image is converted into a grayscale image and the average value of the grayscale on the image is calculated, the resulting color will be independent of the original color information of the image. Therefore, the accuracy of using this processed color information to identify the rock type will be affected, resulting in poor recognition effect. Similarly, when applying an image clustering algorithm based on RGB color space, if the image is sampled, the sampled image may not include all the block color information in the original image. This incomplete sampling will also reduce the accuracy when using the sampled image to identify the rock type.

[0152] Fifth, the panoramic image of the rock usually includes cracks and joints. These cracks and joints are cracks in the rock, which appear as fracture surfaces in the panoramic image. These fracture surfaces usually have a certain inclination, that is, the angle between the fracture surface and the horizontal plane. When identifying the inclination in the panoramic image of the rock, the existing technology mainly relies on manual identification to punctuate or mark the cracks and joints on the panoramic image. Then, based on these annotations or marks, the inclination of the cracks and joints is analyzed by geometric analysis or mathematical calculation. However, this manual identification method is inefficient. In addition, the existing technology can also use seismic waves to identify the inclination of cracks and joints, but this method requires the use of professional equipment and is costly. Specifically, the use of seismic waves to identify the inclination is part of the seismic exploration technology, which is called seismic logging or seismic inclination. In actual operation, seismic detectors are usually placed near the wellhead or in the well, and then seismic waves are excited by artificial or natural seismic wave sources. The propagation characteristics of seismic waves underground are recorded by seismometers, and then the data is analyzed through complex signal processing and interpretation techniques to derive the dip angle of the formation and other geological information.

[0153] Reference Figure 4, shows a schematic diagram of a first image acquisition device in an underground engineering scenario provided in an embodiment of the present invention, comprising: a downhole acquisition device, a cable, and a lifting device; the downhole acquisition device is used to acquire hole wall information in a preset hole; the downhole acquisition device is connected to the lifting device through the cable; the lifting device is used to adjust the depth of the downhole acquisition device in the hole through the cable;

[0154] The downhole acquisition equipment includes a cylindrical main structure, an image collector, a pulley, a control device and at least one retractable pulley support rod; the image collector is installed on the cylindrical main structure; one end of the retractable pulley support rod is connected to the side wall of the cylindrical main structure, and the other end is equipped with the pulley; the retractable pulley support rod is located at different orientations of the cylindrical main structure; the pulley is used to contact the wall of the well hole and roll along the wall; the control device is used to adjust the length of the retractable pulley support rod so that the cylindrical main structure is located on the center line of the well hole.

[0155] In an embodiment of the present invention, the first image acquisition device in the underground engineering scene mainly includes three parts: a downhole acquisition device 2, a cable 3, and a lifting device 1. Among them, the downhole acquisition device can enter the inside of the reverse shaft (including the vertical shaft and the inclined shaft) to collect the wall information inside the reverse shaft. The downhole acquisition device and the lifting device can be connected by a cable, and the lifting device can lift the downhole acquisition device into the shaft through the cable, and adjust the depth of the downhole acquisition device in the shaft by adjusting the length of the cable between the downhole acquisition device and the lifting device. Specifically, the lifting device can also include a cable release and control device 1-1, and the lifting device can adjust the length of the cable between the downhole acquisition device and the lifting device through the cable release and control device. The cable release and control device can include a winch, and the cable release and control device can use the winch to retract and release the cable, and count the length of the retracted and released cable to determine the depth of the downhole acquisition device in the shaft.

[0156] Reference Figure 5 , shows a schematic diagram of a downhole acquisition device provided by an embodiment of the present invention. The downhole acquisition device includes a cylindrical main structure, an image collector 2-4, a pulley 2-6, a control device 2-7 and at least one retractable pulley support rod 2-5.

[0157] At least one image collector is mounted on the cylindrical main structure. The image collector may be a camera, and the image collector may be evenly arranged circumferentially on the side wall of the cylindrical main structure. The image collector may capture a panoramic image of the surrounding rock of the cave wall.

[0158] One end of the retractable pulley support rod is connected to the side wall of the cylindrical main structure, and the other end is equipped with at least one pulley. The pulley and the retractable pulley support rod can be connected by a connecting structure. At least one retractable pulley support rod is located at different positions of the cylindrical main structure, and the retractable pulley support rod can be evenly arranged around the cylindrical main structure.

[0159] When the underground acquisition equipment collects information from the hole wall in the hole, the pulley can contact the hole wall and roll along the hole wall. The control device can also adjust the length of different retractable pulley support rods so that the cylindrical main structure is always located at the center line of the hole.

[0160] In an embodiment of the present invention, a schematic diagram of a first image acquisition device in an underground engineering scene includes: a downhole acquisition device, a cable, and a lifting device. The downhole acquisition device is used to collect the wall information in a preset well hole, and the downhole acquisition device is connected to the lifting device through a cable, and the lifting device is used to adjust the depth of the downhole acquisition device in the well hole through the cable. The downhole acquisition device includes a cylindrical main structure, an image collector, a pulley, a control device, and at least one retractable pulley support rod, and the image collector is installed on the cylindrical main structure. One end of the retractable pulley support rod is connected to the side wall of the cylindrical main structure, and the other end is equipped with a pulley. The retractable pulley support rod is located at different positions of the cylindrical main structure, and the pulley is used to contact the wall of the well hole and roll along the wall. The control device is used to adjust the length of the retractable pulley support rod so that the cylindrical main structure is located at the center line of the well hole. The first image acquisition device of the present invention can keep the image collector stably at the central axis position of the tunnel in a 2-3 meter diameter tunnel excavated by reverse drilling. At the same time, the underground acquisition equipment has a certain ability to adapt to depressions, changes in hole diameters, and avoid obstacles and escape from difficulties. When the underground acquisition equipment descends, the pulley and the retractable pulley support rod can be used to move out small potholes on the wall of the tunnel, ensuring that the underground acquisition equipment can efficiently and accurately collect images on the smooth wall of the tunnel, significantly improving the efficiency and accuracy of surrounding rock geological information collection, thereby greatly reducing human errors. The first image acquisition device of the embodiment of the present invention is suitable for vertical and inclined shafts of different hole diameters and depths, can actively avoid obstacles and escape from difficulties, has a wide range of applications and flexibility, and is simple and easy to operate, which not only reduces the cost of surveying, but also significantly improves the safety of construction.

[0161] Furthermore, in any of the above embodiments, a power track is wrapped around the outer side of the pulley; the power track is used to provide power for the rolling of the pulley.

[0162] In an embodiment of the present invention, the downhole acquisition device includes a cylindrical main structure, a pulley, a control device and at least one retractable pulley support rod. One end of the retractable pulley support rod is connected to the side wall of the cylindrical main structure, and the other end is equipped with at least one pulley. At least one retractable pulley support rod is located at different positions of the cylindrical main structure, and the retractable pulley support rod can be evenly arranged around the cylindrical main structure in a circumferential direction. The outer side of the pulley can be wrapped with a power track. When the downhole acquisition device collects cave wall information in the well hole, the pulley can contact the cave wall of the well hole and roll along the cave wall. If the downhole acquisition device falls into a small pit on the cave wall, the pulley can contact the pit on the cave wall. If the outer side of the pulley is wrapped with a power track, the control device can control the power track to provide power to the pulley, so that the pulley rolls out of the pit, and then the downhole acquisition device is out of the pit.

[0163] In the embodiment of the present invention, during the lowering process of the underground collection equipment, the power crawler can provide power for the movement of the underground collection equipment along the central axis of the hole.

[0164] As an example of the present invention, Figure 5 One end of the retractable pulley support rod is connected to the side wall of the cylindrical main structure, and the other end can be connected to the pulley shaft through a connecting structure, and a power crawler 2-2 is wrapped around the outside of the pulley shaft. If the underground collection equipment falls into a small pothole on the cave wall, the power crawler can contact the pothole on the cave wall, and the control device can control the power crawler to provide power for the underground collection equipment to get out of the pothole.

[0165] Further, in any of the above embodiments, a pothole detection device is installed on the lower surface of the cylindrical main structure; the pothole detection device is used to obtain target cave wall information below the downhole acquisition device, and send the target cave wall information to the control device;

[0166] The control device is used to receive the target cave wall information, and determine whether there is a pothole on the cave wall below the downhole acquisition device based on the target cave wall information;

[0167] The control device is used to adjust the length of the retractable pulley support rod so that the cylindrical main structure is located at the center line of the well hole if the pit exists on the hole wall below the downhole acquisition device;

[0168] The control device is used for controlling the power track to provide power to the pulley if the pulley contacts the pothole on the cave wall, so that the pulley rolls out of the pothole.

[0169] In an embodiment of the present invention, a pothole detection device may be installed on the lower surface of the cylindrical main structure of the downhole acquisition device, and the pothole detection device may obtain target cave wall information below the downhole acquisition device and send the target cave wall information to the control device. The control device may receive the target cave wall information and determine whether there is a pothole on the cave wall below the downhole acquisition device based on the target cave wall information. If there is a pothole on the cave wall below the downhole acquisition device, when the downhole acquisition device reaches the pothole, the control device may adjust the length of the retractable pulley support rod so that the downhole acquisition device can pass over or avoid obstacles, so that the cylindrical main structure is located at the center line of the well hole.

[0170] If the underground collection equipment falls into a small pothole on the cave wall, the pulley can contact the pothole on the cave wall. If the outside of the pulley is wrapped with a power track, the control device can control the power track to provide power to the pulley and adjust the length of different retractable pulley support rods to make the pulley roll out of the pothole, and then the underground collection equipment can get out of the pothole.

[0171] As an example of the present invention, Figure 5 The lower surface of the cylindrical main structure can be installed with risk detection equipment 2-3: the risk detection equipment can be a lidar or a panoramic camera to detect whether there are potholes or holes on the cave wall below the downhole collection equipment, and determine the location and depth of the potholes or holes.

[0172] Further, in any of the above embodiments, the retractable pulley support rod includes a retractable support rod, a screw rod, a nut and a drive motor; the drive motor is communicatively connected to the control device; the screw rod has a spiral groove; the nut is connected to the retractable support rod; the drive motor is used to receive control instructions sent by the control device, and drive the screw rod to rotate based on the control instructions; the nut is used to move along the screw rod through the spiral groove when the screw rod rotates, so as to adjust the length of the retractable support rod.

[0173] In an embodiment of the present invention, the length of the retractable pulley support rod can be adjusted so that the cylindrical main structure is located at the center line of the well hole. The retractable pulley support rod may include a retractable support rod, a screw rod, a nut and a drive motor. The drive motor may be a servo motor, which is a motor that can accurately control the speed and position, and it can drive the retractable support rod by controlling the rotation of the screw rod. The drive motor is connected to the control device in communication. The screw rod has a spiral groove, which cooperates with the nut, and the nut is connected to the retractable support rod.

[0174] When the length of the telescopic support rod needs to be changed, the control device can send a control instruction to the drive motor, and the drive motor can receive the control instruction sent by the control device and drive the screw rod to rotate based on the control instruction. When the screw rod rotates, the nut can move along the spiral groove on the screw rod because the nut cooperates with the spiral groove on the screw rod. The screw rod and the nut cooperate to convert the rotational motion of the screw rod into linear motion. When the nut moves along the screw rod, the length of the telescopic support rod is adjusted.

[0175] Furthermore, in any of the above embodiments, the downhole collection equipment includes a circular ring structure; the circular ring structure is located above the cylindrical main structure, and the circular ring structure is connected to the cylindrical main structure via a preset connecting rod; at least one roller is installed on the circular ring structure; the roller is perpendicular to the circular ring structure.

[0176] In an embodiment of the present invention, the downhole collection equipment includes a ring structure; the ring structure is located above the cylindrical main structure, and the ring structure and the cylindrical main structure are connected by a preset connecting rod, and at least one roller is installed on the ring structure, and the roller is perpendicular to the ring structure.

[0177] As an example of the present invention, Figure 5 The underground collection equipment includes a circular ring structure 2-8, on which at least one roller 2-1 is installed, and the circular ring structure is connected to the cylindrical main structure by a connecting rod 2-9. The circular ring structure is also called an anti-roll drag ring. The existence of the anti-roll drag ring can prevent the underground collection equipment from being completely stuck in the pit when encountering large depressions and potholes and being unable to escape. The roller is also called an anti-roll drag ring roller, which can prevent the underground collection equipment from being unable to move smoothly due to excessive friction between the anti-roll drag ring and the hole wall when escaping from large depressions and potholes. The connecting rod uses screws to connect the anti-roll drag ring to the cylindrical main structure.

[0178] Furthermore, in any of the above embodiments, the lifting device includes a first communication device and a power supply device; the power supply device is used to supply power to the downhole acquisition device through the cable; the downhole acquisition device also includes a second communication device; the second communication device is used to send the cave wall information collected by the downhole acquisition device to the first communication device.

[0179] In an embodiment of the present invention, the lifting device may include a first communication device and a power supply device. The cable between the lifting device and the downhole acquisition device may be obtained by winding a live wire, a neutral wire, a ground wire, and a load-bearing rope, and then wrapping it with a heat shrink tubing, and the cable may be used for power supply and load bearing. Therefore, the power supply device may supply power to the downhole acquisition device through the cable.

[0180] The control device of the underground acquisition equipment can integrate a gyroscope, a geomagnetic sensor and a second communication device. The second communication device can be a wireless signal transceiver. The underground acquisition equipment can also collect cave wall information through laser radar, high-definition camera, position sensor and other equipment. The second communication device can send the cave wall information collected by the risk detection equipment, laser radar, sensor and image collector of the underground acquisition equipment to the first communication device, realizing the real-time transmission of the collected data to the ground, which greatly facilitates the monitoring and command work on the ground. Among them, the high-definition camera can collect the surrounding rock image of the cave wall, and the geomagnetic sensor can collect the geomagnetic information in the well hole.

[0181] In an embodiment of the present invention, the first communication device can be integrated into the cable laying and control device. Since the cable laying and control device can use a winch to retract the cable and count the length of the retracted cable to determine the depth of the downhole acquisition device in the wellbore. The cable laying and control device can combine the image information and depth data of the wellbore wall received by the first communication device, splice the image information and depth data into a panoramic image, and evaluate the stability of the wellbore wall and formulate a construction plan by analyzing the panoramic image.

[0182] In the embodiment of the present invention, the staff can send a remote control instruction to the second communication device through the first communication device according to the hole wall information sent by the second communication device to the first communication device, and the second communication device can also send the remote control instruction to the control device. The control device can adjust the length of the retractable pulley support rod according to the remote control instruction so that the cylindrical main structure is located at the center line of the well hole; the control device can also control the power crawler to provide power to the pulley according to the remote control instruction so that the pulley rolls out of the pothole; the control device can also send a control instruction to the drive motor according to the remote control instruction so that the drive motor drives the screw to rotate.

[0183] Reference Figure 6 , shows a flowchart of the steps of an image acquisition method in an underground engineering scene provided in an embodiment of the present invention, which is applied to a first image acquisition device in an underground engineering scene, wherein the first image acquisition device comprises a downhole acquisition device, a cable and a lifting device; the downhole acquisition device is connected to the lifting device through the cable; the downhole acquisition device comprises a cylindrical main structure, an image collector, a pulley, a control device and at least one retractable pulley support rod; the image collector is mounted on the cylindrical main structure; one end of the retractable pulley support rod is connected to the side wall of the cylindrical main structure, and the other end is equipped with the pulley; the retractable pulley support rod is located at different positions of the cylindrical main structure; the pulley is used to contact the wall of a preset well hole and roll along the wall; specifically, the following steps may be included:

[0184] Step 601, controlling the lifting device to change the length of the cable between the lifting device and the downhole collection device, and adjusting the depth of the downhole collection device in the well hole;

[0185] Step 602, using the image collector of the downhole acquisition equipment to collect the hole wall information in the hole;

[0186] Step 603: Use the control device to adjust the length of the retractable pulley support rod so that the cylindrical main structure is located on the center line of the wellbore.

[0187] In an embodiment of the present invention, the first image acquisition device in the underground engineering scene includes a downhole acquisition device, a cable and a lifting device. The downhole acquisition device is connected to the lifting device through a cable. The downhole acquisition device includes a cylindrical main structure, an image collector, a pulley, a control device and at least one retractable pulley support rod. The image collector is installed on the cylindrical main structure, one end of the retractable pulley support rod is connected to the side wall of the cylindrical main structure, and the other end is installed with a pulley. The retractable pulley support rod is located at different positions of the cylindrical main structure, and the retractable pulley support rod can be evenly arranged in a circumferential direction around the cylindrical main structure. The pulley can contact the wall of the anti-well hole and roll along the wall.

[0188] In the embodiment of the present invention, the lifting device can be controlled to change the length of the cable between the lifting device and the downhole acquisition device, adjust the depth of the downhole acquisition device in the wellbore, use the image collector of the downhole acquisition device to collect the hole wall information in the wellbore, and use the control device to adjust the length of the retractable pulley support rod so that the cylindrical main structure is located on the center line of the wellbore.

[0189] It should be noted that before using the lifting equipment to lift the downhole collection equipment into the wellbore, the appropriate length of the retractable pulley support rod can be selected according to the specific size and geological conditions of the wellbore to ensure the stable operation of the downhole collection equipment, and check whether the lifting equipment and the downhole collection equipment are structurally intact and function normally.

[0190] Further, in any of the above embodiments, the outer side of the pulley is wrapped with a power track; the method comprises:

[0191] Sub-step S11, using the power track to provide power for the rolling of the pulley.

[0192] In the embodiment of the present invention, if the underground collection equipment falls into a small pit on the cave wall, the pulley can contact the pit on the cave wall. If the outer side of the pulley is wrapped with a power track, the control device can use the power track to provide power to the pulley, so that the pulley rolls out of the pit, and then the underground collection equipment is out of the pit.

[0193] Further, in any of the above embodiments, a pothole detection device is installed on the lower surface of the cylindrical main structure; and the method comprises:

[0194] Sub-step S21, using the pothole detection device to obtain target cave wall information below the downhole acquisition device, and sending the target cave wall information to the control device;

[0195] Sub-step S22, using the control device to receive the target cave wall information, and judging whether there is a pothole on the cave wall below the downhole acquisition device based on the target cave wall information;

[0196] Sub-step S23, if the pit exists on the hole wall below the downhole acquisition device, use the control device to adjust the length of the retractable pulley support rod so that the cylindrical main structure is located on the center line of the hole.

[0197] In an embodiment of the present invention, a pothole detection device is installed on the lower surface of the cylindrical main structure. The downhole acquisition device can use the pothole detection device to obtain the target cave wall information below the downhole acquisition device, and send the target cave wall information to the control device. The downhole acquisition device can use the control device to receive the target cave wall information, and determine whether there are potholes in the cave wall below the downhole acquisition device based on the target cave wall information. If there are potholes in the cave wall below the downhole acquisition device, the downhole acquisition device uses the control device to adjust the length of the retractable pulley support rod so that the cylindrical main structure is located at the center line of the wellbore. In an embodiment of the present invention, during the lowering process of the downhole acquisition device, the extension and retraction of the retractable pulley support rod can be accurately controlled to ensure that the downhole acquisition device is perpendicular to the cave wall.

[0198] Furthermore, in any of the above embodiments, the method includes:

[0199] Sub-step S31, if the pulley contacts the pothole on the cave wall, the control device controls the power track to provide power to the pulley so that the pulley rolls out of the pothole.

[0200] In the embodiment of the present invention, if the underground collection equipment falls into a small pothole on the cave wall, the pulley can contact the pothole on the cave wall. If the outer side of the pulley is wrapped with a power track, the underground collection equipment can control the power track to provide power to the pulley through the control device, so that the pulley rolls out of the pothole, and then the underground collection equipment is out of the pothole.

[0201] Further, in any of the above embodiments, the retractable pulley support rod comprises a retractable support rod, a screw rod, a nut and a drive motor; the drive motor is communicatively connected to the control device; the screw rod has a spiral groove; the nut is connected to the retractable support rod; the method comprises:

[0202] Sub-step S41, using the control device to send a control instruction to the drive motor;

[0203] Sub-step S42, using the driving motor to receive the control instruction, and driving the screw to rotate based on the control instruction; during the rotation of the screw, the nut moves along the screw through the spiral groove; during the movement of the nut along the screw, the length of the retractable support rod changes.

[0204] In an embodiment of the present invention, the retractable pulley support rod may include a retractable support rod, a screw rod, a nut and a drive motor. The drive motor may be a servo motor, which can drive the retractable support rod to extend and retract by controlling the rotation of the screw rod. The drive motor is connected to the control device in communication. The screw rod has a spiral groove, which cooperates with the nut, and the nut is connected to the retractable support rod.

[0205] When the length of the telescopic support rod needs to be changed, the downhole acquisition device can send a control instruction to the drive motor through the control device, and the drive motor can receive the control instruction sent by the control device and drive the screw to rotate based on the control instruction. When the screw rotates, the nut can move along the spiral groove on the screw because the nut cooperates with the spiral groove on the screw. The screw and the nut cooperate to convert the rotational motion of the screw into linear motion. When the nut moves along the screw, the length of the telescopic support rod is adjusted.

[0206] Further, in any of the above embodiments, the lifting device includes a first communication device and a power supply device; the downhole acquisition device also includes a second communication device; and the method includes:

[0207] Sub-step S51, using the power supply device to supply power to the downhole acquisition device through the cable;

[0208] Sub-step S52: using the second communication device to send the hole wall information collected by the downhole collection device to the first communication device.

[0209] In an embodiment of the present invention, the lifting device may include a first communication device and a power supply device. The cable between the lifting device and the downhole acquisition device may be obtained by winding a live wire, a neutral wire, a ground wire, and a load-bearing rope, and then wrapping it with a heat shrink tubing, and the cable may be used for power supply and load bearing. Therefore, the power supply device may supply power to the downhole acquisition device through the cable.

[0210] The control device of the underground acquisition equipment may integrate a gyroscope, a geomagnetic sensor and a second communication device. The second communication device may be a wireless signal transceiver. The underground acquisition equipment may also collect cave wall information through devices such as laser radar, high-definition camera, and position sensor. The second communication device may send cave wall information collected by risk detection equipment, laser radar, sensor, image collector and other devices of the underground acquisition equipment to the first communication device.

[0211] Reference Figure 7 , shows a schematic diagram of a second image acquisition device in an underground engineering scenario provided in an embodiment of the present invention, including: a cylindrical main body structure and at least one wide-angle straight-shot lens, the wide-angle straight-shot lens is evenly arranged on the side wall of the cylindrical main body structure, and the wide-angle straight-shot lens is located on any plane parallel to the upper surface of the cylindrical main body structure.

[0212] In an embodiment of the present invention, the second image acquisition device in the underground engineering scene includes a cylindrical main structure, and at least one wide-angle straight-shot lens can be arranged on the cylindrical main structure. At least one wide-angle straight-shot lens is evenly arranged on the side wall of the cylindrical main structure, and the wide-angle straight-shot lens is located on any plane parallel to the upper surface of the cylindrical main structure.

[0213] Figure 7 The reference numeral 1 in the figure represents a wide-angle straight-shot lens. It should be noted that, compared with a fisheye lens, a wide-angle straight-shot lens usually has less distortion and is closer to the natural perspective of the human eye.

[0214] In a specific example, the second image acquisition device in the underground engineering scene can capture images of the tunnel wall. The second image acquisition device includes a cylindrical main structure, on which three wide-angle straight-shot lenses are arranged, and the three wide-angle straight-shot lenses are evenly arranged on the side walls of the cylindrical main structure, and the three wide-angle straight-shot lenses are located on any plane parallel to the upper surface of the cylindrical main structure to obtain images of different areas of the tunnel wall. The wide-angle angle of each wide-angle straight-shot lens is not less than 130 degrees, which can cover a larger range of tunnel walls.

[0215] In an embodiment of the present invention, the second image acquisition device in the underground engineering scene includes a cylindrical main structure and at least one wide-angle straight-shot lens. The wide-angle straight-shot lenses are evenly arranged on the side walls of the cylindrical main structure, and the wide-angle straight-shot lenses are located on any plane parallel to the upper surface of the cylindrical main structure. The second image acquisition device includes multiple wide-angle straight-shot lenses. By adding wide-angle straight-shot lenses, the edge distortion of the image taken by each wide-angle straight-shot lens can be reduced. The wide angle of each lens is not less than 130 degrees, and they are evenly arranged circumferentially, so as to achieve a comprehensive shooting of the wall of a large-diameter circular tunnel. In addition, the wide-angle straight-shot lenses evenly arranged circumferentially face the wall of the tunnel, and all pixels of each wide-angle straight-shot lens are effective pixels, which greatly improves the image quality and ensures the integrity and clarity of the information.

[0216] Further, in any of the above embodiments, a glass cover, a heat dissipation and demisting air duct and a fill light are installed on the cylindrical main structure;

[0217] The glass cover is installed on the outside of the wide-angle straight-shot lens; the glass cover is used to protect the wide-angle straight-shot lens;

[0218] One end of the heat dissipation and demisting air duct is connected to the cylindrical main structure, and the other end faces the glass cover; the heat dissipation and demisting air duct is used to remove the mist and / or dust on the glass cover by blowing air toward the glass cover;

[0219] The fill-in lights are evenly arranged on the side walls of the cylindrical main structure, and the fill-in lights are located on any plane parallel to the upper surface of the cylindrical main structure.

[0220] Figure 7 The second image acquisition device in the underground engineering scene includes a cylindrical main structure and at least one wide-angle straight-shot lens. A glass cover 2, a heat dissipation and demisting air duct 3, and a fill light 4 can be installed on the cylindrical main structure. Among them, the glass cover is installed on the outside of the wide-angle straight-shot lens, and the glass cover can protect the wide-angle straight-shot lens, realize the waterproofness of the wide-angle straight-shot lens and prevent scratches. In a specific example, the glass cover can be a replaceable organic glass cover. After the glass cover is worn, it can be replaced.

[0221] The fill light is evenly arranged in a ring shape on the side wall of the cylindrical main structure, and the fill light is located on any plane parallel to the upper surface of the cylindrical main structure. The fill light can be used for lighting in a dark tunnel and for fill light in a low-light tunnel. The fill light can be an LED fill light. Since the fill light is arranged in a ring shape, the fill light can fully cover the 360-degree shooting object, thereby ensuring uniform brightness of the shooting object.

[0222] One end of the heat dissipation and demisting air duct is connected to the cylindrical main structure, and the other end faces the glass cover. The heat dissipation and demisting air duct can blow air to the glass cover to remove the fog and / or dust on the glass cover. The fill light generates heat when filling light. If the heat dissipation and demisting air duct is working and the fill light is turned on, the heat dissipation and demisting air duct can also guide the hot air around the fill light and blow it to the glass cover.

[0223] In the embodiment of the present invention, the second image acquisition device may further include an ultrasonic radar or a laser radar to detect the distance between the second image acquisition device and the cave wall in all directions and the shape change of the cave wall.

[0224] In the embodiment of the present invention, the heat dissipation and defogging duct and the LED fill light are combined to solve the heat dissipation of the LED fill light and the defogging of the glass cover at one time. At the same time, the use of the replaceable organic glass cover solves the problem that the traditional integrated glass is easily scratched by the rock wall, resulting in poor image quality.

[0225] Furthermore, in any of the above embodiments, a control device is arranged on the cylindrical main structure; the control device is used to adjust the light intensity of the fill light according to the ambient brightness around the wide-angle straight-shot lens, and adjust the blowing intensity of the heat dissipation and defogger air duct according to the fogging state and / or cleaning state of the glass cover.

[0226] Figure 7 The second image acquisition device in the underground engineering scene includes a cylindrical main structure and at least one wide-angle straight-shot lens. A control device 5 can be arranged on the upper surface of the cylindrical main structure. The control device can be a cylindrical structure, and a control system can be integrated in the cylindrical structure.

[0227] The second image acquisition device may include a sensor, which can collect data on the ambient brightness around the wide-angle straight-shot lens and the fogging state and / or cleanliness state of the glass cover, and send the data on the ambient brightness around the wide-angle straight-shot lens and the fogging state and / or cleanliness state of the glass cover to the control device. The control device can adjust the light intensity of the fill light according to the ambient brightness around the wide-angle straight-shot lens, and can also adjust the blowing intensity of the heat dissipation and defogging air duct according to the fogging state and / or cleanliness state of the glass cover.

[0228] In addition, the control device can also be connected to the communication device of the second image acquisition device. The control device can receive a light intensity adjustment instruction or a wind intensity adjustment instruction sent by a staff member through another communication device through the communication device. The control device can adjust the light intensity of the fill light according to the light intensity adjustment instruction, and can also adjust the wind intensity of the heat dissipation and demisting air duct according to the wind intensity adjustment instruction.

[0229] In an embodiment of the present invention, the control device may further include a photosensor. The photosensor may obtain light intensity data of the environment surrounding the wide-angle straight-shot lens and send the light intensity data to the control device, and the control device may automatically adjust the light intensity of the fill light according to the light intensity data through a preset algorithm.

[0230] Reference Figure 8 , shows a flowchart of the steps of another image acquisition method in an underground engineering scene provided in an embodiment of the present invention, which is applied to a second image acquisition device in an underground engineering scene, wherein the second image acquisition device includes a cylindrical main structure and at least one wide-angle straight-shot lens, wherein the wide-angle straight-shot lens is evenly arranged on the side wall of the cylindrical main structure, and the wide-angle straight-shot lens is located on any plane parallel to the upper surface of the cylindrical main structure, and specifically may include the following steps:

[0231] Step 801, obtaining an image taken by at least one wide-angle straight-shot lens; the images are located in different coordinate spaces; and there is an overlapping area between any two adjacent images taken by the wide-angle straight-shot lens;

[0232] In an embodiment of the present invention, the second image acquisition device includes a cylindrical main structure and at least one wide-angle straight-shot lens, and the wide-angle straight-shot lenses are evenly arranged on the side walls of the cylindrical main structure in a circumferential direction. The second image acquisition device may also include a control device, and the control device may obtain an image taken by at least one wide-angle straight-shot lens. Different wide-angle straight-shot lenses are located in different positions and have different shooting angles, so the coordinate spaces of the images taken by different wide-angle straight-shot lenses are different. There is an overlapping area between the images taken by any two adjacent wide-angle straight-shot lenses.

[0233] In a specific example, the second image acquisition device includes three wide-angle straight-shot lenses, which are evenly arranged in a circumferential direction, and the wide angle of each lens is 130 degrees. The second image acquisition device is used to photograph the wall of a circular tunnel to obtain three images of different areas. Each image contains a portion of the tunnel wall, and there is an overlapping area between the images taken by adjacent wide-angle straight-shot lenses. The image taken by each wide-angle straight-shot lens overlaps the image taken by the two adjacent wide-angle straight-shot lenses by 5 degrees.

[0234] Step 802, extracting at least one feature point in the overlapping area and obtaining a descriptor of the feature point; the feature point is a pixel point with visual features in the overlapping area; the descriptor of the feature point includes image information around the feature point;

[0235] In an embodiment of the present invention, there is an overlapping area between images taken by adjacent wide-angle straight-shot lenses, and the control device can extract at least one feature point in the overlapping area and obtain a descriptor of the feature point. It should be noted that the feature points are pixels with visual features in the overlapping area, which can be identified and extracted in the image. The feature points of the overlapping area refer to specific points that exist in both images and can be aligned when stitched. These points are usually points with obvious visual features in the image, such as corner points, edge points, etc. The descriptor of the feature point includes image information around the feature point.

[0236] Step 803, pairing the feature points based on the image information around the feature points to obtain at least one target feature point pair that matches each other;

[0237] In an embodiment of the present invention, for feature points in any group of two adjacent images taken by wide-angle straight-shot lenses, the control device can determine whether the feature points located in the overlapping area of ​​one of the images and the feature points located in the overlapping area of ​​the other image are the same feature points based on the descriptors of the feature points, and pair the feature points that are the same feature points to obtain at least one target feature point pair. Specifically, if a feature point located in the overlapping area of ​​one of the images and a feature point located in the overlapping area of ​​the other image are the same feature point, the two feature points match each other, and the two feature points are paired to obtain a target feature point pair. It should be noted that the control device can use SIFT (Scale-Invariant Feature Transform) feature detector and BFMatcher (Brute-Force Matcher) to pair feature points.

[0238] Step 804, using the target feature point pair, transforming the image into the same coordinate space;

[0239] In an embodiment of the present invention, since the images taken by different wide-angle straight-shooting lenses are located in different coordinate spaces, in order to stitch the images taken by different wide-angle straight-shooting lenses, the control device needs to convert the images taken by different wide-angle straight-shooting lenses into the same coordinate space. Specifically, since there are overlapping areas between the images taken by adjacent wide-angle straight-shooting lenses, the target feature point pairs in the overlapping areas can be used to convert the images taken by different wide-angle straight-shooting lenses into the same coordinate space. Converting the images taken by different wide-angle straight-shooting lenses into the same coordinate space is to align the images taken by different wide-angle straight-shooting lenses.

[0240] Step 805: stitching the images in the same coordinate space to obtain a target image.

[0241] In an embodiment of the present invention, the control device can use image processing software or a programming library to stitch images located in the same coordinate space to obtain a target image. The target image refers to a panoramic image or annular image of the tunnel. Specifically, Python and OpenCV libraries can be used to align and stitch images. Both Python and OpenCV libraries can be used for image processing. Python, as a programming language, provides an environment for writing and executing image processing codes, while OpenCV, as an image processing library, provides tools for implementing various image processing algorithms.

[0242] In an embodiment of the present invention, the second image acquisition device includes a cylindrical main structure and at least one wide-angle straight-shot lens, the wide-angle straight-shot lens is evenly arranged on the side wall of the cylindrical main structure, and the wide-angle straight-shot lens is located on any plane parallel to the upper surface of the cylindrical main structure, and at least one image taken by the wide-angle straight-shot lens is obtained, and the coordinate spaces of different images are different, and there is an overlapping area between any two adjacent images taken by the wide-angle straight-shot lens. At least one feature point in the overlapping area is extracted, and a descriptor of the feature point is obtained, the feature point is a pixel point with visual features in the overlapping area, and the descriptor of the feature point includes the image information around the feature point. Based on the image information around the feature point, the feature points are paired to obtain at least one target feature point pair that matches each other, and the target feature point pair is used to convert the image into the same coordinate space, and the images located in the same coordinate space are spliced ​​to obtain the target image. The present invention realizes efficient and accurate acquisition of panoramic images of tunnel rocks by adopting a shooting method in which at least one wide-angle straight-shot lens is evenly arranged in an annular direction, combined with image splicing technology, thereby improving the work efficiency of tunnel engineering and geological survey. In addition, there is an overlapping area in the images taken by at least one wide-angle straight-shot lens, which ensures that the images are accurately positioned and have a small degree of distortion during the stitching process.

[0243] Further, in any of the above embodiments, step 802 includes:

[0244] Sub-step S61, extracting feature points in the overlapping area using a scale-invariant feature transformation algorithm;

[0245] Sub-step S62, calculating the gradient direction and gradient magnitude of the pixel points around the feature point;

[0246] Sub-step S63, obtaining a descriptor of the feature point based on the gradient direction and the gradient magnitude.

[0247] In an embodiment of the present invention, the control device can use image processing technologies such as SIFT (Scale-Invariant Feature Transform), SURF (Speeded Up Robust Features) or ORB (Oriented FAST and Rotated BRIEF) to extract feature points of the overlapping area of ​​each image, obtain descriptors of the feature points, and pair the feature points using the descriptors of the feature points.

[0248] Regarding obtaining the descriptor of the feature point, the control device can first select a local area containing the feature point, which is usually a small square or rectangle and is large enough to contain the detailed information around the feature point. For each pixel around the feature point, calculate its gradient in the horizontal and vertical directions. The gradient is a vector containing two components: the gradient magnitude and the gradient direction. The gradient magnitude indicates the magnitude of the change around the pixel, while the gradient direction indicates the main direction of the change. The pixels around the feature point are classified according to their gradient directions, and the number of pixels in each direction is counted to construct a gradient direction histogram. This usually involves quantizing the gradient direction into a finite number of bins, each bin representing a direction. The statistical information in the gradient direction histogram is converted into a vector, which is the descriptor of the feature point. In order to improve the robustness of the descriptor, the descriptor can be normalized, that is, each dimension of the descriptor is divided by its length to eliminate the influence of image size and lighting conditions.

[0249] In the process of constructing the gradient direction histogram, the gradient magnitude is used to weight the influence of each pixel on the histogram. The gradient magnitude indicates the intensity of the change around the pixel. A larger gradient value means that the pixel should have a greater influence in the construction of the histogram.

[0250] Further, in any of the above embodiments, step 804 includes:

[0251] Sub-step S71, using the target feature point pair, calculating the homography matrix between any two adjacent images taken by the wide-angle straight-shot lens;

[0252] Sub-step S72: transforming the image into the same coordinate space based on the homography matrix.

[0253] In an embodiment of the present invention, the control device can use the target feature point pairs to calculate the homography matrix between any two adjacent images taken by the wide-angle straight-shot lens, and based on the homography matrix, convert the images taken by different wide-angle straight-shot lenses into the same coordinate space.

[0254] Regarding the calculation of the homography matrix, at least four target feature point pairs can be selected. For each target feature point pair, an equation can be established, which contains the pixel coordinates of the two feature points and their corresponding mapping relationship. These equations can be used to construct a linear equation system, which contains a 3x3 homography matrix. Solving this system of equations can obtain the homography matrix. The random sampling consensus algorithm (RANSAC) can also be used to improve the accuracy of the homography matrix and eliminate the influence of mismatched point pairs. During the calculation of the homography matrix, the number of target feature point pairs and the parameters of RANSAC can be adjusted according to actual conditions.

[0255] The homography matrix describes the mapping relationship between images in two different coordinate spaces. The homography matrix is ​​a 3x3 matrix that can map a point (x, y) on one image to a point (x′, y′) on another image through transformation. The mathematical expression is:

[0256]

[0257] Where H is the homography matrix.

[0258] Further, in any of the above embodiments, sub-step S72 includes:

[0259] Sub-step S81, for any group of two adjacent images taken by the wide-angle straight-shot lens, taking the two adjacent images taken by the wide-angle straight-shot lens as the first image and the second image respectively;

[0260] Sub-step S82, taking the coordinate space where the first image is located as a first coordinate space, and taking a pixel point in the first image as a first pixel point;

[0261] Sub-step S83, taking the coordinate space where the second image is located as the second coordinate space;

[0262] Sub-step S84, obtaining coordinate information of the first pixel point in the first coordinate space;

[0263] Sub-step S85, based on the coordinate information of the first pixel point in the first coordinate space, using the homography matrix, determining the coordinate information of the first pixel point in the second coordinate space;

[0264] Sub-step S86: based on the coordinate information of the first pixel point in the second coordinate space, convert the first image from the first coordinate space to the second coordinate space.

[0265] In the embodiment of the present invention, for any set of two adjacent images taken by a wide-angle straight-shot lens, the two adjacent images taken by the wide-angle straight-shot lens can be used as the first image and the second image respectively. In the process of converting the first image and the second image into the same coordinate space, the first image and the second image can be both converted to the coordinate space of the first image, or the first image and the second image can be both converted to the coordinate space of the second image.

[0266] If both the first image and the second image are converted to the coordinate space of the second image, the coordinate space where the first image is located can be used as the first coordinate space, the pixel points in the first image can be used as the first pixel points, and the coordinate space where the second image is located can be used as the second coordinate space. Then, the coordinate information of the first pixel point in the first coordinate space is obtained; since the homography matrix describes the mapping relationship between images in two different coordinate spaces, based on the coordinate information of the first pixel point in the first coordinate space, the coordinate information of the first pixel point in the second coordinate space can be determined using the homography matrix. Based on the coordinate information of the first pixel point in the second coordinate space, the first image is converted from the first coordinate space to the second coordinate space.

[0267] Further, in any of the above embodiments, step 805 includes:

[0268] Sub-step S91, improving the clarity of the first image and the second image by adjusting the brightness difference between any two adjacent pixels in the first image and the second image respectively;

[0269] Sub-step S92: for any first pixel point located in a non-overlapping area between the first image and the second image, copy the first pixel point onto the plane where the second image is located.

[0270] In the embodiment of the present invention, in the process of splicing the first image and the second image located in the same coordinate space to obtain the target image, the clarity of the first image and the second image can be improved by adjusting the brightness difference between any two adjacent pixels in the first image and the second image. For any first pixel located in the non-overlapping area of ​​the first image and the second image, the control device copies the first pixel to the plane where the second image is located.

[0271] Further, in any of the above embodiments, step 805 includes:

[0272] Sub-step S101, for any first pixel point located in the overlapping area of ​​the first image and the second image, determining the target coordinates of the first pixel point on the plane where the second image is located based on the homography matrix;

[0273] Sub-step S102: moving the first pixel point to the target coordinates.

[0274] In an embodiment of the present invention, in the process of splicing a first image and a second image located in the same coordinate space to obtain a target image, for any first pixel point located in the overlapping area of ​​the first image and the second image, since the homography matrix describes the mapping relationship between the first image and the second image located in the same coordinate space, based on the homography matrix, the target coordinates of the first pixel point in the first image on the plane where the second image is located can be determined, and the first pixel point can be moved to the target coordinates. It should be noted that the overlapping area is usually a similar part of the two images, and they will overlap in the spliced ​​target image.

[0275] Further, in any of the above embodiments, there is a second pixel point of the second image at the target coordinates; after step 805, the following steps are included:

[0276] Sub-step S111, improving the clarity and consistency of the target image by fusing the first pixel point and the second pixel point.

[0277] In an embodiment of the present invention, after moving a first pixel point in a first image to a target coordinate on a plane where a second image is located, the clarity and consistency of the target image are improved by fusing the first pixel point with a second pixel point of the second image at the target coordinate.

[0278] In the embodiment of the present invention, a multi-band blending method can be used to smoothly transition the overlapping area. The following is the code to implement multi-band blending:

[0279] import cv2#Import OpenCV library (cv2)

[0280] import numpy as np#Import NumPy library

[0281] #Assume that you already have aligned images aligned_img1 and img2

[0282] # Find the start and end points of the overlapping area

[0283] start_point = img1.shape[1] # Starting point of the overlapping area

[0284] end_point = start_point + img2.shape[1] / / 2# The end point of the overlapping area. Here, it is assumed that the overlapping area is half the width of img2.

[0285] #Create a mask to apply fusion on overlapping areas

[0286] mask=np.zeros_like(aligned_img1)

[0287] mask[0:img2.shape[0],start_point:end_point]=1

[0288] # Apply multi-band fusion

[0289] blended_image=cv2.detailEnhance(aligned_img1,sigma_s=10,sigma_r=0.15)

[0290] blended_image=cv2.detailEnhance(img2,sigma_s=10,sigma_r=0.15)

[0291] blended_image=cv2.seamlessClone(blended_image,aligned_img1,mask,(img1.shape[1],0),cv2.NORMAL_CLONE)

[0292] # Display the fused image

[0293] cv2.imshow('Blended Image',blended_image)

[0294] cv2.waitKey(0)

[0295] cv2.destroyAllWindows()

[0296] Among them, the cv2.detailEnhance function is used to enhance the details of the image, and the cv2.seamlessClone function is used to achieve seamless cloning and smooth transition in the overlapping area.

[0297] It should be noted that in the process of realizing multi-band fusion, it is necessary to adjust the fusion parameters according to the specific situation of the image, or try different fusion techniques. For example, more advanced fusion algorithms such as Gradient Domain Fusion or Laplacian Pyramid Blending can be used to obtain better fusion effects. Image fusion is a complex process and may require multiple iterations and adjustments to achieve satisfactory results. In actual operation, factors such as illumination consistency and color correction may also need to be considered to further improve the quality of the stitched image.

[0298] Further, in any of the above embodiments, a glass cover, a heat dissipation and defogging air duct and a fill light are installed on the cylindrical main structure; the glass cover is installed on the outside of the wide-angle straight-shot lens; the glass cover is used to protect the wide-angle straight-shot lens; one end of the heat dissipation and defogging air duct is connected to the cylindrical main structure, and the other end faces the glass cover; step 801 includes:

[0299] Sub-step S121, using the heat dissipation and demisting air duct to blow air toward the glass cover to remove fog and / or dust on the glass cover;

[0300] Sub-step S122, using the fill light to provide fill light for the wide-angle straight-shot lens.

[0301] In an embodiment of the present invention, a glass cover, a heat dissipation and defogging air duct, and a fill light can be installed on the cylindrical main structure of the second image acquisition device. The glass cover can be installed on the outside of the wide-angle straight-shooting lens to protect the wide-angle straight-shooting lens. One end of the heat dissipation and defogging air duct is connected to the cylindrical main structure, and the other end faces the glass cover. The heat dissipation and defogging air duct can blow air to the glass cover to remove the fog and / or dust on the glass cover. The fill light is evenly arranged on the side wall of the cylindrical main structure, and the fill light is located on any plane parallel to the upper surface of the cylindrical main structure.

[0302] When the second image acquisition device obtains an image taken by at least one wide-angle straight-shooting lens, the heat dissipation and defogger duct can be used to blow air to the glass cover to remove fog and / or dust on the glass cover, and the fill light can be used to fill in the light for the wide-angle straight-shooting lens.

[0303] Further, in any of the above embodiments, a control device is arranged on the cylindrical main structure; sub-step S121 includes:

[0304] Sub-step S131, adjusting the blowing intensity of the heat dissipation and demisting air duct by using the control device according to the fogging state and / or cleaning state of the glass cover;

[0305] Sub-step S122 includes:

[0306] Sub-step S141, adjusting the light intensity of the fill light using the control device according to the ambient brightness around the wide-angle straight-shot lens.

[0307] In an embodiment of the present invention, a control device is arranged on the cylindrical main structure. When the second image acquisition device acquires an image taken by at least one wide-angle straight-shot lens, the control device can be used to adjust the blowing intensity of the heat dissipation and defogging air duct according to the fogging state and / or cleaning state of the glass cover, and the control device can be used to adjust the light intensity of the fill light according to the ambient brightness around the wide-angle straight-shot lens.

[0308] Reference Fig. 9 , shows a flowchart of the steps of a geological data processing method in an underground engineering scenario provided in an embodiment of the present invention, which may specifically include the following steps:

[0309] Step 901, obtaining a rectangular image of a preset rock, and dividing the rectangular image into at least one strip image; the rectangular image includes at least one fracture surface;

[0310] In the embodiment of the present invention, the rectangular image of the rock may be acquired by using the first image acquisition device or the second image acquisition device, or may be acquired by processing the image acquired by the first image acquisition device or the second image acquisition device.

[0311] The rectangular image of the rock can also be obtained by using a borehole imaging device to capture real-time image information of the inside of the borehole during the drilling process. These images can show various geological features on the borehole wall, including rock type, structure, and bedding. The borehole imaging device continuously shoots along the length of the borehole to obtain a panoramic image of the surrounding rock inside the entire borehole, that is, a panoramic image of the rock. Since the borehole is cylindrical, the panoramic image on the cylindrical surface is unfolded into a rectangular plane along the central axis of the borehole or the north direction. The unfolded image can be named Image A, which is a rectangular image of the rock. Among them, the north direction is a reference direction inside the borehole, which can be determined by using a compass or other navigation equipment. The top of the unfolded rectangular image corresponds to the geographic north.

[0312] This image retains the complete visual information of the surrounding rock inside the borehole, but its shape is transformed from a cylindrical surface to a rectangular plane. If the circumference of the borehole is D and the depth of the borehole is L, then the width of the rectangular image A is D and the height of the rectangular image A is L.

[0313] In an embodiment of the present invention, image A obtained using borehole imaging technology is preprocessed to identify the type of rock in the image. Specifically, first, the width pixel number w of image A is determined, that is, the number of pixels of image A in the horizontal direction, which represents the size of the image width in pixels. For example, if the width pixel number of image A is 1024, it means that image A contains 1024 pixels from left to right. Then, image A is cut into a plurality of narrower strip images from the top to the bottom, and the height h' of each strip image is set to w / n. The larger the value of n, the higher the accuracy of identifying the type of rock, but the recognition speed will be correspondingly slower. It should be noted that these strip images can be numbered A'-x in order from top to bottom, where x starts from 1 and increases in sequence, and the maximum number is L / D.

[0314] In the embodiment of the present invention, there is at least one fracture surface in the rectangular image of the rock, and the rectangular image can be divided into at least one strip image, and each strip image may have a fracture surface. In a specific example, a rectangular image with a width of D and a height of L can be divided into a plurality of strip images with a width of D and a height of 1 / 2D.

[0315] Step 902, obtaining color data and texture data of the rock on the strip image, and gradient amplitude of pixel points in the strip image;

[0316] In the embodiment of the present invention, color data extraction is performed on all the strip images to obtain color data of each strip image; and texture data extraction is performed on all the strip images to obtain texture data of each strip image.

[0317] In the embodiment of the present invention, when color data extraction is performed on all strip images to obtain color data of each strip image, a rectangular image block with a preset side length can be extracted at any position of the strip image, and the values ​​of the red color channel, the green color channel, and the blue color channel of any pixel in the rectangular image block can be obtained. Based on the values ​​of the red color channel, the green color channel, and the blue color channel, the color moments of the red color channel, the green color channel, and the blue color channel are determined.

[0318] Based on the color moments of the red color channel, the green color channel, and the blue color channel, the mean, variance, and skewness of the red color channel, the green color channel, and the blue color channel can be determined respectively, and the mean, variance, and skewness of the red color channel, the green color channel, and the blue color channel can be used as color data of the rock in the strip image.

[0319] In a specific example, any position may be the geometric center of the strip image. The rectangular image block with a preset side length may be a square image block with a preset side length of half the height of the strip image. In each strip image, a square area with a side length of h' / 2 is extracted with the geometric center of the image as the center, and the red (R), green (G), and blue (B) color values ​​of each pixel in the area, i.e., the values ​​of the red color channel, the green color channel, and the blue color channel, are read.

[0320] Next, based on the values ​​of the red color channel, the green color channel and the blue color channel, the color moments of the red color channel, the green color channel and the blue color channel are calculated. From the color moments, the mean, variance and skewness of the three color channels of red, green and blue can be obtained respectively, and these 9 data will be used as the color data of the bar image. Among them, the color moment is a commonly used color feature extraction method in image analysis, which characterizes the color distribution of the image by calculating the statistical moments of the color channel. The mean reflects the overall brightness or color intensity of the color channel, the variance describes the discrete degree of the color value, that is, the degree of change or mixing of the color, and the skewness indicates the degree of skewness of the color distribution, that is, the asymmetry of the color value distribution. It should be noted that the color moment usually includes first-order moment, second-order moment and third-order moment. The mean is the first-order moment, the variance is the second-order moment, and the skewness is the third-order moment.

[0321] In an embodiment of the present invention, when texture data extraction is performed on all strip images to obtain texture data of each strip image, Fourier transform can be performed on the strip image to obtain a spectrum diagram of the strip image, which includes at least one frequency component and the peak value and intensity of the frequency component. The frequency component corresponds to the periodic characteristics of the texture of the strip image. By analyzing the peak value and intensity of the frequency component, the target periodic characteristics of the strip image are obtained. The target periodic characteristics are the main periodic characteristics of the texture.

[0322] Next, the gray level co-occurrence matrix of the strip image in at least one direction of the plane where the strip image is located is calculated. Based on the gray level co-occurrence matrix, the directional eigenvalue of the texture of the strip image and the gray level difference between any two adjacent pixels of the strip image can be determined. Then, the target periodicity characteristics, directional eigenvalues ​​and gray level differences can be used as the texture data of the rock of the strip image.

[0323] In a specific example, first, a strip image is Fourier transformed to convert the image from the spatial domain to the frequency domain, thereby obtaining a spectrum of the strip image. The spectrum reveals the periodic features and intensity changes in the image, which are closely related to the texture of the rock. In the spectrum, the horizontal axis represents the frequency component, which shows the texture features of different scales in the image. The frequency components of the low-frequency part correspond to large-scale changes in the strip image, such as the overall direction and spacing of the bedding, while the frequency components of the high-frequency part correspond to small-scale details, such as the width of the cracks or slight changes within the bedding. The vertical axis represents the amplitude or energy, which shows the intensity associated with each frequency component. The amplitude indicates the significance of the texture feature. By analyzing the peak position and intensity in the spectrum, the main periodic features of the texture of the strip image can be determined, that is, the periodic changes of the texture with the highest frequency in the strip image. This period can be the interval of rock bedding, the width of the cracks, the thickness of the sedimentary layer, or any other repeating pattern of geological features.

[0324] Next, the gray level co-occurrence matrix of each strip image in different directions (such as 0°, 45°, 90°, 135°) is calculated, and directional eigenvalues ​​such as energy, entropy, and contrast are extracted from the gray level co-occurrence matrix. These eigenvalues ​​can be used to describe the directionality of the texture. Among them, energy reflects the uniformity of the texture, and a high energy value means a uniform texture; entropy reflects the complexity of the texture, and a high entropy value means a complex texture; contrast reflects the clarity of the texture, and a high contrast means a clear texture. The directionality of the texture refers to the main direction or trend of the texture in the strip image.

[0325] Finally, based on the gray level co-occurrence matrix, the gray level difference between adjacent pixels in the strip image is calculated. The gray level difference can be used to characterize the roughness of the texture. The main periodic features, directional eigenvalues ​​and roughness of the strip image are used as the texture data of the strip image.

[0326] It should be noted that the specific steps for calculating the grayscale co-occurrence matrix in different directions of the strip image are as follows: First, determine the direction to be analyzed, such as 0° (horizontal direction), 45°, 90°, 135°, etc. Then, select a window size, such as 3x3 or 5x5, to cover the local area in the image. Next, on each strip image, move the window downward from the top, and each time the window is moved, record the grayscale value of the pixel in the window. Finally, for each window, calculate the co-occurrence matrix. The co-occurrence matrix is ​​a 2D array whose size depends on the window size and the number of grayscale levels of the image. For each pixel pair (i, j) in the window, calculate its offset (d) and angle (θ) in a specific direction, where:

[0327] d=√[(Δx)2+(Δy)2]

[0328] Δx=x2-x1

[0329] Δy=y2-y1

[0330] θ=arctan(Δy / Δx)

[0331] Among them, Δx = x2-x1 is the offset between two pixels in the horizontal direction, and Δy = y2-y1 is the offset between two pixels in the vertical direction. The number of occurrences of the gray value combination of i and j is recorded in the corresponding position of the co-occurrence matrix, and the statistical results of the co-occurrence matrix of all windows are summarized to obtain the co-occurrence matrix of each strip image in different directions.

[0332] In the embodiment of the present invention, at least one strip image is obtained by dividing the rectangular image, and each strip image may have a fracture surface. In order to analyze the fracture surface of the rock on each strip image, it is necessary to determine whether there is a complete fracture surface in the strip image. For any strip image, if there is a complete fracture surface in the strip image, the gradient amplitude of the pixel point in the strip image is obtained.

[0333] In an embodiment of the present invention, the rock may have at least one of a broken zone, a fault, a joint, and a fissure. A broken zone mainly refers to a fracture that occurs when a rock is affected by an external force, and the formed area contains rock blocks and fragments of various sizes. A fault refers to a fracture zone where a rock has obvious displacement along one or more planes. A joint refers to a crack in a rock that has not obvious displacement, and a fissure refers to a crack or crack in a rock, and its size can range from microscopic cracks to visible cracks. In addition, the rock may also be a complete rock surface.

[0334] In the embodiment of the present invention, the broken zones, faults, joints and fissures on the rock will form fracture surfaces. For the broken zones, faults and intact rock surfaces on the rock, the present invention obtains the depth data of the pixel points of the broken zones, faults and intact rock surfaces on the rock image, and marks the broken zones, faults and intact rock surfaces on the image, but does not analyze them. The present invention only analyzes the fracture surfaces of joints and fissures.

[0335] Reference Fig.10 , shows a schematic diagram of a strip image obtained by dividing a rectangular image provided by an embodiment of the present invention.

[0336] At least one strip image is obtained by dividing the rectangular image, and each strip image may contain a fracture surface. The fracture surface refers to the fracture surface of joints and / or fissures. The present invention analyzes the fracture surface of complete joints and / or fissures. Fig.10The strip image corresponding to number 2 contains complete joints and / or cracks, the strip image corresponding to number 3 contains incomplete joints and / or cracks, and the strip image corresponding to number 4 contains a complete rock surface.

[0337] In order to obtain a strip image containing a fracture surface of complete joints and / or fissures, it can be first determined whether the rock in the strip image has a broken zone and / or fault. If the rock in the strip image does not have a broken zone and / or fault, it is determined whether the rock in the strip image has joints and / or fissures. If the rock in the strip image has joints and / or fissures, it is determined whether the strip image has complete joints and / or fissures. If the strip image has complete joints and / or fissures, it is determined that a complete fracture surface exists in the strip image; if the strip image has incomplete joints and / or fissures, it is determined that an incomplete fracture surface exists in the strip image.

[0338] For any strip image, if there are incomplete joints and / or cracks in the strip image, it is determined that there are incomplete fracture surfaces in the strip image. Then, all the strip images are arranged in the order of division to obtain a strip image combination. Fig.10 The strip images obtained by dividing the rectangular image in are arranged in the order of division.

[0339] The strip image with incomplete fracture surface is used as the strip image to be processed. The strip image to be processed and two strip images adjacent to the strip image to be processed in the strip image combination are spliced ​​to obtain a target strip image, and it is determined whether there is a complete fracture surface in the target strip image.

[0340] If there is an incomplete fracture surface in the target strip image, the target strip image is used as the strip image to be processed, and the strip image to be processed and two strip images adjacent to the strip image to be processed in the strip image combination are repeatedly spliced ​​to obtain the target strip image, and it is determined whether there is a complete fracture surface in the target strip image. If there is an incomplete fracture surface in the target strip image, the target strip image is used as the step of the strip image to be processed until there is a complete fracture surface in the target strip image. Then, the complete fracture surface in the target strip image is analyzed.

[0341] In the embodiment of the present invention, the fracture surface recognition model may also be used to determine whether the strip image includes a complete fracture surface, that is, to determine whether the strip image includes complete joints and / or cracks.

[0342] In an embodiment of the present invention, at least one preset training strip image and annotation information of the training strip image can be obtained, and the annotation information is at least one of the broken zone and / or fault, complete joints and / or cracks, incomplete joints and / or cracks, and complete rock surface in the training strip image. The preset deep learning model is trained using the training strip image and the annotation information to obtain a fracture surface recognition model. Using the fracture surface recognition model, it can be identified whether there are complete joints and / or cracks in the strip image, and whether there is a complete fracture surface in the strip image.

[0343] In the embodiment of the present invention, the original image is pre-classified to minimize recognition errors caused by a large number of cracks, difficulty in distinguishing primary cracks from secondary cracks, and large image files during edge detection.

[0344] In the embodiment of the present invention, in order to obtain the gradient amplitude of the pixel points in the strip image, the original color image is first converted into a grayscale image. The grayscale image only contains grayscale information and does not contain color data, but can retain more details and contrast information.

[0345] Then, the grayscale image is smoothed using a Gaussian filter of preset strength to remove and / or attenuate random noise in the image, thereby obtaining a target grayscale image. Smoothing means that the value of each pixel in the image will be affected by the surrounding pixels to achieve overall smoothing of the image. Usually, a Gaussian filter of medium strength is selected, and a Gaussian kernel of appropriate size is selected as needed to find a balance between denoising and edge preservation to ensure that key details of the image are preserved. The size of the Gaussian kernel has a significant impact on the smoothing effect of the filter: a larger Gaussian kernel can provide a stronger smoothing effect, but it may also cause the loss of image details. Therefore, it is crucial to choose a suitable Gaussian kernel size that can effectively denoise while preserving edge details.

[0346] Next, the Sobel operator (edge ​​detection operator) or other similar operators are applied to calculate the gradient magnitude and gradient direction of each pixel in the image.

[0347] Step 903, classifying the rocks on the strip image into at least one category based on a first standard Euclidean distance between color data of any two rocks on the strip image and a second standard Euclidean distance between texture data of any two rocks on the strip image;

[0348] In an embodiment of the present invention, after a rectangular image is segmented into at least one strip image, the color data of the rocks on any two strip images can be used to calculate the first standard Euclidean distance between the color data of the rocks on any two strip images; the texture data of the rocks on any two strip images can be used to calculate the second standard Euclidean distance between the texture data of the rocks on any two strip images.

[0349] In the embodiment of the present invention, according to the first standard Euclidean distance between the color data of the rocks on any two strip images in at least one strip image, and the second standard Euclidean distance between the texture data of the rocks on any two strip images, the rocks in all the strip images can be classified to obtain at least one type. Specifically, it can be determined which rocks in the strip images are of the same type.

[0350] Step 904, determining a name of the at least one type of rock based on the color data and the texture data;

[0351] In the embodiment of the present invention, for any type of rock, the name of the type of rock can be determined by manual recognition based on the color data and texture data of the type of rock, or the name of the type of rock can be recognized by a rock recognition device, such as granite, limestone, etc., thereby obtaining the name of the surrounding rock of each strip image in the panoramic image of the surrounding rock.

[0352] Step 905, judging whether the pixel point is a pixel point of the fracture surface based on the gradient amplitude, a preset first amplitude threshold and a preset second amplitude threshold; the first amplitude threshold is greater than the second amplitude threshold;

[0353] In an embodiment of the present invention, if there is a complete fracture surface in the strip image, the gradient amplitude of the pixel point in the strip image is obtained. For any pixel point in the strip image, based on the gradient amplitude of the pixel point, a preset first amplitude threshold and a preset second amplitude threshold, it can be determined whether the pixel point is a pixel point of the fracture surface. The first amplitude threshold is greater than the second amplitude threshold.

[0354] In a specific example, if the gradient amplitude of a pixel point is greater than a first amplitude threshold, the pixel point is a pixel point on the fracture surface; if the gradient amplitude of the pixel point is less than a second amplitude threshold, the pixel point is not a pixel point on the fracture surface; if the gradient amplitude of the pixel point is not greater than the first amplitude threshold and not less than the second amplitude threshold, then based on the gradient amplitude and gradient direction of the surrounding pixels of the pixel point, it is determined whether the pixel point is a pixel point on the fracture surface.

[0355] Step 906: If the pixel point is a pixel point of the fracture surface, then the depth data of the pixel point of the fracture surface is obtained, and the fracture surface is analyzed based on the depth data.

[0356] In an embodiment of the present invention, if there is a complete fracture surface in the strip image, the pixel point of the fracture surface in the strip image is used as the target pixel point, and the depth data of the target pixel point is obtained. It should be noted that the depth data refers to the distance between the fracture surface corresponding to the target pixel point and the shooting device of the panoramic image.

[0357] In an embodiment of the present invention, if there is a complete fracture surface in the strip image, the pixel point of the fracture surface in the strip image is used as the target pixel point. After obtaining the depth data of the target pixel point, the fracture surface can be analyzed based on the depth data. Specifically, based on the depth data of the target pixel point, the relevant data of the inclination angle of the fracture surface can be obtained, and the inclination angle of the fracture surface can be analyzed.

[0358] In an embodiment of the present invention, a rectangular image of a preset rock is obtained, and the rectangular image is segmented into at least one strip image, wherein the rectangular image includes at least one fracture surface. The color data and texture data of the rock on the strip image, as well as the gradient amplitude of the pixel points in the strip image are obtained, and the rock on the strip image is divided into at least one type based on the first standard Euclidean distance between the color data of the rock on any two strip images and the second standard Euclidean distance between the texture data of the rock on any two strip images, and the name of at least one type of rock is determined based on the color data and the texture data. The classification of the rock types in the strip image and the recognition of the rock names of the same type of strip image are realized, the rock recognition efficiency is improved, the generation of unknown errors is minimized, and the possibility of encountering data outside the training set of the rock recognition model is avoided.

[0359] Based on the gradient amplitude, the preset first amplitude threshold and the preset second amplitude threshold, it is determined whether the pixel point is a pixel point of the fracture surface; the first amplitude threshold is greater than the second amplitude threshold; if the pixel point is a pixel point of the fracture surface, the depth data of the pixel point of the fracture surface is obtained, and the fracture surface is analyzed based on the depth data. The method of manually identifying the dip angle is inefficient, and the use of seismic waves to identify the dip angle of cracks and joints requires the use of professional equipment, which is costly.

[0360] Further, in any of the above embodiments, step 903 includes:

[0361] Sub-step S151, for any of the strip images, taking the strip image as the first strip image;

[0362] Sub-step S152, according to a preset sequential naming method, the type of rock on the first strip image is used as a preset first type; the sequential naming method refers to a method of naming the rock types using a numerical sequence according to the order in which the rock types on the strip image are divided;

[0363] Sub-step S153, for any of the strip images except the first strip image, using the strip image as a second strip image;

[0364] Sub-step S154, judging whether the type of rock on the second strip image is the first type based on the first standard Euclidean distance between the first strip image and the second strip image;

[0365] Sub-step S155, if the type of the rock on the second strip image is not the first type, then according to the sequential naming method, the type of the rock on the second strip image is used as the preset second type.

[0366] In the embodiment of the present invention, for any strip image, the strip image is used as the first strip image. According to the preset sequential naming method, the type of rock on the first strip image is used as the preset first type. The sequential naming method refers to a method of naming the rock types using a numerical sequence according to the order of division of the rock types on the strip image.

[0367] For any strip image except the first strip image, the strip image is used as the second strip image. Based on the first standard Euclidean distance between the color data of the first strip image and the second strip image, it is determined whether the type of rock on the second strip image is the first type. If the type of rock on the second strip image is not the first type, the type of rock on the second strip image is used as the preset second type according to the sequential nomenclature.

[0368] Further, in any of the above embodiments, step 903 includes:

[0369] Sub-step S161, combining the classified strip images to obtain a strip image set;

[0370] Sub-step S162, traversing the unclassified strip images, and judging whether there are rocks of the same type as the rocks on the strip image currently traversed, in the rocks corresponding to the strip image set, based on the first standard Euclidean distance and the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set;

[0371] Sub-step S163, if there is no rock of the same type as the rock on the currently traversed strip image among the rocks corresponding to the strip image set, then according to the sequential nomenclature, the rock on the currently traversed strip image is used as the rock of the target sequence type;

[0372] Sub-step S164, after the currently traversed strip image is traversed, the currently traversed strip image is added to the strip image set, and the remaining unclassified strip images are continuously traversed until all the unclassified strip images are added to the strip image set.

[0373] In the embodiment of the present invention, the strip images that have been divided into categories may be combined to obtain a strip image set.

[0374] Traverse the unclassified strip images, and based on the first standard Euclidean distance and the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set, determine whether there are rocks on the strip images in the strip image set that are of the same type as the rocks on the currently traversed strip image.

[0375] If there are no rocks on the strip images in the strip image set that are of the same type as the rocks on the currently traversed strip image, then the rocks on the currently traversed strip image are taken as rocks of the target order type according to the sequential naming method. After the currently traversed strip image is traversed, the currently traversed strip image is added to the strip image set, and the remaining unclassified strip images are traversed until all unclassified strip images are added to the strip image set. It should be noted that the strip images can be traversed in order from top to bottom.

[0376] Further, in any of the above embodiments, step 904 includes:

[0377] Sub-step S171, in the process of classifying the rocks on the strip image into at least one type, determining target color data and target texture data of the rock of the type based on the color data and texture data of the rock of the type on the strip image;

[0378] Sub-step S172, for any of the types of rocks, determining the name of the type of rock based on the target color data and the target texture data.

[0379] In the embodiment of the present invention, in the process of classifying the rocks on the strip image into at least one type, the color data and texture data of any type of rock on multiple strip images can be used to determine the target color data and target texture data of the type of rock. It should be noted that the rocks on the same strip image are of the same type.

[0380] In the embodiment of the present invention, for any type of rock, based on the target color data and target texture data of the type of rock, the name of the type of rock can be determined by manual recognition, or the name of the type of rock can be recognized by a rock recognition device, such as granite, limestone, etc., thereby obtaining the name of the surrounding rock of each strip image in the panoramic image of the surrounding rock.

[0381] Further, in any of the above embodiments, sub-step S171 includes:

[0382] Sub-step S181, using the color data and texture data of the rock on the first strip image as the target color data and target texture data of the first type of rock;

[0383] Sub-step S182, if the type of the rock on the second strip image is the first type, then updating the average value of the color data of the rock on the first strip image and the second strip image to the target color data of the rock of the first type, and updating the average value of the texture data of the rock on the first strip image and the second strip image to the target texture data of the rock of the first type;

[0384] Sub-step S183, if the type of the rock on the second strip image is not the first type, then use the color data and texture data of the rock on the second strip image as the target color data and target texture data of the second type of rock.

[0385] In an embodiment of the present invention, the color data and texture data of the rock on the first strip image are used as the target color data and target texture data of the first type of rock. If the type of the rock on the second strip image is the first type, the average value of the color data of the rock on the first strip image and the second strip image is updated to the target color data of the first type of rock, and the average value of the texture data of the rock on the first strip image and the second strip image is updated to the target texture data of the first type of rock. If the type of the rock on the second strip image is not the first type, the color data and texture data of the rock on the second strip image are used as the target color data and target texture data of the second type of rock. It should be noted that the first strip image can be numbered A'-1, that is, the first strip image from top to bottom. The second strip image can be numbered A'-2, that is, the second strip image from top to bottom.

[0386] Further, in any of the above embodiments, sub-step S171 includes:

[0387] Sub-step S191, if there is no rock of the same type as the rock on the currently traversed strip image among the rocks corresponding to the strip image set, then the color data and texture data of the rock on the currently traversed strip image are used as the target color data and target texture data of the rock of the target order type;

[0388] Sub-step S192, if there are rocks in the rocks corresponding to the strip image set that are of the same type as the rocks on the currently traversed strip image, then the type of the rocks in the rocks corresponding to the strip image set that are of the same type as the rocks on the currently traversed strip image is taken as the target type;

[0389] Sub-step S193, updating the average value of the color data of the target type of rock and the rock on the currently traversed strip image as the target color data of the target type of rock;

[0390] Sub-step S194, updating the average value of the texture data of the target type of rock and the rock on the currently traversed strip image as the target texture data of the target type of rock.

[0391] In an embodiment of the present invention, during the traversal of the strip images, if there are no rocks on the strip images in the strip image set that are the same type as the rocks on the currently traversed strip image, the color data and texture data of the rocks on the currently traversed strip image will be used as the target color data and target texture data of the rocks of the target order type.

[0392] If there are rocks on the strip images in the strip image set that are of the same type as the rocks on the currently traversed strip image, the type of rock in the rocks corresponding to the strip image set that is of the same type as the rocks on the currently traversed strip image is taken as the target type. The average value of the color data of the target type of rock and the rock on the currently traversed strip image is updated as the target color data of the target type of rock, and the average value of the texture data of the target type of rock and the rock on the currently traversed strip image is updated as the target texture data of the target type of rock.

[0393] Further, in any of the above embodiments, sub-step S154 includes:

[0394] Sub-step S201, determining whether a first standard Euclidean distance between the first strip image and the second strip image is greater than a preset distance threshold;

[0395] Sub-step S202: if the first standard Euclidean distance between the first strip image and the second strip image is not greater than the preset distance threshold, confirming that the type of rock on the second strip image is the first type.

[0396] In an embodiment of the present invention, based on the first standard Euclidean distance between the color data of the first strip image and the second strip image, it can be determined whether the type of rock on the second strip image is the first type. Specifically, it is determined whether the first standard Euclidean distance between the first strip image and the second strip image is greater than a preset distance threshold. If the first standard Euclidean distance between the first strip image and the second strip image is not greater than the preset distance threshold, it is confirmed that the type of rock on the second strip image is the first type. Among them, the preset distance threshold can be 20. It should be noted that the size of the preset distance threshold is determined through experimental verification and analysis of a large amount of sample data. The preset distance threshold provides a standard for determining whether the types of rocks on two strip images are of the same type. For example: when the first standard Euclidean distance between the two strip images does not exceed the preset distance threshold, the types of rocks on the two strip images can be considered to be of the same type.

[0397] Further, in any of the above embodiments, sub-step S162 includes:

[0398] Sub-step S211, combining the first standard Euclidean distances between the currently traversed strip image and the strip images in the strip image set to obtain a first standard Euclidean distance set;

[0399] Sub-step S212, taking the minimum value in the first standard Euclidean distance set as the first target standard Euclidean distance;

[0400] Sub-step S213, if the first target standard Euclidean distance is not greater than the preset distance threshold, determining whether the first standard Euclidean distance in the first standard Euclidean distance set is not greater than the preset distance threshold;

[0401] Sub-step S214, if the number of the first standard Euclidean distances in the first standard Euclidean distance set that is not greater than the preset distance threshold meets the preset number requirement, then confirm that the type of rock on the strip image in the strip image set corresponding to the first target standard Euclidean distance is the same as the type of rock in the currently traversed strip image.

[0402] In an embodiment of the present invention, based on the first standard Euclidean distance and the second standard Euclidean distance between the currently traversed strip image and the strip image in the strip image set, it can be determined whether there is a rock of the same type as the rock on the currently traversed strip image in the strip image set. Specifically, a plurality of first standard Euclidean distances between the currently traversed strip image and any strip image in the strip image set are combined to obtain a first standard Euclidean distance set, and the minimum value in the first standard Euclidean distance set is used as the first target standard Euclidean distance. If the first target standard Euclidean distance is not greater than the preset distance threshold, it is determined whether the first standard Euclidean distance in the first standard Euclidean distance set is not greater than the preset distance threshold. If the number of first standard Euclidean distances in the first standard Euclidean distance set that are not greater than the preset distance threshold meets the preset number requirement, it is confirmed that the type of rock on the strip image in the strip image set corresponding to the first target standard Euclidean distance is the same as the type of rock on the currently traversed strip image. The preset number requirement means that the number of first standard Euclidean distances in the first standard Euclidean distance set that are not greater than the preset distance threshold is only one.

[0403] Further, in any of the above embodiments, sub-step S162 includes:

[0404] Sub-step S221, if the number of the first standard Euclidean distances in the first standard Euclidean distance set that is not greater than the preset distance threshold does not meet the preset number requirement, then taking the minimum value of the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set as the second target standard Euclidean distance;

[0405] Sub-step S222, confirming that the type of rock on the strip image in the strip image set corresponding to the second target standard Euclidean distance is the same as the type of rock in the currently traversed strip image.

[0406] In an embodiment of the present invention, a plurality of first standard Euclidean distances between a currently traversed strip image and any strip image in a strip image set are combined to obtain a first standard Euclidean distance set. The minimum value in the first standard Euclidean distance set is used as the first target standard Euclidean distance. If the first target standard Euclidean distance is not greater than a preset distance threshold, it is determined whether the first standard Euclidean distance in the first standard Euclidean distance set is not greater than the preset distance threshold.

[0407] If the number of first standard Euclidean distances in the first standard Euclidean distance set that is not greater than the preset distance threshold does not meet the preset number requirement, the minimum value of the second standard Euclidean distance between the texture data of the currently traversed strip image and the strip image in the strip image set is taken as the second target standard Euclidean distance, and it is confirmed that the type of rock on the strip image in the strip image set corresponding to the second target standard Euclidean distance is the same as the type of rock in the currently traversed strip image.

[0408] In the embodiment of the present invention, color data is used as primary data, texture data is used as auxiliary data, and standard Euclidean distance is used to classify rocks on the strip image, which can improve the accuracy of classification.

[0409] Further, in any of the above embodiments, sub-step S162 includes:

[0410] Sub-step S231, if the first target standard Euclidean distance is greater than the preset distance threshold, confirming that there is no rock of the same type as the rock on the currently traversed strip image in the rocks corresponding to the strip image set.

[0411] In an embodiment of the present invention, a plurality of first standard Euclidean distances between a currently traversed strip image and any strip image in a strip image set are combined to obtain a first standard Euclidean distance set. The minimum value in the first standard Euclidean distance set is used as a first target standard Euclidean distance. If the first target standard Euclidean distance is greater than a preset distance threshold, it is confirmed that there is no rock of the same type as the rock on the currently traversed strip image in the strip image set.

[0412] In a specific example, the rectangular image is cut from the top to the bottom into a plurality of narrower strip images, and these strip images are numbered A'-x in order from top to bottom, where x starts from 1 and increases in sequence, and the maximum number is L / D.

[0413] The rock type of the strip image A′- 1 is regarded as type 1 , and the color data and texture data of the strip image A′- 1 are regarded as target color data and target texture data of type 1 .

[0414] The color data of the strip image A'-2 is compared with the color data of category 1, and the first standard Euclidean distance O between the two is calculated. If the first standard Euclidean distance is not greater than the preset distance threshold, it is considered that the rock types of the strip image A'-2 and the strip image A'-1 belong to the same category, and the rock type of the strip image A'-2 is regarded as category 1. At the same time, the average value of the color data and the average value of the texture data of the strip image A'-2 and the strip image A'-1 are calculated, and the average value of the color data and the average value of the texture data are used as the target color data and target texture data of category 1. If the first standard Euclidean distance is greater than the preset distance threshold, it is considered that the rock types of the strip image A'-2 and the strip image A'-1 do not belong to the same category, and the rock type of the strip image A'-2 is regarded as category 2, and the color data and texture data of the strip image A'-2 are used as the target color data and target texture data of category 2. Among them, the preset distance threshold can be 20.

[0415] Combine the bar image A'-1 and the bar image A'-2 to obtain a bar image set. Continue to traverse the remaining bar images in order from top to bottom. When traversing the bar image A'-3, compare the color data of the bar image A'-3 with the color data of category 1 and category 2 respectively to obtain the first standard Euclidean distance between the bar image A'-3 and the color data of category 1 and category 2. The smaller first standard Euclidean distance Omin among the first standard Euclidean distances between the bar image A'-3 and the color data of category 1 and category 2 is used as the first target standard Euclidean distance.

[0416] The first standard Euclidean distance between the strip image A'-3 and the color data of category 1 and category 2 is combined to obtain a first standard Euclidean distance set. If the first target standard Euclidean distance is not greater than the preset distance threshold, and there is only one standard Euclidean distance in the first standard Euclidean distance set that is not greater than the preset distance threshold, the rock type of the strip image corresponding to the first target standard Euclidean distance is used as the rock type of the strip image A'-3, and the average value of the color data and texture data of the strip image corresponding to the first target standard Euclidean distance and the strip image A'-3 is used as the target color data and target texture data of the rock type of the strip image corresponding to the first target standard Euclidean distance.

[0417] If the first target standard Euclidean distance is not greater than the preset distance threshold, and there are more than one first standard Euclidean distances in the first standard Euclidean distance set that are not greater than the preset distance threshold, the texture data of the strip image A'-3 is compared with the texture data of category 1 and category 2 respectively to obtain the second standard Euclidean distance between the strip image A'-3 and the texture data of category 1 and category 2. The type of rock of the strip image corresponding to the smaller second standard Euclidean distance between the strip image A'-3 and the texture data of category 1 and category 2 is taken as the rock type of the strip image A'-3. The type of rock of the strip image corresponding to the smaller second standard Euclidean distance and the average value of the color data and texture data of the strip image A'-3 are taken as the target color data and target texture data of the surrounding rock type of the strip image A'-3.

[0418] If the first target standard Euclidean distance is greater than the preset distance threshold, the surrounding rock type of the strip image A'-3 is taken as type 3, and the color data and texture data of the strip image A'-3 are taken as target color data and target texture data of type 3.

[0419] Continue traversing the remaining bar images until the types of all bar images are determined.

[0420] Further, in any of the above embodiments, step 905 includes:

[0421] Sub-step S241, if the gradient amplitude of the pixel point is greater than the first amplitude threshold, confirming that the pixel point is a pixel point of the fracture surface;

[0422] Sub-step S242, if the gradient amplitude of the pixel point is less than the second amplitude threshold, confirming that the pixel point is not a pixel point of the fracture surface;

[0423] Sub-step S243, if the gradient amplitude of the pixel point is not greater than the first amplitude threshold and not less than the second amplitude threshold, determine whether the pixel point is within a first preset area; the first preset area refers to a circular area with a pixel point of any of the fracture surfaces as the center and a first preset length as the radius;

[0424] Sub-step S244: if the pixel point is within the first preset area, confirming that the pixel point is a pixel point of the fracture surface.

[0425] In the embodiment of the present invention, the first amplitude threshold is greater than the second amplitude threshold, the first amplitude threshold is also called the high threshold T_high, and the second amplitude threshold is also called the low threshold T_low. The fracture surface of the crack and joint is the edge of the crack and joint.

[0426] Since the fracture surface of cracks and joints usually appears as an area with large brightness change in the strip image, the gradient amplitude of the pixel point in the strip image can reflect the degree of brightness change in the area around the pixel point, and the gradient direction of the pixel point can reflect the main direction of brightness change in the area around the pixel point. Therefore, if the gradient amplitude of the pixel point is greater than the first amplitude threshold, it means that the brightness change degree of the area around the pixel point is large, and the pixel point is a pixel point of the fracture surface. If the gradient amplitude of the pixel point is less than the second amplitude threshold, it means that the brightness change degree of the area around the pixel point is small, and the pixel point is not a pixel point of the fracture surface. If the gradient amplitude of the pixel point is not greater than the first amplitude threshold and not less than the second amplitude threshold, it is determined whether the pixel point is within the first preset area. The first preset area refers to a circular area with the pixel point of any fracture surface as the center and the first preset length as the radius. If the pixel point is within the first preset area, it means that the distance between the pixel point and the pixel point of the fracture surface is close, the pixel point is continuous with the pixel point of the fracture surface, and the pixel point is confirmed to be a pixel point of the fracture surface.

[0427] In an embodiment of the present invention, if the gradient amplitude of a pixel point is greater than a first amplitude threshold, the pixel point is confirmed to be a pixel point of a fracture surface; if the gradient amplitude of the pixel point is less than a second amplitude threshold, the pixel point is confirmed not to be a pixel point of a fracture surface; if the gradient amplitude of the pixel point is not greater than the first amplitude threshold and not less than the second amplitude threshold, it is determined whether the pixel point is within a first preset area; the first preset area refers to a circular area with a pixel point of any fracture surface as the center and a first preset length as the radius; if the pixel point is within the first preset area, the pixel point is confirmed to be a pixel point of the fracture surface, thereby reducing the number of pixels mistakenly marked as fracture surfaces, while maintaining the continuity between the pixels of the fracture surface, achieving more accurate identification of fracture surfaces in images, and reducing false alarms of pixels of fracture surfaces.

[0428] Further, in any of the above embodiments, step 905 includes:

[0429] Sub-step S251, combining the pixel points of the fracture surface to obtain a pixel point set of the fracture surface;

[0430] Sub-step S252, for any pixel point of the fracture surface in the pixel point set, calculating the gradient direction of the pixel point of the fracture surface;

[0431] Sub-step S253, based on the gradient direction of the pixel point of the fracture surface, determining the adjacent pixel points of the pixel point of the fracture surface in the gradient direction, and calculating the gradient amplitude of the adjacent pixel points;

[0432] Sub-step S254: if the gradient amplitude of the pixel point on the fracture surface is smaller than the gradient amplitude of the adjacent pixel point, the pixel point on the fracture surface is deleted from the pixel point set.

[0433] In an embodiment of the present invention, the pixel points of the fracture surface are combined to obtain a pixel point set of the fracture surface. Then, in order to accurately depict the outline of the fracture surface, a non-maximum suppression technique can be used to retain the maximum value of the local gradient amplitude along the direction of the edge, while suppressing the non-maximum points, so that the edge is more refined and continuous. In this way, non-critical pixel points in the pixel point set of the fracture surface will be removed, and what will remain will be a clear outline of the fracture surface. Specifically, for any pixel point of the fracture surface in the pixel point set, the gradient direction of the pixel point of the fracture surface is calculated. Based on the gradient direction of the pixel point of the fracture surface, the adjacent pixel points of the pixel point of the fracture surface in the gradient direction are determined, and the gradient amplitude of the adjacent pixel points is calculated. If the gradient amplitude of the pixel point of the fracture surface is less than the gradient amplitude of the adjacent pixel point, the pixel point of the fracture surface is deleted from the pixel point set.

[0434] Further, in any of the above embodiments, step 905 includes:

[0435] Sub-step S261, increasing the first amplitude threshold to obtain a third amplitude threshold, and decreasing the second amplitude threshold to obtain a fourth amplitude threshold;

[0436] Sub-step S262, for any pixel point of the fracture surface in the pixel point set, if the gradient amplitude of the pixel point of the fracture surface is less than the fourth amplitude threshold, deleting the pixel point of the fracture surface from the pixel point set;

[0437] Sub-step S263, if the gradient amplitude of the pixel point of the fracture surface is not greater than the third amplitude threshold, not less than the fourth amplitude threshold and the pixel point is not located in the second preset area, then the pixel point of the fracture surface is deleted from the pixel point set; the second preset area refers to a circular area with any pixel point of the fracture surface in the pixel point set as the center and a second preset length as the radius.

[0438] In the embodiment of the present invention, the fracture surfaces of cracks and joints are usually shown as areas with large brightness changes in the strip image. However, block colors may be embedded in the background color of the rock. Although the brightness changes of these block color areas are obvious, they are usually not as large as the brightness changes of the fracture surface. In order to remove these pixel points related to the block color from the pixel point set of the fracture surface, dual threshold judgment and adaptive threshold optimization technology can be used.

[0439] Specifically, the first amplitude threshold is increased to obtain the third amplitude threshold, and the second amplitude threshold is reduced to obtain the fourth amplitude threshold. For a pixel point on any fracture surface in the pixel point set, if the gradient amplitude of the pixel point on the fracture surface is less than the fourth amplitude threshold, it means that the pixel point is a pixel point of block color, and the pixel point is deleted from the pixel point set. If the gradient amplitude of the pixel point on the fracture surface is not greater than the third amplitude threshold, not less than the fourth amplitude threshold, and the pixel point is not located in the second preset area, it means that the pixel point is a pixel point of block color, and the pixel point is deleted from the pixel point set. The second preset area refers to a circular area with the pixel point of any fracture surface in the pixel point set as the center and the second preset length as the radius. The pixel point in the pixel point set is the target pixel point.

[0440] In an embodiment of the present invention, an adaptive preprocessing method for tunnel cross-section images is provided, which, combined with an improved Canny edge detection algorithm, can effectively identify tunnel contours under complex backgrounds, especially in situations where lighting conditions are poor or image textures are complex, while still maintaining high-precision edge recognition capabilities. In an embodiment of the present invention, cracks are automatically identified using edge detection, which greatly improves the efficiency of crack identification. The Canny edge detection algorithm is a multi-stage algorithm used to identify edges in an image, i.e., points with significant brightness changes.

[0441] In an embodiment of the present invention, when analyzing the fracture surface based on the depth data of the target pixel point, the target pixel point is traversed to obtain the coordinate information of the target pixel point. The X coordinate (horizontal coordinate) of the target pixel point represents the azimuth of the pixel point, and the Y coordinate (vertical coordinate) represents the depth data of the pixel point. In an embodiment of the present invention, the number of pixels of the width of the image can be read, and the actual size corresponding to each pixel point can be calculated using the circumference of the drill hole. The azimuth angle corresponding to each pixel point = 360 / number of pixels, which realizes an automatic conversion method from image pixels to actual sizes. The actual size represented by each pixel is automatically calculated through the reference size input by the user, and the depth and width are accurately measured, thereby improving the efficiency and accuracy of the measurement.

[0442] In an embodiment of the present invention, for the depth data of any target pixel, if the depth data of the target pixel is not less than the depth data of other target pixels, the target pixel is taken as the first target pixel. If the depth data of the target pixel is not greater than the depth data of other target pixels, the target pixel is taken as the second target pixel. The first target pixel is the shallowest pixel, and the second target pixel is the deepest pixel.

[0443] In the embodiment of the present invention, the inclination angle of the fracture surface can be calculated based on the depth data of the deepest pixel point and the depth data of the shallowest pixel point. The sine parameters of the fracture surface can be obtained based on the coordinate information of the deepest pixel point and the coordinate information of the shallowest pixel point, and the sine parameters can be used to represent the geometric features of the fracture surface.

[0444] Specifically, the inclination angle = arctan ((depth data of the deepest pixel point - depth data of the shallowest pixel point) / circumference of the borehole). The inclination angle can be negative or positive, and its range is usually between -180° and 180°. In order to be consistent with the NSWE (North South West East) direction mark, the angle needs to be adjusted to a range of 0° to 360°.

[0445] When the angle is between 0° and 90° (including 90°), it corresponds to the northeast direction (NE), representing the range from the due north direction to the due east direction in a clockwise direction.

[0446] When the angle is between 90° and 180° (inclusive), it corresponds to the southeast direction (SE).

[0447] When the angle is between 180° and 270° (including 270°), it corresponds to the southwest direction (SW).

[0448] When the angle is between 270° and 360° (inclusive), it corresponds to the northwest direction (NW).

[0449] The directions of due south, due north, due east and due west may also be defined accordingly according to specific needs, and the present invention does not impose any limitation on this.

[0450] In the embodiment of the present invention, the sine parameter includes at least one of amplitude, period, offset and initial phase. The amplitude (A) is defined as half of the vertical distance between the deepest pixel and the shallowest pixel, which represents the amplitude from the peak to the valley of the sine wave, thereby reflecting the maximum change amplitude of the tunnel section profile.

[0451] The period (w) is calculated as π divided by the absolute value of the difference between the x-coordinate value of the lightest pixel and the x-coordinate value of the darkest pixel.

[0452] The offset (h) is the y-coordinate value of the shallowest pixel plus half the amplitude. This value determines the vertical position of the sine wave, ensuring that the center line of the sine wave is aligned with the average depth of the tunnel profile.

[0453] The calculation formula of the initial phase (φ) is φ=arcsin((y-coordinate value of the shallowest pixel-h) / A)-(w*x-coordinate value of the shallowest pixel).

[0454] In the embodiment of the present invention, the inclination (such as NSWE mark) and precise azimuth of the tunnel fracture surface are automatically calculated and calibrated according to the extracted target pixel points, providing intuitive engineering guidance information and enhancing the guidance and safety of construction and maintenance operations. A novel sinusoidal wave model fitting algorithm is proposed, which can accurately match and describe the cross-sectional profile of the tunnel, accurately reflect the geometric morphological characteristics of the tunnel by automatically calculating parameters such as amplitude, period, offset and initial phase, improve the accuracy and practicality of the analysis, and the sinusoidal parameters of the fracture can provide raw data for establishing a regional geological model.

[0455] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0456] Reference Fig.11 , shows a structural block diagram of a geological data processing device in an underground engineering scenario provided in an embodiment of the present invention, which may specifically include the following modules:

[0457] The rectangular image acquisition module 1101 is used to acquire a rectangular image of a preset rock and divide the rectangular image into at least one strip image; the rectangular image includes at least one fracture surface;

[0458] A data acquisition module 1102 is used to acquire color data and texture data of the rock on the strip image, and gradient amplitude of pixel points in the strip image;

[0459] A category classification module 1103, configured to classify the rocks on the strip image into at least one category based on a first standard Euclidean distance between color data of any two rocks on the strip image and a second standard Euclidean distance between texture data of any two rocks on the strip image;

[0460] A name determination module 1104, configured to determine a name of the at least one type of rock based on the color data and the texture data;

[0461] A pixel point determination module 1105 is used to determine whether the pixel point is a pixel point of the fracture surface based on the gradient amplitude, a preset first amplitude threshold and a preset second amplitude threshold; the first amplitude threshold is greater than the second amplitude threshold;

[0462] The depth data acquisition module 1106 is used to acquire the depth data of the pixel point of the fracture surface if the pixel point is a pixel point of the fracture surface, and analyze the fracture surface based on the depth data.

[0463] In an optional embodiment of the present invention, the category classification module includes:

[0464] The first strip image is used as a submodule, and is used to use any of the strip images as the first strip image;

[0465] The first category is used as a submodule, and is used to use the rock type on the first strip image as the preset first category according to a preset sequential naming method; the sequential naming method refers to a method of naming the rock type using a numerical sequence according to the division order of the rock types on the strip image;

[0466] The second strip image is used as a submodule, and is used to use any strip image except the first strip image as the second strip image;

[0467] A first type determination submodule, configured to determine whether the type of rock on the second strip image is the first type based on a first standard Euclidean distance between the first strip image and the second strip image;

[0468] The second category is used as a submodule, and is used to, if the type of the rock on the second strip image is not the first type, use the type of the rock on the second strip image as the preset second category according to the sequential naming method.

[0469] In an optional embodiment of the present invention, the category classification module includes:

[0470] A strip image set obtaining submodule is used to combine the strip images that have been classified into categories to obtain a strip image set;

[0471] A traversal submodule, used for traversing the unclassified strip images, and judging whether there are rocks of the same type as the rocks on the strip image currently traversed, in the rocks corresponding to the strip image set, based on the first standard Euclidean distance and the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set;

[0472] The target order type of rock is used as a submodule, and is used to, if there is no rock of the same type as the rock on the currently traversed strip image among the rocks corresponding to the strip image set, then according to the sequential nomenclature, take the rock on the currently traversed strip image as the target order type of rock;

[0473] The adding submodule is used to add the currently traversed bar image to the bar image set after the currently traversed bar image is traversed, and continue to traverse the remaining unclassified bar images until all the unclassified bar images are added to the bar image set.

[0474] In an optional embodiment of the present invention, the name determination module includes:

[0475] a target data determination submodule, for determining target color data and target texture data of the rock of the type based on the color data and texture data of the rock of the type on the strip image during the process of classifying the rock on the strip image into at least one type;

[0476] The name determination submodule is used to determine the name of any type of rock based on the target color data and the target texture data.

[0477] In an optional embodiment of the present invention, the target data determination submodule includes:

[0478] The first data is used as a unit to use the color data and texture data of the rock on the first strip image as the target color data and target texture data of the first type of rock;

[0479] a first updating unit, configured to update an average value of color data of the rocks on the first strip image and the second strip image to target color data of the rocks of the first type, and to update an average value of texture data of the rocks on the first strip image and the second strip image to target texture data of the rocks of the first type, if the type of the rocks on the second strip image is the first type;

[0480] The second data is used as a unit, and if the type of rock on the second strip image is not the first type, the color data and texture data of the rock on the second strip image are used as the target color data and target texture data of the second type of rock.

[0481] In an optional embodiment of the present invention, the target data determination submodule includes:

[0482] The third data is used as a unit, and is used to use the color data and texture data of the rock on the currently traversed strip image as the target color data and target texture data of the rock of the target order type if there is no rock of the same type as the rock on the currently traversed strip image among the rocks corresponding to the strip image set;

[0483] The target type is used as a unit, and if there is a rock of the same type as the rock on the currently traversed strip image in the rocks corresponding to the strip image set, the type of the rock of the same type as the rock on the currently traversed strip image in the rocks corresponding to the strip image set is used as the target type;

[0484] A second updating unit, configured to update the average value of the color data of the target type of rock and the rock on the currently traversed strip image to the target color data of the target type of rock;

[0485] The third updating unit is used to update the average value of the texture data of the target type of rock and the rock on the currently traversed strip image to the target texture data of the target type of rock.

[0486] In an optional embodiment of the present invention, the first type determination submodule includes:

[0487] A first judging unit, configured to judge whether a first standard Euclidean distance between the first strip image and the second strip image is greater than a preset distance threshold;

[0488] The first type confirmation unit is used to confirm that the type of the rock on the second strip image is the first type if the first standard Euclidean distance between the first strip image and the second strip image is not greater than the preset distance threshold.

[0489] In an optional embodiment of the present invention, the traversal submodule includes:

[0490] A combining unit, used for combining the first standard Euclidean distances between the currently traversed strip image and the strip images in the strip image set to obtain a first standard Euclidean distance set;

[0491] The first target standard Euclidean distance is used as a unit, and is used to take the minimum value in the first standard Euclidean distance set as the first target standard Euclidean distance;

[0492] a second judgment unit, configured to judge whether the first standard Euclidean distance in the first standard Euclidean distance set is not greater than the preset distance threshold if the first target standard Euclidean distance is not greater than the preset distance threshold;

[0493] A first confirmation unit is used to confirm that the type of rock on the strip image in the strip image set corresponding to the first target standard Euclidean distance is the same as the type of rock in the currently traversed strip image if the number of the first standard Euclidean distances in the first standard Euclidean distance set that is not greater than the preset distance threshold meets the preset number requirement.

[0494] In an optional embodiment of the present invention, the traversal submodule includes:

[0495] The second target standard Euclidean distance is used as a unit, and is used to take the minimum value of the second standard Euclidean distance between the currently traversed strip image and the strip image in the strip image set as the second target standard Euclidean distance if the number of the first standard Euclidean distances in the first standard Euclidean distance set that is not greater than the preset distance threshold does not meet the preset number requirement;

[0496] The second confirmation unit is used to confirm that the type of rock on the strip image in the strip image set corresponding to the second target standard Euclidean distance is the same as the type of rock in the currently traversed strip image.

[0497] In an optional embodiment of the present invention, the traversal submodule includes:

[0498] The third confirmation unit is used to confirm that there is no rock of the same type as the rock on the currently traversed strip image in the rocks corresponding to the strip image set if the first target standard Euclidean distance is greater than the preset distance threshold.

[0499] In an optional embodiment of the present invention, the pixel point determination module includes:

[0500] A first pixel point confirmation submodule, configured to confirm that the pixel point is a pixel point of the fracture surface if the gradient amplitude of the pixel point is greater than the first amplitude threshold;

[0501] A second pixel point confirmation submodule, configured to confirm that the pixel point is not a pixel point of the fracture surface if the gradient amplitude of the pixel point is less than the second amplitude threshold;

[0502] A first preset region judgment submodule is used to judge whether the pixel point is within a first preset region if the gradient amplitude of the pixel point is not greater than the first amplitude threshold and not less than the second amplitude threshold; the first preset region refers to a circular region with a pixel point of any of the fracture surfaces as the center and a first preset length as the radius;

[0503] The third pixel point confirmation submodule is used to confirm that the pixel point is a pixel point of the fracture surface if the pixel point is within the first preset area.

[0504] In an optional embodiment of the present invention, the pixel point determination module includes:

[0505] A pixel point combination submodule, used for combining the pixel points of the fracture surface to obtain a pixel point set of the fracture surface;

[0506] A gradient direction calculation submodule, used for calculating the gradient direction of a pixel point of the fracture surface for any pixel point of the fracture surface in the pixel point set;

[0507] An adjacent pixel point determination submodule, used to determine adjacent pixel points of the pixel point of the fracture surface in the gradient direction based on the gradient direction of the pixel point of the fracture surface, and calculate the gradient amplitude of the adjacent pixel points;

[0508] The first pixel point deletion submodule is used to delete the pixel point of the fracture surface from the pixel point set if the gradient amplitude of the pixel point of the fracture surface is smaller than the gradient amplitude of the adjacent pixel point.

[0509] In an optional embodiment of the present invention, the pixel point determination module includes:

[0510] an increasing submodule, configured to increase the first amplitude threshold to obtain a third amplitude threshold, and to reduce the second amplitude threshold to obtain a fourth amplitude threshold;

[0511] A second pixel point deletion submodule is used for deleting the pixel point of any of the fracture surfaces in the pixel point set from the pixel point set if the gradient amplitude of the pixel point of the fracture surface is less than the fourth amplitude threshold;

[0512] The third pixel point deletion submodule is used to delete the pixel points of the fracture surface from the pixel point set if the gradient amplitude of the pixel points of the fracture surface is not greater than the third amplitude threshold, not less than the fourth amplitude threshold and the pixel points are not located in the second preset area; the second preset area refers to a circular area with any pixel point of the fracture surface in the pixel point set as the center and a second preset length as the radius.

[0513] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0514] The embodiment of the present invention further discloses a computer program product, including a computer program / instruction, wherein the computer program / instruction implements the steps of the method described in the embodiment of the present invention when executed by a processor.

[0515] When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0516] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0517] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0518] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A geological data processing method in an underground engineering scenario, characterized in that: include: Acquire a rectangular image of a preset rock, and divide the rectangular image into at least one strip image; the rectangular image includes at least one fracture surface; Acquire color data and texture data of the rock on the strip image, and gradient amplitude of pixel points in the strip image; Classifying the rocks on the strip images into at least one category based on a first standard Euclidean distance between color data of any two rocks on the strip images and a second standard Euclidean distance between texture data of any two rocks on the strip images; determining a name of the at least one type of rock based on the color data and the texture data; Based on the gradient amplitude, a preset first amplitude threshold and a preset second amplitude threshold, determining whether the pixel point is a pixel point of the fracture surface; the first amplitude threshold is greater than the second amplitude threshold; If the pixel point is a pixel point of the fracture surface, the depth data of the pixel point of the fracture surface is acquired, and the fracture surface is analyzed based on the depth data.

2. The method according to claim 1, characterized in that The step of classifying the rocks on the strip image into at least one category based on a first standard Euclidean distance between color data of any two rocks on the strip image and a second standard Euclidean distance between texture data of any two rocks on the strip image comprises: For any of the strip images, use the strip image as a first strip image; According to a preset sequential naming method, the type of rock on the first strip image is used as a preset first type; the sequential naming method refers to a method of naming the rock types using a numerical sequence according to the order in which the rock types on the strip image are divided; For any of the strip images except the first strip image, use the strip image as a second strip image; Based on a first standard Euclidean distance between the first strip image and the second strip image, determining whether the type of rock on the second strip image is the first type; If the type of the rock on the second strip image is not the first type, then according to the sequential naming method, the type of the rock on the second strip image is used as the preset second type.

3. The method according to claim 2, characterized in that The step of classifying the rocks on the strip image into at least one category based on a first standard Euclidean distance between color data of any two rocks on the strip image and a second standard Euclidean distance between texture data of any two rocks on the strip image comprises: The strip images that have been divided into categories are combined to obtain a strip image set; Traversing the unclassified strip images, and judging whether there are rocks of the same type as the rocks on the currently traversed strip image in the strip image set, based on the first standard Euclidean distance and the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set; If there is no rock of the same type as the rock on the currently traversed strip image among the rocks corresponding to the strip image set, then according to the sequential nomenclature, the rock on the currently traversed strip image is taken as the rock of the target sequence type; After the currently traversed strip image is traversed, the currently traversed strip image is added to the strip image set, and the remaining unclassified strip images are continuously traversed until all the unclassified strip images are added to the strip image set.

4. The method according to claim 3, characterized in that The step of determining the name of the at least one type of rock based on the color data and the texture data comprises: In the process of classifying the rocks on the strip image into at least one type, based on the color data and texture data of the rocks of the type on the strip image, target color data and target texture data of the rocks of the type are determined; For any of the types of rocks, the name of the type of rock is determined based on the target color data and the target texture data.

5. The method according to claim 4, characterized in that In the process of classifying the rocks on the strip image into at least one type, the step of determining the target color data and target texture data of the rocks of the type on the strip image based on the color data and texture data of the rocks of the type on the strip image comprises: Using the color data and texture data of the rock on the first strip image as the target color data and target texture data of the first type of rock; If the type of the rock on the second strip image is the first type, then updating the average value of the color data of the rock on the first strip image and the second strip image to the target color data of the rock of the first type, and updating the average value of the texture data of the rock on the first strip image and the second strip image to the target texture data of the rock of the first type; If the type of the rock on the second strip image is not the first type, the color data and texture data of the rock on the second strip image are used as the target color data and target texture data of the second type of rock.

6. The method according to claim 5, characterized in that In the process of classifying the rocks on the strip image into at least one type, the step of determining the target color data and target texture data of the rocks of the type on the strip image based on the color data and texture data of the rocks of the type on the strip image comprises: If there is no rock of the same type as the rock on the currently traversed strip image among the rocks corresponding to the strip image set, the color data and texture data of the rock on the currently traversed strip image are used as the target color data and target texture data of the rock of the target order type; If there are rocks of the same type as the rocks on the currently traversed strip image in the rocks corresponding to the strip image set, the type of the rocks of the same type as the rocks on the currently traversed strip image in the rocks corresponding to the strip image set is taken as the target type; Updating the average value of the color data of the target type of rock and the rock on the currently traversed strip image as the target color data of the target type of rock; The average value of the texture data of the target type of rock and the rock on the currently traversed strip image is updated as the target texture data of the target type of rock.

7. The method according to claim 3, characterized in that The step of judging whether the type of rock on the second strip image is the first type based on the first standard Euclidean distance between the first strip image and the second strip image comprises: Determining whether a first standard Euclidean distance between the first strip image and the second strip image is greater than a preset distance threshold; If the first standard Euclidean distance between the first strip image and the second strip image is not greater than the preset distance threshold, it is confirmed that the type of the rock on the second strip image is the first type.

8. The method according to claim 7, characterized in that The step of judging whether there are rocks of the same type as the rocks on the currently traversed strip image in the rock image set based on the first standard Euclidean distance and the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set comprises: Combining the first standard Euclidean distances between the currently traversed strip image and the strip images in the strip image set to obtain a first standard Euclidean distance set; Taking the minimum value in the first standard Euclidean distance set as the first target standard Euclidean distance; If the first target standard Euclidean distance is not greater than the preset distance threshold, determining whether the first standard Euclidean distance in the first standard Euclidean distance set is not greater than the preset distance threshold; If the number of the first standard Euclidean distances in the first standard Euclidean distance set that is not greater than the preset distance threshold meets the preset number requirement, it is confirmed that the type of rock on the strip image in the strip image set corresponding to the first target standard Euclidean distance is the same as the type of rock in the currently traversed strip image.

9. The method according to claim 8, characterized in that The step of judging whether there are rocks of the same type as the rocks on the currently traversed strip image in the rock image set based on the first standard Euclidean distance and the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set comprises: If the number of the first standard Euclidean distances in the first standard Euclidean distance set that is not greater than the preset distance threshold does not meet the preset number requirement, taking the minimum value of the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set as the second target standard Euclidean distance; It is confirmed that the type of rock on the strip image in the strip image set corresponding to the second target standard Euclidean distance is the same as the type of rock in the currently traversed strip image.

10. The method according to claim 8 or 9, characterized in that: The step of judging whether there are rocks of the same type as the rocks on the currently traversed strip image in the rock image set based on the first standard Euclidean distance and the second standard Euclidean distance between the currently traversed strip image and the strip images in the strip image set comprises: If the first target standard Euclidean distance is greater than the preset distance threshold, it is confirmed that there is no rock of the same type as the rock on the currently traversed strip image in the rocks corresponding to the strip image set.

11. The method according to claim 1, characterized in that: The step of judging whether the pixel point is a pixel point of the fracture surface based on the gradient amplitude, a preset first amplitude threshold and a preset second amplitude threshold comprises: If the gradient amplitude of the pixel point is greater than the first amplitude threshold, confirming that the pixel point is a pixel point of the fracture surface; If the gradient amplitude of the pixel point is less than the second amplitude threshold, confirming that the pixel point is not a pixel point of the fracture surface; If the gradient amplitude of the pixel point is not greater than the first amplitude threshold and not less than the second amplitude threshold, it is determined whether the pixel point is within a first preset area; the first preset area refers to a circular area with a pixel point of any of the fracture surfaces as the center and a first preset length as the radius; If the pixel point is within the first preset area, the pixel point is confirmed to be a pixel point of the fracture surface.

12. The method according to claim 11, characterized in that The step of judging whether the pixel point is a pixel point of the fracture surface based on the gradient amplitude, a preset first amplitude threshold and a preset second amplitude threshold comprises: Combining the pixel points of the fracture surface to obtain a pixel point set of the fracture surface; For any pixel point of the fracture surface in the pixel point set, calculating the gradient direction of the pixel point of the fracture surface; Based on the gradient direction of the pixel point of the fracture surface, determining the adjacent pixel points of the pixel point of the fracture surface in the gradient direction, and calculating the gradient amplitude of the adjacent pixel points; If the gradient amplitude of the pixel point on the fracture surface is smaller than the gradient amplitude of the adjacent pixel point, the pixel point on the fracture surface is deleted from the pixel point set.

13. The method according to claim 12, characterized in that The step of judging whether the pixel point is a pixel point of the fracture surface based on the gradient amplitude, a preset first amplitude threshold and a preset second amplitude threshold comprises: Increasing the first amplitude threshold to obtain a third amplitude threshold, and decreasing the second amplitude threshold to obtain a fourth amplitude threshold; For any pixel point of the fracture surface in the pixel point set, if the gradient amplitude of the pixel point of the fracture surface is less than the fourth amplitude threshold, deleting the pixel point of the fracture surface from the pixel point set; If the gradient amplitude of the pixel point of the fracture surface is not greater than the third amplitude threshold, not less than the fourth amplitude threshold, and the pixel point is not located in the second preset area, the pixel point of the fracture surface is deleted from the pixel point set; the second preset area refers to a circular area with any pixel point of the fracture surface in the pixel point set as the center and a second preset length as the radius.

14. A geological data processing device for underground engineering scenarios, characterized in that: include: A rectangular image acquisition module, used to acquire a rectangular image of a preset rock and divide the rectangular image into at least one strip image; the rectangular image includes at least one fracture surface; A data acquisition module, used to acquire color data and texture data of the rock on the strip image, and gradient amplitude of pixel points in the strip image; A category classification module, used for classifying the rocks on the strip image into at least one category based on a first standard Euclidean distance between color data of any two rocks on the strip image and a second standard Euclidean distance between texture data of any two rocks on the strip image; a name determination module, configured to determine a name of the at least one type of rock based on the color data and the texture data; a pixel point judgment module, used to judge whether the pixel point is a pixel point of the fracture surface based on the gradient amplitude, a preset first amplitude threshold and a preset second amplitude threshold; the first amplitude threshold is greater than the second amplitude threshold; A depth data acquisition module is used to acquire depth data of the pixel point of the fracture surface if the pixel point is a pixel point of the fracture surface, and analyze the fracture surface based on the depth data.

15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.

Citation Information

Patent Citations

  • Self-adaptive canny method for crack detection

    CN116485719A

Cited By

  • Nanoindentation test layering pretreatment method and system for sedimentary rock sample

    CN121617085A