JP2022082140A - Instrument reading system and instrument reading program - Google Patents
Instrument reading system and instrument reading program Download PDFInfo
- Publication number
- JP2022082140A JP2022082140A JP2020193527A JP2020193527A JP2022082140A JP 2022082140 A JP2022082140 A JP 2022082140A JP 2020193527 A JP2020193527 A JP 2020193527A JP 2020193527 A JP2020193527 A JP 2020193527A JP 2022082140 A JP2022082140 A JP 2022082140A
- Authority
- JP
- Japan
- Prior art keywords
- scale
- instrument
- candidate
- image
- information
- 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
- 238000000034 method Methods 0.000 claims description 69
- 230000008569 process Effects 0.000 claims description 29
- 238000012545 processing Methods 0.000 claims description 27
- 230000006870 function Effects 0.000 claims description 7
- 238000013461 design Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 5
- 239000000284 extract Substances 0.000 description 5
- 239000011159 matrix material Substances 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000000605 extraction Methods 0.000 description 4
- 238000007689 inspection Methods 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000009466 transformation Effects 0.000 description 3
- 239000000470 constituent Substances 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 238000005352 clarification Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 238000007616 round robin method Methods 0.000 description 1
- 230000008685 targeting Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
Description
本発明は、プラントや工場等の施設内に設置されている指針により指示値を表す種類の計器を対象として、点検や保守等において計器の指示値を取得および記録する作業を支援する計器読み取りシステム、計器読み取りプログラムに関するものである。 The present invention is an instrument reading system that supports the work of acquiring and recording the indicated value of an instrument in inspection, maintenance, etc., targeting a type of instrument that expresses the indicated value by a guideline installed in a facility such as a plant or factory. , It is about the instrument reading program.
プラントや工場等における点検作業や保守作業の一つとして、施設内に設置されている計器の指示値を取得し記録する作業がある。また、施設内に設置されている計器の中でも、指針によって指示値を表す種類の計器(指針型計器)がある。指針型計器の読み取り作業を支援する技術としては、スマートフォンやタブレット端末に搭載されているカメラやパソコンに接続されたカメラ等で計器の画像を撮影し、撮影した画像から計器の指示値を自動的に読み取る技術がある(例えば、特許文献1)。 As one of the inspection work and maintenance work in a plant or factory, there is a work of acquiring and recording the indicated value of the instrument installed in the facility. In addition, among the instruments installed in the facility, there is a type of instrument (pointer type instrument) that expresses the indicated value by a pointer. As a technology to support the reading work of the pointer type instrument, the image of the instrument is taken with the camera installed in the smartphone or tablet terminal or the camera connected to the personal computer, and the indicated value of the instrument is automatically calculated from the taken image. There is a technique for reading in (for example, Patent Document 1).
特許文献1では、指示値の読み取りに必要な情報を利用者があらかじめ設定し、設定した情報を用いて指示値の読み取りを行う技術が提示されている。カメラで撮影した計器の画像を画面上に表示し、計器の画像上で読み取りに必要な情報の設定を利用者が行うことができる。設定する情報としては、指針の支点位置、針の可動領域、目盛りを含む領域であり、これらの設定を支援する図形を計器の画像上に重ね合わせて表示し、利用者がその図形を移動・変形することにより設定を行えるようにして、設定作業の効率化を図っている。 Patent Document 1 presents a technique in which a user sets information necessary for reading an indicated value in advance and reads the indicated value using the set information. The image of the instrument taken by the camera is displayed on the screen, and the user can set the information necessary for reading on the image of the instrument. The information to be set is the fulcrum position of the pointer, the movable area of the needle, and the area including the scale. The figure that supports these settings is superimposed and displayed on the image of the instrument, and the user moves the figure. The setting work is made more efficient by making it possible to set by transforming.
計器読み取りシステムを導入する場合、読み取りが可能であるかどうかを点検作業や保守作業を行う実際の現場において、事前に確認することが通常と考えられる。このため、特許文献1のような、各計器に対して、事前に読み取りに必要となる情報を設定することにより読み取りを行う技術を用いることが現実的である。 When introducing an instrument reading system, it is usually considered to confirm in advance whether reading is possible at the actual site where inspection work and maintenance work are performed. Therefore, it is realistic to use a technique such as Patent Document 1 for reading by setting information necessary for reading in advance for each instrument.
しかしながら、点検作業や保守作業を実施する現場では、設備の配置や安全面から、使用できる機材や行動範囲が制限されるため、例えば、スマートフォンやタブレット端末のみで効率的に設定作業を行えることが望ましい。 However, at the site where inspection work and maintenance work are carried out, the equipment that can be used and the range of activities are limited due to the arrangement of equipment and safety, so for example, setting work can be performed efficiently only with smartphones and tablet terminals. desirable.
特許文献1では、指針が回転する中心位置や目盛り位置を、計器を撮影した画面上で利用者が指定することにより設定を行う方法が提示されている。しかし、読み取りの精度を上げるためには、中心位置や目盛り位置として、より正確な位置を指定する必要がある。一般的に使用されるパソコンおよびマウスが使える環境であれば、画像上で正確な位置を指定することは容易である。しかし、使用できる手段がスマートフォンやタブレット端末である場合、画面が小さい上に、指によるタッチ操作となるため、画像上で正確な位置を指定することが困難となり、設定に要する時間も増大する。このため、スマートフォンやタブレット端末の画面上においても、計器の読み取りに必要となる情報をより正確に設定するための手段が必要であると考えられる。 Patent Document 1 presents a method of setting a center position and a scale position on which a pointer rotates by being specified by a user on a screen on which an instrument is photographed. However, in order to improve the reading accuracy, it is necessary to specify more accurate positions as the center position and the scale position. It is easy to specify the exact position on the image in an environment where a commonly used personal computer and mouse can be used. However, when the means that can be used is a smartphone or a tablet terminal, the screen is small and the touch operation is performed by a finger, which makes it difficult to specify an accurate position on the image and increases the time required for setting. Therefore, it is considered that a means for more accurately setting the information necessary for reading the instrument is required even on the screen of the smartphone or tablet terminal.
以上のことから、本発明の目的は、計器の読み取りに必要となる情報の設定にスマートフォンやタブレット端末等のモバイル機器を用いる場合でも、正確に且つ短時間で、計器の読み取りに必要となる情報を設定することを可能とする技術を提供することにある。 From the above, an object of the present invention is the information required for reading the instrument accurately and in a short time even when a mobile device such as a smartphone or a tablet terminal is used to set the information required for reading the instrument. Is to provide the technology that makes it possible to set.
本発明の一態様にかかる計器読み取りシステムは、計器の画像を取得する取得手段と、計器が示す数値を読み取るために必要な計器の情報を設定するための設定手段と、設定された前記計器の情報に基づいて前記計器の画像から計器が示す数値を読み取る読み取り手段と、前記計器が示す数値を読み取った結果を表示する表示手段と、を有する計器読み取りシステムであって、前記設定手段は、前記計器の画像における目盛りを含む領域の候補を検出する領域候補検出手段と、検出された目盛りを含む領域の各候補に対して、目盛り位置の候補を検出する位置候補検出手段と、前記目盛りを含む領域の候補および前記目盛り位置の候補から、最適な候補を選択するための制約条件に関する情報を入力する入力手段と、前記目盛りを含む領域の候補および前記目盛り位置の候補と、入力された前記制約条件とに基づいて、前記目盛りを含む領域の候補と前記目盛り位置の候補とに順位付けを行う順位付け手段と、前記順位付けの結果に基づいて最適な目盛りを含む領域の候補と目盛り位置の候補を表示する表示手段と、を有することを特徴とする計器読み取りシステムとして構成される。 The instrument reading system according to one aspect of the present invention includes an acquisition means for acquiring an image of the instrument, a setting means for setting instrument information necessary for reading a numerical value indicated by the instrument, and a set means of the instrument. An instrument reading system comprising a reading means for reading a numerical value indicated by the instrument from an image of the instrument based on information and a display means for displaying the result of reading the numerical value indicated by the instrument, wherein the setting means is the said. The area candidate detecting means for detecting the candidate of the area including the scale in the image of the instrument, the position candidate detecting means for detecting the candidate of the scale position for each candidate of the area including the detected scale, and the scale are included. An input means for inputting information on a constraint condition for selecting an optimum candidate from a region candidate and a scale position candidate, a region candidate including the scale, a scale position candidate, and the input constraint. A ranking means for ranking the candidate of the region including the scale and the candidate of the scale position based on the conditions, and the candidate and the scale position of the region including the optimum scale based on the result of the ranking. It is configured as an instrument reading system characterized by having a display means for displaying candidates.
本発明によれば、計器の読み取りに必要となる情報の設定にスマートフォンやタブレット端末等のモバイル機器を用いる場合でも、正確に且つ短時間で、計器の読み取りに必要となる情報を設定することが可能となる。 According to the present invention, even when a mobile device such as a smartphone or a tablet terminal is used to set the information required for reading the instrument, it is possible to set the information required for reading the instrument accurately and in a short time. It will be possible.
以下、図面を参照して本発明の実施形態を説明する。以下の記載および図面は、本発明を説明するための例示であって、説明の明確化のため、適宜、省略および簡略化がなされている。本発明は、他の種々の形態でも実施する事が可能である。特に限定しない限り、各構成要素は単数でも複数でも構わない。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. The following description and drawings are examples for explaining the present invention, and are appropriately omitted and simplified for the sake of clarification of the description. The present invention can also be implemented in various other forms. Unless otherwise specified, each component may be singular or plural.
図面において示す各構成要素の位置、大きさ、形状、範囲などは、発明の理解を容易にするため、実際の位置、大きさ、形状、範囲などを表していない場合がある。このため、本発明は、必ずしも、図面に開示された位置、大きさ、形状、範囲などに限定されない。 The positions, sizes, shapes, ranges, etc. of each component shown in the drawings may not represent the actual positions, sizes, shapes, ranges, etc., in order to facilitate understanding of the invention. Therefore, the present invention is not necessarily limited to the position, size, shape, range and the like disclosed in the drawings.
以下の説明では、「テーブル」、「リスト」等の表現にて各種情報を説明することがあるが、各種情報は、これら以外のデータ構造で表現されていてもよい。データ構造に依存しないことを示すために「XXテーブル」、「XXリスト」等を「XX情報」と呼ぶことがある。識別情報について説明する際に、「識別情報」、「識別子」、「名」、「ID」、「番号」等の表現を用いた場合、これらについてはお互いに置換が可能である。 In the following description, various information may be described by expressions such as "table" and "list", but various information may be expressed by a data structure other than these. The "XX table", "XX list", etc. may be referred to as "XX information" to show that they do not depend on the data structure. When expressions such as "identification information", "identifier", "name", "ID", and "number" are used in explaining the identification information, these can be replaced with each other.
同一あるいは同様な機能を有する構成要素が複数ある場合には、同一の符号に異なる添字を付して説明する場合がある。ただし、これらの複数の構成要素を区別する必要がない場合には、添字を省略して説明する場合がある。 When there are a plurality of components having the same or similar functions, they may be described by adding different subscripts to the same reference numerals. However, if it is not necessary to distinguish between these plurality of components, the subscripts may be omitted for explanation.
また、以下の説明では、プログラムを実行して行う処理を説明する場合があるが、プログラムは、プロセッサ(例えばCPU(Central Processing Unit)、GPU(Graphics Processing Unit))によって実行されることで、定められた処理を、適宜に記憶資源(例えばメモリ)および/またはインターフェースデバイス(例えば通信ポート)等を用いながら行うため、処理の主体がプロセッサとされてもよい。同様に、プログラムを実行して行う処理の主体が、プロセッサを有するコントローラ、装置、システム、計算機、ノードであってもよい。プログラムを実行して行う処理の主体は、演算部であれば良く、特定の処理を行う専用回路(例えばFPGA(Field-Programmable Gate Array)やASIC(Application Specific Integrated Circuit))を含んでいてもよい。 Further, in the following description, a process performed by executing a program may be described, but the program is determined by being executed by a processor (for example, a CPU (Central Processing Unit) or a GPU (Graphics Processing Unit)). In order to perform the processed processing while appropriately using storage resources (for example, memory) and / or interface devices (for example, communication port), the main body of the processing may be a processor. Similarly, the main body of the process of executing the program may be a controller, an apparatus, a system, a computer, or a node having a processor. The main body of the processing performed by executing the program may be any arithmetic unit, and may include a dedicated circuit (for example, FPGA (Field-Programmable Gate Array) or ASIC (Application Specific Integrated Circuit)) for performing specific processing. ..
プログラムは、プログラムソースから計算機のような装置にインストールされてもよい。プログラムソースは、例えば、プログラム配布サーバまたは計算機が読み取り可能な記憶メディアであってもよい。プログラムソースがプログラム配布サーバの場合、プログラム配布サーバはプロセッサと配布対象のプログラムを記憶する記憶資源を含み、プログラム配布サーバのプロセッサが配布対象のプログラムを他の計算機に配布してもよい。また、以下の説明において、2以上のプログラムが1つのプログラムとして実現されてもよいし、1つのプログラムが2以上のプログラムとして実現されてもよい。 The program may be installed from a program source into a device such as a calculator. The program source may be, for example, a program distribution server or a computer-readable storage medium. When the program source is a program distribution server, the program distribution server includes a processor and a storage resource for storing the program to be distributed, and the processor of the program distribution server may distribute the program to be distributed to other computers. Further, in the following description, two or more programs may be realized as one program, or one program may be realized as two or more programs.
以下では、計器の読み取りに必要となる情報をあらかじめ設定し、設定した情報に基づいて計器の指示値を読み取る計器読み取り技術において、計器の読み取りに必要となる情報の設定にスマートフォンやタブレット端末等のモバイル機器を用いる場合でも、正確に且つ短時間で、計器の読み取りに必要となる情報を設定することを可能としている。 In the following, in the instrument reading technology that sets the information required for reading the instrument in advance and reads the indicated value of the instrument based on the set information, the information required for reading the instrument is set for smartphones, tablet terminals, etc. Even when using a mobile device, it is possible to set the information required for reading the instrument accurately and in a short time.
第一の実施例を図1から図19を用いて説明する。 The first embodiment will be described with reference to FIGS. 1 to 19.
図1は、第一の実施例における計器読み取りシステム1000を一般的なコンピュータによって実行させる場合のコンピュータの構成図を示す。本実施例における計器読み取りシステム1000は、図2に示すように、利用者201が手に把持した端末202を用いて計器203を撮影し、端末202で計器203の指示値を読み取らせる場合を想定している。指示値の読み取りに必要となる各種情報についても、端末202で計器203の画像を取得し、端末202の画面上で計器203の画像を操作することにより、設定を行う。端末202は、スマートフォンやタブレット端末、ノートPC等の、よく知られているモバイル端末であり、図1に含まれる構成要素を端末202に含む構成とすることができる。あるいは、データやプログラムの一部をサーバに格納し、必要な処理をネットワーク経由で実行する構成とすることも可能である。また、本実施例は、計器203を撮影するカメラを固定して設置するようなシステム対しても適用可能である。
FIG. 1 shows a configuration diagram of a computer when the
メモリ104に格納されたプログラムは、CD(Compact Disk)やDVD(Digital Versatile Disk)、USB(Universal Serial Bus)メモリ等の可搬性を有する非一時的な記録媒体に格納され、コンピュータにインストールされてもよい。計器読み取りシステム1000の機能は、メモリ104に格納されたプログラムがCPU101によって実行されることで、定められた処理がハードウェアと協働して実現される。計器読み取りシステム1000が実行するプログラム、その機能、あるいはその機能を実現する手段を、「機能」、「手段」、「部」、「ユニット」、「モジュール」等と呼ぶ場合がある。
The program stored in the memory 104 is stored in a portable non-temporary recording medium such as a CD (Compact Disk), a DVD (Digital Versatile Disk), or a USB (Universal Serial Bus) memory, and is installed in a computer. May be good. The function of the
図1におけるCPU101は、計器読み取りシステム1000における各プログラムを実行するための情報処理装置である。入力I/F(インタフェース)102には、計器を撮影するためのカメラおよび、システムの開始や終了等を制御するためのキーボード、ボタン、マウスあるいはタッチパネル等の一般的なコンピュータにおける入力装置が含まれる。出力I/F(インタフェース)103は利用者にシステムの動作状況等を表示するための手段であり、スマートフォンやタブレット端末の画面、あるいは一般的なコンピュータ用の表示装置が含まれる。また、メモリ104は、計器読み取りシステム1000における各プログラムを格納するための記憶媒体である。メモリ104には、計器設定プログラム105および、計器読み取りプログラム106が含まれる。
The
第一の実施例では、指針によって指示値を表す種類の計器のうち、図3の計器301に示すように、目盛りが円状に配置されており、指針がその円の中心を支点として回転する種類の計器を読み取りの対象と想定する。図3の計器301に示す種類の計器を読み取るために必要となる基本的な情報は、目盛りが構成する円と目盛りの最小値の位置および最大値の位置である。図3では、目盛りが構成する円の中心位置302、目盛りが構成する円の半径303、目盛りの最小値位置304および目盛りの最大値位置305が読み取りに必要な基本的な情報となる。以下では、一例として、目盛りの最小値の位置および最大値の位置が、読み取りに必要な基本的な情報であるとして説明している。しかし、目盛りの最小値の位置および最大値の位置に限らず、例えば、目盛りが通常指し示す値の範囲がわかる場合には、その範囲の下限値の位置および上限値の位置を、読み取りに必要な基本的な情報としてもよい。例えば、指針が指し示す指示値が、経験上あるいは制御等により、最小値および最大値の80%の範囲で推移することがわかっている場合には、当該範囲の下限値の位置および上限値の位置を、読み取りに必要な基本的な情報とすればよい。このように、本システムの利用者は、上記最小値の位置および最大値の位置にかえて、読み取り位置や範囲を任意に設定することができる。
In the first embodiment, among the types of instruments whose indicated values are represented by the pointer, the scales are arranged in a circle as shown in the
円の中心位置302は、例えば図3に示すように、画像の左下を原点とした位置座標により表すことができる。原点位置は、任意に設定することもできる。さらに、目盛りの最小値位置304および目盛りの最大値位置305は、例えば、図3に示すように、円の中心位置302から真下におろした線を基準とした相対的な角度で表すことができる。基準とする線も任意に設定することができる。これらの情報を利用者が効率的に指定するためには、例えば、目盛りの最小値位置304および目盛りの最大値位置305のみを指定すれば良い。2点のみの指定では通常、2種類の円が候補として求められることになるが、本実施例では、計器全体がなるべく大きく画像中に映るように撮影する、というような制約を用いることができる。この制約を用いることにより、目盛りの最小値位置304および目盛りの最大値位置305のみを用いて、目盛りが構成する円を一意に特定することが可能となる。また、目盛りの最小値位置304および目盛りの最大値位置305は指定された情報をそのまま使用すれば良い。
As shown in FIG. 3, for example, the
さらに、図3の計器301に示す種類の計器において、最小値位置と最大値位置が計器の中心線(例えば、円の中心位置302を通る垂直な線や水平な線)に対して線対称の位置にある場合は、目盛りの最小値位置304および目盛りの最大値位置305のいずれか一方と、円の中心位置302を指定することでも、目盛りが構成する円を一意に特定することができる。上述した情報は、計器の読み取りに必要となる基本的な情報であるが、それ以外の情報を追加することもできる。例えば、最小値と最大値以外の目盛りの位置を追加するようにしても良い。また、図3に示す計器は傾きが無い状態で撮影された状態となっているが、実際に計器を撮影する場合、計器が傾いて撮影される場合が一般的である。このため、上記に示した情報に加えて、傾きに関する情報を追加するようにしても良い。
Further, in the type of instrument shown in the
計器情報データ107には、計器の読み取りに必要な情報の種類および計器の設定時に利用者が指定する情報の種類を登録する。図4に、計器情報データ107のフォーマットの一例を示す。計器情報ID401は、計器情報の種類を表す識別子であり、計器情報データ107の中において唯一の識別子であれば、任意の数字列あるいは文字列を使用することができる。設定情報リスト402は、上述した計器の指示値の読み取りに必要な情報の種類を文字列等により列挙したものである。図3に示す種類の計器であれば、例えば「円の中心位置、円の半径、最小値位置、最大値位置」のような文字列を記述する。「円の中心位置」は図3に示した円の中心位置302、「円の半径」は図3に示した円の半径303、「最小値位置」は図3に示した目盛りの最小値位置304、「最大値位置」は図3に示した目盛りの最大値位置305にそれぞれ対応することを想定している。
In the
入力情報リスト403は、設定情報リスト402に列挙されている情報のうち、計器の設定を行う際に利用者が手動で入力を行う情報の種類を列挙したものである。例えば、図3に示す計器に対して、目盛りの最小値位置304および最大値位置305を利用者が入力するという想定の場合、上述した設定情報リスト402の例に対する入力情報リスト403には「最小値位置、最大値位置」のような文字列を記述する。あるいは、目盛りが構成する円の中心位置302と目盛りの最小値位置304を利用者が入力する想定の場合は「中心位置、最小値位置」のような文字列を記述する。このように、利用者が入力すると想定する情報の種類および組み合わせは、設定情報リスト402に含まれる情報の種類の範囲内であれば、任意に設定することができる。
The
計器設定データ108には、計器設定プログラム105により設定される各計器の指示値の読み取りに必要となる情報が格納される。図3に示す計器の設定情報を格納するためのフォーマットの一例を図5に示す。図5において、計器名称501は読み取り対象の各計器に付与される名称であり、計器設定データ108において唯一の文字列であれば、任意の文字列を使用することができる。計器情報ID502は、計器情報の種類を表す識別子であり、計器情報データ107における計器情報ID401のいずれかが記述される。テンプレート画像503は、対象計器の読み取りに必要な情報を設定する際に計器を撮影した画像である。円の中心位置504、円の半径505、最小値位置506および最大値位置507は、図3における目盛りが構成する円の中心位置302、目盛りが構成する円の半径303、目盛りの最小値位置304および目盛りの最大値位置305にそれぞれ対応するデータが記述される。また、最小値508および最大値509は、最小値位置506および最大値位置507を指針が指示した場合の計器の指示値を記述する。
The
計器設定プログラム105や計器読み取りプログラム106には、読み取りに必要な情報の種類を表す上述のような文字列が登録されており、読み取りに必要な情報の種類の組み合わせにより、設定方法や読み取り方法を選択し、実行するようにしておく。想定する以外の種類の計器を対象とする必要が生じた場合は、読み取りに必要な新たな情報の種類の定義、新たな情報の組み合わせの計器情報データ107への登録、および、計器設定プログラム105および計器読み取りプログラム106への必要な情報や設定方法、読み取り方法の追加、を必要に応じて行うことにより、新しい種類の計器の設定および読み取りを行うことができる。
The above-mentioned character strings indicating the types of information required for reading are registered in the instrument setting program 105 and the
計器読み取り結果データ109には、計器読み取りプログラム106により読み取られた計器の指示値が格納される。図6に読み取られた計器の指示値を格納するフォーマットの一例を示す。図6において、計器名称601は読み取られた指示値に対応する計器の名称であり、図5における計器名称501と同様の名称が記述される。日時602には、指示値が読み取られた日付および時間を示す数値あるいは文字列が記述される。603は読み取られた指示値を表す数値あるいは文字列である。
The instrument reading
計器設定プログラム105は、計器の読み取りに必要な情報を設定し、設定した情報を計器設定データ108に格納するためのプログラムである。図7に、計器設定プログラム105により実行される処理のフローチャートの一例を示す。なお、図7に示すフローチャートは、図3に示す種類の計器を対象とした処理となっている。
The instrument setting program 105 is a program for setting information necessary for reading the instrument and storing the set information in the
以下に説明するように、実施例1および後述する実施例2では、計器の画像(例えば、図3の円形形状の計器の画像や図20の矩形形状の計器の画像)に示す種類の計器を取得する取得手段(例えば、入力装置102であるカメラ)と、計器が示す数値を読み取るために必要な計器の情報を設定するための設定手段(例えば、計器設定プログラム105)と、設定された計器の情報に基づいて計器の画像から計器が示す数値を読み取る読み取り手段(例えば、計器読み取りプログラム106)と、計器が示す数値を読み取った結果を表示する表示手段(例えば、出力装置103である表示装置)と、を有する計器読み取りシステム1000において、上記設定手段は、計器の画像における目盛りを含む領域の候補(例えば、図3の円候補や図20の矩形候補)を検出する領域候補検出手段(例えば、図7のS704~S707を実行する計器読み取りプログラム106)と、検出された目盛りを含む領域の各候補に対して、目盛り位置の候補を検出する位置候補検出手段(例えば、図7のS708を実行する計器読み取りプログラム106)と、目盛りを含む領域の候補および目盛り位置の候補から、最適な候補を選択するための制約条件に関する情報(例えば、図7のS709で指定される情報)を入力する入力手段(例えば、図7のS709を実行する計器読み取りプログラム106)と、目盛りを含む領域の候補および目盛り位置の候補と、入力された制約条件とに基づいて、目盛りを含む領域の候補と目盛り位置の候補とに順位付けを行う順位付け手段(例えば、図7のS710を実行する計器読み取りプログラム106)と、順位付けの結果に基づいて最適な目盛りを含む領域の候補と目盛り位置の候補を表示する表示手段(例えば、図7のS711を実行する計器読み取りプログラム106)と、を有することを特徴とする計器読み取りシステムとして機能する。
As will be described below, in Example 1 and Example 2 described later, the types of instruments shown in the image of the instrument (for example, the image of the circular instrument in FIG. 3 and the image of the rectangular instrument in FIG. 20) are used. An acquisition means for acquisition (for example, a camera which is an input device 102), a setting means for setting instrument information necessary for reading a numerical value indicated by the instrument (for example, an instrument setting program 105), and a set instrument. A reading means for reading the numerical value indicated by the instrument from the image of the instrument based on the information of (for example, the instrument reading program 106) and a display means for displaying the result of reading the numerical value indicated by the instrument (for example, a display device which is an output device 103). ), And the setting means is a region candidate detecting means (for example, a circle candidate in FIG. 3 or a rectangular candidate in FIG. 20) for detecting a region candidate including a scale in an image of the instrument. , The instrument reading program 106) that executes S704 to S707 of FIG. 7, and the position candidate detecting means (for example, S708 of FIG. 7) that detects the candidate of the scale position for each candidate of the region including the detected scale. Input the information regarding the constraint condition for selecting the optimum candidate from the instrument reading program 106) to be executed and the candidate of the area including the scale and the candidate of the scale position (for example, the information specified by S709 in FIG. 7). Based on the input means (for example, the
図7におけるステップ701では、計器設定プログラム105は、計器情報データ107から読み取り対象となる計器に関する情報を取得する。具体的には、計器設定プログラム105は、計器情報データ107から計器情報ID401の一覧を取得し、端末202の画面上に一覧表示するとともに、利用者に対象となる計器に対応する計器情報IDを選択するよう指示を行う。計器設定プログラム105は、利用者が一覧から選択した計器情報IDに対応する計器情報を計器情報データ107から取得する。
In
ステップ702では、計器設定プログラム105は、端末202に設置されているカメラを用いて、読み取り対象となる計器の画像を撮影する。この画像は、計器設定データ108のテンプレート画像503として格納される。
In
ステップ703では、計器設定プログラム105は、撮影した計器の画像から輪郭線(エッジ)を抽出する。輪郭線は、一般によく知られた方法、例えば、Canny法等を用いることにより容易に抽出することができる。ステップ703で輪郭線を抽出した後、ステップ704への処理とステップ705への処理に分岐する。この分岐は、異なるデザインの目盛りに対応することが目的である。
In step 703, the instrument setting program 105 extracts contour lines (edges) from the captured image of the instrument. The contour line can be easily extracted by using a generally well-known method, for example, the Canny method. After extracting the contour line in step 703, the process branches to the process of
図3に示す種類の計器を目盛りのデザインで分類すると、図8に示す種類の計器と図9に示す種類の計器に大別される。図8に示す種類の計器は、目盛り線によって構成される円と同心円である円弧の線に各目盛り線が接触しているデザイン801である。円弧の線811は、目盛り線と同様に描かれた線である場合もあるが、計器の枠が同様の役割を果たしている場合もある。この種類の計器では、輪郭線の抽出結果においても円弧と各目盛り線が接続された状態となる。一方、図9に示す種類の計器は、各目盛り線が独立した短い線になっているデザイン901であり、輪郭線の抽出においても各目盛り線に対して独立した輪郭線が抽出される。これら二種類の目盛りのデザインに柔軟に対応するため、図7に示すフローチャートでは、計器設定プログラム105は、ステップ704において図8に示す種類の目盛り線に対応した処理を、ステップ705以降において図9に示す種類の目盛り線に対応した処理を行う。図7では、ステップ704の処理と、ステップ705以降の処理とを実行する場合を例示しているが、どちらかの処理を選択的に実行してもよい。
When the types of instruments shown in FIG. 3 are classified by the scale design, they are roughly classified into the types of instruments shown in FIG. 8 and the types of instruments shown in FIG. The type of instrument shown in FIG. 8 is a
ステップ704では、計器設定プログラム105は、ステップ703で抽出した輪郭線すべてを用いて円候補の検出を行う。円候補の検出方法としては、一般によく知られた方法、例えば、Hough変換等を用いることにより、容易に検出することができる。計器設定プログラム105は、図8に示す計器の画像から抽出した輪郭線に対して円候補の検出を行うことにより、例えば図10における円候補1001、円候補1002および円候補1003に示すような円候補を抽出することできる。図10において、円候補1001は目盛り線が接する円弧の線に対して検出された候補、円候補1002および円候補1003は計器の枠によって表される線が円候補として検出されたものである。また、計器設定プログラム105は、抽出した輪郭線すべてを用いて円候補の検出を行う代わりに、抽出された輪郭線を連結された輪郭線のまとまり(例えば、図10で示す円を構成する1または複数の破線を含む小領域)に分割し、分割された輪郭線のまとまりがあらかじめ定められた長さより長い輪郭線のみに対して円候補の検出を行うようにしても良い。
In
一方、ステップ705では、計器設定プログラム105は、抽出された輪郭線を連結された輪郭線のまとまり(例えば、図11で示す円を構成する目盛り線に対応する小領域)に分割し、分割された輪郭線のまとまりの領域が占める面積(例えば、図11で示す目盛り線に対応する小領域の面積)を求める。計器設定プログラム105は、求めた面積があらかじめ目盛り線の面積を想定した閾値より小さい輪郭線のまとまりのみを残す。この処理により、計器設定プログラム105は、図9に示す種類の計器の画像から、目盛り線に関する輪郭線のみを抽出することが可能となる。
On the other hand, in
次にステップ706において、計器設定プログラム105は、ステップ705により残された各輪郭線のまとまりについて、それぞれの輪郭線の重心位置を求める。さらにステップ707において、計器設定プログラム105は、求めた重心位置に対してステップ704で使用したのと同様の方法を用いて円候補の検出を行う。ステップ705から707の処理により、図11の円候補1101に示すように、独立した目盛り線により構成される円候補を検出することができる。
Next, in step 706, the instrument setting program 105 obtains the position of the center of gravity of each contour line for each group of contour lines left by
ステップ704および、ステップ705から707によって検出された各円候補のうち、目盛りによって構成される円に対して検出された候補は、円候補1001のように全ての目盛りに接触、あるいは、円候補1101のように全ての目盛りと交差する形になる。この場合、円候補の半径を基準として当該半径よりも一定程度大きくした円および当該半径よりも一定程度小さくした円によって挟まれるドーナツ状の領域は目盛りを含む領域となるため、各円候補は目盛り領域の候補となる。
Of the circle candidates detected in
このように、上記領域候補検出手段(例えば、図7のS704~S707を実行する計器読み取りプログラム106)は、計器の画像中から抽出した輪郭情報から目盛りを含む領域を表す形状を特定することにより、計器の画像中から目盛りを含む領域の候補を検出する処理(例えば、図7のS704)と、計器の画像中から各々の目盛りに対応する小領域を抽出し、抽出した複数の小領域が構成する形状が目盛りを含む領域を表す形状であるかどうかを判定することにより、計器の画像中から目盛りを含む領域の候補を検出する処理(例えば、図7のS705~S707)と、の少なくともいずれかの処理を行う。
As described above, the region candidate detecting means (for example, the
ステップ708では、計器設定プログラム105は、ステップ704および、ステップ705から707によって検出された各円候補に対して、目盛り位置候補の検出を行う。目盛り位置候補の検出を行うためには、まず、円候補の中心位置に基づいて、図8や図9に示すような計器画像に対して極座標変換を行い、目盛り領域の画像を矩形状の画像に変換する。具体的には、計器設定プログラム105は、円候補の中心位置から円周方向に伸ばした直線を想定し、その直線上の画素値を取得する。計器設定プログラム105は、中心位置を軸に、直線の角度を少しずつ変えながら取得した画素を接続していくことにより、円形の画像を矩形状の画像に変換することができる。この際、計器設定プログラム105は、円候補の半径を中心として、あらかじめ設定された範囲の画素値のみを取得することにより、円候補が目盛りによって構成される円と一致している場合、図12および図13に示すように、目盛り領域のみを矩形状に変形した画像を取得することができる。図12は図8に示す画像から抽出された目盛り領域の画像、図13は図9に示す画像から抽出された目盛り領域の画像を想定している。また図12および図13では、目盛り線のみが抽出されている場合を想定した画像であるが、実際には、数字やその他模様の一部が含まれる場合もある。
In
さらにステップ708では、計器設定プログラム105は、目盛り領域の画像に対して、目盛り線のみを残すための処理を行う。具体的には、図12および図13のような画像の場合、計器設定プログラム105は、縦方向の線のみを残す処理を行う。この方法としては、一般によく知られたモルフォロジー変換等を用いることにより、容易に行うことができる。縦方向の線のみを残す処理を行うことにより、図12に示す画像も図13と同様の画像に変換される。計器設定プログラム105は、目盛り線のみとなった画像に対して、例えば図13に示すような画像の場合、各目盛り線の横方向の位置を目盛り位置候補として取得する。
Further, in
ステップ709では、計器設定プログラム105は、計器の設定時に利用者が指定する情報を取得する。このため、計器設定プログラム105は、端末202の画面上に図14に示すような指示画面を表示する。この画面は、ステップ702で計器の撮影を行った後に表示される画面となる。端末202の画面がタッチパネルを有する場合、計器の画像1401上の該当位置を指でタッチすることにより、必要な情報を指定することができる。利用者が設定する必要がある情報の種類は、ステップ701で取得した計器情報データ107中における入力情報リスト403の内容によって決定される。計器設定プログラム105は、入力情報リスト403の内容に従って、利用者が指定した情報を順番に設定情報リスト中の情報に対応付ける。
In step 709, the instrument setting program 105 acquires information specified by the user when setting the instrument. Therefore, the instrument setting program 105 displays an instruction screen as shown in FIG. 14 on the screen of the terminal 202. This screen is the screen displayed after taking a picture of the instrument in
図15に利用者が必要な情報を指定した状態の一例を示す。図15は、利用者が指定する情報が目盛りの最小値位置304と目盛りの最大値位置305である場合の例を示しており、最小値位置1501が設定され、最大値位置1502が設定されている。なお、この時に利用者が指定する位置は正確な位置である必要は無い。また、図14においてボタン1402は直前の画面に戻るためのボタンであり、計器設定プログラム105は、利用者からマウスや画面タッチ等による選択を受け付けると、画面を遷移させて直前画面に戻ることができる。以降の画面でも同様に、計器設定プログラム105は、このボタンが選択されると、直前の画面に遷移させる。
FIG. 15 shows an example of a state in which the user has specified necessary information. FIG. 15 shows an example in which the information specified by the user is the
ステップ710では、計器設定プログラム105は、利用者が指定した情報に基づいて、すでに検出されている円候補および目盛り位置候補に対して順位付けを行う。いずれの順位付けについても、利用者が指定した位置と円候補や目盛り位置候補との距離に基づいて行うことができる。例えば、円候補の順位付けについては、計器設定プログラム105は、各円候補について、円候補の中心位置から利用者が指定した位置までの距離と円候補の半径との差を求め、差がより小さい候補を順位が上位の候補とすれば良い。また、目盛り位置候補の順位付けについては、計器設定プログラム105は、利用者が指定した位置を上述した極座標変換後の画像上での位置に変換し、各目盛り候補との距離がより小さい候補を順位が上位の候補とすれば良い。 In step 710, the instrument setting program 105 ranks the already detected circle candidates and scale position candidates based on the information specified by the user. Both rankings can be performed based on the distance between the position specified by the user and the circle candidate or the scale position candidate. For example, regarding the ranking of circle candidates, the instrument setting program 105 finds the difference between the distance from the center position of the circle candidate to the position specified by the user and the radius of the circle candidate for each circle candidate, and the difference is larger. The smaller candidate may be the higher-ranked candidate. Regarding the ranking of the scale position candidates, the instrument setting program 105 converts the position specified by the user into the position on the image after the polar coordinate conversion described above, and selects a candidate having a smaller distance from each scale candidate. The candidate with the highest ranking may be selected.
円候補や目盛り位置候補に順位付けを行う方法としては、これら以外にも順位がつけられる方法であればどのような方法でも用いることができる。さらに、円候補や目盛り位置候補の順位付けにおいて、利用者が指定した位置以外を制約に加えるようにしても良い。例えば、対象の計器が画像の中央付近に撮影されると想定できる場合、中心位置が画像の中心により近い円候補を順位が上位の候補とするようにしても良い。またさらに、複数の条件を組み合わせて順位付けを行うようにすることもできる。 As a method for ranking the circle candidates and the scale position candidates, any method other than these can be used as long as the ranking can be performed. Further, in the ranking of the circle candidate and the scale position candidate, a position other than the position specified by the user may be added to the constraint. For example, when it can be assumed that the target instrument is photographed near the center of the image, a circle candidate whose center position is closer to the center of the image may be selected as a candidate with a higher rank. Furthermore, it is possible to combine a plurality of conditions for ranking.
このように、上記設定手段(例えば、計器設定プログラム105)は、上記入力手段(例えば、図7のS709を実行する計器読み取りプログラム106)から、目盛り位置の概略の位置を取得し、上記順位付け手段(例えば、図7のS710を実行する計器読み取りプログラム106)は、検出された目盛りを含む領域の候補と、目盛り位置の候補の位置と取得した概略の位置との距離とに基づいて、検出された目盛りを含む領域の候補と目盛り位置の候補とに順位付けを行う。
As described above, the setting means (for example, the instrument setting program 105) acquires the approximate position of the scale position from the input means (for example, the
ステップ711では、計器設定プログラム105は、ステップ710で行った順位付けの結果に基づいて、円候補および目盛り位置候補を端末202の画面上に表示する。図16に順位付けされた円候補および目盛り位置候補の表示例を示す。図16において、画面の上部1601には、ステップ702で取得された計器の画像上に、順位付けされた円候補および目盛り位置候補を重ね合わせた結果が表示されている。特に図16では、円候補、目盛り位置候補ともに、上位3つの候補のみが表示されており、さらに第一候補はそれぞれ太い線で表示されているとともに、円候補の第一候補については中心位置も合わせて表示されている。図16において、円候補は破線、最小値の目盛り位置候補は四角、最大値の目盛り位置候補は三角、円候補の中心位置は計器中央の小さい破線の円1602として表示されている。また図16では、目盛り位置候補は第一の円候補に対する候補のみとしている。さらに、計器設定プログラム105は、図16における「円1」、「円2」、「円3」、「最小1」、「最小2」等のように、各候補には順位に応じた名称を自動的に付与し、各候補に紐づけて表示する。図16に示す表示は一例であり、表示する候補数や線の太さ、記号の形状、表示色等を必要に応じて変更することができる。あるいは、利用者が使い勝手や嗜好に合わせて個別に調整できるようにしても良い。
In step 711, the instrument setting program 105 displays the circle candidate and the scale position candidate on the screen of the terminal 202 based on the result of the ranking performed in step 710. FIG. 16 shows a display example of the ranked circle candidates and scale position candidates. In FIG. 16, in the
また、図16の画面の下部1603には、検出された円候補および目盛り位置候補に付与された名称が上位の候補から順に一覧表示されている。候補の左側に表示されている丸は、黒丸が選択されている候補、白丸は選択されていない候補を示している。画面の下部1603では、いずれも第一位の候補が選択された状態であることを示している。画面の下部1603においても上位3つの候補のみが表示されているが、表示する候補の個数は任意に変更しても良い。例えば、計器設定プログラム105は、画面の上部1601に表示されている候補より多く候補を表示するようにしても良い。
Further, in the
ステップ712では、計器設定プログラム105は、ステップ711で表示された内容に対して利用者が行った操作の結果を取得し、ステップ713において図16の決定ボタン1604が選択されたと判定した場合(ステップ713;Yes)、ステップ715に進む。ステップ713において、計器設定プログラム105は、利用者の操作が決定ボタン1604の選択ではないと判定した場合(ステップ713;No)、別候補選択または微調整であると判断し、ステップ714で必要な画面表示の変更を行い、再度ステップ712に戻り、利用者の操作を取得する。利用者の操作としては、例えば、円候補や目盛り候補の選択変更、円候補の位置や目盛り候補の位置の微調整等を想定することができる。他に必要な操作があれば、適宜追加することが可能である。
In
このように、上記設定手段(例えば、計器設定プログラム105)は、目盛りを含む領域の候補のうち、順位が上位の候補からあらかじめ定められた個数の候補を、計器の画像に重ねて表示するとともに、目盛りを含む領域の各候補に対応する目盛り位置の候補のうち、順位が上位の候補からあらかじめ定められた個数の候補を計器の画像に重ね合わせて表示する。 As described above, the setting means (for example, the instrument setting program 105) displays a predetermined number of candidates from the candidates having a higher rank among the candidates of the area including the scale on the image of the instrument. Among the candidates for the scale position corresponding to each candidate in the area including the scale, a predetermined number of candidates from the candidates having the highest rank are superimposed and displayed on the image of the instrument.
また、上記設定手段(例えば、計器設定プログラム105)は、画像上に表示されている目盛りを含む領域の候補あるいは目盛り位置の候補を選択する選択手段(例えば、図16の画面下部1603に表示された円候補、最大値候補、最小値候補の選択を受け付ける計器設定プログラム105)を有し、選択された目盛りを含む領域の候補および目盛り位置の候補を、他の目盛りを含む領域の候補および目盛り位置の候補とは異なる形態で表示する処理、選択された目盛りを含む領域の候補に対する目盛り位置の候補のみを計器の画像上に表示する処理、のいずれか1つ以上の処理を行い、目盛りを含む領域の候補および目盛り位置の候補を計器の画面上に表示し、視認性を向上させることができる。 Further, the setting means (for example, the instrument setting program 105) is displayed at a selection means (for example, 1603 at the bottom of the screen of FIG. 16) for selecting a candidate for a region including a scale displayed on an image or a candidate for a scale position. It has an instrument setting program 105) that accepts selection of circle candidates, maximum value candidates, and minimum value candidates, and can select area candidates and scale position candidates that include the selected scale, and region candidates and scales that include other scales. One or more of the processing of displaying in a form different from the position candidate and the processing of displaying only the scale position candidate for the candidate of the area including the selected scale on the image of the instrument is performed to display the scale. Candidates for the included area and candidates for the scale position can be displayed on the screen of the instrument to improve visibility.
図16において円候補の選択を変更した場合の画面の一例を図17に示す。円候補の選択は、図16における画面の下部1603に表示されている候補の一覧において、該当する候補の名称やその横に表示されている丸印をマウスや画面タッチ等により選択することで行うことができる。あるいは、図16における画面の上部1601で計器の画像上に表示されている候補を直接選択するようにしても良い。図17は、円候補を「円1」から「円3」に変更した場合の表示例であり、「円3」を太い破線で表示することにより「円3」が選択されていることを示しており、さらに、「円3」に対する目盛り位置候補が表示されている。計器設定プログラム105は、目盛り位置候補の選択の変更を、選択されている円候補に関連する目盛り位置候補のみに対して行うことができる。図17の場合、「円3」に対する目盛り位置候補、「最小1」から「最小3」および「最大1」から「最大3」のいずれかを選択することができる。
FIG. 17 shows an example of a screen when the selection of the circle candidate is changed in FIG. The circle candidate is selected by selecting the name of the corresponding candidate and the circle mark displayed next to it in the list of candidates displayed at the
このように、上記設定手段(例えば、計器設定プログラム105)は、目盛りを含む領域の候補と目盛り位置の候補の一覧を表示し、一覧の中で選択された目盛りを含む領域の候補あるいは目盛り位置の候補に対応する候補を、他の目盛りを含む領域の候補あるいは目盛り位置の候補とは異なる形態で計器の画像上で表示し、画面下部1603で選択された内容を画面上部1601に反映させることができる。
As described above, the setting means (for example, the instrument setting program 105) displays a list of candidates for the area including the scale and candidates for the scale position, and the candidate or the scale position of the area including the scale selected in the list. The candidates corresponding to the candidates of are displayed on the image of the instrument in a form different from the candidates of the area including other scales or the candidates of the scale position, and the contents selected in the
また、図18は、円候補の位置を微調整する場合の画面の一例である。図18の画面は、図17の画面の下部1702に配置されている「微調整」と記述されたボタンをマウスや画面タッチ等で選択することで表示される画面であり、図16で選択されている円候補のみの位置を修正することができる。図18の画面上において、指のスライド方向1801に示すように画面上で指をスライドさせることにより、計器設定プログラム105がこれを検知し、円候補のスライド方向1802のように指の動きに合わせて対象の円候補の位置を修正することができる。マウスを使用して同様の操作を行うようにすることもできる。また図18において、調整ラジオボタン1803をマウスあるいは画面タッチ等により選択することで、計器設定プログラム105がこれを検知し、円候補の大きさの微調整を行うことができる。円候補の大きさの変更方法としては、円候補の位置の場合と同様に、指のスライドやマウスの移動に合わせて変更する方法を用いることができる。目盛り位置候補についても同様に位置の微調整を行うようにすることができる。なお、目盛り位置候補の場合、微調整が可能な範囲を円候補によって決定される円周上に制限するようにしても良い。
Further, FIG. 18 is an example of a screen when finely adjusting the position of the circle candidate. The screen of FIG. 18 is a screen displayed by selecting a button described as “fine adjustment” arranged at the lower part 1702 of the screen of FIG. 17 with a mouse, touching the screen, or the like, and is selected in FIG. It is possible to correct the position of only the circle candidate. By sliding the finger on the screen as shown in the
このように、上記設定手段(例えば、計器設定プログラム105)は、目盛りを含む領域の候補および目盛り位置の候補のうち、選択されている候補の計器の画像上における位置を調整することができる。 As described above, the setting means (for example, the instrument setting program 105) can adjust the position of the selected candidate instrument among the candidate of the region including the scale and the candidate of the scale position on the image.
ステップ715では、計器設定プログラム105は、選択されている円候補および目盛り位置候補から計器の読み取りに必要な情報を取得し、計器設定データ108に保存する。これにより、利用者が指定した位置が正確でない場合でも、より正確な情報を設定することができる。さらに、計器設定プログラム105は、選択された目盛り位置候補に対する計器の指示値を取得し、計器設定データ108に保存し、処理を終了する。目盛り位置候補に対する計器の指示値は利用者が入力することを想定しており、計器設定プログラム105は、端末202の画面上に、それぞれの目盛り位置候補に対する指示値を入力するよう指示を表示し、利用者が入力した結果を計器設定データ108に保存する。
In step 715, the instrument setting program 105 acquires information necessary for reading the instrument from the selected circle candidate and scale position candidate, and stores the information in the
計器の指示値の読み取りに必要な情報を設定するための上述した方法では、ステップ709で利用者が指定する情報を全て取得した後、ステップ710で円候補および目盛り位置候補に順位付けを行い、ステップ711でその結果を表示していた。このステップ709からステップ711までの処理フローについては、上述した方法の他、利用者が情報を一つ設定するたびに、計器設定プログラム105は、設定された情報に基づいて円候補および目盛り候補の順位付けを行い、その結果が表示されるようにしても良い。 In the above-mentioned method for setting the information necessary for reading the indicated value of the instrument, after acquiring all the information specified by the user in step 709, the circle candidate and the scale position candidate are ranked in step 710. The result was displayed in step 711. Regarding the processing flow from step 709 to step 711, in addition to the method described above, each time the user sets one piece of information, the instrument setting program 105 sets the circle candidate and the scale candidate based on the set information. Ranking may be performed and the result may be displayed.
さらに、利用者が設定する情報として最小値位置506あるいは最大値位置507のいずれか一方のみが設定されている場合は、計器設定プログラム105は、これらの位置に加えて、円候補の中心位置から真下に引いた直線に対して線対称にある位置あるいは、円候補の中心位置から水平方向に引いた直線に対して線対称にある位置も円候補や目盛り位置候補の順位付けの基準に追加し、円候補や目盛り位置候補の順位付けを行うようにしても良い。これは、目盛り線が円形状に配置されている計器において、多くの場合、最小値位置と最大値位置が計器の中心線に対して線対称の位置にあるためである。設定された位置に対して、円候補の中心位置から垂直あるいは水平に引いた直線に線対称な位置を自動的に円候補や目盛り位置候補の順位付けに使用するようにするとともに、利用者が情報を一つ設定するたびに、設定された情報に基づいて円候補および目盛り候補の順位付けを行い、その結果が表示されるようにする。すなわち、上記設定手段(例えば、計器設定プログラム105)は、上記入力手段(例えば、図7のS709を実行する計器読み取りプログラム106)から、制約条件となる情報を一つ取得するごとに、目盛りを含む領域の候補および目盛り位置の候補の順位付けを更新し、計器の画像上における目盛りを含む領域の候補および目盛り位置の候補の表示を変更する。これにより、最短、一つの情報を設定するだけで、計器の読み取りに必要な情報を全て設定することが可能となる。
Further, when only one of the
このように、上記設定手段(例えば、計器設定プログラム105)は、目盛りを含む領域の形状が円形の場合、上記入力手段(例えば、図7のS709を実行する計器読み取りプログラム106)から、(1)最小値および最大値を示す目盛り位置の概略の位置、(2)円形の中心位置の概略の位置と最小値を示す目盛り位置の概略の位置、(3)円形の中心位置の概略の位置と最大値を示す目盛り位置の概略の位置、(4)最小値を示す目盛り位置の概略の位置と計器の画像の中心位置、(5)最大値を示す目盛り位置の概略の位置と計器の画像の中心位置、のいずれかを条件を取得し、上記順位付け手段(例えば、図7のS710を実行する計器読み取りプログラム106)は、検出された目盛りを含む領域の候補と、上記(1)~(5)のいずれかの条件とに基づいて、目盛りを含む領域の候補、および目盛り位置の候補に順位付けを行ってもよい。
As described above, when the shape of the region including the scale is circular, the setting means (for example, the instrument setting program 105) has (1) from the input means (for example, the
また、上記設定手段(例えば、計器設定プログラム105)は、目盛り位置が特定の線に対して線対称である計器である場合、上記入力手段(例えば、図7のS709を実行する計器読み取りプログラム106)から取得する情報として、最小値を示す目盛り位置の概略の位置、あるいは、最大値を示す目盛り位置の概略の位置、のいずれか一方を取得し、上記順位付け手段(例えば、図7のS710を実行する計器読み取りプログラム106)は、検出された目盛りを含む領域の候補と、目盛り位置の候補の位置と取得したいずれかの概略の位置との距離とに基づいて、検出された目盛りを含む領域の候補と目盛り位置の候補とに順位付けを行ってもよい。
Further, when the setting means (for example, the instrument setting program 105) is an instrument whose scale position is axisymmetric with respect to a specific line, the input means (for example, the
図1における計器読み取りプログラム106は、計器設定プログラム105により保存された計器設定データ108に基づいて、計器を撮影した画像から計器の指示値の読み取りを行い、読み取った指示値を計器読み取り結果データ109に格納するためのプログラムである。図19に、計器読み取りプログラム106により実行される処理のフローチャートの一例を示す。
The
図19におけるステップ1901では、計器読み取りプログラム106は、計器設定データ108から読み取り対象となる計器に関する設定情報を取得する。具体的には、計器読み取りプログラム106は、計器設定データ108から計器名称501の一覧を取得し、端末202の画面上に一覧表示するとともに、利用者に対象となる計器に対応する計器名称を選択するよう指示を行う。計器読み取りプログラム106は、利用者が一覧から選択した計器名称に対応する設定情報を計器設定データ108から読み込む。
In
ステップ1902では、計器読み取りプログラム106は、端末202に設置されているカメラを用いて、読み取り対象となる計器の画像を撮影する。上述したステップ1901およびステップ1902では、読み取り対象となる計器名称を利用者が指定した後、対象となる計器の画像を撮影する流れとなっているが、その他、計器の名称を登録した画像パターンや記号、文字列を対象となる計器の周辺に設置し、計器を撮影する際、その画像パターンや記号、文字列を対象の計器とともに撮影し、画像パターンや記号、文字列を認識させることにより、計器の名称を取得する方法を用いることができる。例えば、計器の名称を登録した画像パターンとしては、よく知られたQRコード(登録商標)やARマーカーと呼ばれる画像パターンを用いることができる。また、計器の名称を表す記号や文字列を使用する場合は、よく知られた文字認識技術を用いることにより、撮影した画像から計器の名称を取得することが可能となる。
In
計器設定データ108のテンプレート画像503およびステップ1902で撮影した計器の画像は、ともに読み取り対象となる計器を撮影した画像であるが、撮影時のカメラの位置や向きが同一となることは無いため、画像上における計器の位置、向き、大きさが異なっている画像となる。この状態では、計器設定データ108に保存されている情報を使用して計器の指示値の読み取りを行うことが困難である。そのため、計器読み取りプログラム106は、ステップ1903において、ステップ1902で撮影した画像上での計器とテンプレート画像上での計器の位置、向き、大きさを一致させる処理を行う。この方法としては、計器読み取りプログラム106は、例えば、よく知られた画像の局所特徴点および局所特徴点に付随する局所特徴量と呼ばれる情報をテンプレート画像503およびステップ1902で撮影した計器の画像から抽出する。
The
次に、計器読み取りプログラム106は、局所特徴量の類似度に基づいてテンプレート画像503から抽出した局所特徴点と、ステップ1902で撮影した計器の画像から抽出した局所特徴点との対応関係を求める。対応関係を求める方法としては、よく知られた総当たり法等を用いることができる。計器読み取りプログラム106は、局所特徴点の対応関係を求めた後、求めた対応関係を用いてステップ1902で撮影した計器の画像をテンプレート画像503上に投影するための変換行列を求める。この変換行列は、よく知られたホモグラフィー行列と呼ばれる行列である。
Next, the
最後に、計器読み取りプログラム106は、求めた変換行列を用いて、ステップ1902で撮影した計器の画像をテンプレート画像503上に投影する処理を行う。これにより、ステップ1902で撮影した画像中の計器の部分をテンプレート画像503上の計器の部分に合わせ込んだ画像、すなわち計器の位置、向き、大きさを一致させた画像を取得することができる。テンプレート画像503上の計器とステップ1902で撮影した画像上の計器を一致させる方法としては、同様の結果が得られる手法であればどのような手法を用いても良い。
Finally, the
ステップ1904では、計器読み取りプログラム106は、ステップ1903により得られた計器の画像、および計器設定データ108の情報を用いて、計器の指示値の読み取りを行う。ステップ1903により得られた画像上における計器の位置、向き、大きさは、テンプレート画像上における計器の位置、向き、大きさに一致しているため、計器読み取りプログラム106は、例えば、以下のような方法により、指示値の読み取りを行う。計器読み取りプログラム106は、まず、指針の色と同じ領域をステップ1903により得られた計器の画像中から抽出することにより、指針を画像中から抽出する。
In step 1904, the
さらに、計器読み取りプログラム106は、抽出した指針の輪郭線(エッジ)を求め、求めた輪郭線から直線の抽出を行う。輪郭線を求める方法としては、例えば上述したCanny法を用いることができる。直線を抽出する方法としては、例えば上述したHough変換を用いることができる。その他、同様の結果を得られる方法であれば、どのような方法を用いても良い。計器読み取りプログラム106は、抽出した直線のうち、最も長い二本の直線が交わる位置を求めることにより、指針の先端位置を取得することができる。あるいは、ステップ1903により得られた計器の画像中から直接、輪郭線を求め、輪郭線から抽出した直線のうち、最も長い二本の直線が交わる位置を求めることにより、指針の先端位置を取得するようにしても良い。なお、指針の抽出や輪郭線の抽出等において、計器設定データ108における円の中心位置504および円の半径505によって決定される円の範囲に処理の範囲を限定することにより、不要な領域や輪郭線の抽出を抑制することができる。
Further, the
計器読み取りプログラム106は、画像中における指針の先端位置を求めた後、最小値位置506および最大値位置507の値と同じ計算方法による値に指針の先端位置を変換する。用いる計算方法としては、例えば、円の中心位置504から真下に下した直線と、円の中心位置504から対象位置に伸ばした直線がなす角度を求める、というような方法を用いることができる。この計算方法により求めた指針の先端位置と、計器設定データ108における最小値位置506、最大値位置507、最小値508、最大値509を用いて、(式1)により計器の指示値を算出することができる。
The
M=(Vmax-Vmin)/(θmax-θmin)×P (式1)
(式1)において、Mは求められた計器の指示値、Pは指針の先端位置、θminは最小値位置506、θmaxは最大値位置507、Vminは最小値508、Vmaxは最大値509である。(式1)は、最小値508から最大値509までの間の目盛りが全て等間隔である場合に計器の指示値を算出するために使用することができる計算式であり、よく知られた線形補間による計算式である。目盛りの間隔が不均等である場合は、最小値508と最大値509の間の中間的な目盛り位置および目盛り値に関する情報を計器設定データ108に追加し、指針の先端位置を挟む中間的な目盛り位置および目盛り値を用いて線形補間を行うことにより、計器の指示値を算出するようにしても良い。指針の先端位置を検出する方法や計器の指示値を算出する方法としては、上述した方法に限定されるものではなく、同様の結果が得られる方法であれば、どのような方法でも用いることができる。
M = (Vmax-Vmin) / (θmax-θmin) × P (Equation 1)
In (Equation 1), M is the indicated value of the obtained instrument, P is the tip position of the pointer, θmin is the
最後に、計器読み取りプログラム106は、ステップ1905で、ステップ1904で読み取った計器の指示値を端末202の画面上に表示するとともに、計器読み取り結果データ109に格納し、処理を終了する。
Finally, in
以上のように第一の実施例によれば、目盛りが円状に配置されており、指針がその円の中心を支点として回転する種類の計器の指示値を画像から読み取る計器読み取りシステムにおいて、計器の読み取りに必要となる情報の設定にスマートフォンやタブレット端末等のモバイル機器を用いる場合でも、正確に且つ短時間で、計器の読み取りに必要となる情報を設定することが可能となる。 As described above, according to the first embodiment, in an instrument reading system in which the scale is arranged in a circle and the pointer reads the indicated value of the type of instrument that rotates around the center of the circle from the image. Even when a mobile device such as a smartphone or a tablet terminal is used to set the information required for reading the instrument, it is possible to set the information required for reading the instrument accurately and in a short time.
第二の実施例を図20から図21を用いて説明する。第一の実施例では図3に示すように、目盛りが円状に配置されており、指針がその円の中心を支点として回転する種類(例えば、円形形状)の計器を読み取り対象の計器として想定していた。一方、第二の実施例では図20の計器2001に示すように、目盛りが直線状に配置されており、指針がその直線に平行に直線状に移動する種類(例えば、矩形形状)の計器を読み取り対象の計器として想定する。
The second embodiment will be described with reference to FIGS. 20 to 21. In the first embodiment, as shown in FIG. 3, an instrument of a type (for example, a circular shape) in which the scale is arranged in a circle and the pointer rotates around the center of the circle as a fulcrum is assumed as the instrument to be read. Was. On the other hand, in the second embodiment, as shown in the
図20に示す種類の計器の指示値を読み取るために必要となる基本的な情報は、図20の指針の支点(が稼働する範囲の)位置2002、目盛りが構成する直線の位置2003、目盛りの最小値位置2004および目盛りの最大値位置2005に描かれた破線で囲まれた領域を特定する情報であり、指針の支点(が稼働する範囲の)位置2002、目盛りが構成する直線の位置2003、目盛りの最小値位置2004および目盛りの最大値位置2005がそれらの情報となる。これらの情報はすべて、例えば、画像の左下を原点とした位置座標により表すことができる。原点位置は、任意に設定することもできる。これらの情報を利用者が効率的に指定するためには、例えば、支点位置2002、目盛りの最小値位置2004および目盛りの最大値位置2005のみを指定すれば良い。
The basic information required to read the readings of the types of instruments shown in FIG. 20 is the
図20では、目盛りの最小値位置2004および最大値位置2005は縦方向の位置座標のみで表している。しかし、画像上での位置を指定する際は点で指定される、すなわちX座標とY座標の両方が取得できるため、目盛りの最小値位置2004および最大値位置2005がX-Y形式で保存されていると想定すれば、上述の3種類の情報が計器の読み取りに必要な基本的な情報となる。さらに計器の画像を撮影する際に、計器の中心が画像の中心と一致するように撮影する、というような制約を用いることにより、計器設定プログラム105は、目盛りの最小値位置2004および最大値位置2005のうちのいずれか一方と、支点位置2002のみで、図20における計器の読み取りに必要な領域、すなわち、指針の支点位置2002、目盛りが構成する直線の位置2003、目盛りの最小値位置2004および目盛りの最大値位置2005の箇所に引かれている破線で囲まれた領域を特定することが可能となる。この場合、計器設定プログラム105は、例えば目盛りの最小値位置2004のみを使用する場合、図20における画像の中心を通る水平線に対して線対称にある位置を目盛りの最大値位置2005とみなせば良い。上述した情報は、図20に示す種類の計器の読み取りに必要となる基本的な情報であるが、それ以外の情報を追加することもできる。例えば、目盛りの間隔が不均等であるような場合等は、目盛りの最小値位置2004と目盛りの最大値位置2005の間に中間的な目盛り位置を追加しても良い。さらに、図20に示す計器は、傾きが無い状態で撮影された状態となっているが、実際に計器を撮影する場合、計器が傾いて撮影される場合が一般的である。このため、上記に示した情報に加えて、傾きに関する情報を追加するようにしても良い。
In FIG. 20, the
計器情報データ107には、計器設定プログラム105は、設定情報リスト402および入力情報リスト403の内容を上述した情報に合わせて変更したデータを登録する。例えば、設定情報リスト402は「支点位置、直線位置、最小値位置、最大値位置」、入力情報リスト403は「支点位置、最小値位置、最大値位置」のように記述することができる。「支点位置」は指針の支点位置2002、「直線位置」は目盛りが構成する直線の位置2003、「最小値位置」は目盛りの最小値位置2004、「最大値位置」は目盛りの最大値位置2005にそれぞれ対応することを想定している。第一の実施例では、指針の支点位置である円の中心位置は検出された円候補によって決定されるため利用者による入力は不要であるが、図4に示す種類の計器では支点が稼働する範囲を目盛りが構成する直線の位置2003などから一意に決定することが困難であるため、第二の実施例においては、「支点位置」も利用者が入力することを想定する。
In the
図21に、第二の実施例で使用する計器設定データ108のフォーマットの一例を示す。図5との違いは、円の中心位置504が支点位置2101に、円の半径505が直線の位置2102に変更されている点である。支点位置2101および直線の位置2012は、それぞれ、図20における指針の支点位置2002および目盛りが構成する直線の位置2003に対応している。
FIG. 21 shows an example of the format of the
第二の実施例における計器設定プログラム105では、ステップ704、ステップ707で行われる処理を円候補の検出から直線候補の検出に変更する。また、計器設定プログラム105は、ステップ708以降の処理では、検出された直線候補に対して目盛り候補の検出(ステップ708)、直線候補への順位付け(ステップ710)、順位付けの結果に基づく直線候補の表示(ステップ711)等を行うようにすれば良い。また、目盛り候補の検出(ステップ708)では、目盛りが直線状であるため、第一の実施例で使用した極座標変換を行う必要は無い。計器設定プログラム105は、計器の画像から図12あるいは図13に示すような画像を直接、取得し、目盛り位置の候補を検出することが可能となる。直線候補の順位付け(ステップ710)については、計器設定プログラム105は、第一の実施例において利用者が指定した位置と円候補との距離に基づいて行っていた処理を、利用者が指定した位置と直線候補との距離に基づいて行う処理に変更するのみで良い。候補の表示および候補に対する利用者の操作については、円と直線という形状的な差異はあるが、基本的に同様の方法を用いることができる。
In the instrument setting program 105 in the second embodiment, the processing performed in
第二の実施例における計器読み取りプログラム106では、図19に示すフローチャートで示される処理と同様の処理を行うことで、計器の指示値の読み取りを行うことができる。ただし第二の実施例では、ステップ1904で実施される処理において、以下の二点が第一の実施例とは異なる。まず、第一の実施例では円の中心位置504および円の半径505によって決定される円の範囲に処理の範囲を限定していたが、第二の実施例では指針の支点位置2002および目盛りが構成する直線の位置2003によって決定される矩形領域(図20において、2002と2003で挟まれた領域)に処理の範囲を限定する。また、第一の実施例では指針の先端位置を円の中心位置504からの相対的な値に変換した後、指示値の計算をしていたが、第二の実施例では検出した指針の先端位置をそのまま使用することができる。例えば、計器読み取りプログラム106は、図20に示すように指針が縦方向に移動する場合は指針位置のY座標の値をそのまま用いることができる。この場合、目盛りの最小値位置2004、目盛りの最大値位置2005についても同様の値を用いれば良い。また、指針が横方向に移動する場合はX座標の値を用いれば良い。
In the
以上のように第二の実施例によれば、目盛りが直線状に配置されており、指針がその直線に沿って直線状に移動する種類の計器の指示値を画像から読み取る計器読み取りシステムにおいて、計器の読み取りに必要となる情報の設定にスマートフォンやタブレット端末等のモバイル機器を用いる場合でも、正確に且つ短時間で、計器の読み取りに必要となる情報を設定することが可能となる。 As described above, according to the second embodiment, in the instrument reading system in which the scale is arranged linearly and the reading of the instrument of the type in which the pointer moves linearly along the straight line is read from the image. Even when a mobile device such as a smartphone or tablet terminal is used to set the information required for reading the instrument, it is possible to set the information required for reading the instrument accurately and in a short time.
また、実施例1で示した円形形状の計器、実施例2で示した矩形形状の計器、あるいは円形形状や矩形形状に含まれる様々な種類の計器について、少なくとも、計器の種類ごとに、目盛りを含む領域の形状、制約条件に関する情報の種類、制約条件を入力する順序に関する情報を格納する計器情報格納手段(例えば、計器情報データ107、計器設定データ108、計器読み取り結果データ109を記憶するストレージ)と、設定を行う計器の種類を取得する種類取得手段(例えば、計器設定プログラム105)と、画像上に表示されている目盛りを含む領域の候補あるいは目盛り位置の候補を選択する選択手段(例えば、図16の画面下部1603に表示された円候補、最大値候補、最小値候補の選択を受け付ける計器設定プログラム105)と、を有し、上記設定手段は、取得された計器の種類に対応する情報を計器情報格納手段から取得し、取得した情報に基づいて、目盛りを含む領域の候補または目盛り位置の候補の順位付けに必要な制約条件に関する情報を取得し、上記順位付け手段は、取得された情報に基づいて、目盛りを含む領域の候補または目盛り位置の候補の順位付けを行い、上記選択手段は、順位付けの結果に基づいて、目盛りを含む領域の候補または目盛り位置の候補の選択を行うことも可能である。これにより、計器読み取りシステムを様々な種類の計器に適用することができる。
Further, for the circular instrument shown in Example 1, the rectangular instrument shown in Example 2, and various types of instruments included in the circular shape and the rectangular shape, at least each type of instrument has a scale. Instrument information storage means for storing information on the shape of the area to be included, the type of information on the constraint condition, and the order in which the constraint condition is input (for example, storage for storing the
1000 計器読み取りシステム
101 CPU
102 入力I/F
103 出力I/F
104 メモリ
105 計器設定プログラム
106 計器読み取りプログラム
107 計器情報データ
108 計器設定データ
109 計器読み取り結果データ
201 利用者
202 モバイル端末
203 対象計器
1000
102 Input I / F
103 Output I / F
104 Memory 105
Claims (12)
計器が示す数値を読み取るために必要な計器の情報を設定するための設定手段と、
設定された前記計器の情報に基づいて前記計器の画像から計器が示す数値を読み取る読み取り手段と、
前記計器が示す数値を読み取った結果を表示する表示手段と、を有する計器読み取りシステムであって、
前記設定手段は、
前記計器の画像における目盛りを含む領域の候補を検出する領域候補検出手段と、
検出された目盛りを含む領域の各候補に対して、目盛り位置の候補を検出する位置候補検出手段と、
前記目盛りを含む領域の候補および前記目盛り位置の候補から、最適な候補を選択するための制約条件に関する情報を入力する入力手段と、
前記目盛りを含む領域の候補および前記目盛り位置の候補と、入力された前記制約条件とに基づいて、前記目盛りを含む領域の候補と前記目盛り位置の候補とに順位付けを行う順位付け手段と、
前記順位付けの結果に基づいて最適な目盛りを含む領域の候補と目盛り位置の候補を表示する表示手段と、
を有することを特徴とする計器読み取りシステム。 The acquisition method to acquire the image of the instrument and
Setting means for setting the instrument information required to read the numerical value indicated by the instrument, and
A reading means for reading the numerical value indicated by the instrument from the image of the instrument based on the set information of the instrument.
An instrument reading system comprising a display means for displaying the result of reading the numerical value indicated by the instrument.
The setting means is
A region candidate detecting means for detecting a region candidate including a scale in the image of the instrument, and a region candidate detecting means.
For each candidate in the area including the detected scale, a position candidate detecting means for detecting a candidate for the scale position and a position candidate detecting means.
An input means for inputting information regarding a constraint condition for selecting an optimum candidate from the candidate of the area including the scale and the candidate of the scale position.
A ranking means for ranking the candidate of the region including the scale and the candidate of the scale position based on the candidate of the region including the scale, the candidate of the scale position, and the input constraint condition.
A display means for displaying a candidate for an area including an optimum scale and a candidate for a scale position based on the result of the ranking, and a display means.
An instrument reading system characterized by having.
前記領域候補検出手段は、
前記計器の画像中から抽出した輪郭情報から目盛りを含む領域を表す形状を特定することにより、前記計器の画像中から前記目盛りを含む領域の候補を検出する処理と、前記計器の画像中から各々の目盛りに対応する小領域を抽出し、抽出した複数の小領域が構成する形状が目盛りを含む領域を表す形状であるかどうかを判定することにより、前記計器の画像中から前記目盛りを含む領域の候補を検出する処理と、
の少なくともいずれかの処理を行うこと、
を特徴とする計器読み取りシステム。 The instrument reading system according to claim 1.
The region candidate detecting means is
A process of detecting a candidate for a region including the scale from the image of the instrument by specifying a shape representing the region including the scale from the contour information extracted from the image of the instrument, and a process of detecting the candidate of the region including the scale from the image of the instrument, respectively. By extracting a small area corresponding to the scale of the instrument and determining whether or not the shape composed of the extracted plurality of small areas represents the area including the scale, the area including the scale is included in the image of the instrument. Processing to detect candidates and
Doing at least one of the processes,
An instrument reading system featuring.
前記設定手段は、
前記入力手段から、前記目盛り位置の概略の位置を取得し、
前記順位付け手段は、
検出された前記目盛りを含む領域の候補と、前記目盛り位置の候補の位置と取得した前記概略の位置との距離とに基づいて、検出された前記目盛りを含む領域の候補と前記目盛り位置の候補とに順位付けを行うこと、
を特徴とする計器読み取りシステム。 The instrument reading system according to claim 1.
The setting means is
The approximate position of the scale position is acquired from the input means, and the position is obtained.
The ranking means is
Candidates for the detected region including the scale and candidates for the scale position based on the distance between the detected region candidate including the scale and the acquired position of the scale position candidate and the acquired approximate position. To rank with,
An instrument reading system featuring.
前記設定手段は、
前記目盛りを含む領域の形状が円形の場合、前記入力手段から、(1)最小値および最大値を示す前記目盛り位置の概略の位置、(2)円形の中心位置の概略の位置と最小値を示す前記目盛り位置の概略の位置、(3)円形の中心位置の概略の位置と最大値を示す前記目盛り位置の概略の位置、(4)最小値を示す前記目盛り位置の概略の位置と前記計器の画像の中心位置、(5)最大値を示す前記目盛り位置の概略の位置と前記計器の画像の中心位置、のいずれかを条件を取得し、
前記順位付け手段は、
検出された前記目盛りを含む領域の候補と、前記(1)~(5)のいずれかの条件とに基づいて、前記目盛りを含む領域の候補、および前記目盛り位置の候補に順位付けを行うこと、
を特徴とする計器読み取りシステム。 The instrument reading system according to claim 3.
The setting means is
When the shape of the region including the scale is circular, (1) the approximate position of the scale position indicating the minimum value and the maximum value, and (2) the approximate position and the minimum value of the center position of the circle are obtained from the input means. The approximate position of the scale position shown, (3) the approximate position of the circular center position and the approximate position of the scale position indicating the maximum value, (4) the approximate position of the scale position indicating the minimum value and the instrument. Obtain the condition of either the center position of the image of (5) the approximate position of the scale position indicating the maximum value or the center position of the image of the instrument.
The ranking means is
Based on the detected candidate for the region including the scale and the condition of any one of (1) to (5), the candidate for the region including the scale and the candidate for the scale position are ranked. ,
An instrument reading system featuring.
前記設定手段は、
前記目盛り位置が特定の線に対して線対称である計器である場合、前記入力手段から取得する情報として、最小値を示す前記目盛り位置の概略の位置、あるいは、最大値を示す前記目盛り位置の概略の位置、のいずれか一方を取得し、
前記順位付け手段は、
検出された前記目盛りを含む領域の候補と、前記目盛り位置の候補の位置と取得したいずれかの前記概略の位置との距離とに基づいて、検出された前記目盛りを含む領域の候補と前記目盛り位置の候補とに順位付けを行うこと、
を特徴とする計器読み取りシステム。 The instrument reading system according to claim 3.
The setting means is
When the scale position is an instrument that is axisymmetric with respect to a specific line, the information acquired from the input means is the approximate position of the scale position indicating the minimum value or the scale position indicating the maximum value. Get one of the approximate positions,
The ranking means is
Based on the distance between the detected region candidate including the scale and the position of the candidate position of the scale position and any of the acquired approximate positions, the candidate region including the detected scale and the scale are used. Ranking with candidate positions,
An instrument reading system featuring.
前記設定手段は、前記目盛りを含む領域の候補のうち、順位が上位の候補からあらかじめ定められた個数の候補を、前記計器の画像に重ねて表示するとともに、前記目盛りを含む領域の各候補に対応する目盛り位置の候補のうち、順位が上位の候補からあらかじめ定められた個数の候補を前記計器の画像に重ね合わせて表示すること、
を特徴とする計器読み取りシステム。 The instrument reading system according to claim 3.
The setting means displays a predetermined number of candidates from the candidates having a higher rank among the candidates of the area including the scale on the image of the instrument, and displays the candidates in the area including the scale on each candidate. Among the candidates for the corresponding scale positions, a predetermined number of candidates from the candidates with the highest rank are superimposed and displayed on the image of the instrument.
An instrument reading system featuring.
前記設定手段は、
画像上に表示されている前記目盛りを含む領域の候補あるいは前記目盛り位置の候補を選択する選択手段を有し、
選択された前記目盛りを含む領域の候補および前記目盛り位置の候補を、他の前記目盛りを含む領域の候補および前記目盛り位置の候補とは異なる形態で表示する処理、選択された前記目盛りを含む領域の候補に対する前記目盛り位置の候補のみを計器の画像上に表示する処理、
のいずれか1つ以上の処理を行い、前記目盛りを含む領域の候補および前記目盛り位置の候補を計器の画面上に表示すること、
を特徴とする計器読み取りシステム。 The instrument reading system according to claim 6.
The setting means is
It has a selection means for selecting a candidate for an area including the scale displayed on an image or a candidate for the scale position.
A process of displaying the selected region candidate including the scale and the candidate of the scale position in a form different from the other candidates of the region including the scale and the candidate of the scale position, the region including the selected scale. Processing to display only the candidate of the scale position for the candidate of the instrument on the image of the instrument,
Performing any one or more of the above processes and displaying the candidate of the area including the scale and the candidate of the scale position on the screen of the instrument.
An instrument reading system featuring.
前記設定手段は、
前記目盛りを含む領域の候補と前記目盛り位置の候補の一覧を表示し、前記一覧の中で選択された前記目盛りを含む領域の候補あるいは前記目盛り位置の候補に対応する候補を、他の前記目盛りを含む領域の候補あるいは前記目盛り位置の候補とは異なる形態で計器の画像上で表示すること、
を特徴とする計器読み取りシステム。 The instrument reading system according to claim 7.
The setting means is
A list of candidates for the area including the scale and the candidate for the scale position is displayed, and a candidate for the region including the scale or a candidate corresponding to the candidate for the scale position selected in the list is selected as another candidate for the scale. Display on the image of the instrument in a form different from the candidate of the area including the above or the candidate of the scale position.
An instrument reading system featuring.
前記設定手段は、
前記目盛りを含む領域の候補および前記目盛り位置の候補のうち、選択されている候補の前記計器の画像上における位置を調整することができること、
を特徴とする計器読み取りシステム。 The instrument reading system according to claim 7.
The setting means is
The position of the selected candidate among the candidate of the region including the scale and the candidate of the scale position on the image of the instrument can be adjusted.
An instrument reading system featuring.
前記設定手段は、
前記入力手段から、制約条件となる情報を一つ取得するごとに、前記目盛りを含む領域の候補および前記目盛り位置の候補の順位付けを更新し、前記計器の画像上における前記目盛りを含む領域の候補および前記目盛り位置の候補の表示を変更すること、
を特徴とする計器読み取りシステム。 The instrument reading system according to claim 6.
The setting means is
Every time one piece of information that becomes a constraint condition is acquired from the input means, the ranking of the candidate of the area including the scale and the candidate of the scale position is updated, and the area including the scale on the image of the instrument is updated. Changing the display of candidates and candidates for the scale position,
An instrument reading system featuring.
少なくとも、計器の種類ごとに、前記目盛りを含む領域の形状、制約条件に関する情報の種類、制約条件を入力する順序に関する情報を格納する計器情報格納手段と、設定を行う前記計器の種類を取得する種類取得手段と、画像上に表示されている前記目盛りを含む領域の候補あるいは前記目盛り位置の候補を選択する選択手段と、を有し、
前記設定手段は、
取得された前記計器の種類に対応する前記情報を前記計器情報格納手段から取得し、取得した前記情報に基づいて、前記目盛りを含む領域の候補または前記目盛り位置の候補の順位付けに必要な制約条件に関する情報を取得し、
前記順位付け手段は、
取得された前記情報に基づいて、前記目盛りを含む領域の候補または前記目盛り位置の候補の順位付けを行い、
前記選択手段は、
前記順位付けの結果に基づいて、前記目盛りを含む領域の候補または前記目盛り位置の候補の選択を行うこと、
を特徴とする計器読み取りシステム。 The instrument reading system according to claim 1.
At least, for each type of instrument, the shape of the area including the scale, the type of information regarding the constraint condition, the instrument information storage means for storing the information regarding the order in which the constraint condition is input, and the type of the instrument to be set are acquired. It has a type acquisition means and a selection means for selecting a candidate for a region including the scale or a candidate for the scale position displayed on the image.
The setting means is
The constraint necessary for ranking the candidate of the area including the scale or the candidate of the scale position based on the acquired information obtained by acquiring the information corresponding to the acquired type of the instrument from the instrument information storage means. Get information about the condition,
The ranking means is
Based on the acquired information, the candidate of the area including the scale or the candidate of the scale position is ranked.
The selection means is
To select a candidate for a region including the scale or a candidate for the scale position based on the result of the ranking.
An instrument reading system featuring.
計器の画像を取得する取得手段、
計器が示す数値を読み取るために必要な計器の情報を設定するための設定手段、
設定された前記計器の情報に基づいて前記計器の画像から計器が示す数値を読み取る読み取り手段、
前記計器が示す数値を読み取った結果を表示する表示手段、として機能させる計器読み取りプログラムであって、
前記設定手段を、
前記計器の画像における目盛りを含む領域の候補を検出する領域候補検出手段、
検出された目盛りを含む領域の各候補に対して、目盛り位置の候補を検出する位置候補検出手段、
前記目盛りを含む領域の候補および前記目盛り位置の候補から、最適な候補を選択するための制約条件に関する情報を入力する入力手段、
前記目盛りを含む領域の候補および前記目盛り位置の候補と、入力された前記制約条件とに基づいて、前記目盛りを含む領域の候補と前記目盛り位置の候補とに順位付けを行う順位付け手段、
前記順位付けの結果に基づいて最適な目盛りを含む領域の候補と目盛り位置の候補を表示する表示手段、
として機能させることを特徴とする計器読み取りプログラム。 Computer,
Acquisition method to acquire the image of the instrument,
Setting means for setting the instrument information required to read the numerical value indicated by the instrument,
A reading means that reads the numerical value indicated by the instrument from the image of the instrument based on the set information of the instrument.
An instrument reading program that functions as a display means for displaying the result of reading the numerical value indicated by the instrument.
The setting means
A region candidate detecting means for detecting a region candidate including a scale in the image of the instrument,
A position candidate detecting means for detecting a candidate for a scale position for each candidate in the area including the detected scale.
An input means for inputting information regarding a constraint condition for selecting an optimum candidate from the candidate of the area including the scale and the candidate of the scale position.
A ranking means for ranking a candidate for a region including the scale and a candidate for the scale position based on the candidate for the region including the scale, the candidate for the scale position, and the input constraint condition.
A display means for displaying a candidate for an area including an optimum scale and a candidate for a scale position based on the result of the ranking.
An instrument reading program characterized by functioning as.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020193527A JP7411534B2 (en) | 2020-11-20 | 2020-11-20 | Instrument reading system, instrument reading program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020193527A JP7411534B2 (en) | 2020-11-20 | 2020-11-20 | Instrument reading system, instrument reading program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2022082140A true JP2022082140A (en) | 2022-06-01 |
JP7411534B2 JP7411534B2 (en) | 2024-01-11 |
Family
ID=81801370
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020193527A Active JP7411534B2 (en) | 2020-11-20 | 2020-11-20 | Instrument reading system, instrument reading program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7411534B2 (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4020377B2 (en) | 2002-10-08 | 2007-12-12 | 財団法人電力中央研究所 | Analog meter automatic reading method and automatic reading device |
JP2020181467A (en) | 2019-04-26 | 2020-11-05 | Gmoクラウド株式会社 | Meter reading system, meter reading method, and program |
JP6763060B1 (en) | 2019-05-27 | 2020-09-30 | 株式会社東芝 | Reading system, moving body, reading method, program, and storage medium |
-
2020
- 2020-11-20 JP JP2020193527A patent/JP7411534B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP7411534B2 (en) | 2024-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106558026B (en) | Deviating user interface | |
US9864969B2 (en) | Image processing apparatus for generating map of differences between an image and a layout plan | |
US10964057B2 (en) | Information processing apparatus, method for controlling information processing apparatus, and storage medium | |
CN106558027B (en) | Method for estimating deviation error in camera pose | |
US9734591B2 (en) | Image data processing method and electronic device supporting the same | |
US11323577B2 (en) | Image processing device for creating an album | |
US10713488B2 (en) | Inspection spot output apparatus, control method, and storage medium | |
CN110096929A (en) | Target detection neural network based | |
CN111353458B (en) | Text box labeling method, device and storage medium | |
JP4950716B2 (en) | Image processing system and scanning electron microscope apparatus | |
US9672589B2 (en) | Terminal device and drawing display program for terminal device | |
JP2018124918A (en) | Image processor, image processing method, and program | |
JP2022082140A (en) | Instrument reading system and instrument reading program | |
KR101909485B1 (en) | Program, information storage medium and recognition device | |
JP6156740B2 (en) | Information display device, input information correction program, and input information correction method | |
KR20200142096A (en) | Display control device, display control method, and display control program stored in a recording medium | |
CN104869268B (en) | Display control unit, image forming apparatus and display control method | |
JP5683764B1 (en) | Data input system, data input method, data input program, and data input device | |
WO2012053626A1 (en) | Image comparison device, image comparison method, image comparison system, server, terminal, terminal control method, and terminal control program | |
US20230367473A1 (en) | Ink data generation apparatus, method, and program | |
JP2019128899A (en) | Display control program, display control device, and display control method | |
JP2014109876A (en) | Information processor, information processing method and program | |
JP5666011B1 (en) | Method and electronic equipment | |
JP2013168081A (en) | Edge detection device and edge detection method | |
US11347352B2 (en) | Virtual keyboard error correction based on a dynamic spatial model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20230512 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20231124 |
|
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: 20231205 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20231225 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7411534 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |