Liquid parameter measuring system and measuring method thereof

By combining an optical imaging module and a light intensity acquisition module, the liquid parameter measurement system solves the problems of low accuracy in low turbidity measurement using the transmission diffuse method and high cost of the infrared spectroscopy method, thus achieving low-cost and high-efficiency liquid parameter measurement.

CN116223377BActive Publication Date: 2025-12-09SHENZHEN TECH UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310143195.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-16
Publication Date
2025-12-09
Estimated Expiration
2043-02-16

AI Technical Summary

Technical Problem

In existing technologies, the transmission diffusion method has low accuracy when measuring low-turbidity liquids, while the infrared spectroscopy method is expensive and complex to operate, and cannot efficiently and accurately measure liquid parameters.

Method used

A liquid parameter measurement system combining an optical imaging module and a light intensity acquisition module is used. The optical imaging module measures the number of suspended particles in low-turbidity liquids, while the light intensity acquisition module measures the turbidity of high-turbidity liquids. The liquid parameters are determined by combining the preset parameters using a strategy.

Benefits of technology

It improves the accuracy of liquid measurement parameters, reduces device costs, expands the measurement range, and is suitable for precise measurement of liquids with low and high turbidity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116223377B_ABST
    Figure CN116223377B_ABST
Patent Text Reader

Abstract

The application discloses a liquid parameter measurement system and a measurement method thereof. The system comprises an optical platform, an optical imaging module, a light intensity acquisition module, a control module and a container. The optical platform is provided with a light source, and the container is used for containing a liquid to be measured. The light source is used for irradiating the liquid to be measured. The optical imaging module is connected with the control module, and the light intensity acquisition module is connected with the control module. The optical imaging module is used for shooting an image of the liquid to be measured under irradiation. The light intensity acquisition module is used for acquiring light intensity information of the light source after passing through the liquid to be measured. The control module is used for receiving the image and the light intensity information, determining a parameter of the liquid to be measured according to a preset parameter determination strategy. The embodiments provided by the application are favorable for improving the accuracy of liquid measurement parameters, reducing the cost of the device, and can be widely applied in the field of computer technology.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, and particularly relates to a liquid parameter measurement system and a measurement method thereof. BACKGROUND

[0002] The measurement of turbidity of liquid is applied to all aspects of production and life. In the related art, the turbidity of liquid is usually measured by a transmission diffusion method or an infrared spectrum measurement method. The transmission diffusion method has high accuracy for high turbidity liquid with a turbidity of more than 5FNU, but has low accuracy for low turbidity liquid. The infrared spectrum measurement method requires expensive measurement instruments and is complicated to operate. SUMMARY

[0003] The present application aims to at least partly solve one of the problems in the prior art.

[0004] To this end, the present application aims to provide a liquid parameter measurement system and a measurement method thereof which are accurate and efficient.

[0005] To achieve the above technical purpose, the technical solution adopted by the embodiments of the present application comprises:

[0006] In one aspect, the embodiments of the present application provide a liquid parameter measurement system, comprising:

[0007] The liquid parameter measurement system of the embodiments of the present application comprises an optical platform, an optical imaging module, a light intensity acquisition module, a control module and a container. The optical platform is provided with a light source, and the container is used to hold a liquid to be measured. The light source is used to irradiate the liquid to be measured. The optical imaging module is connected to the control module, and the light intensity acquisition module is connected to the control module. The optical imaging module is used to take an image of the liquid to be measured under irradiation. The light intensity acquisition module is used to acquire light intensity information of the light source after passing through the liquid to be measured. The control module is used to receive the image and the light intensity information, determine the parameter information of the liquid to be measured according to a preset parameter determination strategy. The embodiments of the present application can alleviate the problem of low accuracy of the transmission diffusion method at low turbidity by acquiring information of the liquid to be measured by the optical imaging module and the light intensity acquisition module and determining the parameter information of the liquid to be measured based on the preset parameter determination strategy. Therefore, the embodiments provided by the present application are beneficial to improving the accuracy of liquid measurement parameters, and at the same time, reducing the cost of the device.

[0008] In addition, the liquid parameter measurement system according to the above embodiments of the present application can have the following additional technical features:

[0009] Further, the liquid parameter measurement system of the embodiment of the present application, the light intensity collection module comprises a photosensitive resistor and a microprocessor unit, the photosensitive resistor is connected with the control module through the microprocessor unit.

[0010] Further, in one embodiment of the present application, the optical platform comprises a base for placing the container, and a small hole is arranged in the base, light emitted by the light source passes through the liquid to be measured and the small hole to reach the light intensity collection module.

[0011] Further, in one embodiment of the present application, the light source comprises an alternating current light source.

[0012] In another aspect, the embodiment of the present application provides a liquid parameter measurement method, applied to the liquid parameter measurement system described above, and the method comprises:

[0013] acquiring first image information of the liquid to be measured under light irradiation;

[0014] acquiring first light intensity information of the light source after passing through the liquid to be measured;

[0015] determining parameter information of the liquid to be measured according to the first image information and the first light intensity information.

[0016] Further, the liquid parameter measurement method of the embodiment of the present application further comprises:

[0017] performing edge processing on the first image information to determine first parameter information, and the first parameter information is used to represent the number of suspended particles in the liquid to be measured;

[0018] determining second parameter information according to the first light intensity information, and the second parameter information is used to represent the turbidity of the liquid to be measured;

[0019] determining the parameter information of the liquid to be measured based on the first parameter information and the second parameter information according to a preset parameter determination strategy.

[0020] Further, the liquid parameter measurement method of the embodiment of the present application, wherein the determination of the parameter information of the liquid to be measured based on the first parameter information and the second parameter information according to the preset parameter determination strategy comprises:

[0021] if the first parameter information is greater than a first preset parameter information, the parameter information of the liquid to be measured is determined as the second parameter information.

[0022] Further, the liquid parameter measurement method of the embodiment of the present application, wherein the determination of the parameter information of the liquid to be measured based on the first parameter information and the second parameter information according to the preset parameter determination strategy comprises:

[0023] determining a first weight of the first parameter information and a second weight of the second parameter information if the first parameter information is in a preset interval;

[0024] determining parameter information of the liquid to be measured according to the first parameter information, the first weight, the second parameter information and the second weight.

[0025] Further, the liquid parameter measurement method provided in the embodiments of the present application, the edge processing on the first image information to determine the first parameter information comprises:

[0026] filtering and denoising the first image information to obtain second image information;

[0027] edge detection processing on the second image information to obtain third image information;

[0028] binarization processing on the third image information to obtain fourth image information;

[0029] erosion and expansion processing on the fourth image information to determine the first parameter information.

[0030] Further, the liquid parameter measurement method provided in the embodiments of the present application, the erosion and expansion processing on the fourth image information to determine the first parameter information comprises:

[0031] erosion and expansion processing and contour detection processing on the fourth image information to obtain first particle information;

[0032] determining the first parameter information based on the first particle information according to a preset first parameter determination formula;

[0033] The preset first parameter determination formula is used to represent the relationship between the first particle information and the turbidity of the liquid to be measured, and the first particle information is used to represent the number of particles in the first image information.

[0034] On the other hand, the embodiments of the present application provide a liquid parameter measurement device, comprising:

[0035] at least one processor;

[0036] at least one memory for storing at least one program;

[0037] When the at least one program is executed by the at least one processor, the at least one processor implements any of the above-mentioned liquid parameter measurement methods.

[0038] In another aspect, an embodiment of the present application provides a storage medium having stored therein a program executable by a processor for implementing any of the above liquid parameter measurement methods when executed by the processor.

[0039] The embodiment of the present application collects information of the liquid to be measured through two ways of optical imaging module and light intensity collection module, determines the parameter information of the liquid to be measured based on a preset parameter determination strategy, and can relieve the problem of low accuracy of the transmission diffusion method under low turbidity. Therefore, the embodiment provided by the present application is beneficial to improve the accuracy of liquid measurement parameters, and meanwhile, reduce the cost of the device. BRIEF DESCRIPTION OF DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the following introduces the drawings of the related technical solutions in the embodiments of the present application or the prior art. It should be understood that the drawings in the following introduction are only for the convenience of clearly describing some embodiments of the technical solutions of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.

[0041] Figure 1 A structural schematic diagram of an embodiment of the liquid parameter measurement system provided by the present application;

[0042] Figure 2 A structural schematic diagram of another embodiment of the liquid parameter measurement system provided by the present application;

[0043] Figure 3 A circuit principle diagram of an embodiment of the light intensity collection module provided by the present application;

[0044] Figure 4 A flowchart of an embodiment of the liquid parameter measurement method provided by the present application;

[0045] Figure 5 An effect schematic diagram of an embodiment of the first image information provided by the present application;

[0046] Figure 6 A function curve schematic diagram of an embodiment of the preset first parameter determination formula provided by the present application;

[0047] Figure 7 A function curve schematic diagram of an embodiment of the preset second parameter determination formula provided by the present application;

[0048] Figure 8 A flowchart of another embodiment of the liquid parameter measurement method provided by the present application;

[0049] Figure 9A structural schematic diagram of one embodiment of the liquid parameter measuring device provided in the present application. DETAILED DESCRIPTION

[0050] Embodiments of the present application are described in detail below with reference to examples shown in the attached drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and are only used to explain the present application and cannot be understood as a limitation of the present application. For the step numbers in the following embodiments, they are only set for the convenience of explanation and description, and the order between the steps is not limited in any way, and the execution order of each step in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.

[0051] The existing turbidity measurement method, based on the relevant standards, defines the transmission method and the scattering method as two standard measurement methods for the design of turbidimeter. The transmission method is to determine the turbidity of the water sample by measuring the attenuation of the transmitted light intensity caused by the absorption and scattering of the incident light by the suspended particulate matter in the water sample. The scattering method is to determine the turbidity of the water sample by measuring the scattering light intensity generated by the scattering of the incident light beam by the suspended particulate matter in the water sample. These two detection methods have their own characteristics in the relationship between the measured turbidity and the electrical signal, the calibration method of the instrument, the selection and stability of the light source, etc.

[0052] The second implementation method is to use an infrared spectrometer. When a certain frequency of infrared light is focused to irradiate the analyzed sample, if the vibration frequency of a certain group in the molecule is the same as the irradiated infrared light frequency, resonance will occur, thereby absorbing infrared light of a certain frequency. This case of absorption of infrared light by the molecule is recorded by the instrument, and the spectrum reflecting the characteristics of the sample composition can be obtained, and the turbidity of the liquid can be inferred.

[0053] However, when measuring the concentration of formaldehyde polymer turbidity standard liquid, the transmission method detection system cannot distinguish the concentration of the liquid to be measured under normal circumstances. Therefore, the transmission method is not suitable for measuring low turbidity liquid, and the system performance and sensitivity cannot meet the requirements. However, when measuring the standard liquid with a concentration of 5FNU and 10FNU, the error is obviously decreasing. The fundamental reason is that the transmission method is not suitable for low turbidity detection, but only for high turbidity water quality detection. Therefore, the transmission method is relatively simple in structure, and generally has a large error in low concentration water sample detection, and has better stability and accuracy in high turbidity water sample detection. The instrument used in infrared spectrum measurement is expensive and the operation is complex.

[0054] Based on this, the application proposes a liquid parameter measurement system, which aims to transmit the image captured by the camera to the designed image processing system to measure the number of suspended particles in the low turbidity water sample to be measured by edge computing. At the same time, for the high turbidity water sample to be measured, the light intensity data is used to represent the turbidity degree of the high turbidity liquid. The whole system realizes the super-accurate detection of suspended particles in low turbidity liquid water sample and the representation of the turbidity degree of high turbidity liquid water sample, and continues the convenience of general transmission method for detecting high turbidity liquid turbidity degree while making up for the defect that traditional transmission method cannot measure low turbidity liquid.

[0055] The liquid parameter measurement system and method according to the embodiments of the application are described in detail below with reference to the accompanying drawings. First, a liquid parameter measurement system according to an embodiment of the application is described with reference to the accompanying drawings.

[0056] Figure 1 is a structural schematic diagram of a liquid parameter measurement system according to an embodiment of the application. The system specifically comprises:

[0057] an optical platform, an optical imaging module 110, a light intensity acquisition module 130, a control module 120 and a container;

[0058] Among them, the optical platform is installed with a light source, and the container is used to hold the liquid to be measured; the light source is used to irradiate the liquid to be measured;

[0059] The optical imaging module is connected with the control module, and the light intensity acquisition module is connected with the control module;

[0060] The optical imaging module is used to shoot the image of the liquid to be measured under light; the light intensity acquisition module is used to acquire the light intensity information after the light source passes through the liquid to be measured; and the control module is used to receive the image and the light intensity information, determine the parameter information of the liquid to be measured according to a preset parameter determination strategy.

[0061] In some possible implementation manners, the application determines the turbidity degree of the liquid through the joint action of the optical imaging module and the light intensity acquisition module. Specifically, for low turbidity liquid, the optical imaging module is used for parameter determination, which alleviates the problem of low accuracy of transmission method; for high turbidity liquid, the light intensity acquisition module is used for parameter determination, which is low in cost and simple in operation. The optical platform is used to place the system to realize the parameter determination of the liquid. The light source is used to emit light to irradiate the liquid to be measured, which is convenient for the light intensity acquisition module and the optical imaging module to collect information.

[0062] Reference Figure 2In the shown embodiment, the optical platform 220 is used to place the device, the power supply 210 can be a laser emitting source. The optical imaging module camera shooting acquisition device 240; the container 230 is used to hold the liquid to be measured; the base 250 is used to place the container. It can be understood that the measurement system provided by the application is simple to operate, fast to process, low in instrument cost, and uses the method of combining images and light intensity to expand the measurable impurity concentration range (it is found through experiments that the light intensity acquisition module can measure the turbidity in the area with high turbidity (the soil content is greater than 0.05 g / L), and the turbidity in the area with low turbidity (the soil content is less than 0.05 g / L) cannot be accurately measured. The combination of the two can complement each other in the measurable range). The embodiment provided by the application can be used to detect the filtering capacity of a household filter, detect the turbidity of lake water, detect the impurity content of daily use water or drinking water, and the like, and can quickly, simply and accurately measure the impurity concentration range.

[0063] Optionally, the liquid parameter measurement system in the embodiment of the application, the light intensity acquisition module comprises a photosensitive resistor and a microprocessor unit, and the photosensitive resistor is connected with the control module through the microprocessor unit.

[0064] Referring to Figure 2 In the shown embodiment, the photosensitive resistor and the processor unit 260 in the light intensity acquisition module are used to realize the collection of light intensity information. Specifically, the light intensity information is converted into an electrical signal through the photosensitive resistor, the information is processed through the processor unit (exemplarily, it can be an STM32F103C8T6 chip), and then transmitted to the control module to determine the liquid parameter to be measured. Figure 3 In the shown embodiment, the photosensitive resistor related circuit diagram amplifies the collected signal and then transmits it to the processor unit to realize the collection of light intensity information.

[0065] Optionally, the liquid parameter measurement system in the embodiment of the application, the optical platform comprises a base, and the base is used to place the container.

[0066] The base is provided with a small hole, and the light emitted by the light source passes through the liquid to be measured and the small hole to reach the light intensity acquisition module.

[0067] Specifically, the container is placed through the base, and at the same time, the light path is formed through the small hole in the base, so as to facilitate the information collection of the light intensity acquisition module.

[0068] Optionally, the liquid parameter measurement system in the embodiment of the application, the light source comprises an alternating current light source.

[0069] It can be understood that, in the measurement method of light intensity data, the input light signal is modulated into an alternating current signal, irradiated onto the liquid to be measured, and then the alternating transmission / scattering signal is collected, thereby improving the signal-to-noise ratio of the signal and further improving the accuracy of parameter measurement.

[0070] It can be understood that, based on Figure 2 As shown in one embodiment, the system works as follows: the optical platform provides a stable detection environment support for the entire system, ensuring the stability of the optical path. The power supply can be a 650nm laser light source, and the light source vertically emits laser light through the liquid to be measured. The camera captures the scattering and diffusing phenomenon of the suspended particles in the liquid to be measured against the laser light, and detects the suspended particles in the liquid under lower turbidity through image processing method; the function of the base is to support the liquid to be measured, and a through hole is arranged at the center of the base to ensure that the light path transmits through the liquid to be measured and reaches the light intensity information acquisition circuit at the bottom, and the light intensity transmission attenuation function reflects the turbidity of the liquid under higher turbidity.

[0071] As can be seen from the above, the embodiments of the present application can collect information of the liquid to be measured through the optical imaging module and the light intensity acquisition module, determine the parameter information of the liquid to be measured based on the preset parameter determination strategy, and can alleviate the problem of low accuracy of the transmission diffusion method under low turbidity. Therefore, the embodiments provided by the present application are beneficial to improve the accuracy of liquid measurement parameters, and at the same time, reduce the cost of the device. For example, the detection and determination of the turbidity of lake water can be realized by using the system provided by the embodiments of the present application, and the turbidity of common liquid can be detected by using image processing technology and light intensity transmission attenuation function; for the detection of suspended particles in the purification process of water in a waterworks, the system provided by the embodiments of the present application can realize the detection of suspended particles in the liquid under extremely low turbidity.

[0072] Secondly, the liquid parameter measurement method according to the embodiments of the present application will be described with reference to the accompanying drawings.

[0073] Referring to Figure 4 , a liquid parameter measurement method is provided in the embodiments of the present application. The liquid parameter measurement method in the embodiments of the present application can be applied to a terminal, a server, or software running in a terminal or a server. The terminal can be a tablet computer, a notebook computer, a desktop computer, etc., but is not limited thereto. The server can be a standalone physical server, a server cluster or a distributed system composed of multiple physical servers, a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and artificial intelligence platforms. The liquid parameter measurement method in the embodiments of the present application is applied to the liquid parameter measurement system described above, and mainly includes the following steps:

[0074] S100: acquire first image information of the to-be-measured liquid under light;

[0075] S200: acquire first light intensity information after the light source passes through the to-be-measured liquid;

[0076] S300: determine parameter information of the to-be-measured liquid according to the first image information and the first light intensity information.

[0077] Specifically, the first image information of the to-be-measured liquid under light is acquired by the optical imaging module; meanwhile, the first light intensity information after the light source passes through the to-be-measured liquid is acquired by the light intensity acquisition module. Both the information are input into the control module for liquid parameter determination. It can be understood that the turbidity degree of the low-turbidity liquid can be accurately measured by the optical imaging module; the turbidity degree of the high-turbidity liquid can be accurately measured by the light intensity acquisition module. Therefore, the turbidity degree of the liquid can be accurately measured by the interaction of the two modules, and the measurement efficiency is improved.

[0078] Optionally, the liquid parameter measurement method in the embodiment of the present application further comprises:

[0079] performing edge processing on the first image information to determine first parameter information; the first parameter information is used to represent the number of suspended particles in the to-be-measured liquid;

[0080] determine second parameter information according to the first light intensity information; the second parameter information is used to represent the turbidity of the to-be-measured liquid;

[0081] determine the parameter information of the to-be-measured liquid based on the first parameter information and the second parameter information according to a preset parameter determination strategy.

[0082] Specifically, the edge processing on the first image can obtain the granularity in the first image information representing the turbidity degree of the liquid; and the first light intensity information can reflect the turbidity of the to-be-measured liquid. Therefore, the information acquired by the optical imaging module and the light intensity acquisition module is processed to obtain the parameter of the to-be-measured liquid determined by the two modules. However, the result determined by which module as the final result, or how to comprehensively consider the results determined by the two modules, can be limited by the preset parameter determination strategy. Therefore, the parameter information of the to-be-measured liquid is determined by the preset parameter determination strategy.

[0083] Optionally, the liquid parameter measurement method in the embodiment of the present application, the parameter information of the to-be-measured liquid is determined based on the first parameter information and the second parameter information according to the preset parameter determination strategy, comprising:

[0084] if the first parameter information is greater than the first preset parameter information, the parameter information of the to-be-measured liquid is determined as the second parameter information.

[0085] It can be understood that the optical imaging module is suitable for turbidity measurement of low turbidity liquid. Therefore, when the result measured by the optical imaging module is that the first parameter information is greater than the first preset parameter information, it indicates that the turbidity of the liquid to be measured is relatively high at this time, and the data of the light intensity acquisition module is suitable at this time, that is, the parameter information of the liquid to be measured is determined as the second parameter information. It can be understood that the first preset parameter information can be set according to the accuracy, reliability or user's demand of the specific optical imaging module, and the application does not limit the determining factors and specific values of the first preset parameter information. It should be noted that if the second parameter information is less than the second preset parameter information, the parameter information of the liquid to be measured is determined as the first parameter information. Similarly, the light intensity acquisition module is suitable for turbidity measurement of high turbidity liquid. Therefore, when the result measured by the light intensity acquisition module is that the second parameter information is less than the second preset parameter information, it indicates that the turbidity of the liquid to be measured is relatively low at this time, and the data of the optical imaging module is suitable at this time, that is, the parameter information of the liquid to be measured is determined as the first parameter information.

[0086] Optionally, in the liquid parameter measurement method in the embodiment of the application, the parameter information of the liquid to be measured is determined according to a preset parameter determination strategy based on the first parameter information and the second parameter information, and the parameter determination strategy comprises:

[0087] If the first parameter information is in a preset interval, a first weight of the first parameter information and a second weight of the second parameter information are determined.

[0088] The parameter information of the liquid to be measured is determined according to the first parameter information, the first weight, the second parameter information and the second weight.

[0089] It can be understood that for the measurement method of turbidity in the interval segment with little difference between the accuracies of the two modules, the optical imaging module can be used for measurement, the light intensity acquisition module can be used for measurement, or the two modules can be used for measurement together. Specifically, by setting the weights of the two modules, the parameter information of the liquid to be measured is determined. It can be understood that the specific setting of the weight can be considered from multiple angles such as the type of the liquid to be measured, the specific device composition of the two modules, the influence of the test environment, and the like, and the application does not limit the specific setting method and value of the weight.

[0090] Optionally, in the liquid parameter measurement method in the embodiment of the application, the first image information is subjected to edge processing to determine the first parameter information, and the edge processing comprises:

[0091] The first image information is subjected to filtering and denoising processing to obtain second image information.

[0092] The second image information is subjected to edge detection processing to obtain third image information.

[0093] The third image information is binarized to obtain fourth image information;

[0094] The fourth image information is subjected to erosion and expansion processing to determine first parameter information.

[0095] In some possible implementations, the application can process the acquisition process and the image processing process of the optical imaging module through the following steps: a camera is used to acquire an image of a liquid irradiated by a dilated laser beam in darkness; the image is subjected to filtering and noise removal processing to remove the influence of noise on the image and make the image smooth, and the width of the edge can also be increased (through a variety of filtering comparison experiments, the image can be processed by Gaussian filtering, and no specific limitation is applied); the image is subjected to canny edge detection algorithm processing, the gradient value and the gradient direction are calculated first, then the non-maximum value is filtered, and finally the upper and lower thresholds are used to detect the edge, and the pixels of the particles in the water are extracted; for example, the detection threshold can be (5, 15). The gradient value and the gradient direction are calculated through the following formula:

[0096]

[0097]

[0098] where g x (m, n), g y (m, n) are the x and y direction gradient values.

[0099] Then, the region to be detected in the image, i.e., the specific region of the liquid to be measured, is intercepted. The image is subjected to binarization processing, the pixel points less than 3 are changed to 0, and the pixel points greater than 3 are changed to 255, so that the pixel points of the image are only 0 and 1 (only black and white colors, black is the background and white is the foreground), of course, it can be understood that the above is an example, and the setting of the related threshold can be set according to actual needs. Morphological noise removal is performed to remove irregular impurities; erosion and expansion processing is performed to segment independent image pixel elements, and each pixel output represents a particle; the particle number is counted after the particle contour is detected by using a contour detection function, and the particle number result is output.

[0100] Optionally, the liquid parameter measurement method in the embodiment of the application, the erosion and expansion processing of the fourth image information to determine the first parameter information, includes:

[0101] The fourth image information is subjected to erosion and expansion processing and contour detection processing to obtain first particle information;

[0102] The first parameter information is determined based on the first particle information according to a preset first parameter determination formula;

[0103] The preset first parameter determination formula is used to represent the relationship between the first particle information and the turbidity degree of the liquid to be measured.

[0104] In some possible implementation manners, the first particle information is converted into the first parameter information representing the turbidity degree by the first parameter determination formula. It can be understood that the first light intensity information is converted into the second parameter information representing the turbidity degree by the second parameter determination formula. Exemplarily, the first parameter determination formula and the second parameter determination formula can be set by experiments or experience. Specifically, refer to the following steps:

[0105] (1) The diameter of the laser beam is adjusted to the middle range. If the beam is too thin, the liquid particles around the beam cannot be measured. If the beam is too thick, the light intensity will be dispersed and the beam cannot pass through the liquid, so the beam is adjusted to the middle range.

[0106] (2) The photoresistor is placed under the laser to enable the resistor to completely receive the light intensity data of the laser transmitted through the water sample to be measured. The processor (exemplarily, it can be a Raspberry Pi) is fixed on one side of the container to enable it to completely photograph the whole container.

[0107] (3) 250 ml of clean water is prepared and placed under the laser to enable the laser to be vertically incident into the water, and the center point of the laser is at the center point of the container. The black cloth is covered, the whole experiment process is in a dark environment, the Raspberry Pi code is run, and the particle number in the clean water is detected by photographing.

[0108] (4) The soil is prepared. At the beginning of the experiment, 0.1 g of soil is put into 250 ml of clean water, and after stirring uniformly, it is placed in a fixed position and a dark environment to collect AD values and converted voltage values. The particle number obtained after processing the collected image is recorded.

[0109] (5) The water just experimented is continuously diluted by half, and the data is collected and recorded according to the method of step (4), until the particle number of the liquid is close to that of the clean water, and the AD sampling value and the converted voltage value are collected.

[0110] (6) At the same time, 0.1 g of soil is put into 250 ml of clean water, and 0.1 g of soil is added inside, until the light intensity information tends to be stable. The data is collected and recorded according to the method of step (4).

[0111] (7) The finally obtained data is fitted into a curve, and the change trend is observed.

[0112] In some possible implementation manners, the photographing image information result of the optical imaging module is as shown in Figure 5 The fitting curve is shown in Figure 6The horizontal coordinate is the concentration of the liquid to be measured, and the unit is g / L. The vertical coordinate is the image reading particle number, that is, the first particle information. The fitting function is y = 2.109e-0.05x+61.1 (that is, the first parameter determination formula).

[0113] y = 2.109e-0.05x+61.1 12 x 5 -2.026e 11 x 4 +6.245e 9 x 3 -7.709e 7 x 2 +4.087e 5 x+61.1

[0114] It can be understood that at a concentration of 0.05 g / L or more, due to the limited light intensity of the laser and the high turbidity of the liquid, the light intensity in part of the cup cannot reach the light intensity required for image acquisition, and the turbidity cannot be accurately measured. Therefore, when fitting the curve, the particle number of the liquid with a concentration of 0.05 g / L or less is used for fitting. The smaller the concentration, the fewer the particle number. Specifically, the turbidity of the liquid to be measured and the particle number in the first particle information are related, and the parameters are shown in Table 1.

[0115]

[0116] Table 1

[0117] Correspondingly, for the light intensity acquisition module, the relationship between the AD sampling value and the turbidity is tested, and the related results are shown in Table 2. The fitting graph of the results is shown in FIG. 2B. Figure 7 The corresponding fitting function (that is, the second parameter determination formula) is y = 1205x + 32.06. It can be understood that through repeated experimental detection, it is found that in the self-configured sample liquid concentration, the AD value of 250 ml of turbid liquid with a concentration of 0.05 g / L or less is stable in a range. When the laser transmits a liquid with a concentration of 0.05 g / L or more, the change amount of the collected AD value is large, and the greater the concentration, the greater the collected AD value.

[0118]

[0119]

[0120] Table 2

[0121] It should be noted that experiments have found that the turbidity range that can be measured by the photosensitive module is in the high turbidity (soil content greater than 0.05 g / L) region, and the turbidity of the liquid with less impurities cannot be accurately measured. The measurable turbidity range of the image processing module is in the low turbidity (soil content less than 0.05 g / L).

[0122] Referring to Figure 8 The execution steps of the embodiment shown are image acquisition by taking a picture, light intensity acquisition by photoelectric conversion, and finally integration and output of the parameters of the liquid. That is, the system can simultaneously perform light intensity information acquisition and image acquisition processing; the image can read the number of liquid particles at a low concentration of the liquid and detect the turbidity of the liquid at a low concentration; the light acquisition module can read the light intensity information of the liquid at a high concentration, thereby detecting the turbidity of the liquid at a high concentration. Through the embodiment of the present application, the accuracy of liquid parameter measurement is improved.

[0123] It can be seen that the contents in the above system embodiments are all applicable to the present method embodiment, the present method embodiment specifically realizes the same functions as the above system embodiments, and achieves the same beneficial effects as the above system embodiments.

[0124] Referring to Figure 9 The embodiment of the present application provides a liquid parameter measurement device, which comprises:

[0125] at least one processor 910;

[0126] at least one memory 920 for storing at least one program;

[0127] When the at least one program is executed by the at least one processor 910, the at least one processor 910 realizes the liquid parameter measurement method.

[0128] Similarly, the contents in the above method embodiments are all applicable to the present device embodiment, the present device embodiment specifically realizes the same functions as the above method embodiments, and achieves the same beneficial effects as the above method embodiments.

[0129] The embodiment of the present application also provides a computer readable storage medium, which stores a program executable by a processor 910, and the program executable by the processor 910 is used for executing the above-mentioned liquid parameter measurement method when executed by the processor.

[0130] Similarly, the contents in the above method embodiments are all applicable to the present device embodiment, the present device embodiment specifically realizes the same functions as the above method embodiments, and achieves the same beneficial effects as the above method embodiments.

[0131] In some alternative embodiments, the function / operations described in the block diagrams can not occur in the order described in the operational illustrations. For example, two blocks shown in succession can in fact be executed substantially concurrently or the blocks can sometimes be executed in the reverse order, depending upon the functionality / operations involved. Also, although the embodiments presented in the flow diagrams are shown as a sequence of operations, it is to be understood that the logical flow is merely illustrative of alternative embodiments. The disclosed methods are not limited to the order of operations presented herein. Alternative embodiments can be contemplated where the order of operations is changed, and where sub operations described as part of a larger operation are executed in a different order, or are executed concurrently.

[0132] Further, while the present application has been described in the context of functional modules, it is to be understood that one or more of the functions and / or features can be integrated in a single physical device and / or software module, or one or more functions and / or features can be implemented in separate physical devices or software modules. It is also to be understood that detailed discussion of the actual implementation of each module is unnecessary to an understanding of the present application. Rather, the actual implementation is within the routine of an engineer's knowledge given the property, functionality and internal relationships of the various functional modules disclosed herein. Accordingly, the present application is not limited to purely hardware or software implementations, but rather encompasses hybrid implementations wherein some functions are implemented in hardware and some are implemented in software. Moreover, it is to be understood that the particular concepts disclosed are merely illustrative and that the scope of the present application is not limited to the specific embodiments presented herein. The scope of the present application is limited only by the claims appended hereto, and equivalents thereof.

[0133] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several programs used to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0134] The logic and / or steps represented in the flow diagrams or otherwise described herein, for example, can be embodied in non-transitory computer- readable media, executed by a program executing system, apparatus, or device, such as a computer-based system, a processor-based system, or other system that can fetch the program (from the system, apparatus, or device) and execute the program, or in conjunction with such a program executing system, apparatus, or device. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the program executing system, apparatus, or device.

[0135] More specific examples (a non-exhaustive list) of the computer-readable medium include the following: an electrical connection (electronic) having one or more wires, a portable computer diskette (magnetic), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can also be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, for example, via optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and stored in a computer memory.

[0136] It should be understood that aspects of the present application can be implemented in hardware, software, firmware, or combinations thereof. In the above-described embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable program executing system. For example, if implemented in hardware, and as in another embodiment, any of the following technologies known in the art, or combinations thereof, can be used: discrete logic circuitry having logic gates for implementing logic functions upon data signals, application specific integrated circuits having appropriate combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), and the like.

[0137] In the above-described description of the present specification, the description referring to the terms "one embodiment," "another embodiment," or "some embodiments," and the like, means that the particular feature, structure, material, or characteristic being described in connection with the embodiment or example is included in at least one embodiment or example of the present application. The illustrative appearances of the above-described terms in the description are not necessarily referred to the same embodiment or example throughout the specification. Furthermore, the particular features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0138] While the embodiments of the application have been shown and described, it is to be understood that the embodiments can be varied, modified, substituted and changed by those skilled in the art without departing from the principles and spirit of the application, the scope of which is defined by the claims and their equivalents.

[0139] The above is a specific description of the preferred embodiments of the application, but the application is not limited to the described embodiments, and those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the application, and these equivalent modifications or substitutions are all included in the scope defined by the claims of the application.

Claims

1. A liquid parameter measuring system, characterized in that The system comprises an optical platform, an optical imaging module, a light intensity acquisition module, a control module and a container; The optical platform is provided with a light source, and the container is used for containing a liquid to be measured; the light source is used for irradiating the liquid to be measured; The optical imaging module is connected to the control module, and the light intensity acquisition module is connected to the control module; The optical imaging module is used for taking an image of the liquid to be measured under irradiation; the light intensity acquisition module is used for acquiring light intensity information of the light source after passing through the liquid to be measured; and the control module is used for receiving the image and the light intensity information, determining parameter information of the liquid to be measured according to a preset parameter determination strategy. The control module is further used for performing the following steps: Edge processing is performed on the image information to determine first parameter information; the first parameter information is used for representing a number of suspended particles in the liquid to be measured; Second parameter information is determined according to the light intensity information; the second parameter information is used for representing turbidity of the liquid to be measured; According to a preset parameter determination strategy, the parameter information of the liquid to be measured is determined based on the first parameter information and the second parameter information, wherein: If the first parameter information is greater than first preset parameter information, the parameter information of the liquid to be measured is determined as the second parameter information; If the first parameter information is within a preset interval, a first weight of the first parameter information and a second weight of the second parameter information are determined; and the parameter information of the liquid to be measured is determined according to the first parameter information, the first weight, the second parameter information and the second weight.

2. The liquid parameter measurement system of claim 1, wherein, The light intensity acquisition module comprises a photosensitive resistor and a microprocessor unit; the photosensitive resistor is connected to the control module through the microprocessor unit.

3. The liquid parameter measurement system of claim 1, wherein, The optical platform comprises a base for placing the container; A small hole is arranged in the base, and light emitted by the light source passes through the liquid to be measured and the small hole to reach the light intensity acquisition module.

4. The liquid parameter measurement system of claim 1, wherein, The light source comprises an alternating current light source.

5. A method of measuring a parameter of a liquid, characterized by, The method is applied to the liquid parameter measurement system of claim 1, and the method comprises: acquiring first image information of the liquid to be measured under irradiation; acquiring first light intensity information of the light source after passing through the liquid to be measured; determining parameter information of the liquid to be measured according to the first image information and the first light intensity information.

6. The method of claim 5, wherein, The method further comprises: edge processing is performed on the first image information to determine first parameter information; the first parameter information is used for representing a number of suspended particles in the liquid to be measured; second parameter information is determined according to the first light intensity information; the second parameter information is used for representing turbidity of the liquid to be measured; parameter information of the liquid to be measured is determined based on the first parameter information and the second parameter information according to a preset parameter determination strategy.

7. The method of claim 6, wherein, The parameter information of the liquid to be measured is determined based on the first parameter information and the second parameter information according to a preset parameter determination strategy, comprising: if the first parameter information is greater than first preset parameter information, the parameter information of the liquid to be measured is determined as the second parameter information.

8. The method of claim 6, wherein, The parameter information of the liquid to be measured is determined based on the first parameter information and the second parameter information according to a preset parameter determination strategy, comprising: If the first parameter information is in a preset interval, a first weight of the first parameter information and a second weight of second parameter information are determined; According to the first parameter information, the first weight, the second parameter information and the second weight, parameter information of the liquid to be measured is determined.

9. The method of claim 6, wherein, The edge processing on the first image information is performed to determine the first parameter information, including: The first image information is filtered and denoised to obtain second image information; The second image information is subjected to edge detection processing to obtain third image information; The third image information is subjected to binarization processing to obtain fourth image information; The fourth image information is subjected to erosion and expansion processing to determine the first parameter information.

10. The method of claim 9, wherein, The erosion and expansion processing on the fourth image information to determine the first parameter information includes: The fourth image information is subjected to erosion and expansion processing and contour detection processing to obtain first particle information; According to a preset first parameter determination formula, the first parameter information is determined based on the first particle information; The preset first parameter determination formula is used to represent the relationship between the first particle information and the turbidity of the liquid to be measured, and the first particle information is used to represent the number of particles in the first image information.

Citation Information

Patent Citations

  • Turbidity detection method based on image recognition and optical transmission fusion

    CN111198186A

  • Digital image processing-based water body turbidity degree judgment device and method

    CN112465782A

  • Dual Function Measurement System

    US20070222985A1