Coal microscopic image acquisition method and device and computer equipment

By acquiring the average gray value of coal microscopic images, determining the target type and selecting the acquisition method based on the relationship between gray value and threshold, the problem of cumbersome acquisition process in existing technologies is solved, and efficient and clear image acquisition is achieved.

CN115165875BActive Publication Date: 2026-04-10CCTEG CHINA COAL RES INST
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CCTEG CHINA COAL RES INST
Filing Date
2022-06-20
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

The current technology for acquiring coal microscopic images is cumbersome and inefficient.

Method used

By obtaining the average gray value of candidate coal images, the target type is determined based on the relationship between the gray value and the threshold, and the corresponding acquisition method is selected for image acquisition based on the target type.

Benefits of technology

It improves the efficiency and clarity of image acquisition and saves acquisition time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115165875B_ABST
    Figure CN115165875B_ABST
Patent Text Reader

Abstract

The present disclosure provides a coal microscopic image acquisition method and device and computer equipment, and relates to the technical field of coal. The method comprises the following steps: in the case of determining a candidate coal image reference position, an average gray value in a first range of the candidate coal image is obtained; a target type of the candidate coal image is determined according to the relationship between the average gray value and a threshold value; a corresponding target acquisition mode is determined according to the target type of the candidate coal image; and the candidate coal image is acquired according to the target acquisition mode. Therefore, the target type to which the candidate coal image belongs can be determined according to the relationship between the average gray value of the candidate coal image and the threshold value, and then the corresponding target acquisition mode is determined. Subsequently, the candidate coal image can be acquired according to the target acquisition mode, so that the definition of image acquisition is ensured, the time of image acquisition is saved, and the efficiency of image acquisition is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of coal, in particular to a coal microscopic image acquisition method and device and computer equipment. BACKGROUND

[0002] In the related art, for porous samples such as coke and needle coke, a multi-point plane focusing method is usually used to acquire images. It is usually necessary to uniformly set the focusing coordinates of multiple points on the surface of the sample in advance, and then acquire the microscopic image on the plane connected by the focusing coordinates of these points. The above process is relatively cumbersome and inefficient. Therefore, how to improve the efficiency of coal microscopic image acquisition is crucial. SUMMARY

[0003] The present disclosure aims to at least partially solve one of the technical problems in the related art.

[0004] The first aspect of the present disclosure provides a coal microscopic image acquisition method, comprising:

[0005] In the case of determining the candidate coal image reference position, the average gray value in the first range of the candidate coal image is obtained, wherein the candidate coal image is the image of the coal under the oil lens of the microscope;

[0006] According to the relationship between the average gray value and the threshold value, the target type of the candidate coal image is determined, wherein the threshold value includes any one of the following: a first threshold value and a second threshold value;

[0007] According to the target type of the candidate coal image, the corresponding target acquisition mode is determined;

[0008] According to the target acquisition mode, the candidate coal image is acquired. The second aspect of the present disclosure provides a coal microscopic image acquisition device, comprising:

[0009] The acquisition module is configured to obtain the average gray value in the first range of the candidate coal image in response to the microscopic objective lens reaching the position of the candidate coal image, wherein the candidate coal image is the image of the coal under the oil lens of the microscope;

[0010] The first determination module is configured to determine the target type of the candidate coal image according to the relationship between the gray value and the first threshold value;

[0011] The second determination module is configured to determine the corresponding target acquisition mode according to the target type of the candidate coal image;

[0012] The acquisition module is configured to acquire the candidate coal image according to the target acquisition mode.

[0013] The third aspect of the present disclosure provides a computer device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for collecting coal microscopic images according to the first aspect of the present disclosure.

[0014] The fourth aspect of the present disclosure provides a non-transitory computer readable storage medium, which stores a computer program, wherein the computer program is executable by a processor to implement the method for collecting coal microscopic images according to the first aspect of the present disclosure.

[0015] The fifth aspect of the present disclosure provides a computer program product, wherein the instructions in the computer program product are executable by a processor to implement the method for collecting coal microscopic images according to the first aspect of the present disclosure.

[0016] The method, device, computer device and storage medium for collecting coal microscopic images provided by the present disclosure can determine the average gray value in the first range of the candidate coal image under the condition that the reference position of the candidate coal image is determined, and then determine the target type of the candidate coal image according to the relationship between the average gray value and the threshold value, and determine the corresponding target collection mode according to the target type of the candidate coal image, and then collect the candidate coal image according to the target collection mode. Therefore, the target type to which the candidate coal image belongs can be determined according to the relationship between the average gray value of the candidate coal image and the threshold value, and the corresponding target collection mode can be determined according to the target type, and then the candidate coal image can be collected according to the target collection mode, so as to not only ensure the clarity of image collection, but also save the time of image collection and improve the efficiency of image collection.

[0017] The additional aspects and advantages of the present disclosure will be partially given in the following description, partially become obvious from the following description, or be understood through the practice of the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0018] The above and / or additional aspects and advantages of the present disclosure will become apparent and more readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:

[0019] Figure 1 A flowchart of the method for collecting coal microscopic images provided by an embodiment of the present disclosure;

[0020] Figure 2 A flowchart of the method for collecting coal microscopic images provided by another embodiment of the present disclosure;

[0021] Figure 2A A schematic diagram of the collection process of coal microscopic images provided by another embodiment of the present disclosure;

[0022] Figure 3 FIG. 1 is a structural schematic diagram of a coal microscopic image acquisition device according to an embodiment of the present disclosure;

[0023] Figure 4 FIG. 2 shows a block diagram of an exemplary computer device suitable for implementing embodiments of the present disclosure. DETAILED DESCRIPTION

[0024] Embodiments of the present disclosure are described in detail below with reference to the accompanying drawings, examples of which are shown in the drawings, wherein the same or similar notations represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and are intended to explain the present disclosure, and cannot be understood as a limitation of the present disclosure.

[0025] A coal microscopic image acquisition method, device, computer device and storage medium of embodiments of the present disclosure are described below with reference to the accompanying drawings.

[0026] Embodiments of the present disclosure are exemplified by the coal microscopic image acquisition method being configured in a coal microscopic image acquisition device, which can be applied to any computer device, so that the computer device can perform the function of coal microscopic image acquisition.

[0027] The computer device can be a personal computer (PC), a cloud device, a mobile device, etc. The mobile device can be, for example, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, a vehicle-mounted device, etc. The mobile device can have various operating systems, touch screens and / or display screens.

[0028] Figure 1 FIG. 3 is a flowchart of a coal microscopic image acquisition method according to an embodiment of the present disclosure.

[0029] As shown in FIG. 4, the coal microscopic image acquisition method can include the following steps: Figure 1

[0030] In step 101, the average gray value in a first range of a candidate coal image is obtained after determining the candidate coal image reference position.

[0031] The candidate coal image can be an image of coal under the objective lens of a microscope, such as an image under the oil lens of a microscope, etc. The present disclosure does not limit this.

[0032] ​The reference position can be understood as a position in which the candidate coal image is relatively clear. For example, the reference position can be obtained by moving a carrier table to obtain a relatively clear reference position of the candidate coal image. Alternatively, the reference position can be obtained by adjusting a coarse adjustment knob or a fine adjustment knob of a microscope to obtain a relatively clear reference position of the candidate coal image. Alternatively, the reference position can be determined in other manners, and the present disclosure does not limit the reference position.

[0033] In addition, the first range can be an arbitrary radius range set in advance. For example, the average gray value in the first radius range of the candidate coal image can be obtained. Alternatively, the center point of the candidate coal image can be determined first, and a preset number of unit cells at the center point can be obtained. For example, if O is the center point of the candidate coal image, and the preset number of unit cells is 9, the gray values corresponding to the 9 unit cells at the O point can be obtained, and then the average gray value corresponding to the 9 gray values can be determined. The present disclosure does not limit the above.

[0034] In step 102, the target type of the candidate coal image is determined according to the relationship between the average gray value and the threshold value. The threshold value can include any one of the following: a first threshold value and a second threshold value.

[0035] Optionally, after the average gray value is determined, the average gray value can be directly used to determine the target type of the candidate coal image. Alternatively, the average gray value can be processed, for example, a gray value difference can be determined, and then the gray value difference can be used to determine the target type of the candidate coal image. The present disclosure does not limit the above.

