Method, device and server for extracting organic and inorganic pores from shale

By processing the scanning electron microscope images of shale cores, extracting brightness layer images and dividing organic and inorganic pores, the problem of low accuracy in the quantitative characterization of organic and inorganic pores in shale in existing technologies is solved, and high-precision pore identification and classification is achieved.

CN117252916BActive Publication Date: 2025-09-26CHINA UNIV OF PETROLEUM (BEIJING)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311175968.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-12
Publication Date
2025-09-26
Estimated Expiration
2043-09-12

AI Technical Summary

Technical Problem

The existing quantitative characterization methods for organic and inorganic pores in shale have low test accuracy, cannot be operated on a large scale, and the identification results are greatly affected by the subjective influence of researchers.

Method used

By acquiring scanning electron microscope images of shale cores, converting them into Lab images and extracting brightness layer images, MATLAB software was used for image processing to divide organic and inorganic pores, and calculate the surface ratios of organic and inorganic pores.

Benefits of technology

High-precision division of organic and inorganic pores is achieved, which is suitable for large-scale operations, reduces subjective influence, and improves recognition accuracy and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117252916B_ABST
    Figure CN117252916B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, and server for extracting organic and inorganic pores from shale. The method comprises: obtaining a scanning electron microscope image of a shale core obtained by preprocessing a shale thin section; converting the scanning electron microscope image of the shale core into a Lab image, and extracting a brightness layer image from the Lab image; processing the brightness layer image to obtain a binary image of organic pores and a binary image of inorganic pores; segmenting the organic and inorganic matter in the binary organic and inorganic pore images to obtain an organic image and an inorganic image; obtaining an organic pore image and an inorganic pore image from the scanning electron microscope image of the shale core based on the organic and inorganic images; and calculating the porosity of the organic and inorganic pores in the scanning electron microscope image of the shale core based on the organic and inorganic images. This method achieves high-precision segmentation of organic and inorganic pores in shale scanning electron microscope images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of oil and gas exploration technology, particularly the field of shale reservoir exploration technology, and more particularly to a method, device and server for extracting organic pores and inorganic pores from shale. Background Art

[0002] With the deepening of unconventional oil and gas exploration and development, shale oil and gas, as an important component, has become one of the key research areas for scientific researchers. The pore structure and characteristics of shale reservoirs have a significant impact on the storage and occurrence of oil and gas. Shale reservoirs have complex pore structures and diverse microscopic pore types. The reservoir space mainly includes three major categories: organic pores, inorganic pores, and microfractures. Different types of reservoir space have significant differences in pore type, pore size, and pore connectivity, and show different control effects on oil and gas enrichment. Therefore, identifying and extracting organic and inorganic pores is very important for exploring the oil and gas enrichment capacity of shale.

[0003] The existing methods for quantitative characterization of organic and inorganic pores in shale mainly include nuclear magnetic resonance identification, argon ion polishing-scanning electron microscopy, and nano-CT.

[0004] However, the inventors found that the above methods have the problem that the existing instruments have low test accuracy and cannot be operated on a large scale. Summary of the Invention

[0005] The present application provides a method, device and server for extracting organic pores and inorganic pores from shale, which are used to solve the problems of low test accuracy and inability to operate on a large scale in the existing quantitative characterization methods of organic pores and inorganic pores.

[0006] In a first aspect, the present application provides a method for extracting organic pores and inorganic pores from shale, comprising:

[0007] Obtain scanning electron microscope images of shale cores of pre-treated shale thin sections;

[0008] converting the shale core scanning electron microscope image into a Lab image, and extracting a brightness layer image from the Lab image;

[0009] Processing the brightness layer image to obtain an organic pore binary image and an inorganic pore binary image;

[0010] dividing the organic matter and the inorganic matter in the organic pore binary image and the inorganic pore binary image to obtain an organic matter image and an inorganic matter image;

[0011] Obtaining an organic pore image and an inorganic pore image in the shale core scanning electron microscope image according to the organic matter image and the inorganic matter image;

[0012] The surface ratio of the organic pores and the surface ratio of the inorganic pores in the shale core scanning electron microscope image are calculated based on the organic pore image and the inorganic pore image.

[0013] In one possible design, converting the shale core scanning electron microscope image into a Lab image and extracting a brightness layer image from the Lab image includes: cropping and preprocessing the edges of the shale core scanning electron microscope image; using MATLAB software to obtain the Lab color space in the cropped and preprocessed shale core scanning electron microscope image to obtain a Lab image; and using MATLAB software to extract the brightness layer image from the Lab image.

[0014] In one possible design, the brightness layer image is processed to obtain an organic pore binary image and an inorganic pore binary image, including: setting a preset grayscale histogram threshold as a binarization threshold, drawing a grayscale histogram of the brightness layer image, and obtaining an organic pore binary image; setting a preset number of iterations, using an active contour region growing method to process the brightness layer image, and obtaining an inorganic pore binary image.

[0015] In one possible design, the organic matter and inorganic matter in the organic pore binary image and the inorganic pore binary image are divided to obtain an organic matter image and an inorganic matter image, including: setting multiple different grayscale histogram thresholds, detecting the coverage of the connected domain of the binary images with different grayscale histogram thresholds, and determining a target binary image from the organic pore binary image and the inorganic pore binary image according to the coverage of the connected domain of the binary image; using MATLAB software to process the target binary image to obtain a boundary edge line between organic matter and inorganic matter; and segmenting the target binary image according to the boundary edge line between organic matter and inorganic matter to obtain an organic matter image and an inorganic matter image.

[0016] In one possible design, the target binary image is processed using MATLAB software to obtain the boundary edge line between organic matter and inorganic matter, including: using a MATLAB function to delete the binary images in the target binary image whose area is smaller than a first preset area threshold, and thinning the edges of the remaining target binary images; and deleting the connected domains in the connected domains of the remaining target binary images whose area is smaller than a second preset area threshold, to obtain the boundary edge line between organic matter and inorganic matter.

[0017] In one possible design, the organic pore image and the inorganic pore image in the shale core scanning electron microscope image are obtained based on the organic matter image and the inorganic matter image, including: superimposing and cropping the organic pore binary image and the organic matter image to obtain the organic pore image in the organic matter image; superimposing and cropping the inorganic pore binary image and the inorganic matter image to obtain the inorganic pore image in the inorganic image.

[0018] In one possible design, the surface ratio of organic pores and the surface ratio of inorganic pores in the shale core scanning electron microscope image are calculated based on the organic pore image and the inorganic pore image, including: extracting the number of pixels of the organic pore image and the number of pixels of the inorganic pore image respectively; extracting the number of pixels of the organic matter image and the number of pixels of the inorganic matter image respectively; and calculating the surface ratio of the organic pores according to the following formula:

[0019]

[0020] Where, represents the face rate; n o Indicates the number of pixels in the organic hole image; N o Represents the number of pixels in the organic matter image; the face ratio of inorganic pores is calculated according to the following formula:

[0021]

[0022] Where, represents the face rate; n i Indicates the number of pixels in the inorganic hole image; N i Indicates the number of pixels in the inorganic image.

[0023] In a second aspect, the present application provides a device for extracting organic pores and inorganic pores from shale, comprising:

[0024] an acquisition module for acquiring a scanning electron microscope image of a shale core of a pre-processed shale thin section;

[0025] an extraction module, configured to convert the shale core scanning electron microscope image into a Lab image and extract a brightness layer image from the Lab image;

[0026] a processing module, configured to process the brightness layer image to obtain an organic pore binary image and an inorganic pore binary image;

[0027] a segmentation module for segmenting the organic matter and the inorganic matter in the binary organic pore image and the binary inorganic pore image to obtain an organic matter image and an inorganic matter image;

[0028] a determination module, configured to obtain an organic pore image and an inorganic pore image in the shale core scanning electron microscope image according to the organic matter image and the inorganic matter image;

[0029] A calculation module is used to calculate the surface ratio of organic pores and the surface ratio of inorganic pores in the shale core scanning electron microscope image based on the organic pore image and the inorganic pore image.

[0030] In a third aspect, the present application provides a server comprising: at least one processor and a memory; the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method for extracting organic pores and inorganic pores from shale in the first aspect and any possible design of the first aspect.

[0031] In a fourth aspect, the present application provides a computer-readable storage medium, which stores computer-executable instructions. When a processor executes the computer-executable instructions, a method for extracting organic pores and inorganic pores from shale is implemented as in the first aspect and any possible design of the first aspect.

[0032] The present application provides a method, device and server for extracting organic pores and inorganic pores in shale. The method, device and server obtain a shale core scanning electron microscope image of a pre-processed shale slice, convert the shale core scanning electron microscope image into a Lab image, extract a brightness layer image in the Lab image, process the brightness layer image to obtain an organic pore binary image and an inorganic pore binary image, divide the organic matter and inorganic matter in the organic pore binary image and the inorganic pore binary image to obtain an organic image and an inorganic image, obtain an organic pore image and an inorganic pore image in the shale core scanning electron microscope image based on the organic image and the inorganic image, calculate the face ratio of the organic pores and the face ratio of the inorganic pores in the shale core scanning electron microscope image based on the organic pore image and the inorganic pore image, thereby effectively dividing the organic pores and inorganic pores in the shale scanning electron microscope image, with high division accuracy and applicable to quantitative identification and classification of organic pores and inorganic pores in scanning electron microscope images of a wide range of accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0034] Figure 1 The process of the method for extracting organic pores and inorganic pores from shale provided in the embodiment of the present application Figure 1 '

[0035] Figure 2 The process of the method for extracting organic pores and inorganic pores from shale provided in the embodiment of the present application Figure 2 ;

[0036] Figure 3 This is a scanning electron microscope image of a shale sample from the Fengcheng Formation in the Mahu Depression provided in the examples of this application;

[0037] Figure 4 This is a brightness layer image in a scanning electron microscope Lab image of a shale sample from the Fengcheng Formation in the Mahu Sag provided in an embodiment of the present application;

[0038] Figure 5 A scanning electron microscope binary image of a shale sample of the Fengcheng Formation in the Mahu Depression provided in an embodiment of the present application, with organic pores as the dominant pores;

[0039] Figure 6 This is a scanning electron microscope binary image of a shale sample of the Fengcheng Formation in the Mahu Depression provided in an embodiment of the present application, with inorganic pores as the dominant pores;

[0040] Figure 7 The embodiment of the present application provides an image of the boundary line between organic matter and inorganic matter in a shale sample of the Fengcheng Formation in the Mahu Sag;

[0041] Figure 8 The embodiments of the present application provide organic pore images and inorganic pore images of shale samples from the Fengcheng Formation in the Mahu Depression; wherein, Figure (a) is an organic pore image, and Figure (b) is an inorganic pore image;

[0042] Figure 9 A schematic diagram of the structure of a device for extracting organic and inorganic pores from shale provided in an embodiment of the present application;

[0043] Figure 10 A schematic diagram of the hardware structure of the server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions in this application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0045] With the deepening of unconventional oil and gas exploration and development, shale oil and gas, as an important component, has become one of the key research areas for scientific researchers. The pore structure and characteristics of shale reservoirs have a significant impact on the storage and occurrence of oil and gas. Shale reservoirs have complex pore structures and diverse microscopic pore types. The reservoir space mainly includes three major categories: organic pores, inorganic pores, and microfractures. Different types of reservoir spaces have large differences in pore type, pore size, and pore connectivity, and exhibit different control effects on oil and gas enrichment. Therefore, the identification and extraction of organic and inorganic pores is very important for exploring the oil and gas enrichment capacity of shale. The existing methods for quantitative characterization of organic and inorganic pores in shale mainly include nuclear magnetic resonance identification, argon ion polishing-scanning electron microscopy, and nano-CT. However, the above methods have the following four major drawbacks: (1) Theoretical limitations: NMR identification is based on the difference in pore wettability to distinguish organic pores from inorganic pores. However, due to the complex composition of shale, different organic matter types, clay mineral types, and temperature and pressure environments will affect wettability. (2) The accuracy of existing instruments is low. The resolution of nano-CT can reach tens of nanometers, which makes it difficult to identify micropores in organic pores. Nano-CT also has limitations when characterizing small throats. (3) It cannot be operated on a large scale. Argon ion polishing-scanning electron microscopy currently identifies organic pores from inorganic pores based on subjective impressions and experience. For example, during the observation and identification process, the work experience, fatigue level, and concentration level of different researchers will affect the identification results. (4) The accuracy is limited. The machine algorithm for identifying organic pores from inorganic pores using argon ion polishing-scanning electron microscopy images still mainly divides them directly according to the grayscale value of the image. However, since the grayscale values ​​of different types of pores are difficult to distinguish, the accuracy of the division is affected. Therefore, the current identification method cannot be widely used nationwide.

[0046] In order to solve the above technical problems, the embodiments of the present invention propose the following inventive concepts: by processing the scanning electron microscope image of the shale core, a binary image of organic pores and a binary image of inorganic pores are obtained, and the organic matter and inorganic matter in the binary image are divided to obtain an organic matter image and an inorganic matter image; based on the organic matter image and the inorganic matter image, an organic pore image and an inorganic pore image are obtained, and based on the organic pore image and the inorganic pore image, the surface ratio of the organic pores and the surface ratio of the inorganic pores in the scanning electron microscope image of the shale core are calculated, thereby achieving high-precision division of organic pores and inorganic pores in the scanning electron microscope image of the shale.

[0047] The following specific embodiments are used to describe the technical solution of the present application in detail. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0048] Figure 1 The process of the method for extracting organic pores and inorganic pores from shale provided in the embodiment of the present application Figure 1 The execution subject of this embodiment can be a server or other computer equipment. Figure 1 As shown, the method of this embodiment may include the following steps:

[0049] S101. Obtain a scanning electron microscope image of a shale core of a pre-treated shale thin section.

[0050] In this embodiment, the pretreated shale thin section is a shale core sample with a length of ≥2.5 cm and no sedimentary discontinuities. The imaging surface of the pretreated shale thin section can be obtained by cutting with tools or mechanical polishing. Care should be taken to select a layer with uniform organic and inorganic matter development. Scanning electron microscope images of the pretreated shale thin section are taken to obtain a surface morphology image of the shale core sample pretreated thin section under a secondary electron beam. Care should be taken to ensure that the resolution of the field emission scanning electron microscope image is sufficient to identify micropores.

[0051] Specifically, taking the Fengcheng Formation shale samples in the Mahu Sag of the Junggar Basin as an example, the depth range is 4000 to 5660 meters, and the images taken by the scanning electron microscope are as follows: Figure 3 As shown, Figure 3 This is a scanning electron microscope image of a shale sample from the Fengcheng Formation in the Mahu Depression provided in the examples of this application.

[0052] S102 , converting the shale core scanning electron microscope image into a Lab image, and extracting a brightness layer image from the Lab image.

[0053] In this embodiment, the specific steps of converting the shale core scanning electron microscope image into a Lab image and extracting the brightness layer image from the Lab image include:

[0054] a1: Preprocess the edges of the shale core SEM image by cropping.

[0055] a2: Use MATLAB software to obtain the Lab color space of the cropped preprocessed shale core scanning electron microscope image to obtain a Lab image.

[0056] a3: Use MATLAB software to extract the brightness layer image from the Lab image.

[0057] Specifically, after obtaining the shale core SEM image, the edge of the shale core SEM image is cropped, and the CIELAB color space (CIELAB is the full name of Lab) of the cropped shale core SEM image is obtained through MATLAB software. Lab is composed of a brightness channel and two color channels. In the Lab color space, each color is represented by three numbers: L, a, and b. The meaning of each component is as follows: L represents brightness, a represents the component from green to red, and b represents the component from blue to yellow. Finally, the brightness layer image in the Lab image is extracted using MATLAB software. The brightness layer image is as follows Figure 4 As shown, Figure 4 This is a brightness layer image in a scanning electron microscope Lab image of a shale sample from the Fengcheng Formation in the Mahu Depression provided in an embodiment of the present application.

[0058] S103 , processing the brightness layer image to obtain an organic pore binary image and an inorganic pore binary image.

[0059] In this embodiment, the specific steps of processing the brightness layer image to obtain the organic pore binary image and the inorganic pore binary image include:

[0060] b1: Set the preset grayscale histogram threshold as the binarization threshold, draw the grayscale histogram of the brightness layer image, and obtain the organic pore binarization image;

[0061] b2: Set the preset number of iterations and use the active contour region growing method to process the brightness layer image to obtain the binary image of inorganic pores.

[0062] Specifically, the grayscale histogram of the brightness layer image is counted and drawn, and a preset grayscale histogram threshold is set as a binarization threshold to obtain a scanning electron microscope binary image with organic pores as the dominant pores. The brightness layer image is processed using the active contour (snake) region growing method, and a preset number of iterations is set to obtain a scanning electron microscope binary image with inorganic pores as the dominant pores. In the process of processing the binary images with organic pores and inorganic pores as the dominant pores, the preset grayscale histogram threshold and the preset number of iterations are repeatedly changed to obtain the maximum coverage of organic pores and inorganic pores. Among them, the preset grayscale histogram threshold and the preset number of iterations can be set according to actual conditions, and this application does not impose specific restrictions. Figure 5 This is a scanning electron microscope binary image of a shale sample of the Fengcheng Formation in the Mahu Depression provided in the examples of this application, with organic pores as the dominant pores. Figure 6 The present invention provides a scanning electron microscope binary image of a shale sample of the Fengcheng Formation in the Mahu Depression, with inorganic pores as the dominant pores.

[0063] S104 , dividing the organic matter and the inorganic matter in the organic pore binary image and the inorganic pore binary image to obtain an organic matter image and an inorganic matter image.

[0064] In this embodiment, the binary image with the best organic and inorganic edge division is first determined in the organic pore binary image and the inorganic pore binary image as the target binary image, and then the target binary image is processed to obtain the boundary edge line between organic and inorganic matter in the target binary image. The target binary image is segmented according to the boundary edge line between organic and inorganic matter to obtain an organic image and an inorganic image.

[0065] S105 , obtaining an organic pore image and an inorganic pore image in a shale core scanning electron microscope image according to the organic matter image and the inorganic matter image.

[0066] In this embodiment, the specific steps of obtaining the organic pore image and the inorganic pore image in the shale core scanning electron microscope image based on the organic matter image and the inorganic matter image include:

[0067] c1: Overlay and crop the organic pore binary image and the organic matter image to obtain the organic pore image in the organic matter image.

[0068] c2: Superimpose and crop the inorganic pore binary image with the inorganic material image to obtain the inorganic pore image in the inorganic material image.

[0069] Specifically, organic pores and inorganic pore images, e.g. Figure 8 As shown, Figure 8 Provided for the embodiments of the present application are organic pore images and inorganic pore images of shale samples from the Fengcheng Formation in the Mahu Depression; wherein, Figure (a) is an organic pore image, and Figure (b) is an inorganic pore image.

[0070] S106. Calculate the surface ratio of the organic pores and the surface ratio of the inorganic pores in the shale core scanning electron microscope image based on the organic pore image and the inorganic pore image.

[0071] In this embodiment, the specific steps of calculating the surface ratio of organic pores and the surface ratio of inorganic pores in the shale core scanning electron microscope image based on the organic pore image and the inorganic pore image include:

[0072] d1: Extract the number of pixels of the image with organic pores and the image without organic pores respectively.

[0073] d2: Extract the number of pixels of the organic matter image and the number of pixels of the inorganic matter image respectively.

[0074] d3: Calculate the face ratio of organic pores according to the following formula:

[0075]

[0076] Where, represents the face rate; n o Indicates the number of pixels in the organic hole image; N o Indicates the number of pixels in the organic matter image.

[0077] d4: Calculate the surface ratio of inorganic pores according to the following formula:

[0078]

[0079] Where, represents the face rate; n i Indicates the number of pixels in the inorganic hole image; N i Indicates the number of pixels in the inorganic image.

[0080] Specifically, based on the above formulas for calculating the face ratio of organic pores and inorganic pores, the face ratio of organic pores in the Fengcheng Formation shale sample in the Mahu Depression is calculated to be 2.69%, and the face ratio of inorganic pores is 4.24%.

[0081] In summary, the method for extracting organic pores and inorganic pores in shale provided in the present application obtains a scanning electron microscope image of a shale core of a pretreated shale slice, converts the scanning electron microscope image of the shale core into a Lab image, extracts a brightness layer image in the Lab image, processes the brightness layer image, obtains an organic pore binary image and an inorganic pore binary image, divides the organic matter and inorganic matter in the organic pore binary image and the inorganic pore binary image, obtains an organic image and an inorganic image, obtains an organic pore image and an inorganic image in the scanning electron microscope image of the shale core based on the organic image and the inorganic image, calculates the face ratio of the organic pores and the face ratio of the inorganic pores in the scanning electron microscope image of the shale core based on the organic pore image and the inorganic pore image, and realizes effective division of organic pores and inorganic pores in the scanning electron microscope image of shale, with high division accuracy and applicable to quantitative identification and classification of organic pores and inorganic pores in scanning electron microscope images of a wide range of accuracy.

[0082] Figure 2 The process of the method for extracting organic pores and inorganic pores from shale provided in the embodiment of the present application Figure 2 .exist Figure 1 Based on the examples, Figure 2 The specific steps of dividing the organic matter and inorganic matter in the organic pore binary image and the inorganic pore binary image in step S104 to obtain the organic matter image and the inorganic matter image are given. Figure 2 As shown, the method of this embodiment may include the following steps:

[0083] S201. Set multiple different grayscale histogram thresholds, detect the coverage of the connected domains of the binarized images with different grayscale histogram thresholds, and determine the target binarized image from the organic pore binarized image and the inorganic pore binarized image based on the coverage of the connected domains of the binarized images.

[0084] In this embodiment, by setting multiple different grayscale histogram thresholds, the coverage of the connected domain of the binary image with different grayscale histogram thresholds is detected, and the scanning electron microscope binary image with the best edge division between organic matter and inorganic matter is obtained according to the coverage of the connected domain of the binary image. The scanning electron microscope binary image with the best edge division between organic matter and inorganic matter is used as the target binarized image.

[0085] S202. Use MATLAB software to process the target binary image to obtain the boundary line between organic matter and inorganic matter.

[0086] In this embodiment, the specific steps of using MATLAB software to process the target binary image and obtain the boundary line between organic matter and inorganic matter include:

[0087] Using a MATLAB function to delete the binary images whose area is smaller than a first preset area threshold in the target binary image, and to refine the edges of the remaining target binary images;

[0088] The connected domains of the remaining target binary image whose areas are smaller than a second preset area threshold are deleted to obtain the boundary edge line between organic matter and inorganic matter.

