JP2017208014A - Needle type meter detection device, method, and program - Google Patents

Needle type meter detection device, method, and program Download PDF

Info

Publication number
JP2017208014A
JP2017208014A JP2016101386A JP2016101386A JP2017208014A JP 2017208014 A JP2017208014 A JP 2017208014A JP 2016101386 A JP2016101386 A JP 2016101386A JP 2016101386 A JP2016101386 A JP 2016101386A JP 2017208014 A JP2017208014 A JP 2017208014A
Authority
JP
Japan
Prior art keywords
needle
line
image
meter
angle
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.)
Granted
Application number
JP2016101386A
Other languages
Japanese (ja)
Other versions
JP6786874B2 (en
Inventor
達勇 秋山
Tatsuo Akiyama
達勇 秋山
光男 小林
Mitsuo Kobayashi
光男 小林
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2016101386A priority Critical patent/JP6786874B2/en
Publication of JP2017208014A publication Critical patent/JP2017208014A/en
Application granted granted Critical
Publication of JP6786874B2 publication Critical patent/JP6786874B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To accurately detect an indicated value of a needle type meter, a value related to it, or abnormality of them, even when the contrast between the needle and the background is small or the width of the needle is narrow.SOLUTION: A needle type meter detection device includes: linear image generating means 101 that, upon receiving an image obtained by photographing a needle type meter as a detection object, at least binarizes the received image and generates a linear image; line extracting means 102 for extracting a straight line or a line having a prescribed shape from the linear image; and needle line selecting means 103 for selecting a needle line as a line equivalent to the needle from the extracted line as the extracted straight line or line having the prescribed shape.SELECTED DRAWING: Figure 17

Description

本発明は、針式メータの指示値またはそれに関する値やそれらの正誤の検出を行う針式メータ検出装置、針式メータ検出方法および針式メータ検出プログラムに関する。   The present invention relates to a needle-type meter detection device, a needle-type meter detection method, and a needle-type meter detection program for detecting an indication value of a needle-type meter or a value related thereto and correctness / incorrectness thereof.

針式メータ(アナログメータとも呼ばれる)の指示値を認識するための手段として、針式メータをカメラで撮影した画像に対して、画像中の適当な角度基準線に対する針の角度を求める算出装置が提案されている。この算出装置の一例が、特許文献1に記載されている。   As a means for recognizing an indication value of a needle meter (also called an analog meter), a calculation device that obtains an angle of a needle with respect to an appropriate angle reference line in the image with respect to an image obtained by photographing the needle meter with a camera. Proposed. An example of this calculation apparatus is described in Patent Document 1.

特許文献1に記載の算出装置は、撮像装置および取得部を介して取得した針式メータの撮像画像に対して針と思われる画像中のエッジを検出し、検出されたエッジに対してハフ変換を行い複数の線(エッジ線)を抽出し、該複数の線に基づき針の角度を算出する。   The calculation device described in Patent Literature 1 detects an edge in an image that seems to be a needle from a captured image of a needle-type meter acquired via an imaging device and an acquisition unit, and Hough transforms the detected edge. To extract a plurality of lines (edge lines), and calculate the angle of the needle based on the plurality of lines.

特許第5609183号公報Japanese Patent No. 5609183

第1の問題点は、針と背景のコントラストが小さい場合、針の抽出精度が落ちることである。   The first problem is that when the contrast between the needle and the background is small, the accuracy of needle extraction decreases.

その理由は、エッジの検出精度が下がるためである。エッジは、通常、画像中の隣接画素間の画素値の差が大きい箇所である。このような箇所は、特許文献1に例示されているように、通常は、微分フィルタを用いて抽出される。したがって、針と背景のコントラストが小さい場合(針と背景の画素値の差が小さい場合)には、照明変動や画像に含まれる各種ノイズ等に起因して検出される偽のエッジと、本来の針のエッジとの区別ができず、検出精度が落ちる問題点がある。エッジの検出精度が落ちると、針のエッジ線が正しく抽出されずに針角度の算出精度が下がってしまう。なお、針のエッジ線が抽出されなかったり、1本しか針のエッジ線が抽出されなかった場合には、針角度の算出ができないといった結果も起こり得る。   This is because the edge detection accuracy is lowered. An edge is usually a location where the difference in pixel value between adjacent pixels in an image is large. Such a part is normally extracted using a differential filter, as exemplified in Patent Document 1. Therefore, when the contrast between the needle and the background is small (when the difference between the pixel values of the needle and the background is small), false edges detected due to illumination fluctuations, various noises included in the image, etc. There is a problem that the detection accuracy is lowered because it cannot be distinguished from the needle edge. If the edge detection accuracy falls, the needle edge line is not correctly extracted, and the needle angle calculation accuracy falls. Note that if the needle edge line is not extracted, or if only one needle edge line is extracted, the result may be that the needle angle cannot be calculated.

第2の問題点は、画像中の針が細い場合、特に針の線幅が1画素分しかない場合に、角度の算出ができないことである。   The second problem is that the angle cannot be calculated when the needle in the image is thin, especially when the line width of the needle is only one pixel.

その理由は、微分フィルタを用いたエッジ線の抽出を行う場合、フィルタ適用後に画素値が大きくなる(エッジであると判定される)画素は、線幅が1画素分しかない線からは1本しか得られないため、針のエッジ線が複数抽出されずに針角度の算出ができなくなるからである。   The reason for this is that when edge lines are extracted using a differential filter, the number of pixels whose pixel value increases (determines that they are edges) after applying the filter is one from the line whose line width is only one pixel. This is because the needle angle cannot be calculated without extracting a plurality of needle edge lines.

そこで、本発明は、針と背景のコントラストが小さい場合や針の幅が細い場合であっても、精度良く針式メータの指示値またはそれに関する値もしくはそれらの異常を検出できる針式メータ検出装置、針式メータ検出方法および針式メータ検出プログラムを提供することを目的とする。   Accordingly, the present invention provides a needle meter detection device capable of accurately detecting the indication value of the needle meter, a value related thereto, or an abnormality thereof even when the contrast between the needle and the background is small or the width of the needle is small. An object of the present invention is to provide a needle meter detection method and a needle meter detection program.

本発明による針式メータ検出装置は、検出対象とされる針式メータを撮影した画像が入力されると、入力画像に対して二値化を少なくとも行い、線状画像を生成する線状画像生成手段と、線状画像から直線または所定形状の線を抽出する線抽出手段と、抽出された直線または所定形状の線である抽出線の中から、針に相当する線である針線を選択する針線選択手段とを備えたことを特徴とする。   The needle meter detection device according to the present invention generates a linear image by generating at least a binarized image by binarizing the input image when an image obtained by photographing a needle meter to be detected is input. Means, a line extracting means for extracting a straight line or a line having a predetermined shape from the linear image, and a needle line for selecting a needle line corresponding to the needle from the extracted straight line or a line having a predetermined shape And a selection unit.

本発明による針式メータ検出方法は、検出対象とされる針式メータを撮影した画像が入力されると、入力画像に対して二値化を少なくとも行い、線状画像を生成し、線状画像から直線または所定形状の線を抽出し、抽出された直線または所定形状の線である抽出線の中から、針に相当する線である針線を選択することを特徴とする。   In the needle meter detection method according to the present invention, when an image obtained by photographing a needle meter to be detected is input, at least binarization is performed on the input image to generate a linear image. A straight line or a line having a predetermined shape is extracted from the extracted line, and a needle line corresponding to a needle is selected from the extracted lines that are the extracted straight line or the predetermined shape.

本発明による針式メータ検出プログラムは、コンピュータに、検出対象とされる針式メータを撮影した画像が入力されると、入力画像に対して二値化を少なくとも行い、線状画像を生成する線状画像生成処理、線状画像から直線または所定形状の線を抽出する線抽出処理、および抽出された直線または所定形状の線である抽出線の中から、針に相当する線である針線を選択する針線選択処理を実行させることを特徴とする。   The needle meter detection program according to the present invention is a line for generating a linear image by at least binarizing an input image when an image of a needle meter to be detected is input to a computer. A needle line that is a line corresponding to a needle is selected from a line image generation process, a line extraction process that extracts a straight line or a predetermined shape line from a line image, and an extracted line that is an extracted straight line or a predetermined shape line The needle line selection process is executed.

本発明によれば、針と背景のコントラストが小さい場合や針の幅が細い場合であっても、精度良く針式メータの指示値またはそれに関する値もしくはそれらの異常を検出できる。   According to the present invention, even when the contrast between the needle and the background is small or when the width of the needle is small, it is possible to accurately detect the indication value of the needle meter, the value related thereto, or the abnormality thereof.

第1の実施形態の針式メータ検出装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the needle | hook type meter detection apparatus of 1st Embodiment. 細線化の効果を示す説明図である。It is explanatory drawing which shows the effect of thinning. 細線化の他の例を示す説明図である。It is explanatory drawing which shows the other example of thinning. 針式メータの一例を示す説明図である。It is explanatory drawing which shows an example of a needle type meter. 抽出線L、回転中心点γ、延長抽出線L’、距離αおよび距離βの例を示す説明図である。It is explanatory drawing which shows the example of the extraction line L, the rotation center point (gamma), the extended extraction line L ', the distance (alpha), and the distance (beta). 第1の実施形態の針式メータ検出装置の動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the needle | hook type meter detection apparatus of 1st Embodiment. 線状画像生成処理のより詳細な処理フローの例を示すフローチャートである。It is a flowchart which shows the example of the more detailed process flow of a linear image generation process. 第2の実施形態の針式メータ検出装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the needle | hook type meter detection apparatus of 2nd Embodiment. 第2の実施形態の針式メータ検出装置の動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the needle | hook type meter detection apparatus of 2nd Embodiment. 第3の実施形態の針式メータ検出装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the needle | hook type meter detection apparatus of 3rd Embodiment. 第3の実施形態の針式メータ検出装置の動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the needle | hook type meter detection apparatus of 3rd Embodiment. 第4の実施形態の針式メータ検出装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the needle | hook type meter detection apparatus of 4th Embodiment. 針線位置の検証例を示す説明図である。It is explanatory drawing which shows the example of verification of a needle | hook line position. 第4の実施形態の針式メータ検出装置の動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the needle | hook type meter detection apparatus of 4th Embodiment. 第5の実施形態の針式メータ検出装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the needle | hook type meter detection apparatus of 5th Embodiment. 本発明の各実施形態にかかるコンピュータの構成例を示す概略ブロック図である。It is a schematic block diagram which shows the structural example of the computer concerning each embodiment of this invention. 本発明の概要を示すブロック図である。It is a block diagram which shows the outline | summary of this invention.

以下、本発明の実施形態を図面を参照して説明する。なお、以下では、説明を簡単にするために、針の色が黒であり背景の色が白であると仮定するが、針の色と背景の色の組み合わせはこれに限定されない。他の組み合わせの場合、針の色に近い画素値を「黒」、背景の色に近い画素値を「白」と読み替えることとする。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following, for simplicity of explanation, it is assumed that the needle color is black and the background color is white, but the combination of the needle color and the background color is not limited to this. In the case of other combinations, the pixel value close to the needle color is read as “black”, and the pixel value close to the background color is read as “white”.

実施形態1.
図1は、本発明の第1の実施形態の針式メータ検出装置の構成例を示すブロック図である。図1に示す針式メータ検出装置10は、線状画像生成部11と、線抽出部12と、針線選択部13と、針角度算出部14とを備える。
Embodiment 1. FIG.
FIG. 1 is a block diagram illustrating a configuration example of a needle meter detection device according to a first embodiment of the present invention. A needle meter detection device 10 shown in FIG. 1 includes a linear image generation unit 11, a line extraction unit 12, a needle line selection unit 13, and a needle angle calculation unit 14.

本実施形態の針式メータ検出装置は、検出対象とされる針式メータを撮影した画像が入力されると、その針式メータの針の角度を出力する。   When an image obtained by photographing a needle meter to be detected is input, the needle meter detection device of the present embodiment outputs the angle of the needle of the needle meter.

線状画像生成部11は、入力画像に対してあらかじめ定められた画像処理を施して、線状の画像を生成する。   The linear image generation unit 11 performs predetermined image processing on the input image to generate a linear image.

線状画像生成部11が行う画像処理は、例えば、二値化処理であってもよい。二値化の方法は、例えば、文字認識で一般的に使われる判別二値化、オープンライブラリであるOpenCV(Open source Computer Vision library)に実装されている適応二値化などが利用可能である。ただし、二値化の方法はこれらに限定されない。また、線状画像生成部11は、画像処理として、二値化に加えて、細線化を行ってもよい。すなわち、二値化後、画像中の針の色に相当する画素値を持つ画素(例えば、針が黒色の場合は、二値化で黒色に分類された画素)に対して、細線化処理を施してもよい。細線化処理は、例えば、二値画像内の連結領域について、その中心線を求める処理であってもよい。細線化の方法としては、既存の手法(例えば、ヒルディッチの方法、ドイチュの方法、田村の方法、鶴岡の方法など)が利用可能である。   The image processing performed by the linear image generation unit 11 may be binarization processing, for example. As a binarization method, for example, discrimination binarization generally used in character recognition, adaptive binarization implemented in an open library OpenCV (Open source Computer Vision library) can be used. However, the binarization method is not limited to these. Further, the linear image generation unit 11 may perform thinning in addition to binarization as image processing. That is, after binarization, thinning processing is performed on a pixel having a pixel value corresponding to the color of the needle in the image (for example, if the needle is black, the pixel is classified as black by binarization). You may give it. The thinning process may be, for example, a process for obtaining a center line of a connected area in a binary image. As the thinning method, existing methods (for example, the Hildic method, the Deutsch method, the Tamura method, the Tsuruoka method, etc.) can be used.

図2は、細線化の効果を示す説明図である。例えば、図中の連結成分のように、一定の太さがある領域から線を抽出する場合、ハフ変換等を施してもさまざまな線が検出される可能性がある。そのため、それらの中で最適な線を精度よく求めることが難しい場合がある。そのような場合において、二値化後の連結成分の線幅を細くすることによって安定して直線や所定形状の線などが抽出できるようになる。   FIG. 2 is an explanatory diagram showing the effect of thinning. For example, when a line is extracted from a region having a certain thickness, such as a connected component in the figure, various lines may be detected even if Hough transform or the like is performed. For this reason, it may be difficult to accurately obtain the optimum line among them. In such a case, by reducing the line width of the connected component after binarization, a straight line or a line having a predetermined shape can be stably extracted.

線状画像生成部11が生成する線状画像は、例えば、対象画像中の針の色に相当する画素値を持つ画素の線幅が所定の値以下(好適な例は1画素)の線を構成(描画)している状態の画像であると好ましい。このような線状画像を得る方法としては、上記の二値化や二値化と細線化の組み合わせの他、例えば、次のような方法も挙げられる。   The linear image generated by the linear image generation unit 11 is, for example, a line in which the line width of a pixel having a pixel value corresponding to the color of the needle in the target image is equal to or smaller than a predetermined value (preferably one pixel). The image is preferably configured (drawn). As a method for obtaining such a linear image, in addition to the above-described binarization or a combination of binarization and thinning, for example, the following method is also exemplified.

図3は、細線化の他の例を示す説明図である。線状画像生成部11は、例えば、図3に示すように、二値化により得られた連結成分に対して直線の当てはめを行い、得られた直線のうち連結成分の外接矩形に含まれる部分を抽出してもよい。その場合、抽出された部分の直線のみで構成された画像を、線状画像としてもよい。なお、連結成分への当てはめは直線に限定されず、画像中の線で表現できる図形(例えば多項式で表される波形や、任意の数式で表される自由線や、直線および/またはそれらで囲まれた任意の図形等)も利用可能である。   FIG. 3 is an explanatory diagram showing another example of thinning. For example, as illustrated in FIG. 3, the linear image generation unit 11 performs straight line fitting on a connected component obtained by binarization, and a portion included in a circumscribed rectangle of the connected component among the obtained straight lines. May be extracted. In that case, an image composed only of the extracted straight lines may be a linear image. Note that the fitting to the connected component is not limited to a straight line, but a figure that can be represented by a line in the image (for example, a waveform represented by a polynomial, a free line represented by an arbitrary mathematical expression, a straight line and / or surrounded by them) Arbitrary graphics etc.) can also be used.

線抽出部12は、線状画像生成部11で得られた線状画像に対して、あらかじめ定められた画像処理を行い、画像中から線を抽出する。ここで抽出される線(以下、抽出線Lという)は、画像内に端点のない直線であってもよいし、画像内に端点がある線分であってもよいし、形状を問わない任意の線であってもよい。なお、画像内に端点のない直線の場合、画像端を端点としてもよい。以下、画像内に端点があるか否かを問わず、長さを有するまっすぐな線を直線という。本例では、抽出線Lは直線とするが、針の形状が予め解っている場合は、針形状と同じまたは相似の関係にある所定形状の線であってもよい。なお、抽出線Lには、針の中心線が含まれているのが好ましい。   The line extraction unit 12 performs predetermined image processing on the linear image obtained by the linear image generation unit 11 and extracts lines from the image. The line extracted here (hereinafter referred to as “extraction line L”) may be a straight line having no end point in the image, a line segment having an end point in the image, or an arbitrary shape. It may be a line. In the case of a straight line having no end point in the image, the end of the image may be set as the end point. Hereinafter, a straight line having a length is referred to as a straight line regardless of whether or not there is an end point in the image. In this example, the extraction line L is a straight line, but if the shape of the needle is known in advance, it may be a line having a predetermined shape that is the same as or similar to the needle shape. The extraction line L preferably includes the center line of the needle.

線抽出部12が行う画像処理は、例えば、ハフ変換や確率的ハフ変換であってもよい。ハフ変換は、画像データから直線または円弧の検出を行う技術である。   The image processing performed by the line extraction unit 12 may be, for example, a Hough transform or a probabilistic Hough transform. The Hough transform is a technique for detecting a straight line or an arc from image data.

例えば、点P=(x,y)を通る任意の直線があったとする。その直線に対する原点からの垂線の長さをρとし、その垂線のなす角度をθとすると、以下の式(1)の関係が成り立つ。   For example, assume that there is an arbitrary straight line passing through the point P = (x, y). If the length of the perpendicular to the straight line from the origin is ρ, and the angle formed by the perpendicular is θ, the relationship of the following equation (1) holds.

ρ=x・cosθ+y・sinθ ・・・(1) ρ = x · cos θ + y · sin θ (1)

ここで、上記の直線上に別の点P’がある場合、点P’に対するθとρは点Pに対するものと同じになる。したがって、θとρが同じである点をカウントし、その個数が所定の閾値以上であれば、そこに直線が存在することを導出できる。   If there is another point P ′ on the straight line, θ and ρ for the point P ′ are the same as those for the point P. Therefore, the points where θ and ρ are the same are counted, and if the number is equal to or greater than a predetermined threshold, it can be derived that a straight line exists there.

なお、直線以外にも線分を抽出してもよい。線分の抽出は、確率的ハフ変換を利用可能である。確率的ハフ変換の方法は、例えば「Randomized or Probabilistic Hough Transform: United Performance Evaluation; Nahum Kiryati他, Pattern Recognition Letters, 2 May 2000」および「A Probabilistic Hough Transform; N.Kiryati他, Pattern Recognition, Vol.24, pp.303-316, 1991」に記載されている。   In addition to the straight line, a line segment may be extracted. For the extraction of the line segment, a probabilistic Hough transform can be used. For example, Randomized or Probabilistic Hough Transform: United Performance Evaluation; Nahum Kiryati et al., Pattern Recognition Letters, 2 May 2000, and `` A Probabilistic Hough Transform; N. Kiryati et al., Pattern Recognition, Vol. 24 , pp. 303-316, 1991 ”.

針線選択部13は、画像中の針式メータの回転中心点γと、線抽出部12によって抽出された抽出線Lの情報(位置および長さもしくは形状)とを基に、抽出線Lの中から針に相当する線(以下、針線という)を選択する。回転中心点γは、予め与えられたものを用いてもよいし、入力画像を解析することにより抽出されたものを用いてもよい。   The needle line selection unit 13 is based on the rotation center point γ of the needle meter in the image and the information (position and length or shape) of the extraction line L extracted by the line extraction unit 12. A line corresponding to the needle (hereinafter referred to as a needle line) is selected. As the rotation center point γ, a predetermined one may be used, or one extracted by analyzing an input image may be used.

針線の選択方法としては、次のような方法が挙げられる。以下、回転中心点γから、抽出線Lまたは抽出線Lを回転中心点γ方向に延長した延長抽出線L’に下した垂線の長さ、すなわち回転中心点γと抽出線L上または延長抽出線L’上の位置との距離を、距離αとする。また、抽出線Lの回転中心点γから遠い方の端点と回転中心点γとの距離を、距離βとする。そのような場合に、例えば、第1の方法として、距離αが一定の値以下であり、且ついずれか一方の端点が針式メータの回転中心点から最も離れている抽出線Lを針線に選択してもよい。また、例えば、第2の方法として、距離αが一定の値以下であり、且つ距離βが一定の値以上である抽出線Lの中から最も長い抽出線Lを針線に選択してもよい。さらに、上記の第1および第2の方法において、抽出線Lのうち両方の端点とも回転中心点αから一定の距離以上離れているものを、針線の候補から除外してもよい。   Examples of the method for selecting the needle line include the following methods. Hereinafter, the length of the perpendicular line drawn from the rotation center point γ to the extraction line L or the extension extraction line L ′ obtained by extending the extraction line L in the direction of the rotation center point γ, that is, the rotation center point γ and the extraction line L or extended extraction The distance from the position on the line L ′ is a distance α. Further, the distance between the end point farther from the rotation center point γ of the extraction line L and the rotation center point γ is a distance β. In such a case, for example, as a first method, the extraction line L whose distance α is not more than a certain value and whose one end point is farthest from the rotation center point of the needle meter is selected as the needle line. May be. For example, as the second method, the longest extraction line L may be selected as the needle line from the extraction lines L whose distance α is equal to or smaller than a certain value and whose distance β is equal to or larger than a certain value. Furthermore, in the first and second methods described above, the extraction line L that is separated from the rotation center point α by both of the end points may be excluded from the needle line candidates.

以下、図4に示す針式メータの例を用いて、針線の選択方法を参照する。図4に示す針式メータは、背景色が単一であり、針は1本であり、背景色が白色、針の色が黒であるとする。また、事前知識として、針式メータには針以外長い線分がないとの情報が与えられているものとする。図5は、抽出線L、回転中心点γ、延長抽出線L’、距離αおよび距離βの例を示す説明図である。なお、図5(a)は、抽出線Lの例を示す説明図である。例えば、図5(a)には、L〜Lの5つの抽出線の例が示されている。また、図5(b)は、回転中心点γの例を示す説明図である。また、図5(c)は、延長抽出線L’の例を示す説明図である。図5(c)において、実線部分が抽出線L、破線部分が延長抽出線L’を表している。例えば、図5(c)には、Lの延長抽出線であるL’、Lの延長抽出線であるL’、Lの延長抽出線であるL’、Lの延長抽出線であるL’の例が示されている。なお、抽出線Lは回転中心点からの垂線と直に接する位置にあるため、延長はされていない。また、図7(d)は、距離αおよび距離βの例を示す説明図である。図7(d)では、図7(a)に示す抽出線Lに対する距離αおよび距離βが示されている。 Hereinafter, the method of selecting a needle line will be referred to using the example of the needle type meter shown in FIG. The needle meter shown in FIG. 4 has a single background color, one needle, a white background color, and a black needle color. Further, as prior knowledge, it is assumed that the needle meter is given information that there is no long line segment other than the needle. FIG. 5 is an explanatory diagram illustrating an example of the extraction line L, the rotation center point γ, the extended extraction line L ′, the distance α, and the distance β. FIG. 5A is an explanatory diagram illustrating an example of the extraction line L. For example, FIG. 5A shows an example of five extraction lines L 1 to L 5 . FIG. 5B is an explanatory diagram showing an example of the rotation center point γ. FIG. 5C is an explanatory diagram showing an example of the extended extraction line L ′. In FIG. 5C, the solid line portion represents the extraction line L, and the broken line portion represents the extended extraction line L ′. For example, in FIG. 5 (c), L 1 is an extension extraction line L 1 ', L 2 is an extension extraction line L 2', L 4 is an extension extraction line L 4 ', the extension of the L 5 An example of L 5 ′ that is an extraction line is shown. Incidentally, extraction line L 3 is due to the position contacting the perpendicular and straight from the rotational center point, extension is not. FIG. 7D is an explanatory diagram showing examples of the distance α and the distance β. In FIG. 7 (d), the distance α and distance β is shown for extraction line L 5 shown in Figure 7 (a).

針角度算出部14は、針線選択部13により選択された針線の角度を算出する。針角度算出部14は、画像の幅方向、高さ方向をx座標、y座標とする画像系において、画像を解析し、あらかじめ定められた基準線に対する針線の角度を算出してもよい。例えば、針角度算出部14は、y軸に平行な線の角度を0度とする場合は、−180度〜180度までの値を算出してもよい。   The needle angle calculation unit 14 calculates the angle of the needle line selected by the needle line selection unit 13. The needle angle calculation unit 14 may analyze the image and calculate the angle of the needle line with respect to a predetermined reference line in an image system in which the width direction and the height direction of the image are x-coordinate and y-coordinate. For example, when the angle of the line parallel to the y-axis is set to 0 degrees, the needle angle calculation unit 14 may calculate a value from −180 degrees to 180 degrees.

次に、本実施形態の動作を説明する。   Next, the operation of this embodiment will be described.

図6は、本実施形態の針式メータ検出装置の動作の一例を示すフローチャートである。図6に示す例では、まず、線状画像生成部11が、入力画像から線状画像を生成する(ステップS11)。   FIG. 6 is a flowchart showing an example of the operation of the needle meter detection device of the present embodiment. In the example illustrated in FIG. 6, first, the linear image generation unit 11 generates a linear image from the input image (step S11).

図7は、線状画像生成処理のより詳細な処理フローの例を示すフローチャートである。図7に示すように、線状画像生成部11は、線状画像生成処理として、まず入力画像を二値化する(ステップS111)。二値化には既存の方法を使えばよく、あらかじめ定められた閾値と画素値を比較することによる方法、判別二値化、適応二値化(注目画素の画素値が、注目画素周辺の画素値から計算された統計量に基づいて定めた値と比較して大きな値であるかどうかに応じて、二値のいずれであるかどうかを割り当てる方法)などを利用できる。   FIG. 7 is a flowchart illustrating an example of a more detailed processing flow of the linear image generation processing. As shown in FIG. 7, the linear image generation unit 11 first binarizes an input image as a linear image generation process (step S111). An existing method may be used for binarization, a method by comparing a predetermined threshold value with a pixel value, discrimination binarization, adaptive binarization (the pixel value of the target pixel is a pixel around the target pixel) Depending on whether the value is larger than the value determined based on the statistic calculated from the value, it is possible to use a method of allocating whether the value is binary or not.

次に、線状画像生成部11は、線状画像生成処理として、二値画像の黒画素を細線化してもよい(ステップS112)。細線化には既存の方法や上述したような方法を利用できる。   Next, the linear image generation unit 11 may thin the black pixels of the binary image as a linear image generation process (step S112). For thinning, an existing method or the method described above can be used.

線状画像が生成されると、線抽出部12が、線状画像から線を抽出する(図6のステップS12)。線抽出部12は、例えば、上述したように線状画像に対してハフ変換や確率的ハフ変換を施して、直線や所定形状の線(抽出線L)を抽出してもよい。   When the line image is generated, the line extraction unit 12 extracts a line from the line image (step S12 in FIG. 6). For example, the line extraction unit 12 may extract a straight line or a line having a predetermined shape (extraction line L) by performing Hough transformation or probabilistic Hough transformation on the linear image as described above.

次に、針線選択部13が、抽出線Lの中から針線の選択を行う(ステップS13)。針線選択部13は、抽出線Lの中から、所定の条件に従って針線を選択する。   Next, the needle line selection unit 13 selects a needle line from the extracted lines L (step S13). The needle line selection unit 13 selects a needle line from the extraction line L according to a predetermined condition.

針線選択部13は、例えば、あらかじめ与えられたメータの回転中心点γを利用して、上述したように、距離αがあらかじめ定められた一定の値以下であって、距離βが最も大きい抽出線Lを針線として選択してもよい。   The needle line selection unit 13 uses, for example, a predetermined rotation center point γ of the meter, and, as described above, the extraction line having the largest distance β and the distance α being equal to or smaller than a predetermined value. L may be selected as a needle line.

また、メータの形状が円形である場合は、あらかじめ与えられた回転中心点γに変えて、一般化ハフ変換を用いて抽出された円の中心点を用いてもよい。複数の円が検出された場合には、複数の円の中心点の相対位置を解析し、あらかじめ定められた範囲内にある中心点の位置を平均して、回転中心点γとしてもよい。また、一般化ハフ変換の投票結果を利用して、最も投票数が集まった円の中心点を回転中心点γとしてもよい。   If the meter has a circular shape, the center point of the circle extracted by using the generalized Hough transform may be used instead of the rotation center point γ given in advance. When a plurality of circles are detected, the relative positions of the center points of the plurality of circles may be analyzed, and the positions of the center points within a predetermined range may be averaged to obtain the rotation center point γ. Further, the center point of the circle having the most votes may be set as the rotation center point γ using the voting result of the generalized Hough transform.

最後に、針角度算出部14が、針角度の算出を行う(ステップS14)。針角度算出部14は、例えば、検出された針線上の任意の2点の座標(x,y)、(x,y)を用いて、以下の式(2)で示されるようなθを求めればよい。 Finally, the needle angle calculation unit 14 calculates the needle angle (step S14). For example, the needle angle calculation unit 14 uses the coordinates (x 1 , y 1 ) and (x 2 , y 2 ) of any two points on the detected needle line as shown in the following formula (2). What is necessary is just to obtain | require which (theta).

tanθ=(x−x)/(y−y) ・・・(2) tan θ = (x 2 −x 1 ) / (y 2 −y 1 ) (2)

以上のように、本実施形態によれば、二値化に基づいて針線の検出(針線を含む線の抽出および選択)を行うように構成されているため、線幅の細い針であっても精度良く針線を抽出することができる。また、本実施形態によれば、二値化により長い連結成分を持つ線を針線として抽出できるため、針と背景とのコントラストが小さくノイズ成分を多く含む場合であっても、ノイズに起因する偽の線の影響を受けずに、精度良く針線を検出することができる。したがって、精度良く針式メータを検出できる。   As described above, according to the present embodiment, since it is configured to detect needle lines (extraction and selection of lines including needle lines) based on binarization, even a needle with a narrow line width can be used. Needle lines can be extracted with high accuracy. In addition, according to the present embodiment, since a line having a long connected component by binarization can be extracted as a needle line, even if the contrast between the needle and the background is small and a lot of noise components are included, a fake attributed to noise is generated. The needle line can be detected with high accuracy without being affected by the line. Therefore, the needle meter can be detected with high accuracy.

例えば、図6に示すような針式メータの撮像画像に対して二値化を施すと、数字部分、円弧の部分、針の部分などから黒画素の連結成分が抽出される。円弧と針が重なった形で連結成分が得られる場合もある。針式メータのうち、円弧が背景に存在しないものについては、針の連結成分が他の連結成分と重ならずに抽出されるので、例えば、得られた連結成分がどれくらい細長いかを画像上で解析して、針線の選択を行ってもよい。   For example, when binarization is performed on a captured image of a needle meter as shown in FIG. 6, a connected component of black pixels is extracted from a numeric part, a circular arc part, a needle part, and the like. In some cases, the connected component is obtained in the form of overlapping arcs and needles. For needle meters that do not have an arc in the background, the connected components of the needle are extracted without overlapping other connected components. For example, how long the obtained connected components are on the image. Analysis may be performed to select a needle line.

ただし、円弧に限らず、他の図形や文字などが背景に存在する場合、それらと針とが正しく分離されない形で連結成分が抽出される場合がある。そのような場合にも、ハフ変換や確率的ハフ変換により、連結成分の各黒画素から直線を抽出するのに適した空間への変換(例えば、式(1)に基づく変換)を行うので、安定して連結成分の黒画素領域内の直線性が強い箇所が得られる。このようにして、画像中のメータ内で相対的に長い線分を、相対的にサイズの小さい数字や円弧のような曲がっている形の部分からではなく、針の部分から抽出できる。画像から針線に相当する線が抽出できれば、後は他の抽出線との比較により、針線を選択すればよい。なお、二値化後に細線化を行えば、さらに安定して針線を検出できる。   However, not only the arc but also other figures or characters exist in the background, the connected component may be extracted in a form in which they and the needle are not correctly separated. Even in such a case, conversion to a space suitable for extracting a straight line from each black pixel of the connected component by Hough transformation or probabilistic Hough transformation (for example, transformation based on Equation (1)) is performed. A portion having a strong linearity in the black pixel region of the connected component can be obtained stably. In this way, a relatively long line segment in the meter in the image can be extracted from the needle portion, not from a relatively small number or a curved portion such as an arc. If a line corresponding to the needle line can be extracted from the image, then the needle line may be selected by comparison with other extracted lines. If thinning is performed after binarization, the needle line can be detected more stably.

実施形態2.
次に、本発明の第2の実施形態を説明する。図8は、本発明の第2の実施形態の針式メータ検出装置の構成例を示すブロック図である。図8に示す針式メータ検出装置10は、図1に示す第1の実施形態の構成とは、メータ画像照合部15と、画像記憶部16とをさらに備える点が異なる。加えて、針角度算出部14の処理内容が異なる。以下では、第1の実施形態と異なる点を主に説明する。
Embodiment 2. FIG.
Next, a second embodiment of the present invention will be described. FIG. 8 is a block diagram illustrating a configuration example of the needle meter detection device according to the second embodiment of the present invention. The needle type meter detection apparatus 10 shown in FIG. 8 is different from the configuration of the first embodiment shown in FIG. 1 in that it further includes a meter image matching unit 15 and an image storage unit 16. In addition, the processing content of the needle angle calculation unit 14 is different. In the following, differences from the first embodiment will be mainly described.

画像記憶部16は、あらかじめ針式メータの画像を記憶する。画像記憶部16に記憶される針式メータの画像は、あらかじめ検出対象とされる針式メータがわかっている場合には、検出対象の針式メータの画像であればよい。なお、画像記憶部16は、検出対象とされる針式メータ以外の針式メータの画像を含む複数種類の針式メータの画像を記憶してもよい。以下、画像記憶部16に記憶される針式メータの画像を、DB画像と呼ぶ。   The image storage unit 16 stores a needle meter image in advance. The needle meter image stored in the image storage unit 16 may be an image of the needle meter to be detected when the needle meter to be detected is known in advance. Note that the image storage unit 16 may store images of a plurality of types of needle meters including images of needle meters other than the needle meters that are to be detected. Hereinafter, the needle meter image stored in the image storage unit 16 is referred to as a DB image.

DB画像は、例えば、針式メータを正面から撮影したものであってもよい。この際、メータ以外の領域はできるだけ含まれないように加工した上で、記憶されることが好ましい。なお、DB画像は、正面から撮影したもの以外にも、例えば、当該DB画像内の針式メータの傾きがわかる情報(底辺部分など、傾きの基準となる線等)を含む画像であってもよいし、そのような傾き情報が付与された画像であってもよい。   The DB image may be, for example, a photograph taken from the front of a needle meter. At this time, it is preferable that the region other than the meter is processed and stored so as not to be included as much as possible. Note that the DB image may be, for example, an image including information (such as a base line of the inclination, such as a base portion) that indicates the inclination of the needle meter in the DB image, in addition to the image taken from the front. Alternatively, an image to which such tilt information is given may be used.

メータ画像照合部15は、入力画像と、DB画像とを照合することにより、入力画像中のメータ領域を特定し、かつ、入力画像の傾きを補正するためのパラメータを求める。   The meter image collation unit 15 collates the input image and the DB image, thereby specifying a meter region in the input image and obtaining parameters for correcting the inclination of the input image.

これらの構成要素を実現する上でもっとも好適な処理は、例えば、画像中から抽出される特徴点の組み合わせをDB画像と比較することにより求める方法である。例えば、SIFT(Sclase-Invariant Feature Transform)特徴点、SURF(Speeded Up Robust Features)特徴点、コーナー特徴点など、画像中から求められる特徴点の対応関係を利用してもよい。一例として、国際公開第2015/064107号パンフレットに記載の方法や、国際公開第2013/089004号パンフレットに記載の方法や、米国特許第6711293号明細書に記載の方法を用いてもよい。例えば、国際公開第2013/089004号パンフレットには、局所特徴点ベース手法の例が記載されている。   The most suitable process for realizing these components is, for example, a method for obtaining a combination of feature points extracted from an image by comparing it with a DB image. For example, the correspondence between feature points obtained from an image such as SIFT (Sclase-Invariant Feature Transform) feature points, SURF (Speeded Up Robust Features) feature points, and corner feature points may be used. As an example, the method described in International Publication No. 2015/064107, the method described in International Publication No. 2013/089004, or the method described in US Pat. No. 6,711,293 may be used. For example, International Publication No. 2013/089004 pamphlet describes an example of a local feature point based method.

また、例えば、国際公開第2015/064107号パンフレットには、入力画像と、あらかじめ指定された方法で登録されたラベル画像との比較により、ラベル画像を抽出するとともに、入力画像の傾きを補正する方法が記載されている。この方法におけるラベル画像をDB画像に置き換えることで実現可能である。   In addition, for example, in the pamphlet of International Publication No. 2015/064107, a method for extracting a label image and correcting the inclination of the input image by comparing the input image with a label image registered by a method designated in advance. Is described. This can be realized by replacing the label image in this method with a DB image.

また、本実施形態の針角度算出部14は、メータ画像照合部15により求められた入力画像の傾き具合を示す傾きパラメータ(ホモグラフィ行列、F行列等)を用いて、画像の傾き補正を行った上で、針角度を算出する。   Further, the needle angle calculation unit 14 of the present embodiment performs image inclination correction using an inclination parameter (homography matrix, F matrix, etc.) indicating the inclination degree of the input image obtained by the meter image matching unit 15. After that, the needle angle is calculated.

次に、本実施形態の動作を説明する。   Next, the operation of this embodiment will be described.

図9は、本実施形態の針式メータ検出装置の動作の一例を示すフローチャートである。ステップS11〜ステップS13の動作は第1の実施形態と同様であるため、説明を省略する。   FIG. 9 is a flowchart showing an example of the operation of the needle meter detection device of the present embodiment. Since the operations in steps S11 to S13 are the same as those in the first embodiment, the description thereof is omitted.

ステップS13で針線が選択されると、次いで、メータ画像照合部15が入力画像をDB画像と照合して、入力画像に最も類似するDB画像を特定するとともに、入力画像の傾きに関するパラメータ(傾きパラメータ)を算出する(ステップS21)。   When the needle line is selected in step S13, the meter image collating unit 15 collates the input image with the DB image to identify the DB image most similar to the input image, and parameters related to the tilt of the input image (tilt parameter). ) Is calculated (step S21).

最後に、針角度算出部14が、針角度を算出する(ステップS22)。針角度算出部14は、例えば、針線の位置情報を、メータ画像照合部15が求めた傾きパラメータを用いて変換(補正)した後に、針角度を算出する。針角度算出部14は、例えば、ステップS21の針線選択処理で出力される針線上の2点(x,y)、(x,y)を用いる場合、次のようにして針角度を求めてもよい。すなわち、点(x,y)および点(x,y)をそれぞれ傾きパラメータ(例えばホモグラフィ行列)を用いて変換し、点(x,y)および点(x,y)を変換後の点(a,b)および点(a,b)に置き換えた上記の式(2)で示されるようなθを求めればよい。 Finally, the needle angle calculation unit 14 calculates the needle angle (step S22). The needle angle calculation unit 14 calculates, for example, the needle angle after converting (correcting) the position information of the needle line using the inclination parameter obtained by the meter image matching unit 15. For example, when using the two points (x 1 , y 1 ) and (x 2 , y 2 ) on the needle line output in the needle line selection process in step S21, the needle angle calculation unit 14 performs the needle angle as follows. You may ask for. That is, the point (x 1 , y 1 ) and the point (x 2 , y 2 ) are respectively transformed using a slope parameter (for example, a homography matrix), and the point (x 1 , y 1 ) and the point (x 2 , y point after conversion to 2) (a 1, b 1) and a point (a 2, b and may be obtained θ as shown by 2) to replace the above equation (2).

以上のように、本実施形態によれば、入力画像中のメータの傾きを補正した上で、針角度を求めるように構成されているため、必ずしも正面からメータが撮影されていない入力画像に対しても、正面から撮影した場合に相当する針角度を算出できる。   As described above, according to the present embodiment, it is configured to obtain the needle angle after correcting the inclination of the meter in the input image. Therefore, for an input image in which the meter is not necessarily photographed from the front. However, the needle angle corresponding to the case of shooting from the front can be calculated.

実施形態3.
次に、本発明の第3の実施形態を説明する。図10は、本発明の第3の実施形態の針式メータ検出装置の構成例を示すブロック図である。図10に示す針式メータ検出装置10は、図8に示す第2の実施形態の構成とは、角度・指示値変換部17をさらに備える点が異なる。
Embodiment 3. FIG.
Next, a third embodiment of the present invention will be described. FIG. 10 is a block diagram illustrating a configuration example of the needle meter detection device according to the third embodiment of the present invention. The needle-type meter detection device 10 shown in FIG. 10 is different from the configuration of the second embodiment shown in FIG. 8 in that an angle / instruction value conversion unit 17 is further provided.

なお、本実施形態の針式メータ検出装置は、検出対象とされる針式メータを撮影した画像が入力されると、その針式メータの針の指示値を出力する。   Note that the needle meter detection device of the present embodiment outputs an instruction value of the needle of the needle meter when an image obtained by photographing the needle meter to be detected is input.

角度・指示値変換部17は、あらかじめ定められていたメータ情報またはメータ画像照合部15により特定されたDB画像に対応づけられているメータ情報を参照し、針角度から指示値への変換を行う。ここで、メータ情報は、針角度と指示値の対応規則を示す情報であればよく、例えば、針角度から指示値を計算する数式や、それを表すパラメータであってよい。   The angle / instruction value conversion unit 17 refers to meter information that is determined in advance or the meter information associated with the DB image specified by the meter image collation unit 15, and converts the needle angle into the instruction value. . Here, the meter information may be information indicating a correspondence rule between the needle angle and the instruction value. For example, the meter information may be a mathematical expression for calculating the instruction value from the needle angle or a parameter representing it.

本実施形態において、メータ画像照合部15は、後述する第5の実施形態の監視部16が有するような装置特定手段と同等の機能を有していてもよい。メータ画像照合部15は、傾きパラメータの算出に加えて、例えば、該手段と同様の方法を用いて装置の特定を行い、特定結果(装置番号や装置型番号等)を角度・指示値変換部17に提供してもよい。そのような場合、角度・指示値変換部17は、メータ画像照合部15により提供される該情報に対応するメータ情報を参照し、針角度から指示値への変換を行えばよい。また、メータ画像照合部15は、入力画像から文字や図形等を読み取る場合、その読み取り結果から入力画像中の傾きを検出してもよく、その場合DB画像の照合処理を省略してもよい。   In the present embodiment, the meter image matching unit 15 may have a function equivalent to that of the device specifying unit that the monitoring unit 16 of the fifth embodiment described later has. In addition to the calculation of the inclination parameter, the meter image collation unit 15 identifies a device using, for example, the same method as the means, and the identification result (device number, device type number, etc.) 17 may be provided. In such a case, the angle / instruction value conversion unit 17 may convert the needle angle into the instruction value by referring to the meter information corresponding to the information provided by the meter image matching unit 15. In addition, when reading a character, a figure, or the like from the input image, the meter image matching unit 15 may detect the inclination in the input image from the reading result, and in that case, the DB image matching process may be omitted.

次に、本実施形態の動作を説明する。   Next, the operation of this embodiment will be described.

図11は、本実施形態の針式メータ検出装置の動作の一例を示すフローチャートである。ステップS11〜ステップS13,ステップS21およびステップS22の動作は第1および第2の実施形態と同様であるため、説明を省略する。   FIG. 11 is a flowchart showing an example of the operation of the needle meter detection device of the present embodiment. Since the operations of Step S11 to Step S13, Step S21 and Step S22 are the same as those in the first and second embodiments, description thereof will be omitted.

本実施形態では、ステップS22で針角度が算出されると、角度・指示値変換部17が、メータ情報に基づいて、ステップS22の針角度算出処理で出力された針角度情報から指示値に変換する(ステップS31)。   In the present embodiment, when the needle angle is calculated in step S22, the angle / instruction value converter 17 converts the needle angle information output in the needle angle calculation process in step S22 into an instruction value based on the meter information. (Step S31).

以上のように、本実施形態によれば、針角度から指示値に変換するように構成されているため、針式メータの指示値が得られる。   As described above, according to the present embodiment, since the needle angle is converted into the indicated value, the indicated value of the needle type meter can be obtained.

実施形態4.
次に、本発明の第4の実施形態を説明する。図12は、本発明の第4の実施形態の針式メータ検出装置の構成例を示すブロック図である。図12に示す針式メータ検出装置10は、図10に示す第3の実施形態の構成とは、針角度算出部14および角度・指示値変換部17に代えて、針線位置検証部18を備える点が異なる。
Embodiment 4 FIG.
Next, a fourth embodiment of the present invention will be described. FIG. 12 is a block diagram illustrating a configuration example of the needle meter detection device according to the fourth embodiment of the present invention. The needle type meter detection apparatus 10 shown in FIG. 12 includes a needle line position verification unit 18 instead of the needle angle calculation unit 14 and the angle / instruction value conversion unit 17 in the configuration of the third embodiment shown in FIG. The point is different.

なお、本実施形態の針式メータ検出装置は、検出対象とされる針式メータを撮影した画像が入力されると、その針式メータの針の状態(指し示している状態)が正常かどうかの検証結果を出力する。   In the needle meter detection device according to the present embodiment, when an image obtained by photographing a needle meter that is a detection target is input, whether or not the needle state (pointed state) of the needle meter is normal. Output the verification result.

針線位置検証部18は、メータ画像照合部15により特定されたDB画像またはあらかじめ定められたもしくはメータ画像照合部15により特定されたメータ情報を基に、針線選択部13によって選択された針線の指示位置が正常か否かを検証する。針線位置検証部18は、例えば、第2の実施形態の針角度算出部14と同様に、メータ画像照合部15が計算する傾きパラメータを用いて針線の位置を変換(傾きを補正)した上で、変換後の針線の位置が、DB画像またはメータ情報で示される正常範囲を表す領域に包含されているか否かを判定することで、正常範囲に収まっているか否かを判定してもよい。   The needle line position verification unit 18 indicates the needle line selected by the needle line selection unit 13 based on the DB image specified by the meter image verification unit 15 or the meter information determined in advance or specified by the meter image verification unit 15. Verify whether the position is normal. For example, the needle position verification unit 18 converts the position of the needle line (corrects the tilt) using the tilt parameter calculated by the meter image matching unit 15 in the same manner as the needle angle calculation unit 14 of the second embodiment. It may be determined whether or not the position of the converted needle line is included in the normal range by determining whether or not the position of the converted needle line is included in the region representing the normal range indicated by the DB image or the meter information.

なお、本実施形態の画像記憶部16に記憶されるDB画像には、当該画像内の針式メータの針線の指示位置の正常範囲を示す情報が付与されているか、正常範囲を示す描画がされているものとする。または、本実施形態のメータ情報には、メータ内における針線位置の正常範囲に関する情報が含まれているものとする。   It should be noted that the DB image stored in the image storage unit 16 of the present embodiment is given information indicating the normal range of the indicated position of the needle line of the needle meter in the image, or is drawn to indicate the normal range. It shall be. Or the meter information of this embodiment shall contain the information regarding the normal range of the needle | hook line position in a meter.

また、メータ画像照合部15は、第3の実施形態と同様、装置特定手段の機能を有していてもよい。その場合、メータ画像照合部15は、該手段と同様の方法を用いて装置の特定を行い、特定結果(装置番号や装置型番号等)から装置や機種毎にあらかじめ定められたメータ情報を取得して、針線の位置の正常範囲を特定してもよい。なお、本実施形態の画像記憶部16に記憶されるDB画像を特定すれば、該DB画像から針線の位置の正常範囲を特定可能であるが、メータ画像照合部15は、DB画像の特定(照合)に代えて、上述の装置特定手段を利用してメータ情報を取得することにより、針線の位置の正常範囲を特定してもよい。針線位置検証部18は、メータ画像照合部15により特定される正常範囲を基に、針線選択部13によって選択された針線の指示位置が正常か否かを検証してもよい。   Moreover, the meter image collation part 15 may have the function of an apparatus identification means similarly to 3rd Embodiment. In that case, the meter image collation unit 15 identifies the device using the same method as that means, and acquires meter information predetermined for each device or model from the identification result (device number, device type number, etc.). Then, the normal range of the position of the needle line may be specified. If the DB image stored in the image storage unit 16 of the present embodiment is specified, the normal range of the position of the needle line can be specified from the DB image, but the meter image verification unit 15 specifies the DB image ( Instead of the collation), the normal range of the position of the needle line may be specified by acquiring meter information using the above-described device specifying means. The needle line position verification unit 18 may verify whether or not the indicated position of the needle line selected by the needle line selection unit 13 is normal based on the normal range specified by the meter image matching unit 15.

図13は、針線位置の検証例を示す説明図である。図13に示すように、DB画像に対してあらかじめ設定されている正面視によるメータ内での正常範囲(図中の三角形で図示されている領域)を示す領域を入力画像中のメータに適用して、適用後の正常範囲内に、変換後の針線の指示部分や主要部分が包含されていれば正常、そうでなければ異常と判定してもよい。ここで、入力画像中のメータへの正常範囲の適用方法は、例えば、DB画像内のメータと入力画像中のメータがほぼ同じ大きさ・向きとなるように入力画像またはその座標系を拡大・拡張したり、回転させればよい。また、針線の指示部分は、例えば、回転中心点γから遠い方の端点としてもよい。また、針線の不要部分は、例えば、回転中心点γから指示部分までの線分の50%以上としてもよい。なお、本例では、DB画像に付されるメータ情報として、正常範囲を表す当該DB画像中の部分領域の情報が与えられるものとしている。図13に示す例では、針線の指示部分が正常範囲内に包含されているので、正常と判定される。   FIG. 13 is an explanatory diagram showing a verification example of the needle line position. As shown in FIG. 13, an area indicating a normal range (area indicated by a triangle in the figure) in the meter by the front view preset for the DB image is applied to the meter in the input image. Thus, it may be determined as normal if the converted needle line indicating part or main part is included in the normal range after application, and abnormal otherwise. Here, the normal range is applied to the meter in the input image by, for example, expanding the input image or its coordinate system so that the meter in the DB image and the meter in the input image have substantially the same size and orientation. It can be expanded or rotated. Further, the instruction portion of the needle line may be, for example, an end point far from the rotation center point γ. Further, the unnecessary portion of the needle line may be, for example, 50% or more of the line segment from the rotation center point γ to the designated portion. In this example, as the meter information attached to the DB image, information on the partial area in the DB image representing the normal range is given. In the example shown in FIG. 13, since the instruction portion of the needle line is included in the normal range, it is determined as normal.

次に、本実施形態の動作を説明する。   Next, the operation of this embodiment will be described.

図14は、本実施形態の針式メータ検出装置の動作の一例を示すフローチャートである。ステップS11〜ステップS13およびステップS21の動作は第1および第2の実施形態と同様であるため、説明を省略する。   FIG. 14 is a flowchart showing an example of the operation of the needle meter detection device of the present embodiment. Since the operations in steps S11 to S13 and step S21 are the same as those in the first and second embodiments, description thereof will be omitted.

本実施形態では、ステップS13で針線が選択され、ステップS21でDB画像が特定されると、針線位置検証部18が、針線の位置を検証する(ステップS41)。   In the present embodiment, when a needle line is selected in step S13 and a DB image is specified in step S21, the needle line position verification unit 18 verifies the position of the needle line (step S41).

以上のように、本実施形態によれば、針線と、特定されたDB画像に対応づけられた正常範囲とを画像上で比較して、針線位置の正誤を判定するよう構成されているため、例えば、針の指示する値が異常の場合にのみ該異常を検知したい場合などに、あらかじめ針角度と指示値の対応づけをすることなく実施することが可能である。   As described above, according to the present embodiment, since the needle line and the normal range associated with the specified DB image are compared on the image, the correctness of the needle line position is determined. For example, when it is desired to detect the abnormality only when the value indicated by the needle is abnormal, it is possible to carry out the process without associating the needle angle with the instruction value in advance.

なお、第4の実施形態では、針線の位置と、DB画像中の正常範囲の領域を示す情報とから、針の状態が正常であるかどうかを判定しているが、例えば、針角度や指示値に基づいても同様のことが実施可能である。そのような場合、上記の針式メータ検出装置10が針角度算出部14や角度・指示値変換部17をさらに備えればよい。そして、第2および第3の実施形態の方法で針線の位置に基づいて針角度や指示値を求めた後、あらかじめ格納された正常範囲を示す情報に基づき、その値が正常範囲内か否か判定すればよい。   In the fourth embodiment, whether or not the needle state is normal is determined from the position of the needle line and information indicating the region of the normal range in the DB image. The same can be done based on the value. In such a case, the needle meter detection device 10 may further include a needle angle calculation unit 14 and an angle / instruction value conversion unit 17. Then, after obtaining the needle angle and the indicated value based on the position of the needle line by the method of the second and third embodiments, whether or not the value is within the normal range based on the information indicating the normal range stored in advance. What is necessary is just to judge.

また、正常範囲を示す領域は、メータ内に正常範囲を示す2点のマークが物理的に貼付されている場合には、画像解析により検出される該2点と回転中心点とを結ぶ領域としてもよい。   The area indicating the normal range is the area connecting the two points detected by image analysis and the rotation center point when two marks indicating the normal range are physically attached in the meter. Also good.

また、正常範囲を示す領域を入力する際には、例えば、タッチ操作を受け付けるタブレット端末等を用いて、ディスプレイにDB画像を表示させながら、正常範囲を示す多角形の頂点のユーザ入力を受け付けるような機能を付加してもよい。類似の例が、国際公開第2012/053626号パンフレットに記載されており、それを利用してもよい。   In addition, when inputting a region indicating a normal range, for example, using a tablet terminal that accepts a touch operation, a user may input a vertex of a polygon indicating a normal range while displaying a DB image on the display. Various functions may be added. A similar example is described in WO 2012/053626 and may be used.

実施形態5.
次に、本発明の第5の実施形態を説明する。図15は、本発明の第5の実施形態の針式メータ検出装置の構成例を示すブロック図である。図15に示す針式メータ検出装置10は、図12に示す第4の実施形態の構成とは、監視部19をさらに備える点が異なる。
Embodiment 5. FIG.
Next, a fifth embodiment of the present invention will be described. FIG. 15 is a block diagram illustrating a configuration example of the needle meter detection device according to the fifth embodiment of the present invention. The needle meter detection device 10 shown in FIG. 15 is different from the configuration of the fourth embodiment shown in FIG. 12 in that it further includes a monitoring unit 19.

監視部19は、針線位置検証部18による異常判定の有無を監視する。監視部19は、例えば、針線位置検証部18によって異常と判定された場合に、装置の緊急停止等のオペレーションや、作業を管轄する管理センター等への通報等を行ってもよい。また、保守点検を実施する作業員に注意喚起する情報を提示するようにしてもよい。   The monitoring unit 19 monitors the presence or absence of abnormality determination by the needle line position verification unit 18. For example, when the needle position verification unit 18 determines that there is an abnormality, the monitoring unit 19 may perform an operation such as an emergency stop of the apparatus, a report to a management center or the like having jurisdiction over the work, and the like. Moreover, you may make it show the information which alerts the worker who performs a maintenance check.

このとき、監視部19は、外部入力される情報(入力画像を含む)から装置(検出対象とされる針式メータ)を特定する装置特定手段(図示省略)を有していてもよい。装置特定手段は、例えば、文字認識手段であって、入力画像から装置番号や装置型番等を得ることにより装置を特定してもよい。また、装置特定手段は、例えばID読み取り手段であって、装置にあらかじめ貼付されたバーコード、二次元バーコード、RFID等(以下、単にID等という)を入力画像から読み取る方法で装置番号や装置型番等を得ることにより装置を特定してもよい。なお、ID等の読み取り方法は上記に限られず、例えば、所定のタイミングで所定位置に置かれたり、かざされたものを直接読み取ってもよい。また、装置特定手段は、例えばユーザ入力受付手段であって、ユーザに装置番号や装置型番等を入力させることにより、装置を特定してもよい。そのような場合に、針線位置検証部18は、得られた装置番号や装置型番等に応じた異常状態の判定基準を用いて、異常か否かの判定を行うことも可能である。また、角度・指示値変換部17を備える場合において、角度・指示値変換部17が、得られた装置番号や装置型番等に応じた変換パラメータを用いて、針角度から指示値に変換してもよい。また、監視部19は、異常状態を管理センター等へ通報する際に、得られた装置番号や指示値の値を含む情報を送信してもよい。以上の説明では、装置番号や装置型番等により装置を特定する方法を説明したが、装置の特定はこれらに限定されるものではなく、例えば、計器の設置者、管理者等が独自につけた任意の文字列、記号列、図形等を認識してもよい。   At this time, the monitoring unit 19 may include device specifying means (not shown) for specifying a device (a needle meter to be detected) from information (including an input image) input from the outside. The device specifying unit is, for example, a character recognition unit, and may specify a device by obtaining a device number, a device model number, and the like from an input image. Further, the device specifying means is, for example, an ID reading means, which reads a barcode, a two-dimensional barcode, RFID, etc. (hereinafter simply referred to as ID etc.) attached to the device from an input image. The device may be specified by obtaining a model number or the like. Note that the reading method of the ID or the like is not limited to the above, and for example, a device placed at a predetermined position at a predetermined timing or directly held may be read. Further, the device specifying unit is, for example, a user input receiving unit, and may specify the device by allowing the user to input a device number, a device model number, or the like. In such a case, the needle line position verification unit 18 can also determine whether or not there is an abnormality by using an abnormal state determination criterion according to the obtained device number, device model number, or the like. Further, when the angle / instruction value conversion unit 17 is provided, the angle / instruction value conversion unit 17 converts the needle angle into the instruction value by using a conversion parameter corresponding to the obtained device number, device model number, and the like. Also good. Moreover, the monitoring part 19 may transmit the information containing the value of the acquired apparatus number and instruction value, when notifying an abnormal condition to a management center etc. FIG. In the above description, the method of specifying the device by the device number, the device model number, etc. has been described. However, the specification of the device is not limited to these, for example, an arbitrary one uniquely assigned by the instrument installer, administrator, etc. Character strings, symbol strings, figures, etc. may be recognized.

このような構成により、設備点検を行う作業員の代替、もしくは作業補助が可能になる。   With such a configuration, it is possible to substitute or assist a worker who performs equipment inspection.

また、監視部19は、異常判定の有無に関係なく、入力画像から検出された値(角度情報や指示値)を所定のサーバに通知してもよい。その際、監視部19は、入力画像とともに与えられたまたは画像解析により得られた装置番号を、検出された数値とともに通知してもよい。そのような場合に、針式メータ検出装置10が、撮像部を備え、一定周期で検出対象とされた針式メータを撮影し、その画像を線状画像生成部11に入力してもよい。その際、撮像部が、針の読み取りに適した位置・角度に設置されるのが好ましい。   Further, the monitoring unit 19 may notify a predetermined server of a value (angle information or instruction value) detected from the input image regardless of whether there is an abnormality determination. At that time, the monitoring unit 19 may notify the device number given together with the input image or obtained by image analysis together with the detected numerical value. In such a case, the needle meter detection device 10 may include an imaging unit, take an image of a needle meter that is a detection target at a constant period, and input the image to the linear image generation unit 11. In that case, it is preferable that the imaging unit is installed at a position and an angle suitable for reading the needle.

このような構成により、針式メータ検出装置10を、連続的な読み取り値のアップロードを行うスマートメータとして利用することが可能になる。   With such a configuration, the needle meter detection device 10 can be used as a smart meter that performs continuous reading uploading.

次に、本発明の各実施形態にかかるコンピュータの構成例を示す。図16は、本発明の各実施形態にかかるコンピュータの構成例を示す概略ブロック図である。コンピュータ1000は、CPU1001と、主記憶装置1002と、補助記憶装置1003と、インタフェース1004と、ディスプレイ装置1005と、入力装置1006とを備える。   Next, a configuration example of a computer according to each embodiment of the present invention will be shown. FIG. 16 is a schematic block diagram illustrating a configuration example of a computer according to each embodiment of the present invention. The computer 1000 includes a CPU 1001, a main storage device 1002, an auxiliary storage device 1003, an interface 1004, a display device 1005, and an input device 1006.

上述の各実施形態の針式メータ検出装置は、コンピュータ1000に実装されてもよい。その場合、針式メータ検出装置の動作は、プログラムの形式で補助記憶装置1003に記憶されていてもよい。CPU1001は、プログラムを補助記憶装置1003から読み出して主記憶装置1002に展開し、そのプログラムに従って各実施形態における所定の処理を実施する。   The needle meter detection device of each embodiment described above may be implemented in the computer 1000. In this case, the operation of the needle type meter detection device may be stored in the auxiliary storage device 1003 in the form of a program. The CPU 1001 reads a program from the auxiliary storage device 1003 and develops it in the main storage device 1002, and executes predetermined processing in each embodiment according to the program.

補助記憶装置1003は、一時的でない有形の媒体の一例である。一時的でない有形の媒体の他の例として、インタフェース1004を介して接続される磁気ディスク、光磁気ディスク、CD−ROM、DVD−ROM、半導体メモリ等が挙げられる。また、このプログラムが通信回線によってコンピュータ1000に配信される場合、配信を受けたコンピュータは1000がそのプログラムを主記憶装置1002に展開し、各実施形態における所定の処理を実行してもよい。   The auxiliary storage device 1003 is an example of a tangible medium that is not temporary. Other examples of the tangible medium that is not temporary include a magnetic disk, a magneto-optical disk, a CD-ROM, a DVD-ROM, and a semiconductor memory connected via the interface 1004. When this program is distributed to the computer 1000 via a communication line, the computer that has received the distribution may develop the program in the main storage device 1002 and execute the predetermined processing in each embodiment.

また、プログラムは、各実施形態における所定の処理の一部を実現するためのものであってもよい。さらに、プログラムは、補助記憶装置1003に既に記憶されている他のプログラムとの組み合わせで各実施形態における所定の処理を実現する差分プログラムであってもよい。   The program may be for realizing a part of predetermined processing in each embodiment. Furthermore, the program may be a difference program that realizes predetermined processing in each embodiment in combination with another program already stored in the auxiliary storage device 1003.

また、実施形態における処理内容によっては、コンピュータ1000の一部の要素は省略可能である。例えば、針式メータ検出装置がユーザに情報を提示しないのであれば、ディスプレイ装置1005は省略可能である。また、例えば、針式メータ検出装置がユーザから情報を入力しないのであれば、入力装置1006は省略可能である。ただし、その場合には少なくとも画像を入力する手段は別途備えられているものとする。   Further, depending on the processing contents in the embodiment, some elements of the computer 1000 may be omitted. For example, if the needle meter detection device does not present information to the user, the display device 1005 can be omitted. For example, if the needle meter detection device does not input information from the user, the input device 1006 can be omitted. In this case, however, at least means for inputting an image is provided separately.

