Method, apparatus, device and storage medium for determining homogeneous temperature of inclusions

Through real-time image acquisition and image recognition algorithms, the uniform temperature of the rock inclusion is automatically determined, which solves the problems of long time, high cost and large errors in the prior art, and achieves efficient and accurate temperature measurement.

CN115686099BActive Publication Date: 2025-06-24CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110831834.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-22
Publication Date
2025-06-24
Estimated Expiration
2041-07-22

AI Technical Summary

Technical Problem

In the prior art, when measuring the uniform temperature of an inclusion in a rock, manual observation takes a long time, is costly and is prone to errors.

Method used

By collecting images of rock samples, the template image of the inclusion is determined, and the images are collected in real time during the heating process, and the uniform temperature of the inclusion is determined using an image recognition algorithm.

Benefits of technology

It reduces the time and cost of manual observation, improves the accuracy and efficiency of measurement, and reduces measurement errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115686099B_ABST
    Figure CN115686099B_ABST
Patent Text Reader

Abstract

A method, device, equipment and storage medium for determining the homogeneous temperature of inclusions provided by the present application, the method comprising: collecting an image of a rock sample, wherein the rock sample image includes inclusions; determining a template image of the inclusions based on a user's selection operation on the inclusions in the image; during the process of controlling a heating device to heat the rock sample, collecting a first real-time image of the rock sample in real time; determining a second real-time image of the inclusions from the first real-time image; and when the similarity difference between the second real-time image and the template image meets a preset condition, determining the heating temperature corresponding to the second real-time image as the homogeneous temperature of the inclusions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of temperature measurement, and particularly to a method, device, equipment and storage medium for determining the homogenization temperature of fluid inclusions. Background Art

[0002] Fluid inclusions in rocks are good records of geological history information. At room temperature, inclusions in two phases (such as gas phase and liquid phase) or multiple phases are artificially heated. When the temperature rises to the temperature at which the inclusions are trapped by minerals, the inclusions change from two-phase or multi-phase to the original homogeneous single-phase fluid. This temperature is the homogenization temperature of the fluid inclusions and is a powerful means for determining the diagenetic fluid and the activity stages of hydrocarbon fluids.

[0003] Currently, the test method for the homogenization temperature of rock inclusions is the homogenization temperature method. By using a microscope equipped with a heating and cooling stage, the changes of inclusions during the temperature rise are observed, and finally the temperature at which the two-phase inclusions reach the homogeneous state is recorded. However, for most current deep rock samples, the homogenization temperature of inclusions trapped by diagenetic minerals is usually relatively high. Therefore, the test time for a single inclusion usually ranges from 20 to 40 minutes. During this process, continuous observation by the human eye is required, and the labor and time costs are extremely high. In addition, during the temperature rise of two-phase inclusions, the gas-phase inclusions will move irregularly, and the size of the inclusions will gradually become smaller until they disappear. Therefore, there are often large errors in the observation and recording of the homogenization temperature of inclusions, and even the observation results of the same inclusion by different people are not the same. Summary of the Invention

[0004] In view of the above problems, this application provides a method, device, equipment and storage medium for determining the homogenization temperature of fluid inclusions.

[0005] This application provides a method for determining the homogenization temperature of fluid inclusions, including:

[0006] Collecting an image of a rock sample, wherein the rock sample image includes inclusions;

[0007] Based on the user's selection operation on the inclusions in the image, determining a template image of the inclusions;

[0008] During the process of controlling a heating device to heat the rock sample, collecting a first real-time image of the rock sample in real time;

[0009] Determining a second real-time image of the inclusions from the first real-time image;

[0010] When the similarity difference between the second real-time image and the template image meets a preset condition, determining the heating temperature corresponding to the second real-time image as the homogenization temperature of the inclusions.

[0011] In some embodiments, the method further includes:

[0012] Using edge detection technology to determine the first gray-scale gradient information in the preset direction of the first target edge point in the template image;

[0013] The determining the second real-time image of the inclusion from the first real-time image includes:

[0014] Determining the second real-time image of the inclusion from the first real-time image based on the first gray-scale gradient information.

[0015] In some embodiments, the determining the second real-time image of the inclusion from the first real-time image based on the first gray-scale gradient information includes:

[0016] Based on the first gray-scale gradient information, using edge detection technology to determine the second target edge point in the first real-time image, wherein the similarity between the second gray-scale gradient information of the second target edge point and the first gray-scale gradient is greater than a similarity threshold;

[0017] Determining the second real-time image of the inclusion from the first real-time image based on the second target edge point.

[0018] In some embodiments, the controlling the heating device to heat the rock sample includes:

[0019] Controlling the heating device to heat to a first temperature at a first heating rate;

[0020] Controlling the heating device to continue heating from the first temperature at a second heating rate, wherein the first heating rate is greater than the second heating rate.

[0021] In some embodiments, the method further includes:

[0022] Determining the first similarity information of the template image;

[0023] Determining the second similarity information of the second real-time image;

[0024] Determining a similarity difference based on the first similarity information and the second similarity information.

[0025] In some embodiments, when the similarity difference between the second real-time image and the template image meets a preset condition, determining the heating temperature corresponding to the second real-time image as the homogeneous temperature of the inclusion includes:

[0026] When the similarity difference between the second real-time image and the template image is the largest, the heating temperature corresponding to the second real-time image is determined as the homogenization temperature of the inclusion; or,

[0027] When the similarity difference between the second real-time image and the template image is greater than the similarity threshold, the heating temperature corresponding to the second real-time image is determined as the homogenization temperature of the inclusion.

[0028] In some embodiments, images of the rock sample and the first real-time image are collected through a microscope.

[0029] An embodiment of the present application provides a device for determining the homogenization temperature of an inclusion, including:

[0030] A first acquisition module, configured to acquire an image of a rock sample, wherein the rock sample image includes inclusions;

[0031] A first determination module, configured to determine a template image of the inclusion based on a user's selection operation on the inclusion in the image;

[0032] A second acquisition module, configured to acquire a first real-time image of the rock sample in real time during the process of controlling a heating device to heat the rock sample;

[0033] A second determination module, configured to determine a second real-time image of the inclusion from the first real-time image;

[0034] A third determination module, configured to determine the heating temperature corresponding to the second real-time image as the homogenization temperature of the inclusion when the similarity difference between the second real-time image and the template image meets a preset condition.

[0035] An embodiment of the present application provides a device for determining the homogenization temperature of an inclusion, including:

[0036] A memory and a processor, wherein a computer program is stored on the memory, and when the computer program is executed by the processor, it executes the method for determining the homogenization temperature of the inclusion described in any one of the above.

[0037] An embodiment of the present application provides a storage medium, and the computer program stored on the storage medium can be executed by one or more processors and can be used to implement the method for determining the homogenization temperature of the inclusion described in any one of the above.

[0038] A method, apparatus, device, and storage medium for determining the homogenization temperature of inclusions provided by the present application. By means of a selection operation for the user to select inclusions in the image, a template image of the inclusions is determined. During the process of controlling a heating device to heat the rock sample, a first real-time image of the rock sample is collected in real time; a second real-time image of the inclusions is determined from the first real-time image; when the similarity difference between the second real-time image and the template image meets a preset condition, the heating temperature corresponding to the second real-time image is determined as the homogenization temperature of the inclusions. By using an image recognition algorithm to observe the changes of the inclusions during the temperature increase process and recording the homogenization temperature of the inclusions, human labor can be liberated from time-consuming and laborious observations, and measurement errors are reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Hereinafter, the present application will be described in more detail based on embodiments with reference to the drawings.

[0040] Figure 1 FIG. is a schematic implementation flowchart of a method for determining the homogenization temperature of inclusions provided by an embodiment of the present application;

[0041] Figure 2 FIG. is a schematic implementation flowchart of another method for determining the homogenization temperature of inclusions provided by an embodiment of the present application;

[0042] Figure 3 FIG. is a schematic implementation flowchart of a method for determining the homogenization temperature of inclusions provided by an embodiment of the present application;

[0043] Figure 4 FIG. is a schematic implementation flowchart of yet another method for determining the homogenization temperature of inclusions provided by an embodiment of the present application;

[0044] Figure 5 FIG. is a schematic diagram of an image of inclusions under room temperature conditions provided by an embodiment of the present application;

[0045] Figure 6 FIG. is a schematic diagram of a real-time image of inclusions during homogenization provided by an embodiment of the present application;

[0046] Figure 7 FIG. is a schematic structural diagram of a device for determining the homogenization temperature of inclusions provided by an embodiment of the present application;

[0047] Figure 8 FIG. is a schematic composition structural diagram of a device for determining the homogenization temperature of inclusions provided by an embodiment of the present application.

[0048] In the drawings, the same components are denoted by the same reference numerals, and the drawings are not drawn to actual scale. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0049] To make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be construed as limiting the present application. All other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of the present application.

[0050] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.

[0051] If similar descriptions such as "first / second / third" appear in the application documents, the following explanation is added. In the following description, the terms "first / second / third" are only used to distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first / second / third" can be interchanged with a specific order or sequence when allowed, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0053] Based on the problems existing in the related art, an embodiment of the present application provides a method for determining the homogeneous temperature of inclusions. The method is applied to a device for determining the homogeneous temperature of inclusions. The system for determining the homogeneous temperature of inclusions can be an electronic device, and the electronic device can be a computer, a mobile terminal, etc. The functions realized by the method for determining the homogeneous temperature of inclusions provided by the embodiment of the present application can be realized by a processor of the device for determining the homogeneous temperature of inclusions calling program code, where the program code can be stored in a computer storage medium.

[0054] Embodiment 1

[0055] An embodiment of the present application provides a method for determining the homogeneous temperature of inclusions. Figure 1 It is a schematic flowchart of the implementation of a method for determining the homogeneous temperature of inclusions provided by an embodiment of the present application, as Figure 1 shown, including:

[0056] Step S1, collect an image of a rock sample, where the rock sample image includes inclusions.

[0057] In the embodiments of the present application, rock samples can be taken from the formation to be tested. After sampling, inclusion thin sections are ground to obtain rock samples, and images of the rock samples can be collected through a microscope. In the embodiments of the present application, the microscope can be connected to an electronic device, and the images of the rock samples are collected through the microscope. Before the test, the objective lens of the microscope needs to be adjusted to complete the focusing of the rock samples.

[0058] In the embodiments of the present application, the images of the rock samples are collected under normal temperature conditions. The images are the images of the visible area under the microscope.

[0059] Step S2: Based on the user's selection operation on the inclusions in the image, determine the template image of the inclusions.

[0060] In the embodiments of the present application, the image information can be displayed on an electronic device, and the user can select the area of interest through touch operations, mouse operations, etc. In the embodiments of the present application, the area of interest is used to select inclusions. Exemplarily, the user can use a mouse operation to outline the area where the inclusions are located in the image with a rectangle. In the embodiments of the present application, the electronic device can determine the template image of the inclusions based on the user's selection operation on the inclusions in the image. Continuing with the above example, the area outlined by the rectangle where the inclusions are located in the image is determined as the template image.

[0061] In the embodiments of the present application, the user can perform selection operations on multiple inclusions in the image. When selection operations are performed on multiple inclusions, there will also be multiple corresponding template images.

[0062] Step S3: During the process of controlling the heating device to heat the rock sample, collect the first real-time image of the rock sample in real time.

[0063] In the embodiments of the present application, the electronic device can receive the user's operation to control the heating device to heat, or the user can directly operate the heating device to heat. The heating device can be a hot and cold stage. In the embodiments of the present application, when controlling the heating device to heat the rock sample, the heating device can be controlled to heat to the first temperature at the first heating rate; control the heating device to continue heating from the first temperature at the second heating rate, where the first heating rate is greater than the second heating rate. Exemplarily, the first heating rate is 10 °C / minute, the second heating rate is 2 °C / minute, and the first temperature can be 70 °C. In the embodiments of the present application, during the heating process, the electronic device collects the first real-time image of the rock sample through the microscope in real time. The first real-time image is the image of the visible area under the microscope.

[0064] Step S4: Determine the second real-time image of the inclusions from the first real-time image.

[0065] In the embodiments of the present application, edge detection technology can be used to determine the first gray-scale gradient information in the preset direction of the first target edge points in the template image. Then, based on the edge detection technology and the image registration method, a second real-time image of the inclusion is determined from the first real-time image. The preset direction may include: the vertical direction and the horizontal direction.

[0066] In the embodiments of the present application, the difference between the size of the second real-time image and the size of the template image is less than a preset threshold. In some embodiments, the size of the second real-time image is equal to the size of the template image.

[0067] Step S5, when the similarity difference between the second real-time image and the template image meets the preset condition, the heating temperature corresponding to the second real-time image is determined as the homogeneous temperature of the inclusion.

[0068] In the embodiments of the present application, the second similarity information of the second real-time image can be determined, the first similarity information of the template image can be determined; the second similarity information of the first real-time image can be determined; the similarity difference is determined based on the first similarity information and the second similarity information, and then it is determined whether the preset condition is met through the similarity difference. In the embodiments of the present application, when the preset condition is met, the heating temperature corresponding to the second real-time image is determined as the homogeneous temperature of the inclusion.

[0069] In the embodiments of the present application, when the similarity difference between the second real-time image and the template image is the largest, the heating temperature corresponding to the second real-time image is determined as the homogeneous temperature of the inclusion; or, when the similarity difference between the second real-time image and the template image is greater than the similarity threshold, the heating temperature corresponding to the second real-time image is determined as the homogeneous temperature of the inclusion.

[0070] In the embodiments of the present application, the electronic device can be communicatively connected to the heating device to read the heating temperature of the heating device in real time, so as to determine the homogeneous temperature of the inclusion.

[0071] A method for determining the homogeneous temperature of inclusions provided by the present application determines a template image of the inclusions through a selection operation of the inclusions in the image by the user. During the process of controlling a heating device to heat the rock sample, a first real-time image of the rock sample is collected in real time; a second real-time image of the inclusions is determined from the first real-time image; when the similarity difference between the second real-time image and the template image meets a preset condition, the heating temperature corresponding to the second real-time image is determined as the homogeneous temperature of the inclusions. By using an image recognition algorithm to observe the changes of the inclusions during the temperature rise process and recording the homogeneous temperature of the inclusions, the manpower can be liberated from the time-consuming and laborious observation, and the measurement error is reduced.

[0072] Embodiment 2

[0073] Based on the foregoing embodiments, the embodiments of the present application further provide a method for determining the homogeneous temperature of inclusions. Figure 2 As shown in the schematic implementation flow diagram of another method for determining the homogeneous temperature of inclusions provided by the embodiments of the present application, Figure 2 as shown, the method includes:

[0074] Step S21: Collect an image of a rock sample, where the rock sample image includes inclusions.

[0075] In the embodiments of the present application, a rock sample can be taken from the formation to be tested. After sampling, an inclusion thin section is ground to obtain a rock sample, and the image of the rock sample can be collected through a microscope. In the embodiments of the present application, the microscope can be connected to an electronic device, and the image of the rock sample is collected through the microscope. Before the test, the objective lens of the microscope needs to be adjusted to complete the focusing of the rock sample.

[0076] In the embodiments of the present application, the image of the rock sample is collected under normal temperature conditions.

[0077] Step S22: Based on the selection operation of the inclusions in the image by the user, determine the template image of the inclusions.

[0078] In the embodiments of the present application, the image information can be displayed on an electronic device, and the user can select an area of interest through touch operations, mouse operations, etc. In the embodiments of the present application, the area of interest is used to select inclusions. Exemplarily, the user can use a mouse operation to outline the area where the inclusions are located in the image with a square box. In the embodiments of the present application, the electronic device can determine the template image of the inclusions based on the selection operation of the inclusions in the image by the user. Continuing with the above example, the area outlined by the square box where the inclusions are located in the image is determined as the template image.

[0079] In the embodiments of the present application, a user can perform a selection operation on multiple inclusions in an image. When a selection operation is performed on multiple inclusions, there will also be multiple corresponding template images.

[0080] Step S23: Use edge detection technology to determine the first gray gradient information in the preset direction of the first target edge point in the template image.

[0081] In the embodiments of the present application, the first target edge point includes multiple edge points. The preset directions include the horizontal direction and the vertical direction. The edge point is an edge point in the template image.

[0082] Step S24: During the process of controlling the heating device to heat the rock sample, the first real-time image of the rock sample is collected in real time.

[0083] In the embodiments of the present application, the electronic device can receive the user's operation and control the heating device to heat, or the user can directly operate the heating device to heat. The heating device can be a hot and cold stage. In the embodiments of the present application, when controlling the heating device to heat the rock sample, the heating device can be controlled to heat to the first temperature at the first heating rate; control the heating device to continue heating from the first temperature at the second heating rate, where the first heating rate is greater than the second heating rate. Exemplarily, the first heating rate is 10 °C / minute, the second heating rate is 2 °C / minute, and the first temperature can be 70 °C. In the embodiments of the present application, during the heating process, the electronic device collects the first real-time image of the rock sample in real time through a microscope.

[0084] Step S25: Based on the first gray gradient information, use edge detection technology to determine the second target edge point in the first real-time image, where the similarity between the second gray gradient information of the second target edge point and the first gray gradient is greater than the similarity threshold.

[0085] In the embodiments of the present application, the first gray gradient information can be used as a search condition, and edge detection technology can be used to search for the second target edge point in the first real-time image.

[0086] Step S26: Determine the second real-time image of the inclusion from the first real-time image based on the second target edge point.

[0087] In the embodiments of the present application, the area enclosed by the second target edge point can be determined as the second real-time image of the inclusion. In the embodiments of the present application, the difference between the size of the second real-time image and the size of the template image is less than the preset threshold. In some embodiments, the size of the second real-time image is equal to the size of the template image.

[0088] Step S27, when the similarity difference between the second real-time image and the template image meets a preset condition, determine the heating temperature corresponding to the second real-time image as the homogeneous temperature of the inclusion.

[0089] In the embodiments of the present application, the second similarity information of the second real-time image can be determined, the first similarity information of the template image can be determined; the second similarity information of the first real-time image can be determined; determine the similarity difference based on the first similarity information and the second similarity information, and then determine whether the preset condition is met through the similarity difference. In the embodiments of the present application, when the preset condition is met, determine the heating temperature corresponding to the second real-time image as the homogeneous temperature of the inclusion.

[0090] In the embodiments of the present application, when the similarity difference between the second real-time image and the template image is the largest, determine the heating temperature corresponding to the second real-time image as the homogeneous temperature of the inclusion; or, when the similarity difference between the second real-time image and the template image is greater than the similarity threshold, determine the heating temperature corresponding to the second real-time image as the homogeneous temperature of the inclusion.

[0091] In the embodiments of the present application, the electronic device can be communicatively connected to the heating device to read the heating temperature of the heating device in real time, so as to determine the homogeneous temperature of the inclusion.

[0092] A method for determining the homogeneous temperature of an inclusion provided by the present application, by means of a selection operation of the user on the inclusion in the image, determine the template image of the inclusion. During the process of controlling the heating device to heat the rock sample, collect the first real-time image of the rock sample in real time; determine the second real-time image of the inclusion from the first real-time image; when the similarity difference between the second real-time image and the template image meets a preset condition, determine the heating temperature corresponding to the second real-time image as the homogeneous temperature of the inclusion, use an image recognition algorithm to observe the changes of the inclusion during the temperature increase process, and record the homogeneous temperature of the inclusion, which can liberate manpower from time-consuming and laborious observations and reduce measurement errors.

[0093] Embodiment III

[0094] Based on the foregoing embodiments, the embodiments of the present application further provide a method for determining the homogeneous temperature of an inclusion, Figure 3 which is a schematic implementation flowchart of a method for determining the homogeneous temperature of an inclusion provided by the embodiments of the present application. As Figure 3 shown, the method includes:

[0095] Step S31: Collect an image of the rock sample, where the rock sample image includes inclusions.

[0096] In the embodiments of the present application, a rock sample can be taken from the formation to be tested. After sampling, an inclusion thin section is ground to obtain a rock sample, and an image of the rock sample can be collected through a microscope. In the embodiments of the present application, the microscope can be connected to an electronic device, and the image of the rock sample is collected through the microscope. Before the test, the objective lens of the microscope needs to be adjusted to complete the focusing on the rock sample.

[0097] In the embodiments of the present application, the image of the rock sample is collected under normal temperature conditions.

[0098] Step S32: Based on the user's selection operation on the inclusions in the image, determine the template image of the inclusions.

[0099] In the embodiments of the present application, the image information can be displayed on an electronic device, and the user can select the region of interest through touch operations, mouse operations, etc. In the embodiments of the present application, the region of interest is used to select inclusions. Exemplarily, the user can use a mouse operation to outline the area where the inclusions are located in the image with a rectangle. In the embodiments of the present application, the electronic device can determine the template image of the inclusions based on the user's selection operation on the inclusions in the image. Continuing with the above example, the area outlined by the rectangle where the inclusions are located in the image is determined as the template image.

[0100] In the embodiments of the present application, the user can perform a selection operation on multiple inclusions in the image. When performing a selection operation on multiple inclusions, there will also be multiple corresponding template images.

[0101] Step S33: During the process of controlling the heating device to heat the rock sample, collect the first real-time image of the rock sample in real time.

[0102] In the embodiments of the present application, the electronic device can receive the user's operation and control the heating device to heat, or the user can directly operate the heating device to heat. The heating device can be a hot and cold stage. In the embodiments of the present application, when controlling the heating device to heat the rock sample, the heating device can be controlled to heat to the first temperature at the first heating rate; control the heating device to continue heating from the first temperature at the second heating rate, where the first heating rate is greater than the second heating rate. Exemplarily, the first heating rate is 10 °C / minute, the second heating rate is 2 °C / minute, and the first temperature can be 70 °C. In the embodiments of the present application, during the heating process, the electronic device collects the first real-time image of the rock sample through the microscope.

[0103] Step S34: Determine the second real-time image of the inclusion from the first real-time image.

[0104] In the embodiments of the present application, edge detection technology can be used to determine the first gray gradient information in the preset direction of the first target edge point in the template image. Then, based on edge detection technology and image registration method, determine the second real-time image of the inclusion from the first real-time image. The preset direction may include the vertical direction and the horizontal direction.

[0105] In the embodiments of the present application, the difference between the size of the second real-time image and the size of the template image is less than a preset threshold. In some embodiments, the size of the second real-time image is equal to the size of the template image.

[0106] Step S35: Determine the first similarity information of the template image.

[0107] In the embodiments of the present application, the first feature information of the template image can be extracted, and the first similarity information of the template image can be determined based on the first feature information.

[0108] Step S36: Determine the second similarity information of the second real-time image.

[0109] In the embodiments of the present application, the second feature information of the second real-time image can be extracted, and the second similarity information of the first real-time image can be determined based on the second feature information.

[0110] Step S37: Determine the similarity difference based on the first similarity information and the second similarity information.

[0111] In the embodiments of the present application, the similarity difference can be determined by subtracting the second similarity information from the first similarity information.

[0112] Step S38: When the similarity difference between the second real-time image and the template image meets the preset condition, determine the heating temperature corresponding to the second real-time image as the homogeneous temperature of the inclusion.

[0113] In the embodiments of the present application, the second similarity information of the second real-time image can be determined, the first similarity information of the template image can be determined; the second similarity information of the first real-time image can be determined; the similarity difference can be determined based on the first similarity information and the second similarity information, and then it can be determined whether the preset condition is met through the similarity difference. In the embodiments of the present application, when the preset condition is met, the heating temperature corresponding to the second real-time image is determined as the homogeneous temperature of the inclusion.

[0114] In the embodiment of the present application, when the similarity difference between the second real-time image and the template image is the largest, the heating temperature corresponding to the second real-time image is determined as the homogeneous temperature of the inclusion; or, when the similarity difference between the second real-time image and the template image is greater than the similarity threshold, the heating temperature corresponding to the second real-time image is determined as the homogeneous temperature of the inclusion.

[0115] In the embodiment of the present application, the electronic device can be communicatively connected to the heating device to read the heating temperature of the heating device in real time, so as to determine the homogeneous temperature of the inclusion.

[0116] A method for determining the homogeneous temperature of an inclusion provided by the present application determines a template image of the inclusion through a selection operation of the user on the inclusion in the image. During the process of controlling the heating device to heat the rock sample, a first real-time image of the rock sample is collected in real time; a second real-time image of the inclusion is determined from the first real-time image; when the similarity difference between the second real-time image and the template image meets a preset condition, the heating temperature corresponding to the second real-time image is determined as the homogeneous temperature of the inclusion. By using an image recognition algorithm to observe the changes of the inclusion during the temperature increase process and record the homogeneous temperature of the inclusion, it can liberate human resources from time-consuming and laborious observations and reduce measurement errors.

[0117] Embodiment 4

[0118] Based on the foregoing embodiments, the embodiment of the present application further provides a method for determining the homogeneous temperature of an inclusion. Figure 4 It is a schematic flowchart of the implementation of another method for determining the homogeneous temperature of an inclusion provided by the embodiment of the present application. As Figure 4 shown, the method includes:

[0119] Step S41, calibrate the region of interest.

