Foreign matter detection method for coal mine belt conveyor

By calculating the color deviation and local chaos in the image of coal mine conveyor belts, the probability of metal minerals is obtained and image enhancement is performed, the problem of difficulty in distinguishing between metal minerals and coal mines in traditional detection methods is solved, and the accuracy of foreign matter detection in coal mine conveyor belts is improved.

CN119006466AActive Publication Date: 2024-11-22INNER MONGOLIA WANBANG INTELLIGENT TECHNOLOGY CO LTD

Patent Information

Application Number
CN202411487262.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2024-11-22
Estimated Expiration
2044-10-24

AI Technical Summary

Technical Problem

Traditional foreign object detection algorithms are difficult to accurately distinguish metal minerals from coal mines in the image of coal mine conveyor belts, resulting in detection errors.

Method used

By acquiring the RGB image and grayscale image of the coal mine, calculate the color deviation and local chaos of each pixel point, obtain the probability of metal minerals in the connected domain, and use the image enhancement based on this probability to improve the color difference between metal minerals and coal mines, and then Identify metal foreign matter.

Benefits of technology

The color difference between metal minerals and coal mines in the enhanced RGB images of coal mines is large, which improves the accuracy of foreign matter detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119006466A_ABST
    Figure CN119006466A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of image processing, in particular to a coal mine belt conveyor foreign matter detection method which comprises the following steps: acquiring a coal mine RGB image and a coal mine grayscale image; according to the color deviation degree of each pixel point in each connected domain of the coal mine gray level image, the local confusion degree in the neighborhood range of each pixel point is obtained; according to the theoretical centroid position of the confusion degree in each connected domain of the coal mine gray level image, the probability that metallic minerals exist in each connected domain is obtained; obtaining an enhanced coal mine RGB image according to the enhanced color value of the first color channel of each pixel point in the coal mine RGB image; and further identifying the metal foreign matters in the coal mine conveyor belt. The foreign matter detection result is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of image processing, and in particular to a method for detecting foreign matter in a coal mine belt conveyor. Background Art

[0002] Belt conveyors are widely used in industrial production due to their large transport capacity, high transport efficiency and long-term operation. With the development of science and technology, belt conveyors are developing in the direction of high speed, large inclination and long distance. During the conveying process, the conveyor belt is often mixed with some foreign matter. When foreign matter appears on the conveyor belt, it is easy to cause production quality problems due to the mixing of foreign matter. Foreign matter on the conveyor belt is generally gangue and metal minerals. Gangue is generally sorted manually or physically, so this solution mainly detects metal minerals.

[0003] When using traditional foreign object detection algorithms to detect foreign objects in coal mine conveyor belt images, since metal minerals and coal mines are similar in images, detection errors are easy to occur. Therefore, image enhancement of metal minerals in coal mine conveyor belt images is necessary. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a method for detecting foreign matter in a coal mine belt conveyor, the method comprising: Obtain coal mine RGB images and coal mine grayscale images; Obtain several connected domains of the coal mine grayscale image; obtain the color deviation of each pixel point in each connected domain of the coal mine grayscale image according to the color value difference of the three color channels of the pixel point of the coal mine RGB image corresponding to each pixel point in each connected domain of the coal mine grayscale image; obtain the local disorder degree within the neighborhood range of each pixel point in each connected domain according to the relative position and color deviation difference of the pixel points in each connected domain; According to the local disorder degree in the neighborhood of each pixel point in each connected domain, the theoretical centroid position of the disorder degree in each connected domain is obtained; according to the position difference between the pixel point in each connected domain and the theoretical centroid position of the disorder degree in each connected domain, the probability of the existence of metal minerals in each connected domain is obtained; According to the probability of the existence of metal minerals in each connected domain, the enhanced color value of the first color channel of each pixel in the coal mine RGB image is obtained; according to the enhanced color value of the first color channel of each pixel, the enhanced coal mine RGB image is obtained; according to the enhanced coal mine RGB image, the metal foreign matter in the coal mine conveyor belt is identified.

[0005] Preferably, the specific method of obtaining the coal mine RGB image and the coal mine grayscale image includes: Acquire the grayscale image of the coal mine conveyor belt; use the Otsu threshold algorithm to perform threshold segmentation on the coal mine conveyor belt grayscale image to obtain the coal mine conveyor belt binary image; multiply the coal mine conveyor belt binary image with the coal mine conveyor belt RGB image and the coal mine conveyor belt grayscale image to obtain the coal mine RGB image and the coal mine grayscale image.

[0006] Preferably, the color deviation of each pixel point in each connected domain of the coal mine grayscale image is obtained according to the color value difference of the three color channels of the pixel point of the coal mine RGB image corresponding to each pixel point in each connected domain of the coal mine grayscale image, including the specific method of: Get the color value of each color channel of each pixel in each connected domain of the coal mine grayscale image; then The first The calculation method of the color deviation of a pixel is: In the formula, Represents the grayscale image of the coal mine The first Color deviation of each pixel; Represents the grayscale image of the coal mine The first The color value of the R color channel of each pixel; Represents the grayscale image of the coal mine The first The color value of the G color channel of each pixel; Represents the grayscale image of the coal mine The first The color value of the B color channel of each pixel; Indicates taking the absolute value.

[0007] Preferably, the method of obtaining the color value of each color channel of each pixel in each connected domain of the coal mine grayscale image includes the following specific methods: For the coal mine grayscale image The first pixels, get the The pixel point corresponds to the pixel point in the coal mine RGB image and is recorded as The target pixel of pixels is The color values ​​of the R, G, and B channels of the target pixel are taken as the The color value of each color channel of each pixel.

[0008] Preferably, the method of obtaining the local disorder degree within the neighborhood of each pixel point in each connected domain according to the difference in relative position and color deviation of the pixel points in each connected domain includes the following specific methods: Get the neighborhood range of each pixel point in each connected domain of the coal mine grayscale image; then The first The calculation expression of the local disorder degree within the neighborhood of a pixel is: In the formula, Represents the grayscale image of the coal mine The first The degree of local chaos within the neighborhood of a pixel; Represents the grayscale image of the coal mine The first The maximum color deviation of all pixels in the neighborhood of a pixel; Represents the grayscale image of the coal mine The first The minimum color deviation of all pixels in the neighborhood of a pixel; Represents the grayscale image of the coal mine The first In the neighborhood of pixels Pixels and The Euclidean distance between pixels; Represents the grayscale image of the coal mine The first In the neighborhood of pixels Color deviation of each pixel; Represents the grayscale image of the coal mine The first Color deviation of each pixel; Indicates taking the absolute value; represents an exponential function with a natural constant as base; are preset parameters.

[0009] Preferably, the specific method of obtaining the neighborhood range of each pixel point in each connected domain of the coal mine grayscale image includes: For the coal mine grayscale image The first pixels, with the pixels as the window center, and the window size is and record the window as The neighborhood range of pixels.

[0010] Preferably, the specific formula for obtaining the theoretical centroid position of the degree of chaos in each connected domain according to the degree of local chaos in the neighborhood of each pixel point in each connected domain is: In the formula, Represents the grayscale image of the coal mine The horizontal coordinate of the theoretical centroid position of the degree of chaos in a connected domain; Represents the grayscale image of the coal mine The ordinate of the theoretical centroid position of the degree of chaos in a connected domain; Represents the grayscale image of the coal mine The total number of all pixels in a connected domain; Represents the grayscale image of the coal mine The first The horizontal coordinate of the pixel point; Represents the grayscale image of the coal mine The first The vertical coordinate of the pixel; Represents the grayscale image of the coal mine The first The degree of local chaos within the neighborhood of a pixel; Indicates rounding up.

[0011] Preferably, the specific formula for obtaining the probability of the existence of metal minerals in each connected domain according to the position difference between the pixel point in each connected domain and the theoretical centroid position of the disorder degree in each connected domain is: In the formula, Represents the grayscale image of the coal mine The probability of the existence of metal minerals in a connected domain; Represents the grayscale image of the coal mine The total number of all pixels in a connected domain; Represents the grayscale image of the coal mine The first The degree of local chaos within the neighborhood of a pixel; Represents the grayscale image of the coal mine The first pixels and The Euclidean distance between the theoretical centroid positions of the degree of disorder in a connected domain; Represents an exponential function with a natural constant as base.

[0012] Preferably, the method of obtaining the enhanced color value of the first color channel of each pixel in the coal mine RGB image according to the probability of the existence of metal minerals in each connected domain includes the following specific methods: Get the The probability that a metal mineral exists in the connected domain to which the pixel belongs; The color channel with the largest color value of the pixel is recorded as The first color channel of the pixel point, then the first The calculation method of the color value of the first color channel of a pixel after enhancement is: In the formula, Indicates the first The color value of the first color channel of each pixel after enhancement; Indicates the first The color value of the first color channel of a pixel; Indicates the first The probability that a metal mineral exists in the connected domain to which the pixel belongs.

[0013] Preferably, the obtaining The probability of the existence of metal minerals in the connected domain to which the pixel belongs includes the following specific methods: Get the The pixel point corresponds to the pixel point in the coal mine grayscale image and is recorded as The first pixel of the pixels The connected domain where the first pixel of the pixels is located is recorded as the first connected domain, and the probability of the existence of metal minerals in the first connected domain is taken as the The probability that a metal mineral exists in the connected domain to which the pixel belongs.

[0014] The beneficial effect of the technical solution of the present invention is: the present invention enhances the color value of the first color channel of each pixel in the coal mine RGB image according to the probability of the existence of metal minerals in each connected domain, and obtains the enhanced coal mine RGB image, so that the color difference between the metal minerals and the coal mine in the enhanced coal mine RGB image is large, and it is easier to distinguish the metal minerals and the coal mine in the enhanced coal mine RGB image, thereby making the foreign body detection result more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 The present invention is a flowchart of the steps of a method for detecting foreign matter on a coal mine belt conveyor. DETAILED DESCRIPTION

[0017] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the coal mine belt conveyor foreign body detection method proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0018] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0019] The specific scheme of the method for detecting foreign matter in a coal mine belt conveyor provided by the present invention is described in detail below with reference to the accompanying drawings.

[0020] See also Figure 1 , which shows a flow chart of the steps of a method for detecting foreign matter in a coal mine belt conveyor provided by an embodiment of the present invention, the method comprising the following steps: Step S001: Acquire a coal mine RGB image and a coal mine grayscale image.

[0021] It should be noted that in the process of coal collection, belt conveyors are used to transport the collected coal, and some metal minerals are often mixed in the transportation process. The coal is generally transported in the mine. The environment of the mine is relatively dim, and lighting is generally provided by lights. Under the influence of light, the surface of the coal is relatively smooth due to its surface structure, and it appears brighter under the light. The metal minerals also have a strong ability to reflect light.

[0022] Specifically, in order to implement the coal mine belt conveyor foreign body detection method proposed in this embodiment, it is first necessary to collect the coal mine RGB image and the coal mine grayscale image. The specific process is as follows: Lights and fixed cameras are arranged above the coal mine transportation line to obtain the RGB image of the coal mine conveyor belt, and the RGB image of the coal mine conveyor belt is grayed to obtain the gray image of the coal mine conveyor belt. The Otsu threshold algorithm is used to perform threshold segmentation on the gray image of the coal mine conveyor belt to obtain the binary image of the coal mine conveyor belt, and the binary image of the coal mine conveyor belt is multiplied with the RGB image of the coal mine conveyor belt and the gray image of the coal mine conveyor belt to obtain the RGB image of the coal mine and the gray image of the coal mine.

[0023] The coal mine RGB image and the coal mine grayscale image only contain coal mines and metal minerals; the Otsu threshold algorithm and grayscale operation are prior arts, and will not be described in detail in this embodiment.

[0024] So far, the coal mine RGB image and coal mine grayscale image are obtained through the above method.

[0025] Step S002: According to the color deviation of each pixel in each connected domain of the coal mine grayscale image, the local disorder degree in the neighborhood of each pixel is obtained.

[0026] It should be noted that although the coal mine grayscale image only contains coal mines and metal minerals, because both coal mines and metal minerals have reflective phenomena, the connected domain of the coal mine grayscale image may be a coal mine or a metal mineral, so it is necessary to judge the category of the connected domain.

[0027] Specifically, a gradient image of a coal mine grayscale image is obtained, and a watershed segmentation algorithm is performed on the gradient image of the coal mine grayscale image to obtain multiple regions of the coal mine grayscale image, and each region is used as a connected domain to obtain several connected domains of the coal mine grayscale image.

[0028] 1. Obtain the color deviation of each pixel in each connected domain of the coal mine grayscale image.

[0029] It should be noted that the coal mine is black, but due to the light, it is displayed as black, gray and white in the image. The common feature is that the RGB colors are relatively similar, but the metal minerals are doped with colors, and the RGB three-channel color values ​​of some pixels in the metal mineral area are relatively large. Therefore, a preliminary judgment can be made based on the RGB three-channel color value deviation. The less similar the three-channel values ​​of the RGB image of a single pixel are, the less close it is to the color values ​​of black, gray and white, and the greater the color deviation.

[0030] Specifically, for the coal mine grayscale image The first pixels, get the The pixel point corresponds to the pixel point in the coal mine RGB image and is recorded as The target pixel of pixels is The grayscale values ​​of the R, G, and B channels of the target pixel are taken as the The color value of each color channel of the pixel; then the first The first The calculation method of the color deviation of a pixel is: In the formula, Represents the grayscale image of the coal mine The first Color deviation of each pixel; Represents the grayscale image of the coal mine The first The color value of the R color channel of each pixel; Represents the grayscale image of the coal mine The first The color value of the G color channel of each pixel; Represents the grayscale image of the coal mine The first The color value of the B color channel of each pixel; Indicates taking the absolute value.

[0031] For any pixel, the grayscale values ​​of the three channels R, G, and B of the pixel are used as the color value of each color channel of the pixel.

[0032] At this point, the color deviation of each pixel in each connected domain of the coal mine grayscale image is obtained.

[0033] 2. Obtain the local disorder degree in the neighborhood of each pixel point in each connected domain of the coal mine grayscale image.

[0034] It should be noted that it is not reliable to judge the existence of metal minerals based on the color deviation of a single pixel, so further judgment is made on whether the pixel belongs to a metal mineral pixel based on the local color deviation of the pixel; the color of metal minerals is generally more complex, and the common colors on its surface are yellow, red, and brown. The color deviation of pixels of different colors is different, which leads to large changes in the color deviation corresponding to the pixels on the surface of metal minerals. The surface RGB color values ​​of coal mines are almost the same, so the color deviation of the pixels on its surface is relatively small and evenly distributed.

[0035] Preset an order , wherein this embodiment is based on This example is described as an example, and this embodiment is not specifically limited. It depends on the specific implementation situation.

[0036] Specifically, for the coal mine grayscale image The first pixels, with the pixels as the window center, and the window size is and record the window as The neighborhood range of pixels; then the first The first The calculation expression of the local disorder degree within the neighborhood of a pixel is: In the formula, Represents the grayscale image of the coal mine The first The degree of local chaos within the neighborhood of a pixel; Represents the grayscale image of the coal mine The first The maximum color deviation of all pixels in the neighborhood of a pixel; Represents the grayscale image of the coal mine The first The minimum color deviation of all pixels in the neighborhood of a pixel; Represents the grayscale image of the coal mine The first In the neighborhood of pixels Pixels and The Euclidean distance between pixels; Represents the grayscale image of the coal mine The first In the neighborhood of pixels Color deviation of each pixel; Represents the grayscale image of the coal mine The first Color deviation of each pixel; Indicates taking the absolute value; represents an exponential function with a natural constant as base; are preset parameters.

[0037] It should be noted that, within the neighborhood of a pixel, when the difference between the maximum and minimum values ​​of the color deviation within the neighborhood is large, the color deviation of the pixel and the degree of confusion of the color deviation of the pixels within its neighborhood have a higher degree of confidence. The smaller the Euclidean distance between any pixel and the pixel within the neighborhood, the greater the difference in color deviation, indicating that the color deviation at the location is more chaotic.

[0038] So far, the local disorder degree in the neighborhood of each pixel point in each connected domain of the coal mine grayscale image is obtained through the above method.

[0039] Step S003: According to the theoretical centroid position of the disorder degree in each connected domain of the coal mine grayscale image, the probability of the existence of metal minerals in each connected domain is obtained.

[0040] 1. Obtain the theoretical centroid position of the chaos degree in each connected domain of the coal mine grayscale image.

[0041] It should be noted that to enhance the image for metal minerals, it is necessary to determine the probability of the existence of metal minerals in a single connected domain. A single connected domain may contain both coal mines and metal minerals. Metal minerals only occupy a small part of the area. Directly using the mean value calculation may result in a low probability of the existence of metal minerals in a single connected domain. Therefore, the theoretical centroid position of the degree of chaos is calculated, and the distance of the theoretical centroid position is used as the weight to calculate the probability of metal minerals in a single connected domain.

[0042] Specifically, the grayscale image of the coal mine The calculation method of the theoretical centroid position of the degree of chaos in a connected domain is: In the formula, Represents the grayscale image of the coal mine The horizontal coordinate of the theoretical centroid position of the degree of chaos in a connected domain; Represents the grayscale image of the coal mine The ordinate of the theoretical centroid position of the degree of chaos in a connected domain; Represents the grayscale image of the coal mine The total number of all pixels in a connected domain; Represents the grayscale image of the coal mine The first The horizontal coordinate of the pixel point; Represents the grayscale image of the coal mine The first The vertical coordinate of the pixel; Represents the grayscale image of the coal mine The first The degree of local chaos within the neighborhood of a pixel; Indicates rounding up.

[0043] At this point, the theoretical centroid position of the chaos degree in each connected domain of the coal mine grayscale image is obtained.

[0044] 2. Obtain the probability of the existence of metal minerals in each connected domain of the coal mine grayscale image.

[0045] It should be noted that for any pixel point in the connected domain, the closer the pixel point is to the theoretical centroid of the disorder degree in the connected domain, the more likely it is to be a metal mineral pixel point, and the greater the weight it occupies when calculating the probability of the existence of metal minerals in the connected domain.

[0046] Specifically, the grayscale image of the coal mine The probability of the existence of metal minerals in a connected domain is calculated as follows: In the formula, Represents the grayscale image of the coal mine The probability of the existence of metal minerals in a connected domain; Represents the grayscale image of the coal mine The total number of all pixels in a connected domain; Represents the grayscale image of the coal mine The first The degree of local chaos within the neighborhood of a pixel; Represents the grayscale image of the coal mine The first pixels and The Euclidean distance between the theoretical centroid positions of the degree of disorder in a connected domain; Represents an exponential function with a natural constant as base.

[0047] So far, the probability of the existence of metal minerals in each connected domain of the coal mine grayscale image is obtained through the above method.

[0048] Step S004: acquiring an enhanced coal mine RGB image according to the enhanced color value of the first color channel of each pixel in the coal mine RGB image; and then identifying metal foreign bodies in the coal mine conveyor belt.

[0049] It should be noted that in the acquired coal mine RGB images, since the colors of metal minerals and coal mines are similar, it is easy to cause detection errors when using neural networks to segment and identify metal minerals. Therefore, according to the probability of the existence of metal minerals in the connected domain, the RGB three-channel color values ​​of the pixels in the connected domain are adjusted to improve the color saturation of the metal minerals, thereby improving the accuracy of the neural network in identifying metal minerals.

[0050] Specifically, for the first pixels, get the The pixel point corresponds to the pixel point in the coal mine grayscale image and is recorded as The first pixel of the pixels The connected domain where the first pixel of the pixels is located is recorded as the first connected domain, and the probability of the existence of metal minerals in the first connected domain is taken as the The probability that a metal mineral exists in the connected domain to which the pixel belongs; The color channel with the largest color value of the pixel is recorded as The first color channel of the pixel point, then the first The calculation method of the color value of the first color channel of a pixel after enhancement is: In the formula, Indicates the first The color value of the first color channel of each pixel after enhancement; Indicates the first The color value of the first color channel of a pixel; Indicates the first The probability that a metal mineral exists in the connected domain to which the pixel belongs.

[0051] According to the calculation method of the enhanced color value of the first color channel of each pixel in the coal mine RGB image, the color value of the first color channel of each pixel in the coal mine RGB image is updated to obtain the enhanced coal mine RGB image.

[0052] Furthermore, the specific method for identifying metal minerals through semantic segmentation U-net neural network is as follows: obtain a large number of previously collected conveyor belt RGB images containing metal minerals, perform the above-mentioned enhancement operation on the conveyor belt RGB images, use the enhanced RGB images as data sets, manually annotate the category information in the images, wherein the background pixel category is annotated as 0 and the metal mineral category is 1; and use the cross entropy loss function to supervise the training. After the neural network training is completed, the enhanced coal mine RGB image is sent to the neural network, and the corresponding semantic segmentation image is obtained by network inference, and then the metal mineral target is obtained through the pixel category label, and after the location of the metal mineral is identified, the morphological position of the metal mineral is visualized on the corresponding display, thereby identifying the metal mineral foreign matter in the coal mine conveyor belt.

[0053] At this point, this embodiment is completed.

[0054] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for detecting foreign matter in a coal mine belt conveyor. It is characterized in that The method comprises the following steps: Obtain coal mine RGB images and coal mine grayscale images; Obtain several connected domains of the coal mine grayscale image; obtain the color deviation of each pixel point in each connected domain of the coal mine grayscale image according to the color value difference of the three color channels of the pixel point of the coal mine RGB image corresponding to each pixel point in each connected domain of the coal mine grayscale image; obtain the local disorder degree within the neighborhood range of each pixel point in each connected domain according to the relative position and color deviation difference of the pixel points in each connected domain; According to the local disorder degree in the neighborhood of each pixel point in each connected domain, the theoretical centroid position of the disorder degree in each connected domain is obtained; according to the position difference between the pixel point in each connected domain and the theoretical centroid position of the disorder degree in each connected domain, the probability of the existence of metal minerals in each connected domain is obtained; According to the probability of the existence of metal minerals in each connected domain, the enhanced color value of the first color channel of each pixel in the coal mine RGB image is obtained; according to the enhanced color value of the first color channel of each pixel, the enhanced coal mine RGB image is obtained; according to the enhanced coal mine RGB image, the metal foreign matter in the coal mine conveyor belt is identified.

2. According to the method for detecting foreign matter in a coal mine belt conveyor according to claim 1, It is characterized in that The specific method of obtaining the coal mine RGB image and the coal mine grayscale image includes: Acquire the grayscale image of the coal mine conveyor belt; use the Otsu threshold algorithm to perform threshold segmentation on the coal mine conveyor belt grayscale image to obtain the coal mine conveyor belt binary image; multiply the coal mine conveyor belt binary image with the coal mine conveyor belt RGB image and the coal mine conveyor belt grayscale image to obtain the coal mine RGB image and the coal mine grayscale image.

3. According to the method for detecting foreign matter in a coal mine belt conveyor as claimed in claim 1, It is characterized in that The method of obtaining the color deviation of each pixel point in each connected domain of the coal mine grayscale image according to the color value difference of the three color channels of the pixel point of the coal mine RGB image corresponding to each pixel point in each connected domain of the coal mine grayscale image includes the following specific methods: Get the color value of each color channel of each pixel in each connected domain of the coal mine grayscale image; then The first The calculation method of the color deviation of a pixel is: In the formula, Represents the grayscale image of the coal mine The first Color deviation of each pixel; Represents the grayscale image of the coal mine The first The color value of the R color channel of each pixel; Represents the grayscale image of the coal mine The first The color value of the G color channel of each pixel; Represents the grayscale image of the coal mine The first The color value of the B color channel of each pixel; Indicates taking the absolute value.

4. According to claim 3, a method for detecting foreign matter in a coal mine belt conveyor, It is characterized in that The specific method of obtaining the color value of each color channel of each pixel point in each connected domain of the coal mine grayscale image includes: For the coal mine grayscale image The first pixels, get the The pixel point corresponds to the pixel point in the coal mine RGB image and is recorded as The target pixel of pixels is The color values ​​of the R, G, and B channels of the target pixel are taken as the The color value of each color channel of each pixel.

5. According to the method for detecting foreign matter in a coal mine belt conveyor as claimed in claim 1, It is characterized in that The specific method of obtaining the local disorder degree within the neighborhood of each pixel point in each connected domain according to the difference in relative position and color deviation of the pixel points in each connected domain is as follows: Get the neighborhood range of each pixel point in each connected domain of the coal mine grayscale image; then The first The calculation expression of the local disorder degree within the neighborhood of a pixel is: In the formula, Represents the grayscale image of the coal mine The first The degree of local disorder within the neighborhood of a pixel; Represents the grayscale image of the coal mine The first The maximum color deviation of all pixels in the neighborhood of a pixel; Represents the grayscale image of the coal mine The first The minimum color deviation of all pixels in the neighborhood of a pixel; Represents the grayscale image of the coal mine The first In the neighborhood of pixels Pixels and The Euclidean distance between pixels; Represents the grayscale image of the coal mine The first In the neighborhood of pixels Color deviation of each pixel; Represents the grayscale image of the coal mine The first Color deviation of each pixel; Indicates taking the absolute value; represents an exponential function with a natural constant as base; are preset parameters.

6. A method for detecting foreign matter in a coal mine belt conveyor according to claim 5, It is characterized in that The specific method of obtaining the neighborhood range of each pixel point in each connected domain of the coal mine grayscale image includes: For the coal mine grayscale image The first pixels, with the pixels as the window center, and the window size is and record the window as The neighborhood range of pixels.

7. A method for detecting foreign matter in a coal mine belt conveyor according to claim 1, It is characterized in that The specific formula for obtaining the theoretical centroid position of the degree of chaos in each connected domain according to the degree of local chaos in the neighborhood of each pixel point in each connected domain is: In the formula, Represents the grayscale image of the coal mine The horizontal coordinate of the theoretical centroid position of the degree of chaos in a connected domain; Represents the grayscale image of the coal mine The ordinate of the theoretical centroid position of the degree of chaos in a connected domain; Represents the grayscale image of the coal mine The total number of all pixels in a connected domain; Represents the grayscale image of the coal mine The first The horizontal coordinate of the pixel point; Represents the grayscale image of the coal mine The first The vertical coordinate of the pixel; Represents the grayscale image of the coal mine The first The degree of local disorder within the neighborhood of a pixel; Indicates rounding up.

8. A method for detecting foreign matter in a coal mine belt conveyor according to claim 1, It is characterized in that The specific formula for obtaining the probability of the existence of metal minerals in each connected domain based on the position difference between the pixel point in each connected domain and the theoretical centroid position of the disorder degree in each connected domain is: In the formula, Represents the grayscale image of the coal mine The probability of the existence of metal minerals in a connected domain; Represents the grayscale image of the coal mine The total number of all pixels in a connected domain; Represents the grayscale image of the coal mine The first The degree of local disorder within the neighborhood of a pixel; Represents the grayscale image of the coal mine The first pixels and The Euclidean distance between the theoretical centroid positions of the degree of disorder in a connected domain; Represents an exponential function with a natural constant as base.

9. A method for detecting foreign matter in a coal mine belt conveyor according to claim 1, It is characterized in that The method of obtaining the enhanced color value of the first color channel of each pixel in the coal mine RGB image according to the probability of the existence of metal minerals in each connected domain includes the following specific methods: Get the The probability that a metal mineral exists in the connected domain to which the pixel belongs; The color channel with the largest color value of the pixel is recorded as The first color channel of the pixel point, then the first The calculation method of the color value of the first color channel of a pixel after enhancement is: In the formula, Indicates the first The color value of the first color channel of each pixel after enhancement; Indicates the first The color value of the first color channel of a pixel; Indicates the first The probability that a metal mineral exists in the connected domain to which the pixel belongs.

10. A method for detecting foreign matter in a coal mine belt conveyor according to claim 9, It is characterized in that The acquisition The probability of the existence of metal minerals in the connected domain to which the pixel belongs includes the following specific methods: Get the The pixel point corresponds to the pixel point in the coal mine grayscale image and is recorded as The first pixel of the pixels The connected domain where the first pixel of the pixels is located is recorded as the first connected domain, and the probability of the existence of metal minerals in the first connected domain is taken as the The probability that a metal mineral exists in the connected domain to which the pixel belongs.

Citation Information

Patent Citations

  • Sheet metal part quality detection method

    CN116777907A

  • Mine data intelligent acquisition method and system

    CN117079141A

  • Wallboard production quality detection method based on image processing

    CN117853493A

Cited By

  • Chemical material screening method

    CN119417855A

  • A method for screening chemical materials

    CN119417855B

  • Coal conveying belt foreign matter detection method and system based on visible light image

    CN121999303A