Image Processing Device

The image processing device uses template matching and similarity calculations to accurately measure water levels in rivers and similar environments, overcoming the limitations of uneven liquid surfaces.

JP7532812B2Active Publication Date: 2024-08-14OKI ELECTRIC INDUSTRY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2020036040
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-03-03
Publication Date
2024-08-14
Estimated Expiration
2040-03-03

AI Technical Summary

Technical Problem

Existing image processing methods for determining water levels from camera images fail to accurately measure liquid levels when the liquid surface is uneven, such as in flowing water.

Method used

An image processing device that calculates water levels using a template image stored in a storage unit, performs similarity calculations between the photographed image and the template, and determines the water level based on the similarity, utilizing a water level calculation unit to account for variations in the environment.

Benefits of technology

Enables accurate water level measurement in rivers and similar environments without relying on external conditions, ensuring reliable data even in conditions like flowing water.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007532812000007
    Figure 0007532812000007
  • Figure 0007532812000002
    Figure 0007532812000002
  • Figure 0007532812000001
    Figure 0007532812000001
Patent Text Reader

Abstract

To provide an image processing device capable of measuring the water level of a river or the like without depending on external environment.SOLUTION: In an information collection system, an image processing device that calculates the water level of a water surface from captured images of a structure near the waterside and the water surface of the waterside, comprises: a storage unit for storing at least a template image and template information I including a water level value associated with the template image; a similarity calculation unit for calculating a similarity between the captured image and the template image; and a water level calculation unit for calculating the water level of the water surface based on the similarity calculated by the similarity calculation unit and the water level value associated with the template image.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image processing device. Place For example, the present invention can be applied to an image processing device that captures an image of a water gauge installed on the waterside of a river or the like with a camera and calculates the water level indicated by the water gauge from the captured image. [Background technology]

[0002] Conventionally, in addition to using ultrasonic water level gauges and the like as a means for measuring the water level of rivers, etc., there are also means for measuring (calculating) the water level from images captured by an imaging device such as a camera (see, for example, Patent Document 1).

[0003] Patent Document 1 discloses a method for determining the intersection of a straight line representing the inclination of a ruler placed at an angle against the side wall using image processing from an image captured by camera 1 and a straight line in the reflected image of the ruler on the liquid surface or a straight line in the refracted image below the liquid surface, and then determining the position of the liquid surface in physical space by reading the scale and numerical value on the ruler above the coordinates of this intersection. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Japanese Patent Application Publication No. 8-14992 Summary of the Invention [Problem to be solved by the invention]

[0005] However, the device and method described in Patent Document 1 above must detect either a reflected image on the liquid surface or a refracted image below the liquid surface, and it is not possible to measure the liquid level when the liquid surface is uneven, such as in flowing water.

[0006] Therefore, image processing equipment that can measure the water level of rivers and other places without depending on the external environment is required. Place It is desired. [Means for solving the problem]

[0007] The first invention is an image processing device that calculates a water level of a water surface from a captured image of a structure near a water's edge and the water surface of the water's edge, and includes: (1) a storage unit that stores template information including at least a template image and a water level value associated with the template image; (2) a similarity calculation unit that calculates a similarity between the captured image and the template image; and (3) a water level calculation unit that calculates the water level of the water surface based on the similarity calculated by the similarity calculation unit and the water level value associated with the template image. (4) the template image is a plurality of images cut out at different lengths in a vertical downward direction in the real world from a reference point of the structure. It is characterized by:

[0008] The second aspect of the present invention is An image processing device that calculates a water level of a water surface from a captured image of a structure near a water's edge and the water surface at the water's edge, comprising: (1) a memory unit that stores template information including at least a template image and a water level value associated with the template image; (2) a similarity calculation unit that calculates a similarity between the captured image and the template image; and (3) a water level calculation unit that calculates the water level of the water surface based on the similarity calculated by the similarity calculation unit and the water level value associated with the template image, wherein (4) the water level calculation unit calculates a difference between the similarity calculated by the similarity calculation unit and a standard similarity, which is the similarity between the captured image in which all of the structures are exposed and the template image; and (5) the water level calculation unit compares the difference with a threshold value and calculates the water level value of the template image with the largest water level value among the template images for which the difference exceeds the threshold value as the water level of the water surface. Effect of the Invention

[0010] According to the present invention, the water level of a river or the like can be measured without depending on the external environment. [Brief description of the drawings]

[0011] [Figure 1] 1 is a block diagram showing an overall configuration of an information collecting system according to an embodiment. [Diagram 2] 1 is a block diagram showing a functional configuration of an image processing device according to an embodiment; [Diagram 3] FIG. 11 is an explanatory diagram illustrating an example of template information according to the embodiment. [Figure 4] FIG. 11 is an explanatory diagram showing an image of a template image cut out from a photographed image of a water gauge according to the embodiment. [Diagram 5] FIG. 11 is an explanatory diagram illustrating an example of a similarity sequence according to the embodiment. [Figure 6] FIG. 11 is an explanatory diagram illustrating an example of a reference similarity sequence according to the embodiment. [Figure 7] 4 is a flowchart showing the overall operation (image processing) of the image processing device according to the embodiment. [Figure 8]10 is an explanatory diagram showing a similarity sequence calculated using an original image captured by the imaging device according to the embodiment and a template image; FIG. [Figure 9] 1 is an explanatory diagram showing a reference similarity sequence calculated in advance using a captured image (reference image) in which a water level gauge according to an embodiment is entirely exposed, and a template image. FIG. [Figure 10] 13 is an explanatory diagram showing a state in which a difference similarity sequence is calculated from a similarity sequence and a reference similarity sequence according to the embodiment, and an estimated water level value is calculated from the difference similarity sequence and a reference value. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] (A) Main embodiment The image processing device according to the present invention will be described below. Place An embodiment will now be described in detail with reference to the drawings.

[0013] (A-1) Configuration of the embodiment (A-1-1) Overall composition FIG. 1 is a block diagram showing the overall configuration of an information collecting system according to an embodiment.

[0014] In FIG. 1, an information collection system 10 includes a water gauge 1, an image capturing device 2, an image processing device 3, a communication device 4, a communication device 5, and a management device 6.

[0015] The water gauge 1 is, for example, a vertically erected pole with a scale that allows the water level to be calculated. It is also desirable for the water gauge 1 to have a distinctive pattern for image analysis, and it is also necessary for it to be securely fixed to the pier of a bridge or the like that spans the river.

[0016] The photographing device 2 is, for example, a camera, which provides a photographed image to the connected photographing device 2. The photographing device 2 needs to be fixed at a position and angle of view that allows it to photograph the water gauge 1.

[0017] The image processing device 3 acquires a photographed image including the water gauge 1 from the photographing device 2, analyzes the photographed image, and calculates the water level of a river or the like indicated by the water gauge 1. The image processing device 3 then provides the calculated water level value (hereinafter referred to as the "estimated water level value") to the communication device 4. Note that, although the image processing device 3 acquires the photographed image directly from the photographing device 2 in Fig. 1, it may also acquire the image via a communication device or an external storage device such as a USB memory.

[0018] The communication devices 4 and 5 are communication devices that transmit and receive signals including a water level estimation value. The communication device 4 transmits a signal including a water level estimation value acquired from the image processing device 3, and the communication device 5 receives the communication signal transmitted from the communication device 4 and provides the water level estimation value contained in the signal to the management device 6. The communication devices 4 and 5 can be those that perform wireless communication according to a wireless communication protocol such as multi-hop wireless communication. The wireless communication protocol is not particularly limited.

[0019] The management device 6 sequentially records the water level estimate value of the water gauge 1 provided by the communication device 5, and manages the water level of the river or the like in which the water gauge 1 is installed. As a modified example, the management device 6 may have the functions of the image processing device 3. In this case, image data captured by the photographing device 2 is transmitted to the management device 6 by the communication devices 4 and 5.

[0020] (A-1-2) Detailed configuration of image processing device 3 FIG. 2 is a block diagram showing a functional configuration of the image processing apparatus according to the embodiment.

[0021] The image processing device 3 has an image input unit 31, a storage unit 32, a similarity calculation unit 33, a water level calculation unit , and an output unit .

[0022] The image processing device 3 may be realized by installing a program (an image processing program according to the embodiment) in a computer having a processor, memory, etc., but even in this case, the functions of the image processing device 3 can be shown in Fig. 1. Note that the image processing device 3 may be realized in part or in whole by hardware.

[0023] The image input unit 31 inputs a photographed image including the water gauge 1 from an image capturing device 2 that captures the water gauge 1 .

[0024] The storage unit 32 stores template information I including a processed image (cut image) of an image previously taken of the water gauge 1, a reference similarity string K and a reference value T, which will be described later, and the like.

[0025] FIG. 3 is an explanatory diagram illustrating an example of template information according to the embodiment.

[0026] In FIG. 3, template information I has the following items: "template image label" which identifies each template image, which is an image processed (cut out) from a photographed image of the water level gauge 1; "template image" which indicates each template image; and "water level" which indicates the water level value corresponding to each template image.

[0027] The above template images are images cut out at different lengths in the vertical downward direction in the real world from the top end of the water gauge 1 as shown in FIG. 4(B).

