Intelligent river water treatment method and related device
Through river image analysis and environmental information calculation, automatic detection and processing of river pollution are realized, solving the problem of lack of intelligence in sewage treatment in the existing technology, and improving processing efficiency and accuracy.
Patent Information
- Application Number
- CN202110054586.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-08-25
- Filing Date
- 2021-01-15
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-01-15
AI Technical Summary
Existing technology lacks intelligence in sewage treatment, relies on manual detection, resulting in low treatment efficiency, and cannot respond to river pollution in real time.
By acquiring river images, extracting feature data, and combining the river and river bank environmental information, calculate the pollution probability value, automatically detect whether the river is polluted, and perform purification after determining the pollution.
It improves the intelligence and efficiency of sewage treatment, realizes real-time detection and treatment of river pollution, reduces manual intervention, and improves the accuracy and automation level of sewage treatment.
Smart Images

Figure CN112668591B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to an intelligent river water treatment method and related devices. Background Art
[0002] With the continuous development of cities, certain environmental pollution has also been brought about. Many rivers flowing through cities have been polluted to varying degrees. At present, when treating sewage in rivers, manual intervention is usually adopted to manually detect whether the river water is polluted, and then treat the sewage after the pollution, resulting in low intelligence in sewage treatment. Summary of the invention
[0003] The embodiments of the present application provide an intelligent river water treatment method and related devices, which can improve the intelligence of sewage treatment.
[0004] A first aspect of an embodiment of the present application provides an intelligent river water treatment method, which is applied to a sewage treatment system, and the method comprises:
[0005] Acquire a target image, wherein the target image includes a target river channel;
[0006] If the target river is determined to be a suspected polluted river according to the target image, obtaining a river water sample of the target river;
[0007] Testing the river water sample to obtain a target detection result;
[0008] If the target detection result determines that the target river is a polluted river, the sewage in the target river is purified.
[0009] In combination with the first aspect, in a possible implementation manner, determining, according to the target image, that the target river is a suspected polluted river includes:
[0010] Extracting features from the target image to obtain feature data;
[0011] Determining the river environment information and riverbank environment information of the target river according to the characteristic data;
[0012] Determining a target probability value of the target river being polluted according to the river environment information and the riverbank environment information;
[0013] If the first target probability value is higher than the first preset probability value, the target river is determined to be a suspected polluted river.
[0014] In combination with the first aspect, in a possible implementation manner, the river environment information includes a first color of river water and a first number of floating objects, and determining a target probability value of the target river being polluted according to the river environment information and the riverbank environment information includes:
[0015] Determine a first probability value that the target river channel is polluted according to the first color, and determine a second probability value that the target river channel is polluted according to the first quantity;
[0016] Determining a third probability value according to the riverbank environment information;
[0017] The target probability value is determined according to the first probability value, the second probability value and the third probability value.
[0018] In combination with the first aspect, in a possible implementation manner, determining the third probability value according to the riverbank environment information includes:
[0019] Determining a reference probability value according to the riverbank environmental information;
[0020] If the reference probability value is higher than a second preset probability value, splitting the target image to obtain N sub-target images;
[0021] Acquire sub-river channel images in the N sub-target images to obtain K sub-river channel images, where K is a positive integer less than or equal to N;
[0022] Determining the number of bubbles in the corresponding sub-channels according to the K sub-channel images to obtain K first numbers;
[0023] Determine the movement trend of the plankton group in the corresponding sub-channel according to the K sub-channel images to obtain at least one movement trend;
[0024] Determining at least one motion trajectory according to the at least one motion trend;
[0025] The third probability value is determined according to the first number and the at least one motion trajectory.
[0026] In combination with the first aspect, in a possible implementation manner, the method further includes:
[0027] Determining the pollution level of the target river according to the target detection result;
[0028] Determining warning information according to the pollution level;
[0029] The warning information is displayed.
[0030] A second aspect of the embodiment of the present application provides an intelligent river water treatment device, which is applied to a sewage treatment system, and the device includes:
[0031] A first acquisition unit, used for acquiring a target image, wherein the target image includes a target river channel;
[0032] A second acquisition unit, configured to acquire a river water sample of the target river if it is determined that the target river is a suspected polluted river according to the target image;
[0033] A detection unit, used to detect the river water sample and obtain a target detection result;
[0034] A processing unit is used to purify the sewage in the target river if the target detection result determines that the target river is a polluted river.
[0035] In conjunction with the second aspect, in a possible implementation manner, in determining, according to the target image, that the target river is a suspected polluted river, the second acquisition unit is used to:
[0036] Extracting features from the target image to obtain feature data;
[0037] Determining the river environment information and riverbank environment information of the target river according to the characteristic data;
[0038] Determining a target probability value of the target river being polluted according to the river environment information and the riverbank environment information;
[0039] If the first target probability value is higher than the first preset probability value, the target river is determined to be a suspected polluted river.
[0040] In conjunction with the second aspect, in a possible implementation manner, the river environment information includes a first color of river water and a first number of floating objects, and in determining a target probability value of the target river being polluted according to the river environment information and the riverbank environment information, the second acquisition unit is used to:
[0041] Determine a first probability value that the target river channel is polluted according to the first color, and determine a second probability value that the target river channel is polluted according to the first quantity;
[0042] Determining a third probability value according to the riverbank environment information;
[0043] The target probability value is determined according to the first probability value, the second probability value and the third probability value.
[0044] In conjunction with the second aspect, in a possible implementation manner, in determining the third probability value according to the riverbank environment information, the second acquisition unit is used to:
[0045] Determining a reference probability value according to the riverbank environmental information;
[0046] If the reference probability value is higher than a second preset probability value, splitting the target image to obtain N sub-target images;
[0047] Acquire sub-river channel images in the N sub-target images to obtain K sub-river channel images, where K is a positive integer less than or equal to N;
[0048] Determining the number of bubbles in the corresponding sub-channels according to the K sub-channel images to obtain K first numbers;
[0049] Determine the movement trend of the plankton group in the corresponding sub-channel according to the K sub-channel images to obtain at least one movement trend;
[0050] Determining at least one motion trajectory according to the at least one motion trend;
[0051] The third probability value is determined according to the first number and the at least one motion trajectory.
[0052] In conjunction with the second aspect, in a possible implementation manner, the device is further used for:
[0053] Determining the pollution level of the target river according to the target detection result;
[0054] Determining warning information according to the pollution level;
[0055] The warning information is displayed.
[0056] A third aspect of an embodiment of the present application provides a terminal, comprising a processor, an input device, an output device and a memory, wherein the processor, input device, output device and memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiment of the present application.
[0057] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiments of the present application.
[0058] A fifth aspect of the embodiments of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
[0059] Implementing the embodiments of the present application has at least the following beneficial effects:
[0060] By acquiring a target image, the target image includes a target river. If the target river is determined to be a suspected polluted river according to the target image, a river water sample of the target river is acquired, and the river water sample is tested to obtain a target detection result. If the target detection result determines that the target river is a polluted river, the sewage in the target river is purified. Compared with the existing solution, whether the river water is polluted is detected manually and then the sewage is treated after the pollution, the image including the target river can be analyzed and processed, and after determining that the target river is a suspected polluted river, the river water is tested. When the river is determined to be a polluted river according to the detection result, the sewage in the target river is treated, thereby improving the intelligence of sewage treatment. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0062] Figure 1 A schematic diagram of a sewage treatment system is provided for an embodiment of the present application;
[0063] Figure 2A A schematic flow chart of an intelligent river water treatment method is provided for an embodiment of the present application;
[0064] Figure 2B A structural schematic diagram of a sewage treatment module is provided for an embodiment of the present application;
[0065] Figure 3 A flow chart of another intelligent river water treatment method is provided for the embodiment of the present application;
[0066] Figure 4 A schematic diagram of the structure of a terminal provided in an embodiment of the present application;
[0067] Figure 5A structural schematic diagram of an intelligent river water treatment device is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0068] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0069] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0070] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0071] In order to better understand the intelligent river water treatment method provided in the embodiment of the present application, the sewage treatment system using the intelligent river water treatment method is briefly introduced below. Figure 1 A schematic diagram of a sewage treatment system is provided for an embodiment of the present application, such as Figure 1As shown, the sewage treatment system includes a camera, a detection device, a processor (not shown) and a sewage treatment device, the camera acquires a target image, the target image includes a target river, the processor processes the target image, and determines whether the target river is a suspected polluted river according to the target image. If the target river is determined to be a suspected polluted river, a river water sample of the target river is acquired by the detection device, the detection device detects the river water sample, and obtains a detection result. The processor determines whether the target river is a polluted river according to the detection result. If the target river is determined to be a polluted river, the sewage is purified by the sewage treatment device. Therefore, compared with the existing scheme, whether the river water is polluted is detected manually, and sewage is treated after the pollution, the image including the target river can be analyzed and processed, and after determining that the target river is a suspected polluted river, the river water is detected again. When the river is determined to be a polluted river according to the detection result, the sewage in the target river is treated, which improves the intelligence of sewage treatment.
[0072] See also Figure 2A , Figure 2A A schematic flow chart of an intelligent river water treatment method is provided for the embodiment of the present application. Figure 2A As shown, the treatment method is applied to a sewage treatment system, and the treatment method comprises:
[0073] 201. Acquire a target image, where the target image includes a target river channel.
[0074] The sewage treatment system obtains the target image through the camera, and the method of obtaining the target highlight can be through the method of timed acquisition or acquisition under specific circumstances. Acquisition under specific circumstances can be, for example, when the target river is dumped by the user, the target river is dumped by the user, and the object may be a pollutant. In this case, the target image is obtained, which can improve the accuracy of judging whether the river is polluted and reduce energy consumption.
[0075] 202. If the target river is determined to be a suspected polluted river according to the target image, a river water sample of the target river is obtained.
[0076] The processor in the sewage treatment system determines whether the target river is a suspected polluted river based on the target image. When determining, the target image can be feature extracted, and the target river can be determined based on the feature data to determine whether the target river is a suspected polluted river. The river water sample of the target river can be obtained by a detection device, which is set in the river and can extract the river water to obtain the river water sample. When the river water is extracted, filtering treatment can be performed.
[0077] 203. Detect the river water sample to obtain a target detection result.
[0078] The river water samples can be tested using the river water testing methods in the existing scheme to obtain the target test results.
[0079] 204. If the target detection result determines that the target river is a polluted river, purify the sewage in the target river.
[0080] To determine whether the target river is a polluted river based on the detection results, the target detection results can be compared with existing river pollution indicators. If the river pollution indicators are met, the target river is determined to be a polluted river. The existing river pollution indicators can be obtained through the Internet and other means.
[0081] The sewage in the target river can be purified by treating it through a sewage treatment device. Figure 2B As shown, Figure 2B A structural schematic diagram of a sewage treatment module is shown. The system consists of three parts, namely, a sludge collection device, a mud-water separation device, and an ecological soil water purification system. Among them, a part of the sponge is staggered up and down in the sludge collection device to slow down the flow rate of the water body, allowing the silt to adhere to or immerse in the sponge, which can play the two roles of sand absorption and water passing. After a period of adsorption, the silt can fall off the sponge by self-falling or high-pressure water gun. The fallen silt is collected at the bottom by a sludge pump. Specifically, an iron bucket is placed in water, a sludge pump is installed at the bottom of the iron bucket, and the bottom end of the iron bucket is connected to a grooved mud inlet pipe. The two ends of the grooved mud inlet pipe are sealed, the upper part of the pipe is sealed, and the lower part is opened with several small openings. The pressure difference causes the sludge to enter the sludge pipe from the sludge hole. When the sludge pump is working, the sludge is sucked away by the sludge pump.
[0082] The designed height of the iron barrel must be higher than the water surface. The water pressure generated by the water level difference inside and outside the iron barrel is used to make the sludge in the water body enter the sludge pipe under the action of the sludge pump, and then enter the mud-water separation device. The mud-water separation device includes four main structures: glass communicating vessels, water outlet pipes, sludge pipes and mud pumps. The sludge enters the sedimentation tank through the sludge pipe for mud-water separation. The large sedimentation tank is divided into three (including but not limited to three) small U-shaped sedimentation tanks by walls. After a certain residence time, the sludge is deposited at the bottom of the tank. The auxiliary glass communicating vessels are used to observe the amount of precipitated sludge. When a certain amount of sludge is reached, it is pumped away by a mud pump, and the upper water enters the ecological soil water purification system through overflow. The ecological soil water purification system is an ecological water purification unit. In order to improve the pollutant removal efficiency and ensure that there is single unit maintenance or rest adjustment, a large system is divided into several small systems by walls, and then the water is fed intermittently (controlled by electronic valves) so that the sewage flowing into each small system can completely filter the entire system. Each system is equipped with a special ventilation pipe, with two layers of ventilation pipes arranged horizontally and full of ventilation pipes vertically, and each ventilation pipe is interconnected. A main outlet pipe and several outgoing water pipes are arranged at the bottom of the pool, and each outgoing water pipe is connected to the main outlet pipe. One end of the main outlet pipe is sealed and the other end is connected to the drainage channel. Both ends of each outgoing water pipe are sealed, and grooves are left on the side so that the filtered water first enters each branch pipe and then converges to the main outlet pipe. After uniform water collection, it is discharged into the drainage channel from the outlet of the main outlet pipe. The system is composed of a plant layer and a filler layer from top to bottom, and the filler layers are respectively fine sand layer, coarse sand layer, activated carbon layer and gravel layer from top to bottom. The main purification role in the ecological soil water purification system is the adsorption and interception of each layer of fillers, while the purification of plants plays an auxiliary role.
[0083] In a possible implementation, a possible method for determining that the target river is a suspected polluted river according to the target image may be:
[0084] A1. Extracting features from the target image to obtain feature data;
[0085] The method for extracting features from the target image may be a local binary method, etc. The feature data may be a gray value, a brightness value, or an RGB value, etc.
[0086] A2. Determine the river environment information and riverbank environment information of the target river according to the characteristic data;
[0087] The river environment information includes the color of the river water and the number of floating objects, and the river bank environment information may be the growth status information of the trees on the river bank.
[0088] The number of floating objects can be determined based on the number of closed-loop contours obtained by extracting the contour of the river surface.
[0089] A3. Determine a target probability value of the target river being polluted according to the river environment information and the riverbank environment information;
[0090] The corresponding pollution probability values can be determined based on the river environment information and the river bank environment information, and then the target probability value can be determined based on the corresponding pollution probability values. The method for determining the target probability value based on the corresponding pollution probability value can be a weight calculation method or the like.
[0091] A4. If the target probability value is higher than the first preset probability value, the target river is determined to be a suspected polluted river.
[0092] The first preset probability value is set by experience value or historical data.
[0093] In this example, the target probability value is determined by the river environment information and the riverbank environment information. When the target probability value is higher than the first preset probability value, the target river is determined to be a suspected polluted river, which can improve the accuracy of determining the suspected polluted river.
[0094] In a possible implementation, the river environment information includes a first color of river water and a first number of floating objects. A possible method for determining a target probability value of the target river being polluted based on the river environment information and the riverbank environment information includes:
[0095] B1. Determine a first probability value that the target river channel is polluted according to the first color, and determine a second probability value that the target river channel is polluted according to the first quantity;
[0096] Different colors correspond to different pollution probability values. For example, the darker the first color, the greater the first probability value, and the bluer the first color, the smaller the first probability value. Different numbers of floating objects correspond to different pollution probability values. The greater the first number of floating objects, the greater the second probability value, and the smaller the first number, the smaller the second probability value.
[0097] B2. determining a third probability value according to the riverbank environment information;
[0098] Riverbank information may include the growth status of plants along the riverbank. Different plants react differently to pollution, and their growth status will also be different. The growth status of all plants can be analyzed, and the plants with the most severe pollution reactions can also be analyzed. For plants with the most severe pollution, it can be understood that after the plant is polluted, its growth status will change greatly.
[0099] The first growth state of the target plant can be determined based on the riverbank environmental information. The target plant can be a pre-set plant, for example, a plant that is more sensitive to pollution. The third probability value can be determined based on the first growth state. The target plant can have multiple growth states, and different growth states have different probability values of being polluted. The third probability value can be directly determined based on the growth state.
[0100] Alternatively, the first growth state may be compared with the normal growth state to obtain an offset between the first growth state and the normal growth state; and the third probability value may be determined based on the offset. The larger the offset, the larger the third probability value; the smaller the offset, the smaller the third probability value; when the offset is 0, the third probability value is zero, i.e., there is no contamination. Of course, the third probability value may also be determined by other means, for example, the growth states of multiple plants may be obtained, and the third probability value may be determined based on the growth states of the multiple plants. This is only an example and is not specifically limited.
[0101] B3. Determine the target probability value according to the first probability value, the second probability value and the third probability value.
[0102] The first probability value, the second probability value and the third probability value may be weighted to obtain a target probability value. The first probability value may correspond to a first weight, the second probability value may correspond to a second weight, and the third probability value may correspond to a third weight. Then, the first weight, the second weight and the third weight may be used to perform a weighted operation on the first probability value, the second probability value and the third probability value to obtain a target probability value. Of course, the maximum probability value among the above three probability values may also be determined as the target probability value, etc.
[0103] In this example, the first probability value is determined by the color of the river, the second probability value is determined by the number of floating objects, and the third probability value is determined by the riverbank environment information. The target probability value is determined by the first probability value, the second probability value, and the third probability value. The target probability value can be determined by the specific information of the river, which improves the accuracy of determining the target probability value.
[0104] In a possible implementation, another possible method for determining the third probability value according to the riverbank environment information includes:
[0105] C1. Determine a reference probability value according to the riverbank environment information;
[0106] The method for determining the reference probability value according to the riverbank environment information may be the method for determining the third probability value according to the riverbank environment information in the aforementioned method, which will not be described in detail here.
[0107] C2. If the reference probability value is higher than a second preset probability value, split the target image to obtain N sub-target images;
[0108] The preset second probability value is set by experience value or historical data.
[0109] The method for splitting the target image may be to split the image uniformly to obtain N sub-images. Uniform splitting may be understood as splitting in a manner of equal area, or splitting in a manner of equal area and size. Of course, it may also be split in a non-uniform manner, without specific limitation.
[0110] C3. Acquire sub-river channel images from the N sub-target images to obtain K sub-river channel images, where K is a positive integer less than or equal to N;
[0111] The method for obtaining the sub-channel image can obtain N sub-channel images by feature extraction. Of course, the sub-channel image can also be extracted by an image extraction model. The image extraction model can be a model obtained by pre-training with sample images. The sample can include a sub-target image with a channel mark.
[0112] C4. determining the number of bubbles in the corresponding sub-channels according to the K sub-channel images to obtain K first numbers;
[0113] The number of bubbles in a river can be obtained by feature extraction, for example, the number of bubbles is obtained from feature data. The number of bubbles in a river can reflect the pollution of the river. Generally, the number of bubbles in a polluted river is higher than that in an unpolluted river.
[0114] C5. determining the movement trend of the plankton group in the corresponding sub-channel according to the K sub-channel images to obtain at least one movement trend;
[0115] The community shape of the plankton community can be determined based on the sub-channel image, and the movement trend can be determined based on the community shape. The movement trend can be determined by the protruding parts of the community shape. For example, if the community shape is an irregular shape with a protruding part, the direction corresponding to the protruding part can be determined as the movement direction of the plankton, and the movement direction can be determined as the movement trend. If there are multiple protruding parts, the direction corresponding to the protruding part with the largest protruding area is determined as the movement direction. The midline of the directions corresponding to the multiple protruding parts can also be determined as the movement direction.
[0116] C6. Determine at least one motion trajectory according to the at least one motion trend;
[0117] The method for determining the motion trajectory according to the motion trend may be: determining the type of the plankton group, determining the corresponding motion trajectory set, and determining at least one motion trajectory from the motion trajectory set according to the motion trend. Different motion trends may correspond to at least one motion trajectory, and the similarity between the at least one motion trajectory is greater than a preset threshold.
[0118] C7. Determine the third probability value according to the first number and the at least one motion trajectory.
[0119] The larger the first number, the larger the third probability value, and the smaller the overlap rate of the motion trajectory with the flow direction of the river water, the larger the third probability value. The overlap rate of the motion trajectory with the flow direction of the river water can be understood as the overlap rate between the direction of the tangent line of the motion estimation at different vertices and the direction of the river water flow, and the tangent line direction can be understood as the direction along the positive direction of the motion trajectory, and the positive direction of the motion trajectory can be understood as the direction of motion.
[0120] In this example, when the reference probability value is greater than the second preset probability value, N sub-images of the target image are obtained, and then the third probability value is determined based on the number of bubbles in the sub-channels in the N sub-images and the movement trend of the plankton group, which can improve the accuracy of determining the third probability value.
[0121] In a possible implementation, the intelligent river water treatment method further includes:
[0122] D1. Determine the pollution level of the target river according to the target detection result;
[0123] D2. Determine warning information according to the pollution level;
[0124] D3. Display the warning information.
[0125] The target detection result may be a performance detection result, and the pollution level may be determined based on the relationship between the performance detection result and a preset performance indicator. For example, if the preset performance indicator corresponds to the pollution level, the corresponding pollution level may be determined based on the detection result.
[0126] Different pollution levels have different warning information, so the warning information corresponding to the pollution level can be determined, and the warning information can be displayed through text, voice, video, etc.
[0127] In this example, after obtaining the target detection results, the pollution level is determined and the alarm information corresponding to the pollution level is displayed, so that users or managers can quickly obtain the pollution situation of the river, thereby improving convenience.
[0128] In a possible implementation, before displaying the warning information, the following steps may also be included:
[0129] E1, obtaining a first fingerprint image;
[0130] E2. Dividing the first fingerprint image into multiple areas;
[0131] E3. Determine the distribution density of feature points in each of the multiple regions to obtain a set of feature point distribution densities, where each region corresponds to a feature point distribution density;
[0132] E4. Determine the target mean value and target mean square error corresponding to the feature point distribution density set;
[0133] E5. Determine a target image enhancement algorithm corresponding to the target average value according to a mapping relationship between a preset average value and an image enhancement algorithm;
[0134] E6. Determine the target fine-tuning coefficient corresponding to the target mean square error according to the preset mapping relationship between the mean square error and the fine-tuning coefficient;
[0135] E7. Adjusting the algorithm control parameters of the target image enhancement algorithm according to the target fine-tuning coefficient to obtain target algorithm control parameters;
[0136] E8. Perform image enhancement processing on the first fingerprint image according to the target algorithm control parameter and the target image enhancement algorithm to obtain a second fingerprint image;
[0137] E9. Matching the second fingerprint image with a preset fingerprint template;
[0138] E10. When the second fingerprint image successfully matches the preset fingerprint template, execute the step of displaying the warning information.
[0139] The first fingerprint image may be a fingerprint image of a system administrator, or may be a fingerprint image of other users who can operate the sewage management system.
[0140] In the embodiment of the present application, a preset fingerprint template may be pre-stored in the electronic device. In a specific implementation, the electronic device may obtain a first fingerprint image, and then divide the first fingerprint image into multiple regions, the size of each region in the multiple regions is within a preset area range, the size of each region in the multiple regions may be the same or different, and the preset area range may be set by the user or by the system default.
[0141] Furthermore, the electronic device can determine the distribution density of feature points in each of the multiple regions to obtain a feature point distribution density set, wherein the feature point distribution density set includes multiple feature point distribution densities, and each region corresponds to one feature point distribution density, that is, the number of feature points in each of the multiple regions and the corresponding area of the region can be determined, and the ratio between the number of feature points and the corresponding area of the region is used as the feature point distribution density. The electronic device can determine the target average value and target mean square error corresponding to the feature point distribution density set, that is, the target average value = the total number of feature points corresponding to the feature point distribution density set / the number of regions, and based on the target average value and the feature point distribution density set, the corresponding target mean square error can be determined.
[0142] In addition, in the embodiments of the present application, the image enhancement algorithm may be at least one of the following: histogram equalization, wavelet transform, grayscale stretching, Retinex algorithm, etc., which are not limited here. Each image enhancement algorithm corresponds to an algorithm control parameter, and the algorithm control algorithm is used to control the degree of image enhancement. The electronic device may pre-store a mapping relationship between a preset average value and an image enhancement algorithm, as well as a mapping relationship between a preset mean square error and a fine-tuning coefficient. Among them, the average value reflects the overall characteristics of the image, and the mean square error reflects the correlation between regions. Furthermore, the corresponding image enhancement algorithm and its corresponding algorithm control parameters can be selected in combination with the overall characteristics of the image and the regional correlation, which is conducive to improving the efficiency of image enhancement, that is, improving the quality of the fingerprint image.
[0143] Furthermore, the electronic device can determine the target image enhancement algorithm corresponding to the target average value according to the mapping relationship between the preset average value and the image enhancement algorithm, and can determine the target fine-tuning coefficient corresponding to the target mean square error according to the mapping relationship between the preset mean square error and the fine-tuning coefficient. Then, the electronic device can adjust the algorithm control parameters of the target image enhancement algorithm according to the target fine-tuning coefficient to obtain the target algorithm control parameters, and perform image enhancement processing on the first fingerprint image according to the target algorithm control parameters and the target image enhancement algorithm to obtain the second fingerprint image. Further, since the second fingerprint image has been image enhanced, the electronic device can match the second fingerprint image with the preset fingerprint template. When the second fingerprint image matches the preset fingerprint template successfully, the step of obtaining the data sending request is executed. Otherwise, the user can be prompted to continue inputting the fingerprint image. In this way, the fingerprint recognition efficiency can be improved.
[0144] See also Figure 3 , Figure 3 The present application provides a flow chart of another intelligent river water treatment method. Figure 3 As shown, the treatment method is applied to a sewage treatment system, and the treatment method comprises:
[0145] 301. Acquire a target image, where the target image includes a target river channel;
[0146] 302. If feature extraction is performed on the target image to obtain feature data;
[0147] 303. Determine the river environment information and riverbank environment information of the target river according to the characteristic data;
[0148] 304. Determine a target probability value of the target river being polluted according to the river environment information and the riverbank environment information;
[0149] 305. If the first target probability value is higher than the first preset probability value, the target river is determined to be a suspected polluted river, and a river water sample of the target river is obtained;
[0150] 306. Detect the river water sample to obtain a target detection result;
[0151] 307. If the target detection result determines that the target river is a polluted river, purify the sewage in the target river.
[0152] In this example, the target probability value is determined by the river environment information and the riverbank environment information. When the target probability value is higher than the first preset probability value, the target river is determined to be a suspected polluted river, which can improve the accuracy of determining the suspected polluted river.
[0153] For the above embodiments, please refer to Figure 4 , Figure 4 A schematic diagram of the structure of a terminal provided in an embodiment of the present application, as shown in the figure, includes a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program includes program instructions, the processor is configured to call the program instructions, and the program includes instructions for executing the following steps;
[0154] Acquiring a target image, wherein the target image includes a target river channel;
[0155] If the target river is determined to be a suspected polluted river according to the target image, obtaining a river water sample of the target river;
[0156] Testing the river water sample to obtain a target detection result;
[0157] If the target detection result determines that the target river is a polluted river, the sewage in the target river is purified.
[0158] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that in order to realize the above functions, the terminal includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0159] The embodiment of the present application can divide the terminal into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0160] In line with the above, see Figure 5 , Figure 5 The present invention provides a schematic diagram of the structure of an intelligent river water treatment device. Figure 5 As shown, the device is applied to a sewage treatment system, and the device comprises:
[0161] A first acquisition unit 501 is used to acquire a target image, where the target image includes a target river channel;
[0162] A second acquisition unit 502 is configured to acquire a water sample of the target river if the target river is determined to be a suspected polluted river according to the target image;
[0163] A detection unit 503 is used to detect the river water sample and obtain a target detection result;
[0164] The processing unit 504 is configured to purify sewage in the target river if the target detection result determines that the target river is a polluted river.
[0165] In a possible implementation, in determining, according to the target image, that the target river is a suspected polluted river, the second acquisition unit 502 is configured to:
[0166] Extracting features from the target image to obtain feature data;
[0167] Determining the river environment information and riverbank environment information of the target river according to the characteristic data;
[0168] Determining a target probability value of the target river being polluted according to the river environment information and the riverbank environment information;
[0169] If the first target probability value is higher than the first preset probability value, the target river is determined to be a suspected polluted river.
[0170] In a possible implementation, the river environment information includes a first color of river water and a first number of floating objects. In determining a target probability value of the target river being polluted according to the river environment information and the riverbank environment information, the second acquisition unit 502 is used to:
[0171] Determine a first probability value that the target river channel is polluted according to the first color, and determine a second probability value that the target river channel is polluted according to the first quantity;
[0172] Determining a third probability value according to the riverbank environment information;
[0173] The target probability value is determined according to the first probability value, the second probability value and the third probability value.
[0174] In a possible implementation manner, in determining the third probability value according to the riverbank environment information, the second acquiring unit 502 is used to:
[0175] Determining a reference probability value according to the riverbank environmental information;
[0176] If the reference probability value is higher than a second preset probability value, splitting the target image to obtain N sub-target images;
[0177] Acquire sub-river channel images in the N sub-target images to obtain K sub-river channel images, where K is a positive integer less than or equal to N;
[0178] Determining the number of bubbles in the corresponding sub-channels according to the K sub-channel images to obtain K first numbers;
[0179] Determine the movement trend of the plankton group in the corresponding sub-channel according to the K sub-channel images to obtain at least one movement trend;
[0180] Determining at least one motion trajectory according to the at least one motion trend;
[0181] The third probability value is determined according to the first number and the at least one motion trajectory.
[0182] In a possible implementation, the device is further used for:
[0183] Determining the pollution level of the target river according to the target detection result;
[0184] Determining warning information according to the pollution level;
[0185] The warning information is displayed.
[0186] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the intelligent river water treatment methods recorded in the above method embodiments.
[0187] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program enables a computer to execute part or all of the steps of any one of the intelligent river water treatment methods recorded in the above method embodiments.
[0188] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0189] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0190] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.
[0191] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0192] In addition, the functional units in the various embodiments of the application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software program modules.
[0193] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0194] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.
[0195] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An intelligent river water treatment method, characterized in that: Applied to a sewage treatment system, the method comprises: Acquire a target image, wherein the target image includes a target river channel; If the target river is determined to be a suspected polluted river according to the target image, obtaining a river water sample of the target river; Testing the river water sample to obtain a target detection result; If the target detection result determines that the target river is a polluted river, purifying the sewage in the target river; Determining, according to the target image, that the target river is a suspected polluted river includes: Extracting features from the target image to obtain feature data; Determining the river environment information and riverbank environment information of the target river according to the characteristic data; Determining a target probability value of the target river being polluted according to the river environment information and the riverbank environment information; If the target probability value is higher than a first preset probability value, the target river is determined to be a suspected polluted river; The river environment information includes a first color of river water and a first number of floating objects. Determining a target probability value of the target river being polluted according to the river environment information and the riverbank environment information includes: Determine a first probability value that the target river channel is polluted according to the first color, and determine a second probability value that the target river channel is polluted according to the first quantity; Determining a third probability value according to the riverbank environment information; Determining the target probability value according to the first probability value, the second probability value and the third probability value; The determining of a third probability value according to the riverbank environment information includes: Determining a reference probability value according to the riverbank environmental information; If the reference probability value is higher than a second preset probability value, splitting the target image to obtain N sub-target images; Acquire sub-river channel images in the N sub-target images to obtain K sub-river channel images, where K is a positive integer less than or equal to N; Determining the number of bubbles in the corresponding sub-channels according to the K sub-channel images to obtain K first numbers; Determine the movement trend of the plankton group in the corresponding sub-channel according to the K sub-channel images to obtain at least one movement trend; Determining at least one motion trajectory according to the at least one motion trend; The third probability value is determined according to the first number and the at least one motion trajectory.
2. The method according to claim 1, characterized in that The method further comprises: Determining the pollution level of the target river according to the target detection result; Determining warning information according to the pollution level; The warning information is displayed.
3. An intelligent river water treatment device, characterized in that: Applied to a sewage treatment system, the device comprises: A first acquisition unit, used for acquiring a target image, wherein the target image includes a target river channel; A second acquisition unit, configured to acquire a river water sample of the target river if the target river is determined to be a suspected polluted river according to the target image; A detection unit, used to detect the river water sample and obtain a target detection result; a processing unit, configured to purify sewage in the target river channel if the target detection result determines that the target river channel is a polluted river channel; In the aspect of determining, according to the target image, that the target river is a suspected polluted river, the second acquisition unit is used to: Extracting features from the target image to obtain feature data; Determining the river environment information and riverbank environment information of the target river according to the characteristic data; Determining a target probability value of the target river being polluted according to the river environment information and the riverbank environment information; If the target probability value is higher than a first preset probability value, the target river is determined to be a suspected polluted river; The river environment information includes a first color of river water and a first number of floating objects. In determining a target probability value of the target river being polluted according to the river environment information and the riverbank environment information, the second acquisition unit is used to: Determine a first probability value that the target river channel is polluted according to the first color, and determine a second probability value that the target river channel is polluted according to the first quantity; Determining a third probability value according to the riverbank environment information; Determining the target probability value according to the first probability value, the second probability value and the third probability value; In the aspect of determining the third probability value according to the riverbank environment information, the second acquisition unit is used for: Determining a reference probability value according to the riverbank environmental information; If the reference probability value is higher than a second preset probability value, splitting the target image to obtain N sub-target images; Acquire sub-river channel images in the N sub-target images to obtain K sub-river channel images, where K is a positive integer less than or equal to N; Determining the number of bubbles in the corresponding sub-channels according to the K sub-channel images to obtain K first numbers; Determine the movement trend of the plankton group in the corresponding sub-channel according to the K sub-channel images to obtain at least one movement trend; Determining at least one motion trajectory according to the at least one motion trend; The third probability value is determined according to the first number and the at least one motion trajectory.
4. A terminal, characterized in that: The method comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method as claimed in claim 1 or 2.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to claim 1 or 2.
