CN115861272A - Water displacement detection method based on video data and electronic device - Google Patents

Water displacement detection method based on video data and electronic device Download PDF

Info

Publication number
CN115861272A
CN115861272A CN202211668839.3A CN202211668839A CN115861272A CN 115861272 A CN115861272 A CN 115861272A CN 202211668839 A CN202211668839 A CN 202211668839A CN 115861272 A CN115861272 A CN 115861272A
Authority
CN
China
Prior art keywords
water
water flow
pipe
video data
discharge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211668839.3A
Other languages
Chinese (zh)
Inventor
柴涛涛
周晓彤
徐锡平
张提
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Vclusters Information Technology Co ltd
Original Assignee
Shenzhen Vclusters Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Vclusters Information Technology Co ltd filed Critical Shenzhen Vclusters Information Technology Co ltd
Priority to CN202211668839.3A priority Critical patent/CN115861272A/en
Publication of CN115861272A publication Critical patent/CN115861272A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Measuring Volume Flow (AREA)

Abstract

The invention discloses a drainage detection method based on video data, which comprises the following steps: installing a camera right in front of the drainage equipment, horizontally installing and fixing a water outlet, calibrating the length of a gravity hammer, pulling a video stream from the camera, calibrating the specific position of the gravity hammer according to picture content, and marking the length of the gravity hammer according to field measurement; decoding a video frame, converting an image into an RGB format and zooming to a model input size; performing image segmentation, wherein the image segmentation comprises the background, a drain pipe, a discharge area and water flow; if the drain pipe, the discharge area and the water flow are not detected, reporting that the field equipment is abnormal; if the water flow length is larger than a certain value, the water flow of the coil water pipe is considered to be full, and the instantaneous water discharge is as follows: the internal cross-sectional area of the water pipe and the external horizontal water flow speed; the method and the electronic device for detecting the water displacement based on the video data have the advantages of being accurate in monitoring, improving convenience and safety of construction and the like.

Description

Water displacement detection method based on video data and electronic device
Technical Field
The invention relates to the field of video analysis, in particular to a water displacement detection method based on video data and an electronic device.
Background
At present, many scenes need to know the current water discharge amount in real time, such as a dam water outlet, a household garbage and industrial garbage disposal medicine discharge port and the like; the construction of the water conservancy visual monitoring system is an inevitable trend for realizing sustainable development of modern water conservancy, and can enable important fields of flood control and disaster reduction, water resource scheduling management, water pollution event processing, shipping management and the like of a water conservancy management department to obtain data and information more timely and objectively, give early warning more accurately and efficiently and the like, and make scientific decisions of sustainable development better. The visual detection system can also improve the working environment of the operation maintenance staff of the hydraulic engineering, improve the working efficiency and save the operation cost of the hydraulic engineering.
Some scene conditions are abominable, and construction, maintenance are all more difficult, and some still have very strong corrosivity, are difficult to be under construction or maintain with traditional flowmeter, if go the analysis based on the video, can improve convenience, the security of construction to on-the-spot video data in addition makes things convenient for the secondary to obtain evidence.
Disclosure of Invention
The invention provides a water displacement detection method based on video data and an electronic device, and solves the problem that the water velocity of a water drainage pipe cannot be accurately monitored in the related art.
According to the embodiment of the application, the method for detecting the water displacement based on the video data comprises the following steps:
installing a camera right in front of the drainage equipment, horizontally installing and fixing a water outlet, calibrating the length of a gravity hammer, pulling a video stream from the camera, calibrating the specific position of the gravity hammer according to picture content, and marking the length of the gravity hammer according to field measurement;
decoding a video frame, converting an image into an RGB format and zooming to a model input size;
performing image segmentation, wherein the image segmentation comprises the background, a drain pipe, a discharge area and water flow;
if the drain pipe, the discharge area and the water flow are not detected, reporting that the field equipment is abnormal;
if the water flow length is larger than a certain value, the water flow of the coil water pipe is considered to be full, and the instantaneous water discharge is as follows: internal cross-sectional area of the water pipe and external horizontal water flow velocity;
if the water flow length is less than the specified value, then it is judged that the water is discharged from the water discharge pipe and is not full of the whole water pipe, and the water discharge at this time is: area from the bottom of the water pipe to the water surface and water velocity in the horizontal direction outside.
Preferably, based on the water displacement, a period of time is taken for calculation, the data of the minimum water displacement and the data of the maximum water displacement are removed, and the sum of other water displacements is averaged to obtain the statistical average water displacement in the period of time.
Preferably, the image segmentation uses a Deeplab V3+ image segmentation algorithm, a gravity weight is used to calibrate the absolute vertical direction, and the ratio of the unit distance to the actual distance in the frame is calibrated.
In order to solve the above technical problem, the present invention provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the method for detecting water displacement based on video data according to any one of the preceding claims.
In order to solve the above technical problem, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method for detecting a water discharge amount based on video data as described in any one of the above.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
the method comprises the steps of monitoring and analyzing video data of a drain pipe, and carrying out image segmentation on a video, wherein the types of the video are respectively background, the drain pipe, a drain area and water flow; if the drain pipe, the discharge area and the water flow are not detected, reporting that the field equipment is abnormal; if the water flow length is larger than a certain value, the water flow of the coil water pipe is considered to be full, and the instantaneous water discharge is as follows: internal cross-sectional area of the water pipe and external horizontal water flow velocity; if the water flow length is less than the specified value, then it is judged that the water is discharged from the water discharge pipe and is not full of the whole water pipe, and the water discharge at this time is: area from the bottom of the water pipe to the water surface and water velocity in the horizontal direction outside. The problem of exist among the prior art can't carry out accurate control to the displacement of drain pipe is solved, accurate control improves convenience, the security of construction.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of the present invention;
FIG. 2 is a schematic diagram of the logic of the present invention;
fig. 3 is a construction schematic diagram of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and 2, the present invention provides a method 100 for detecting a drainage amount based on video data, comprising the following steps:
s1, installing a camera right in front of drainage equipment, horizontally installing and fixing a drainage port, calibrating the length of a gravity hammer, pulling a video stream from the camera, calibrating the specific position of the gravity hammer according to picture content, and marking the length of the gravity hammer according to field measurement;
s2, decoding a video frame, converting an image into an RGB format and zooming to a model input size;
s3, carrying out image segmentation, wherein the image segmentation comprises a background, a drain pipe, a discharge area and water flow;
s4, if the drain pipe, the discharge area and the water flow are not detected, reporting that the field equipment is abnormal;
and S5, if the water flow length is greater than a certain specific value, the water flow of the coil water pipe is considered to be full, and the instantaneous water discharge is as follows: internal cross-sectional area of the water pipe and external horizontal water flow velocity;
and S6, if the water flow length is less than a specific value, judging that the water is discharged from the water discharge pipe and the whole water pipe is not filled, wherein the water discharge amount at the moment is as follows: the area from the bottom of the inside of the water pipe to the water surface part and the water flow speed of the outside in the horizontal direction;
step S7: and based on the water displacement, calculating a period of time, removing the data with the minimum water displacement and the data with the maximum water displacement, and averaging the sum of other water displacements to obtain the statistical average water displacement in the period of time.
Wherein in the step S5, if the water flow length is greater than a certain value, the water flow of the coil water pipe is considered to be full, and the instantaneous water discharge is: according to the physical principle, under the condition of knowing the gravity acceleration g, the height h and the length l, the water flow speed in the external horizontal direction can be easily obtained, and the air resistance is ignored;
the purpose of removing the data of the minimum and maximum displacement is to exclude the influence of wind or other factors.
It is understood that in the present invention, the image segmentation uses the deplab v3+ image segmentation algorithm, the gravity weight is used to calibrate the absolute vertical direction, and to calibrate the ratio of the unit distance to the actual distance in the frame.
The area of the portion from the bottom of the interior of the water pipe to the water surface is calculated according to h2 in fig. 2.
Referring to fig. 3, fig. 3 is a schematic diagram of the construction of the present invention, and a deplabv 3+ image segmentation algorithm is used for the target detection of the present invention, and is divided into four categories, i.e., a background, a drainage pipe, a drainage outlet, and a water flow. Fig. 3 shows a schematic diagram of construction, in which a gravity hammer is used to calibrate an absolute vertical direction, and a ratio of a unit distance to an actual distance in a calibration picture (for example, a line of the gravity hammer is 1 meter long, and in a 1080P picture of a specific lens, there may be only a height of 50 pixels), and a determination logic is as follows: performing detection every N frames, and counting the average value of the detection times M (two data with large errors are removed) per minute to be used as the average flow rate of the minute;
the invention provides an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the method 100 for detecting a water displacement based on video data.
The present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method 100 for detecting a water discharge based on video data.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
the method comprises the steps of monitoring and analyzing video data of a drain pipe, and carrying out image segmentation on the video, wherein the types of the video are respectively a background, the drain pipe, a drain area and water flow; if the drain pipe, the discharge port area and the water flow are not detected, the abnormality of the field equipment is reported; if the water flow length is larger than a certain value, the water flow of the coil water pipe is considered to be full, and the instantaneous water discharge is as follows: internal cross-sectional area of the water pipe and external horizontal water flow velocity; if the water flow length is less than the specified value, then it is judged that the water is discharged from the water discharge pipe and is not full of the whole water pipe, and the water discharge at this time is: area from the bottom of the water pipe to the water surface and water velocity in the horizontal direction outside. The problem of exist among the prior art can't carry out accurate control to the displacement of drain pipe is solved, accurate control improves convenience, the security of construction.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (5)

1. A method for detecting water displacement based on video data is characterized by comprising the following steps:
the method comprises the following steps of installing a camera right in front of drainage equipment, enabling a water outlet to be kept horizontally installed and fixed, calibrating the length of a gravity hammer, drawing a video stream from the camera, calibrating the specific position of the gravity hammer according to picture content, and marking the length of the gravity hammer according to field measurement;
decoding a video frame, converting an image into an RGB format and zooming to a model input size;
performing image segmentation, wherein the image segmentation comprises the background, a drain pipe, a discharge area and water flow;
if the drain pipe, the discharge area and the water flow are not detected, reporting that the field equipment is abnormal;
if the water flow length is larger than a certain value, the water flow of the coil water pipe is considered to be full, and the instantaneous water discharge is as follows: the internal cross-sectional area of the water pipe and the external horizontal water flow speed;
if the water flow length is less than the specific value, the water is judged to be discharged from the water discharge pipe and is not full of the whole water pipe, and the water discharge at the moment is as follows: area from the bottom of the water pipe to the water surface and water velocity in the horizontal direction outside.
2. The method of claim 1, comprising the steps of: and based on the water displacement, calculating a period of time, removing the data with the minimum water displacement and the data with the maximum water displacement, and averaging the sum of other water displacements to obtain the statistical average water displacement in the period of time.
3. The method of claim 1, wherein the image segmentation uses a Deeplab V3+ image segmentation algorithm, a gravity weight is used to calibrate the absolute vertical direction, and the ratio of the unit distance to the actual distance in the frame is calibrated.
4. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the method of detecting water displacement based on video data according to any one of claims 1 to 3.
5. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the method for detecting a water discharge amount based on video data according to any one of claims 1 to 3.
CN202211668839.3A 2022-12-24 2022-12-24 Water displacement detection method based on video data and electronic device Pending CN115861272A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211668839.3A CN115861272A (en) 2022-12-24 2022-12-24 Water displacement detection method based on video data and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211668839.3A CN115861272A (en) 2022-12-24 2022-12-24 Water displacement detection method based on video data and electronic device

Publications (1)

Publication Number Publication Date
CN115861272A true CN115861272A (en) 2023-03-28

Family

ID=85654514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211668839.3A Pending CN115861272A (en) 2022-12-24 2022-12-24 Water displacement detection method based on video data and electronic device

Country Status (1)

Country Link
CN (1) CN115861272A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115546561A (en) * 2022-10-25 2022-12-30 中山大学 Intermontane stream measurement and inspection method based on water body coverage characteristic identification
CN116629844A (en) * 2023-07-26 2023-08-22 山东碧汀智能科技有限公司 Automatic dispatch method and system for operation and maintenance of drinking water equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115546561A (en) * 2022-10-25 2022-12-30 中山大学 Intermontane stream measurement and inspection method based on water body coverage characteristic identification
CN116629844A (en) * 2023-07-26 2023-08-22 山东碧汀智能科技有限公司 Automatic dispatch method and system for operation and maintenance of drinking water equipment
CN116629844B (en) * 2023-07-26 2023-09-26 山东碧汀智能科技有限公司 Automatic dispatch method and system for operation and maintenance of drinking water equipment

Similar Documents

Publication Publication Date Title
CN101299275B (en) Method and device for detecting target as well as monitoring system
CN103686148B (en) A kind of method of the automatic detection video image clarity based on Digital Image Processing
US9420236B2 (en) Monitoring system and monitoring method
CN115861272A (en) Water displacement detection method based on video data and electronic device
CN116233370B (en) Intelligent video monitoring method based on water quality monitoring
CN112329582B (en) Road ponding depth monitoring method and system based on big data analysis and mechanism model cooperation
CN113343779B (en) Environment abnormality detection method, device, computer equipment and storage medium
CN115980050B (en) Water quality detection method and device for water outlet, computer equipment and storage medium
CN110864675A (en) Video-based water area flow and flow velocity monitoring system and method
CN115507309A (en) Gas leakage alarm method and system
CN115326026A (en) Method and device for acquiring hydraulic characteristics based on non-contact measurement-hydrodynamic fusion assimilation
CN108508860A (en) A kind of process industry production system data monitoring method based on coupled relation
CN109579934A (en) Water logging multiple monitoring method and system
CN113128098A (en) DE-LOF-based concrete dam singular value detection method and equipment
CN110316630B (en) Deviation early warning method and system for installation angle of elevator camera
CN112330675A (en) AOD-Net based traffic road image atmospheric visibility detection method
CN112784914B (en) Pipe gallery video intelligent attribute detection method and system based on cloud processing
CN110675393A (en) Blank specification detection method based on machine vision
CN110708519A (en) Interactive monitoring method for industrial field environment
CN105187821A (en) Video quality intelligent diagnostic analysis system
CN112255141B (en) Thermal imaging gas monitoring system
CN113483674A (en) Composite cable saddle slippage monitoring method and system for suspension bridge in mountainous area
CN110309838A (en) Video detection area contour of object based on exponential transform detects preprocess method
JP2021047156A (en) Surveillance system
CN114885097B (en) Method, device and storage medium for monitoring water flow by intelligent camera

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination