JP2016212044A - Pointer value reading device and pointer value reading program - Google Patents
Pointer value reading device and pointer value reading program Download PDFInfo
- Publication number
- JP2016212044A JP2016212044A JP2015098226A JP2015098226A JP2016212044A JP 2016212044 A JP2016212044 A JP 2016212044A JP 2015098226 A JP2015098226 A JP 2015098226A JP 2015098226 A JP2015098226 A JP 2015098226A JP 2016212044 A JP2016212044 A JP 2016212044A
- Authority
- JP
- Japan
- Prior art keywords
- pointer
- point position
- pointer value
- coordinates
- value
- 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
Links
Images
Landscapes
- Testing Or Calibration Of Command Recording Devices (AREA)
Abstract
Description
本発明は、指針値読取装置および指針値読取プログラムに関する。 The present invention relates to a pointer value reading device and a pointer value reading program.
例えば、建設現場では、コンクリートの品質試験や土質試験が行われており、工事担当者には、これらの試験の書類作成業務が大きな負担となる。 For example, concrete quality tests and soil quality tests are performed at construction sites, and the work of preparing documents for these tests is a heavy burden on construction personnel.
従来、品質試験等で用いる計器の撮影画像から画像認識技術を用いて指針値を自動で読み取る技術が開発されている(特許文献1,2参照)。
この技術を用いれば、測定結果を自動的にデータ化することが可能であり、書類作成業務を軽減することができる。
2. Description of the Related Art Conventionally, a technique for automatically reading a pointer value from an image taken by a meter used in a quality test or the like using an image recognition technique has been developed (see
If this technique is used, the measurement result can be automatically converted into data, and the document creation work can be reduced.
しかしながら、特許文献1,2に記載される技術を用いた装置では、計器の指針値を正しく読み取ることができない場合がある。例えば、屋外の建設現場では、屋内とは異なり撮影条件が一定にならないので、撮影条件によっては指針値を正確に読み取ることができない場合もある。
However, the apparatus using the techniques described in
本発明は、前記問題に鑑みてなされたものであり、撮影条件に影響されずに計器の指針値を正確に読み取ることができる指針値読取装置および指針値読取プログラムを提供することを課題とする。 The present invention has been made in view of the above problems, and it is an object of the present invention to provide a pointer value reading device and a pointer value reading program capable of accurately reading a pointer value of a meter without being influenced by photographing conditions. .
前記課題を解決するため、本発明に係る指針値読取装置は、撮影手段によって撮影された計器の撮影画像から当該計器の指針が示す指針値を読み取る指針値読取装置であって、二次元座標が設定されている表示手段に前記撮影画像を表示する撮影画像表示手段と、前記表示手段に表示された前記計器の目盛の原点位置、最大点位置、前記指針の回転中心点位置および前記指針が示す指針点位置を、ユーザの選択操作に基づいて取得する位置情報取得手段と、前記回転中心点位置の座標を中心とした前記原点位置の座標から前記最大点位置の座標までの前記指針の仮想的な第1の回転角度と前記回転中心点位置の座標を中心とした前記原点位置の座標から前記指針点位置の座標までの前記指針の第2の回転角度との比率、および記憶手段から取得する目盛の最大値から前記指針値を算出する指針値算出手段と、を備えることを特徴とする。 In order to solve the above-mentioned problem, a pointer value reading device according to the present invention is a pointer value reading device that reads a pointer value indicated by a pointer of a meter from a photographed image of the meter photographed by photographing means, and has two-dimensional coordinates. The photographed image display means for displaying the photographed image on the set display means, the origin position of the scale of the instrument displayed on the display means, the maximum point position, the rotation center point position of the pointer, and the pointer indicate Position information acquisition means for acquiring a pointer point position based on a user's selection operation, and a virtual position of the pointer from the origin position coordinate to the maximum point position coordinate centered on the rotation center point position coordinate A ratio between the first rotation angle and the second rotation angle of the pointer from the coordinates of the origin position to the coordinates of the pointer point position centered on the coordinates of the rotation center point position, and from the storage means A guideline value calculating means for calculating the pointer value from the maximum value of the scale which is characterized in that it comprises a.
本発明に係る指針値読取装置においては、ユーザによって選択された目盛の原点位置の座標、最大点位置の座標、回転中心点位置の座標および指針点位置の座標から指針値を算出する。したがって、撮影画像の状態によらずに、目盛が円弧上に配置されている計器(例えば、丸型メータ)の指針値を正確に読み取ることができる。なお、目盛が無端状に配置されることで目盛の原点と最大点とが同じ位置にある場合には、ユーザは、目盛の端境点(目盛の原点および最大点)、回転中心点および指針点の3箇所を選択する場合もある。また、ユーザは、目盛の原点、回転中心点および指針点の3箇所を選択し、選択された目盛の原点と回転中心点との位置関係から最大点の位置を算出することも可能である。 In the pointer value reading device according to the present invention, the pointer value is calculated from the coordinates of the origin position of the scale selected by the user, the coordinates of the maximum point position, the coordinates of the rotation center point position, and the coordinates of the pointer point position. Therefore, it is possible to accurately read the pointer value of a meter (for example, a round meter) whose scale is arranged on an arc regardless of the state of the captured image. Note that if the graduation is placed endlessly and the origin of the graduation and the maximum point are at the same position, the user can specify the end points of the graduation (the origin and maximum point of the graduation), the rotation center point, and the pointer. There are cases where three points are selected. The user can also select the three points of the scale origin, the rotation center point, and the pointer point, and calculate the position of the maximum point from the positional relationship between the origin of the selected scale and the rotation center point.
また、本発明に係る指針値読取装置は、撮影手段によって撮影された計器の撮影画像から当該計器の指針が示す指針値を読み取る指針値読取装置であって、二次元座標が設定されている表示手段に前記撮影画像を表示する撮影画像表示手段と、前記表示手段に表示された前記計器の目盛の原点位置、最大点位置および前記指針が示す指針点位置を、ユーザの選択操作に基づいて取得する位置情報取得手段と、前記原点位置の座標から前記最大点位置の座標までの前記指針の仮想的な第1の移動距離と前記原点位置の座標から前記指針点位置の座標までの前記指針の第2の移動距離との比率、および記憶手段から取得する目盛の最大値から前記指針値を算出する指針値算出手段と、を備えることを特徴とする。 The pointer value reading device according to the present invention is a pointer value reading device that reads a pointer value indicated by a pointer of the instrument from a photographed image of the instrument photographed by the photographing means, and is a display in which two-dimensional coordinates are set. A photographed image display means for displaying the photographed image on the means, and an origin position, a maximum point position of the scale of the instrument displayed on the display means, and a pointer point position indicated by the pointer are acquired based on a user selection operation. Position information acquisition means, and a first virtual movement distance of the pointer from the coordinate of the origin position to the coordinate of the maximum point position and a position of the pointer from the coordinate of the origin position to the coordinate of the pointer point position And a pointer value calculating means for calculating the pointer value from a ratio to the second moving distance and a maximum value of the scale obtained from the storage means.
本発明に係る指針値読取装置においては、ユーザによって選択される目盛の原点位置の座標、最大点位置の座標、指針点位置の座標から指針値を算出する。したがって、撮影画像の状態によらずに、目盛が直線上に配置されている計器(例えば、標尺)の指針値を正確に読み取ることができる。 In the pointer value reading device according to the present invention, the pointer value is calculated from the coordinates of the origin position of the scale selected by the user, the coordinates of the maximum point position, and the coordinates of the pointer point position. Therefore, it is possible to accurately read the pointer value of an instrument (for example, a scale) in which the scale is arranged on a straight line regardless of the state of the captured image.
本発明によれば、撮影条件に影響されずに計器の指針値を正確に読み取ることができる。 According to the present invention, it is possible to accurately read the pointer value of the instrument without being affected by the photographing conditions.
以下、本発明の実施をするための形態を、適宜図面を参照しながら詳細に説明する。
各図は、本発明を十分に理解できる程度に、概略的に示してあるに過ぎない。よって、本発明は、図示例のみに限定されるものではない。また、参照する図面において、各部材の寸法は、説明を明確にするために誇張して表現されている場合がある。なお、各図において、共通する構成要素や同様な構成要素については、同一の符号を付し、それらの重複する説明を省略する。
DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the drawings as appropriate.
Each figure is only schematically shown so that the invention can be fully understood. Therefore, the present invention is not limited to the illustrated example. In the drawings to be referred to, the dimensions of each member may be exaggerated for the sake of clarity. In addition, in each figure, about the same component or the same component, the same code | symbol is attached | subjected and those overlapping description is abbreviate | omitted.
[第1実施形態]
≪第1実施形態に係る指針値読取装置の構成について≫
図1を参照して、第1実施形態に係る指針値読取装置1の構成について説明する。以下では、本発明に関連する機能の説明を行うことにし、関連しない機能については説明を省略する。指針値読取装置1は、指針を有するアナログ式の計器2の指針値をデジタル値として読み取るものである。ここでの指針値読取装置1は、持ち運び可能な板状のタブレット端末を想定しており、デジタルカメラ10と、タッチディスプレイ20と、記憶手段30と、制御手段40とを備えて構成されている。
[First Embodiment]
≪About the configuration of the guideline value reading device according to the first embodiment≫
With reference to FIG. 1, the structure of the pointer
デジタルカメラ10は、共に図示しないレンズとイメージセンサ(撮像素子)とを内蔵しており、被写体(ここでは、計器2)から放射される光をレンズで屈折させ、屈折させた光をイメージセンサで電気信号に変換する。デジタルカメラ10は、例えば、CCDカメラやCMOSカメラであってよく、計器2を撮影した所定のフレームレートの撮影画像Gnを制御手段40に出力する。ここで、撮影対象の計器2は、指針を有するアナログ式のものであればよく、用途や種類などは特に限定されない。本実施形態では、計器2として丸型のアナログメータを想定する。計器2は、目盛Mが円弧上に付された目盛板2aと、目盛板2aの中心に回転自在に固定された指針2bとを備えている。指針2bの先端は、目盛M上の任意の位置を指し示す。
The
タッチディスプレイ20は、液晶表示装置であるディスプレイの表面にタッチパネルが積層されたものである。タッチディスプレイ20には、任意の位置を原点とする直交座標系(例えば、横方向をX軸、縦方向をY軸)が設定されており、タッチ操作により選択された位置情報を座標値として出力することができる。タッチディスプレイ20に表示される内容や観測者のタッチ操作によるデータ入力の内容については後記する。なお、指針値読取装置1は、タッチディスプレイ20に換えて、ディスプレイ等の表示手段とキーボードやマウス等の入力手段とを別々の装置として備えていてもよい。
The
記憶手段30は、RAM(Random Access Memory)、ROM(Read Only Memory)、HDD(Hard Disk Drive)、フラッシュメモリ等の記憶媒体から構成される。記憶手段30は、撮影画像記憶手段31と、目盛情報記憶手段32と、指針値情報記憶手段33とからなる。撮影画像記憶手段31は、デジタルカメラ10が撮影した所定のフレームレートの撮影画像Gn(動画像)のうちで観測者が撮影を指示した一枚の撮影画像G(静止画像)を記憶する。この撮影画像Gは、計器2の指針値の算出に用いられる。目盛情報記憶手段32は、撮影対象である計器2の目盛Mの最大値を記憶する。指針値情報記憶手段33は、撮影画像Gから算出された計器2の指針値を記憶する。指針値の算出方法については後記する。
The
制御手段40は、CPU(Central Processing Unit)によるプログラム実行処理や、専用回路等により実現される。制御手段40がプログラム実行処理により実現する場合、記憶手段30には、制御手段40の機能を実現するためのプログラムが格納される。制御手段40は、撮影補助手段41と、撮影画像取得手段42と、撮影画像表示手段43と、位置情報取得手段44と、指針値算出手段45とからなる。撮影補助手段41と、撮影画像取得手段42とは、撮影画像Gを取得するまでの処理を行い、撮影画像表示手段43と、位置情報取得手段44と、指針値算出手段45とは、撮影画像Gから指針値を算出する処理を行う。以下、各機能の処理の内容を説明する。 The control means 40 is realized by a program execution process by a CPU (Central Processing Unit), a dedicated circuit, or the like. When the control means 40 is realized by a program execution process, the storage means 30 stores a program for realizing the function of the control means 40. The control means 40 includes a photographing assist means 41, a photographed image acquisition means 42, a photographed image display means 43, a position information acquisition means 44, and a pointer value calculation means 45. The photographing assist means 41 and the photographed image acquisition means 42 perform processing until the photographed image G is obtained, and the photographed image display means 43, the position information acquisition means 44, and the pointer value calculation means 45 include the photographed image. A process for calculating a guideline value from G is performed. Hereinafter, the contents of processing of each function will be described.
撮影補助手段41は、観測者による計器2の撮影を補助する。撮影補助手段41は、デジタルカメラ10から撮影画像Gnを取得し、取得した撮影画像Gnに計器2の撮影を補助するガイドgを重ねた撮影画像G(n+g)をタッチディスプレイ20に表示させる。ガイドgは、計器2を傾きなく正面から撮影を行えるようにするためのものであればよい。本実施形態では、図2(a)に示すように、撮影補助手段41は、タッチディスプレイ20の中央部分にリング状のガイドgを表示させる。なお、撮影補助手段41は、計器2の中心位置を示す十字状のガイド(図示せず)等を表示させるものでもよい。
The imaging assistance means 41 assists the imaging of the
撮影画像取得手段42は、指針値の算出に用いる撮影画像Gを決定する。撮影画像取得手段42には、撮影補助手段41から撮影画像Gnを取得すると共に、観測者からの撮影指示がタッチディスプレイ20を介して入力される。撮影指示はどのようなものでもあってよく、その種類は特に限定されない。撮影画像取得手段42は、撮影画像Gnのなかから観測者からの撮影指示があった時点の撮影画像Gを静止画像として取得し、取得した撮影画像Gを撮影画像記憶手段31に記憶させる。撮影画像記憶手段31に記憶された撮影画像Gは、この後の指針値の算出に用いられる。
The captured
撮影画像表示手段43は、撮影画像Gを撮影画像記憶手段31から取得し、取得した撮影画像Gをタッチディスプレイ20に表示させる。ここで、撮影画像表示手段43は、撮影画像Gを拡大してタッチディスプレイ20に表示させてもよい。
The captured
位置情報取得手段44は、観測者の選択操作(以下、タッチ操作と称す)によって指示された点の位置情報(座標)を取得する。タッチディスプレイ20には、図2(b)に示すように、撮影画像表示手段43によって計器2の撮影画像Gが表示されている。図2(b)では、指針2bの初期状態(計測する前の状態)を破線で示している。指針2bは、初期状態において目盛の原点M0を指し示す。観測者は、撮影画像Gとして映し出された計器2の原点M0、指針2bの回転中心点Oおよび指針2bの指針点Miの合計3点を順番に選択する。タッチディスプレイ20の選択されたところには印が表示される。ここで、観測者は、撮影画像Gを選択する位置や順番を操作マニュアルなどにより事前に知らされているものとする。なお、位置情報取得手段44は、撮影画像Gを表示することに加えて文字や音声等で観測者に対して選択する位置や順番を指示するようにしてもよい。位置情報取得手段44は、観測者によって選択された原点M0の座標(X1,Y1)、回転中心点の座標(X2,Y2)および指針点Miの座標(X3,Y3)をタッチディスプレイ20から取得し、取得した3点の座標を指針値算出手段45に出力する。
The position
指針値算出手段45は、観測者のタッチ操作により選択された位置情報から計器2の指針値を算出する。指針値算出手段45には、位置情報取得手段44から出力された3点の座標(X1,Y1)、座標(X2,Y2)、座標(X3,Y3)が入力される。また、指針値算出手段45は、目盛情報記憶手段32から目盛Mの最大値を取得する。指針値算出手段45は、原点M0から指針点Miまでの角度θを3点の座標から算出し、算出した角度θを目盛Mの最大値を用いて指針値に換算する。
The pointer value calculation means 45 calculates the pointer value of the
例えば、指針値算出手段45は、図3に示すように、原点M0から回転中心点Oを通る鉛直線Kまでの角度θ1と、回転中心点Oを通る鉛直線Kから指針点Miまでの角度θ2とをそれぞれ算出し、「θ1+θ2」を原点M0から指針点Miまでの角度θとして算出する。そして、指針値算出手段45は、「θ×係数÷目盛の最大角度」を指針値として算出する。ここで、係数は目盛Mの最大値であり、最大角度は目盛Mの原点M0〜最大点Mmaxの角度である。なお、目盛Mを無端状(環状)に配置されることで目盛Mの原点M0と最大点Mmaxとが同じ位置にある場合には、最大角度は360°となる。指針値算出手段45は、算出した指針値を指針値情報記憶手段33に記憶させると共に、指針値をタッチディスプレイ20に表示する。なお、計器2の目盛の間隔が一定でない場合には、近似式を用いるようにするとよい。
For example, as shown in FIG. 3, the pointer
次に、図4を参照して、角度θ1,θ2を算出する方法について説明する。図4は、角度θ1を算出する処理を示すフローチャートの例示である。なお、角度θ2を算出する方法については説明を省略するが、回転中心点Oの座標(X2,Y2)および指針点Miの座標(X3,Y3)を用いることで、以下説明する角度θ1と同様に算出することができる。 Next, a method for calculating the angles θ1 and θ2 will be described with reference to FIG. FIG. 4 is an example of a flowchart showing a process for calculating the angle θ1. Although explanation of the method of calculating the angle θ2 is omitted, using the coordinates (X2, Y2) of the rotation center point O and the coordinates (X3, Y3) of the pointer point Mi, the same as the angle θ1 described below. Can be calculated.
指針値算出手段45は、X1とX2との差分(ΔX)を計算し(ステップS1)、また、Y1とY2との差分(ΔY)を計算する(ステップS2)。次に、指針値算出手段45は、算出した差分ΔX,ΔYがゼロでないか否かを判定する(ステップS3)。差分ΔXまたはΔYがゼロである場合には、指針値算出手段45は、ステップS4に処理を進めてタッチディスプレイ20にエラーを表示させて(ステップS4)、処理を終了する。一方、差分ΔXまたはΔYがゼロでない場合には、指針値算出手段45は、処理をステップS5に進める。
The pointer value calculation means 45 calculates the difference (ΔX) between X1 and X2 (step S1), and calculates the difference (ΔY) between Y1 and Y2 (step S2). Next, the pointer
差分ΔXまたはΔYがゼロでない場合(ステップS3で“Yes”)には、指針値算出手段45は、タンジェントの逆関数の式「θ1=tan-1(|ΔY|/|ΔX|)」を用いて角度θ1を算出する(ステップS5)。次に、指針値算出手段45は、ステップS5で求めた角度θ1に「180/π」を掛けて、角度θ1の単位をラジアン(rad)から度(°)に変更する(ステップS6)。
If the difference ΔX or ΔY is not zero (“Yes” in step S3), the pointer
次に、指針値算出手段45は、原点M0(X1,Y1)と回転中心点(X2,Y2)との位置関係により、ステップS6で算出した値に所定の角度を加減する(ステップS7〜ステップS12)。例えば、指針値算出手段45は、差分ΔXおよびΔYが共にプラス値の場合(ステップS7で“Yes”)には、「90」からステップS6で算出した値θ1を減算したものを新たな角度θ1とする(ステップS8)。また、指針値算出手段45は、差分ΔXがプラス値、ΔYがマイナス値の場合(ステップS9で“Yes”)には、「90」にステップS6で算出した値θ1を加算したものを新たな角度θ1とする(ステップS10)。
Next, the pointer value calculation means 45 adds or subtracts a predetermined angle to the value calculated in step S6 based on the positional relationship between the origin M0 (X1, Y1) and the rotation center point (X2, Y2) (step S7 to step S7). S12). For example, when the differences ΔX and ΔY are both positive values (“Yes” in step S7), the pointer
また、指針値算出手段45は、差分ΔXおよびΔYが共にマイナス値の場合(ステップS11で“Yes”)には、「270」からステップS6で算出した値θ1を減算したものを新たな角度θ1とする(ステップS12)。また、指針値算出手段45は、ステップS7,S9,S11で何れも“No”と判定された場合(つまり、差分ΔXがマイナス値、ΔYがプラス値の場合)には、「270」にステップS6で算出した値θ1を加算したものを新たな角度θ1とする(ステップS13)。
In addition, when the differences ΔX and ΔY are both negative values (“Yes” in step S11), the pointer
次に、指針値算出手段45は、ステップS8,S10,S12,S13で算出した値θ1が「180」以下であるか否かを判定する(ステップ14)。「180」以下である場合(ステップS14で“Yes”)には処理をそのまま終了し、一方、「180」よりも大きい場合(ステップS14で“No”)にはステップS8,S10,S12,S13で算出した値θ1から360を減算したものを新たな角度θ1とする(ステップS15)。
Next, the pointer
≪第1実施形態に係る指針値読取装置の使用方法について≫
図5を参照して(適宜、図1ないし図4参照)、第1実施形態に係る指針値読取装置1の使用方法について説明する。図5は、第1実施形態に係る指針値読取装置1の処理の流れを示すフローチャートの例示である。図5に示す処理は、例えば、観測者によってデジタルカメラ10の電源をONされた場合に開始する。
<< About the usage method of the guideline value reading apparatus according to the first embodiment >>
With reference to FIG. 5 (refer to FIGS. 1 to 4 as appropriate), a method of using the pointer
撮影補助手段41は、ガイドg(図2(a)参照)をタッチディスプレイ20に表示する(ステップS21)。観測者は、表示されるガイドgに合わせて計器2の撮影を行う。撮影された撮影画像Gは、撮影画像取得手段42によって撮影画像記憶手段31に記憶される。撮影画像Gは、試験内容を検証する場合の証拠資料となるので、このようにして撮影画像記憶手段31に記憶しておくのがよい。
The photographing assistance means 41 displays the guide g (see FIG. 2A) on the touch display 20 (step S21). The observer takes an image of the
次に、撮影画像表示手段43は、撮影画像Gをタッチディスプレイ20に拡大して表示する(ステップS22)。観測者は、タッチディスプレイ20に表示された撮影画像Gの計器2の原点M0をタッチ操作により選択する。タッチディスプレイ20に対してタッチ操作がなされると、位置情報取得手段44は、選択された原点M0の座標(X1,Y1)を取得する(ステップS23)。ここで、観測者は、例えば、操作マニュアルによってタッチする位置や順番を事前に知らされているものとする。
Next, the captured image display means 43 enlarges and displays the captured image G on the touch display 20 (step S22). The observer selects the origin M0 of the
次に、観測者は、タッチディスプレイ20に表示された撮影画像Gの指針2bの回転中心点Oをタッチ操作により選択する。タッチディスプレイ20に対してタッチ操作がなされると、位置情報取得手段44は、選択された回転中心点Oの座標(X2,Y2)を取得する(ステップS24)。続けて、観測者は、タッチディスプレイ20に表示された撮影画像Gの指針2bの指針点Miをタッチ操作により選択する。タッチディスプレイ20に対してタッチ操作がなされると、位置情報取得手段44は、選択された指針点Miの座標(X3,Y3)を取得する(ステップS25)。ここで、撮影画像表示手段43は、観測者によるデータ入力を正確なものにするために、観測者によって次にタッチされる部分を拡大して表示するようにしてもよい。また、観測者による確認作業を容易にするために、観測者によってタッチされた部分の周辺を拡大して表示するようにしてもよい。
Next, the observer selects the rotation center point O of the
次に、指針値算出手段45は、原点M0から回転中心点Oを通る鉛直線Kまでの角度θ1を、原点M0の座標(X1,Y1)と回転中心点Oの座標(X2,Y2)とを用いて算出する(ステップS26)。ステップS26に示す処理は、図4を参照して前記説明した通りである。続いて、指針値算出手段45は、回転中心点Oを通る鉛直線Kから指針点Miまでの角度θ2を、回転中心点Oの座標(X2,Y2)と指針点Miの座標(X3,Y3)とを用いて角度θ1の場合と同様に算出する(ステップS27)。 Next, the pointer value calculation means 45 determines the angle θ1 from the origin M0 to the vertical line K passing through the rotation center point O as the coordinates (X1, Y1) of the origin M0 and the coordinates (X2, Y2) of the rotation center point O. (Step S26). The process shown in step S26 is as described above with reference to FIG. Subsequently, the pointer value calculation means 45 determines the angle θ2 from the vertical line K passing through the rotation center point O to the pointer point Mi, the coordinates (X2, Y2) of the rotation center point O, and the coordinates (X3, Y3) of the pointer point Mi. ) And the same as in the case of the angle θ1 (step S27).
次に、指針値算出手段45は、原点M0から指針点Miまでの角度θを「θ=θ1+θ2」により算出する(ステップS28)。続いて、指針値算出手段45は、指針値を「指針値=θ×係数÷360(目盛の最大角度)」により算出する(ステップS29)。ここで、係数は、目盛Mの最大値である。そして、指針値算出手段45は、ステップS29で算出した指針値を指針値情報記憶手段33に記憶すると共に、タッチディスプレイ20に表示する(ステップS30)。
Next, the pointer value calculating means 45 calculates the angle θ from the origin M0 to the pointer point Mi by “θ = θ1 + θ2” (step S28). Subsequently, the pointer
以上のように、第1実施形態に係る指針値読取装置1は、観測者によって選択される目盛Mの原点M0の座標(X1,Y1)、回転中心点Oの座標(X2,Y2)および指針点(X3,Y3)の座標から指針値を算出する。したがって、撮影画像の状態によらずに、目盛Mが円弧上に配置されている計器2(例えば、丸型メータ)の指針値を正確に読み取ることができる。なお、目盛Mの最大角度θmaxの範囲を「0<θmax<360°」とすることで目盛Mの原点M0と最大点Mmaxとが違う位置になる場合(例えば、目盛Mの最大角度が180°の場合)には、目盛Mの最大点Mmaxの座標をさらに取得し、原点M0〜指針点Miの角度θと原点M0〜最大点Mmaxまでの最大角度θmaxとの比率により指針値を算出してもよい。
As described above, the pointer
[第2実施形態]
≪第2実施形態に係る指針値読取装置の構成について≫
図6を参照して、第2実施形態に係る指針値読取装置101の構成について説明する。以下では、本発明に関連する機能の説明を行うことにし、関連しない機能については説明を省略する。指針値読取装置101は、指針を有するアナログ式の計器3の指針値をデジタル値として読み取るものである。ここでの指針値読取装置101は、第1実施形態と同様に持ち運び可能な板状のタブレット端末を想定している。指針値読取装置101は、デジタルカメラ10と、タッチディスプレイ20と、記憶手段30と、制御手段140とを備えて構成されている。
[Second Embodiment]
≪About the configuration of the guideline value reading apparatus according to the second embodiment≫
With reference to FIG. 6, the structure of the pointer
第2実施形態では、デジタルカメラ10の撮影対象である計器3として、据え置き型の標尺を想定している。計器3は、直線上に目盛Mが付された目盛板3aと、目盛板3aの左側に上下動自在に設置された指針3bとを備えている。指針3bの先端は、目盛M上の任意の位置を指し示す。
In the second embodiment, a stationary type staff is assumed as the
制御手段140は、CPUによるプログラム実行処理や、専用回路等により実現される。制御手段140がプログラム実行処理により実現する場合、記憶手段30には、制御手段140の機能を実現するためのプログラムが格納される。制御手段140は、撮影補助手段141と、撮影画像取得手段42と、撮影画像表示手段43と、位置情報取得手段144と、指針値算出手段145とからなる。以下、第1実施形態と異なる機能の内容を説明する。
The control unit 140 is realized by a program execution process by a CPU, a dedicated circuit, or the like. When the control unit 140 is realized by a program execution process, the
撮影補助手段141は、観測者による計器3の撮影を補助する。撮影補助手段141は、デジタルカメラ10から撮影画像Gnを取得し、取得した撮影画像Gnに計器3の撮影を補助するガイドgを重ねた撮影画像G(n+g)をタッチディスプレイ20に表示させる。ガイドgは、計器3を傾きなく正面から撮影を行えるようにするためのものであればよい。本実施形態では、図7(a)に示すように、撮影補助手段141は、タッチディスプレイ20の中央部分に矩形状のガイドgを表示させる。なお、撮影補助手段141は、計器3の底部や上部の位置を示すガイド(図示せず)等を表示させるものでもよい。
The imaging assistance unit 141 assists the imaging of the
位置情報取得手段144は、観測者のタッチ操作によって指示された点の位置情報(座標)を取得する。タッチディスプレイ20には、図7(b)に示すように、撮影画像表示手段43によって計器3の撮影画像Gが表示されている。観測者は、撮影画像Gとして映し出された計器3の原点M0、計器3の最大点Mmaxおよび指針3bの指針点Miの合計3点を順番に選択する。タッチディスプレイ20の選択されたところには印が表示される。ここで、観測者は、撮影画像Gを選択する位置や順番を操作マニュアルなどにより事前に知らされているものとする。位置情報取得手段144は、観測者よって選択された計器3の原点M0の座標(X1,Y1)、計器3の最大点Mmaxの座標(X2,Y2)、指針3bの指針点Miの座標(X3,Y3)をタッチディスプレイ20から取得し、取得した3点の座標を指針値算出手段145に出力する。
The position
指針値算出手段145は、観測者のタッチ操作により選択された位置情報から計器3の指針値を算出する。指針値算出手段145には、位置情報取得手段144から出力された3点の座標(X1,Y1)、座標(X2,Y2)、座標(X3,Y3)が入力される。また、指針値算出手段145は、目盛情報記憶手段32から目盛Mの最大値を取得する。指針値算出手段145は、原点M0の座標(X1,Y1)から最大点Mmaxの座標(X2,Y2)までの最大距離Hmax(図8参照)および原点M0の座標(X1,Y1)から指針点Miの座標(X3,Y3)までの距離H(図8参照)を算出し、その比率「H/Hmax」および目盛Mの最大値から指針値を算出する。指針値算出手段145は、算出した指針値を指針値情報記憶手段33に記憶させると共に、指針値をタッチディスプレイ20に表示する。
The pointer value calculation means 145 calculates the pointer value of the
≪第2実施形態に係る指針値読取装置の使用方法について≫
図9を参照して(適宜、図6ないし図8参照)、第2実施形態に係る指針値読取装置101の使用方法について説明する。図9は、第2実施形態に係る指針値読取装置101の処理の流れを示すフローチャートの例示である。図9に示す処理は、例えば、観測者によってデジタルカメラ10の電源をONされた場合に開始する。
<< About the usage method of the guideline value reading apparatus according to the second embodiment >>
With reference to FIG. 9 (refer to FIGS. 6 to 8 as appropriate), a method of using the pointer
撮影補助手段141は、ガイドgをタッチディスプレイ20に表示する(ステップS41)。観測者は、表示されるガイドgに合わせて計器3の撮影を行う。撮影された撮影画像Gは、撮影画像取得手段42によって撮影画像記憶手段31に記憶される。撮影画像Gは、試験内容を検証する場合の証拠資料となるので、このようにして撮影画像記憶手段31に記憶しておくのがよい。
The imaging assistance unit 141 displays the guide g on the touch display 20 (step S41). The observer takes an image of the
次に、撮影画像表示手段43は、撮影画像Gをタッチディスプレイ20に拡大して表示する(ステップS42)。観測者は、タッチディスプレイ20に表示された撮影画像Gの計器3の原点M0をタッチ操作により選択する。タッチディスプレイ20に対してタッチ操作がなされると、位置情報取得手段144は、選択された原点M0の座標(X1,Y1)を取得する(ステップS43)。ここで、観測者は、例えば、操作マニュアルによってタッチする位置や順番を事前に知らされているものとする。
Next, the captured image display means 43 enlarges and displays the captured image G on the touch display 20 (step S42). The observer selects the origin M0 of the
次に、観測者は、タッチディスプレイ20に表示された撮影画像Gの計器3の最大点Mmaxをタッチ操作により選択する。タッチディスプレイ20に対してタッチ操作がなされると、位置情報取得手段144は、選択された最大点Mmaxの座標(X2,Y2)を取得する(ステップS44)。続けて、観測者は、タッチディスプレイ20に表示された撮影画像Gの指針3bの指針点Miをタッチ操作により選択する。タッチディスプレイ20に対してタッチ操作がなされると、位置情報取得手段144は、選択された指針点Miの座標(X3,Y3)を取得する(ステップS45)。ここで、撮影画像表示手段43は、観測者によるデータ入力を正確なものにするために、観測者によって次にタッチされる部分を拡大して表示するようにしてもよい。また、観測者による確認作業を容易にするために、観測者によってタッチされた部分の周辺を拡大して表示するようにしてもよい。
Next, the observer selects the maximum point Mmax of the
次に、指針値算出手段145は、指針値を「指針値=(Y3−Y2)×係数÷(Y1−Y2)」により算出する(ステップS46)。ここで、係数は、目盛Mの最大値である。そして、指針値算出手段145は、ステップS26で算出した指針値を指針値情報記憶手段33に記憶すると共に、タッチディスプレイ20に表示する(ステップS47)。
Next, the guideline value calculation means 145 calculates the guideline value by “guideline value = (Y3−Y2) × coefficient ÷ (Y1−Y2)” (step S46). Here, the coefficient is the maximum value of the scale M. The pointer
以上のように、第2実施形態に係る指針値読取装置101は、観測者によって選択される計器3の原点M0の座標(X1,Y1)、最大点Mmaxの座標(X2,Y2)および指針点(X3,Y3)の座標から指針値を算出する。したがって、撮影画像の状態によらずに、目盛Mが直線上に配置されている計器(例えば、標尺)の指針値を正確に読み取ることができる。
As described above, the pointer
[変形例]
以上、本発明の実施形態について説明したが、本発明はこれに限定されるものではなく、特許請求の範囲の趣旨を変えない範囲で実施することができる。実施形態の変形例を以下に示す。
[Modification]
As mentioned above, although embodiment of this invention was described, this invention is not limited to this, It can implement in the range which does not change the meaning of a claim. The modification of embodiment is shown below.
第1実施形態の指針値読取装置1は、タブレット端末を想定しデジタルカメラ10を有していた。しかしながら、指針値読取装置1の構成はこれに限定されず、デジタルカメラ10を有しない装置(例えば、据え置き型のPC(Personal Computer))であってもよい。その場合、指針値読取装置1は、撮影補助手段41および撮影画像取得手段42を備えていなくてもよく、撮影画像Gを他の装置から通信により取得すればよい。第2実施形態についても同様である。
The pointer
1,101 指針値読取装置
2,3 計器
10 デジタルカメラ(撮影手段)
20 タッチディスプレイ(入力手段、表示手段)
30 記憶手段
31 撮影画像記憶手段
32 目盛情報記憶手段
33 指針値情報記憶手段
40 制御手段
41,141 撮影補助手段
42 撮影画像取得手段
43 撮影画像表示手段
44,144 位置情報取得手段
45,145 指針値算出手段
M 目盛
g ガイド
G 撮影画像
1,101 Pointer
20 Touch display (input means, display means)
Claims (4)
二次元座標が設定されている表示手段に前記撮影画像を表示する撮影画像表示手段と、
前記表示手段に表示された前記計器の目盛の原点位置、最大点位置、前記指針の回転中心点位置および前記指針が示す指針点位置を、ユーザの選択操作に基づいて取得する位置情報取得手段と、
前記回転中心点位置の座標を中心とした前記原点位置の座標から前記最大点位置の座標までの前記指針の仮想的な第1の回転角度と前記回転中心点位置の座標を中心とした前記原点位置の座標から前記指針点位置の座標までの前記指針の第2の回転角度との比率、および記憶手段から取得する目盛の最大値から前記指針値を算出する指針値算出手段と、
を備えることを特徴とする指針値読取装置。 A pointer value reading device that reads a pointer value indicated by a pointer of the meter from a captured image of the meter photographed by the photographing means,
A captured image display means for displaying the captured image on a display means in which two-dimensional coordinates are set;
Position information acquisition means for acquiring an origin position, a maximum point position of the scale displayed on the display means, a rotation center point position of the pointer, and a pointer point position indicated by the pointer based on a user's selection operation; ,
A virtual first rotation angle of the pointer from a coordinate of the origin position to a coordinate of the maximum point position centered on the coordinates of the rotation center point position and the origin centered on the coordinates of the rotation center point position A ratio of the second rotation angle of the pointer from the coordinate of the position to the coordinate of the pointer point position, and a pointer value calculating means for calculating the pointer value from the maximum value of the scale acquired from the storage means;
A pointer value reading device comprising:
二次元座標が設定されている表示手段に前記撮影画像を表示する撮影画像表示手段と、
前記表示手段に表示された前記計器の目盛の原点位置、最大点位置および前記指針が示す指針点位置を、ユーザの選択操作に基づいて取得する位置情報取得手段と、
前記原点位置の座標から前記最大点位置の座標までの前記指針の仮想的な第1の移動距離と前記原点位置の座標から前記指針点位置の座標までの前記指針の第2の移動距離との比率、および記憶手段から取得する目盛の最大値から前記指針値を算出する指針値算出手段と、
を備えることを特徴とする指針値読取装置。 A pointer value reading device that reads a pointer value indicated by a pointer of the meter from a captured image of the meter photographed by the photographing means,
A captured image display means for displaying the captured image on a display means in which two-dimensional coordinates are set;
Position information acquisition means for acquiring the origin position of the scale of the instrument displayed on the display means, the maximum point position, and the pointer point position indicated by the pointer based on a user's selection operation;
A virtual first movement distance of the pointer from the coordinates of the origin position to the coordinates of the maximum point position and a second movement distance of the pointer from the coordinates of the origin position to the coordinates of the pointer point position A guideline value calculation means for calculating the guideline value from the ratio and the maximum value of the scale acquired from the storage means;
A pointer value reading device comprising:
コンピュータを、
二次元座標が設定されている表示手段に前記撮影画像を表示する撮影画像表示手段と、
前記表示手段に表示された前記計器の目盛の原点位置、最大点位置、前記指針の回転中心点位置および前記指針が示す指針点位置を、ユーザの選択操作に基づいて取得する位置情報取得手段と、
前記回転中心点位置の座標を中心とした前記原点位置の座標から前記最大点位置の座標までの前記指針の仮想的な第1の回転角度と前記回転中心点位置の座標を中心とした前記原点位置の座標から前記指針点位置の座標までの前記指針の第2の回転角度との比率、および記憶手段から取得する目盛の最大値から前記指針値を算出する指針値算出手段として機能させるための指針値読取プログラム。 A pointer value reading program for reading a pointer value indicated by a pointer of the instrument from a photographed image of the instrument photographed by the photographing means,
Computer
A captured image display means for displaying the captured image on a display means in which two-dimensional coordinates are set;
Position information acquisition means for acquiring an origin position, a maximum point position of the scale displayed on the display means, a rotation center point position of the pointer, and a pointer point position indicated by the pointer based on a user's selection operation; ,
A virtual first rotation angle of the pointer from a coordinate of the origin position to a coordinate of the maximum point position centered on the coordinates of the rotation center point position and the origin centered on the coordinates of the rotation center point position A ratio of the second rotation angle of the pointer from the coordinate of the position to the coordinate of the pointer point position and the maximum value of the scale acquired from the storage unit, and the pointer value calculating unit for calculating the pointer value Guideline value reading program.
コンピュータを、
二次元座標が設定されている表示手段に前記撮影画像を表示する撮影画像表示手段と、
前記表示手段に表示された前記計器の目盛の原点位置、最大点位置および前記指針が示す指針点位置を、ユーザの選択操作に基づいて取得する位置情報取得手段と、
前記原点位置の座標から前記最大点位置の座標までの前記指針の仮想的な第1の移動距離と前記原点位置の座標から前記指針点位置の座標までの前記指針の第2の移動距離との比率、および記憶手段から取得する目盛の最大値から前記指針値を算出する指針値算出手段として機能させるための指針値読取プログラム。 A pointer value reading program for reading a pointer value indicated by a pointer of the instrument from a photographed image of the instrument photographed by the photographing means,
Computer
A captured image display means for displaying the captured image on a display means in which two-dimensional coordinates are set;
Position information acquisition means for acquiring the origin position of the scale of the instrument displayed on the display means, the maximum point position, and the pointer point position indicated by the pointer based on a user's selection operation;
A virtual first movement distance of the pointer from the coordinates of the origin position to the coordinates of the maximum point position and a second movement distance of the pointer from the coordinates of the origin position to the coordinates of the pointer point position A pointer value reading program for functioning as a pointer value calculating means for calculating the pointer value from the ratio and the maximum value of the scale acquired from the storage means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015098226A JP6527386B2 (en) | 2015-05-13 | 2015-05-13 | Pointer value reader and pointer value reading program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015098226A JP6527386B2 (en) | 2015-05-13 | 2015-05-13 | Pointer value reader and pointer value reading program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016212044A true JP2016212044A (en) | 2016-12-15 |
JP6527386B2 JP6527386B2 (en) | 2019-06-05 |
Family
ID=57550893
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015098226A Active JP6527386B2 (en) | 2015-05-13 | 2015-05-13 | Pointer value reader and pointer value reading program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6527386B2 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019204238A (en) * | 2018-05-22 | 2019-11-28 | 富士通コンポーネント株式会社 | Instrument reading device and instrument reading method |
CN111325164A (en) * | 2020-02-25 | 2020-06-23 | 北京眸视科技有限公司 | Pointer indication number identification method and device and electronic equipment |
EP3719650A1 (en) | 2019-03-15 | 2020-10-07 | Yazaki Corporation | Vehicle communication system |
JP2020181464A (en) * | 2019-04-26 | 2020-11-05 | Gmoクラウド株式会社 | Meter reading system, meter reading method, and program |
JP2021109173A (en) * | 2020-01-10 | 2021-08-02 | 株式会社大気社 | Quality management system, quality management method, and quality management program |
JP2022058266A (en) * | 2020-09-30 | 2022-04-11 | デンカ アドバンテック プライベート リミテッド | Measuring instrument reader and automatic control system |
JP2023010338A (en) * | 2021-07-09 | 2023-01-20 | 株式会社東芝 | Information processing apparatus and computer program |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0279699A (en) * | 1988-09-16 | 1990-03-20 | Hitachi Ltd | Remote measuring instrument |
JP2003223693A (en) * | 2002-01-30 | 2003-08-08 | Kyushu Electric Power Co Inc | Instrument indication reader |
JP2005267365A (en) * | 2004-03-19 | 2005-09-29 | Ntt Power & Building Facilities Inc | Method for reading pointer value of pointer rotary meter, device for reading pointer value of pointer rotary meter and program for reading meter pointer value |
JP2006084418A (en) * | 2004-09-17 | 2006-03-30 | Kurita Water Ind Ltd | Automatic reading apparatus for measuring instrument |
-
2015
- 2015-05-13 JP JP2015098226A patent/JP6527386B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0279699A (en) * | 1988-09-16 | 1990-03-20 | Hitachi Ltd | Remote measuring instrument |
JP2003223693A (en) * | 2002-01-30 | 2003-08-08 | Kyushu Electric Power Co Inc | Instrument indication reader |
JP2005267365A (en) * | 2004-03-19 | 2005-09-29 | Ntt Power & Building Facilities Inc | Method for reading pointer value of pointer rotary meter, device for reading pointer value of pointer rotary meter and program for reading meter pointer value |
JP2006084418A (en) * | 2004-09-17 | 2006-03-30 | Kurita Water Ind Ltd | Automatic reading apparatus for measuring instrument |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019204238A (en) * | 2018-05-22 | 2019-11-28 | 富士通コンポーネント株式会社 | Instrument reading device and instrument reading method |
EP3719650A1 (en) | 2019-03-15 | 2020-10-07 | Yazaki Corporation | Vehicle communication system |
JP2020181464A (en) * | 2019-04-26 | 2020-11-05 | Gmoクラウド株式会社 | Meter reading system, meter reading method, and program |
JP2021109173A (en) * | 2020-01-10 | 2021-08-02 | 株式会社大気社 | Quality management system, quality management method, and quality management program |
JP7217256B2 (en) | 2020-01-10 | 2023-02-02 | 株式会社大気社 | Quality control system, quality control method and quality control program |
CN111325164A (en) * | 2020-02-25 | 2020-06-23 | 北京眸视科技有限公司 | Pointer indication number identification method and device and electronic equipment |
CN111325164B (en) * | 2020-02-25 | 2023-11-21 | 北京眸视科技有限公司 | Pointer representation number identification method and device and electronic equipment |
JP2022058266A (en) * | 2020-09-30 | 2022-04-11 | デンカ アドバンテック プライベート リミテッド | Measuring instrument reader and automatic control system |
JP2023010338A (en) * | 2021-07-09 | 2023-01-20 | 株式会社東芝 | Information processing apparatus and computer program |
Also Published As
Publication number | Publication date |
---|---|
JP6527386B2 (en) | 2019-06-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6527386B2 (en) | Pointer value reader and pointer value reading program | |
JP6412474B2 (en) | Crack width measurement system | |
AU2012352520B2 (en) | Multiple-angle imagery of physical objects | |
US10277889B2 (en) | Method and system for depth estimation based upon object magnification | |
EP2189835A1 (en) | Terminal apparatus, display control method, and display control program | |
TW201743602A (en) | Image processing device, image processing method, non-transitory computer readable recording medium and photographing assist equipment | |
CN1630304A (en) | Gradient displaying method of mobile terminal | |
US9683833B2 (en) | Surveying apparatus having a range camera | |
JP2013228267A (en) | Display device, display method, and program | |
JP2011022112A (en) | System, apparatus and method of displaying point of interest | |
WO2012092167A1 (en) | Mobile postural screening method and system | |
JP6332568B2 (en) | Information processing apparatus, control method, and program | |
JP5016443B2 (en) | Camera installation simulator program | |
JP2016085102A (en) | Surveying instrument and program | |
KR101571096B1 (en) | User Adaptive Interface Providing System and Method | |
JP2009217115A (en) | Camera picture simulator program | |
US11489998B2 (en) | Image capturing apparatus and method of controlling image capturing apparatus | |
JP6817527B1 (en) | Information processing equipment, programs and information processing systems | |
US10469673B2 (en) | Terminal device, and non-transitory computer readable medium storing program for terminal device | |
JP4513580B2 (en) | Image processing program and digital camera | |
JP2013250477A (en) | Computer device and program | |
JP2013257830A (en) | Information processor | |
JP2017090422A (en) | Measuring apparatus | |
TWI516744B (en) | Distance estimation system, method and computer readable media | |
JP2016015549A (en) | Information processing device, information processing method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180221 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190212 |
|
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: 20190423 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190510 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6527386 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |