Image Processing-Based Online Wastewater Color Recognition System and Method
By using an image processing-based online recognition system with industrial cameras and image edge detection operators, the problems of long time and poor accuracy caused by offline wastewater color measurement are solved. This system enables fast and accurate online wastewater color measurement, guiding the addition of reagents and improving the stability of treatment results.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CISDI ENGINEERING CO LTD
- Filing Date
- 2023-11-28
- Publication Date
- 2026-05-26
AI Technical Summary
In existing technologies, wastewater color measurement mainly relies on offline methods, which have problems such as high manual intervention, long measurement time and poor accuracy, and are inconvenient to operate, especially in harsh environments.
An online recognition system based on image processing is adopted, including an image acquisition module, a signal transmission module, and an analysis and display module. It utilizes an industrial camera, an active light source, a light shield, a white back panel, and a colorimetric card, combined with fast Fourier transform and image edge detection operators, to achieve rapid and accurate online measurement of wastewater color.
It enables rapid and accurate online measurement of wastewater color, simplifies the operation process, improves the real-time performance and accuracy of the measurement, and can guide the dosing of reagents in the pretreatment stage in real time, thus stabilizing the treatment effect.
Smart Images

Figure CN117635734B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wastewater treatment, and more specifically to an online wastewater color recognition system and method based on image processing. Background Technology
[0002] In the field of surface wastewater treatment containing heavy metal ions, the color of the wastewater is often an important intermediate reaction process parameter, reflecting the overall content of heavy metal ions in the wastewater. For example, chromium-containing wastewater turns light green after reduction, and the darker the color, the higher the total chromium concentration in the water.
[0003] Currently, colorimetric values are mainly calculated offline using colorimeters or by measuring the absorbance of water samples at different wavelengths, or by determining colorimetric values through standard colorimetry. This offline method requires manual sampling and measurement, which is inconvenient in harsh environments and suffers from long measurement times and poor accuracy. Therefore, to solve these problems, a new online wastewater colorimetric identification system and method are needed, capable of rapidly and accurately measuring wastewater color online, providing data guidance for reagent dosing in the pretreatment stage. Summary of the Invention
[0004] In view of this, the purpose of this invention is to overcome the deficiencies in the prior art and provide an online wastewater color identification system and method based on image processing, which can quickly and accurately measure wastewater color online, providing data guidance for the dosing of reagents in the pretreatment stage.
[0005] The wastewater color online identification system based on image processing of the present invention includes an image acquisition module, a signal transmission module, and an analysis and display module;
[0006] The image acquisition module is used to acquire wastewater image information;
[0007] The analysis and display module is used to receive wastewater image information, perform wastewater image analysis, and display the wastewater color recognition results;
[0008] The signal transmission module is used to transmit wastewater image information acquired by the image acquisition module to the analysis and display module.
[0009] Furthermore, the image acquisition module includes an industrial camera, an active light source, a light shield, a white backplate, and a colorimetric card; the industrial camera is used to capture images of wastewater.
[0010] Furthermore, the analysis and display module includes a server and a display device.
[0011] Furthermore, the signal transmission module includes a photoelectric converter and an optical fiber.
[0012] Furthermore, the colorimetric card can be adjusted according to the monitored color of the wastewater.
[0013] A wastewater colorimetric online identification method based on image processing, utilizing the aforementioned wastewater colorimetric online identification system, includes the following steps:
[0014] S1. Collect underwater images of wastewater, establish an image database, and determine the chromaticity corresponding to different underwater images of wastewater;
[0015] S2. Calculate the pixel distribution histogram of the underwater image and perform fast Fourier transform processing to obtain the processed image. Compare the processed image with the turbidity threshold. If it exceeds the turbidity threshold, output the turbidity signal, stop the current round of calculation, and return to step S1; otherwise, proceed to step S3.
[0016] S3. Perform image edge detection on the processed image. If an image edge other than the background color chart is detected, it is determined that there is a suspended object, the suspended object signal is output, and the process proceeds to step S4; otherwise, the process proceeds to step S5.
[0017] S4. Extract the RGB pixel matrix of the underwater image, set the pixels in the RGB pixel matrix of the image location where the suspended object is located in step S3 to 0, and proceed to step S5;
[0018] S5. Extract underwater image features, detect changes in features between the white backplate and the colorimetric card, and establish a model of the correspondence between image feature values and colorimetric values based on the corresponding chromaticity measured in step S1.
[0019] S6. For the underwater image of the wastewater to be tested, execute steps S2 to S4, input the image feature values corresponding to the obtained underwater image of the wastewater to be tested into the image feature value and colorimetric correspondence model, and output the colorimetric detection result.
[0020] Furthermore, one or more operators from Sobel, Prewitt, and Canny are used to perform image edge detection on the processed image.
[0021] Furthermore, underwater image features are extracted using color moments.
[0022] The beneficial effects of this invention are as follows: The wastewater color online identification system and method disclosed in this invention, based on image processing, can easily identify the color of wastewater during the treatment process by building a simple image acquisition and identification device. Simultaneously, the real-time image display facilitates observation of the water condition and allows for visual identification of water turbidity. Utilizing color and turbidity information can effectively reflect the reaction status of intermediate processes, thereby guiding the addition of reagents in the pretreatment stage, ultimately achieving stable treatment results and reducing reagent dosage. Attached Figure Description
[0023] The present invention will be further described below with reference to the accompanying drawings and embodiments:
[0024] Figure 1 This is a schematic diagram of the wastewater color online identification system of the present invention;
[0025] Figure 2 This is a schematic diagram illustrating the principle of the online wastewater color identification method of the present invention;
[0026] Figure 3 This is a schematic diagram showing the comparison between the chromaticity calculated by the image feature value and chromaticity correspondence model of the present invention and the actual chromaticity;
[0027] Among them, 1-industrial camera, 2-light shield, 3-white back panel, 4-color chart, 5-signal transmission module, 6-server, 7-display device. Detailed Implementation
[0028] The present invention will be further described below with reference to the accompanying drawings, as shown in the figures:
[0029] The wastewater color online identification system based on image processing of the present invention includes an image acquisition module, a signal transmission module 5, and an analysis and display module;
[0030] The image acquisition module is used to acquire wastewater image information;
[0031] The analysis and display module is used to receive wastewater image information, perform wastewater image analysis, and display the wastewater color recognition results;
[0032] The signal transmission module 5 is used to transmit the wastewater image information acquired by the image acquisition module to the analysis and display module.
[0033] In this embodiment, as Figure 1 As shown, the image acquisition module includes an industrial camera 1, an active light source, a light shield 2, a white backplate 3, and a colorimetric card 4; the industrial camera 1 is used to capture images of wastewater.
[0034] By setting up the light shield 2, the influence of the light source on the image is prevented or reduced, thereby improving the quality and stability of the captured image.
[0035] By using the white background plate 3 for image acquisition, a reference benchmark for the camera system in terms of white balance and brightness can be obtained, which helps to remove background noise or other interference in the image, making subsequent feature extraction more accurate. By comparing the objects in the image with the white background plate 3, the region of interest can be more easily identified and separated.
[0036] By detecting the colors on colorimeter 4, the color balance of the image can be adjusted to ensure that the colors in the image are consistent with the colors in the actual scene. The various color patches on colorimeter 4 provide a reference standard for image feature extraction, allowing for the identification of each color patch on colorimeter 4 and further analysis and processing based on the position and features of these color patches.
[0037] In this embodiment, the analysis and display module includes a server 6 and a display device 7. The server 6 can be used for image analysis, establishing an image database, and constructing an image feature value and chromaticity correspondence model; the display device 7 is used to display analysis results and chromaticity detection results.
[0038] In this embodiment, the signal transmission module 5 includes a photoelectric converter and an optical fiber. The photoelectric converter converts the optical signals of an image acquired by a camera or optical sensor into electrical signals; the optical fiber serves as the transmission medium, responsible for transmitting the image data obtained by the photoelectric converter to the analysis and display module via optical signals.
[0039] In this embodiment, the colorimetric card 4 can be adjusted according to the monitored wastewater color. Specifically, the colorimetric card 4 can be adjusted according to the monitored wastewater color, and is set by default to red, yellow, blue, and green primary colors.
[0040] This invention also relates to an online wastewater colorimetric identification method based on image processing, utilizing the online wastewater colorimetric identification system described in the above embodiments, combined with... Figure 2 It includes the following steps:
[0041] S1. Collect underwater images of wastewater, establish an image database, and determine the chromaticity corresponding to different underwater images of wastewater; wherein, a colorimeter with a measurement principle conforming to the water quality colorimetry determination method specified in GB / T5750.4-2006 is used to determine the chromaticity corresponding to different underwater images of wastewater; for example, the measured chromaticity value is between 5 and 40;
[0042] S2. Calculate the pixel distribution histogram of the underwater image and perform fast Fourier transform processing to obtain the processed image. Compare the processed image with the turbidity threshold. If it exceeds the turbidity threshold, output the turbidity signal, stop the current round of calculation, and return to step S1; otherwise, proceed to step S3. The turbidity threshold can be set according to the differentiated characteristics of wastewater and combined with the actual working conditions.
[0043] By calculating the pixel distribution histogram of an image, a binarized image can be obtained. Binarization converts the pixel values in the image into only two values, typically 0 and 255, making the image black and white. This simplifies the image, highlights the shape and structure of the target object, and reduces details and information in the image. Analyzing the spectral characteristics of the image using Fast Fourier Transform (FFT) is helpful for image signal processing and filtering.
[0044] S3. Perform image edge detection on the processed image. If an image edge other than the background color chart 4 is detected, it is determined that there is a suspended object, the suspended object signal is output, and the process proceeds to step S4; otherwise, the process proceeds to step S5. Among them, one or more operators of Sobel, Prewitt and Canny are used to perform image edge detection on the processed image.
[0045] S4. Extract the RGB pixel matrix of the underwater image, set the pixels in the RGB pixel matrix of the image location where the suspended object is located in step S3 to 0, and proceed to step S5;
[0046] S5. Extract underwater image features, detect feature changes between the white backplate 3 and the colorimetric card 4, and establish an image feature value and chromaticity correspondence model based on the corresponding chromaticity measured in step S1. Underwater image features are extracted using color moments, which are statistical features used to describe the color distribution of an image. For example, the HSV color moment model is an image representation based on hue (H), saturation (S), and lightness (V). The comparison effect between the chromaticity calculated by the image feature value and chromaticity correspondence model and the actual chromaticity is shown in the figure. Figure 3 As shown;
[0047] S6. For the underwater image of the wastewater to be tested, execute steps S2 to S4, input the image feature values corresponding to the obtained underwater image of the wastewater to be tested into the image feature value and colorimetric correspondence model, and output the colorimetric detection result.
[0048] The wastewater color online identification system and method of the present invention are used to identify the color and turbidity of wastewater in the intermediate process of reaction. It can simultaneously observe the turbidity and color of the water. The system is simple to build, easy to operate, and has high stability, providing technical guidance for the addition of reagents in the pretreatment stage.
[0049] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. An image processing-based online identification method for wastewater chromaticity, characterized in that: Utilizing an online wastewater color identification system; The wastewater color online identification system includes an image acquisition module, a signal transmission module, and an analysis and display module; The image acquisition module is used to acquire wastewater image information; The analysis and display module is used to receive wastewater image information, perform wastewater image analysis, and display the wastewater color recognition results; The signal transmission module is used to transmit the wastewater image information acquired by the image acquisition module to the analysis and display module; The online wastewater color identification method includes the following steps: S1. Collect underwater images of wastewater, establish an image database, and determine the chromaticity corresponding to different underwater images of wastewater; S2. Calculate the pixel distribution histogram of the underwater image and perform fast Fourier transform processing to obtain the processed image. Compare the processed image with the turbidity threshold. If it exceeds the turbidity threshold, output the turbidity signal, stop the current round of calculation, and return to step S1; otherwise, proceed to step S3. S3. Perform image edge detection on the processed image. If an image edge other than the background color chart is detected, it is determined that there is a suspended object, the suspended object signal is output, and the process proceeds to step S4; otherwise, the process proceeds to step S5. S4. Extract the RGB pixel matrix of the underwater image, set the pixels in the RGB pixel matrix of the image location where the suspended object is located in step S3 to 0, and proceed to step S5; S5. Extract underwater image features, detect changes in features between the white backplate and the colorimetric card, and establish a model of the correspondence between image feature values and colorimetric values based on the corresponding chromaticity measured in step S1. S6. For the underwater image of the wastewater to be tested, execute steps S2 to S4, input the image feature values corresponding to the obtained underwater image of the wastewater to be tested into the image feature value and colorimetric correspondence model, and output the colorimetric detection result.
2. The online wastewater color recognition method based on image processing according to claim 1, characterized in that: The image acquisition module includes an industrial camera, an active light source, a light shield, a white backplate, and a colorimetric card; the industrial camera is used to capture images of wastewater.
3. The online wastewater color recognition method based on image processing according to claim 1, characterized in that: The analysis and display module includes a server and a display device.
4. The online wastewater color recognition method based on image processing according to claim 1, characterized in that: The signal transmission module includes a photoelectric converter and an optical fiber.
5. The online wastewater color recognition method based on image processing according to claim 2, characterized in that: The colorimetric card is adjusted based on the monitored color of the wastewater.
6. The online wastewater color recognition method based on image processing according to claim 1, characterized in that: Image edge detection is performed on the processed image using one or more operators from Sobel, Prewitt, and Canny.
7. The online wastewater color recognition method based on image processing according to claim 1, characterized in that: Features of underwater images are extracted using color moments.