A method, device, equipment and system for monitoring the sedimentation state of coal sludge water
Through sliding window algorithm and standard deviation screening of grayscale value, the dividing line in the coal sludge water settlement image is determined, and the thickness of the clarification layer is accurately obtained, which solves the problem of inaccurate judgment of coal sludge water settlement status in the existing technology, and improves the accuracy of judgment .
Patent Information
- Application Number
- CN202411002600.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2044-07-25
AI Technical Summary
In the prior art, the judgment of coal sludge water settlement status relies on manual observation, resulting in inaccurate judgment.
Use sliding window algorithm to obtain the standard deviation of the grayscale value of the coal sludge water settlement image, filter out the window area that may contain the boundary line between the clarification layer and the transition layer, and determine the boundary line based on the grayscale value of the pixel points, so as to accurately obtain the thickness of the clarification layer. , to judge the settlement status of coal sludge water samples.
It improves the accuracy of judging the settlement state of coal sludge and solves the problem of inaccurate judgment caused by manual observation.
Smart Images

Figure CN118518552B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of coal slime water treatment, and in particular to a method, device, equipment and system for monitoring the sedimentation status of coal slime water. Background Art
[0002] In a coal preparation plant, after the coal slime water treatment system is put into normal production and operation, or when the coal quality changes significantly and causes the overflow water of the concentration tank to become turbid, the staff will go to the concentration workshop to conduct a sedimentation test to determine the current sedimentation state of the coal slime water. After adding a concentration agent to the extracted coal slime water sample, the coal slime particles will gather together to form flocs and sedimentation will occur. The upper part of the coal slime water will gradually become clear, forming a clear layer, and the lower part of the coal slime water will gradually become turbid, forming a coal slime layer, and the middle part is a transition layer.
[0003] When conducting the sedimentation test, the staff used a measuring cylinder to hold the coal slime water sample without adding chemicals, and then used a beaker to collect the concentrated liquid medicine from the medicine storage box of the dosing machine, and fed the concentrated liquid medicine into the measuring cylinder through a syringe, and then turned the measuring cylinder upside down to fully mix the coal slime water and the medicine. Then, they used a flashlight to illuminate the measuring cylinder from the top and judged the sedimentation state of the coal slime water by observing the sedimentation phenomenon with the naked eye. The judgment of the sedimentation state of the coal slime water depends entirely on manual experience, and there is no specific data output during the sedimentation process, resulting in inaccurate judgment of the sedimentation state of the coal slime water. Summary of the invention
[0004] The present application provides a method, device, equipment and system for monitoring the settling state of coal sludge water, which are used to solve the problem of inaccurate judgment of the settling state of coal sludge water caused by manual observation alone in the prior art.
[0005] In the first aspect, the present application provides a method for monitoring the sedimentation status of coal slime water, comprising: obtaining a sedimentation image of a coal slime water sample at preset time intervals, and using a sliding window algorithm to obtain the standard deviation of the grayscale value of each window area in the sedimentation image; determining multiple first areas to be screened in the sedimentation image based on the standard deviation of the grayscale value of each window area; wherein the first area to be screened represents a window area including a boundary between a clear layer and a transition layer in the sedimentation image; determining a first dividing line in the sedimentation image based on the grayscale value of each pixel point in each of the first areas to be screened; wherein the first dividing line is the boundary between a clear layer and a transition layer in the sedimentation image; obtaining the thickness of the clear layer in the sedimentation image based on the first dividing line, and determining the sedimentation status of the coal slime water sample based on the thickness of the clear layer.
[0006] In a specific embodiment, a sliding window algorithm is used to obtain the standard deviation of the grayscale value of each window area in the sedimentation image, including: starting from the starting position of the clear layer in the sedimentation image, moving the sliding window according to a preset sliding step size to obtain multiple window areas in the sedimentation image; for each of the window areas, obtaining the grayscale value of each pixel point in the window area; according to the grayscale value of each pixel point, determining the standard deviation of the grayscale value of the window area to obtain the standard deviation of the grayscale value of each window area in the sedimentation image.
[0007] In a specific embodiment, multiple first areas to be screened in the sedimentation image are determined based on the grayscale value standard deviation of each of the window areas, including: for each of the window areas, comparing the grayscale value standard deviation of the window area with a preset standard deviation threshold; when it is determined that the grayscale value standard deviation of the window area is greater than the standard deviation threshold, determining that the window area is the first area to be screened in the sedimentation image.
[0008] In a specific embodiment, the first dividing line in the sedimentation image is determined based on the grayscale value of each pixel in each of the first areas to be screened, including: for each pixel in each of the first areas to be screened, obtaining the difference between the grayscale value of the pixel and the grayscale value of the pixel adjacent to the pixel in the sedimentation direction; obtaining the maximum value of multiple differences, and determining the first dividing line in the sedimentation image based on the pixel corresponding to the maximum value.
[0009] In a specific embodiment, the thickness of the clarified layer in the sedimentation image is obtained according to the first dividing line, and the sedimentation state of the coal slime water sample is determined according to the thickness of the clarified layer, including: determining the thickness of the clarified layer in the sedimentation image according to the starting position of the clarified layer in the sedimentation image and the first dividing line; determining the thickness of the clarified layer in the coal slime water sample according to a preset proportional coefficient and the thickness of the clarified layer in the sedimentation image; when it is determined that the thickness of the clarified layer in the coal slime water sample is greater than or equal to a preset first thickness threshold, determining that the sedimentation state of the coal slime water sample is a sedimentation end state.
[0010] In a specific embodiment, after determining the first dividing line in the sedimentation image, the method further includes: determining at least one second dividing line from the multiple first areas to be screened according to the first dividing line and the sedimentation direction; wherein the second area to be screened represents a window area including a dividing line between a transition layer and a coal slime layer in the sedimentation image; determining the second dividing line in the sedimentation image according to the grayscale value of each pixel point in each of the second areas to be screened; wherein the second dividing line is the dividing line between the transition layer and the coal slime layer in the sedimentation image; obtaining the thickness of the transition layer in the sedimentation image according to the first dividing line and the second dividing line; determining the sedimentation state of the coal slime water sample according to the thickness of the clarified layer includes: determining the sedimentation state of the coal slime water sample according to the thickness of the clarified layer and the thickness of the transition layer.
[0011] In a specific embodiment, the sedimentation state of the coal slime water sample is determined according to the thickness of the clarified layer and the thickness of the transition layer, including: determining the thickness of the clarified layer and the thickness of the transition layer in the coal slime water sample respectively according to a preset proportional coefficient; when it is determined that the thickness of the clarified layer in the coal slime water sample is greater than or equal to a preset first thickness threshold, and the thickness of the transition layer in the coal slime water sample is less than or equal to a preset second thickness threshold, determining that the sedimentation state of the coal slime water sample is a sedimentation end state.
[0012] In the second aspect, the present application provides a coal slime water sedimentation state monitoring device, including: an acquisition module, used to acquire the sedimentation image of the coal slime water sample at preset time intervals, and use a sliding window algorithm to acquire the standard deviation of the grayscale value of each window area in the sedimentation image; a processing module, used to determine multiple first areas to be screened in the sedimentation image according to the standard deviation of the grayscale value of each window area; wherein the first area to be screened represents the window area including the boundary line between the clear layer and the transition layer in the sedimentation image; the processing module is also used to determine the first dividing line in the sedimentation image according to the grayscale value of each pixel point in each of the first areas to be screened; wherein the first dividing line is the boundary line between the clear layer and the transition layer in the sedimentation image; the processing module is also used to acquire the thickness of the clear layer in the sedimentation image according to the first dividing line, and determine the sedimentation state of the coal slime water sample according to the thickness of the clear layer.
[0013] In a third aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the coal slurry water sedimentation status monitoring method as described in the first aspect.
[0014] In a fourth aspect, the present application provides a coal sludge water sedimentation status monitoring system, comprising: a coal sludge water sampling device, a reagent adding device, a sedimentation test device, and a coal sludge water sedimentation status monitoring device as described in the second aspect or the third aspect.
[0015] The present application provides a method, device, equipment and system for monitoring the sedimentation status of coal slime water, the method comprising: obtaining a sedimentation image of a coal slime water sample at preset time intervals, and using a sliding window algorithm to obtain the standard deviation of the grayscale value of each window area in the sedimentation image; determining multiple first areas to be screened in the sedimentation image according to the standard deviation of the grayscale value of each window area; wherein the first area to be screened represents a window area including a boundary line between a clear layer and a transition layer in the sedimentation image; determining a first dividing line in the sedimentation image according to the grayscale value of each pixel point in each first area to be screened; wherein the first dividing line is the boundary line between the clear layer and the transition layer in the sedimentation image; according to the first dividing line, obtaining the thickness of the clear layer in the sedimentation image, and determining the sedimentation status of the coal slime water sample according to the thickness of the clear layer. Compared with the prior art that relies solely on manual observation, resulting in inaccurate judgment of the sedimentation state of coal slime water, the coal slime water sedimentation state monitoring method of the present application, through preliminary screening of the grayscale value standard deviation of each window area in the sedimentation image, obtains the window area that may contain the boundary between the clear layer and the transition layer, and determines the boundary between the clear layer and the transition layer based on the grayscale value of the pixel points in the screened window area, and then accurately obtains the thickness of the clear layer to accurately judge the sedimentation state of the coal slime water sample, effectively improving the accuracy of the judgment of the sedimentation state of the coal slime water in the sedimentation test, and solving the problem of inaccurate judgment of the sedimentation state of the coal slime water caused by manual observation in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0017] Figure 1 A schematic diagram of the structure of a coal slurry water sedimentation status monitoring system provided for this application;
[0018] Figure 2 A schematic diagram of a flow chart of a first embodiment of a method for monitoring the sedimentation state of coal slurry provided in the present application;
[0019] Figure 3 A schematic diagram of a flow chart of a second embodiment of a method for monitoring the sedimentation state of coal slurry provided in the present application;
[0020] Figure 4 A schematic diagram of a flow chart of a third embodiment of a method for monitoring the sedimentation state of coal slurry provided in the present application;
[0021] Figure 5 A schematic diagram of a flow chart of a fourth embodiment of a method for monitoring the sedimentation state of coal slurry provided in the present application;
[0022] Figure 6 A schematic diagram of the structure of an embodiment of a coal slurry water settling state monitoring device provided in the present application;
[0023] Figure 7 A schematic diagram of the structure of an electronic device embodiment provided in the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments made by ordinary technicians in this field under the enlightenment of the embodiments belong to the scope of protection of the present application.
[0025] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] In a coal preparation plant, after the coal slime water treatment system is put into normal production and operation, or when the coal quality changes significantly and causes the overflow water of the concentration tank to become turbid, the staff will go to the concentration workshop to conduct a sedimentation test to determine the current sedimentation state of the coal slime water. After adding a concentration agent to the extracted coal slime water sample, the coal slime particles will gather together to form flocs and sedimentation will occur. The upper part of the coal slime water will gradually become clear, forming a clear layer, and the lower part of the coal slime water will gradually become turbid, forming a coal slime layer, and the middle part is a transition layer.
[0027] When conducting the sedimentation test, the staff used a measuring cylinder to hold the coal slime water sample without adding chemicals, and then used a beaker to collect the concentrated liquid medicine from the medicine storage box of the dosing machine, and fed the concentrated liquid medicine into the measuring cylinder through a syringe, and then turned the measuring cylinder upside down to fully mix the coal slime water and the medicine. Then, they used a flashlight to illuminate the measuring cylinder from the top and judged the sedimentation state of the coal slime water by observing the sedimentation phenomenon with the naked eye. The judgment of the sedimentation state of the coal slime water depends entirely on manual experience, and there is no specific data output during the sedimentation process, resulting in inaccurate judgment of the sedimentation state of the coal slime water.
[0028] Based on the above technical problems, the technical conception process of this application is as follows: How to provide a method for monitoring the sedimentation status of coal sludge water to solve the problem of inaccurate judgment of the sedimentation status of coal sludge water caused by manual observation alone in the prior art.
[0029] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0030] Figure 1 The schematic diagram of the structure of a coal slurry water sedimentation status monitoring system provided in this application. Figure 1 As shown, the coal slime water settling state monitoring system includes a coal slime water sampling device 11 , a reagent adding device 12 , a settling test device 13 and a coal slime water settling state monitoring device 14 .
[0031] The coal slime water sampling device 11 may include a coal slime water sample delivery pipeline and a pipeline control valve, which is used to input the coal slime water into the sedimentation test device 13. The reagent adding device 12 is used to input the concentrated reagent into the sedimentation test device 13 to perform the coal slime water sedimentation test.
[0032] The sedimentation test device 13 is used to perform sedimentation tests and can be made of fully transparent fiberglass to ensure transparency, so that the coal slurry water sedimentation status monitoring device can collect the sedimentation image of the coal slurry water in real time.
[0033] The coal slime water sedimentation state monitoring device 14 may include an acquisition module and a processing module. The acquisition module is used to acquire the sedimentation image of the coal slime water sample at preset intervals, and use a sliding window algorithm to acquire the gray value standard deviation of each window area in the sedimentation image; the processing module is used to determine multiple first areas to be screened in the sedimentation image according to the gray value standard deviation of each window area; the first area to be screened represents the window area including the boundary line between the clear layer and the transition layer in the sedimentation image; the processing module is also used to determine the first boundary line in the sedimentation image according to the gray value of each pixel point in each first area to be screened; wherein the first boundary line is the boundary line between the clear layer and the transition layer in the sedimentation image; the processing module is also used to acquire the thickness of the clear layer in the sedimentation image according to the first boundary line, and determine the sedimentation state of the coal slime water sample according to the thickness of the clear layer.
[0034] The coal slime water settling state monitoring device 14 may also include an image acquisition module, which may include an industrial camera and a fill light. The industrial camera is used to acquire images of the coal slime water settling process, and transmit the captured video images to the processing module through the acquisition module for further analysis and processing. The industrial camera can be 700mm away from the settling tube to shoot the full height of the settling test device to ensure a comprehensive record of the entire settling process. The fill light is used to illuminate the coal slime water settling process to facilitate the industrial camera to acquire images.
[0035] The coal slime water settling state monitoring device 14 may also include a data storage module for storing video image information. The coal slime water settling state monitoring device 14 may also include a signal output module for receiving the calculation results of the processing module, such as the thickness of the clarified layer, and outputting result parameters, such as the settling state parameters of the coal slime water sample.
[0036] Figure 2 This is a flow chart of a method for monitoring the sedimentation state of coal slurry provided in this application. Figure 2 The coal slime water settling state monitoring method specifically comprises the following steps:
[0037] Step S201: obtaining a sedimentation image of a coal slime water sample at preset time intervals, and using a sliding window algorithm to obtain a standard deviation of the grayscale value of each window area in the sedimentation image.
[0038] In this embodiment, the sedimentation image of the coal slime water sample can be obtained at preset time intervals. For example, the sedimentation image can be a grayscale image, and the preset time can be 1 second.
[0039] The sliding window algorithm can be used to obtain the standard deviation of the grayscale value of each window area in the sedimentation image. Specifically, starting from the starting position of the clear layer in the sedimentation image, the sliding window can be moved according to a preset sliding step to obtain multiple window areas in the sedimentation image; for each window area, the grayscale value of each pixel in the window area is obtained; according to the grayscale value of each pixel, the standard deviation of the grayscale value of the window area is determined to obtain the standard deviation of the grayscale value of each window area in the sedimentation image.
[0040] Step S202: determining a plurality of first areas to be screened in the sedimentation image according to the gray value standard deviation of each window area.
[0041] The first area to be screened represents a window area including a boundary line between a clear layer and a transition layer in the sedimentation image.
[0042] In this embodiment, the first area to be screened in the sedimentation image can be determined according to the standard deviation of the grayscale value of each window area. Specifically, a standard deviation threshold can be set to screen out a window area that may contain the boundary line between the clear layer and the transition layer from multiple window areas. Since the grayscale values of pixels in the window area containing the boundary line are relatively different, the standard deviation of the grayscale value of each window area can be compared with a preset standard deviation threshold; when it is determined that the standard deviation of the grayscale value of the window area is greater than the standard deviation threshold, the window area is determined to be the first area to be screened in the sedimentation image.
[0043] Step S203: determining a first boundary line in the sedimentation image according to the grayscale value of each pixel in each first area to be screened.
[0044] The first dividing line is a dividing line between a clear layer and a transition layer in the sedimentation image.
[0045] In this embodiment, the boundary between the clear layer and the transition layer in the sedimentation image can be determined according to the gray value of each pixel in each first area to be screened. Specifically, since the gray value difference between the pixels is the largest at the boundary between the clear layer and the transition layer, the pixel with the largest gray value difference with the adjacent pixel can be determined by comparing the gray value of each pixel in each first area to be screened with the adjacent pixel, and the boundary between the clear layer and the transition layer in the sedimentation image can be obtained by connecting these pixels.
[0046] Step S204: acquiring the thickness of the clarified layer in the sedimentation image according to the first dividing line, and determining the sedimentation state of the coal slime water sample according to the thickness of the clarified layer.
[0047] In this embodiment, the thickness of the clear layer in the sedimentation image can be obtained according to the first dividing line. Exemplarily, the distance between the starting position of the clear layer in the sedimentation image and the first dividing line can be calculated to obtain the thickness of the clear layer in the sedimentation image. Afterwards, the thickness of the clear layer in the coal slime water sample can be determined according to the proportional coefficient between the size of the sedimentation test device in the sedimentation image and the actual size of the sedimentation test device. When it is determined that the thickness of the clear layer in the coal slime water sample is greater than or equal to the preset first thickness threshold, the sedimentation state of the coal slime water sample is determined to be the sedimentation end state.
[0048] In this embodiment, a sedimentation image of a coal slime water sample is obtained at preset time intervals, and a sliding window algorithm is used to obtain the standard deviation of the grayscale value of each window area in the sedimentation image; based on the standard deviation of the grayscale value of each window area, a plurality of first areas to be screened in the sedimentation image are determined; wherein the first area to be screened represents a window area including a boundary line between a clear layer and a transition layer in the sedimentation image; based on the grayscale value of each pixel point in each first area to be screened, a first dividing line in the sedimentation image is determined; wherein the first dividing line is the boundary line between a clear layer and a transition layer in the sedimentation image; based on the first dividing line, the thickness of the clear layer in the sedimentation image is obtained, and based on the thickness of the clear layer, the sedimentation state of the coal slime water sample is determined. Compared with the prior art that relies solely on manual observation, resulting in inaccurate judgment of the sedimentation state of coal slime water, the coal slime water sedimentation state monitoring method of the present application, through preliminary screening of the grayscale value standard deviation of each window area in the sedimentation image, obtains the window area that may contain the boundary between the clear layer and the transition layer, and determines the boundary between the clear layer and the transition layer based on the grayscale value of the pixel points in the screened window area, and then accurately obtains the thickness of the clear layer to accurately judge the sedimentation state of the coal slime water sample, effectively improving the accuracy of the judgment of the sedimentation state of the coal slime water in the sedimentation test, and solving the problem of inaccurate judgment of the sedimentation state of the coal slime water caused by manual observation in the prior art.
[0049] Figure 3 This is a flow chart of a second embodiment of a method for monitoring the sedimentation state of coal slurry provided in this application. Figure 2 Based on the embodiment shown, see Figure 3 , the above steps S201 to S202 specifically include the following steps:
[0050] Step S301: starting from the starting position of the clear layer in the sedimentation image, the sliding window is moved according to a preset sliding step length to obtain multiple window areas in the sedimentation image.
[0051] In this embodiment, the standard deviation of the gray value of each window area in the sedimentation image can be obtained by using a sliding window algorithm. Specifically, the sliding window can be moved starting from the starting position of the clear layer in the sedimentation image according to a preset sliding step. Exemplarily, the sliding window can be moved along the sedimentation direction starting from the starting position of the clear layer in the sedimentation image. The sedimentation direction is from the clear layer to the transition layer and then to the coal slime layer, that is, starting from the starting position of the clear layer, from top to bottom.
[0052] In a possible implementation, after obtaining the sedimentation image of the coal slime water sample, the sedimentation image can be transposed, that is, the sedimentation image is rotated 90 degrees counterclockwise so that the starting position of the clear layer in the sedimentation image is located at the leftmost side of the sedimentation image, and the sedimentation direction is from left to right.
[0053] In this embodiment, the width of the sliding window may be L, the width interval of the sliding window may be [i, i+L], and the initial width interval may be [0, L]. The length of the sliding window may be the diameter of the sedimentation test device. The sliding window moves according to a preset sliding step length s, starting from the starting position of the clear layer in the sedimentation image, and a window area is obtained each time the sliding window moves until the sliding window moves out of the boundary of the sedimentation image, so that multiple window areas in the sedimentation image can be obtained.
[0054] Step S302: For each window area, obtain the grayscale value of each pixel in the window area.
[0055] Step S303: determining the grayscale value standard deviation of the window area according to the grayscale value of each pixel point, so as to obtain the grayscale value standard deviation of each window area in the sedimentation image.
[0056] In this embodiment, for each window area, the grayscale value of each pixel in the window area can be obtained, and the grayscale value standard deviation of the window area can be determined according to the grayscale value of each pixel.
[0057] Specifically, the grayscale value x of each pixel in the window area can be obtained i , using the following formula:
[0058]
[0059] Get the gray value standard deviation σ of the window area. Where n is the number of pixels in the window area; is the average grayscale value of all pixels in the window area.
[0060] Step S304: for each window area, the grayscale value standard deviation of the window area is compared with a preset standard deviation threshold.
[0061] Step S305: When it is determined that the gray value standard deviation of the window area is greater than the standard deviation threshold, the window area is determined to be the first area to be screened in the sedimentation image.
[0062] In this embodiment, after the grayscale value standard deviation of each window area in the sedimentation image is obtained, the grayscale value standard deviation σ of each window area can be compared with the preset standard deviation threshold σ min Compare. When the standard deviation of the gray value in the determined window area is greater than the standard deviation threshold, that is, σ>σ min , then the window area is determined to be the first area to be screened in the sedimentation image, that is, the window area including the boundary between the clear layer and the transition layer.
[0063] In this embodiment, a sliding window algorithm is used to obtain the standard deviation of the grayscale value of each window area in the sedimentation image, and the first area to be screened in the sedimentation image including the boundary between the clear layer and the transition layer is determined based on the standard deviation of the grayscale value of each window area. This can effectively screen out the window area that may contain the boundary between the clear layer and the transition layer, reduce the amount of calculation for subsequent determination of the boundary, and provide a prerequisite for subsequent accurate determination of the boundary between the clear layer and the transition layer, and then accurately obtain the thickness of the clear layer to accurately judge the sedimentation state of the coal slime water sample.
[0064] Figure 4 This is a flow chart of a third embodiment of a method for monitoring the sedimentation state of coal slurry provided in this application. Figures 2 to 3 Based on the embodiment shown, see Figure 4 , the above steps S203 to S204 specifically include the following steps:
[0065] Step S401: for each pixel in each first to-be-screened area, obtain the difference between the grayscale value of the pixel and the grayscale value of the pixel adjacent to the pixel in the sedimentation direction.
[0066] In this embodiment, for each first area to be screened, the grayscale values of every two adjacent pixels in the first area to be screened in the direction of sedimentation can be compared. Specifically, the difference in grayscale value between each pixel and the pixel adjacent to the pixel in the direction of sedimentation in each first area to be screened can be obtained. Exemplarily, the difference in grayscale value between each pixel and the pixel adjacent to the pixel in the direction of sedimentation can be calculated using a diff function, and the difference can be converted into an absolute value.
[0067] Step S402: obtaining a maximum value among a plurality of difference values, and determining a first boundary line in the sedimentation image according to a pixel point corresponding to the maximum value.
[0068] In this embodiment, the maximum value among the multiple difference values may be obtained, and the first boundary line in the sedimentation image may be determined according to the pixel point corresponding to the maximum value.
[0069] In a possible implementation manner, the maximum value among the multiple difference values may correspond to multiple pixel points, and the multiple pixel points may be connected to obtain the first boundary line in the sedimentation image.
[0070] In a possible implementation, a difference threshold may be preset, and a plurality of pixel points whose differences are greater than the difference threshold may be obtained. The plurality of pixel points may be connected to obtain a first boundary line in the sedimentation image.
[0071] Step S403: determining the thickness of the clear layer in the sedimentation image according to the starting position of the clear layer in the sedimentation image and the first dividing line.
[0072] In this embodiment, the thickness of the clear layer in the sedimentation image can be determined according to the starting position of the clear layer in the sedimentation image and the first dividing line. Specifically, the distance between the starting position of the clear layer in the sedimentation image and the first dividing line can be calculated to obtain the thickness of the clear layer in the sedimentation image.
[0073] Step S404: determining the thickness of the clarified layer in the coal slime water sample according to a preset proportionality coefficient and the thickness of the clarified layer in the sedimentation image.
[0074] In this embodiment, the proportionality coefficient between the size of the sedimentation test device in the sedimentation image and the actual size of the sedimentation test device can be preset, and the thickness of the clarified layer in the coal slime water sample can be determined based on the preset proportionality coefficient and the thickness of the clarified layer in the sedimentation image.
[0075] In a possible implementation, rectangular coordinate systems may be established for the sedimentation image and the sedimentation test device, respectively, and a mapping relationship between the coordinate systems may be established to further calculate the thickness of the clarified layer in the coal slime water sample.
[0076] Specifically, a rectangular coordinate system can be established for the sedimentation image. Taking the transposed sedimentation image as an example, the sedimentation direction is from left to right, and the coordinate origin is set at the lower left corner of the sedimentation image. The unit is pixel and it is expressed in matrix form. The origin coordinate is recorded as , where λ refers to the horizontal coordinate of the pixel coordinate system, and μ refers to the vertical coordinate of the pixel coordinate system.
[0077] You can also establish a rectangular coordinate system for the settlement test device, set the coordinate origin at the upper left corner of the settlement test device, and express it in matrix form. The coordinates of the origin are recorded as , where x refers to the horizontal coordinate of the pixel coordinate system, and y refers to the vertical coordinate of the pixel coordinate system.
[0078] The mapping relationship between the sedimentation test device and the sedimentation image is established as , where R is the proportionality coefficient.
[0079] The coordinates of the pixel point in the sedimentation image corresponding to the maximum value of the multiple difference values obtained in step S402 are recorded in real time, that is, the first boundary coordinates. The first boundary coordinates are recorded as , then the thickness of the clarified layer Δy1 in the coal slime water sample can be expressed by the formula: , calculated.
[0080] Step S405: when it is determined that the thickness of the clarified layer in the coal slime water sample is greater than or equal to a preset first thickness threshold, determining that the sedimentation state of the coal slime water sample is a sedimentation end state.
[0081] In this embodiment, when it is determined that the thickness of the clarified layer in the coal slime water sample is greater than or equal to a preset first thickness threshold, the sedimentation state of the coal slime water sample is determined to be the sedimentation end state.
[0082] In this embodiment, the first dividing line in the sedimentation image is determined according to the gray value of each pixel in each first area to be screened, the thickness of the clear layer in the sedimentation image is obtained according to the first dividing line, and the sedimentation state of the coal slime water sample is determined according to the thickness of the clear layer. In this way, the dividing line between the clear layer and the transition layer can be accurately determined, and then the thickness of the clear layer can be accurately obtained to accurately judge the sedimentation state of the coal slime water sample. This further solves the problem of inaccurate judgment of the sedimentation state of coal slime water caused by manual observation alone in the prior art.
[0083] Figure 5 This is a flow chart of a fourth embodiment of a method for monitoring the sedimentation state of coal slurry provided in this application. Figures 2 to 4 Based on the embodiment shown, see Figure 5 After determining the first dividing line in the sedimentation image, the coal slime water sedimentation state monitoring method further includes the following steps:
[0084] Step S501: determining at least one second area to be screened from a plurality of first areas to be screened according to the first dividing line and the sedimentation direction.
[0085] The second area to be screened represents a window area including a boundary line between a transition layer and a coal slime layer in the sedimentation image.
[0086] In this embodiment, according to the first dividing line and the sedimentation direction, a second area to be screened including a dividing line between the transition layer and the coal slime layer in the sedimentation image can be determined from the plurality of first areas to be screened. For example, when the sedimentation direction in the sedimentation image is from top to bottom, the first area to be screened below the first dividing line can be determined as the second area to be screened.
[0087] Step S502: determining a second boundary line in the sedimentation image according to the grayscale value of each pixel in each second area to be screened.
[0088] The second boundary line is a boundary line between the transition layer and the coal slime layer in the sedimentation image.
[0089] In this embodiment, for each second area to be screened, the grayscale values of every two adjacent pixels in the second area to be screened in the direction of sedimentation can be compared. Specifically, the difference in grayscale value between each pixel and the pixel adjacent to the pixel in the direction of sedimentation in each second area to be screened can be obtained. Exemplarily, the difference in grayscale value between each pixel and the pixel adjacent to the pixel in the direction of sedimentation can be calculated using a diff function, and the difference can be converted into an absolute value.
[0090] The maximum value among the multiple difference values may be obtained, and the second boundary line in the sedimentation image may be determined according to the pixel point corresponding to the maximum value.
[0091] In a possible implementation manner, the maximum value among the multiple difference values may correspond to multiple pixel points, and the multiple pixel points may be connected to obtain the second boundary line in the sedimentation image.
[0092] In a possible implementation, a difference threshold may be preset, and a plurality of pixel points whose differences are greater than the difference threshold are obtained. The plurality of pixel points may be connected to obtain a second boundary line in the sedimentation image.
[0093] Step S503: acquiring the thickness of the transition layer in the sedimentation image according to the first dividing line and the second dividing line.
[0094] In this embodiment, the thickness of the transition layer in the sedimentation image can be obtained according to the first dividing line and the second dividing line. Specifically, the distance between the first dividing line and the second dividing line in the sedimentation image can be calculated to obtain the thickness of the transition layer in the sedimentation image.
[0095] The above step S204 specifically includes the following steps:
[0096] Step S504: determining the sedimentation state of the coal slime water sample according to the thickness of the clarified layer and the thickness of the transition layer.
[0097] In this embodiment, the thickness of the clear layer and the thickness of the transition layer in the coal slime water sample can be determined according to a preset proportionality coefficient, the thickness of the clear layer and the thickness of the transition layer in the sedimentation image, respectively.
[0098] Specifically, the proportionality coefficient between the size of the sedimentation test device in the sedimentation image and the actual size of the sedimentation test device can be preset, and the thickness of the clarified layer and the thickness of the transition layer in the coal slime water sample can be determined according to the preset proportionality coefficient and the thickness of the clarified layer and the thickness of the transition layer in the sedimentation image.
[0099] In a possible implementation, rectangular coordinate systems may be established for the sedimentation image and the sedimentation test device, respectively, and a mapping relationship between the coordinate systems may be established to calculate the thickness of the clarified layer and the thickness of the transition layer in the coal slime water sample.
[0100] Specifically, a rectangular coordinate system can be established for the sedimentation image. Taking the transposed sedimentation image as an example, the sedimentation direction is from left to right, and the coordinate origin is set at the lower left corner of the sedimentation image. The unit is pixel and it is expressed in matrix form. The origin coordinate is recorded as , where λ refers to the horizontal coordinate of the pixel coordinate system, and μ refers to the vertical coordinate of the pixel coordinate system.
[0101] You can also establish a rectangular coordinate system for the settlement test device, set the coordinate origin at the upper left corner of the settlement test device, and express it in matrix form. The coordinates of the origin are recorded as , where x refers to the horizontal coordinate of the pixel coordinate system, and y refers to the vertical coordinate of the pixel coordinate system.
[0102] The mapping relationship between the sedimentation test device and the sedimentation image is established as , where R is the proportionality coefficient.
[0103] The coordinates of the pixel point in the sedimentation image corresponding to the maximum value of the multiple differences in the first to-be-screened area obtained in step S402 are recorded in real time, that is, the first boundary coordinates. The first boundary coordinates are recorded as , then the thickness of the clarified layer Δy1 in the coal slime water sample can be expressed by the formula: , calculated.
[0104] The coordinates of the pixel point in the sedimentation image corresponding to the maximum value of the multiple differences in the second to-be-screened area obtained in step S502 are recorded in real time, that is, the second boundary coordinates. The second boundary coordinates are recorded as , then the thickness of the transition layer Δy2 in the coal slime water sample can be expressed by the formula: , calculated.
[0105] The thickness of the coal slime layer Δy3 can also be further obtained according to the total height Δy of the sedimentation test device, using the formula: , calculated.
[0106] When it is determined that the thickness of the clarified layer in the coal slime water sample is greater than or equal to the preset first thickness threshold, and the thickness of the transition layer in the coal slime water sample is less than or equal to the preset second thickness threshold, the sedimentation state of the coal slime water sample is determined to be the sedimentation end state.
[0107] In this embodiment, after determining the first dividing line in the sedimentation image, a second area to be screened is determined from a plurality of first areas to be screened, so as to determine the dividing line between the transition layer and the coal slime layer in the sedimentation image according to the gray value of the pixel points in the second area to be screened, and obtain the thickness of the transition layer in the sedimentation image. In this way, the sedimentation state of the coal slime water sample can be more accurately determined according to the thickness of the clear layer and the transition layer. This further solves the problem of inaccurate judgment of the sedimentation state of coal slime water caused by manual observation in the prior art.
[0108] Figure 6 A schematic diagram of the structure of an embodiment of a coal slurry water sedimentation state monitoring device provided in the present application. The coal slurry water sedimentation state monitoring device includes an acquisition module 61 and a processing module 62. The acquisition module 61 is used to acquire the sedimentation image of the coal slurry water sample at a preset time interval, and use a sliding window algorithm to acquire the gray value standard deviation of each window area in the sedimentation image; the processing module 62 is used to determine multiple first areas to be screened in the sedimentation image according to the gray value standard deviation of each window area; wherein the first area to be screened represents the window area including the boundary line between the clear layer and the transition layer in the sedimentation image. The processing module 62 is also used to determine the first dividing line in the sedimentation image according to the gray value of each pixel point in each first area to be screened; wherein the first dividing line is the dividing line between the clear layer and the transition layer in the sedimentation image. The processing module 62 is also used to acquire the thickness of the clear layer in the sedimentation image according to the first dividing line, and determine the sedimentation state of the coal slurry water sample according to the thickness of the clear layer.
[0109] The coal slurry water sedimentation status monitoring device provided in the embodiment of the present application can implement the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0110] In a possible implementation, the acquisition module 61 is specifically used to start from the starting position of the clear layer in the sedimentation image, move the sliding window according to a preset sliding step, and acquire multiple window areas in the sedimentation image; for each window area, acquire the grayscale value of each pixel point in the window area; according to the grayscale value of each pixel point, determine the standard deviation of the grayscale value of the window area to acquire the standard deviation of the grayscale value of each window area in the sedimentation image.
[0111] In a possible implementation, the processing module 62 is specifically used to compare the grayscale value standard deviation of each window area with a preset standard deviation threshold; when it is determined that the grayscale value standard deviation of the window area is greater than the standard deviation threshold, the window area is determined to be the first area to be screened in the sedimentation image.
[0112] The coal slurry water sedimentation status monitoring device provided in the embodiment of the present application can implement the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0113] In a possible implementation, the processing module 62 is specifically used to obtain, for each pixel point in each first area to be screened, the difference between the grayscale value of the pixel point and the grayscale value of the pixel point adjacent to the pixel point in the sedimentation direction; obtain the maximum value of multiple differences, and determine the first dividing line in the sedimentation image based on the pixel point corresponding to the maximum value.
[0114] In a possible implementation scheme, the processing module 62 is specifically used to determine the thickness of the clarified layer in the sedimentation image based on the starting position of the clarified layer in the sedimentation image and the first dividing line; determine the thickness of the clarified layer in the coal slime water sample based on a preset proportional coefficient and the thickness of the clarified layer in the sedimentation image; and when it is determined that the thickness of the clarified layer in the coal slime water sample is greater than or equal to a preset first thickness threshold, determine that the sedimentation state of the coal slime water sample is a sedimentation end state.
[0115] The coal slurry water sedimentation status monitoring device provided in the embodiment of the present application can implement the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0116] In a possible implementation, the processing module 62 is also used to determine at least one second area to be screened from multiple first areas to be screened according to the first dividing line and the sedimentation direction; wherein the second area to be screened represents a window area including a dividing line between a transition layer and a coal slime layer in the sedimentation image; according to the gray value of each pixel point in each second area to be screened, a second dividing line in the sedimentation image is determined; wherein the second dividing line is a dividing line between a transition layer and a coal slime layer in the sedimentation image; according to the first dividing line and the second dividing line, the thickness of the transition layer in the sedimentation image is obtained. The processing module 62 is specifically used to determine the sedimentation state of the coal slime water sample according to the thickness of the clear layer and the thickness of the transition layer.
[0117] In a possible implementation scheme, the processing module 62 is specifically used to determine the thickness of the clear layer and the thickness of the transition layer in the coal slime water sample according to a preset proportional coefficient, the thickness of the clear layer and the thickness of the transition layer in the sedimentation image, respectively; when it is determined that the thickness of the clear layer in the coal slime water sample is greater than or equal to a preset first thickness threshold, and the thickness of the transition layer in the coal slime water sample is less than or equal to a preset second thickness threshold, the sedimentation state of the coal slime water sample is determined to be a sedimentation end state.
[0118] The coal slurry water sedimentation status monitoring device provided in the embodiment of the present application can implement the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0119] Figure 7 This is a schematic diagram of the structure of an electronic device embodiment provided by the present application. Figure 7 As shown, the electronic device 70 includes: a processor 71, a memory 72 communicatively connected to the processor 71, and a communication interface 73; wherein the memory 72 stores computer-executable instructions; the processor 71 executes the computer-executable instructions stored in the memory 72 to implement the technical solution in any of the aforementioned method embodiments.
[0120] Optionally, the memory 72 can be independent or integrated with the processor 71.
[0121] Optionally, when the memory 72 is a device independent of the processor 71, the electronic device 70 may further include: a bus 74 for connecting the above devices.
[0122] The electronic device is used to execute the technical solution in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.
[0123] An embodiment of the present application also provides a coal slurry water sedimentation status monitoring system, including a coal slurry water sampling device, a reagent adding device, a sedimentation test device, and a coal slurry water sedimentation status monitoring device as provided in any of the aforementioned embodiments.
[0124] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0125] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for monitoring the sedimentation state of coal slurry water, It is characterized in that include: At preset intervals, a sedimentation image of the coal slime water sample is obtained, and a sliding window algorithm is used to obtain a standard deviation of the grayscale value of each window area in the sedimentation image; Determine a plurality of first areas to be screened in the sedimentation image according to the standard deviation of the gray value of each window area; wherein the first area to be screened represents a window area including a boundary line between a clear layer and a transition layer in the sedimentation image; For each pixel point in each of the first to-be-screened areas, obtaining a difference between a grayscale value of the pixel point and a grayscale value of a pixel point adjacent to the pixel point in a sedimentation direction; Determine a first dividing line in the sedimentation image according to the difference; wherein the first dividing line is a dividing line between a clear layer and a transition layer in the sedimentation image; The thickness of the clarified layer in the sedimentation image is acquired according to the first dividing line, and the sedimentation state of the coal slime water sample is determined according to the thickness of the clarified layer.
2. The method according to claim 1, It is characterized in that Using a sliding window algorithm, the standard deviation of the grayscale value of each window area in the sedimentation image is obtained, including: Starting from the starting position of the clear layer in the sedimentation image, moving the sliding window according to a preset sliding step length to obtain multiple window areas in the sedimentation image; For each of the window areas, obtaining the grayscale value of each pixel in the window area; According to the grayscale value of each pixel point, the standard deviation of the grayscale value of the window area is determined to obtain the standard deviation of the grayscale value of each window area in the sedimentation image.
3. The method according to claim 1, It is characterized in that Determining a plurality of first areas to be screened in the sedimentation image according to the grayscale value standard deviation of each window area includes: For each of the window areas, comparing the grayscale value standard deviation of the window area with a preset standard deviation threshold; When it is determined that the standard deviation of the grayscale value of the window area is greater than the standard deviation threshold, the window area is determined to be the first area to be screened in the sedimentation image.
4. The method according to any one of claims 1 to 3, It is characterized in that Determining a first boundary line in the sedimentation image according to the difference includes: A maximum value among the plurality of the difference values is obtained, and a first dividing line in the sedimentation image is determined according to a pixel point corresponding to the maximum value.
5. The method according to any one of claims 1 to 3, It is characterized in that According to the first dividing line, the thickness of the clarified layer in the sedimentation image is obtained, and according to the thickness of the clarified layer, the sedimentation state of the coal slime water sample is determined, including: determining the thickness of the clear layer in the sedimentation image according to the starting position of the clear layer in the sedimentation image and the first dividing line; Determining the thickness of the clarified layer in the coal slime water sample according to a preset proportionality coefficient and the thickness of the clarified layer in the sedimentation image; When it is determined that the thickness of the clarified layer in the coal slime water sample is greater than or equal to a preset first thickness threshold, it is determined that the settling state of the coal slime water sample is a settling end state.
6. The method according to any one of claims 1 to 3, It is characterized in that After determining the first boundary line in the sedimentation image, the method further includes: According to the first boundary line and the sedimentation direction, at least one second area to be screened is determined from the plurality of first areas to be screened; wherein the second area to be screened represents a window area including a boundary line between a transition layer and a coal slime layer in the sedimentation image; Determine a second boundary line in the sedimentation image according to the gray value of each pixel point in each of the second to-be-screened areas; wherein the second boundary line is a boundary line between a transition layer and a slime layer in the sedimentation image; Acquire the thickness of the transition layer in the sedimentation image according to the first dividing line and the second dividing line; Determining the sedimentation state of the coal slime water sample according to the thickness of the clarified layer includes: The sedimentation state of the coal slime water sample is determined according to the thickness of the clarified layer and the thickness of the transition layer.
7. The method according to claim 6, It is characterized in that Determining the sedimentation state of the coal slime water sample according to the thickness of the clarified layer and the thickness of the transition layer includes: Determine the thickness of the clear layer and the thickness of the transition layer in the coal slime water sample according to a preset proportionality coefficient, the thickness of the clear layer and the thickness of the transition layer in the sedimentation image, respectively; When it is determined that the thickness of the clarified layer in the coal slime water sample is greater than or equal to a preset first thickness threshold, and the thickness of the transition layer in the coal slime water sample is less than or equal to a preset second thickness threshold, the sedimentation state of the coal slime water sample is determined to be a sedimentation end state.
8. A device for monitoring the sedimentation status of coal slurry water, It is characterized in that include: An acquisition module, used to acquire a sedimentation image of the coal slime water sample at preset intervals, and to acquire a standard deviation of the grayscale value of each window area in the sedimentation image by using a sliding window algorithm; A processing module, used for determining a plurality of first areas to be screened in the sedimentation image according to a standard deviation of the gray value of each window area; wherein the first area to be screened represents a window area including a boundary line between a clear layer and a transition layer in the sedimentation image; The processing module is further used to obtain, for each pixel point in each first to-be-screened area: a difference between the grayscale value of the pixel point and the grayscale value of the pixel point adjacent to the pixel point in the sedimentation direction; and determine a first dividing line in the sedimentation image according to the difference; wherein the first dividing line is a dividing line between a clear layer and a transition layer in the sedimentation image; The processing module is further used to obtain the thickness of the clarified layer in the sedimentation image according to the first dividing line, and determine the sedimentation state of the coal slime water sample according to the thickness of the clarified layer.
9. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the coal slurry water settling state monitoring method according to any one of claims 1 to 7.
10. A coal slurry water sedimentation status monitoring system, It is characterized in that include: A coal slurry water sampling device, a reagent adding device, a sedimentation test device and a coal slurry water sedimentation state monitoring device as claimed in claim 8.
