Automatic partition method, device and equipment for shale, storage medium and product
By combining high-resolution grayscale images and threshold segmentation with image filling and difference processing, the accurate identification of organic and inorganic pores in shale samples was achieved, solving the problems of inaccurate identification and low efficiency in existing technologies, improving identification efficiency and accuracy, and supporting oil exploration.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2026-03-13
AI Technical Summary
Existing methods for identifying shale pores suffer from inaccuracy and low efficiency. In particular, the threshold segmentation method is prone to misidentifying inorganic pores as organic matter, while manual hand-drawing is inefficient and has a high misjudgment rate.
Using high-resolution grayscale images and at least three pre-set threshold ranges, initial porosity, organic matter, and inorganic mineral zones are determined through partitioned image processing. Combined with image filling and interpolation processing, organic and inorganic pores in shale are accurately identified.
It improves the efficiency and accuracy of identifying organic pores, inorganic pores, and organic matter in shale samples, solves the problems of inaccurate identification and low efficiency in existing technologies, and provides more accurate data on pore type, size, morphology, and distribution, thus providing data support for oil exploration.
Smart Images

Figure CN121661087A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and in particular to an automatic shale partitioning method, apparatus, device, storage medium, and product. Background Technology
[0002] Shale reservoirs are heterogeneous porous media with highly complex pore structures. Shale is composed of pores and matrix. Pores can be further classified into organic and inorganic pores. Since hydrocarbons in organic pores are more difficult to extract than those in inorganic pores, identifying and distinguishing the different components of shale is helpful for subsequent reservoir porosity and permeability evaluation and exploitation.
[0003] Currently, the main methods for identifying and distinguishing shale pores are threshold segmentation and manual sketching. Because the size, pore size, and depth of organic matter affect the grayscale values of pores in shale images, threshold segmentation often misidentifies smaller, shallower inorganic pores as organic matter, affecting the accuracy and effectiveness of inorganic pore identification. Manual sketching, on the other hand, suffers from low identification efficiency in practice. Furthermore, relying on human experience to identify different regions in shale images can lead to misjudgments or inaccurate identification. Summary of the Invention
[0004] This invention provides an automatic shale partitioning method, apparatus, equipment, storage medium, and product, which improves the efficiency and accuracy of identifying organic pores, inorganic pores, and organic matter.
[0005] According to one aspect of the present invention, an automatic shale partitioning method is provided, the method comprising:
[0006] Based on the high-resolution grayscale image corresponding to the shale sample and at least three pre-set threshold ranges, a partition image corresponding to each threshold range is determined, wherein the partition image includes an initial pore map, an initial organic matter map, and an initial inorganic mineral zone map;
[0007] By filling in the inorganic mineral range of the initial inorganic mineral zone map, the inorganic mineral zone map to be used is obtained. Based on the initial porosity map and the inorganic mineral zone map to be used, the organic porosity map corresponding to the organic porosity region in the shale sample is determined.
[0008] Based on the initial organic matter map, the inorganic mineral area map to be used, and the full grayscale range map corresponding to the high-resolution grayscale image, the image to be applied is determined;
[0009] Based on the image to be applied, the inorganic mineral area map to be used, the initial pore map, the organic pore map, and the initial organic matter map, the inorganic pore map of the inorganic pore area and the organic matter map of the organic matter area in the shale sample are determined.
[0010] According to another aspect of the present invention, an automatic shale partitioning device is provided, the device comprising:
[0011] The partition image determination module is used to determine the partition image corresponding to each threshold range based on the high-resolution grayscale image corresponding to the shale sample and at least three pre-set threshold ranges. The partition image includes an initial pore map, an initial organic matter map, and an initial inorganic mineral zone map.
[0012] The organic pore map determination module is used to obtain the inorganic mineral area map to be used by filling the inorganic mineral range of the initial inorganic mineral area map, and to determine the organic pore map corresponding to the organic pore region in the shale sample based on the initial pore map and the inorganic mineral area map to be used.
[0013] The image to be applied determination module is used to determine the image to be applied based on the initial organic matter map, the inorganic mineral area map to be used, and the full grayscale range map corresponding to the high-resolution grayscale image;
[0014] The organic matter map determination module is used to determine the inorganic pore map of the inorganic pore region and the organic matter map of the organic matter region in a shale sample based on the image to be applied, the inorganic mineral area map to be used, the initial pore map, the organic pore map, and the initial organic matter map.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] At least one processor; and
[0017] A memory that is communicatively connected to at least one processor; wherein,
[0018] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to execute the automatic shale partitioning method of any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided that stores computer instructions for causing a processor to execute an automatic shale partitioning method according to any embodiment of the present invention.
[0020] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, characterized in that, when executed by a processor, the computer program implements an automatic shale partitioning method as described in any embodiment of the present invention.
[0021] The technical solution of this invention, through a high-resolution grayscale image corresponding to a shale sample and at least three pre-set threshold ranges, determines a partition image corresponding to each threshold range, thus achieving preliminary partitioning of the shale sample. By filling the inorganic mineral range of the initial inorganic mineral region map, a usable inorganic mineral region map is obtained. Based on the initial pore map and the usable inorganic mineral region map, the organic pore map corresponding to the organic pore region in the shale sample is determined. Based on this, all organic pores in the shale sample are accurately identified. Based on the initial organic matter map, the usable inorganic mineral region map, and the full grayscale range map corresponding to the high-resolution grayscale image, the image to be applied is determined. Based on the image to be applied, the usable inorganic mineral region map, the initial pore map, the organic pore map, and the initial organic matter map, the inorganic pore map of the inorganic pore region and the organic matter map of the organic matter region in the shale sample are determined. Based on this, the identification of all inorganic pore maps and the identification of organic matter regions in the shale sample are achieved. This technology solves the problems of inaccurate shale identification and low identification efficiency in existing technologies, and improves the efficiency and accuracy of identifying organic pores, inorganic pores and organic matter.
[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a flowchart of an automatic shale partitioning method provided in an embodiment of the present invention;
[0025] Figure 2 This is an example diagram of a high-resolution grayscale image provided in an embodiment of the present invention;
[0026] Figure 3 This is an example diagram of the initial pore size provided in an embodiment of the present invention;
[0027] Figure 4 This is an example diagram of the initial organic matter map provided in the embodiments of the present invention;
[0028] Figure 5 This is an example diagram of the initial inorganic mineral zone map provided in an embodiment of the present invention;
[0029] Figure 6This is an example diagram of the inorganic mineral zone map to be used provided in an embodiment of the present invention;
[0030] Figure 7 This is an example diagram of an organic pore map provided in an embodiment of the present invention;
[0031] Figure 8 This is an example image of the full grayscale range provided in the embodiments of the present invention;
[0032] Figure 9 This is an example image of the image to be applied provided in an embodiment of the present invention;
[0033] Figure 10 This is an example diagram of the organic matter map to be used provided in the embodiments of the present invention;
[0034] Figure 11 This is a flowchart of an automatic shale partitioning method provided in an embodiment of the present invention;
[0035] Figure 12 This is an example diagram of the first image provided in an embodiment of the present invention.
[0036] Figure 13 These are example diagrams of all pore patterns provided in the embodiments of the present invention;
[0037] Figure 14 This is an example diagram of the inorganic pore diagram provided in the embodiments of the present invention;
[0038] Figure 15 This is an example diagram of an organic matter map provided in an embodiment of the present invention;
[0039] Figure 16 This is a schematic diagram of the structure of an automatic shale partitioning device provided in an embodiment of the present invention;
[0040] Figure 17 This is a schematic diagram of the structure of an electronic device that implements the automatic shale partitioning method of this invention. Detailed Implementation
[0041] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0042] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0043] Example 1
[0044] Figure 1 This is a flowchart of an automatic shale partitioning method provided in Embodiment 1 of the present invention. This embodiment is applicable to accurately partitioning shale and determining the organic pores, inorganic pores, and organic matter content within the shale. This method can be executed by an automatic shale partitioning device, which can be implemented in hardware and / or software and can be configured in electronic devices such as mobile phones, computers, or servers. Figure 1 As shown, the method includes:
[0045] S110. Based on the high-resolution grayscale image corresponding to the shale sample and at least three pre-set threshold ranges, determine the partition image corresponding to each threshold range, wherein the partition image includes an initial pore map, an initial organic matter map, and an initial inorganic mineral zone map.
[0046] Shale consists of organic matter, inorganic mineral zones, and pores. Pores within the organic matter are called organic pores, while those within the inorganic mineral zones are called inorganic pores. The organic matter in shale primarily originates from the deposition and transformation of ancient biological remains. Common inorganic minerals in shale include clay minerals, quartz, feldspar, and carbonate minerals. Shale samples are the samples for which we currently need to identify pores and organic matter.
[0047] High-resolution grayscale images can be grayscale images corresponding to shale samples. Optionally, shale samples can be scanned using a scanning electron microscope (SEM) to obtain high-resolution grayscale images. Since the grayscale values corresponding to pores, organic matter, and inorganic mineral regions differ in high-resolution grayscale images, at least three threshold ranges can be set to segment the grayscale values. These threshold ranges can be understood as pre-set threshold ranges used to distinguish between pores, organic matter, and inorganic mineral regions. For example, 0 to a can be set as the threshold range corresponding to pores, a+1 to b as the threshold range corresponding to organic matter, and b+1 to c as the threshold range corresponding to inorganic mineral regions.
[0048] A partitioned image can be obtained by thresholding a high-resolution grayscale image according to a threshold range. The partitioned image includes an initial porosity map, an initial organic matter map, and an initial inorganic mineral map. The initial porosity map is the initial image corresponding to the pores in the shale sample. The initial organic matter map can be understood as the initial image corresponding to the organic matter in the shale sample. The initial inorganic mineral map can be understood as the initial image corresponding to the inorganic minerals in the shale sample.
[0049] Specifically, shale samples are acquired, and high-resolution grayscale images of the shale samples are obtained using scanning electron microscopy. To reduce noise interference in the high-resolution grayscale images and improve the accuracy of subsequent image processing, denoising processing can be performed on the high-resolution grayscale images to obtain denoised high-resolution grayscale images. Since the grayscale values corresponding to pores, organic matter, and inorganic mineral regions are different in the high-resolution grayscale images, threshold segmentation processing is performed on the denoised high-resolution grayscale images according to at least three pre-set threshold ranges. Based on the differences in grayscale values, the partition image corresponding to each threshold range is determined. That is, the initial pore map is determined based on the threshold range corresponding to pores; the initial organic matter map is determined based on the threshold range corresponding to organic matter; and the initial inorganic mineral region map is determined based on the threshold range corresponding to inorganic mineral regions.
[0050] For example, after scanning a shale sample using a scanning electron microscope, the resulting high-resolution grayscale image can be as follows: Figure 2 As shown. Figure 2 The lighter-colored areas correspond to inorganic mineral regions, while the darker gray areas correspond to organic matter. The black pores within the organic matter are organic pores, and the black pores within the inorganic mineral regions are inorganic pores. Figure 2 As can be seen, the distinction between organic pores and inorganic pores is not clear and obvious. Therefore, the method mentioned in the embodiments of the present invention is required to accurately identify organic pores and inorganic pores.
[0051] right Figure 2The high-resolution grayscale image is denoised to obtain a denoised high-resolution grayscale image. Using 0 to 25 as the initial threshold range for pores, threshold segmentation is performed on the denoised high-resolution grayscale image to obtain... Figure 3 The initial pore map is shown. Using 26 to 89 as the initial threshold range corresponding to organic matter, threshold segmentation is performed on the denoised high-resolution grayscale image to obtain the following... Figure 4 The initial organic matter map is shown. Using 90 to 255 as the threshold range corresponding to the inorganic mineral region, threshold segmentation is performed on the denoised high-resolution grayscale image to obtain the following... Figure 5 The initial inorganic mineral zone map is shown.
[0052] In this embodiment of the invention, the method for determining the partitioned image may be as follows: for at least one pixel in a high-resolution grayscale image, determine the target threshold range to which the pixel value belongs, and adjust the pixel value of the pixel according to the target threshold range; based on the adjusted pixel values of the pixels corresponding to each threshold range, determine the initial pore map, the initial organic matter map, and the initial inorganic mineral zone map.
[0053] The target threshold range can be understood as the threshold range that needs to be processed, selected from at least three threshold ranges. The target threshold range can be the threshold range corresponding to pores, the threshold range corresponding to organic matter, or the threshold range corresponding to inorganic mineral regions.
[0054] Specifically, for at least one pixel in a high-resolution grayscale image, when the target threshold range is the threshold range corresponding to pores, the pores in the high-resolution grayscale image are determined according to the target threshold range, and the pixel values of the pixels in the high-resolution grayscale image are adjusted to obtain an initial pore map. When the target threshold range is the threshold range corresponding to organic matter, the organic matter in the high-resolution grayscale image is determined according to the target threshold range, and the pixel values of the pixels in the high-resolution grayscale image are adjusted to obtain an initial organic matter map. When the target threshold range is the threshold range corresponding to inorganic mineral regions, the inorganic mineral regions in the high-resolution grayscale image are determined according to the target threshold range, and the pixel values of the pixels in the high-resolution grayscale image are adjusted to obtain an initial inorganic mineral region map.
[0055] S120. By filling the inorganic mineral range of the initial inorganic mineral zone map, an inorganic mineral zone map to be used is obtained. Based on the initial pore map and the inorganic mineral zone map to be used, the organic pore map corresponding to the organic pore region in the shale sample is determined.
[0056] The inorganic mineral range can be understood as the boundary range of the inorganic mineral region in the initial inorganic mineral region map. The inorganic mineral region map to be used can be understood as a solid region map with the inorganic mineral range as its boundary. For example, an example map of the inorganic mineral region map to be used could be as follows: Figure 6 As shown. An organic pore map can be understood as an image of all organic pores in a shale sample. Organic pore regions are the areas corresponding to organic pores. For example, an organic pore map can be shown as follows: Figure 7 As shown.
[0057] Specifically, the process involves filling the pores within the inorganic mineral regions of the initial inorganic mineral map. That is, the pixel values corresponding to the pores in the inorganic mineral regions of the initial inorganic mineral map are adjusted to match the pixel values of the inorganic mineral regions, resulting in the inorganic mineral map to be used. The difference between the initial pore map and the inorganic mineral map to be used is then calculated to obtain the organic pore map corresponding to the organic pore regions in the shale sample.
[0058] For example, in conjunction with the above examples, Figure 3 This is the initial pore map. Figure 6 To obtain the inorganic mineral area map to be used, the subtraction algorithm is used to... Figure 3 and Figure 6 After performing the difference operation, we get Figure 7 The organic pore diagram. This can be understood as, for Figure 3 and Figure 6 The identical regions that exist in the data, after being subtracted, yield the following results: Figure 7 This identical region does not exist. For Figure 3 The region that does not exist in the text, and Figure 6 The regions that exist in the subtraction process yield the following result: Figure 7 This region does not exist in [the context]. For Figure 3 The area that exists in it, and Figure 6 The regions that do not exist in the original text are obtained after subtraction. Figure 7 This region exists. That is, by removing the pores within the inorganic mineral range of the initial pore map, an organic pore map corresponding to the organic pore region in the shale sample is obtained. It should be noted that the image difference processing mentioned in the embodiments of this invention can all be implemented using the above method.
[0059] In this embodiment of the invention, the method for determining the inorganic mineral area map to be used can be: filling the unfilled areas within the inorganic mineral range of the initial inorganic mineral area map to obtain the inorganic mineral area map to be used with the inorganic mineral edges as boundaries. Correspondingly, the method for obtaining the organic pore map based on the initial pore map and the inorganic mineral area map to be used can be: by performing difference processing on the initial pore map and the inorganic mineral area map to be used, an organic pore map is obtained by removing the pores within the inorganic mineral range from the initial pore map.
[0060] The unfilled area can be understood as the porous area within the inorganic mineral range in the initial inorganic mineral area map.
[0061] Specifically, the pixel values corresponding to the pore regions within the inorganic mineral area of the initial inorganic mineral area map that have different pixel values from the inorganic mineral area are determined. The pixel values corresponding to the pore regions within the inorganic mineral area are adjusted to match the pixel values of the inorganic mineral area to fill the unfilled areas, resulting in a usable inorganic mineral area map with the inorganic mineral edges as its boundary. A difference processing method is then performed on the initial pore map and the usable inorganic mineral area map to remove the pores within the inorganic mineral area of the initial pore map, resulting in an organic pore map corresponding to all organic pores.
[0062] S130. Based on the initial organic matter map, the inorganic mineral area map to be used, and the full grayscale range map corresponding to the high-resolution grayscale image, determine the image to be applied.
[0063] A full grayscale range image can be an image obtained by grayscale processing a high-resolution grayscale image, resulting in an image without grayscale differences. For example, a full grayscale range image can be like... Figure 8 As shown. The image to be applied may include inorganic pores identified as organic matter and inorganic minerals within the organic matter range. For example, the image to be applied may be as follows: Figure 9 As shown.
[0064] Specifically, the pores within the organic matter region of the initial organic matter map are filled to obtain a usable organic matter map bounded by the organic matter region. The usable organic matter map and the usable inorganic mineral region map bounded by the inorganic mineral region are then overlaid. The overlaid image is then subtracted from the full grayscale map to obtain an image that includes both the inorganic pores identified as organic matter and the inorganic minerals within the organic matter region, which is the image to be applied.
[0065] Optionally, before determining the image to be applied, the organic matter map and the full grayscale range map can be determined first. Specifically, the determination method can be as follows: fill the unfilled areas within the organic matter range of the initial organic matter map to obtain the organic matter map to be used; process the grayscale of the high-resolution grayscale image according to the pre-set full grayscale range to obtain the full grayscale range map, so as to determine the image to be applied based on the inorganic mineral area map to be used, the organic matter map to be used, and the full grayscale range map.
[0066] In this context, the organic matter range can be understood as the boundary range corresponding to the organic matter in the initial organic matter map. The unfilled areas within the organic matter range can be understood as the areas corresponding to the pores within the organic matter range. The organic matter map to be used is a solid region map with the organic matter range as its boundary. For example, the organic matter map to be used could be as follows: Figure 10As shown. The preset grayscale range can be from 0 to 255.
[0067] Specifically, the unfilled areas within the organic matter range of the initial organic matter map are filled. That is, the pixel values of the unfilled areas within the organic matter range are adjusted to match the pixel values of the organic matter within the organic matter range, resulting in an organic matter map to be used, bounded by the organic matter range. For example, the organic matter map to be used can be as follows: Figure 10 As shown. A high-resolution grayscale image is processed according to a pre-defined full grayscale range to obtain an image without grayscale differences, i.e., a full grayscale range image. For example, a full grayscale range image can be like this: Figure 8 As shown. Based on this, the organic matter map and the inorganic mineral area map to be used can be overlaid, and the difference between the overlaid image and the full grayscale range map can be performed to obtain the image to be applied. For example, the image to be applied can be as follows: Figure 9 As shown.
[0068] S140. Based on the image to be applied, the inorganic mineral area map to be used, the initial pore map, the organic pore map, and the initial organic matter map, determine the inorganic pore map of the inorganic pore area and the organic matter map of the organic matter area in the shale sample.
[0069] The inorganic porosity map can be understood as an image corresponding to all inorganic pores in the shale sample. The inorganic porosity region is the area corresponding to inorganic pores. The organic matter region is the area corresponding to organic matter in the shale sample. The organic matter map can be understood as an image corresponding to all organic matter in the shale sample.
[0070] Specifically, by performing interpolation processing on the image to be applied and the inorganic mineral area map to be used, an image corresponding to the inorganic pores identified as organic matter is obtained. Based on the image corresponding to the inorganic pores identified as organic matter and the initial pore map, a complete pore map corresponding to the shale sample is obtained. By performing interpolation processing on the complete pore map and the organic pore map, an inorganic pore map is obtained. By performing interpolation processing on the initial organic matter map and the inorganic pore map, inorganic pores within the organic matter range are removed, resulting in an organic matter map of the organic matter region.
[0071] The technical solution of this embodiment determines the partitioned image corresponding to each threshold range by using a high-resolution grayscale image corresponding to the shale sample and at least three pre-set threshold ranges, thus achieving preliminary partitioning processing of the shale sample. By filling the inorganic mineral range of the initial inorganic mineral zone map, a usable inorganic mineral zone map is obtained. Based on the initial pore map and the usable inorganic mineral zone map, the organic pore map corresponding to the organic pore region in the shale sample is determined. Based on this, all organic pores in the shale sample are accurately identified. Based on the initial organic matter map, the usable inorganic mineral zone map, and the full grayscale range map corresponding to the high-resolution grayscale image, the image to be applied is determined. Based on the image to be applied, the usable inorganic mineral zone map, the initial pore map, the organic pore map, and the initial organic matter map, the inorganic pore map of the inorganic pore region and the organic matter map of the organic matter region in the shale sample are determined. Based on this, the identification of all inorganic pore maps and the identification of organic matter regions in the shale sample are achieved. This technology solves the problems of inaccurate shale identification and low identification efficiency in existing technologies, and improves the efficiency and accuracy of identifying organic pores, inorganic pores and organic matter.
[0072] Example 2
[0073] Figure 11 This is a flowchart of an automatic shale zoning method provided in Embodiment 2 of the present invention. This embodiment refines the step of "determining the inorganic pore map of the inorganic pore region and the organic matter map of the organic matter region in the shale sample based on the image to be applied, the inorganic mineral region map to be used, the initial pore map, the organic pore map, and the initial organic matter map." Specific implementation details can be found in the technical solution of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here. Figure 11 As shown, the method includes:
[0074] S210. Based on the high-resolution grayscale image corresponding to the shale sample and at least three pre-set threshold ranges, determine the partition image corresponding to each threshold range, wherein the partition image includes an initial pore map, an initial organic matter map, and an initial inorganic mineral zone map.
[0075] S220. By filling the inorganic mineral range of the initial inorganic mineral zone map, an inorganic mineral zone map to be used is obtained. Based on the initial pore map and the inorganic mineral zone map to be used, the organic pore map corresponding to the organic pore region in the shale sample is determined.
[0076] S230. Based on the initial organic matter map, the inorganic mineral area map to be used, and the full grayscale range map corresponding to the high-resolution grayscale image, determine the image to be applied.
[0077] S240. Based on the image to be applied and the inorganic mineral area map to be used, determine the first image of inorganic pores identified as organic matter.
[0078] The first image can be understood as the image corresponding to the inorganic pores identified as organic matter. For example, the first image can be as follows: Figure 12 As shown.
[0079] Specifically, the image to be applied contains two parts: inorganic pores identified as organic matter and inorganic minerals within the organic matter range. By performing interpolation processing on the image to be applied and the inorganic mineral area map to be used, the inorganic minerals in the image to be applied are removed, resulting in a first image of inorganic pores identified as organic matter.
[0080] S250. Based on the first image and the initial pore map, determine all pore maps.
[0081] The complete pore map can be understood as an image corresponding to all pores in the shale sample.
[0082] Specifically, by overlaying the initial pore map and the first image of inorganic pores identified as organic matter, an image of all pores corresponding to the shale sample is obtained by superimposing the inorganic pores identified as organic matter onto the pore regions in the initial pore map. This results in a complete pore map. For example, the complete pore map can be as follows: Figure 13 As shown.
[0083] S260. Based on the complete pore map, the organic pore map, and the initial organic matter map, determine the inorganic pore map and the organic matter map.
[0084] Specifically, by performing interpolation processing on the total pore map and the organic pore map, organic pores are removed from the total pore map to obtain the inorganic pore map. For example, the inorganic pore map can be as follows: Figure 14 As shown, by performing difference processing on the initial organic matter map and the inorganic pore map, inorganic pores are removed from the organic matter region of the initial organic matter map, resulting in an accurate organic matter map. For example, the organic matter map can be as follows: Figure 15 As shown. Based on this, organic pore maps, inorganic pore maps, and organic matter maps were obtained, realizing automatic zoning processing of shale samples.
[0085] In this embodiment of the invention, the method for determining the inorganic pore map and the organic matter map may be: determining the inorganic pore map by processing the difference between all pore maps and the organic pore map; and obtaining the organic matter map by processing the difference between the initial organic matter map and the inorganic pore map.
[0086] Specifically, the difference between the pore regions corresponding to all pore maps and the organic pore regions in the organic pore map is processed to remove the organic pore regions from the pore regions of all pore maps, thus obtaining the pore maps corresponding to all inorganic pores. Similarly, the difference between the organic regions in the initial organic matter map and the inorganic pore regions in the inorganic pore map is processed to remove the inorganic pore regions from the organic matter regions of the initial organic matter map, thus obtaining the organic matter maps corresponding to all organic matter in the shale sample.
[0087] The technical solution of this embodiment determines the partition image corresponding to each threshold range by using a high-resolution grayscale image of the shale sample and at least three pre-set threshold ranges, thus achieving preliminary partitioning of the shale sample. By filling the inorganic mineral range of the initial inorganic mineral map, a usable inorganic mineral map is obtained. Based on the initial pore map and the usable inorganic mineral map, the organic pore map corresponding to the organic pore region in the shale sample is determined. Based on this, all organic pores in the shale sample are accurately determined. Based on the initial organic matter map, the usable inorganic mineral map, and the full grayscale range map corresponding to the high-resolution grayscale image, the image to be applied is determined. Based on the image to be applied and the usable inorganic mineral map, a first image of inorganic pores identified as organic matter is determined. Based on the first image and the initial pore map, a complete pore map is determined. Based on the complete pore map, the organic pore map, and the initial organic matter map, an inorganic pore map and an organic matter map are determined. Based on this, an organic pore map, an inorganic pore map, and an organic matter map are obtained, realizing automatic partitioning of the shale sample. This technology solves the problems of inaccurate shale identification and low identification efficiency in existing technologies, and improves the efficiency and accuracy of identifying organic pores, inorganic pores and organic matter. It facilitates subsequent research on pore type, size, morphology, connectivity, classification and distribution, and provides data support for oil exploration.
[0088] Example 3
[0089] Figure 16 This is a schematic diagram of the structure of an automatic shale partitioning device provided in Embodiment 3 of the present invention. Figure 16 As shown, the device includes: a partitioned image determination module 310, an organic pore map determination module 320, an image to be applied determination module 330, and an organic matter map determination module 340.
[0090] The partition image determination module 310 is used to determine the partition image corresponding to each threshold range based on the high-resolution grayscale image corresponding to the shale sample and at least three pre-set threshold ranges. The partition image includes an initial pore map, an initial organic matter map, and an initial inorganic mineral region map. The organic pore map determination module 320 is used to obtain the inorganic mineral region map to be used by filling the inorganic mineral range of the initial inorganic mineral region map, and to determine the organic pore map corresponding to the organic pore region in the shale sample based on the initial pore map and the inorganic mineral region map to be used. The image to be applied determination module 330 is used to determine the image to be applied based on the initial organic matter map, the inorganic mineral region map to be used, and the full grayscale range map corresponding to the high-resolution grayscale image. The organic matter map determination module 340 is used to determine the inorganic pore map of the inorganic pore region and the organic matter map of the organic matter region in the shale sample based on the image to be applied, the inorganic mineral region map to be used, the initial pore map, the organic pore map, and the initial organic matter map.
[0091] The technical solution of this embodiment determines the partitioned image corresponding to each threshold range by using a high-resolution grayscale image corresponding to the shale sample and at least three pre-set threshold ranges, thus achieving preliminary partitioning processing of the shale sample. By filling the inorganic mineral range of the initial inorganic mineral zone map, a usable inorganic mineral zone map is obtained. Based on the initial pore map and the usable inorganic mineral zone map, the organic pore map corresponding to the organic pore region in the shale sample is determined. Based on this, all organic pores in the shale sample are accurately identified. Based on the initial organic matter map, the usable inorganic mineral zone map, and the full grayscale range map corresponding to the high-resolution grayscale image, the image to be applied is determined. Based on the image to be applied, the usable inorganic mineral zone map, the initial pore map, the organic pore map, and the initial organic matter map, the inorganic pore map of the inorganic pore region and the organic matter map of the organic matter region in the shale sample are determined. Based on this, the identification of all inorganic pore maps and the identification of organic matter regions in the shale sample are achieved. This technology solves the problems of inaccurate shale identification and low identification efficiency in existing technologies, and improves the efficiency and accuracy of identifying organic pores, inorganic pores and organic matter.
[0092] Based on the above embodiments, optionally, the partitioned image determination module includes: a pixel value adjustment unit, used to determine the target threshold range to which the pixel value of at least one pixel in a high-resolution grayscale image belongs, and adjust the pixel value of the pixel according to the target threshold range; and a partitioned image determination unit, used to determine an initial pore map, an initial organic matter map, and an initial inorganic mineral zone map based on the adjusted pixel values of the pixels corresponding to each threshold range.
[0093] Optionally, the organic pore map determination module includes: an inorganic mineral area map determination unit, used to fill the unfilled areas within the inorganic mineral range of the initial inorganic mineral area map to obtain an inorganic mineral area map with the inorganic mineral edge as the boundary; and an organic pore map determination unit, used to obtain an organic pore map by removing the pores within the inorganic mineral range of the initial pore map through difference processing between the initial pore map and the inorganic mineral area map to be used.
[0094] Optionally, the device further includes: a module for determining the organic matter map to be used and the full grayscale range map, which is used to fill the unfilled areas within the organic matter range of the initial organic matter map to obtain the organic matter map to be used; and to perform grayscale processing on the high-resolution grayscale image according to the preset full grayscale range to obtain the full grayscale range map, so as to determine the image to be applied based on the inorganic mineral area map to be used, the organic matter map to be used, and the full grayscale range map.
[0095] Optionally, the organic matter map determination module includes: a first image determination unit, used to determine a first image of inorganic pores identified as organic matter based on the image to be applied and the inorganic mineral area map to be used; a complete pore map determination unit, used to determine a complete pore map based on the first image and the initial pore map; and an inorganic pore map and organic matter map determination unit, used to determine an inorganic pore map and an organic matter map based on the complete pore map, the organic pore map, and the initial organic matter map.
[0096] Optionally, an inorganic pore map and organic matter map determination unit is used to determine the inorganic pore map by performing difference processing on all pore maps and organic pore maps; and to obtain the organic matter map by performing difference processing on the initial organic matter map and inorganic pore map.
[0097] The automatic shale partitioning device provided in this embodiment of the invention can execute the automatic shale partitioning method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0098] Example 4
[0099] Figure 17 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0100] like Figure 17 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0101] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0102] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the automatic partitioning method for shale.
[0103] In some embodiments, the automatic shale partitioning method can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the automatic shale partitioning method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the automatic shale partitioning method by any other suitable means (e.g., by means of firmware).
[0104] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0105] Computer programs for implementing the automatic shale partitioning method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer programs can be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0106] Example 5
[0107] Embodiment 5 of the present invention also provides a computer-readable storage medium storing computer instructions for causing a processor to execute an automatic shale partitioning method, the method comprising:
[0108] Based on the high-resolution grayscale image corresponding to the shale sample and at least three pre-set threshold ranges, a partition image corresponding to each threshold range is determined. The partition image includes an initial pore map, an initial organic matter map, and an initial inorganic mineral region map. By filling the inorganic mineral range of the initial inorganic mineral region map, a usable inorganic mineral region map is obtained. Based on the initial pore map and the usable inorganic mineral region map, the organic pore map corresponding to the organic pore region in the shale sample is determined. Based on the initial organic matter map, the usable inorganic mineral region map, and the full grayscale range map corresponding to the high-resolution grayscale image, an image to be applied is determined. Based on the image to be applied, the usable inorganic mineral region map, the initial pore map, the organic pore map, and the initial organic matter map, the inorganic pore map of the inorganic pore region and the organic matter map of the organic matter region in the shale sample are determined.
[0109] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0110] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0111] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0112] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0113] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0114] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. An automatic zoning method for shale, characterized in that, include: Based on the high-resolution grayscale image corresponding to the shale sample and at least three pre-set threshold ranges, a partition image corresponding to each threshold range is determined, wherein the partition image includes an initial pore map, an initial organic matter map, and an initial inorganic mineral zone map; By filling in the inorganic mineral range of the initial inorganic mineral zone map, an inorganic mineral zone map to be used is obtained, and based on the initial pore map and the inorganic mineral zone map to be used, the organic pore map corresponding to the organic pore region in the shale sample is determined. Based on the initial organic matter map, the inorganic mineral area map to be used, and the full grayscale range map corresponding to the high-resolution grayscale image, the image to be applied is determined; Based on the image to be applied, the inorganic mineral area map to be used, the initial pore map, the organic pore map, and the initial organic matter map, the inorganic pore map of the inorganic pore area and the organic matter map of the organic matter area in the shale sample are determined.
2. The method according to claim 1, characterized in that, The determination of the partitioned image corresponding to each threshold range based on the high-resolution grayscale image corresponding to the shale sample and at least three pre-set threshold ranges includes: For at least one pixel in the high-resolution grayscale image, determine the target threshold range to which the pixel value belongs, and adjust the pixel value of the pixel according to the target threshold range; Based on the adjusted pixel values of the pixels corresponding to each threshold range, the initial pore map, the initial organic matter map, and the initial inorganic mineral zone map are determined.
3. The method according to claim 1, characterized in that, The process of filling in the inorganic mineral range of the initial inorganic mineral zone map to obtain the inorganic mineral zone map to be used includes: The unfilled areas within the inorganic mineral range of the initial inorganic mineral area map are filled to obtain the inorganic mineral area map to be used, with the edge of the inorganic mineral as the boundary. Accordingly, determining the organic porosity map corresponding to the organic porosity region in the shale sample based on the initial porosity map and the inorganic mineral region map to be used includes: By performing difference processing on the initial pore map and the inorganic mineral zone map to be used, an organic pore map is obtained by removing the pores within the inorganic mineral range from the initial pore map.
4. The method according to claim 1, characterized in that, Before determining the image to be applied based on the initial organic matter map, the inorganic mineral region map to be used, and the full grayscale range map corresponding to the high-resolution grayscale image, the method further includes: The unfilled areas within the organic matter range of the initial organic matter map are filled to obtain the organic matter map to be used. The high-resolution grayscale image is processed according to a pre-set full grayscale range to obtain the full grayscale range map, so as to determine the image to be applied based on the inorganic mineral area map to be used, the organic matter map to be used, and the full grayscale range map.
5. The method according to claim 1, characterized in that, The process of determining the inorganic pore map of the inorganic pore region and the organic matter map of the organic matter region in the shale sample based on the image to be applied, the inorganic mineral region map to be used, the initial pore map, the organic pore map, and the initial organic matter map includes: Based on the image to be applied and the inorganic mineral area map to be used, a first image of inorganic pores identified as organic matter is determined; Based on the first image and the initial pore map, determine the complete pore map; Based on the complete pore map, the organic pore map, and the initial organic matter map, the inorganic pore map and the organic matter map are determined.
6. The method according to claim 5, characterized in that, The process of determining the inorganic pore map and the organic pore map based on the complete pore map, the organic pore map, and the initial organic matter map includes: The inorganic pore map is determined by processing the difference between the complete pore map and the organic pore map; The organic matter map is obtained by processing the difference between the initial organic matter map and the inorganic pore map.
7. An automatic shale zoning device, characterized in that, include: The partition image determination module is used to determine the partition image corresponding to each threshold range based on the high-resolution grayscale image corresponding to the shale sample and at least three pre-set threshold ranges, wherein the partition image includes an initial pore map, an initial organic matter map, and an initial inorganic mineral zone map; The organic pore map determination module is used to obtain an inorganic mineral area map to be used by filling the inorganic mineral range of the initial inorganic mineral area map, and to determine the organic pore map corresponding to the organic pore region in the shale sample based on the initial pore map and the inorganic mineral area map to be used. The image to be applied determination module is used to determine the image to be applied based on the initial organic matter map, the inorganic mineral area map to be used, and the full grayscale range map corresponding to the high-resolution grayscale image; The organic matter map determination module is used to determine the inorganic pore map of the inorganic pore region and the organic matter map of the organic matter region in the shale sample based on the image to be applied, the inorganic mineral area map to be used, the initial pore map, the organic pore map, and the initial organic matter map.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the automatic partitioning method for shale as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the automatic partitioning method for shale as described in any one of claims 1-6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the automatic partitioning method for shale as described in any one of claims 1-6.