[0036] It can be understood that the target type of the candidate coal image can be determined based on the relationship between the average gray value and the first threshold value. Alternatively, after the average gray value is processed, the target type of the candidate coal image can be determined in combination with the second threshold value.

[0037] In addition, the type of the candidate image can be various, for example, the first type containing pores or adhesives, or the second type not containing pores or adhesives, and the present disclosure does not limit the above.

[0038] Optionally, the target type of the candidate coal image can be determined as the first type when the average gray value is less than the first threshold value, wherein the image of the first type contains pores or adhesives. Alternatively, the target type of the candidate coal image can be determined as the second type when the average gray value is greater than or equal to the first threshold value, wherein the image of the second type does not contain pores or adhesives.

[0039] The first threshold value can be a value set in advance, for example, 30, 40, and the like, and the present disclosure does not limit the above.

[0040] For example, in the case that the first threshold value is 35, if the average gray value of the candidate coal image is 20, which is less than the first threshold value, it can be determined that the target type of the candidate coal image is the first type containing pores or binders. If the average gray value of the candidate coal image is 40, which is greater than the first threshold value, it can be determined that the target type of the candidate coal image is the second type not containing pores or binders.

[0041] It should be noted that the above examples are only illustrative and cannot be regarded as a limitation on the first threshold value, the average gray value and the like in the embodiments of the present disclosure.

[0042] In step 103, a corresponding target acquisition mode is determined according to the target type of the candidate coal image.

[0043] It can be understood that the corresponding target acquisition mode can be different for different target types of the candidate coal image.

[0044] Optionally, in the case that the target type of the candidate coal image is the first type, it can be determined that the target acquisition mode is a first mode, wherein the first mode is to directly acquire the candidate coal image; or in the case that the type of the candidate coal image is the second type, it is determined that the target acquisition mode is a second mode, wherein the second mode is to first adjust the focal length and then acquire the candidate coal image.

[0045] It can be understood that, since the image of the first type contains pores or binders, the microscopic image of the coal is collected to obtain the coal image, not the pores or binders, but in order to ensure the fluency and continuity of image acquisition, the candidate coal image can be directly acquired without adjusting the focal length, that is, the target acquisition mode can be the first mode of “directly acquiring the candidate coal image”.

[0046] Or, if the image of the second type does not contain pores or binders, it can be considered that the image at this time is an image containing coal, in order to ensure the clarity of the collected image, the focal length can be adjusted first and then the image is acquired, that is, the target acquisition mode is the second mode of “first adjusting the focal length and then acquiring the candidate coal image”, and the like, which is not limited in the present disclosure.

[0047] In step 104, the candidate coal image is acquired according to the target acquisition mode.

[0048] It can be understood that after the target acquisition mode is determined, the candidate coal image can be acquired according to the target acquisition mode.

[0049] For example, if the target acquisition mode is the first mode of "directly acquiring the candidate coal image", the candidate coal image can be directly acquired without adjusting the focal length, saving time. Alternatively, if the target acquisition mode is the second mode of "adjusting the focal length first and then acquiring the candidate coal image", the Z-axis focal length can be adjusted first, and then the candidate coal image can be acquired, and the like, which are not limited by the present disclosure.

[0050] Therefore, in the embodiments of the present disclosure, the target type to which the candidate coal image belongs can be determined according to the relationship between the average gray value of the candidate coal image and the threshold value, and then the corresponding target acquisition mode can be determined according to the target type. In the case where the candidate coal image contains pores or adhesives, the image can be directly acquired without adjusting the focal length, saving time. In the case where the candidate coal image does not contain pores or adhesives, the focal length can be adjusted first, and then the image can be acquired, thereby ensuring the accuracy and clarity of image acquisition. Therefore, not only the clarity of image acquisition is ensured, but also the time of image acquisition is saved, and the efficiency of image acquisition is improved.

[0051] In the embodiments of the present disclosure, the average gray value in the first range of the candidate coal image can be obtained after determining the reference position of the candidate coal image, and then the target type of the candidate coal image can be determined according to the relationship between the average gray value and the threshold value, and then the corresponding target acquisition mode can be determined according to the target type of the candidate coal image, and then the candidate coal image can be acquired according to the target acquisition mode. Therefore, the target type to which the candidate coal image belongs can be determined according to the relationship between the average gray value of the candidate coal image and the threshold value, and the corresponding target acquisition mode can be determined according to the target type, and then the candidate coal image can be acquired according to the target acquisition mode, thereby not only ensuring the clarity of image acquisition, but also saving the time of image acquisition and improving the efficiency of image acquisition. Figure 2 The flowchart of the coal microscopic image acquisition method provided by the embodiments of the present disclosure is shown in FIG. 1.

[0052] As shown in FIG. 2, the coal microscopic image acquisition method can include the following steps: Figure 2 As shown in FIG. 2, the coal microscopic image acquisition method can include the following steps:

[0053] Step 201: In the case where the reference position of the candidate coal image is determined, N times of focusing are performed along the first direction according to the preset focusing step to obtain corresponding N average gray values.

[0054] Wherein, N can be any integer greater than 1, such as 3, 5, 6, and the like, which are not limited by the present disclosure.

[0055] The candidate coal image can be an image of coal under an objective lens of a microscope, such as an image under an oil objective lens, and the present disclosure does not limit this.

[0056] The preset focus step can be any step value set in advance, and the present disclosure does not limit this.

[0057] In addition, the first direction can be any focusing direction set in advance, such as a Z-axis upward direction or a Z-axis downward direction, and the present disclosure does not limit this.

[0058] It can be understood that after the candidate coal image reference position is determined, N times of focusing can be performed along the first direction according to the preset focus step, and then the average gray value in the first range in the candidate coal image after each time of focusing can be obtained, so that N average gray values can be obtained.

[0059] For example, after the candidate coal image reference position is determined, 5 times of focusing can be performed along the Z-axis direction according to the preset focus step, and then the corresponding average gray value in the first range in the candidate coal image after each time of focusing in the 5 times of focusing can be obtained, that is, 5 average gray values can be obtained, and the present disclosure does not limit this.

[0060] Step 202: determining a gray value difference between a previous gray value and a subsequent gray value in each adjacent two average gray values in the N average gray values.

[0061] For example, after 5 average gray values are determined, the gray value difference Δ1 between the 2nd gray value and the 1st gray value, the gray value difference Δ2 between the 3rd gray value and the 2nd gray value, the gray value difference Δ3 between the 4th gray value and the 3rd gray value, and the gray value difference Δ4 between the 5th gray value and the 4th gray value can be determined, and the present disclosure does not limit this.

[0062] Step 203: determining that the type of the candidate coal image is a first type in a case where each gray value difference is less than a second threshold value, wherein the image of the first type contains pores or adhesives.

[0063] The second threshold value can be a value set in advance, such as 1, 2, 5, and the like, and the present disclosure does not limit this.

[0064] It can be understood that if each gray value difference is less than the second threshold value, it can be considered that the multiple focusing in the same direction does not move towards the focus plane, so that it can be determined that the candidate coal image contains pores or adhesives and the like that do not need to be collected, and thus the type of the candidate coal image can be determined as the first type of “containing pores or adhesives”.

[0065] For example, in the case that the second threshold value is 1, if each gray value difference is less than 1, it can be considered that each time of focusing is far away from the focusing plane, and then the type of the candidate coal image can be determined as the first type of "containing pores or binders", and the like, which are not limited in the present disclosure.

[0066] In step 204, in the case that any gray value difference is greater than or equal to the second threshold value, the type of the candidate coal image is determined as a second type, wherein the image of the second type does not contain pores or binders.

[0067] It can be understood that, in the case that any gray value difference in the plurality of gray value differences is greater than or equal to the second threshold value, it can be considered that the plurality of times of focusing in the same direction exist the case of moving to the focusing plane, and then it can be determined that the candidate coal image does not contain the part of pores or binders, and the like, which is not needed to be collected, so that the type of the candidate coal image can be determined as the second type of "not containing pores or binders".

[0068] For example, in the case that the second threshold value is 1, if Δ1 is 1, Δ2 is 1, Δ3 is 2, and Δ4 is 3, it can be considered that, in the plurality of times of focusing in the same direction, the case of moving to the focusing plane exists, so that the type of the candidate coal image can be determined as the second type of "not containing pores or binders", and the like, which are not limited in the present disclosure.

[0069] In step 205, according to the target type of the candidate coal image, a corresponding target collection mode is determined.

[0070] In step 206, according to the target collection mode, the candidate coal image is collected.

[0071] Optionally, after the N times of focusing in the first direction according to the preset focusing step are performed, and the N average gray values are obtained, it is determined that the target collection mode of the candidate coal image is the first mode of "directly collecting the candidate coal image", and the like, which are not limited in the present disclosure.

[0072] Optionally, after the current candidate coal image is collected, a reference position of a next image to be collected can be determined according to a set point line distance.

[0073] The set point line distance can be any value set in advance, which is not limited in the present disclosure.

[0074] It can be understood that after the current candidate coal image is collected, the next image to be collected can be moved to the position of the next image to be collected according to the set point row distance, and then the reference position of the next image to be collected can be determined by adjusting the microscope fine adjustment knob. Then, the process of collecting the current candidate coal image can be referred to to collect the next image to be collected. The present disclosure does not limit this.

[0075] It should be noted that the coal microscopic image collection method provided by the present disclosure can be applied to any coal collection scene, such as coke, needle coke, and other porous samples, or anthracite and other difficult-to-mill samples, etc. The present disclosure does not limit this. The following will be combined with Figure 2A The collection process of the coal microscopic image provided by the present disclosure is briefly described.

[0076] From Figure 2A It can be seen that after the image collection is completed at the previous focusing plane, the next image to be collected can be moved to the position of the next image to be collected according to the set point row distance, and then it can be determined whether the image contains pores or binders according to the average gray value in the first range of the image center. If the image contains pores or binders, the image can be directly collected; if the image does not contain pores or binders, the Z-axis focal length needs to be adjusted first, and then the image is collected.

[0077] It should be noted that the above examples are only illustrative and cannot be used as a limitation on the collection process of the coal microscopic image in the embodiments of the present disclosure.

[0078] In the embodiments of the present disclosure, after the reference position of the candidate coal image is determined, N times of focusing can be performed along the first direction according to the preset focusing step to obtain corresponding N average gray values. Then, the gray value difference between the latter gray value and the former gray value in each adjacent two average gray values in the N average gray values can be determined. Then, in the case that each gray value difference is less than a second threshold, it is determined that the type of the candidate coal image is a first type, wherein the image of the first type contains pores or binders. In the case that any gray value difference is greater than or equal to the second threshold, it is determined that the type of the candidate coal image is a second type, wherein the image of the second type does not contain pores or binders. Then, the corresponding target collection method can be determined according to the target type of the candidate coal image, and the candidate coal image can be collected. Thus, the target type to which the candidate coal image belongs can be determined according to the relationship between the average gray value of the candidate coal image and the threshold, and the corresponding target collection method can be determined according to the target type. Then, the candidate coal image can be collected according to the target collection method, so as to not only ensure the clarity of the image collection, but also save the time of the image collection and improve the efficiency of the image collection.

[0079] To achieve the above-mentioned embodiments, the present disclosure also provides a coal microscopic image acquisition device.

[0080] Figure 3 A structural schematic diagram of the coal microscopic image acquisition device provided by the embodiments of the present disclosure.

[0081] As Figure 3 shown, the coal microscopic image acquisition device 100 can include an acquisition module 110, a first determination module 120, a second determination module 130, and an acquisition module 140.

[0082] The acquisition module 110 is configured to acquire an average gray value in a first range of a candidate coal image, when a candidate coal image reference position is determined, wherein the candidate coal image is an image of coal under an oil lens of a microscope.

[0083] The first determination module 120 is configured to determine a target type of the candidate coal image according to a relationship between the average gray value and a threshold value, wherein the threshold value includes any one of a first threshold value and a second threshold value.

[0084] The second determination module 130 is configured to determine a corresponding target acquisition mode according to the target type of the candidate coal image.

[0085] The acquisition module 140 is configured to acquire the candidate coal image according to the target acquisition mode.

[0086] Optionally, the first determination module 120 is specifically configured to:

[0087] determine that the target type of the candidate coal image is a first type when the average gray value is less than the first threshold value, wherein the image of the first type contains pores or adhesives;

