A sewage flow monitoring method based on computer graphics and a storage medium
By using thermal imaging cameras and water curtain technology, the accuracy problem of sewage flow detection under insufficient light at night has been solved, enabling efficient and accurate calculation of sewage flow under different environments.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHANGSHA NENGCHUAN INFORMATION TECH CO LTD
- Filing Date
- 2023-07-17
- Publication Date
- 2026-04-17
AI Technical Summary
Existing wastewater flow detection systems cannot capture clear images at night when there is insufficient light or the ambient brightness is too low, resulting in inaccurate flow calculations. Furthermore, the external environment affects the captured images.
Two sets of thermal imaging cameras are used to capture top-down and side views of the sewage. Combined with a recirculation system, a water curtain is formed as a natural backdrop. The images are filtered using temperature thresholds, and the sewage flow specifications and flow rate are calculated. The image data is then processed through a conversion system.
Accurately calculate wastewater flow under different ambient lighting conditions, reduce the impact of the external environment, and ensure data accuracy and consistency.
Smart Images

Figure CN116772945B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of flow detection technology, and in particular to a wastewater flow monitoring method and storage medium based on computer graphics. Background Technology
[0002] Currently, wastewater flow detection typically employs image recognition methods. This involves capturing images and calculating the flow velocity based on the positional changes of specific pixels within the image over time. Simultaneously, the cross-sectional area of the wastewater is calculated from the image, thereby determining the wastewater flow rate.
[0003] However, both nighttime and daytime flow rates need to be statistically analyzed. Simply using cameras to capture images is insufficient, especially in low-light conditions at night when the ambient brightness is too low, as the cameras cannot capture clear images. Furthermore, using thermal or infrared cameras directly will result in the surrounding environment significantly affecting the captured images, which in turn affects the final calculation of sewage flow. Summary of the Invention
[0004] The purpose of this invention is to address the shortcomings of existing technologies by proposing a wastewater flow monitoring method and storage medium based on computer graphics.
[0005] To achieve the above objectives, the present invention adopts the following technical solution:
[0006] A wastewater flow monitoring method based on computer graphics, comprising the following hardware:
[0007] a) Two sets of thermal imaging cameras for capturing overhead and side views of sewage sections;
[0008] b. A conversion system for processing images and calculating wastewater flow rate;
[0009] c. A return system that draws water from the bottom of the sewage tank to below the flow channel and forms an L-shaped water curtain;
[0010] Includes the following steps,
[0011] S1, the return system draws water from the bottom of the sewage tank and sprays it to form a water curtain below the sewage outlet;
[0012] S2, a thermal imaging camera captures top and side views of the sewage in the sewage channel and imports them into the conversion system as images;
[0013] S3, after the conversion system detects the ambient temperature, it compares the ambient temperature with its internal threshold to determine whether to proceed to S3.1 or S3.2;
[0014] S3.1 When the ambient temperature is less than the internal threshold, remove the light-colored part in the image to obtain the processed image, and obtain the sewage flow specification based on the inner circle of the processed image. The sewage flow specification includes the cross-sectional area of the flow and the volume of the flow.
[0015] S3.2 When the ambient temperature is greater than the internal threshold, remove the dark parts of the image and obtain the sewage flow specifications based on the processed image. The sewage flow specifications include the cross-sectional area of the flow and the volume of the flow.
[0016] S4. On the time axis, based on the processed image at the earliest time, select a number of pixels and track them to the processed image at the latest time. After counting the time intervals, calculate the sewage flow rate.
[0017] S5. On the time axis, starting with the water flow volume at the earliest time and ending with the water flow volume at the latest time, calculate the average water flow volume.
[0018] S6 calculates the sewage flow rate using the formula Sewage Flow Rate = Sewage Flow Velocity * Water Flow Cross-sectional Area, and compares it with the average water flow volume. If the difference is greater than 15%, repeat S1 to S6. If the difference is less than 15%, output the average water flow volume and sewage flow rate.
[0019] Preferably, the conversion system includes a processor and a temperature sensor coupled thereto, and the threshold temperature within the conversion system is 12.5°C.
[0020] Preferably, in S3.1, the parts of the image below 2°C are uniformly dark, and the parts of the image above 2°C are uniformly light. The image is filtered by a color filtering algorithm to remove the light-colored parts, and the sewage flow specifications are calculated based on the proportions within the thermal imaging camera.
[0021] Preferably, in S3.2, the portion of the image below 20°C is uniformly dark, and the portion of the image above 20°C is uniformly light. The image is filtered by a color filtering algorithm to remove the dark portion, and the sewage flow specifications are calculated based on the proportions within the thermal imaging camera.
[0022] Preferably, the light color in S3.1 and the dark color in S3.2 are white and black, respectively.
[0023] Preferably, the color filtering algorithm includes s1, loading the image; s2, converting it to HSV; s3, defining the upper and lower bounds of the filter; s4, creating a mask based on the upper and lower bounds; s5, applying the mask; and s6, displaying the processed image.
[0024] Preferably, the cross-sectional area of the water flow is calculated by obtaining the length and width from the processed image.
[0025] Preferably, the water flow volume is obtained by calculating the cross-sectional area and streamlines of the water flow from the processed image.
[0026] Preferably, the return system includes a shaped pipe and an underwater suction machine. One end of the shaped pipe is round, and the other end is L-shaped. The underwater suction machine is connected to the round end of the shaped pipe, and the L-shaped end of the shaped pipe is located below the sewage outlet.
[0027] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the wastewater flow monitoring method based on computer graphics as provided in any of the foregoing method embodiments.
[0028] The present invention has the following beneficial effects:
[0029] This method can capture images of sewage flow at sewage outlets in daytime, nighttime, winter, and summer environments. It uses an underwater suction machine to extract sewage from the bottom of the sewage tank, forming a natural water curtain. Because the water curtain is thick, it can prevent the thermal imaging camera from being affected by other external environmental factors. Attached Figure Description
[0030] Figure 1 This is a flowchart of the present invention;
[0031] Figure 2 This is a schematic diagram of the irregularly shaped tube in this invention;
[0032] Figure 3 This is a structural block diagram of the server in this invention.
[0033] In the picture: 1. Irregularly shaped tube. Detailed Implementation
[0034] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0035] A wastewater flow monitoring method based on computer graphics, comprising the following hardware:
[0036] a. Two sets of thermal imaging cameras for capturing top-down and side-view cross-sections of sewage. One of the thermal imaging cameras is set directly above the sewage outlet, while the other is set to one side of the sewage outlet at a horizontal height. The included angle between the shooting extension lines of the two thermal imaging cameras is 90°. Both thermal imaging cameras can be fixed by brackets.
[0037] b. A conversion system for processing images and calculating wastewater flow rate, the conversion system including a processor and a temperature sensor coupled thereto, and the outputs of two thermal imaging cameras coupled to the inputs of the processor, the temperature sensor being used to detect the outdoor ambient temperature.
[0038] c. A return system that draws water from the bottom of the sewage tank to below the outlet and forms an L-shaped water curtain. The return system includes a special-shaped pipe 1 and an underwater suction machine. One end of the special-shaped pipe 1 is round, and the other end is L-shaped. The underwater suction machine is connected to the round end of the special-shaped pipe 1. The L-shaped end of the special-shaped pipe 1 is located below the sewage outlet. The horizontal length and height of the L-shaped end of the special-shaped pipe 1 are greater than the specifications of the sewage outlet, so that the water curtain it sprays can cover the sewage flowing out of the sewage outlet. Because the water curtain is thick, the range captured by the thermal imaging camera is limited. Since the water curtain is a dynamic water flow and it mainly draws sewage from the bottom of the tank, its temperature is higher than the water surface temperature in winter and lower than the water surface temperature in summer. This forms a natural curtain to isolate the influence of the external environment on the thermal imaging camera. In this way, the water curtain can serve as a background for the sewage to eliminate interference from other environments.
[0039] This wastewater flow monitoring method based on computer graphics includes the following steps:
[0040] S1, the return system extracts water from the bottom of the sewage tank and sprays it to form a water curtain below the sewage outlet. At this time, the underwater suction machine extracts the stagnant sewage at the bottom of the sewage tank. Since the sewage is stagnant and the water temperature is low, it is drawn out by the underwater suction machine and enters the special-shaped pipe 1. The diameter of the round end of the special-shaped pipe 1 is larger than the diameter of the L-shaped end, so that the sewage can enter into it. When it leaves the L-shaped end of the special-shaped pipe 1, the flow velocity increases, thus forming a water curtain. At the same time, since the water flow is kept in a flowing state, the sewage in the special-shaped pipe 1 will become uniform, and its temperature will also remain uniform. The water curtain will not have uneven temperature. Moreover, since the water curtain has a fast flow velocity, the water curtain is continuous and will not be interrupted. The water curtain thus surrounds the water flowing out of the sewage outlet, acting as a curtain.
[0041] S2, the thermal imaging camera captures top and side views of the sewage at the sewage flow channel and imports them into the conversion system. The thermal imaging camera's shooting range only includes the water curtain and the area where the sewage flow is located, thus reducing the number of images that the conversion system needs to process and speeding up the processing efficiency of the conversion system. After the top and side views are imported into the conversion system, the two images await processing by the conversion system.
[0042] S3. After the conversion system detects the ambient temperature, it compares the ambient temperature with its internal threshold to determine whether to proceed to S3.1 or S3.2. At this time, the temperature sensor will detect the ambient temperature and transmit the detected ambient temperature to the processor. The processor compares the signal imported by the temperature sensor with its internal threshold to determine whether to proceed. The threshold in the conversion system is 12.5℃.
[0043] S3.1 When the ambient temperature is less than the internal threshold, remove the light-colored parts in the image to obtain the processed image, and obtain the sewage flow specifications based on the inner circle of the processed image. The sewage flow specifications include the cross-sectional area and volume of the flow. More specifically, the parts of the image below 2℃ are uniformly dark, and the parts of the image above 2℃ are uniformly light. The image is filtered by a color filtering algorithm to remove the light-colored parts. The light and dark colors are white and black, respectively.
[0044] S3.2 When the ambient temperature is greater than the internal threshold, remove the dark parts of the image and obtain the sewage flow specifications based on the processed image. The sewage flow specifications include the cross-sectional area and volume of the flow. More specifically, the parts of the image below 20°C are uniformly dark, and the parts of the image above 20°C are uniformly light. The image is filtered by a color filtering algorithm to remove the dark parts of the image. The light and dark colors are white and black, respectively.
[0045] Secondly, the color filtering algorithm includes s1, loading the image; s2, converting it to HSV; s3, defining the upper and lower bounds of the filter; s4, creating a mask based on the upper and lower bounds; s5, applying the mask; and s6, displaying the processed image.
[0046] The cross-sectional area of the water flow is calculated by obtaining the length and width from the processed image, and the volume of the water flow is calculated by obtaining the cross-sectional area and streamlines from the processed image. The specifications of the sewage flow are calculated based on the proportions within the thermal imaging camera.
[0047] S4. On the time axis, based on the earliest processed image, select several pixels and track them to the latest processed image. After counting the time intervals, calculate the sewage flow rate.
[0048] S5. On the time axis, starting with the water flow volume at the earliest time and ending with the water flow volume at the latest time, calculate the average water flow volume.
[0049] S6 calculates the sewage flow rate using the formula Sewage Flow Rate = Sewage Flow Velocity * Water Flow Cross-sectional Area, and compares it with the average water flow volume. If the difference is greater than 15%, repeat S1 to S6. If the difference is less than 15%, output the average water flow volume and sewage flow rate.
[0050] Using the above method, sewage can be photographed during the day, night, winter, and summer. The images are presented in black and white, with temperature as the dividing line. The water curtain acts as a natural screen to block out the external natural environment, so that the final images are not affected. In addition, the still water at the bottom of the sewage tank is warmer than the surface water in winter and cooler than the surface water in summer, which can form a natural screen.
[0051] Furthermore, the final data is output as both the average volume of water flow and the flow rate of sewage. These two data can be compared within the conversion system. If the difference is too large, the statistics and calculations will be re-performed to ensure the accuracy of the final data.
[0052] In an optional embodiment, this application also provides a wastewater flow monitoring device based on computer graphics, comprising:
[0053] S1, the return system extracts water from the bottom of the sewage tank and sprays it to form a water curtain below the sewage outlet. At this time, the underwater suction machine extracts the stagnant sewage at the bottom of the sewage tank. Since the sewage is stagnant and the water temperature is low, it is drawn out by the underwater suction machine and enters the special-shaped pipe 1. The diameter of the round end of the special-shaped pipe 1 is larger than the diameter of the L-shaped end, so that the sewage can enter into it. When it leaves the L-shaped end of the special-shaped pipe 1, the flow velocity increases, thus forming a water curtain. At the same time, since the water flow is kept in a flowing state, the sewage in the special-shaped pipe 1 will become uniform, and its temperature will also remain uniform. The water curtain will not have uneven temperature. Moreover, since the water curtain has a fast flow velocity, the water curtain is continuous and will not be interrupted. The water curtain thus surrounds the water flowing out of the sewage outlet, acting as a curtain.
[0054] S2, the thermal imaging camera captures top and side views of the sewage at the sewage flow channel and imports them into the conversion system. The thermal imaging camera's shooting range only includes the water curtain and the area where the sewage flow is located, thus reducing the number of images that the conversion system needs to process and speeding up the processing efficiency of the conversion system. After the top and side views are imported into the conversion system, the two images await processing by the conversion system.
[0055] S3. After the conversion system detects the ambient temperature, it compares the ambient temperature with its internal threshold to determine whether to proceed to S3.1 or S3.2. At this time, the temperature sensor will detect the ambient temperature and transmit the detected ambient temperature to the processor. The processor compares the signal imported by the temperature sensor with its internal threshold to determine whether to proceed. The threshold in the conversion system is 12.5℃.
[0056] S3.1 When the ambient temperature is less than the internal threshold, remove the light-colored parts in the image to obtain the processed image, and obtain the sewage flow specifications based on the inner circle of the processed image. The sewage flow specifications include the cross-sectional area and volume of the flow. More specifically, the parts of the image below 2℃ are uniformly dark, and the parts of the image above 2℃ are uniformly light. The image is filtered by a color filtering algorithm to remove the light-colored parts. The light and dark colors are white and black, respectively.
[0057] S3.2 When the ambient temperature is greater than the internal threshold, remove the dark parts of the image and obtain the sewage flow specifications based on the processed image. The sewage flow specifications include the cross-sectional area and volume of the flow. More specifically, the parts of the image below 20°C are uniformly dark, and the parts of the image above 20°C are uniformly light. The image is filtered by a color filtering algorithm to remove the dark parts of the image. The light and dark colors are white and black, respectively.
[0058] Secondly, the color filtering algorithm includes s1, loading the image; s2, converting it to HSV; s3, defining the upper and lower bounds of the filter; s4, creating a mask based on the upper and lower bounds; s5, applying the mask; and s6, displaying the processed image.
[0059] The cross-sectional area of the water flow is calculated by obtaining the length and width from the processed image, and the volume of the water flow is calculated by obtaining the cross-sectional area and streamlines from the processed image. The specifications of the sewage flow are calculated based on the proportions within the thermal imaging camera.
[0060] S4. On the time axis, based on the earliest processed image, select several pixels and track them to the latest processed image. After counting the time intervals, calculate the sewage flow rate.
[0061] S5. On the time axis, starting with the water flow volume at the earliest time and ending with the water flow volume at the latest time, calculate the average water flow volume.
[0062] S6 calculates the sewage flow rate using the formula Sewage Flow Rate = Sewage Flow Velocity * Water Flow Cross-sectional Area, and compares it with the average water flow volume. If the difference is greater than 15%, repeat S1 to S6. If the difference is less than 15%, output the average water flow volume and sewage flow rate.
[0063] like Figure 3 As shown in the figure, this application embodiment provides a server, including a processor 311, a communication interface 312, a memory 313, and a communication bus 314, wherein the processor 311, the communication interface 312, and the memory 313 communicate with each other through the communication bus 314.
[0064] Memory 313 is used to store computer programs;
[0065] In one embodiment of this application, when the processor 311 executes the program stored in the memory 313, it implements the fund management method based on the computing engine provided in any of the aforementioned method embodiments, and its function is similar, so it will not be described again here.
[0066] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the wastewater flow monitoring method based on computer graphics as provided in any of the foregoing method embodiments.
[0067] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0068] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0069] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A computer graphics based sewage flow monitoring method, characterized by, The method includes the following hardware: a) Two sets of thermal imaging cameras for capturing overhead and side views of sewage sections; b. A conversion system for processing images and calculating wastewater flow rate; c. A return system that draws water from the bottom of the sewage tank to below the flow channel and forms an L-shaped water curtain; Includes the following steps, S1, the return system draws water from the bottom of the sewage tank and sprays it to form a water curtain below the sewage outlet; S2, a thermal imaging camera captures top and side views of the sewage in the sewage channel and imports them into the conversion system as images; S3, after the conversion system detects the ambient temperature, it compares the ambient temperature with its internal threshold to determine whether to proceed to S3.1 or S3.2; S3.1 When the ambient temperature is less than the internal threshold, remove the light-colored part in the image to obtain the processed image, and obtain the sewage flow specification based on the inner circle of the processed image. The sewage flow specification includes the cross-sectional area of the flow and the volume of the flow. S3.2 When the ambient temperature is greater than the internal threshold, remove the dark parts of the image and obtain the sewage flow specifications based on the processed image. The sewage flow specifications include the cross-sectional area of the flow and the volume of the flow. S4. On the time axis, based on the processed image at the earliest time, select a number of pixels and track them to the processed image at the latest time. After counting the time intervals, calculate the sewage flow rate. S5. On the time axis, starting with the water flow volume at the earliest time and ending with the water flow volume at the latest time, calculate the average water flow volume. S6 calculates the sewage flow rate using the formula Sewage Flow Rate = Sewage Flow Velocity * Water Flow Cross-sectional Area, and compares it with the average water flow volume. If the difference is greater than 15%, repeat S1 to S6. If the difference is less than 15%, output the average water flow volume and sewage flow rate.
2. The computer graphics based sewage flow monitoring method as claimed in claim 1, wherein, The conversion system includes a processor and a temperature sensor coupled thereto, and the threshold temperature within the conversion system is 12.5°C.
3. The wastewater flow monitoring method based on computer graphics according to claim 2, characterized in that, In S3.1, areas in the image below 2°C are uniformly dark, and areas in the image above 2°C are uniformly light. The image is filtered by a color filtering algorithm to remove the light-colored parts, and the sewage flow specifications are calculated based on the proportions within the thermal imaging camera.
4. The wastewater flow monitoring method based on computer graphics according to claim 2, characterized in that, In S3.2, the portion of the image below 20°C is uniformly dark, and the portion of the image above 20°C is uniformly light. The image is filtered by a color filtering algorithm to remove the dark portion, and the sewage flow specifications are calculated based on the proportions within the thermal imaging camera.
5. The wastewater flow monitoring method based on computer graphics according to claim 1, characterized in that, In S3.1 and S3.2, the light color and dark color are white and black, respectively.
6. A wastewater flow monitoring method based on computer graphics according to claim 3 or 4, characterized in that, The color filtering algorithm includes: s1, loading the image; s2, converting it to HSV; s3, defining the upper and lower bounds of the filter; s4, creating a mask based on the upper and lower bounds; s5, applying the mask; and s6, displaying the processed image.
7. The wastewater flow monitoring method based on computer graphics according to claim 1, characterized in that, The cross-sectional area of the water flow is calculated by obtaining the length and width from the processed image.
8. The wastewater flow monitoring method based on computer graphics according to claim 1, characterized in that, The water flow volume is obtained by calculating the cross-sectional area and streamlines of the water flow from the processed image.
9. The wastewater flow monitoring method based on computer graphics according to claim 1, characterized in that, The return system includes a shaped tube (1) and an underwater suction machine. One end of the shaped tube (1) is round, and the other end is L-shaped. The underwater suction machine is connected to the round end of the shaped tube (1), and the L-shaped end of the shaped tube (1) is located below the sewage outlet.
10. A computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the steps of the wastewater flow monitoring method based on computer graphics as provided in any one of claims 1-8.
Citation Information
Patent Citations
Method for implementing online tests of stream flow based on video images
CN102564508A
Water level measurement program and ring-shaped indicator used therein
JP6612411B1