また、各装置の各構成要素の一部または全部は、汎用または専用の回路(Circuitry)、プロセッサ等やこれらの組み合わせによって実施される。これらは単一のチップによって構成されてもよいし、バスを介して接続される複数のチップによって構成されてもよい。また、各装置の各構成要素の一部又は全部は、上述した回路等とプログラムとの組み合わせによって実現されてもよい。   In addition, some or all of the constituent elements of each device are implemented by general-purpose or dedicated circuits (Circuitry), processors, and the like or combinations thereof. These may be constituted by a single chip or may be constituted by a plurality of chips connected via a bus. Moreover, a part or all of each component of each device may be realized by a combination of the above-described circuit and the like and a program.

各装置の各構成要素の一部又は全部が複数の情報処理装置や回路等により実現される場合には、複数の情報処理装置や回路等は、集中配置されてもよいし、分散配置されてもよい。例えば、情報処理装置や回路等は、クライアントアンドサーバシステム、クラウドコンピューティングシステム等、各々が通信ネットワークを介して接続される形態として実現されてもよい。   When some or all of the constituent elements of each device are realized by a plurality of information processing devices and circuits, the plurality of information processing devices and circuits may be centrally arranged or distributedly arranged. Also good. For example, the information processing apparatus, the circuit, and the like may be realized as a form in which each is connected via a communication network, such as a client and server system and a cloud computing system.

次に、本発明の概要を説明する。図17は、本発明の概要を示すブロック図である。図17に示すように、本発明の針式メータ検出装置は、線状画像生成手段101と、線抽出手段102と、針線選択手段103とを備えている。   Next, the outline of the present invention will be described. FIG. 17 is a block diagram showing an outline of the present invention. As shown in FIG. 17, the needle meter detection device of the present invention includes a linear image generation unit 101, a line extraction unit 102, and a needle line selection unit 103.

線状画像生成手段101(例えば、線状画像生成部11)は、検出対象とされる針式メータを撮影した画像が入力されると、入力画像に対して二値化を少なくとも行い、線状画像を生成する。   When an image obtained by photographing a needle meter that is a detection target is input, the linear image generation unit 101 (for example, the linear image generation unit 11) performs at least binarization on the input image and performs linear processing. Generate an image.

線抽出手段102(例えば、線抽出部12)は、生成された線状画像から直線または所定形状の線を抽出する。   The line extraction unit 102 (for example, the line extraction unit 12) extracts a straight line or a line having a predetermined shape from the generated linear image.

針線選択手段103(例えば、針線選択部13)は、抽出された直線または所定形状の線である抽出線の中から、針に相当する線である針線を選択する。   The needle line selection unit 103 (for example, the needle line selection unit 13) selects a needle line that is a line corresponding to the needle from the extracted straight lines or the extracted lines that are lines having a predetermined shape.

このような構成によれば、入力画像から精度よく針線を検出できるので、それに伴い針式メータの指示値またはそれに関する値やそれらの正誤の検出を精度よく行うことができる。   According to such a configuration, the needle line can be detected from the input image with high accuracy, and accordingly, the indication value of the needle meter or the value related thereto and the correctness / incorrectness thereof can be detected with high accuracy.

なお、針式メータ検出装置は、所定の角度基準線に対する針線の角度を算出する角度算出手段をさらに備えていてもよい。   Note that the needle meter detection device may further include angle calculation means for calculating the angle of the needle line with respect to a predetermined angle reference line.

また、針式メータ検出装置は、予め1種類以上の針式メータの画像を、当該画像内の針式メータの傾き角が特定可能な態様で記憶する画像記憶手段と、入力画像と、画像記憶手段に記憶された針式メータの画像であるDB画像とを照合して、入力画像と最も類似するDB画像を特定するメータ画像照合手段とを備え、角度算出手段は、照合の結果特定される入力画像中の針式メータの傾き具合を表す角度パラメータに基づいて、入力画像中の針式メータの傾きを補正した上で、所定の角度基準線に対する針線の角度を算出してもよい。ここで、画像内の針式メータの傾き角が特定可能な態様とは、例えば、あらかじめ固定な値(0度)とするルール決めがされていてもよいし、画像中のメータの傾き角を示す情報を当該画像に付してもよいし、画像中にメータの傾き角を算出可能な特定の印や色付け等がされていてもよい。   In addition, the needle meter detection device stores in advance an image storage device that stores one or more types of needle meter images in such a manner that the inclination angle of the needle meter in the image can be specified, an input image, and an image storage A meter image collating unit that collates a DB image that is a needle meter image stored in the unit and identifies a DB image that is most similar to the input image, and the angle calculating unit is identified as a result of the collation. The angle of the needle line with respect to a predetermined angle reference line may be calculated after correcting the inclination of the needle type meter in the input image based on an angle parameter representing the degree of inclination of the needle type meter in the input image. Here, the aspect in which the inclination angle of the needle type meter in the image can be specified may be, for example, a rule set to a fixed value (0 degree) in advance, or the inclination angle of the meter in the image may be determined. Information to be displayed may be attached to the image, or a specific mark or coloring that can calculate the inclination angle of the meter may be added to the image.

また、針式メータ検出装置は、針線の角度と指示値の対応規則を示す情報に基づいて、針線の角度を指示値に変換する指示値変換手段を備えていてもよい。   In addition, the needle meter detection device may include instruction value conversion means for converting the needle line angle into an instruction value based on information indicating a correspondence rule between the needle line angle and the instruction value.

また、針式メータ検出装置は、外部入力される情報から検出対象とされる針式メータ内における針線の指示位置の正常範囲を特定する特定手段と、特定された正常範囲に基づいて、選択された針線の状態が正常か異常かを判定する判定手段とを備えていてもよい。該特定手段は、例えば、画部入力される情報(入力画像を含む)から装置を特定する情報を取得して、該情報に対応づけられたメータ情報により針線の指示位置の正常範囲を特定する手段であってもよい。また、例えば、入力画像と、画像記憶手段に記憶された針式メータの画像であるDB画像とを照合して、入力画像と最も類似するDB画像を特定する手段であってもよい。そのような場合には、針式メータ検出装置は、予め1種類以上の針式メータの画像を、当該画像内の針式メータの針線の指示位置の正常範囲が特定可能な態様で記憶する画像記憶手段を備えているものとする。ここで、画像内の針式メータの針線の指示位置の正常範囲が特定可能な態様とは、例えば、画像中のメータの針線の指示位置の正常範囲を示す情報を当該画像に付してもよいし、画像中に針線の指示位置の正常範囲を示す特定の印や色付け等がされていてもよい。   The needle type meter detection device is selected based on the specified normal range and the specifying means for specifying the normal range of the indicated position of the needle line in the needle type meter to be detected from the information inputted from the outside. And determining means for determining whether the state of the needle line is normal or abnormal. The specifying unit acquires, for example, information for specifying a device from information (including an input image) input to an image portion, and specifies a normal range of a needle line indication position based on meter information associated with the information. It may be a means. Further, for example, the input image may be a unit that collates a DB image that is an image of a needle meter stored in the image storage unit and identifies a DB image that is most similar to the input image. In such a case, the needle-type meter detection device stores an image of one or more types of needle-type meters in advance in such a manner that the normal range of the indicated position of the needle line of the needle-type meter in the image can be specified. It is assumed that storage means is provided. Here, the mode in which the normal range of the needle line indication position of the needle meter in the image can be specified is, for example, information indicating the normal range of the needle needle indication position in the image is attached to the image. Alternatively, a specific mark or coloring indicating the normal range of the indicated position of the needle line may be provided in the image.

また、針式メータ検出装置は、針線の角度、指示値または針線の状態を含む情報を、所定のサーバ装置に出力する監視手段を備えていてもよい。   Further, the needle meter detection device may include monitoring means for outputting information including a needle line angle, an instruction value, or a needle line state to a predetermined server device.

以上、本実施形態および実施例を参照して本願発明を説明したが、本願発明は上記実施形態および実施例に限定されるものではない。本願発明の構成や詳細には、本願発明のスコープ内で当業者が理解し得る様々な変更をすることができる。   While the present invention has been described with reference to the present embodiment and examples, the present invention is not limited to the above embodiment and examples. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention.

本発明は、針式メータの指示値またはそれに関する値やそれらの正誤の検出用途だけでなく、各種設備の異常監視といった用途に適用できる。また、保守点検作業支援といった用途にも好適に適用可能である。   The present invention is applicable not only to the indication value of a needle type meter or a value related to it, but also to the detection of the correctness / incorrectness thereof, as well as to the use of monitoring abnormalities in various facilities. Further, it can be suitably applied to uses such as maintenance inspection work support.

10 針式メータ検出装置
11 線状画像生成部
12 線抽出部
13 針線選択部
14 針角度算出部
15 メータ画像照合部
16 画像記憶部
17 角度・指示値変換部
18 針線位置検証部
19 監視部
1000 コンピュータ
1001 CPU
1002 主記憶装置
1003 補助記憶装置
1004 インタフェース
1005 ディスプレイ装置
1006 入力装置
101 線状画像生成手段
102 線抽出手段
103 針線選択手段
DESCRIPTION OF SYMBOLS 10 Needle type meter detection apparatus 11 Linear image generation part 12 Line extraction part 13 Needle line selection part 14 Needle angle calculation part 15 Meter image collation part 16 Image storage part 17 Angle / instruction value conversion part 18 Needle line position verification part 19 Monitoring part 1000 Computer 1001 CPU
1002 Main storage device 1003 Auxiliary storage device 1004 Interface 1005 Display device 1006 Input device 101 Linear image generation means 102 Line extraction means 103 Needle line selection means

Claims (10)

検出対象とされる針式メータを撮影した画像が入力されると、前記画像に対して二値化を少なくとも行い、線状画像を生成する線状画像生成手段と、
前記線状画像から直線または所定形状の線を抽出する線抽出手段と、
抽出された前記直線または所定形状の線である抽出線の中から、針に相当する線である針線を選択する針線選択手段とを備えた
ことを特徴とする針式メータ検出装置。
When an image obtained by photographing a needle meter to be detected is input, linear image generation means for at least binarizing the image and generating a linear image;
Line extraction means for extracting a straight line or a line of a predetermined shape from the linear image;
A needle-type meter detection device comprising needle line selection means for selecting a needle line that is a line corresponding to a needle from the extracted straight lines or extracted lines that are lines of a predetermined shape.
所定の角度基準線に対する針線の角度を算出する角度算出手段を備えた
請求項1に記載の針式メータ検出装置。
The needle-type meter detection device according to claim 1, further comprising angle calculation means for calculating an angle of the needle line with respect to a predetermined angle reference line.
予め1種類以上の針式メータの画像を、当該画像内の針式メータの傾き角が特定可能な態様で記憶する画像記憶手段と、
入力画像と、前記画像記憶手段に記憶された針式メータの画像であるDB画像とを照合して、前記入力画像と最も類似するDB画像を特定するメータ画像照合手段とを備え、
角度算出手段は、前記照合の結果特定される前記入力画像中の針式メータの傾き具合を表す角度パラメータに基づいて、前記入力画像中の針式メータの傾きを補正した上で、所定の角度基準線に対する針線の角度を算出する
請求項2に記載の針式メータ検出装置。
Image storage means for storing in advance an image of one or more types of needle-type meters in a manner in which the inclination angle of the needle-type meter in the image can be specified;
A meter image collating unit that collates an input image with a DB image that is an image of a needle meter stored in the image storage unit, and identifies a DB image that is most similar to the input image;
The angle calculation means corrects the inclination of the needle meter in the input image based on an angle parameter representing the inclination degree of the needle meter in the input image specified as a result of the collation, and then calculates a predetermined angle. The needle type meter detection device according to claim 2, wherein an angle of the needle line with respect to the reference line is calculated.
針線の角度と指示値の対応規則を示す情報に基づいて、針線の角度を指示値に変換する指示値変換手段を備えた
請求項2または請求項3に記載の針式メータ検出装置。
The needle-type meter detection device according to claim 2 or 3, further comprising instruction value conversion means for converting the needle line angle into an instruction value based on information indicating a correspondence rule between the needle line angle and the instruction value.
外部入力される情報から検出対象とされる針式メータ内における針線の指示位置の正常範囲を特定する特定手段と、
特定された前記正常範囲に基づいて、選択された針線の状態が正常か異常かを判定する判定手段とを備えた
請求項1に記載の針式メータ検出装置。
A specifying means for specifying a normal range of the indicated position of the needle line in the needle type meter to be detected from information input from the outside;
The needle-type meter detection device according to claim 1, further comprising: a determination unit that determines whether the state of the selected needle line is normal or abnormal based on the specified normal range.
針線の角度、指示値または針線の状態を含む情報を、所定のサーバ装置に出力する監視手段を備えた
請求項2から請求項5のうちのいずれか1項に記載の針式メータ検出装置。
The needle-type meter detection device according to any one of claims 2 to 5, further comprising a monitoring unit that outputs information including a needle line angle, an instruction value, or a needle line state to a predetermined server device.
検出対象とされる針式メータを撮影した画像が入力されると、前記画像に対して二値化を少なくとも行い、線状画像を生成し、
前記線状画像から直線または所定形状の線を抽出し、
抽出された前記直線または所定形状の線である抽出線の中から、針に相当する線である針線を選択する
ことを特徴とする針式メータ検出方法。
When an image obtained by photographing a needle meter to be detected is input, at least binarization is performed on the image to generate a linear image,
Extract a straight line or a line of a predetermined shape from the linear image,
A needle-type meter detection method, comprising: selecting a needle line corresponding to a needle from the extracted straight lines or extracted lines that are lines having a predetermined shape.
選択された針線の、所定の角度基準線に対する角度を算出する
請求項7に記載の針式メータ検出方法。
The needle meter detection method according to claim 7, wherein an angle of the selected needle line with respect to a predetermined angle reference line is calculated.
コンピュータに、
検出対象とされる針式メータを撮影した画像が入力されると、前記画像に対して二値化を少なくとも行い、線状画像を生成する線状画像生成処理、
前記線状画像から直線または所定形状の線を抽出する線抽出処理、および
抽出された前記直線または所定形状の線である抽出線の中から、針に相当する線である針線を選択する針線選択処理
を実行させるための針式メータ検出プログラム。
On the computer,
When an image obtained by photographing a needle meter to be detected is input, at least binarization is performed on the image, and a linear image generation process for generating a linear image,
A line extraction process for extracting a straight line or a line having a predetermined shape from the linear image, and a needle line selection for selecting a needle line corresponding to a needle from the extracted extracted lines that are the straight line or the predetermined shape line Needle meter detection program to execute processing.
コンピュータに、
選択された針線の、所定の角度基準線に対する角度を算出する角度算出処理
を実行させる請求項9に記載の針式メータ検出プログラム。
On the computer,
The needle-type meter detection program according to claim 9, wherein an angle calculation process for calculating an angle of a selected needle line with respect to a predetermined angle reference line is executed.
JP2016101386A 2016-05-20 2016-05-20 Needle meter detector, method and program Active JP6786874B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016101386A JP6786874B2 (en) 2016-05-20 2016-05-20 Needle meter detector, method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016101386A JP6786874B2 (en) 2016-05-20 2016-05-20 Needle meter detector, method and program

Publications (2)

Publication Number Publication Date
JP2017208014A true JP2017208014A (en) 2017-11-24
JP6786874B2 JP6786874B2 (en) 2020-11-18

Family

ID=60417307

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016101386A Active JP6786874B2 (en) 2016-05-20 2016-05-20 Needle meter detector, method and program

Country Status (1)

Country Link
JP (1) JP6786874B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018027390A (en) * 2017-11-24 2018-02-22 株式会社ユニバーサルエンターテインメント Game machine
JP2020154486A (en) * 2019-03-19 2020-09-24 株式会社明電舎 Change point detection device, change point detection method and change point detection program
JP2020201077A (en) * 2019-06-07 2020-12-17 株式会社ミツトヨ Analog indicator reader, analog indicator reading method and program
JPWO2021090864A1 (en) * 2019-11-08 2021-05-14
JP7219413B1 (en) 2022-08-31 2023-02-08 岩崎通信機株式会社 Angle measuring device, angle measuring method, angle measuring program
JP7231877B1 (en) 2022-08-31 2023-03-02 岩崎通信機株式会社 Angle measuring device, angle measuring method, angle measuring program

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04255080A (en) * 1991-02-06 1992-09-10 Hitachi Seiko Ltd Image input device
JP3035916U (en) * 1996-09-19 1997-04-08 原子力システム株式会社 Plant monitoring equipment
JP2846217B2 (en) * 1993-06-22 1999-01-13 三菱電機株式会社 Meter instruction reader
JP2002056387A (en) * 2000-08-07 2002-02-20 Toko Electric Corp Recognition processing device and recognition processing method for state indicator
JP2002092592A (en) * 2000-09-12 2002-03-29 Toko Electric Corp System and method for automatic patrol
JP2006120133A (en) * 2004-09-27 2006-05-11 Central Res Inst Of Electric Power Ind Automatic reading method, device, and program for analog meter
JP2007272601A (en) * 2006-03-31 2007-10-18 Canon Inc Image processor, control method and computer program
JP2008243103A (en) * 2007-03-29 2008-10-09 Yamaguchi Univ Image processing device, method, and program
JP2011081715A (en) * 2009-10-09 2011-04-21 Toshiba Corp Monitoring system and monitoring method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04255080A (en) * 1991-02-06 1992-09-10 Hitachi Seiko Ltd Image input device
JP2846217B2 (en) * 1993-06-22 1999-01-13 三菱電機株式会社 Meter instruction reader
JP3035916U (en) * 1996-09-19 1997-04-08 原子力システム株式会社 Plant monitoring equipment
JP2002056387A (en) * 2000-08-07 2002-02-20 Toko Electric Corp Recognition processing device and recognition processing method for state indicator
JP2002092592A (en) * 2000-09-12 2002-03-29 Toko Electric Corp System and method for automatic patrol
JP2006120133A (en) * 2004-09-27 2006-05-11 Central Res Inst Of Electric Power Ind Automatic reading method, device, and program for analog meter
JP2007272601A (en) * 2006-03-31 2007-10-18 Canon Inc Image processor, control method and computer program
JP2008243103A (en) * 2007-03-29 2008-10-09 Yamaguchi Univ Image processing device, method, and program
JP2011081715A (en) * 2009-10-09 2011-04-21 Toshiba Corp Monitoring system and monitoring method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018027390A (en) * 2017-11-24 2018-02-22 株式会社ユニバーサルエンターテインメント Game machine
JP2020154486A (en) * 2019-03-19 2020-09-24 株式会社明電舎 Change point detection device, change point detection method and change point detection program
JP7230608B2 (en) 2019-03-19 2023-03-01 株式会社明電舎 Change point detection device, change point detection method, and change point detection program
JP2020201077A (en) * 2019-06-07 2020-12-17 株式会社ミツトヨ Analog indicator reader, analog indicator reading method and program
JPWO2021090864A1 (en) * 2019-11-08 2021-05-14
JP7219413B1 (en) 2022-08-31 2023-02-08 岩崎通信機株式会社 Angle measuring device, angle measuring method, angle measuring program
JP7231877B1 (en) 2022-08-31 2023-03-02 岩崎通信機株式会社 Angle measuring device, angle measuring method, angle measuring program
JP2024033803A (en) * 2022-08-31 2024-03-13 岩崎通信機株式会社 Angle measurement device, method for measuring angle, and angle measurement program
JP2024033802A (en) * 2022-08-31 2024-03-13 岩崎通信機株式会社 Angle measurement device, method for measuring angle, and angle measurement program

Also Published As

Publication number Publication date
JP6786874B2 (en) 2020-11-18

Similar Documents

Publication Publication Date Title
JP6786874B2 (en) Needle meter detector, method and program
JP4741704B2 (en) Device, method and computer program for confirming road signs in images
US11699283B2 (en) System and method for finding and classifying lines in an image with a vision system
CN108875731B (en) Target identification method, device, system and storage medium
US9092697B2 (en) Image recognition system and method for identifying similarities in different images
US11657644B2 (en) Automatic ruler detection
JP6593327B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium
CN106327546B (en) Method and device for testing face detection algorithm
CN105303156B (en) Character detection device, method, and program
CN109948521B (en) Image deviation rectifying method and device, equipment and storage medium
CN110222641B (en) Method and apparatus for recognizing image
US10395090B2 (en) Symbol detection for desired image reconstruction
US9710945B2 (en) Method for cutting out character, character recognition apparatus using this method, and program
CN114005126A (en) Table reconstruction method and device, computer equipment and readable storage medium
KR101842535B1 (en) Method for the optical detection of symbols
Ocampo-Vega et al. Image processing for automatic reading of electro-mechanical utility meters
US10915772B2 (en) Apparatus and method for registering face pose for face recognition
JP2014186520A (en) Image processing apparatus, image processing method, and program
US20240078801A1 (en) System and method for finding and classifying lines in an image with a vision system
CN106780951A (en) Document method of calibration and device
CN111008635A (en) OCR-based multi-bill automatic identification method and system
JP2019220163A (en) System and method for finding line with vision system
JP2016162072A (en) Feature quantity extraction apparatus
CN112559342A (en) Method, device and equipment for acquiring picture test image and storage medium
CN111670458A (en) Reading system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190405

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200311

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200317

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200518

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200929

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201012

R150 Certificate of patent or registration of utility model

Ref document number: 6786874

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150