CN116206161A - Water level line measurement method and device, electronic equipment and storage medium - Google Patents

Water level line measurement method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116206161A
CN116206161A CN202310396573.XA CN202310396573A CN116206161A CN 116206161 A CN116206161 A CN 116206161A CN 202310396573 A CN202310396573 A CN 202310396573A CN 116206161 A CN116206161 A CN 116206161A
Authority
CN
China
Prior art keywords
image
target
water level
determining
water line
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
CN202310396573.XA
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.)
Innovation Wisdom Shanghai Technology Co ltd
Original Assignee
Innovation Wisdom Shanghai 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 Innovation Wisdom Shanghai Technology Co ltd filed Critical Innovation Wisdom Shanghai Technology Co ltd
Priority to CN202310396573.XA priority Critical patent/CN116206161A/en
Publication of CN116206161A publication Critical patent/CN116206161A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/764Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/02Recognising information on displays, dials, clocks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)

Abstract

The application belongs to the technical field of measurement and discloses a method, a device, electronic equipment and a storage medium for measuring a water level line, wherein the method comprises the steps of obtaining an original image containing a water level gauge; the water level gauge is a tool for measuring a water level line; image interception is carried out on the original image, and a plurality of partial images containing the water level gauge are obtained; based on the classification model, identifying each local image to obtain a target local image containing a water line; and determining the position of the target water level line according to the target partial image. Thus, the measuring step of the water level line can be simplified, and the cost of measuring the water level line can be reduced.

Description

Water level line measurement method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of measurement technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for measuring a water line.
Background
In some measurement scenarios, it is often desirable to determine the water level by measuring the water line. In the prior art, the water level is usually determined by manually reading the scale of the water level gauge.
However, this approach is cumbersome and can be labor intensive.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, an electronic device, and a storage medium for measuring a water line, which are used for simplifying a measuring step of the water line and reducing a cost of measuring the water line when measuring the water line.
In one aspect, a method of water line measurement is provided, comprising:
acquiring an original image containing a water level gauge; the water level gauge is a tool for measuring a water level line;
image interception is carried out on the original image, and a plurality of partial images containing the water level gauge are obtained;
based on the classification model, identifying each local image to obtain a target local image containing a water line;
and determining the position of the target water level line according to the target partial image.
In one embodiment, image capturing is performed on an original image to obtain a plurality of partial images including a water level, including:
performing water level identification on the original image to obtain a water level area;
according to the water level area, image interception is carried out on the original image to obtain a plurality of partial images; overlapping areas are included between adjacent partial images.
In one embodiment, identifying each partial image based on a classification model to obtain a target partial image including a water line includes:
inputting each local image into a classification model to obtain the confidence coefficient of each local image;
screening out target confidence coefficients positioned in a set confidence coefficient interval from all the confidence coefficients;
and determining the local image corresponding to the target confidence as a target local image.
In one embodiment, determining a target water line location from a target partial image includes:
if the target partial image is one, determining the image height corresponding to the target partial image as a target water line position;
if the target partial images are multiple, determining the position of the target water line according to the image height corresponding to each target partial image.
In one embodiment, the method further comprises:
performing mark recognition on the original image to obtain an early warning position;
and if the target water line position and the early warning position in the original image are determined to be in accordance with the early warning condition, sending out early warning information.
In one aspect, there is provided an apparatus for water line measurement, comprising:
an acquisition unit for acquiring an original image including a water level; the water level gauge is a tool for measuring a water level line;
the intercepting unit is used for intercepting the original image to obtain a plurality of partial images containing the water level;
the identifying unit is used for identifying each local image based on the classification model to obtain a target local image containing a water line;
and the determining unit is used for determining the target water line position according to the target partial image.
In one embodiment, the interception unit is configured to:
performing water level identification on the original image to obtain a water level area;
according to the water level area, image interception is carried out on the original image to obtain a plurality of partial images; overlapping areas are included between adjacent partial images.
In one embodiment, the identification unit is configured to:
inputting each local image into a classification model to obtain the confidence coefficient of each local image;
screening out target confidence coefficients positioned in a set confidence coefficient interval from all the confidence coefficients;
and determining the local image corresponding to the target confidence as a target local image.
In one embodiment, the determining unit is configured to:
if the target partial image is one, determining the image height corresponding to the target partial image as a target water line position;
if the target partial images are multiple, determining the position of the target water line according to the image height corresponding to each target partial image.
In an embodiment, the determining unit is further configured to:
performing mark recognition on the original image to obtain an early warning position;
and if the target water line position and the early warning position in the original image are determined to be in accordance with the early warning condition, sending out early warning information.
In one aspect, there is provided an electronic device comprising a processor and a memory storing computer readable instructions that, when executed by the processor, perform the steps of a method as provided in various alternative implementations of any of the above-described water line measurements.
In one aspect, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of a method as provided in various alternative implementations of any of the above-described water line measurements.
In one aspect, there is provided a computer program product which, when run on a computer, causes the computer to perform the steps of the method provided in various alternative implementations of any of the above water line measurements.
In the method, the device, the electronic equipment and the storage medium for measuring the water level line, which are provided by the embodiment of the application, an original image containing a water level gauge is obtained; the water level gauge is a tool for measuring a water level line; image interception is carried out on the original image, and a plurality of partial images containing the water level gauge are obtained; based on the classification model, identifying each local image to obtain a target local image containing a water line; and determining the position of the target water level line according to the target partial image. Thus, the measuring step of the water level line can be simplified, and the cost of measuring the water level line can be reduced.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for water line measurement according to an embodiment of the present application;
FIG. 2 is a block diagram of a water line measuring device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Some of the terms referred to in the embodiments of the present application will be described first to facilitate understanding by those skilled in the art.
Terminal equipment: the mobile terminal, stationary terminal or portable terminal may be, for example, a mobile handset, a site, a unit, a device, a multimedia computer, a multimedia tablet, an internet node, a communicator, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a personal communications system device, a personal navigation device, a personal digital assistant, an audio/video player, a digital camera/camcorder, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a game device, or any combination thereof, including the accessories and peripherals of these devices, or any combination thereof. It is also contemplated that the terminal device can support any type of interface (e.g., wearable device) for the user, etc.
And (3) a server: the cloud server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, basic cloud computing services such as big data and artificial intelligent platforms and the like.
In order to simplify the measuring step of the water line and reduce the cost of water line measurement when measuring the water line, the embodiment of the application provides a water line measuring method, a water line measuring device, an electronic device and a storage medium.
In this embodiment of the present application, the execution body may be an electronic device, and the electronic device may be a server or a terminal device.
Referring to fig. 1, a flowchart of a method for measuring a water line according to an embodiment of the present application is shown, and a specific implementation flow of the method is as follows:
step 100: acquiring an original image containing a water level gauge; the water level gauge is a tool for measuring a water level line; step 101: image interception is carried out on the original image, and a plurality of partial images containing the water level gauge are obtained; step 102: based on the classification model, identifying each local image to obtain a target local image containing a water line; step 103: and determining the position of the target water level line according to the target partial image.
In one embodiment, for water level identification, image acquisition is typically performed for a water level bar, and an original image containing the water level bar is obtained. Alternatively, the image may be a single picture or a video frame.
The water level gauge is a tool for measuring the water level line, and the height of the water level line can be measured through the scales of the water level gauge.
In one embodiment, to increase the efficiency of the water line measurement, the implementation of step 101 may include:
s1011: and carrying out water level identification on the original image to obtain a water level area.
Alternatively, the water level gauge area may be marked by a polygonal frame such as a rectangular frame.
In one embodiment, the original image is subjected to water level identification to obtain a rectangular frame containing the water level.
S1012: according to the water level area, image interception is carried out on the original image to obtain a plurality of partial images; overlapping areas are included between adjacent partial images.
In one embodiment, a polygon image, i.e., a partial image, having a side length of a specified side length (e.g., 224 mm) is taken with a center line of a water level area (e.g., rectangular frame) from top to bottom as a path, and a specified number of pixels (e.g., 20 pixels) as a step length.
In one embodiment, to accurately determine the partial image in which the water line is located, the implementation process of step 102 may include:
s1021: and inputting each local image into a classification model to obtain the confidence coefficient of each local image.
In one embodiment, a classification model is built and trained in advance based on a neural network, and each local image is classified through the pre-trained classification model, so that the confidence coefficient of each local image is obtained.
Alternatively, the confidence level may be in the interval range of [ -1,1], and if the confidence level is greater than 0, the local image is determined to be located above the water line, otherwise, the lower the water line, the closer to 1, and the higher the probability of being above the water line, and conversely, the lower the probability.
S1022: and screening out target confidence degrees positioned in the set confidence degree interval from the confidence degrees.
The confidence interval may be set to be higher than the first confidence threshold and lower than the second confidence threshold.
In practical application, the confidence interval and the first confidence threshold value, and the second confidence threshold value can be set according to the practical application scene, which is not limited herein.
Further, one confidence coefficient with the confidence coefficient closest to 0 can be screened out from all confidence coefficients larger than zero, one confidence coefficient with the confidence coefficient closest to 0 can be screened out from all confidence coefficients smaller than zero, and the two screened confidence coefficients are determined to be target confidence coefficients.
For example, the confidence of each partial picture is [1,1,0.9,0.9,1,0.8,0.4,0.3, -0.4, -0.5, -0.8, -0.9, -1, -1] in order. The confidence levels 0.3 and-0.4 may be determined as target confidence levels.
S1023: and determining the local image corresponding to the target confidence as a target local image.
In one embodiment, to accurately determine the target water line location, the implementation of step 103 may include:
s1031: if the target partial image is one, determining the image height corresponding to the target partial image as the target water line position.
In one embodiment, a water level scale corresponding to a center point of a target partial image is read as an image height.
In one embodiment, the image height corresponding to the target partial image is determined according to the correspondence between the original image and the length of the water level and the position (e.g., order, scale, etc.) of the target partial image in the original image.
S1033: if the target partial images are multiple, determining the position of the target water line according to the image height corresponding to each target partial image.
In one embodiment, an average of a plurality of image heights is calculated as a target water line position.
In practical application, the determination mode of the target local image may be set according to the practical application scene, which is not limited herein.
In one embodiment, early warning can be performed in time when the water level line is high. The implementation process of step 103 may further include:
performing mark recognition on the original image to obtain an early warning position; and if the target water line position and the early warning position in the original image are determined to be in accordance with the early warning condition, sending out early warning information.
In one embodiment, the pre-warning position in the original image is compared with the target water line position, and if the target water line position is higher than the pre-warning position, pre-warning information is sent out.
In one embodiment, a difference between the pre-warning position and the target water line position in the original image is calculated, and if the difference is located in a set pre-warning interval, pre-warning information is sent out.
For example, if the difference between the target water line and the pre-warning position is higher than a first preset difference (e.g., 2), the pre-warning information is sent.
For another example, if the difference between the pre-warning position and the target water line is lower than the second preset difference (e.g., 2), the pre-warning information is sent.
In one embodiment, a plurality of set early warning intervals are set, corresponding early warning strategies are set for the set early warning intervals respectively, then the difference between the early warning position in the original image and the target water line position is calculated, the set early warning interval to which the difference belongs is determined, and early warning information is sent out according to the early warning strategies corresponding to the set early warning intervals.
Optionally, the early warning strategy may include at least one of: short messages, voice, ringtones, lights, and telephones.
Therefore, the position of the water level line can be accurately measured, the measuring step of the water level line is simplified, the cost of measuring the water level line is reduced, and early warning can be timely carried out.
Based on the same inventive concept, the embodiments of the present application further provide a device for measuring a water line, and since the principle of solving the problems by using the device and the equipment is similar to that of a method for measuring a water line, the implementation of the device can refer to the implementation of the method, and the repetition is omitted.
As shown in fig. 2, the block diagram of a device for measuring a water line according to an embodiment of the present application includes:
an acquisition unit 201 for acquiring an original image including a water level; the water level gauge is a tool for measuring a water level line;
the intercepting unit 202 is used for intercepting an original image to obtain a plurality of partial images containing a water level;
an identifying unit 203, configured to identify each partial image based on the classification model, and obtain a target partial image including a water line;
a determining unit 204, configured to determine a target water line position according to the target partial image.
In one embodiment, the interception unit 202 is configured to:
performing water level identification on the original image to obtain a water level area;
according to the water level area, image interception is carried out on the original image to obtain a plurality of partial images; overlapping areas are included between adjacent partial images.
In one embodiment, the identification unit 203 is configured to:
inputting each local image into a classification model to obtain the confidence coefficient of each local image;
screening out target confidence coefficients positioned in a set confidence coefficient interval from all the confidence coefficients;
and determining the local image corresponding to the target confidence as a target local image.
In one embodiment, the determining unit 204 is configured to:
if the target partial image is one, determining the image height corresponding to the target partial image as a target water line position;
if the target partial images are multiple, determining the position of the target water line according to the image height corresponding to each target partial image.
In one embodiment, the determining unit 204 is further configured to:
performing mark recognition on the original image to obtain an early warning position;
and if the target water line position and the early warning position in the original image are determined to be in accordance with the early warning condition, sending out early warning information.
In the method, the device, the electronic equipment and the storage medium for measuring the water level line provided by the embodiment of the application,
fig. 3 shows a schematic structural diagram of an electronic device 3000. Referring to fig. 3, the electronic device 3000 includes: the processor 3010 and the memory 3020 may optionally further include a power supply 3030, a display unit 3040, and an input unit 3050.
The processor 3010 is a control center of the electronic device 3000, and connects various components using various interfaces and lines, and executes various functions of the electronic device 3000 by running or executing software programs and/or data stored in the memory 3020, thereby performing overall monitoring of the electronic device 3000.
In the embodiment of the present application, the processor 3010 executes the respective steps in the above embodiment when calling the computer program stored in the memory 3020.
Optionally, the processor 3010 may include one or more processing units; preferably, the processor 3010 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 3010. In some embodiments, the processor, memory, may be implemented on a single chip, and in some embodiments, they may be implemented separately on separate chips.
Memory 3020 may primarily include a storage program area and a storage data area, wherein the storage program area may store an operating system, various applications, and the like; the storage data area may store data created according to the use of the electronic device 3000, or the like. In addition, memory 3020 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device, among others.
The electronic device 3000 further includes a power supply 3030 (e.g., a battery) for powering the various components, which may be logically connected to the processor 3010 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system.
The display unit 3040 may be used to display information input by a user or information provided to the user, various menus of the electronic device 3000, and the like, and is mainly used to display a display interface of each application in the electronic device 3000 and objects such as text and pictures displayed in the display interface in the embodiment of the present invention. The display unit 3040 may include a display panel 3041. The display panel 3041 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The input unit 3050 may be used to receive information such as numbers or characters inputted by a user. The input unit 3050 may include a touch panel 3051 and other input devices 3052. Wherein the touch panel 3051, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 3051 or thereabout using any suitable object or accessory such as a finger, stylus, etc.).
Specifically, the touch panel 3051 may detect a touch operation by a user, detect a signal resulting from the touch operation, convert the signal into a touch point coordinate, transmit the touch point coordinate to the processor 3010, and receive and execute a command transmitted from the processor 3010. In addition, the touch panel 3051 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. Other input devices 3052 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, on-off keys, etc.), a trackball, mouse, joystick, etc.
Of course, the touch panel 3051 may cover the display panel 3041, and when the touch panel 3051 detects a touch operation thereon or thereabout, the touch operation is transferred to the processor 3010 to determine the type of touch event, and then the processor 3010 provides a corresponding visual output on the display panel 3041 according to the type of touch event. Although in fig. 3, the touch panel 3051 and the display panel 3041 implement the input and output functions of the electronic device 3000 as two separate components, in some embodiments, the touch panel 3051 and the display panel 3041 may be integrated to implement the input and output functions of the electronic device 3000.
The electronic device 3000 may also include one or more sensors, such as a pressure sensor, a gravitational acceleration sensor, a proximity light sensor, and the like. Of course, the electronic device 3000 may also include other components such as a camera, as needed in a specific application, and these components are not shown in fig. 3 and will not be described in detail since they are not the components that are important in the embodiments of the present application.
It will be appreciated by those skilled in the art that fig. 3 is merely an example of an electronic device and is not meant to be limiting and that more or fewer components than shown may be included or certain components may be combined or different components.
In an embodiment of the present application, a computer-readable storage medium has stored thereon a computer program that, when executed by a processor, enables a communication device to perform the steps of the above-described embodiments.
For convenience of description, the above parts are described as being functionally divided into modules (or units) respectively. Of course, the functions of each module (or unit) may be implemented in the same piece or pieces of software or hardware when implementing the present application.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (12)

1. A method of water line measurement, comprising:
acquiring an original image containing a water level gauge; the water level gauge is a tool for measuring a water level line;
image interception is carried out on the original image, and a plurality of partial images containing water level bars are obtained;
based on the classification model, identifying each local image to obtain a target local image containing a water line;
and determining the position of the target water level line according to the target partial image.
2. The method of claim 1, wherein said performing image capture on said original image to obtain a plurality of partial images including a water level comprises:
performing water level identification on the original image to obtain a water level area;
according to the water level area, image interception is carried out on the original image to obtain a plurality of partial images; overlapping areas are included between adjacent partial images.
3. The method of claim 1, wherein identifying each partial image based on the classification model to obtain a target partial image comprising a water line comprises:
inputting each local image into a classification model to obtain the confidence coefficient of each local image;
screening out target confidence coefficients positioned in a set confidence coefficient interval from all the confidence coefficients;
and determining the local image corresponding to the target confidence as a target local image.
4. The method of claim 3, wherein said determining a target water line location from said target partial image comprises:
if the target partial image is one, determining the image height corresponding to the target partial image as the target water line position;
and if the target partial images are multiple, determining the position of the target water line according to the image height corresponding to each target partial image.
5. The method of any one of claims 1-4, wherein the method further comprises:
performing mark recognition on the original image to obtain an early warning position;
and if the target water line position and the early warning position in the original image are determined to be in accordance with the early warning condition, sending early warning information.
6. An apparatus for water line measurement, comprising:
an acquisition unit for acquiring an original image including a water level; the water level gauge is a tool for measuring a water level line;
the intercepting unit is used for intercepting the original image to obtain a plurality of partial images containing the water level;
the identifying unit is used for identifying each local image based on the classification model to obtain a target local image containing a water line;
and the determining unit is used for determining the position of the target water line according to the target partial image.
7. The apparatus of claim 6, wherein the intercept unit is to:
performing water level identification on the original image to obtain a water level area;
according to the water level area, image interception is carried out on the original image to obtain a plurality of partial images; overlapping areas are included between adjacent partial images.
8. The apparatus of claim 6, wherein the identification unit is to:
inputting each local image into a classification model to obtain the confidence coefficient of each local image;
screening out target confidence coefficients positioned in a set confidence coefficient interval from all the confidence coefficients;
and determining the local image corresponding to the target confidence as a target local image.
9. The apparatus of claim 8, wherein the determining unit is to:
if the target partial image is one, determining the image height corresponding to the target partial image as the target water line position;
and if the target partial images are multiple, determining the position of the target water line according to the image height corresponding to each target partial image.
10. The apparatus according to any of claims 6-9, wherein the determining unit is further configured to:
performing mark recognition on the original image to obtain an early warning position;
and if the target water line position and the early warning position in the original image are determined to be in accordance with the early warning condition, sending early warning information.
11. An electronic device comprising a processor and a memory storing computer readable instructions that, when executed by the processor, perform the method of any of claims 1-5.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, performs the method according to any of claims 1-5.
CN202310396573.XA 2023-04-12 2023-04-12 Water level line measurement method and device, electronic equipment and storage medium Pending CN116206161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310396573.XA CN116206161A (en) 2023-04-12 2023-04-12 Water level line measurement method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310396573.XA CN116206161A (en) 2023-04-12 2023-04-12 Water level line measurement method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116206161A true CN116206161A (en) 2023-06-02

Family

ID=86514888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310396573.XA Pending CN116206161A (en) 2023-04-12 2023-04-12 Water level line measurement method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116206161A (en)

Similar Documents

Publication Publication Date Title
US10796133B2 (en) Image processing method and apparatus, and electronic device
CN110704661B (en) Image classification method and device
US11182593B2 (en) Image processing method, computer device, and computer readable storage medium
CN107871011A (en) Image processing method, device, mobile terminal and computer-readable recording medium
CN116168038B (en) Image reproduction detection method and device, electronic equipment and storage medium
CN108334539A (en) Object recommendation method, mobile terminal and computer readable storage medium
CN111026967B (en) Method, device, equipment and medium for obtaining user interest labels
CN111027854A (en) Comprehensive portrait index generation method based on enterprise big data and related equipment
CN114693673A (en) Glass detection method and device, electronic equipment and computer-readable storage medium
CN111680686B (en) Signboard information identification method, device, terminal and storage medium
CN113010805A (en) Index data processing method, device, equipment and storage medium
CN115022098A (en) Artificial intelligence safety target range content recommendation method, device and storage medium
CN103812758A (en) System and method for distributing information via audio
CN108234758B (en) Application display method and device, storage medium and electronic equipment
CN114937027B (en) Fan blade defect detection method and device, electronic equipment and storage medium
CN116206161A (en) Water level line measurement method and device, electronic equipment and storage medium
CN102870111A (en) Method and apparatus for determining an analysis chronicle
CN114943978A (en) Table reconstruction method and electronic equipment
CN113922998A (en) Vulnerability risk assessment method and device, electronic equipment and readable storage medium
CN115147856B (en) Table information extraction method and electronic equipment
CN113705722B (en) Method, device, equipment and medium for identifying operating system version
CN108052525B (en) Method and device for acquiring audio information, storage medium and electronic equipment
CN115357461B (en) Abnormality detection method, abnormality detection device, electronic device, and computer-readable storage medium
CN110909190B (en) Data searching method and device, electronic equipment and storage medium
CN113706506B (en) Method and device for detecting assembly state, electronic equipment and storage medium

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