[0089] Specifically, image processing is performed using software such as MATLAB, and the bwareaopen function is applied to delete the binary images with an area smaller than a first preset area threshold from the target binary image, and refine the edges of the remaining target binary images; and the connected domains with an area smaller than a second preset area threshold are deleted from the connected domains of the remaining target binary images to obtain the boundary edge line between organic matter and inorganic matter. Figure 7 Provided in the examples of this application is an image of the boundary line between organic matter and inorganic matter in a shale sample of the Fengcheng Formation in the Mahu Sag.

[0090] Among them, the first preset area threshold and the second preset area threshold can be set according to actual conditions, and this application does not impose any specific restrictions.

[0091] S203 , segmenting the target binary image according to the boundary line between organic matter and inorganic matter to obtain an organic matter image and an inorganic matter image.

[0092] In summary, the method for extracting organic pores and inorganic pores in shale provided in this embodiment sets multiple different grayscale histogram thresholds, detects the coverage of the connected domain of the binary image with different grayscale histogram thresholds, and determines the target binary image from the organic pore binary image and the inorganic pore binary image according to the coverage of the connected domain of the binary image; uses MATLAB software to process the target binary image to obtain the boundary edge line between organic matter and inorganic matter; and segments the target binary image according to the boundary edge line between organic matter and inorganic matter to obtain organic matter image and inorganic matter image, thereby achieving accurate segmentation of organic matter image and inorganic matter image, and providing a basis for subsequent high-precision identification of organic pores and inorganic pores.

[0093] Figure 9 A schematic diagram of the structure of a device for extracting organic and inorganic pores from shale provided in one embodiment of the present application is shown in FIG. Figure 9 As shown, the device for extracting organic pores and inorganic pores in shale in this embodiment is used to implement the operations corresponding to the server in any of the above method embodiments. The device for extracting organic pores and inorganic pores in shale in this embodiment includes: an acquisition module 901, an extraction module 902, a processing module 903, a division module 904, a determination module 909 and a calculation module 906.

[0094] The acquisition module 901 is used to acquire a scanning electron microscope image of a shale core of a pre-processed shale slice.

[0095] The extraction module 902 is used to convert the shale core scanning electron microscope image into a Lab image and extract the brightness layer image in the Lab image.

[0096] The processing module 903 is used to process the brightness layer image to obtain an organic pore binary image and an inorganic pore binary image.

[0097] The segmentation module 904 is used to segment the organic matter and the inorganic matter in the organic pore binary image and the inorganic pore binary image to obtain an organic matter image and an inorganic matter image.

[0098] The determination module 909 is configured to obtain an organic pore image and an inorganic pore image in the shale core scanning electron microscope image according to the organic matter image and the inorganic matter image.

[0099] The calculation module 906 is used to calculate the surface ratio of organic pores and the surface ratio of inorganic pores in the shale core scanning electron microscope image based on the organic pore image and the inorganic pore image.

[0100] In one possible implementation, the extraction module 902 is specifically used to: perform cropping preprocessing on the edges of the shale core scanning electron microscope image; use MATLAB software to obtain the Lab color space in the cropped preprocessed shale core scanning electron microscope image to obtain a Lab image; and use MATLAB software to extract the brightness layer image in the Lab image.

[0101] In one possible implementation, the processing module 903 is specifically used to: set a preset grayscale histogram threshold as a binarization threshold, draw a grayscale histogram of the brightness layer image, and obtain a binary image of organic pores; set a preset number of iterations, use the active contour region growing method to process the brightness layer image, and obtain a binary image of inorganic pores.

[0102] In one possible implementation, the division module 904 is specifically used to: set multiple different grayscale histogram thresholds, detect the coverage of the connected domain of the binary image with different grayscale histogram thresholds, and determine the target binary image from the organic pore binary image and the inorganic pore binary image according to the coverage of the connected domain of the binary image; use MATLAB software to process the target binary image to obtain the boundary edge line between organic matter and inorganic matter; and segment the target binary image according to the boundary edge line between organic matter and inorganic matter to obtain an organic image and an inorganic image.

[0103] In one possible implementation, the division module 904 is also specifically used to: use a MATLAB function to delete the binary images in the target binary image whose area is smaller than a first preset area threshold, and refine the edges of the remaining target binary images; delete the connected domains in the connected domains of the remaining target binary images whose area is smaller than a second preset area threshold, and obtain the boundary edge line between organic matter and inorganic matter.

[0104] In one possible implementation, the determination module 909 is specifically used to: superimpose and crop the organic pore binary image and the organic image to obtain an organic pore image in the organic image; superimpose and crop the inorganic pore binary image and the inorganic image to obtain an inorganic pore image in the inorganic image.

[0105] In one possible implementation, the calculation module 906 is specifically configured to: extract the number of pixels of the organic pore image and the number of pixels of the inorganic pore image; extract the number of pixels of the organic matter image and the number of pixels of the inorganic matter image; and calculate the surface ratio of the organic pores according to the following formula:

[0106]

[0107] Where, represents the face rate; n o Indicates the number of pixels in the organic hole image; N oRepresents the number of pixels in the organic matter image; the face ratio of inorganic pores is calculated according to the following formula:

[0108]

[0109] Where, represents the face rate; n i Indicates the number of pixels in the inorganic hole image; N i Indicates the number of pixels in the inorganic image.

[0110] The device for extracting organic pores and inorganic pores from shale provided in the embodiment of the present application can execute the above method embodiment. Its specific implementation principles and technical effects can be found in the above method embodiment, and this embodiment will not be repeated here.

[0111] Figure 10 This is a hardware structure diagram of a server provided in an embodiment of the present application. Figure 10 As shown, the server includes: memory 1001 and at least one processor 1002. Memory 1001 is used to store computer-executable instructions. Memory 1001 may include high-speed random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. It may also be a USB flash drive, a mobile hard drive, a read-only memory, a magnetic disk, or an optical disk.

[0112] At least one processor 1002 is configured to execute computer-executable instructions stored in the memory to implement the in-service oil and gas pipeline inspection method described in the above embodiment. For details, please refer to the relevant descriptions in the above method embodiments. The processor 1002 may be a central processing unit (CPU), or other general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented by a hardware processor or implemented using a combination of hardware and software modules within the processor.

[0113] Optionally, the memory 1001 may be independent or integrated with the processor 1002 .

[0114] When the memory 1001 is a device independent of the processor 1002, the signal processing and analysis server 1004 may further include a bus 1003. The bus 1003 is used to connect the memory 1001 and the processor 1002. The bus 1003 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0115] The server provided in this embodiment can be used to execute the above-mentioned overseas oil and gas pipeline accident emergency response linkage method. Its implementation method and technical effects are similar and will not be described in detail in this embodiment.

[0116] The present application also provides a computer-readable storage medium, which stores computer-executable instructions for implementing the methods for extracting organic pores and inorganic pores from shale provided in the various embodiments described above.

[0117] Among them, the computer-readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a computer-readable storage medium is coupled to a processor so that the processor can read information from the computer-readable storage medium and write information to the computer-readable storage medium. Of course, the computer-readable storage medium can also be an integral part of the processor. The processor and the computer-readable storage medium can be located in an application-specific integrated circuit (ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the computer-readable storage medium can also exist in a communication device as discrete components.

[0118] Specifically, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random-access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0119] The present application also provides a computer program product, comprising a computer program / instructions stored in a computer-readable storage medium. At least one processor of a device can read the computer program / instructions from the computer-readable storage medium, and the at least one processor can execute the computer program / instructions to cause the device to implement the methods for extracting organic and inorganic pores from shale provided in the various embodiments described above.

[0120] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0121] The modules may be physically separate, for example, installed in different locations on a single device, or installed on different devices, or distributed across multiple network units, or distributed across multiple processors. The modules may also be integrated, for example, installed in the same device, or integrated into a set of codes. The modules may exist in the form of hardware, or in the form of software, or may be implemented in the form of software plus hardware. The present application may select some or all of the modules according to actual needs to achieve the purpose of the present embodiment.

[0122] When each module is implemented as an integrated module in the form of a software function module, it can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform some steps of the methods of each embodiment of the present application.

[0123] It should be understood that, although the various steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they may be performed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but may be performed at different times, and their execution order is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of sub-steps or stages of other steps.

[0124] Finally, it should be noted that the above embodiments are intended only to illustrate the technical solutions of this application and are not intended to limit them. Although this application has been described in detail with reference to the aforementioned embodiments, those skilled in the art will appreciate that they may modify the technical solutions described in the aforementioned embodiments or replace some or all of the technical features therein with equivalents. However, such modifications or replacements do not deviate from the essence of the corresponding technical solutions within the scope of the various embodiments of this application.

Claims

1. A method for extracting organic pores and inorganic pores from shale, characterized in that: include: Obtain scanning electron microscope images of shale cores of pre-treated shale thin sections; converting the shale core scanning electron microscope image into a Lab image, and extracting a brightness layer image from the Lab image; Processing the brightness layer image to obtain an organic pore binary image and an inorganic pore binary image; dividing the organic matter and the inorganic matter in the organic pore binary image and the inorganic pore binary image to obtain an organic matter image and an inorganic matter image; Obtaining an organic pore image and an inorganic pore image in the shale core scanning electron microscope image according to the organic matter image and the inorganic matter image; Calculating the surface ratio of organic pores and the surface ratio of inorganic pores in the shale core scanning electron microscope image based on the organic pore image and the inorganic pore image; The processing of the brightness layer image to obtain an organic pore binary image and an inorganic pore binary image includes: Setting a preset grayscale histogram threshold as a binarization threshold, drawing a grayscale histogram of the brightness layer image, and obtaining a binary image of organic pores; Setting a preset number of iterations, and using an active contour region growing method to process the brightness layer image to obtain an inorganic pore binary image; The step of obtaining the organic pore image and the inorganic pore image in the shale core scanning electron microscope image according to the organic matter image and the inorganic matter image includes: superimposing and cutting the organic pore binary image and the organic matter image to obtain an organic pore image in the organic matter image; The inorganic pore binary image is superimposed and cut with the inorganic image to obtain an inorganic pore image in the inorganic image.

2. The method according to claim 1, characterized in that The converting the shale core scanning electron microscope image into a Lab image and extracting a brightness layer image from the Lab image includes: Performing a cropping preprocessing on the edge of the shale core scanning electron microscope image; MATLAB software was used to obtain the Lab color space of the cropped preprocessed shale core scanning electron microscope image to obtain a Lab image; MATLAB software is used to extract the brightness layer image in the Lab image.

3. The method according to claim 1, characterized in that The dividing of the organic matter and the inorganic matter in the organic pore binary image and the inorganic pore binary image to obtain the organic matter image and the inorganic matter image includes: Setting a plurality of different grayscale histogram thresholds, detecting coverage of connected domains of the binarized images at the different grayscale histogram thresholds, and determining a target binarized image from the organic pore binarized image and the inorganic pore binarized image according to the coverage of the connected domains of the binarized images; Using MATLAB software to process the target binary image, the boundary line between organic matter and inorganic matter is obtained; The target binary image is segmented according to the boundary edge line between the organic matter and the inorganic matter to obtain an organic matter image and an inorganic matter image.

4. The method according to claim 3, characterized in that The method of using MATLAB software to process the target binary image to obtain the boundary line between organic matter and inorganic matter includes: Using a MATLAB function to delete the binary images whose areas are smaller than a first preset area threshold in the target binary image, and thinning the edges of the remaining target binary images; The connected domains of the remaining target binary image whose areas are smaller than a second preset area threshold are deleted to obtain a boundary edge line between organic matter and inorganic matter.

5. The method according to any one of claims 1 to 4, characterized in that The calculating the face ratio of the organic pores and the face ratio of the inorganic pores in the shale core scanning electron microscope image according to the organic pore image and the inorganic pore image includes: Extract the number of pixels of the organic pore image and the number of pixels of the inorganic pore image respectively; Extract the number of pixels of the organic matter image and the number of pixels of the inorganic matter image respectively; The face ratio of organic pores was calculated according to the following formula: Where, φ o represents the face ratio of organic pores; n o Indicates the number of pixels in the organic hole image; N o Indicates the number of pixels in the organic matter image; The surface ratio of inorganic pores is calculated according to the following formula: Where, φ i represents the surface ratio of inorganic pores; n i Indicates the number of pixels in the inorganic hole image; N i Indicates the number of pixels in the inorganic image.

6. A device for extracting organic pores and inorganic pores in shale, characterized in that: include: an acquisition module for acquiring a scanning electron microscope image of a shale core of a pre-processed shale thin section; an extraction module, configured to convert the shale core scanning electron microscope image into a Lab image and extract a brightness layer image from the Lab image; a processing module, configured to process the brightness layer image to obtain an organic pore binary image and an inorganic pore binary image; a segmentation module for segmenting the organic matter and the inorganic matter in the binary organic pore image and the binary inorganic pore image to obtain an organic matter image and an inorganic matter image; a determination module, configured to obtain an organic pore image and an inorganic pore image in the shale core scanning electron microscope image according to the organic matter image and the inorganic matter image; a calculation module, configured to calculate the surface ratio of the organic pores and the surface ratio of the inorganic pores in the shale core scanning electron microscope image based on the organic pore image and the inorganic pore image; The processing module is specifically configured to set a preset grayscale histogram threshold as a binarization threshold, draw a grayscale histogram of the brightness layer image, and obtain a binary image of organic pores; set a preset number of iterations, and use an active contour region growing method to process the brightness layer image to obtain a binary image of inorganic pores; The determination module is specifically used to superimpose and crop the organic pore binary image and the organic image to obtain an organic pore image in the organic image; and to superimpose and crop the inorganic pore binary image and the inorganic image to obtain an inorganic pore image in the inorganic image.

7. A server, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method for extracting organic pores and inorganic pores from shale according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the method for extracting organic pores and inorganic pores from shale according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method for analyzing carbonate rock structure based on Matlab

    CN108734714A

  • Shale bed series pore ratio calculation method and device, electronic equipment and storage medium

    CN115700736A