[0088] determine that the target type of the candidate coal image is a second type when the average gray value is greater than or equal to the first threshold value, wherein the image of the second type does not contain pores or adhesives.

[0089] Optionally, the second determination module 130 is specifically configured to:

[0090] determine that the target acquisition mode is a first mode when the target type of the candidate coal image is the first type, wherein the first mode is to directly acquire the candidate coal image; or

[0091] determine that the target acquisition mode is a second mode when the type of the candidate coal image is the second type, wherein the second mode is to first adjust a focal length and then acquire the candidate coal image.

[0092] Optionally, the acquisition module 110 is specifically configured to:

[0093] focus N times along the first direction according to the preset focus step to obtain corresponding N average gray values, wherein N is any integer greater than 1.

[0094] Optionally, the first determination module 120 is specifically configured to:

[0095] determine a corresponding gray value difference between a latter gray value and a former gray value in each of the N average gray values.

[0096] in a case where each of the gray value differences is less than the second threshold value, determine that the type of the candidate coal image is a first type, wherein the image of the first type contains pores or binders;

[0097] in a case where any of the gray value differences is greater than or equal to the second threshold value, determine that the type of the candidate coal image is a second type, wherein the image of the second type does not contain pores or binders.

[0098] Optionally, the first determination module 120 is further configured to:

[0099] determine a reference position of a next image to be collected according to a set point line distance.

[0100] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can refer to the above method embodiments, which will not be described here.

[0101] The coal microscopic image collection device in the embodiments of the present disclosure can determine the average gray value in the first range of the candidate coal image in the case of determining the reference position of the candidate coal image, and then determine the target type of the candidate coal image according to the relationship between the average gray value and the threshold value, and then determine the corresponding target collection mode according to the target type of the candidate coal image, and then collect the candidate coal image according to the target collection mode. Therefore, the target type to which the candidate coal image belongs can be determined according to the relationship between the average gray value of the candidate coal image and the threshold value, and the corresponding target collection mode can be determined according to the target type, and then the candidate coal image can be collected according to the target collection mode, so as to not only ensure the clarity of image collection, but also save the time of image collection and improve the efficiency of image collection.

[0102] In order to realize the above-mentioned embodiments, the present disclosure further proposes a computer device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the coal microscopic image collection method proposed in the foregoing embodiments of the present disclosure is realized.

[0103] To achieve the above-mentioned embodiments, the present disclosure further provides a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the coal microscopic image acquisition method according to the above-mentioned embodiments of the present disclosure.

[0104] To achieve the above-mentioned embodiments, the present disclosure further provides a computer program product, wherein the computer program product is executed by a processor to implement the coal microscopic image acquisition method according to the above-mentioned embodiments of the present disclosure.

[0105] Figure 4 A block diagram of an exemplary computer device suitable for implementing embodiments of the present disclosure is shown. Figure 4 The computer device 12 shown is but one example and should not be taken as limiting the scope of functionality or use of embodiments of the present disclosure.

[0106] As shown, the computer device 12 is in the form of a general-purpose computing device. Components of the computer device 12 can include, but are not limited to, one or more processors or processing units 16, system memory 28, and a bus 18 that couples various system components including system memory 28 and processing unit 16. Figure 4

[0107] The bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration bus (e.g., AGP bus) and a local bus using any of a variety of bus architectures (e.g., Industry Standard Architecture (ISA), Micro Channel Architecture (MCA), Enhanced ISA (EISA), Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus).

[0108] The computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by the computer device 12 and includes both volatile and non-volatile media, removable and non-removable media.

[0109] ​​​​​​​​​​​​​​​​​Memory 28 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Computer device 12 can further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (i.e., a "hard drive") Figure 4 not shown, commonly referred to as a "hard disk drive"). Although Figure 4 not shown in the detailed description, a magnetic hard disk drive, a magnetic floppy disk drive, and / or an optical disk drive can be provided for reading from or writing to a removable, non-removable, and / or compact magnetic disk (e.g., a "floppy disk"), and / or optical disk (e.g., a Compact Disk Read Only Memory ("CD-ROM"), a Digital Video Disk Read Only Memory ("DVD-ROM"), or other optical media). Each of these drives can be connected to bus 18 by one or more data media interfaces. Storage media 28 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.

[0110] Program / utility 40, having a set (at least one) of program modules 42, can be stored in, for example, memory 28 by way of example, such as an operating system, one or more application programs, other program modules, and program data, each or some combination thereof, can include implementation of a networking environment. Program modules 42 generally carry out the functions and / or methodologies of embodiments of the disclosure as described herein.

[0111] Computer device 12 can also communicate with one or more external devices 14 such as a keyboard, a pointing device, a display 24, etc.; one or more devices that enable a user to interact with computer device 12; and / or any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication can occur via Input / Output (I / O) interface(s) 22. Still yet, computer device 12 can communicate with one or more networks, such as a local area network (LAN), a wide area network (WAN), and / or the Internet, through network adapter 20. As an example, network adapter 20 can communicate with the other components of computer device 12 via bus 18. It should be appreciated that although not shown, other hardware and / or software components could be used in conjunction with computer device 12. These include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.

[0112] Processing unit 16 performs various overall processing functions in accordance with the program stored in system memory 28, such as implementing the methods described in the foregoing embodiments.

[0113] The technical scheme of the present disclosure can determine the average gray value in the first range of the candidate coal image under the condition that the candidate coal image reference position is determined, and then determine the target type of the candidate coal image according to the relationship between the average gray value and the threshold value, and then determine the corresponding target acquisition mode according to the target type of the candidate coal image, and then acquire the candidate coal image according to the target acquisition mode. Thus, the target type to which the candidate coal image belongs can be determined according to the relationship between the average gray value of the candidate coal image and the threshold value, and the corresponding target acquisition mode can be determined according to the target type, and then the candidate coal image can be acquired according to the target acquisition mode, so as to not only ensure the clarity of image acquisition, but also save the time of image acquisition and improve the efficiency of image acquisition.

[0114] In the description of the disclosure, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" and the like means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the disclosure. In the description of the disclosure, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, a person skilled in the art can combine and combine different embodiments or examples described in the specification and the features of different embodiments or examples without contradiction.

[0115] In addition, the terms "first", "second" are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the disclosure, the meaning of "a plurality of" is at least two, for example, two, three, etc., unless otherwise explicitly specified.

[0116] Any process or method descriptions in flow charts or otherwise described herein represent embodiments that can be understood as a module, segment, or portion of code that includes one or more executable instructions for implementing the specified logical function or process. The scope of the preferred embodiments of the disclosure includes additional implementation in which the functions described in the illustrated or discussed order are performed in a different order, including substantially simultaneously, or in reverse order, according to the functions involved, which should be understood by those skilled in the art to which the embodiments of the disclosure belong.

[0117] The logic and / or steps represented in flow diagrams or otherwise described herein, for example, can be considered as a sequence of instructions to implement logic functions, and can be embodied in any computer-readable medium for use by an instruction execution system, apparatus, or device, such as a computer-based system, processor- containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. In the context of this specification, a "computer-readable medium" can be any means that can contain, store, communicate, propagate or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer-readable medium can be a machine-readable storage device (e.g., magnetic, optical or other) a machine-readable storage diskette (e.g., floppy disk, optical disk, CD- ROM, etc.), a machine- readable storage card (e.g., PCMCIA card, etc.), a machine-readable storage tape (e.g., magnetic tape, optical tape, etc.), a machine-readable storage medium (e.g., RAM, ROM, etc.), a machine-readable signal (e.g., electrical, optical, etc.), a machine-readable medium (e.g., carrier wave, etc.) or any other suitable medium or means of embodying the program. More specific examples (a non-exhaustive list) of the computer-readable medium include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a RAM, a ROM, an EPROM, a FLASH memory card, an optical fiber, and a portable compact disc read-only memory (CD-ROM). Additionally, the computer-readable medium can be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, for example, via optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and stored in a computer memory.

[0118] It should be understood that portions of the present disclosure can be implemented in hardware, software, firmware or combinations thereof. In the above embodiments, the various steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As such, if implemented in hardware, and in another embodiment, any of the following technologies, known in the art, or their combinations can be used: discrete logic circuitry having logic gates for implementing logic functions on data signals, application specific integrated circuits having appropriate combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), and the like.

[0119] Those skilled in the art can understand that all or part of the steps carried out by the above-mentioned embodiment methods can be completed by programs instructing related hardware, and the programs can be stored in a computer-readable storage medium. When the programs are executed, one or a combination of the steps of the method embodiments is included.

[0120] In addition, each functional unit in each embodiment of the present disclosure can be integrated in one processing module, or each unit can exist physically separately, or two or more units can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module. When the integrated module is realized in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer readable storage medium.

[0121] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure, and those skilled in the art can make changes, modifications, replacements and variations to the above embodiments within the scope of the present disclosure.

Claims

1. A method for acquiring microscopic images of coal, characterized in that, include: Once the reference position of the candidate coal image is determined, the average gray value within a first range of the candidate coal image is obtained, wherein the candidate coal image is an image of coal under an oil immersion microscope. Based on the relationship between the average gray value and the threshold, the target type of the candidate coal image is determined, wherein the threshold includes any one of the following: a first threshold and a second threshold, including: when the average gray value is less than the first threshold, the target type of the candidate coal image is determined to be a first type, wherein the image of the first type contains pores or adhesives; when the average gray value is greater than or equal to the first threshold, the target type of the candidate coal image is determined to be a second type, wherein the image of the second type does not contain pores or adhesives; obtaining the average gray value within a first range in the candidate coal image includes: performing N focusing steps along a first direction according to a preset focusing step to obtain N corresponding average gray values, wherein N is any integer greater than 1; Alternatively, after processing the average grayscale value, the target type of the candidate coal image is determined by combining it with the second threshold; the grayscale value difference between the next grayscale value and the previous grayscale value in each of the N average grayscale values ​​is determined; wherein, if each grayscale value difference is less than the second threshold, the candidate coal image is determined to be of the first type, wherein the image of the first type contains pores or adhesives; if any grayscale value difference is greater than or equal to the second threshold, the candidate coal image is determined to be of the second type, wherein the image of the second type does not contain pores or adhesives; Based on the target type of the candidate coal image, the corresponding target acquisition method is determined, including: when the target type of the candidate coal image is a first type, the target acquisition method is determined to be a first method, wherein the first method is to directly acquire the candidate coal image; when the type of the candidate coal image is a second type, the target acquisition method is determined to be a second method, wherein the second method is to first adjust the focus and then acquire the candidate coal image. The candidate coal images are acquired according to the target acquisition method.

2. The method as described in claim 1, characterized in that, After acquiring the candidate coal images according to the target acquisition method, the method further includes: Determine the reference position for the next image to be acquired based on the set dot and row spacing.

3. An acquisition device based on the coal microscopic image acquisition method according to any one of claims 1-2, characterized in that, include: The acquisition module is used to acquire the average gray value within a first range in the candidate coal image in response to the position of the microscope objective reaching the candidate coal image, wherein the candidate coal image is an image of coal under an oil immersion microscope. The first determining module is used to determine the target type of the candidate coal image based on the relationship between the gray value and the first threshold. The second determining module is used to determine the corresponding target acquisition method according to the target type of the candidate coal image, including: when the target type of the candidate coal image is a first type, determining the target acquisition method as a first method, wherein the first method is to directly acquire the candidate coal image; or, when the type of the candidate coal image is a second type, determining the target acquisition method as a second method, wherein the second method is to first adjust the focus and then acquire the candidate coal image. The acquisition module is used to acquire the candidate coal images according to the target acquisition method; The first determining module is specifically used for: If the average gray value is less than a first threshold, the target type of the candidate coal image is determined to be a first type, wherein the image of the first type contains pores or binders; If the average gray value is greater than or equal to a first threshold, the target type of the candidate coal image is determined to be a second type, wherein the image of the second type does not contain pores or binders; or the target type of the candidate coal image is determined by combining the average gray value with the second threshold after processing the average gray value.

4. A computer device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the coal microscopic image acquisition method as described in any one of claims 1-2.

5. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the coal microscopic image acquisition method as described in any one of claims 1-2.

Citation Information

Patent Citations

  • Image sharpness detection method and device

    CN106934804A

  • Coal seam macroscopic fracture dominant development orientation prediction method

    CN111784059A

  • PORE-space measurement method apparatus and system

    US20150000903A1