A pretreatment device for contaminated soil remediation

By monitoring and adjusting the light direction and particle highlighting degree in the soil crushing image in real time, and adjusting the motor power with the best corrosion core, the problem that traditional equipment cannot control the soil particle size is solved, and the quality and efficiency of contaminated soil repair is improved. Reduces energy consumption and noise pollution.

CN118751386BActive Publication Date: 2024-11-22GUANGDONG INST OF ECO ENVIRONMENT & SOIL SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411249900.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2024-11-22
Estimated Expiration
2044-09-06

AI Technical Summary

Technical Problem

Traditional silt equipment cannot adjust the motor power in real time to control the soil particle size, resulting in uneven soil particle size after treatment, affecting the effect of contaminated soil repair.

Method used

By obtaining soil crushing images, image processing is performed to determine the light direction and particle prominence, selecting the best corrosion core for corrosion operation, and adjusting the motor power in real time to control soil particle size.

Benefits of technology

Real-time monitoring and adjustment of soil particle size is achieved, ensuring that the particle size meets the standards, improving the quality and efficiency of contaminated soil repair, and reducing energy consumption and noise pollution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118751386B_ABST
    Figure CN118751386B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of solid waste treatment, and specifically to a pretreatment device for contaminated soil remediation. In the process of crushing the contaminated soil by the pretreatment device, the connected domains of each soil block at the current moment are obtained; the illumination direction is determined according to the gradient vector of the edge pixel points of each soil block connected domain in the soil crushing grayscale image; the soil particle prominence degree of each preset corrosion core is determined, and then the optimal preset corrosion core is determined; the soil crushing binary image is corroded according to the optimal preset corrosion core and the illumination direction to determine the actual soil particle size at the current moment; the current motor power of the pretreatment device is adjusted using the actual soil particle size. By analyzing the image data in the process of crushing the contaminated soil by the pretreatment device, the present invention can adjust the motor power of the equipment in real time to control the discharge particle size, which helps to improve the contaminated soil remediation effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of solid waste treatment, and in particular to a pretreatment device for contaminated soil restoration. Background Art

[0002] Contaminated soil remediation is an important technology in the field of environmental protection. Its purpose is to restore contaminated soil to a state where it can be used safely through various physical, chemical and biological means. Before soil remediation, it is usually necessary to pre-treat the soil, such as using pulverized soil equipment to crush the soil into smaller particles in order to improve the effect of contaminated soil remediation. Among them, pulverized soil equipment is one of the pretreatment devices used for contaminated soil remediation. Traditional pulverized soil equipment often uses fixed screens or fixed blades for pulverization, and it is impossible to adjust the motor power of the equipment in real time to control the size of the output particle size, resulting in uneven particle size of the treated soil, which affects the subsequent remediation effect of contaminated soil. Summary of the invention

[0003] In order to solve the technical problem that the above-mentioned existing pretreatment device cannot adjust the motor power of the equipment in real time to control the particle size of the discharged material, the purpose of the present invention is to provide a pretreatment device for contaminated soil remediation, and the technical solution adopted is as follows:

[0004] An embodiment of the present invention provides a pretreatment device for contaminated soil remediation, comprising a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the following steps:

[0005] During the process of crushing the contaminated soil by the pretreatment device, a soil crushing image at the current moment is obtained;

[0006] Performing image processing on the soil crushing image to obtain connected domains of various soil blocks; determining the illumination direction on the image at the current moment according to the gradient vectors of edge pixels of the connected domains of various soil blocks in the soil crushing grayscale image;

[0007] According to the edge distribution and area size of each soil block connected domain under each preset corrosion core, the soil particle prominence degree of each preset corrosion core is determined, and the preset corrosion core corresponding to the maximum soil particle prominence degree is selected as the optimal preset corrosion core;

[0008] Performing an erosion operation on the soil crushing binary image according to the optimal preset erosion kernel and the illumination direction, and determining the actual soil particle size at the current moment according to the erosion operation result;

[0009] The actual soil particle size is used to adjust the current motor power of the pretreatment device.

[0010] Furthermore, the step of determining the illumination direction on the image at the current moment according to the gradient vectors of the edge pixels of the connected domains of each soil block in the soil crushing grayscale image includes:

[0011] Determine the modulus length of the gradient vector of each edge pixel point in the soil crushing grayscale image, arrange the modulus lengths of the gradient vectors in descending order to obtain a sequence, and select a preset number of edge pixel points in the sequence as target pixel points;

[0012] According to the gradient vector of each target pixel point in the soil crushing grayscale image, the illumination direction on the image at the current moment is determined.

[0013] Furthermore, determining the illumination direction on the image at the current moment according to the gradient vector of each target pixel in the soil crushing grayscale image includes:

[0014] The average value of the gradient vectors of all target pixels is calculated as the numerator of the ratio, and the average value of the modulus lengths of the gradient vectors of all target pixels is calculated as the denominator of the ratio. The illumination direction on the image at the current moment is determined by the ratio.

[0015] Furthermore, the soil particle prominence degree of each preset corrosion core is determined according to the edge distribution and area size of each soil block connected domain under each preset corrosion core, including:

[0016] Analyze the edge stability according to the edge chain codes corresponding to the connected domains of each soil block under each preset corrosion core, and determine the edge stability index of each connected domain of each soil block under each preset corrosion core;

[0017] According to the area size of each soil block connected domain under each preset corrosion core, the corrosion weight of each soil block connected domain under each preset corrosion core is determined;

[0018] The soil particle prominence of each preset corrosion core is determined according to the edge stability index and corrosion weight of each soil block connected domain under each preset corrosion core.

[0019] Further, the edge stability is analyzed according to each edge chain code corresponding to each soil block connected domain under each preset corrosion core, and the edge stability index of each soil block connected domain under each preset corrosion core is determined, including:

[0020] For any soil block connected domain under any preset corrosion core, determine the first-order difference of each edge chain code corresponding to the soil block connected domain, and calculate the cumulative value of the first-order differences of all edge chain codes as the first cumulative value;

[0021] Determine the absolute value of the first-order difference of each edge chain code corresponding to the connected domain of the soil block, and calculate the accumulated value of the absolute value of the first-order difference of all edge chain codes as the second accumulated value;

[0022] The first accumulated value and the second accumulated value are combined to analyze whether the first-order difference of the chain code is always positive or always negative, and the edge stability index of the connected domain of the soil block is determined.

[0023] Furthermore, the step of analyzing the constant positive or negative first-order difference of the chain code by combining the first accumulated value and the second accumulated value to determine the edge stability index of the connected domain of the soil block includes:

[0024] The ratio of the first accumulated value to the second accumulated value is calculated, and the absolute value of the ratio of the two accumulated values ​​is used as an edge stability index of the connected domain of the soil block.

[0025] Furthermore, the corroding operation is performed on the soil crushing binary image according to the optimal preset corrosion kernel and the illumination direction, including:

[0026] In the soil crushing binary image, the optimal preset corrosion core is distributed along the illumination direction to obtain a corrosion operation result;

[0027] Determining the actual soil particle size at the current moment according to the corrosion operation result includes:

[0028] Selecting a connected domain of soil blocks whose area is greater than a preset area threshold in the corrosion operation result, and taking the average area of ​​the selected connected domain of soil blocks as the image soil particle size at the current moment;

[0029] The conversion ratio of the soil crushing image is obtained, and the product of the image soil particle size and the conversion ratio is used as the actual soil particle size at the current moment.

[0030] Furthermore, the use of the actual soil particle size to adjust the current motor power of the pretreatment device includes:

[0031] The soil particle size related information set by the pre-processing device at the current moment is obtained, and the current motor power of the pre-processing device is adjusted according to the difference between the actual soil particle size and the soil particle size related information.

[0032] Furthermore, the soil crushing image is processed to obtain connected domains of various soil blocks, including:

[0033] Firstly, the soil crushing image is gray-scaled to obtain a soil crushing gray-scale image;

[0034] Then, the soil crushing grayscale image is subjected to threshold segmentation processing to obtain a soil crushing binary image, and then the connected domains of each soil block in the soil crushing binary image are extracted.

[0035] A pretreatment device for contaminated soil remediation, comprising a soil crushing mechanism, the pretreatment device for contaminated soil remediation also comprising a soil particle size control device, the soil particle size control device comprising an image collector and a controller, the image collector being connected to the controller, the image collector being used to obtain a soil crushing image at the current moment during the process of crushing the contaminated soil by the pretreatment device, the controller performing image processing on the soil crushing image at the current moment according to the received soil crushing image, to obtain connected domains of various soil blocks;

[0036] According to the gradient vector of the edge pixel points of the connected domain of each soil block in the soil crushing grayscale image, the illumination direction on the image at the current moment is determined;

[0037] According to the edge distribution and area size of each soil block connected domain under each preset corrosion core, the soil particle prominence degree of each preset corrosion core is determined, and the preset corrosion core corresponding to the maximum soil particle prominence degree is selected as the optimal preset corrosion core;

[0038] Performing an erosion operation on the soil crushing binary image according to the optimal preset erosion kernel and the illumination direction, and determining the actual soil particle size at the current moment according to the erosion operation result;

[0039] The actual soil particle size is used to adjust the current motor power of the pretreatment device.

[0040] The present invention has the following beneficial effects:

[0041] The present invention provides a pretreatment device for contaminated soil remediation. By acquiring the soil crushing image at the current moment, the purpose of real-time monitoring of the particle size of the soil at the discharge port can be achieved, which helps to ensure that the particle size of the crushed soil meets the preset standard, so that the soil can achieve the best treatment effect in the subsequent remediation process, and improve the overall soil remediation quality and effect; based on the soil crushing image, the actual soil particle size with higher numerical accuracy is obtained, and the actual soil particle size can be used to adjust the current motor power of the pretreatment device. The real-time adjustment of the motor power can not only reduce unnecessary crushing processes and improve energy efficiency, but also ensure that the soil particle size meets the standard, and improve the crushing effect and work efficiency; the real-time adjustment of the current motor power of the pretreatment device can reduce the power without excessive crushing, reduce the noise generated during the operation of the pretreatment device, and effectively reduce environmental noise pollution. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are 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.

[0043] Figure 1 It is a structural schematic diagram of a pretreatment device for contaminated soil remediation provided by one embodiment of the present invention;

[0044] Figure 2 It is a schematic diagram of a data processing flow corresponding to a pretreatment device for contaminated soil remediation provided by an embodiment of the present invention;

[0045] Figure 3 is an example diagram of a soil crushing image at the current moment in one embodiment of the present invention;

[0046] Figure 4 is an example diagram of a soil crushing binary image in one embodiment of the present invention;

[0047] Figure 5 is a flowchart of the implementation of step S222 in one embodiment of the present invention;

[0048] Figure 6 Implementation flow chart of step S203 in one embodiment of the present invention;

[0049] Figure 7 Flow chart of implementation of step S601 in one embodiment of the present invention;

[0050] Figure 8 is a schematic diagram of adjusting the motor of the pre-processing device in one embodiment of the present invention;

[0051] The reference numerals are explained as follows: 1 is a hopper, 2 is a crushing device, 3 is a transmission wheel, 4 is a transmission belt, 5 is a motor, 6 is a discharge port, 7 is crushed soil, 8 is an image collector, 9 is a controller, and 10 is a soil particle size adjustment knob. DETAILED DESCRIPTION

[0052] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects of the technical solutions proposed by the present invention are described in detail below in conjunction 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.

[0053] 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.

[0054] A contaminated soil remediation pretreatment device embodiment 1:

[0055] The motor power of traditional soil pulverizing equipment is fixed during soil pulverization. However, the fixed motor power will result in the soil pulverization result of the soil pulverizing equipment failing to reach the required particle size. In the process of repairing the crushed soil, the soil contaminants cannot be completely removed, resulting in poor remediation of contaminated soil. Among them, the size of the motor power is one of the important factors affecting the working efficiency of soil pulverizing equipment. The greater the power, the more contaminated soil can be crushed to improve the crushing effect.

[0056] However, there are some shortcomings in maintaining a high motor power during the crushing process of silt equipment: First, the energy consumption is high: since the crushing power cannot be adjusted according to the particle size of the feed soil, the energy consumption is too high when processing finer particles of soil, which is not conducive to the energy saving and environmental protection of silt equipment; secondly, the high-power operation of silt equipment produces loud noise, affecting the working environment and the quality of life of surrounding residents.

[0057] In view of the above problems, this embodiment provides a pretreatment device for contaminated soil remediation, including a soil crushing mechanism, which is a conventional pulverized soil device. The structural composition of the conventional pulverized soil device is not described in detail here. It should be understood that the soil crushing mechanism also includes related control equipment for controlling the soil to be remediated to be crushed according to a preset particle size.

[0058] The pretreatment device for contaminated soil remediation also includes a soil particle size control device, which includes an image collector and a controller. Among them, the image collector can be a conventional industrial camera, which is used to shoot the soil crushing situation at the discharge port during the process of crushing the contaminated soil by the pretreatment device, and obtain the soil crushing image at the current moment; the controller can be a data processing chip such as a CPU (Central Processing Unit, the Chinese name is central processing unit), MCU (Microcontroller Unit, micro control unit), or a data processing device such as a computer host. The image collector signal is connected to the controller, and the two can be connected by wire through a data transmission line, or wirelessly through wireless communication methods such as Bluetooth and WiFi. In addition, the image collector and the controller can also be integrated to form a device that integrates image acquisition and image processing functions.

[0059] In this embodiment, a structural schematic diagram of a contaminated soil remediation pretreatment device is shown in FIG. Figure 1As shown, the operation process of the pretreatment device may include: the feeding hopper 1 in the pretreatment device is used to add the contaminated soil to be treated, and the contaminated soil to be treated is transported from the feeding hopper 1 to the crushing device 2. The crushing device 2 is equipped with saw teeth for crushing soil blocks. In the process of crushing soil blocks, the driving wheel 3 and the driving belt 4 are used to drive the crushing device to operate. After the crushing is completed, the crushed contaminated soil is transported to the discharge port 6 to finally form crushed soil 7; an image collector 8 can be installed directly above the crushed soil 7, and the image collector 8 will collect the soil crushing image at the current moment according to a preset frequency. The image collector 8 transmits the collected soil crushing image at the current moment to the controller 9 for image data analysis and processing to obtain the actual soil particle size at the current moment, and the actual soil particle size is combined with the soil particle size related information obtained by the soil particle size adjustment knob 10 to adjust the current motor power of the motor 5.

[0060] In this embodiment, a data processing flow diagram corresponding to a pretreatment device for contaminated soil remediation is shown in FIG. Figure 2 As shown, including:

[0061] S201, when the pre-processing device is crushing the contaminated soil, a soil crushing image at the current moment is obtained.

[0062] In this embodiment, in order to understand the current crushing status of the pretreatment device in real time and improve the uniformity of the particle size of the contaminated soil treated by the pretreatment device, it is necessary to use a visual detection method, that is, to install an image collector 8 at the discharge port 6 of the pretreatment device. The image collector 8 can be an industrial camera, which can collect the crushed soil image at each moment in the entire process of the pretreatment device crushing the contaminated soil, that is, the soil crushing image.

[0063] It should be noted that the acquisition frequency of the soil crushing image is the adjustment frequency of the motor power in the preprocessing device. The acquisition frequency can be set to once every 5 seconds, so the adjustment frequency of the motor power is also adjusted once every 5 seconds. The image acquisition frequency can be set by the implementer according to the specific actual situation without specific limitation.

[0064] Since the motor power adjustment is a real-time dynamic adjustment process, each time a soil crushing image is collected, it is necessary to determine the actual soil particle size based on the image features of the soil crushing image, so as to adjust the current motor power of the preprocessing device using the actual soil particle size. Figure 3 shown.

[0065] S202, performing image processing on the soil crushing image to obtain connected domains of various soil blocks; determining the illumination direction on the image at the current moment according to the gradient vectors of edge pixels of the connected domains of various soil blocks in the soil crushing grayscale image.

[0066] The above step S202 can be implemented by the following steps S212 to S222 (not shown):

[0067] S212, performing image processing on the soil crushing image to obtain connected domains of each soil block.

[0068] In this embodiment, after obtaining the soil crushing image, in order to analyze the soil particle size corresponding to the soil crushing image, the soil particle size is the size of a single soil block in the image, it is necessary to perform image processing on the soil crushing image data, including:

[0069] Firstly, the soil crushing image is grayed to obtain a soil crushing gray image; then the soil crushing gray image is threshold segmented to obtain a soil crushing binary image, and then the connected domains of each soil block in the soil crushing binary image are extracted.

[0070] Among them, the grayscale implementation means include but are not limited to: weighted average method, average method, maximum method and minimum method, etc. The implementation process of grayscale processing is a prior art and will not be elaborated in detail here. Threshold segmentation can be Otsu's method, and the implementation process of Otsu's method is also a prior art. The example of soil crushing binary image is shown in Figure 4 .

[0071] pass Figure 4 It can be seen that the size of the soil blocks in the crushed soil at the current moment is not uniform, and the motor power needs to be adjusted to control the particle size; in addition, there are many soil blocks in the soil crushing binary image that are stuck to the same connected domain. At this time, it is difficult to completely segment a single soil block only by threshold segmentation, which will have a great impact on the quantification result of the actual soil particle size.

[0072] S222, determining the illumination direction on the image at the current moment according to the gradient vectors of the edge pixels of the connected domains of each soil block in the soil crushing grayscale image.

[0073] It should be noted that due to the sticky effect between the connected domains of soil blocks, it is necessary to consider corroding the soil crushing binary image through morphological processing to obtain the segmented and complete connected domain corresponding to a single soil block. However, there are large differences in the corresponding image processing results under different sizes of corrosion kernels. In the image acquisition process, due to the influence of the image shooting angle and the direction of illumination, when there are large-grained soil blocks in the soil, there is a certain directional relationship between the shadow part and the soil block. In order to improve the processing effect of morphological operation on the soil crushing binary image, it is necessary to determine the illumination direction corresponding to the image taken at the current moment.

[0074] The above step S222 can be performed by Figure 5The steps shown achieve:

[0075] S501, determining the modulus length of the gradient vector of each edge pixel in the soil crushing grayscale image, arranging the modulus lengths of the gradient vectors in descending order to obtain a sequence, and selecting a preset number of edge pixels in the sequence as target pixels.

[0076] In this embodiment, the grayscale changes at the boundaries of some soil blocks along the direction of light are relatively large. By analyzing the grayscale changes of each edge pixel point on the boundary of the connected domain of the soil block, that is, determining the modulus length of the gradient vector of the edge pixel point in the soil crushing grayscale image, the illumination direction on the image can be quantified.

[0077] Specifically, the position of each edge pixel point on the boundary of the connected domain of each soil block is first determined in the soil crushing binary image; then, based on the position of each edge pixel point, it is mapped to the soil crushing grayscale image at the corresponding position, and the gradient vector of each edge pixel point is determined in the soil crushing grayscale image; the modulus length of the gradient vector of each edge pixel point is calculated, and the modulus lengths of the gradient vectors of the edge pixel points are arranged in descending order to obtain a sequence, and N edge pixel points with larger modulus lengths are selected in the sequence as target pixels, that is, the first N edge pixel points in the sequence are selected as target pixels.

[0078] It should be noted that the gradient vector can represent the grayscale change of edge pixels. The larger the modulus of the gradient vector, the more drastic the grayscale change. Therefore, in order to reduce the amount of calculation, a number of edge pixels with larger modulus of the gradient vector are selected from all edge pixels as target pixels. The preset number N can be set to 0.25 times the total number of all edge pixels. The implementer can set the number of target pixels according to the actual situation without specific limitation.

[0079] S502, determining the illumination direction on the image at the current moment according to the gradient vector of each target pixel in the soil crushing grayscale image.

[0080] Specifically, the average value of the gradient vectors of all target pixels is calculated as the numerator of the ratio, and the average value of the modulus of the gradient vectors of all target pixels is calculated as the denominator of the ratio, and the illumination direction on the image at the current moment is determined by the ratio. The numerator of the ratio is the mean gradient vector of all target pixels, and the denominator is the modulus of the mean gradient vector. Using it as the denominator can eliminate the size of the mean gradient vector, thereby obtaining a unit vector, and the direction of the unit vector is used as the illumination direction on the image at the current moment.

[0081] Regarding the direction of light, the light at the current moment is projected onto the crushed soil. At this time, the industrial camera captures the image of the crushed soil at the current moment. The projected light will affect the soil image, and the light directions of the images taken at different moments may be different.

[0082] As an example, the calculation formula for the unit vector with the lighting direction can be:

[0083] ; represents a unit vector with the illumination direction, N represents the number of target pixels, and n represents the sequence number of the target pixel. Represents the gradient vector of the nth target pixel, Represents a function for finding the magnitude of a vector.

[0084] In the calculation formula of the unit vector, the modulus of the gradient mean vector generally does not have the possibility of being zero. However, when there is an extreme case, a preset constant can be added to the denominator of the fraction. The preset constant can be used to prevent the denominator of the fraction from being zero. The empirical value of the preset constant is 0.01.

[0085] It is worth noting that the edges corresponding to the connected domains of each soil block are perpendicular to the direction of illumination. Therefore, if the corrosion kernel is distributed along the direction of light, the adhesion between the connected domains of multiple soil blocks can be better segmented. The reason is that the corrosion operation affects the edge features of the soil blocks in the image under specific lighting conditions, and the directionality of light can affect the visual effect of the corrosion operation, making the boundaries of the soil blocks in a specific direction clearer or more prominent.

[0086] S203, determining the prominence of soil particles of each preset corrosion core according to the edge distribution and area size of the connected domains of each soil block under each preset corrosion core, and then determining the best preset corrosion core.

[0087] First of all, it should be noted that, considering that the image overhead results corresponding to corrosion kernels of different sizes are different, in order to determine the most suitable corrosion kernel for the soil crushing binary image and improve the numerical accuracy and reliability of the actual soil particle size determined subsequently, it is necessary to select the best preset corrosion kernel from all preset corrosion kernels based on the edge distribution and area size of the connected domains of each soil block under each preset corrosion kernel.

[0088] The above step S203 can be performed by Figure 6 The steps shown achieve:

[0089] S601, analyzing edge stability according to edge chain codes corresponding to connected domains of soil blocks under each preset corrosion core, and determining edge stability indexes of connected domains of soil blocks under each preset corrosion core.

[0090] In this embodiment, the particle size of the crushed soil mainly depends on the larger soil blocks. When the larger soil blocks are formed by the adhesion of two or more soil blocks, the edge stability of the connected domain of the soil blocks is poor. Therefore, when the boundary changes of a single connected domain after corrosion treatment are relatively stable, it means that the corrosion effect of the current corrosion core is better, which is conducive to overcoming the adhesion effect between connected domains and obtaining a connected domain with clear boundaries. Therefore, the edge stability can be analyzed by the edge chain codes corresponding to the connected domain of the soil blocks to determine the soil particle highlighting factor of each preset corrosion core. Among them, the preset corrosion core can be set to 1 to 6, and the implementer can set the size and number of the preset corrosion core according to the specific actual situation.

[0091] The above step S601 can be performed by Figure 7 The steps shown achieve:

[0092] S701, for any soil block connected domain under any preset corrosion core, determine the first-order difference of each edge chain code corresponding to the soil block connected domain, and calculate the cumulative value of the first-order differences of all edge chain codes as the first cumulative value.

[0093] In this embodiment, each preset corrosion core is used to corrode the soil crushing binary image in turn, and each soil block connected domain in the binary image after corrosion processing corresponding to each preset corrosion core can be obtained. Among them, the implementation process of corrosion processing is a prior art, which is not within the protection scope of the present invention and will not be elaborated in detail here.

[0094] S702, determining the absolute value of the first-order difference of each edge chain code corresponding to the soil block connected domain, and calculating the accumulated value of the absolute values ​​of the first-order differences of all edge chain codes as the second accumulated value.

[0095] S703, analyzing whether the first-order difference of the chain code is always positive or always negative by combining the first accumulated value and the second accumulated value, and determining an edge stability index of the connected domain of the soil block.

[0096] Specifically, the ratio of the first accumulated value to the second accumulated value is calculated, and the absolute value of the ratio of the two accumulated values ​​is used as the edge stability index of the connected domain of the soil block.

[0097] As an example, the rth erosion kernel The calculation formula of the edge stability index of the connected domain of a soil block can be:

[0098] ; In the formula, represents the rth corrosion core The edge stability index of the connected domain of soil blocks is Indicates The edge chain length of the connected domain of each soil block. The chain code here adopts 8-chain code, j represents the edge chain code number, Indicates The first-order difference of the jth edge chain code of the connected domain of the soil blocks, Indicates The jth edge chain code of the connected domain of blocks, Represents the absolute value function.

[0099] In the calculation formula of edge stability index, generally There is no possibility of being zero. For extreme cases, a preset constant can be added to the denominator of the fraction to prevent the denominator from being zero. When the first-order difference of the chain code is always positive or negative, it means that the edge of the connected domain of the corresponding soil block is relatively smooth, the edge stability of the connected domain of the soil block is high, and the probability of two or more soil blocks sticking together is small.

[0100] S704, obtaining edge stability indexes of connected domains of each soil block.

[0101] In this embodiment, referring to the calculation process of the edge stability index of the soil block connected domain corresponding to the above steps S701 to S703, the edge stability index of each soil block connected domain under each preset corrosion core can be obtained.

[0102] S602: Determine the corrosion weight of each soil block connected domain under each preset corrosion core according to the area size of each soil block connected domain under each preset corrosion core.

[0103] In this embodiment, the soil particle size is determined by the size of the connected domain of the soil block. Excessive or small corrosion will affect the numerical accuracy of the actual soil particle size. Therefore, in order to avoid the low numerical accuracy of the actual soil particle size, the corrosion weights of different connected domains of soil blocks are quantified by analyzing the area size of each connected domain of soil blocks under the same preset corrosion kernel.

[0104] Specifically, the area of ​​each soil block connected domain under each preset corrosion core is directly used as the corrosion weight of the corresponding soil block connected domain. The area of ​​the soil block connected domain refers to the number of pixels in the soil block connected domain, and each soil block connected domain has its corresponding corrosion weight.

[0105] S603, determining the soil particle prominence degree of each preset corrosion core according to the edge stability index and corrosion weight of each soil block connected domain under each preset corrosion core.

[0106] In this embodiment, the edge stability index and the corrosion weight are both positively correlated with the prominence of soil particles. The greater the edge stability index and the corrosion weight, the greater the prominence of soil particles, and the better the corrosion effect of the preset corrosion core. In order to quantify the corrosion effect of each preset corrosion core, it is necessary to combine the edge stability index and corrosion weight of multiple soil block connected domains corresponding to the same preset corrosion core, that is, the cumulative value of the product of the edge stability index and the corrosion weight of each soil block connected domain under the same preset corrosion core is used as the soil particle prominence factor.

[0107] As an example, the calculation formula for the prominence of soil particles of the rth preset corrosion core can be:

[0108] ; In the formula, Indicates the prominence of soil particles in the rth preset corrosion core, represents the number of connected domains of soil blocks under the rth preset corrosion core, Indicates the serial number of the connected domain of soil blocks under the preset corrosion core, represents the first The erosion weight of the connected domain of the soil block, represents the first The edge stability index of the connected domain of soil blocks.

[0109] In the calculation formula for the degree of soil particle prominence, each preset corrosion core has its corresponding degree of soil particle prominence. Through the corrosion weight, the image can be eroded while retaining the connected domain of soil blocks. The connected domain of soil blocks with smaller areas can be suppressed. The connected domain of soil blocks with smaller areas can refer to soil with smaller particle size. The soil with smaller particle size has less influence on the actual soil particle size. Therefore, it is necessary to use the corrosion weight to suppress the numerical influence of the connected domain of soil blocks with smaller areas on the degree of soil particle prominence, so as to obtain a more accurate degree of soil particle prominence.

[0110] S604, determining the best preset corrosion core according to the soil particle prominence of each preset corrosion core.

[0111] In this embodiment, the greater the degree of soil particle prominence, the clearer the shapes and boundaries of each soil block in the soil crushing binary image under the corresponding preset corrosion kernel, and the better the corrosion effect. Therefore, the preset corrosion kernel corresponding to the maximum degree of soil particle prominence can be selected from all preset corrosion kernels, and it is called the optimal preset corrosion kernel.

[0112] S204, performing a corrosion operation on the soil crushing binary image according to the optimal preset corrosion kernel and illumination direction, and determining the actual soil particle size at the current moment according to the corrosion operation result.

[0113] The above step S204 can be implemented through steps S214 to S224 (not shown in the figure):

[0114] S214, performing a corrosion operation on the soil crushing binary image according to the optimal preset corrosion kernel and illumination direction to obtain a corrosion operation result.

[0115] Specifically, in the soil crushing binary image, the best preset corrosion kernel is distributed along the illumination direction to implement the corrosion operation, and the corrosion operation result corresponding to the best preset corrosion is obtained. The corrosion operation result is the soil crushing binary image after corrosion processing.

[0116] S224, determining the actual soil particle size at the current moment according to the corrosion operation result.

[0117] After obtaining the erosion operation result, the actual soil particle size at the current moment can be analyzed based on the connected domains of each soil block in the erosion operation result. The actual soil particle size can represent the actual particle size of the crushed soil at the current moment.

[0118] Specifically, a connected domain of soil blocks with an area greater than a preset area threshold is selected from the corrosion operation results, and the average area of ​​the selected connected domain of soil blocks is used as the image soil particle size at the current moment; the conversion ratio of the soil crushing image is obtained, and the product of the image soil particle size and the conversion ratio is used as the actual soil particle size at the current moment.

[0119] In this embodiment, the preset area threshold can be set to the upper quartile of the area of ​​the connected domain of all soil blocks in the corrosion operation result. The preset area threshold can be set by the implementer according to the specific actual situation without specific limitation. By measuring the actual size of the shooting area corresponding to the soil crushing image and comparing it with the image resolution, the conversion ratio between the image and the actual size can be obtained; after obtaining the image soil particle size, the product of the image soil particle size and the conversion ratio is used as the actual soil particle size at the current moment. Among them, the calculation process of the image conversion ratio is a prior art and is not within the protection scope of the present invention, and will not be elaborated here.

[0120] S205, adjusting the current motor power of the pretreatment device using the actual soil particle size.

[0121] First of all, it should be noted that different soil remediation processes have different requirements for the particle size of soil pretreatment. For example, the leaching method in some chemical methods generally requires the soil particle size to be less than 2 mm. Finer particles can better contact with detergents and help improve the washing effect; while the bioventilation method in the biological remediation method generally requires the soil particle size to be 1 to 10 mm, which is conducive to gas diffusion and microbial activity. Therefore, it is necessary to adjust the motor drive in real time according to the actual soil particle size to control the size of the soil particle after crushing.

[0122] Specifically, the soil particle size related information set by the pre-processing device at the current moment is obtained, and the current motor power of the pre-processing device is adjusted according to the difference between the actual soil particle size and the soil particle size related information.

[0123] In this embodiment, the standard size of soil particles can be adjusted by the soil particle adjustment knob, so the output electrical signal of the adjustment knob corresponding to the particle size can be used as the set soil particle size related information, and the adjustment knob provides an interface for a standard input value; subsequently, the output electrical signal of the adjustment knob corresponding to the particle size and the actual soil particle size are input into the PID (Proportion Integration Differentiation, control algorithm) adjustment module to perform proportional, integral, and differential adjustment calculations, and then the output result of the PID adjustment module is transmitted to the actuator for power control. Among them, the proportional, integral, and differential coefficients can be obtained by the Ziegler-Nichols method, and the actuator is the motor of the preprocessing device.

[0124] It should be noted that after the actuator receives the input signal, it converts the input signal into a pulse width modulation signal. Considering that the initial motor needs to run to detect the silt effect, the minimum duty cycle of the pulse width modulation signal is set to 30% and the maximum duty cycle is set to 100%. The duty cycle is used to intelligently control the motor power. Among them, the minimum duty cycle and maximum duty cycle of the pulse width modulation signal can be set by the implementer according to the actual situation, without specific limitation.

[0125] The adjustment diagram of the pre-processing device motor is as follows: Figure 8 As shown, in Figure 8 In the process, PID input includes two aspects, namely, soil particle size related information and actual soil particle size. The soil particle size related information is obtained by adjusting the knob, while the actual soil particle size is obtained by an industrial camera. When the actual soil particle size is smaller than the set soil particle size related information, the motor power is reduced, otherwise, the motor power is increased.

[0126] In summary, this embodiment adds computer vision to the traditional pulverized soil equipment, which can monitor the particle size of the soil at the discharge port in real time, which is conducive to ensuring that the particle size of the crushed soil meets the preset standard, so that the soil can achieve the best treatment effect during the restoration process, so as to improve the overall quality and effect of soil restoration. Based on the actual soil particle size, the PID control method is used to intelligently control the motor power. For soils with better particle size, the motor power can be reduced, unnecessary crushing processes can be reduced, and energy efficiency can be improved; for soils with poor particle size, the motor power can be increased to ensure that the soil particle size meets the standard, and the crushing effect and work efficiency can be improved. The motor power is adjusted based on the actual particle size of the soil after crushing, and the power is reduced when excessive crushing is not required, so as to reduce the noise generated during the operation of the pretreatment device and effectively reduce environmental noise pollution.

[0127] A contaminated soil remediation pretreatment device embodiment 2:

[0128] This embodiment provides a pretreatment device for contaminated soil remediation, including a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the following control process:

[0129] During the process of crushing the contaminated soil by the pretreatment device, obtaining a soil crushing image at the current moment;

[0130] Performing image processing on the soil crushing image to obtain connected domains of various soil blocks; determining the illumination direction on the image at the current moment according to the gradient vectors of edge pixels of the connected domains of various soil blocks in the soil crushing grayscale image;

[0131] According to the edge distribution and area size of each soil block connected domain under each preset corrosion core, the soil particle prominence degree of each preset corrosion core is determined, and the preset corrosion core corresponding to the maximum soil particle prominence degree is selected as the optimal preset corrosion core;

[0132] Performing a corrosion operation on the soil crushing binary image according to the optimal preset corrosion kernel and the illumination direction, and determining the actual soil particle size at the current moment according to the corrosion operation result;

[0133] The actual soil particle size is used to adjust the current motor power of the pretreatment device.

[0134] Therefore, the pretreatment device for contaminated soil remediation provided in this embodiment is essentially a processor device, which is implemented by an internal data processing process. Since the data processing process has been described in detail in the above-mentioned embodiment 1 of the pretreatment device for contaminated soil remediation, it will not be repeated here.

[0135] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A pretreatment device for contaminated soil remediation, characterized in that: The system comprises a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the following control process: In the process of crushing the contaminated soil by the pre-treatment device, a soil crushing image at the current moment is obtained, where the soil crushing image is an image of the soil after crushing; The soil crushing image is subjected to image processing to obtain connected domains of various soil blocks; the soil crushing image is subjected to image processing to obtain connected domains of various soil blocks, including: Firstly, the soil crushing image is grayed to obtain a soil crushing gray image; then the soil crushing gray image is threshold segmented to obtain a soil crushing binary image, and then the connected domains of each soil block in the soil crushing binary image are extracted; According to the gradient vector of the edge pixel points of the connected domain of each soil block in the soil crushing grayscale image, the illumination direction on the image at the current moment is determined; According to the edge distribution and area size of each soil block connected domain under each preset corrosion core, the soil particle prominence degree of each preset corrosion core is determined, and the preset corrosion core corresponding to the maximum soil particle prominence degree is selected as the optimal preset corrosion core; Performing an erosion operation on the soil crushing binary image according to the optimal preset erosion kernel and the illumination direction, and determining the actual soil particle size at the current moment according to the erosion operation result; The actual soil particle size is used to adjust the current motor power of the pretreatment device to control the size of the discharge particle size.

2. A contaminated soil remediation pretreatment device according to claim 1, characterized in that: The step of determining the illumination direction on the image at the current moment according to the gradient vectors of the edge pixels of the connected domains of each soil block in the soil crushing grayscale image comprises: Determine the modulus length of the gradient vector of each edge pixel point in the soil crushing grayscale image, arrange the modulus lengths of the gradient vectors in descending order to obtain a sequence, and select a preset number of edge pixel points in the sequence as target pixel points; According to the gradient vector of each target pixel point in the soil crushing grayscale image, the illumination direction on the image at the current moment is determined.

3. A contaminated soil remediation pretreatment device according to claim 2, characterized in that: Determining the illumination direction on the image at the current moment according to the gradient vector of each target pixel point in the soil crushing grayscale image includes: The average value of the gradient vectors of all target pixels is calculated as the numerator of the ratio, and the average value of the modulus lengths of the gradient vectors of all target pixels is calculated as the denominator of the ratio. The illumination direction on the image at the current moment is determined by the ratio.

4. A contaminated soil remediation pretreatment device according to claim 1, characterized in that: The step of determining the soil particle prominence of each preset corrosion core according to the edge distribution and area size of each soil block connected domain under each preset corrosion core includes: Analyze the edge stability according to the edge chain codes corresponding to the connected domains of each soil block under each preset corrosion core, and determine the edge stability index of each connected domain of each soil block under each preset corrosion core; According to the area size of each soil block connected domain under each preset corrosion core, the corrosion weight of each soil block connected domain under each preset corrosion core is determined; The soil particle prominence of each preset corrosion core is determined according to the edge stability index and corrosion weight of each soil block connected domain under each preset corrosion core.

5. A contaminated soil remediation pretreatment device according to claim 4, characterized in that: The step of analyzing the edge stability according to the edge chain codes corresponding to the connected domains of each soil block under each preset corrosion core, and determining the edge stability index of each connected domain of each soil block under each preset corrosion core, includes: For any soil block connected domain under any preset corrosion core, determine the first-order difference of each edge chain code corresponding to the soil block connected domain, and calculate the cumulative value of the first-order differences of all edge chain codes as the first cumulative value; Determine the absolute value of the first-order difference of each edge chain code corresponding to the connected domain of the soil block, and calculate the accumulated value of the absolute value of the first-order difference of all edge chain codes as the second accumulated value; The first accumulated value and the second accumulated value are combined to analyze whether the first-order difference of the chain code is always positive or always negative, and the edge stability index of the connected domain of the soil block is determined.

6. A contaminated soil remediation pretreatment device according to claim 5, characterized in that: The step of analyzing the constant positive or negative first-order difference of the chain code by combining the first accumulated value and the second accumulated value to determine the edge stability index of the connected domain of the soil block includes: The ratio of the first accumulated value to the second accumulated value is calculated, and the absolute value of the ratio of the two accumulated values ​​is used as an edge stability index of the connected domain of the soil block.

7. A contaminated soil remediation pretreatment device according to claim 1, characterized in that: The corroding operation on the soil crushing binary image according to the optimal preset corrosion kernel and the illumination direction comprises: In the soil crushing binary image, the optimal preset corrosion core is distributed along the illumination direction to obtain a corrosion operation result; Determining the actual soil particle size at the current moment according to the corrosion operation result includes: Selecting a connected domain of soil blocks whose area is greater than a preset area threshold in the corrosion operation result, and taking the average area of ​​the selected connected domain of soil blocks as the image soil particle size at the current moment; The conversion ratio of the soil crushing image is obtained, and the product of the image soil particle size and the conversion ratio is used as the actual soil particle size at the current moment.

8. The pretreatment device for contaminated soil remediation according to claim 1, characterized in that: The method of adjusting the current motor power of the pretreatment device by using the actual soil particle size includes: The soil particle size related information set by the pre-processing device at the current moment is obtained, and the current motor power of the pre-processing device is adjusted according to the difference between the actual soil particle size and the soil particle size related information.

9. A pretreatment device for contaminated soil remediation, comprising a soil crushing mechanism, characterized in that: The contaminated soil remediation pretreatment device also includes a soil particle size control device, the soil particle size control device includes an image collector and a controller, the image collector is connected to the controller, the image collector is used to obtain a soil crushing image at the current moment during the process of crushing the contaminated soil by the pretreatment device, the soil crushing image is an image of the crushed soil, the controller performs image processing on the soil crushing image according to the received soil crushing image at the current moment to obtain connected domains of various soil blocks; the image processing on the soil crushing image to obtain connected domains of various soil blocks includes: Firstly, the soil crushing image is grayed to obtain a soil crushing gray image; then the soil crushing gray image is threshold segmented to obtain a soil crushing binary image, and then the connected domains of each soil block in the soil crushing binary image are extracted; According to the gradient vector of the edge pixel points of the connected domain of each soil block in the soil crushing grayscale image, the illumination direction on the image at the current moment is determined; According to the edge distribution and area size of each soil block connected domain under each preset corrosion core, the soil particle prominence degree of each preset corrosion core is determined, and the preset corrosion core corresponding to the maximum soil particle prominence degree is selected as the optimal preset corrosion core; Performing an erosion operation on the soil crushing binary image according to the optimal preset erosion kernel and the illumination direction, and determining the actual soil particle size at the current moment according to the erosion operation result; The actual soil particle size is used to adjust the current motor power of the pretreatment device to control the size of the discharge particle size.