[0120] In the embodiments of the present application, rock samples can be taken from the formation to be tested. After sampling, inclusion thin sections are ground to obtain rock samples, and images of the rock samples can be collected through a microscope. Observe the sample to be tested under a microscope equipped with a heating and cooling stage, manually find the gas-liquid two-phase inclusions to be measured according to research needs, and outline the areas where all measurable inclusions in the field of view with a square in the program. The image in this area is called the template image. In the embodiments of the present application, the region of interest is used to select inclusions. Exemplarily, the user can use a mouse operation to outline the area where the inclusions are located in the image. In the embodiments of the present application, the electronic device can determine the template image of the inclusion based on the user's selection operation of the inclusion in the image. Continuing with the above example, the area outlined by the square where the inclusions are located in the image is determined as the template image. In the embodiments of the present application, the user can perform selection operations on multiple inclusions in the image. When performing selection operations on multiple inclusions, there will also be multiple corresponding template images.

[0121] Step S42, template matching.

[0122] During the testing process, due to factors such as heating, the position of the inclusions may change continuously. Therefore, it is necessary to always let the electronic device identify the circled region of interest. At this time, relevant algorithms for edge detection and image registration are required. Calculate the horizontal and vertical gray gradients of several edge points of the template image, and then use the method of image registration to find the gradient range closest to the target edge points, and then move the entire image accordingly to match the template image.

[0123] In the embodiments of the present application, when controlling the heating device to heat the rock sample, the heating device can be controlled to heat to the first temperature at the first heating rate; control the heating device to continue heating from the first temperature at the second heating rate, where the first heating rate is greater than the second heating rate. Exemplarily, the first heating rate is 10 °C / minute, the second heating rate is 2 °C / minute, and the first temperature can be 70 °C. In the embodiments of the present application, during the heating process, the electronic device collects the first real-time image of the rock sample through the microscope in real time.

[0124] Step S43, differential image.

[0125] Subtract the obtained image from the template image in real time. In the embodiments of the present application, the second similarity information of the second real-time image can be determined, the first similarity information of the template image can be determined; the second similarity information of the first real-time image can be determined; and the similarity difference can be determined based on the first similarity information and the second similarity information.

[0126] Step S44, image difference threshold analysis.

[0127] In the embodiments of the present application, once the bubbles in the inclusion disappear and reach homogenization, the difference between the two images will reach the maximum value a and start to remain constant, and step S45 is executed.

[0128] In some embodiments, when the similarity difference between the second real-time image and the template image is greater than the similarity threshold, the heating temperature corresponding to the second real-time image is determined as the homogenization temperature of the inclusion.

[0129] Step S45, recording the homogenization temperature of the inclusion.

[0130] The determination of the homogenization temperature of an inclusion provided by the embodiments of the present application uses an image recognition algorithm to observe the changes of the inclusion during the temperature increase process, and automatically records the homogenization temperature of the inclusion. This method can liberate human resources from time-consuming and laborious observation work, and the accuracy that can be recognized by a computer is much greater than that of the naked eye, greatly reducing the test error, and has strong operability and strong popularization.

[0131] Embodiment Five

[0132] Based on the foregoing embodiments, the embodiments of the present application further provide a method for determining the homogenization temperature of an inclusion. By sampling and grinding a rock sample to prepare an inclusion thin section, and then finding the gas-liquid two-phase inclusion in the fracture passing through the quartz grain under a microscope. By gradually heating the inclusion, using an image recognition algorithm to observe the changes of the inclusion with the increase of temperature, automatically identifying the time node when the inclusion changes from two phases to one phase and recording the temperature at this time, the automatic test of the homogenization temperature of the inclusion can be completed.

[0133] Exemplarily, the burial depth of the rock sample collected from Well Shun 9 is 5000 - 5500 m, and the formation temperature at the current bottom hole of 5586 m is 126 °C. Considering that the measured homogenization temperatures of the inclusions in this well are mainly distributed between 80 - 120 °C. Therefore, the rock sample is placed on a microscope equipped with a heating and cooling stage (the same heating device as in the above embodiments) and gradually heated. Under the room temperature condition of 20 °C, initially the temperature is rapidly increased to 70 °C at a heating rate of 10 °C / min, and then the heating rate is reduced to 2 °C / min to observe the change process of the inclusion.

[0134] Figure 5 It is a schematic diagram of the image of an inclusion provided by the embodiments of the present application at room temperature. As Figure 5 shown, multiple inclusions are wrapped in the image. First, select the region of interest in the program. Continue to refer to Figure 5 , it can be seen that there are two inclusions to be measured in the figure. Select the two inclusions to be measured through the region of interest. Refer to Figure 5Select the area in the box. The image in the area of ​​interest is the template image of the two inclusions. In the template image, the inclusions are gas-liquid two-phase at room temperature, and the bubbles are clearly visible. As the temperature continues to rise, the size of the bubbles in the inclusions gradually decreases until they disappear and reach uniformity. Figure 6 A schematic diagram of a real-time image of an inclusion during homogenization provided in an embodiment of the present application, such as Figure 6 As shown, the bubbles in the inclusions in the box have disappeared and have reached homogeneity.

[0135] In order to realize the automatic observation of the uniform temperature of the inclusion, edge detection and image registration can be used to match the image with the template image in real time, and to make a difference between each frame of the image and the template image in real time. When the bubble disappears, the difference should reach the maximum value and remain constant from then on. Through repeated tests on multiple different inclusions, the threshold a of the difference can be obtained. When the difference between the two images is greater than a, it is determined that the inclusion has reached uniformity. At this time, the temperature displayed by the hot and cold stages is automatically recorded, which is the uniform temperature of the inclusion.

[0136] The embodiment of the present application provides a method for determining the uniform temperature of an inclusion, which uses image processing and recognition technology to automatically measure the uniform temperature of an inclusion. Find the inclusion to be measured under a microscope, select the boundary range of the inclusion and calibrate it as a template image, and then gradually increase the temperature. In this process, the real-time image is matched with the template image through edge detection and image registration algorithms and differential processing is performed. When the difference between the two images reaches the maximum value, the inclusion is homogenized and the uniform temperature is automatically recorded. The invention can free manpower from tedious and time-consuming work, can realize the simultaneous measurement of multiple inclusions in the same field of view, and can minimize the test errors caused by human factors.

[0137] Embodiment 6

[0138] Based on the foregoing embodiments, an embodiment of the present application provides a device for determining the uniform temperature of an inclusion body. The modules included in the device and the units included in each module can be implemented by a processor in a computer device; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Microprocessor Unit), a digital signal processor (DSP, Digital Signal Processing) or a field programmable gate array (FPGA, Field Programmable Gate Array), etc.

[0139] The embodiment of the present application provides a device for determining the uniform temperature of an inclusion body. Figure 7The following is a schematic structural diagram of a device for determining the homogeneous temperature of an inclusion provided by an embodiment of the present application. As Figure 7 shown, the device 700 for determining the homogeneous temperature of an inclusion includes:

[0140] A first acquisition module 701, configured to acquire an image of a rock sample, wherein the rock sample image includes inclusions;

[0141] A first determination module 702, configured to determine a template image of the inclusion based on a user's selection operation on the inclusion in the image;

[0142] A second acquisition module 703, configured to acquire a first real-time image of the rock sample in real time during the process of controlling a heating device to heat the rock sample;

[0143] A second determination module 704, configured to determine a second real-time image of the inclusion from the first real-time image;

[0144] A third determination module 705, configured to determine the heating temperature corresponding to the second real-time image as the homogeneous temperature of the inclusion when the similarity difference between the second real-time image and the template image meets a preset condition.

[0145] In some embodiments, the device 700 for determining the homogeneous temperature of the inclusion further includes:

[0146] A third determination module, configured to determine first gray-scale gradient information in a preset direction of a first target edge point in the template image by using edge detection technology;

[0147] The second determination module includes:

[0148] A first determination unit, configured to determine a second real-time image of the inclusion from the first real-time image based on the first gray-scale gradient information.

[0149] In some embodiments, the first determination unit includes:

[0150] A first determination subunit, configured to determine a second target edge point in the first real-time image by using edge detection technology based on the first gray-scale gradient information, wherein the similarity between the second gray-scale gradient information of the second target edge point and the first gray-scale gradient is greater than a similarity threshold;

[0151] A second determination subunit, configured to determine a second real-time image of the inclusion from the first real-time image based on the second target edge point.

[0152] In some embodiments, the device 700 for determining the homogeneous temperature of the inclusion further includes:

[0153] The first control module is used to control the heating device to heat to the first temperature at the first heating rate;

[0154] The second control module is used to control the heating device to continue heating from the first temperature at the second heating rate, wherein the first heating rate is greater than the second heating rate.

[0155] In some embodiments, the determining device 700 for the homogenization temperature of the inclusion further includes:

[0156] The fourth determining module is used to determine the first similarity information of the template image;

[0157] The fifth determining module is used to determine the second similarity information of the second real-time image;

[0158] The sixth determining module is used to determine the similarity difference based on the first similarity information and the second similarity information.

[0159] In some embodiments, the third determining module 705 includes:

[0160] The second determining unit is used to determine the heating temperature corresponding to the second real-time image as the homogenization temperature of the inclusion when the similarity difference between the second real-time image and the template image is the largest; or,

[0161] The third determining unit is used to determine the heating temperature corresponding to the second real-time image as the homogenization temperature of the inclusion when the similarity difference between the second real-time image and the template image is greater than the similarity threshold.

[0162] In some embodiments, the image of the rock sample and the first real-time image are collected by a microscope.

[0163] It should be noted that in the embodiments of the present application, if the above control method is implemented in the form of software function modules and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application, in essence, or the part that makes a contribution to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the various embodiments of the present application. And the aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read Only Memory), magnetic disks, or optical discs that can store program codes. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0164] Accordingly, an embodiment of the present application provides a storage medium, on which a computer program is stored, and is characterized in that when the computer program is executed by a processor, the steps in the method for determining the homogeneous temperature of the inclusion body provided in the above embodiment are implemented.

[0165] Embodiment Seven

[0166] An embodiment of the present application provides a device for determining the homogeneous temperature of an inclusion body; Figure 8 FIG. is a schematic structural diagram of the device for determining the homogeneous temperature of the inclusion body provided in the embodiment of the present application, as Figure 8 shown, the device 800 for determining the homogeneous temperature of the inclusion body includes: a processor 801, at least one communication bus 802, a user interface 803, at least one external communication interface 804, and a memory 805. Among them, the communication bus 802 is configured to realize the connection and communication between these components. Among them, the user interface 803 may include a display screen, and the external communication interface 804 may include a standard wired interface and a wireless interface. The processor 801 is configured to execute the program of the method for determining the homogeneous temperature of the inclusion body stored in the memory to implement the steps in the method for determining the homogeneous temperature of the inclusion body provided in the above embodiment.

[0167] The descriptions of the above embodiments of the device and storage medium for determining the homogeneous temperature of the inclusion body are similar to the descriptions of the above method embodiments, and have beneficial effects similar to those of the method embodiments. For the technical details not disclosed in the embodiments of the computer device and storage medium of the present application, please refer to the descriptions of the method embodiments of the present application for understanding.

[0168] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present application. Therefore, the appearances of "in one embodiment" or "in an embodiment" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that in various embodiments of the present application, the magnitudes of the serial numbers of the above processes do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0169] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including that element.

[0170] In several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed with each other can be through some interfaces. The indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0171] The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units; they can be located in one place or distributed to multiple network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0172] In addition, each functional unit in the embodiments of this application can be all integrated in a processing unit, or each unit can be separately used as a unit, or two or more units can be integrated in a unit; the above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.

[0173] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: various media that can store program codes such as removable storage devices, read-only memory (ROM, Read Only Memory), magnetic disks or optical discs.

[0174] Alternatively, if the above integrated units of the present application are implemented in the form of software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application essentially or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a controller to execute all or part of the methods described in the embodiments of the present application. The foregoing storage medium includes: various media that can store program codes such as removable storage devices, ROMs, magnetic disks, or optical discs.

[0175] As described above, the above are only the implementation manners of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present application, and all of them should be covered by the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A method for determining the homogenization temperature of inclusions, characterized in that, Including: Collecting an image of a rock sample, wherein the rock sample image includes inclusions; Determining a template image of the inclusion based on a user's selection operation on the inclusion in the image; During the process of controlling a heating device to heat the rock sample, collecting a first real-time image of the rock sample in real time; Determining a second real-time image of the inclusion from the first real-time image; When the similarity difference between the second real-time image and the template image meets a preset condition, determining the heating temperature corresponding to the second real-time image as the homogenization temperature of the inclusion; The method further includes: Using edge detection technology to determine first gray-scale gradient information in a preset direction of a first target edge point in the template image; The determining the second real-time image of the inclusion from the first real-time image includes: Determining the second real-time image of the inclusion from the first real-time image based on the first gray-scale gradient information.

2. The method according to claim 1, wherein The determining the second real-time image of the inclusion from the first real-time image based on the first gray-scale gradient information includes: Based on the first gray-scale gradient information, using edge detection technology to determine a second target edge point in the first real-time image, wherein the similarity between the second gray-scale gradient information of the second target edge point and the first gray-scale gradient is greater than a similarity threshold; Determining the second real-time image of the inclusion from the first real-time image based on the second target edge point.

3. The method according to claim 1, wherein The controlling the heating device to heat the rock sample includes: Controlling the heating device to heat to a first temperature at a first heating rate; Controlling the heating device to continue heating from the first temperature at a second heating rate, wherein the first heating rate is greater than the second heating rate.

4. The method according to claim 1, the method further includes: Determining first similarity information of the template image; Determining second similarity information of the second real-time image; Determining a similarity difference based on the first similarity information and the second similarity information.

5. The method according to claim 1, characterized in that, The when the similarity difference between the second real-time image and the template image meets a preset condition, determining the heating temperature corresponding to the second real-time image as the homogenization temperature of the inclusion includes: When the similarity difference between the second real-time image and the template image is the largest, determining the heating temperature corresponding to the second real-time image as the homogenization temperature of the inclusion; or, When the similarity difference between the second real-time image and the template image is greater than a similarity threshold, determining the heating temperature corresponding to the second real-time image as the homogenization temperature of the inclusion.

6. The method according to claim 1, wherein Collecting an image and a first real-time image of a rock sample through a microscope.

7. An apparatus for determining the homogenization temperature of an inclusion, characterized in that, Including: A first acquisition module for collecting an image of a rock sample, wherein the rock sample image includes inclusions; A first determination module for determining a template image of the inclusion based on a user's selection operation on the inclusion in the image; A second acquisition module for collecting a first real-time image of the rock sample in real time during the process of controlling a heating device to heat the rock sample; A second determination module, configured to determine a second real-time image of the inclusion from the first real-time image; A third determination module, configured to determine the uniform temperature of the inclusion as the heating temperature corresponding to the second real-time image when the similarity difference between the second real-time image and the template image meets a preset condition; A third determination module, configured to use edge detection technology to determine the first gray-scale gradient information in a preset direction of the first target edge point in the template image; The second determination module includes: A first determination unit, configured to determine the second real-time image of the inclusion from the first real-time image based on the first gray-scale gradient information.

8. An apparatus for determining the homogenization temperature of inclusions, characterized in that, Including: A memory and a processor, where a computer program is stored on the memory, and when the computer program is executed by the processor, it executes the method for determining the uniform temperature of the inclusion according to any one of claims 1 to 6.

9. A storage medium, characterized in that, The computer program stored in the storage medium can be executed by one or more processors and can be used to implement the method for determining the uniform temperature of the inclusion according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Inclusion temperature measurement system and detection method thereof

    CN104410840A

  • Method for establishing diagenetic paleo-fluid temperature correction map of marine carbonate rock reservoirs

    CN109781966A