[0028] In addition, the image to be cut out may be, for example, an image captured using the photographing device 2 with all the water gauges exposed above the water surface as shown in Figure 4(A), the photographing device 2 and the water gauge 1 fixed in advance, and the positional relationship between the photographing device 2 and the water gauge 1 determined.

[0029] As shown in FIG. 3, the template information I shows a total of 10 template images each showing a water level value of 0 to 90 cm, with each image having a width of 10 cm, but the combinations of water level values ​​and template images are not limited to this.

[0030] For example, template information I may have a total of 20 template images every 5 cm in the water level range of 0 to 90 cm (i.e., template images indicating water level values ​​of 0, 5, 10, 15, etc.), or may have a total of 20 template images every 10 cm in the water level range of 0 to 180 cm (template images indicating water level values ​​of 0, 10, ... 170, 180).

[0031] The similarity calculation unit 33 performs template matching between the image provided by the image input unit 31 (original image captured by the image capture device 2) and multiple template images stored in the storage unit 32 (template information I), and calculates the similarity between the original image and each template image. The results of the similarity between each template image are provided to the water level calculation unit 34 as a similarity string J, for example, as shown in FIG. 5.

[0032] The water level calculation unit 34 calculates the water level from the change in the value of the similarity string J calculated by the similarity calculation unit 33. Details will be described later, but for example, it checks whether each difference between the similarity string J and a reference similarity string K (a similarity string calculated for an image in which the entire water gauge 1 is exposed) as shown in Fig. 6 exceeds a reference value T, and among the template images that exceed the reference value T, the water level value of the template image with the largest water level value is set as the estimated water level value.

[0033] The output unit 35 outputs the estimated water level value calculated by the water level calculation unit 34 to the outside.

[0034] (A-2) Operation of the embodiment Next, the operation of image processing by the image processing device 3 according to the embodiment will be described with reference to the drawings.

[0035] (A-2-1) Overall operation of image processing FIG. 7 is a flowchart showing the overall operation (image processing) of the image processing device according to the embodiment.

[0036] The image input unit 31 receives an input of an original image captured by the photographing device 2 (S101). The original image (photographed image) here includes at least a water gauge 1. The image input unit 31 provides the original image acquired from the photographing device 2 to the similarity calculation unit 33.

[0037] Next, the similarity calculation unit 33 performs template matching between the original image and multiple template images in the template information I, and calculates the similarity between the original image and each template image (similarity string J) (S202). The similarity calculation unit 33 may use existing indices such as SSD (Sum of Squared Difference), SAD (Sum of Absolute Difference), NCC (Normalized Cross Correlation), and ZNCC (Zero-means Normalized Cross Correlation) as indices for calculating the similarity.

[0038] The position of the template image when the similarity calculation unit 33 performs template matching is the position where the template image is cut out from the original image used to create the template image. Each value of the calculated similarity string J is associated with the water level value of each template image from which the calculation is performed, for example, as shown in FIG.

[0039] The water level calculation unit 34 calculates the water level from the change in the value of the similarity sequence J calculated by the similarity calculation unit 33 (S103). The detailed operation of the water level calculation unit 34 will be described later.

[0040] The output unit 35 outputs the estimated water level value calculated by the water level calculation unit 34 to the outside of the image processing device 3.

[0041] (A-2-2) Detailed operation of water level calculation Next, the characteristic operations of the water level calculation unit 34 will be described with reference to several drawings.

[0042] First, we will explain again the similarity sequence used in the water level calculation unit 34. Fig. 8 is an explanatory diagram showing the state of the similarity sequence calculated using the original image captured by the imaging device according to the embodiment and the template image.

[0043] As shown in Fig. 8(B), when a part of the water gauge 1 is located below the water surface due to a rise in the water level or the like, an original image as shown in the figure is captured by the photographing device 2. When similarity calculation is performed on this original image by template matching using the template information I (template image) shown in Fig. 8(A), a similarity string J as shown in Fig. 8(C), for example, is obtained. Here, as shown in Fig. 8(C), the similarity between the original image and a template image including a region in the original image that is located below the water surface is small, and the similarity between the original image and a template image not including that region is high.

[0044] The water level calculation unit 34 refers to the similarity associated with the template images in ascending order of template image area, i.e., in descending order of the water level indicated by the water gauge 1 at the bottom end of the template image, and outputs the water level having the same template image label as the similarity that indicates that the similarity begins to decrease significantly.

[0045] Here, the method by which the water level calculation unit 34 determines whether or not the similarity indicates that it is beginning to drop significantly is not particularly limited, but for example, the following method may be used.

[0046] FIG. 9 is an explanatory diagram showing a reference similarity sequence calculated in advance using an image (reference image) in which a water gauge according to the embodiment is entirely exposed and a template image.

[0047] As shown in Fig. 9(B), an image (reference image) in which the entirety of the gauge 1 is exposed is captured in advance using the photographing device 2. Then, when the similarity calculation unit 33 performs similarity calculation by template matching for this reference image using the template information I (template image), a reference similarity string K as shown in Fig. 9(C) is obtained, for example. As shown in Fig. 9(C), the similarities between each template image and the reference image are all naturally high.

[0048] FIG. 10 is an explanatory diagram showing how a differential similarity sequence is calculated from a similarity sequence and a reference similarity sequence according to the embodiment, and how a water level value (estimated water level value) is calculated from the differential similarity sequence and a reference value.

[0049] First, the water level calculation unit 34 calculates the difference between each similarity between the similarity string J at the time of actual measurement calculated by the similarity calculation unit 33 shown in Figure 10(A) and the aforementioned reference similarity string K shown in Figure 10(B), and creates the difference similarity string L shown in Figure 10(C).

[0050] Next, the water level calculation unit 34 compares the magnitude of each differential similarity in the differential similarity string L with a predetermined reference value T (in FIG. 10(C), it is set to "0.10", but is not limited to this), and identifies template image labels associated with differential similarities having values ​​exceeding the reference value T. For example, in FIG. 10(C), the template image labels that fall under this category are "0" to "5".

[0051] Next, the water level calculation unit 34 acquires each water level value of each template image label specified above by referring to the template information I. Then, the water level calculation unit 34 outputs the largest water level value among the acquired water level values ​​to the output unit 35 as an estimated water level value.

[0052] (A-3) Effects of the embodiment As described above, according to this embodiment, the portion of the water gauge 1 that is submerged below the water surface is distorted or hidden by water in the original image, making it possible to measure the water level even in flowing water areas.

[0053] (B) Other embodiments Although various modified embodiments have been mentioned in the above embodiment, the present invention can also be applied to the following modified embodiments.

[0054] (B-1) In the above embodiment, the photographing subject is described as being the water gauge 1, but the photographing subject is not limited to the water gauge 1. Even if a subject other than the water gauge 1 is used, it is desirable for the photographing subject to have a distinctive appearance, and the correspondence with the water level must be performed in the same manner as in the case of using a water gauge.

[0055] (B-2) In the above embodiment, the position of the template image when performing template matching is set to the position where the template image is cut out in the original image used to create the template image, but it may be set to the neighboring area of ​​the position where the template image is cut out. In this case, the similarity may be calculated at all positions in the neighboring area, and the maximum value of the obtained similarity may be set to the similarity of the template image. [Explanation of symbols]

[0056] 1...water level gauge, 2...photography device, 3...image processing device, 4...communication device, 5...communication device, 6...management device, 10...information collection system, 31...image input section, 32...memory section, 33...similarity calculation section, 34...water level calculation section, 35...output section, I...template information, J...similarity string, K...reference similarity string, L...difference similarity string, T...reference value.

Claims

1. An image processing device that calculates a water level of a water surface from an image of a structure near a waterfront and the water surface of the waterfront, A storage unit that stores template information including at least a template image and a water level value associated with the template image; a similarity calculation unit that calculates a similarity between the captured image and the template image; a water level calculation unit that calculates a water level of the water surface based on the similarity calculated by the similarity calculation unit and a water level value associated with the template image, The template images are a plurality of images cut out at different lengths in the vertical downward direction in the real world from a reference point of the structure.

13. An image processing device comprising:

2. 2. The image processing apparatus according to claim 1, wherein the structure is a water gauge.

3. An image processing device that calculates a water level of a water surface from an image of a structure near a water surface and the water surface, A storage unit that stores template information including at least a template image and a water level value associated with the template image; a similarity calculation unit that calculates a similarity between the captured image and the template image; a water level calculation unit that calculates a water level of the water surface based on the similarity calculated by the similarity calculation unit and a water level value associated with the template image, the water level calculation unit calculates a difference between the similarity calculated by the similarity calculation unit and a reference similarity which is a similarity between the captured image in a state in which the structure is entirely exposed and the template image, Furthermore, the water level calculation unit compares the difference with a threshold value, and calculates the water level value of the template image having the largest water level value among the template images in which the difference exceeds the threshold value as the water level of the water surface.

13. An image processing device comprising:

Citation Information

Patent Citations

  • Water level identification method based on binary coding character staff gauge and image processing

    CN106557764A

  • Method and instrument for measuring height of liquid level using picture processor

    JP1996014992A

  • Measuring method and device for water level

    JP2001281046A

  • Level measuring device

    JP2003149032A