JP7411534B2 - Instrument reading system, instrument reading program - Google Patents

Instrument reading system, instrument reading program Download PDF

Info

Publication number
JP7411534B2
JP7411534B2 JP2020193527A JP2020193527A JP7411534B2 JP 7411534 B2 JP7411534 B2 JP 7411534B2 JP 2020193527 A JP2020193527 A JP 2020193527A JP 2020193527 A JP2020193527 A JP 2020193527A JP 7411534 B2 JP7411534 B2 JP 7411534B2
Authority
JP
Japan
Prior art keywords
scale
candidates
instrument
candidate
meter
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.)
Active
Application number
JP2020193527A
Other languages
Japanese (ja)
Other versions
JP2022082140A (en
Inventor
浩彦 佐川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Systems Ltd
Original Assignee
Hitachi Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Systems Ltd filed Critical Hitachi Systems Ltd
Priority to JP2020193527A priority Critical patent/JP7411534B2/en
Publication of JP2022082140A publication Critical patent/JP2022082140A/en
Application granted granted Critical
Publication of JP7411534B2 publication Critical patent/JP7411534B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Description

本発明は、プラントや工場等の施設内に設置されている指針により指示値を表す種類の計器を対象として、点検や保守等において計器の指示値を取得および記録する作業を支援する計器読み取りシステム、計器読み取りプログラムに関するものである。 The present invention is an instrument reading system that supports the work of acquiring and recording the indicated values of meters during inspections, maintenance, etc., for the types of instruments that indicate indicated values by guidelines installed in facilities such as plants and factories. , relating to instrument reading programs.

プラントや工場等における点検作業や保守作業の一つとして、施設内に設置されている計器の指示値を取得し記録する作業がある。また、施設内に設置されている計器の中でも、指針によって指示値を表す種類の計器(指針型計器)がある。指針型計器の読み取り作業を支援する技術としては、スマートフォンやタブレット端末に搭載されているカメラやパソコンに接続されたカメラ等で計器の画像を撮影し、撮影した画像から計器の指示値を自動的に読み取る技術がある(例えば、特許文献1)。 BACKGROUND ART One of the inspection and maintenance tasks in plants, factories, etc. is to obtain and record readings from meters installed in the facility. Furthermore, among the meters installed in facilities, there is a type of meter (pointer-type meter) that indicates an indicated value using a pointer. A technology that supports the reading of pointer-type meters is to take an image of the meter using a camera installed in a smartphone or tablet device or a camera connected to a computer, and automatically calculate the indicated value of the meter from the photographed image. There is a technology for reading the information (for example, Patent Document 1).

特許文献1では、指示値の読み取りに必要な情報を利用者があらかじめ設定し、設定した情報を用いて指示値の読み取りを行う技術が提示されている。カメラで撮影した計器の画像を画面上に表示し、計器の画像上で読み取りに必要な情報の設定を利用者が行うことができる。設定する情報としては、指針の支点位置、針の可動領域、目盛りを含む領域であり、これらの設定を支援する図形を計器の画像上に重ね合わせて表示し、利用者がその図形を移動・変形することにより設定を行えるようにして、設定作業の効率化を図っている。 Patent Document 1 presents a technique in which a user sets information necessary for reading an instruction value in advance, and reads the instruction value using the set information. An image of the instrument taken with a 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 includes the fulcrum position of the pointer, the movable area of the needle, and the area including the scale.A figure that supports these settings is displayed superimposed on the instrument image, and the user can move and move the figure. Settings can be made by changing the shape, making the setting work more efficient.

特開2006-120133号公報Japanese Patent Application Publication No. 2006-120133

計器読み取りシステムを導入する場合、読み取りが可能であるかどうかを点検作業や保守作業を行う実際の現場において、事前に確認することが通常と考えられる。このため、特許文献1のような、各計器に対して、事前に読み取りに必要となる情報を設定することにより読み取りを行う技術を用いることが現実的である。 When introducing a meter reading system, it is considered normal to check in advance whether reading is possible at the actual site where inspection or maintenance work is being performed. For this reason, it is practical to use a technique such as that disclosed in Patent Document 1, in which information required for reading is set in advance for each meter to perform reading.

しかしながら、点検作業や保守作業を実施する現場では、設備の配置や安全面から、使用できる機材や行動範囲が制限されるため、例えば、スマートフォンやタブレット端末のみで効率的に設定作業を行えることが望ましい。 However, at the site where inspection and maintenance work is carried out, the equipment that can be used and the range of movement are limited due to equipment layout and safety aspects, so for example, it is not possible to efficiently perform setting work using only a smartphone or tablet terminal. desirable.

特許文献1では、指針が回転する中心位置や目盛り位置を、計器を撮影した画面上で利用者が指定することにより設定を行う方法が提示されている。しかし、読み取りの精度を上げるためには、中心位置や目盛り位置として、より正確な位置を指定する必要がある。一般的に使用されるパソコンおよびマウスが使える環境であれば、画像上で正確な位置を指定することは容易である。しかし、使用できる手段がスマートフォンやタブレット端末である場合、画面が小さい上に、指によるタッチ操作となるため、画像上で正確な位置を指定することが困難となり、設定に要する時間も増大する。このため、スマートフォンやタブレット端末の画面上においても、計器の読み取りに必要となる情報をより正確に設定するための手段が必要であると考えられる。 Patent Document 1 proposes a method in which the user specifies the center position around which the pointer rotates and the position of the scale on a screen that captures an image of the meter. However, in order to improve reading accuracy, it is necessary to specify more accurate positions as the center position and scale position. In an environment where a commonly used personal computer and mouse can be used, it is easy to specify an accurate position on an image. However, when the available means is a smartphone or tablet terminal, the screen is small and touch operations are required with a finger, making it difficult to specify an accurate position on the image and increasing the time required for setting. For this reason, it is thought that there is a need for a means to more accurately set the information necessary for meter reading on the screen of a smartphone or tablet terminal.

以上のことから、本発明の目的は、計器の読み取りに必要となる情報の設定にスマートフォンやタブレット端末等のモバイル機器を用いる場合でも、正確に且つ短時間で、計器の読み取りに必要となる情報を設定することを可能とする技術を提供することにある。 Based on the above, an object of the present invention is to provide information necessary for meter reading accurately and in a short time even when a mobile device such as a smartphone or tablet terminal is used to set the information necessary for meter reading. The goal is to provide technology that makes it possible to set up

本発明の一態様にかかる計器読み取りシステムは、計器の画像を取得する取得手段と、計器が示す数値を読み取るために必要な計器の情報を設定するための設定手段と、設定された前記計器の情報に基づいて前記計器の画像から計器が示す数値を読み取る読み取り手段と、前記計器が示す数値を読み取った結果を表示する表示手段と、を有する計器読み取りシステムであって、前記設定手段は、前記計器の画像における目盛りを含む領域の候補を検出する領域候補検出手段と、検出された目盛りを含む領域の各候補に対して、目盛り位置の候補を検出する位置候補検出手段と、前記目盛りを含む領域の候補および前記目盛り位置の候補から、最適な候補を選択するための制約条件に関する情報を入力する入力手段と、前記目盛りを含む領域の候補および前記目盛り位置の候補と、入力された前記制約条件とに基づいて、前記目盛りを含む領域の候補と前記目盛り位置の候補とに順位付けを行う順位付け手段と、前記順位付けの結果に基づいて最適な目盛りを含む領域の候補と目盛り位置の候補を表示する表示手段と、を有することを特徴とする計器読み取りシステムとして構成される。 An instrument reading system according to one aspect of the present invention includes: an acquisition means for acquiring an image of an instrument; a setting means for setting instrument information necessary for reading a numerical value indicated by the instrument; An instrument reading system comprising: a reading means for reading a numeric 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 numeric value indicated by the instrument, the setting means comprising: an area candidate detection means for detecting a candidate for a region including a scale in an image of an instrument; a position candidate detection means for detecting a candidate for a scale position for each candidate for a region including a detected scale; an input means for inputting information regarding constraint conditions for selecting an optimal candidate from the region candidates and the scale position candidates, the region candidates including the scale and the scale position candidates, and the input constraints; a ranking means for ranking candidates for a region including the scale and candidates for the scale position based on the conditions; and a ranking means for ranking candidates for the region including the scale and the candidate for the scale position based on the ranking results; and display means for displaying candidates.

本発明によれば、計器の読み取りに必要となる情報の設定にスマートフォンやタブレット端末等のモバイル機器を用いる場合でも、正確に且つ短時間で、計器の読み取りに必要となる情報を設定することが可能となる。 According to the present invention, even when using a mobile device such as a smartphone or a tablet terminal to set the information necessary for meter reading, the information necessary for meter reading can be set accurately and in a short time. It becomes possible.

第一の実施例を一般的なコンピュータによって実行させる場合のコンピュータの構成図。FIG. 2 is a configuration diagram of a computer when the first embodiment is executed by a general computer. 計器読み取りシステムで想定される利用状況の一例を表す図。FIG. 2 is a diagram illustrating an example of usage conditions assumed for the meter reading system. 目盛りが円状に配置されており、指針がその円の中心を支点として回転する種類の計器を示す図と指示値の読み取りに必要な情報の一例。A diagram showing a type of meter in which the scale is arranged in a circle and the pointer rotates around the center of the circle as a fulcrum, and an example of the information required to read the indicated value. 計器情報データのフォーマットの一例。An example of the format of instrument information data. 計器設定データのフォーマットの一例。An example of the format of instrument setting data. 計器読み取り結果データのフォーマットの一例。An example of the format of instrument reading result data. 計器設定プログラムで実行される処理のフローチャートの一例。An example of a flowchart of processing executed by the instrument setting program. 目盛り線のデザインの一例を示す図。The figure which shows an example of the design of a scale line. 目盛り線のデザインの別の例を示す図。The figure which shows another example of the design of a scale line. 図8の計器の画像に対して検出される円候補の一例。An example of a circle candidate detected for the image of the instrument in FIG. 8. 図9の計器の画像に対して検出される円候補の一例。An example of a circle candidate detected for the image of the meter in FIG. 9. 図8の計器の画像から抽出された目盛り領域の画像の一例。An example of an image of a scale area extracted from the image of the instrument in FIG. 8. 図9の計器の画像から抽出された目盛り領域の画像の一例。An example of an image of a scale area extracted from the image of the instrument in FIG. 9. 利用者が指定する情報を取得するための利用者への指示画面の一例。An example of an instruction screen for a user to obtain information specified by the user. 利用者が必要な情報を指定した状態の一例を示す図。FIG. 3 is a diagram illustrating an example of a state in which a user has specified necessary information. 順位付けされた円候補および目盛り位置候補を表示する画面の一例。An example of a screen displaying ranked circle candidates and scale position candidates. 図16において円候補の選択を変更した場合の画面の一例。An example of a screen when changing the selection of circle candidates in FIG. 16. 円候補の位置を微調整する場合の画面の一例。An example of a screen when fine-tuning the position of a circle candidate. 計器読み取りプログラムで実行される処理のフローチャートの一例。An example of a flowchart of processing executed by an instrument reading program. 目盛りが直線状に配置されており、指針がその直線に平行に直線状に移動する種類の計器を示す図と指示値の読み取りに必要な情報の一例。A diagram showing a type of meter in which the scale is arranged in a straight line and the pointer moves in a straight line parallel to the straight line, and an example of the information necessary to read the indicated value. 第二の実施例における計器設定データのフォーマットの一例。An example of the format of instrument setting data in the second embodiment.

以下、図面を参照して本発明の実施形態を説明する。以下の記載および図面は、本発明を説明するための例示であって、説明の明確化のため、適宜、省略および簡略化がなされている。本発明は、他の種々の形態でも実施する事が可能である。特に限定しない限り、各構成要素は単数でも複数でも構わない。 Embodiments of the present invention will be described below with reference to the drawings. The following description and drawings are examples for explaining the present invention, and are omitted and simplified as appropriate for clarity of explanation. The present invention can also be implemented in various other forms. Unless specifically limited, each component may be singular or plural.

図面において示す各構成要素の位置、大きさ、形状、範囲などは、発明の理解を容易にするため、実際の位置、大きさ、形状、範囲などを表していない場合がある。このため、本発明は、必ずしも、図面に開示された位置、大きさ、形状、範囲などに限定されない。 The position, size, shape, range, etc. of each component shown in the drawings may not represent the actual position, size, shape, range, etc. in order to facilitate understanding of the invention. Therefore, the present invention is not necessarily limited to the position, size, shape, range, etc. disclosed in the drawings.

以下の説明では、「テーブル」、「リスト」等の表現にて各種情報を説明することがあるが、各種情報は、これら以外のデータ構造で表現されていてもよい。データ構造に依存しないことを示すために「XXテーブル」、「XXリスト」等を「XX情報」と呼ぶことがある。識別情報について説明する際に、「識別情報」、「識別子」、「名」、「ID」、「番号」等の表現を用いた場合、これらについてはお互いに置換が可能である。 In the following description, various information may be described using expressions such as "table" and "list," but various information may be expressed using data structures other than these. "XX table", "XX list", etc. are sometimes referred to as "XX information" to indicate that they do not depend on the data structure. When describing identification information, when expressions such as "identification information", "identifier", "name", "ID", and "number" are used, these expressions can be replaced with each other.

同一あるいは同様な機能を有する構成要素が複数ある場合には、同一の符号に異なる添字を付して説明する場合がある。ただし、これらの複数の構成要素を区別する必要がない場合には、添字を省略して説明する場合がある。 When there are multiple components having the same or similar functions, the same reference numerals may be given different suffixes for explanation. However, if there is no need to distinguish between these multiple components, the subscripts may be omitted in the description.

また、以下の説明では、プログラムを実行して行う処理を説明する場合があるが、プログラムは、プロセッサ(例えばCPU(Central Processing Unit)、GPU(Graphics Processing Unit))によって実行されることで、定められた処理を、適宜に記憶資源(例えばメモリ)および/またはインターフェースデバイス(例えば通信ポート)等を用いながら行うため、処理の主体がプロセッサとされてもよい。同様に、プログラムを実行して行う処理の主体が、プロセッサを有するコントローラ、装置、システム、計算機、ノードであってもよい。プログラムを実行して行う処理の主体は、演算部であれば良く、特定の処理を行う専用回路(例えばFPGA(Field-Programmable Gate Array)やASIC(Application Specific Integrated Circuit))を含んでいてもよい。 In addition, in the following explanation, processing performed by executing a program may be explained, but the program is executed by a processor (for example, a CPU (Central Processing Unit) or a GPU (Graphics Processing Unit)). The processor may be the main body of the processing in order to perform the processing using appropriate storage resources (for example, memory) and/or interface devices (for example, communication ports). Similarly, the subject of processing performed by executing a program may be a controller, device, system, computer, or node having a processor. The main body of the processing performed by executing the program may be an arithmetic unit, and may include a dedicated circuit (for example, FPGA (Field-Programmable Gate Array) or ASIC (Application Specific Integrated Circuit)) that performs specific processing. .

プログラムは、プログラムソースから計算機のような装置にインストールされてもよい。プログラムソースは、例えば、プログラム配布サーバまたは計算機が読み取り可能な記憶メディアであってもよい。プログラムソースがプログラム配布サーバの場合、プログラム配布サーバはプロセッサと配布対象のプログラムを記憶する記憶資源を含み、プログラム配布サーバのプロセッサが配布対象のプログラムを他の計算機に配布してもよい。また、以下の説明において、2以上のプログラムが1つのプログラムとして実現されてもよいし、1つのプログラムが2以上のプログラムとして実現されてもよい。 A program may be installed on a device, such as a computer, from a program source. 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. Furthermore, 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, we will explain how to use a smartphone, tablet, etc. to set the information necessary for meter reading in meter reading technology, which sets the information necessary for meter reading in advance and reads the indicated value of the meter based on the set information. Even when using a mobile device, it is possible to set the information necessary for meter reading accurately and in a short time.

第一の実施例を図1から図19を用いて説明する。 A first embodiment will be described using 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 an instrument reading system 1000 according to the first embodiment is executed by a general computer. As shown in FIG. 2, the meter reading system 1000 in this embodiment assumes a case where a user 201 photographs a meter 203 using a terminal 202 held in his hand and causes the terminal 202 to read the indicated value of the meter 203. are doing. Various information necessary for reading the indicated value is also set by acquiring an image of the meter 203 on the terminal 202 and operating the image of the meter 203 on the screen of the terminal 202. The terminal 202 is a well-known mobile terminal such as a smartphone, a tablet terminal, or a notebook PC, and can have a configuration in which the components included in FIG. 1 are included in the terminal 202. Alternatively, it is also possible to configure a configuration in which part of the data and programs are stored in a server and the necessary processing is executed via a network. Further, this embodiment is also applicable to a system in which a camera for photographing the meter 203 is fixedly installed.

メモリ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), DVD (Digital Versatile Disk), or USB (Universal Serial Bus) memory, and is installed in the computer. Good too. The functions of the meter reading system 1000 are realized by executing a program stored in the memory 104 by the CPU 101, and thereby performing predetermined processing in cooperation with hardware. A program executed by the meter reading system 1000, its function, or means for realizing the function may be referred to as a "function," "means," "part," "unit," "module," or the like.

図1におけるCPU101は、計器読み取りシステム1000における各プログラムを実行するための情報処理装置である。入力I/F(インタフェース)102には、計器を撮影するためのカメラおよび、システムの開始や終了等を制御するためのキーボード、ボタン、マウスあるいはタッチパネル等の一般的なコンピュータにおける入力装置が含まれる。出力I/F(インタフェース)103は利用者にシステムの動作状況等を表示するための手段であり、スマートフォンやタブレット端末の画面、あるいは一般的なコンピュータ用の表示装置が含まれる。また、メモリ104は、計器読み取りシステム1000における各プログラムを格納するための記憶媒体である。メモリ104には、計器設定プログラム105および、計器読み取りプログラム106が含まれる。 CPU 101 in FIG. 1 is an information processing device for executing each program in meter reading system 1000. The input I/F (interface) 102 includes a camera for photographing instruments, and general computer input devices such as a keyboard, buttons, mouse, or touch panel for controlling the start and end of the system. . The output I/F (interface) 103 is a means for displaying the operating status of the system to the user, and includes the screen of a smartphone or tablet terminal, or a display device for a general computer. Furthermore, the memory 104 is a storage medium for storing each program in the meter reading system 1000. Memory 104 includes an instrument setting program 105 and an instrument reading program 106.

第一の実施例では、指針によって指示値を表す種類の計器のうち、図3の計器301に示すように、目盛りが円状に配置されており、指針がその円の中心を支点として回転する種類の計器を読み取りの対象と想定する。図3の計器301に示す種類の計器を読み取るために必要となる基本的な情報は、目盛りが構成する円と目盛りの最小値の位置および最大値の位置である。図3では、目盛りが構成する円の中心位置302、目盛りが構成する円の半径303、目盛りの最小値位置304および目盛りの最大値位置305が読み取りに必要な基本的な情報となる。以下では、一例として、目盛りの最小値の位置および最大値の位置が、読み取りに必要な基本的な情報であるとして説明している。しかし、目盛りの最小値の位置および最大値の位置に限らず、例えば、目盛りが通常指し示す値の範囲がわかる場合には、その範囲の下限値の位置および上限値の位置を、読み取りに必要な基本的な情報としてもよい。例えば、指針が指し示す指示値が、経験上あるいは制御等により、最小値および最大値の80%の範囲で推移することがわかっている場合には、当該範囲の下限値の位置および上限値の位置を、読み取りに必要な基本的な情報とすればよい。このように、本システムの利用者は、上記最小値の位置および最大値の位置にかえて、読み取り位置や範囲を任意に設定することができる。 In the first embodiment, as shown in the meter 301 in FIG. 3, among the types of meters that indicate indicated values by means of a pointer, the scale is arranged in a circle, and the pointer rotates about the center of the circle as a fulcrum. Assume that various types of instruments are to be read. The basic information needed to read a meter of the type shown in meter 301 in FIG. 3 is the circle that the scale makes up and the positions of the minimum and maximum values of the scale. In FIG. 3, the center position 302 of the circle formed by the scale, the radius 303 of the circle formed by the scale, the minimum value position 304 of the scale, and the maximum value position 305 of the scale are basic information necessary for reading. In the following, as an example, the position of the minimum value and the position of the maximum value on the scale will be explained as basic information necessary for reading. However, in addition to knowing the minimum and maximum value positions on the scale, for example, if you know the range of values that the scale normally indicates, you can also determine the lower and upper limit values of that range as necessary for reading. It may be used as basic information. For example, if it is known from experience or control that the indicated value indicated by the pointer changes within a range of 80% of the minimum value and maximum value, the position of the lower limit value and the upper limit value of the range may be used as the basic information necessary for reading. In this way, the user of this system can arbitrarily set the reading position and range instead of the minimum value position and maximum value position.

円の中心位置302は、例えば図3に示すように、画像の左下を原点とした位置座標により表すことができる。原点位置は、任意に設定することもできる。さらに、目盛りの最小値位置304および目盛りの最大値位置305は、例えば、図3に示すように、円の中心位置302から真下におろした線を基準とした相対的な角度で表すことができる。基準とする線も任意に設定することができる。これらの情報を利用者が効率的に指定するためには、例えば、目盛りの最小値位置304および目盛りの最大値位置305のみを指定すれば良い。2点のみの指定では通常、2種類の円が候補として求められることになるが、本実施例では、計器全体がなるべく大きく画像中に映るように撮影する、というような制約を用いることができる。この制約を用いることにより、目盛りの最小値位置304および目盛りの最大値位置305のみを用いて、目盛りが構成する円を一意に特定することが可能となる。また、目盛りの最小値位置304および目盛りの最大値位置305は指定された情報をそのまま使用すれば良い。 The center position 302 of the circle can be expressed by positional coordinates with the origin at the lower left of the image, as shown in FIG. 3, for example. The origin position can also be set arbitrarily. Furthermore, the minimum value position 304 of the scale and the maximum value position 305 of the scale can be expressed by relative angles with respect to a line drawn directly below from the center position 302 of the circle, for example, as shown in FIG. . The reference line can also be set arbitrarily. In order for the user to efficiently specify this information, for example, it is sufficient to specify only the minimum value position 304 and the maximum value position 305 of the scale. Normally, when only two points are specified, two types of circles are required as candidates, but in this example, a constraint can be used such that the image is photographed so that the entire instrument appears as large as possible in the image. . By using this constraint, it becomes possible to uniquely identify the circle that the scale forms using only the minimum value position 304 and the maximum value position 305 of the scale. Moreover, the specified information may be used as is for the minimum value position 304 of the scale and the maximum value position 305 of the scale.

さらに、図3の計器301に示す種類の計器において、最小値位置と最大値位置が計器の中心線(例えば、円の中心位置302を通る垂直な線や水平な線)に対して線対称の位置にある場合は、目盛りの最小値位置304および目盛りの最大値位置305のいずれか一方と、円の中心位置302を指定することでも、目盛りが構成する円を一意に特定することができる。上述した情報は、計器の読み取りに必要となる基本的な情報であるが、それ以外の情報を追加することもできる。例えば、最小値と最大値以外の目盛りの位置を追加するようにしても良い。また、図3に示す計器は傾きが無い状態で撮影された状態となっているが、実際に計器を撮影する場合、計器が傾いて撮影される場合が一般的である。このため、上記に示した情報に加えて、傾きに関する情報を追加するようにしても良い。 Furthermore, in the type of meter shown in meter 301 in FIG. If the scale is located at a certain position, the circle that the scale constitutes can be uniquely specified by specifying either one of the scale minimum value position 304 and the scale maximum value position 305 and the center position 302 of the circle. The information described above is the basic information needed to read the meter, but other information can also be added. For example, scale positions other than the minimum and maximum values may be added. Further, although the meter shown in FIG. 3 is photographed without tilting, when actually photographing the meter, the meter is generally photographed with the meter tilted. Therefore, in addition to the information shown above, information regarding the inclination may be added.

計器情報データ107には、計器の読み取りに必要な情報の種類および計器の設定時に利用者が指定する情報の種類を登録する。図4に、計器情報データ107のフォーマットの一例を示す。計器情報ID401は、計器情報の種類を表す識別子であり、計器情報データ107の中において唯一の識別子であれば、任意の数字列あるいは文字列を使用することができる。設定情報リスト402は、上述した計器の指示値の読み取りに必要な情報の種類を文字列等により列挙したものである。図3に示す種類の計器であれば、例えば「円の中心位置、円の半径、最小値位置、最大値位置」のような文字列を記述する。「円の中心位置」は図3に示した円の中心位置302、「円の半径」は図3に示した円の半径303、「最小値位置」は図3に示した目盛りの最小値位置304、「最大値位置」は図3に示した目盛りの最大値位置305にそれぞれ対応することを想定している。 In the meter information data 107, the type of information necessary for reading the meter and the type of information specified by the user when setting the meter are registered. FIG. 4 shows an example of the format of the meter information data 107. The meter information ID 401 is an identifier representing the type of meter information, and any number string or character string can be used as long as it is the only identifier in the meter information data 107. The setting information list 402 is a list of the types of information necessary for reading the indicated value of the above-mentioned meter using character strings or the like. For the type of instrument shown in FIG. 3, for example, a character string such as "circle center position, circle radius, minimum value position, maximum value position" is written. "Circle center position" is the center position 302 of the circle shown in Figure 3, "Circle radius" is the radius 303 of the circle shown in Figure 3, and "Minimum value position" is the minimum value position of the scale shown in Figure 3. 304 and "maximum value position" are assumed to correspond to the maximum value position 305 of the scale shown in FIG. 3, respectively.

入力情報リスト403は、設定情報リスト402に列挙されている情報のうち、計器の設定を行う際に利用者が手動で入力を行う情報の種類を列挙したものである。例えば、図3に示す計器に対して、目盛りの最小値位置304および最大値位置305を利用者が入力するという想定の場合、上述した設定情報リスト402の例に対する入力情報リスト403には「最小値位置、最大値位置」のような文字列を記述する。あるいは、目盛りが構成する円の中心位置302と目盛りの最小値位置304を利用者が入力する想定の場合は「中心位置、最小値位置」のような文字列を記述する。このように、利用者が入力すると想定する情報の種類および組み合わせは、設定情報リスト402に含まれる情報の種類の範囲内であれば、任意に設定することができる。 The input information list 403 lists the types of information that the user manually inputs when configuring the instrument, among the information listed in the setting information list 402. For example, if it is assumed that the user inputs the minimum value position 304 and maximum value position 305 of the scale for the instrument shown in FIG. Write a string such as "value position, maximum value position". Alternatively, if it is assumed that the user inputs the center position 302 of the circle that the scale forms and the minimum value position 304 of the scale, a character string such as "center position, minimum value position" is written. In this way, the types and combinations of information assumed to be input by the user can be set arbitrarily as long as they are within the range of the types of information included in the setting information list 402.

計器設定データ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 meter setting data 108 stores information necessary for reading the indicated values of each meter set by the meter setting program 105. FIG. 5 shows an example of a format for storing the setting information of the meter shown in FIG. 3. In FIG. 5, an instrument name 501 is a name given to each instrument to be read, and any character string can be used as long as it is the only character string in the instrument setting data 108. The meter information ID 502 is an identifier representing the type of meter information, and any of the meter information IDs 401 in the meter information data 107 is described. The template image 503 is an image taken of a meter when setting information necessary for reading the target meter. The center position 504 of the circle, the radius 505 of the circle, the minimum value position 506, and the maximum value position 507 are the center position 302 of the circle formed by the scale in FIG. 3, the radius 303 of the circle formed by the scale, and the minimum value position 304 of the scale. and data corresponding to the maximum value position 305 of the scale are written. Further, the minimum value 508 and maximum value 509 describe the indicated values of the meter when the pointer indicates the minimum value position 506 and the maximum value position 507.

計器設定プログラム105や計器読み取りプログラム106には、読み取りに必要な情報の種類を表す上述のような文字列が登録されており、読み取りに必要な情報の種類の組み合わせにより、設定方法や読み取り方法を選択し、実行するようにしておく。想定する以外の種類の計器を対象とする必要が生じた場合は、読み取りに必要な新たな情報の種類の定義、新たな情報の組み合わせの計器情報データ107への登録、および、計器設定プログラム105および計器読み取りプログラム106への必要な情報や設定方法、読み取り方法の追加、を必要に応じて行うことにより、新しい種類の計器の設定および読み取りを行うことができる。 In the instrument setting program 105 and the instrument reading program 106, character strings such as those described above representing the types of information necessary for reading are registered, and the setting method and reading method can be changed depending on the combination of the types of information necessary for reading. Select it and run it. If it becomes necessary to target a type of instrument other than the one expected, define the type of new information necessary for reading, register the new combination of information in the instrument information data 107, and set the instrument setting program 105. By adding necessary information, setting methods, and reading methods to the meter reading program 106 as necessary, it is possible to set and read new types of meters.

計器読み取り結果データ109には、計器読み取りプログラム106により読み取られた計器の指示値が格納される。図6に読み取られた計器の指示値を格納するフォーマットの一例を示す。図6において、計器名称601は読み取られた指示値に対応する計器の名称であり、図5における計器名称501と同様の名称が記述される。日時602には、指示値が読み取られた日付および時間を示す数値あるいは文字列が記述される。603は読み取られた指示値を表す数値あるいは文字列である。 The instrument reading result data 109 stores the indicated value of the instrument read by the instrument reading program 106. FIG. 6 shows an example of a format for storing read meter readings. In FIG. 6, instrument name 601 is the name of the instrument corresponding to the read indication value, and the same name as instrument name 501 in FIG. 5 is written. The date and time 602 describes a numerical value or a character string indicating the date and time when the indicated value was read. 603 is a numerical value or character string representing the read instruction value.

計器設定プログラム105は、計器の読み取りに必要な情報を設定し、設定した情報を計器設定データ108に格納するためのプログラムである。図7に、計器設定プログラム105により実行される処理のフローチャートの一例を示す。なお、図7に示すフローチャートは、図3に示す種類の計器を対象とした処理となっている。 The meter setting program 105 is a program for setting information necessary for meter reading and storing the set information in the meter setting data 108. FIG. 7 shows an example of a flowchart of processing executed by the meter setting program 105. Note that the flowchart shown in FIG. 7 is a process for the type of meter shown in FIG. 3.

以下に説明するように、実施例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 explained below, in Example 1 and Example 2 described later, the types of instruments shown in the instrument images (for example, the image of a circular instrument in FIG. 3 and the image of a rectangular instrument in FIG. 20) are used. An acquisition means (e.g., a camera that is the input device 102), a setting means (e.g., the instrument setting program 105) for setting instrument information necessary to read the numerical value indicated by the instrument, and a set instrument. reading means (for example, the meter reading program 106) that reads the numerical value indicated by the meter from the image of the meter based on the information of the meter, and display means (for example, the display device which is the output device 103) that displays the result of reading the numerical value indicated by the meter. ), the setting means includes an area candidate detection means (e.g., a circle candidate in FIG. 3 or a rectangular candidate in FIG. 20) that detects a region candidate including a scale in the image of the meter (e.g., a circle candidate in FIG. 3 or a rectangular candidate in FIG. 20). , the instrument reading program 106 that executes S704 to S707 in FIG. 7), and a position candidate detection means (for example, S708 in FIG. The instrument reading program 106) to be executed and information regarding constraint conditions for selecting an optimal candidate from candidates for a region including a scale and candidates for a scale position (for example, information specified in S709 in FIG. 7) are input. Based on the input means (for example, the instrument reading program 106 that executes S709 in FIG. 7), the candidate area including the scale, the candidate scale position, and the input constraints, the candidate area including the scale and the scale are generated. A ranking means (for example, the instrument reading program 106 that executes S710 in FIG. 7) that ranks candidate positions and a candidate for a region containing an optimal scale and a candidate for a scale position based on the ranking result. The meter reading system functions as a meter reading system characterized by having a display means for displaying (for example, the meter reading program 106 that executes S711 in FIG. 7).

図7におけるステップ701では、計器設定プログラム105は、計器情報データ107から読み取り対象となる計器に関する情報を取得する。具体的には、計器設定プログラム105は、計器情報データ107から計器情報ID401の一覧を取得し、端末202の画面上に一覧表示するとともに、利用者に対象となる計器に対応する計器情報IDを選択するよう指示を行う。計器設定プログラム105は、利用者が一覧から選択した計器情報IDに対応する計器情報を計器情報データ107から取得する。 In step 701 in FIG. 7, the meter setting program 105 acquires information regarding the meter to be read from the meter information data 107. Specifically, the meter setting program 105 acquires a list of meter information IDs 401 from the meter information data 107, displays the list on the screen of the terminal 202, and also prompts the user to input the meter information ID corresponding to the target meter. Instruct the user to make a selection. The meter setting program 105 acquires meter information corresponding to the meter information ID selected by the user from the list from the meter information data 107.

ステップ702では、計器設定プログラム105は、端末202に設置されているカメラを用いて、読み取り対象となる計器の画像を撮影する。この画像は、計器設定データ108のテンプレート画像503として格納される。 In step 702, the meter setting program 105 uses the camera installed in the terminal 202 to take an image of the meter to be read. This image is stored as the template image 503 of the instrument setting data 108.

ステップ703では、計器設定プログラム105は、撮影した計器の画像から輪郭線(エッジ)を抽出する。輪郭線は、一般によく知られた方法、例えば、Canny法等を用いることにより容易に抽出することができる。ステップ703で輪郭線を抽出した後、ステップ704への処理とステップ705への処理に分岐する。この分岐は、異なるデザインの目盛りに対応することが目的である。 In step 703, the instrument setting program 105 extracts contour lines (edges) from the photographed image of the instrument. The contour line can be easily extracted using a generally well-known method such as the Canny method. After extracting the contour line in step 703, the process branches to step 704 and step 705. This branching is intended to accommodate scales of different designs.

図3に示す種類の計器を目盛りのデザインで分類すると、図8に示す種類の計器と図9に示す種類の計器に大別される。図8に示す種類の計器は、目盛り線によって構成される円と同心円である円弧の線に各目盛り線が接触しているデザイン801である。円弧の線811は、目盛り線と同様に描かれた線である場合もあるが、計器の枠が同様の役割を果たしている場合もある。この種類の計器では、輪郭線の抽出結果においても円弧と各目盛り線が接続された状態となる。一方、図9に示す種類の計器は、各目盛り線が独立した短い線になっているデザイン901であり、輪郭線の抽出においても各目盛り線に対して独立した輪郭線が抽出される。これら二種類の目盛りのデザインに柔軟に対応するため、図7に示すフローチャートでは、計器設定プログラム105は、ステップ704において図8に示す種類の目盛り線に対応した処理を、ステップ705以降において図9に示す種類の目盛り線に対応した処理を行う。図7では、ステップ704の処理と、ステップ705以降の処理とを実行する場合を例示しているが、どちらかの処理を選択的に実行してもよい。 When the types of meters shown in FIG. 3 are classified based on the design of their scales, they are roughly divided into the types of meters shown in FIG. 8 and the types of meters shown in FIG. 9. The type of instrument shown in FIG. 8 has a design 801 in which each scale line touches a line of an arc that is concentric with the circle formed by the scale lines. The arc line 811 may be a line drawn similarly to a scale line, but the frame of the instrument may also play a similar role. In this type of instrument, the circular arc and each scale line are connected even in the contour extraction result. On the other hand, the type of meter shown in FIG. 9 has a design 901 in which each scale line is an independent short line, and when extracting the contour line, an independent contour line is extracted for each scale line. In order to flexibly accommodate these two types of scale designs, in the flowchart shown in FIG. 7, the instrument setting program 105 performs processing corresponding to the types of scale lines shown in FIG. Perform processing corresponding to the types of scale lines shown in . Although FIG. 7 shows an example in which the process in step 704 and the processes in and after step 705 are executed, either process may be selectively executed.

ステップ704では、計器設定プログラム105は、ステップ703で抽出した輪郭線すべてを用いて円候補の検出を行う。円候補の検出方法としては、一般によく知られた方法、例えば、Hough変換等を用いることにより、容易に検出することができる。計器設定プログラム105は、図8に示す計器の画像から抽出した輪郭線に対して円候補の検出を行うことにより、例えば図10における円候補1001、円候補1002および円候補1003に示すような円候補を抽出することできる。図10において、円候補1001は目盛り線が接する円弧の線に対して検出された候補、円候補1002および円候補1003は計器の枠によって表される線が円候補として検出されたものである。また、計器設定プログラム105は、抽出した輪郭線すべてを用いて円候補の検出を行う代わりに、抽出された輪郭線を連結された輪郭線のまとまり(例えば、図10で示す円を構成する1または複数の破線を含む小領域)に分割し、分割された輪郭線のまとまりがあらかじめ定められた長さより長い輪郭線のみに対して円候補の検出を行うようにしても良い。 In step 704, the instrument setting program 105 detects circle candidates using all the contour lines extracted in step 703. Circle candidates can be easily detected by using a generally well-known method such as Hough transformation. The instrument setting program 105 detects circle candidates from the contour line extracted from the image of the instrument shown in FIG. Candidates can be extracted. In FIG. 10, a circle candidate 1001 is a candidate detected for a line of a circular arc that is in contact with a scale line, and a circle candidate 1002 and a circle candidate 1003 are candidates detected for a line represented by a frame of an instrument. In addition, instead of detecting circle candidates using all the extracted contour lines, the instrument setting program 105 detects circle candidates by combining the extracted contour lines into a group of connected contour lines (for example, the circle forming the circle shown in FIG. 10). Alternatively, the circle candidates may be detected only for contour lines whose length is longer than a predetermined length.

一方、ステップ705では、計器設定プログラム105は、抽出された輪郭線を連結された輪郭線のまとまり(例えば、図11で示す円を構成する目盛り線に対応する小領域)に分割し、分割された輪郭線のまとまりの領域が占める面積(例えば、図11で示す目盛り線に対応する小領域の面積)を求める。計器設定プログラム105は、求めた面積があらかじめ目盛り線の面積を想定した閾値より小さい輪郭線のまとまりのみを残す。この処理により、計器設定プログラム105は、図9に示す種類の計器の画像から、目盛り線に関する輪郭線のみを抽出することが可能となる。 On the other hand, in step 705, the instrument setting program 105 divides the extracted contour into a group of connected contours (for example, a small area corresponding to the scale lines forming the circle shown in FIG. 11), and The area occupied by a region of a group of contour lines (for example, the area of a small region corresponding to the scale line shown in FIG. 11) is determined. The instrument setting program 105 leaves only a group of contour lines whose calculated area is smaller than a threshold value that is predetermined as the area of the scale line. Through this process, the instrument setting program 105 can extract only the contour line related to the scale line from the image of the instrument of the type shown in FIG.

次にステップ706において、計器設定プログラム105は、ステップ705により残された各輪郭線のまとまりについて、それぞれの輪郭線の重心位置を求める。さらにステップ707において、計器設定プログラム105は、求めた重心位置に対してステップ704で使用したのと同様の方法を用いて円候補の検出を行う。ステップ705から707の処理により、図11の円候補1101に示すように、独立した目盛り線により構成される円候補を検出することができる。 Next, in step 706, the instrument setting program 105 determines the position of the center of gravity of each contour line for each group of contour lines left in step 705. Furthermore, in step 707, the instrument setting program 105 detects a circle candidate using the same method as used in step 704 for the obtained center of gravity position. Through the processing from steps 705 to 707, it is possible to detect a circle candidate composed of independent scale lines, as shown in circle candidate 1101 in FIG. 11.

ステップ704および、ステップ705から707によって検出された各円候補のうち、目盛りによって構成される円に対して検出された候補は、円候補1001のように全ての目盛りに接触、あるいは、円候補1101のように全ての目盛りと交差する形になる。この場合、円候補の半径を基準として当該半径よりも一定程度大きくした円および当該半径よりも一定程度小さくした円によって挟まれるドーナツ状の領域は目盛りを含む領域となるため、各円候補は目盛り領域の候補となる。 Among the circle candidates detected in steps 704 and steps 705 to 707, the candidates detected for circles made up of scales touch all the scales like circle candidate 1001, or circle candidate 1101 It becomes a shape that intersects all the scales like this. In this case, the donut-shaped area sandwiched between a circle that is a certain amount larger than the radius and a circle that is a certain amount smaller than the radius based on the radius of the circle candidate is an area that includes a scale, so each circle candidate has a scale. Candidates for the area.

このように、上記領域候補検出手段(例えば、図7のS704~S707を実行する計器読み取りプログラム106)は、計器の画像中から抽出した輪郭情報から目盛りを含む領域を表す形状を特定することにより、計器の画像中から目盛りを含む領域の候補を検出する処理(例えば、図7のS704)と、計器の画像中から各々の目盛りに対応する小領域を抽出し、抽出した複数の小領域が構成する形状が目盛りを含む領域を表す形状であるかどうかを判定することにより、計器の画像中から目盛りを含む領域の候補を検出する処理(例えば、図7のS705~S707)と、の少なくともいずれかの処理を行う。 In this way, the area candidate detection means (for example, the instrument reading program 106 that executes S704 to S707 in FIG. 7) identifies the shape representing the area including the scale from the outline information extracted from the image of the instrument. , a process of detecting candidates for regions including scales from the instrument image (for example, S704 in FIG. 7), extracting small regions corresponding to each scale from the instrument image, and extracting a plurality of extracted small regions. A process of detecting a candidate for a region including a scale from an image of the instrument by determining whether the constituent shape is a shape representing a region including the scale (for example, S705 to S707 in FIG. 7); Perform either process.

ステップ708では、計器設定プログラム105は、ステップ704および、ステップ705から707によって検出された各円候補に対して、目盛り位置候補の検出を行う。目盛り位置候補の検出を行うためには、まず、円候補の中心位置に基づいて、図8や図9に示すような計器画像に対して極座標変換を行い、目盛り領域の画像を矩形状の画像に変換する。具体的には、計器設定プログラム105は、円候補の中心位置から円周方向に伸ばした直線を想定し、その直線上の画素値を取得する。計器設定プログラム105は、中心位置を軸に、直線の角度を少しずつ変えながら取得した画素を接続していくことにより、円形の画像を矩形状の画像に変換することができる。この際、計器設定プログラム105は、円候補の半径を中心として、あらかじめ設定された範囲の画素値のみを取得することにより、円候補が目盛りによって構成される円と一致している場合、図12および図13に示すように、目盛り領域のみを矩形状に変形した画像を取得することができる。図12は図8に示す画像から抽出された目盛り領域の画像、図13は図9に示す画像から抽出された目盛り領域の画像を想定している。また図12および図13では、目盛り線のみが抽出されている場合を想定した画像であるが、実際には、数字やその他模様の一部が含まれる場合もある。 In step 708, the instrument setting program 105 detects scale position candidates for each circle candidate detected in step 704 and steps 705 to 707. In order to detect scale position candidates, first, polar coordinate transformation is performed on the instrument image as shown in FIGS. 8 and 9 based on the center position of the circle candidate, and the image of the scale area is transformed into a rectangular image. Convert to Specifically, the instrument setting program 105 assumes a straight line extending in the circumferential direction from the center position of the circle candidate, and acquires pixel values on the straight line. The instrument setting program 105 can convert a circular image into a rectangular image by connecting the acquired pixels while gradually changing the angle of the straight line around the center position. At this time, the instrument setting program 105 acquires only pixel values in a preset range centered on the radius of the circle candidate, and if the circle candidate matches the circle formed by the scale, the instrument setting program 105 acquires only pixel values in a preset range centered on the radius of the circle candidate. As shown in FIG. 13, it is possible to obtain an image in which only the scale area is transformed into a rectangular shape. 12 is an image of the scale area extracted from the image shown in FIG. 8, and FIG. 13 is an image of the scale area extracted from the image shown in FIG. 9. Furthermore, although the images in FIGS. 12 and 13 are based on the assumption that only scale lines are extracted, in reality, numbers and other patterns may also be included.

さらにステップ708では、計器設定プログラム105は、目盛り領域の画像に対して、目盛り線のみを残すための処理を行う。具体的には、図12および図13のような画像の場合、計器設定プログラム105は、縦方向の線のみを残す処理を行う。この方法としては、一般によく知られたモルフォロジー変換等を用いることにより、容易に行うことができる。縦方向の線のみを残す処理を行うことにより、図12に示す画像も図13と同様の画像に変換される。計器設定プログラム105は、目盛り線のみとなった画像に対して、例えば図13に示すような画像の場合、各目盛り線の横方向の位置を目盛り位置候補として取得する。 Furthermore, in step 708, the instrument setting program 105 performs processing for leaving only the scale lines on the image of the scale area. Specifically, in the case of images such as those shown in FIGS. 12 and 13, the instrument setting program 105 performs processing to leave only vertical lines. This method can be easily carried out by using generally well-known morphological transformation or the like. By performing the process of leaving only the vertical lines, the image shown in FIG. 12 is also converted into an image similar to that shown in FIG. 13. For an image with only scale lines, for example, in the case of an image as shown in FIG. 13, the instrument setting program 105 acquires the horizontal position of each scale line as a scale position candidate.

ステップ709では、計器設定プログラム105は、計器の設定時に利用者が指定する情報を取得する。このため、計器設定プログラム105は、端末202の画面上に図14に示すような指示画面を表示する。この画面は、ステップ702で計器の撮影を行った後に表示される画面となる。端末202の画面がタッチパネルを有する場合、計器の画像1401上の該当位置を指でタッチすることにより、必要な情報を指定することができる。利用者が設定する必要がある情報の種類は、ステップ701で取得した計器情報データ107中における入力情報リスト403の内容によって決定される。計器設定プログラム105は、入力情報リスト403の内容に従って、利用者が指定した情報を順番に設定情報リスト中の情報に対応付ける。 In step 709, the meter setting program 105 obtains information specified by the user when configuring the meter. 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 displayed after the instrument is photographed in step 702. If the screen of the terminal 202 has a touch panel, necessary information can be specified by touching a corresponding position on the instrument image 1401 with a finger. The type of information that the user needs to set is determined by the contents of the input information list 403 in the instrument information data 107 acquired in step 701. The instrument setting program 105 sequentially associates the information specified by the user with the information in the setting information list according to the contents of the input information list 403.

図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 where the information specified by the user is the minimum value position 304 of the scale and the maximum value position 305 of the scale, where the minimum value position 1501 is set and the maximum value position 1502 is set. There is. Note that the location specified by the user at this time does not need to be an accurate location. In addition, in FIG. 14, a button 1402 is a button for returning to the previous screen, and when the instrument setting program 105 receives a selection from the user using the mouse, touching the screen, etc., the instrument setting program 105 can change the screen and return to the previous screen. can. Similarly, on subsequent screens, when this button is selected, the instrument setting program 105 causes the screen to transition to the previous screen.

ステップ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. Any ranking can be performed based on the distance between the position designated by the user and the circle candidate or scale position candidate. For example, regarding ranking of circle candidates, the instrument setting program 105 calculates 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 calculates the difference between the radius of the circle candidate and the radius of the circle candidate. The smaller candidate may be set as the higher ranked candidate. Furthermore, regarding the ranking of scale position candidates, the instrument setting program 105 converts the position specified by the user into the position on the image after the above-mentioned polar coordinate transformation, and selects candidates with smaller distances from each scale candidate. It is preferable to choose a candidate with a higher ranking.

円候補や目盛り位置候補に順位付けを行う方法としては、これら以外にも順位がつけられる方法であればどのような方法でも用いることができる。さらに、円候補や目盛り位置候補の順位付けにおいて、利用者が指定した位置以外を制約に加えるようにしても良い。例えば、対象の計器が画像の中央付近に撮影されると想定できる場合、中心位置が画像の中心により近い円候補を順位が上位の候補とするようにしても良い。またさらに、複数の条件を組み合わせて順位付けを行うようにすることもできる。 As a method for ranking circle candidates and scale position candidates, any method other than these that can be used to rank candidates can be used. Furthermore, in ranking circle candidates and scale position candidates, positions other than those designated by the user may be added to constraints. For example, if it is 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 set as a higher ranked candidate. Furthermore, it is also possible to perform ranking by combining a plurality of conditions.

このように、上記設定手段(例えば、計器設定プログラム105)は、上記入力手段(例えば、図7のS709を実行する計器読み取りプログラム106)から、目盛り位置の概略の位置を取得し、上記順位付け手段(例えば、図7のS710を実行する計器読み取りプログラム106)は、検出された目盛りを含む領域の候補と、目盛り位置の候補の位置と取得した概略の位置との距離とに基づいて、検出された目盛りを含む領域の候補と目盛り位置の候補とに順位付けを行う。 In this way, the setting means (for example, the instrument setting program 105) obtains the approximate positions of the scale positions from the input means (for example, the instrument reading program 106 that executes S709 in FIG. 7), and ranks the The means (for example, the instrument reading program 106 that executes S710 in FIG. 7) performs detection based on the candidate area including the detected scale and the distance between the position of the candidate scale position and the obtained approximate position. The area candidates including the scale marks and the scale position candidates are ranked.

ステップ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 circle candidates and scale position candidates on the screen of the terminal 202 based on the ranking results performed in step 710. FIG. 16 shows a display example of ranked circle candidates and scale position candidates. In FIG. 16, in the upper part 1601 of the screen, the result of superimposing the ranked circle candidates and scale position candidates on the image of the instrument acquired in step 702 is displayed. In particular, in FIG. 16, only the top three candidates are displayed for both circle candidates and scale position candidates, and the first candidates are each displayed with a thick line, and the center position of the first circle candidate is also displayed. are displayed together. In FIG. 16, the circle candidate is displayed as a broken line, the minimum value scale position candidate is a square, the maximum value scale position candidate is a triangle, and the center position of the circle candidate is displayed as a small broken line circle 1602 at the center of the meter. Further, in FIG. 16, the scale position candidates are only for the first circle candidate. Furthermore, the instrument setting program 105 assigns names to each candidate according to their ranking, such as "Yen 1", "Yen 2", "Yen 3", "Minimum 1", "Minimum 2", etc. in FIG. It is automatically assigned and displayed in association with each candidate. The display shown in FIG. 16 is an example, and the number of displayed candidates, line thickness, symbol shape, display color, etc. can be changed as necessary. Alternatively, users may be able to make individual adjustments according to their usability and preferences.

また、図16の画面の下部1603には、検出された円候補および目盛り位置候補に付与された名称が上位の候補から順に一覧表示されている。候補の左側に表示されている丸は、黒丸が選択されている候補、白丸は選択されていない候補を示している。画面の下部1603では、いずれも第一位の候補が選択された状態であることを示している。画面の下部1603においても上位3つの候補のみが表示されているが、表示する候補の個数は任意に変更しても良い。例えば、計器設定プログラム105は、画面の上部1601に表示されている候補より多く候補を表示するようにしても良い。 Further, in the lower part 1603 of the screen in FIG. 16, names given to detected circle candidates and scale position candidates are displayed in a list in order from the top candidates. Regarding the circles displayed to the left of the candidates, black circles indicate selected candidates, and white circles indicate unselected candidates. The lower part 1603 of the screen shows that the first candidate has been selected. Although only the top three candidates are displayed at the bottom 1603 of the screen, the number of displayed candidates may be changed arbitrarily. For example, the meter setting program 105 may display more candidates than those displayed at the top 1601 of the screen.

ステップ712では、計器設定プログラム105は、ステップ711で表示された内容に対して利用者が行った操作の結果を取得し、ステップ713において図16の決定ボタン1604が選択されたと判定した場合(ステップ713;Yes)、ステップ715に進む。ステップ713において、計器設定プログラム105は、利用者の操作が決定ボタン1604の選択ではないと判定した場合(ステップ713;No)、別候補選択または微調整であると判断し、ステップ714で必要な画面表示の変更を行い、再度ステップ712に戻り、利用者の操作を取得する。利用者の操作としては、例えば、円候補や目盛り候補の選択変更、円候補の位置や目盛り候補の位置の微調整等を想定することができる。他に必要な操作があれば、適宜追加することが可能である。 In step 712, the instrument setting program 105 obtains the result of the operation performed by the user on the content displayed in step 711, and if it is determined in step 713 that the OK button 1604 in FIG. 16 has been selected (step 713; Yes), proceed to step 715. In step 713, if the instrument setting program 105 determines that the user's operation is not a selection of the enter button 1604 (step 713; No), it determines that the user's operation is selection of another candidate or fine adjustment, and performs the necessary operations in step 714. The screen display is changed, and the process returns to step 712 to obtain the user's operation. As the user's operations, it is possible to assume, for example, changing the selection of circle candidates and scale candidates, fine-tuning the positions of circle candidates and scale candidates, and the like. If there are other necessary operations, they can be added as appropriate.

このように、上記設定手段(例えば、計器設定プログラム105)は、目盛りを含む領域の候補のうち、順位が上位の候補からあらかじめ定められた個数の候補を、計器の画像に重ねて表示するとともに、目盛りを含む領域の各候補に対応する目盛り位置の候補のうち、順位が上位の候補からあらかじめ定められた個数の候補を計器の画像に重ね合わせて表示する。 In this way, the setting means (for example, the instrument setting program 105) displays a predetermined number of candidates with the highest ranks among the candidates for the area including the scale, superimposed on the image of the instrument, and , A predetermined number of candidates having a higher rank among the candidates for the scale position corresponding to each candidate of the region including the scale are displayed in a superimposed manner on the image of the meter.

また、上記設定手段(例えば、計器設定プログラム105)は、画像上に表示されている目盛りを含む領域の候補あるいは目盛り位置の候補を選択する選択手段(例えば、図16の画面下部1603に表示された円候補、最大値候補、最小値候補の選択を受け付ける計器設定プログラム105)を有し、選択された目盛りを含む領域の候補および目盛り位置の候補を、他の目盛りを含む領域の候補および目盛り位置の候補とは異なる形態で表示する処理、選択された目盛りを含む領域の候補に対する目盛り位置の候補のみを計器の画像上に表示する処理、のいずれか1つ以上の処理を行い、目盛りを含む領域の候補および目盛り位置の候補を計器の画面上に表示し、視認性を向上させることができる。 The setting means (for example, the instrument setting program 105) may also include a selection means (for example, the selection means (for example, the area displayed at the bottom of the screen 1603 in FIG. It has an instrument setting program 105) that accepts the selection of a circle candidate, a maximum value candidate, and a minimum value candidate. The scale is displayed by performing one or more of the following processes: displaying the scale in a different form from the position candidates, and displaying only the scale position candidates for the region containing the selected scale on the instrument image. Candidates for areas to include and candidates for scale positions can be displayed on the instrument screen 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 the screen when the selection of circle candidates in FIG. 16 is changed. A circle candidate is selected by selecting the name of the candidate or the circle displayed next to it in the list of candidates displayed at the bottom 1603 of the screen in FIG. 16 using the mouse or by touching the screen. be able to. Alternatively, candidates displayed on the image of the instrument at the upper part 1601 of the screen in FIG. 16 may be directly selected. Figure 17 is a display example when the circle candidate is changed from "Yen 1" to "Yen 3", and by displaying "Yen 3" with a thick broken line, it is shown that "Yen 3" is selected. Furthermore, scale position candidates for "Circle 3" are displayed. The instrument setting program 105 can change the selection of scale position candidates only for scale position candidates related to the selected circle candidate. In the case of FIG. 17, the scale position candidates for "circle 3" can be selected from "minimum 1" to "minimum 3" and "maximum 1" to "maximum 3".

このように、上記設定手段(例えば、計器設定プログラム105)は、目盛りを含む領域の候補と目盛り位置の候補の一覧を表示し、一覧の中で選択された目盛りを含む領域の候補あるいは目盛り位置の候補に対応する候補を、他の目盛りを含む領域の候補あるいは目盛り位置の候補とは異なる形態で計器の画像上で表示し、画面下部1603で選択された内容を画面上部1601に反映させることができる。 In this way, the setting means (for example, the instrument setting program 105) displays a list of candidates for the area containing the scale and candidates for the scale position, and selects the candidate for the area containing the scale or the scale position selected from the list. Displaying candidates corresponding to the candidates on the instrument image in a format different from candidates for areas including other scales or candidates for scale positions, and reflecting the content selected at the lower part of the screen 1603 in the upper part of the screen 1601. Can be done.

また、図18は、円候補の位置を微調整する場合の画面の一例である。図18の画面は、図17の画面の下部1702に配置されている「微調整」と記述されたボタンをマウスや画面タッチ等で選択することで表示される画面であり、図16で選択されている円候補のみの位置を修正することができる。図18の画面上において、指のスライド方向1801に示すように画面上で指をスライドさせることにより、計器設定プログラム105がこれを検知し、円候補のスライド方向1802のように指の動きに合わせて対象の円候補の位置を修正することができる。マウスを使用して同様の操作を行うようにすることもできる。また図18において、調整ラジオボタン1803をマウスあるいは画面タッチ等により選択することで、計器設定プログラム105がこれを検知し、円候補の大きさの微調整を行うことができる。円候補の大きさの変更方法としては、円候補の位置の場合と同様に、指のスライドやマウスの移動に合わせて変更する方法を用いることができる。目盛り位置候補についても同様に位置の微調整を行うようにすることができる。なお、目盛り位置候補の場合、微調整が可能な範囲を円候補によって決定される円周上に制限するようにしても良い。 Moreover, FIG. 18 is an example of a screen when finely adjusting the position of a circle candidate. The screen in FIG. 18 is displayed by selecting the button labeled "Fine adjustment" located at the bottom 1702 of the screen in FIG. 17 with the mouse or by touching the screen. You can modify the position of only the circle candidates. On the screen of FIG. 18, by sliding your finger on the screen as shown in the finger sliding direction 1801, the instrument setting program 105 detects this and adjusts it according to the finger movement as shown in the sliding direction 1802 of the circle candidate. The position of the target circle candidate can be corrected by You can also perform similar operations using a mouse. Further, in FIG. 18, by selecting the adjustment radio button 1803 using the mouse or by touching the screen, the instrument setting program 105 detects this and can finely adjust the size of the circle candidate. As a method of changing the size of the circle candidate, the method of changing it according to the slide of a finger or the movement of the mouse can be used, as in the case of the position of the circle candidate. The positions of the scale position candidates can also be finely adjusted in the same way. In addition, in the case of a scale position candidate, the range in which fine adjustment is possible may be limited to the circumference determined by the circle candidate.

このように、上記設定手段(例えば、計器設定プログラム105)は、目盛りを含む領域の候補および目盛り位置の候補のうち、選択されている候補の計器の画像上における位置を調整することができる。 In this way, the setting means (for example, the instrument setting program 105) can adjust the position of the instrument on the image of the selected candidate among the candidates for the region including the scale and the candidates for the scale position.

ステップ715では、計器設定プログラム105は、選択されている円候補および目盛り位置候補から計器の読み取りに必要な情報を取得し、計器設定データ108に保存する。これにより、利用者が指定した位置が正確でない場合でも、より正確な情報を設定することができる。さらに、計器設定プログラム105は、選択された目盛り位置候補に対する計器の指示値を取得し、計器設定データ108に保存し、処理を終了する。目盛り位置候補に対する計器の指示値は利用者が入力することを想定しており、計器設定プログラム105は、端末202の画面上に、それぞれの目盛り位置候補に対する指示値を入力するよう指示を表示し、利用者が入力した結果を計器設定データ108に保存する。 In step 715, the meter setting program 105 acquires information necessary for reading the meter from the selected circle candidate and scale position candidate, and stores it in the meter setting data 108. This allows more accurate information to be set even if the location specified by the user is not accurate. Furthermore, the meter setting program 105 acquires the meter indication value for the selected scale position candidate, stores it in the meter setting data 108, and ends the process. It is assumed that the user inputs the indicated values of the instrument for the scale position candidates, and the instrument setting program 105 displays an instruction on the screen of the terminal 202 to input the indicated values for each of the scale position candidates. , the results input by the user are saved in the meter setting data 108.

計器の指示値の読み取りに必要な情報を設定するための上述した方法では、ステップ709で利用者が指定する情報を全て取得した後、ステップ710で円候補および目盛り位置候補に順位付けを行い、ステップ711でその結果を表示していた。このステップ709からステップ711までの処理フローについては、上述した方法の他、利用者が情報を一つ設定するたびに、計器設定プログラム105は、設定された情報に基づいて円候補および目盛り候補の順位付けを行い、その結果が表示されるようにしても良い。 In the above-described method for setting the information necessary for reading the indicated value of the meter, after all the information specified by the user is acquired in step 709, circle candidates and scale position candidates 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 selects circle candidates and scale candidates based on the set information. It is also possible to perform ranking and display the results.

さらに、利用者が設定する情報として最小値位置506あるいは最大値位置507のいずれか一方のみが設定されている場合は、計器設定プログラム105は、これらの位置に加えて、円候補の中心位置から真下に引いた直線に対して線対称にある位置あるいは、円候補の中心位置から水平方向に引いた直線に対して線対称にある位置も円候補や目盛り位置候補の順位付けの基準に追加し、円候補や目盛り位置候補の順位付けを行うようにしても良い。これは、目盛り線が円形状に配置されている計器において、多くの場合、最小値位置と最大値位置が計器の中心線に対して線対称の位置にあるためである。設定された位置に対して、円候補の中心位置から垂直あるいは水平に引いた直線に線対称な位置を自動的に円候補や目盛り位置候補の順位付けに使用するようにするとともに、利用者が情報を一つ設定するたびに、設定された情報に基づいて円候補および目盛り候補の順位付けを行い、その結果が表示されるようにする。すなわち、上記設定手段(例えば、計器設定プログラム105)は、上記入力手段(例えば、図7のS709を実行する計器読み取りプログラム106)から、制約条件となる情報を一つ取得するごとに、目盛りを含む領域の候補および目盛り位置の候補の順位付けを更新し、計器の画像上における目盛りを含む領域の候補および目盛り位置の候補の表示を変更する。これにより、最短、一つの情報を設定するだけで、計器の読み取りに必要な情報を全て設定することが可能となる。 Furthermore, if only either the minimum value position 506 or the maximum value position 507 is set as information set by the user, the instrument setting program 105 will calculate information from the center position of the circle candidate in addition to these positions. Positions that are symmetrical to a straight line drawn directly below or symmetrical to a straight line drawn horizontally from the center of the circle candidate are also added to the criteria for ranking circle candidates and scale position candidates. , circle candidates and scale position candidates may be ranked. This is because in a meter in which scale lines are arranged in a circular shape, the minimum value position and the maximum value position are often located at positions symmetrical with respect to the center line of the meter. With respect to the set position, positions that are symmetrical to a straight line drawn vertically or horizontally from the center position of the circle candidate are automatically used to rank circle candidates and scale position candidates, and the user Each time one piece of information is set, circle candidates and scale candidates are ranked based on the set information, and the results are displayed. That is, the setting means (for example, the instrument setting program 105) sets the scale each time it acquires one piece of information that is a constraint condition from the input means (for example, the instrument reading program 106 that executes S709 in FIG. 7). The ranking of the candidates for the region including the scale and the candidates for the scale position are updated, and the display of the candidates for the region including the scale and the candidate for the scale position on the instrument image is changed. This makes it possible to set all the information necessary for meter reading by simply setting one piece of information at the shortest possible time.

このように、上記設定手段(例えば、計器設定プログラム105)は、目盛りを含む領域の形状が円形の場合、上記入力手段(例えば、図7のS709を実行する計器読み取りプログラム106)から、(1)最小値および最大値を示す目盛り位置の概略の位置、(2)円形の中心位置の概略の位置と最小値を示す目盛り位置の概略の位置、(3)円形の中心位置の概略の位置と最大値を示す目盛り位置の概略の位置、(4)最小値を示す目盛り位置の概略の位置と計器の画像の中心位置、(5)最大値を示す目盛り位置の概略の位置と計器の画像の中心位置、のいずれかを条件を取得し、上記順位付け手段(例えば、図7のS710を実行する計器読み取りプログラム106)は、検出された目盛りを含む領域の候補と、上記(1)~(5)のいずれかの条件とに基づいて、目盛りを含む領域の候補、および目盛り位置の候補に順位付けを行ってもよい。 In this way, when the shape of the area including the scale is circular, the setting means (for example, the instrument setting program 105) receives (1 ) the approximate position of the scale position indicating the minimum value and the maximum value; (2) the approximate position of the center position of the circle and the approximate position of the scale position indicating the minimum value; (3) the approximate position of the center position of the circle. 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 center position of the instrument image, (5) The approximate position of the scale position indicating the maximum value and the center position of the instrument image. The ranking means (for example, the instrument reading program 106 that executes S710 in FIG. 7) acquires the conditions for the center position, and then selects the candidates for the area including the detected scale and the above (1) to ( Based on any of the conditions 5), candidates for areas including scale marks and candidates for scale positions may be ranked.

また、上記設定手段(例えば、計器設定プログラム105)は、目盛り位置が特定の線に対して線対称である計器である場合、上記入力手段(例えば、図7のS709を実行する計器読み取りプログラム106)から取得する情報として、最小値を示す目盛り位置の概略の位置、あるいは、最大値を示す目盛り位置の概略の位置、のいずれか一方を取得し、上記順位付け手段(例えば、図7のS710を実行する計器読み取りプログラム106)は、検出された目盛りを含む領域の候補と、目盛り位置の候補の位置と取得したいずれかの概略の位置との距離とに基づいて、検出された目盛りを含む領域の候補と目盛り位置の候補とに順位付けを行ってもよい。 Further, when the setting means (for example, the instrument setting program 105) is a meter whose scale position is symmetrical with respect to a specific line, the above-mentioned input means (for example, the instrument reading program 106 that executes S709 in FIG. 7) ), either the approximate position of the scale position indicating the minimum value or the approximate position of the scale position indicating the maximum value is acquired from the above-mentioned ranking means (for example, S710 in FIG. 7). The instrument reading program 106) that executes the instrument reading program 106) includes the detected scale based on the candidate area including the detected scale and the distance between the position of the candidate scale position and any of the obtained approximate positions. The region candidates and the scale position candidates may be ranked.

図1における計器読み取りプログラム106は、計器設定プログラム105により保存された計器設定データ108に基づいて、計器を撮影した画像から計器の指示値の読み取りを行い、読み取った指示値を計器読み取り結果データ109に格納するためのプログラムである。図19に、計器読み取りプログラム106により実行される処理のフローチャートの一例を示す。 The instrument reading program 106 in FIG. 1 reads the indicated value of the instrument from an image of the instrument based on the instrument setting data 108 saved by the instrument setting program 105, and converts the read indicated value into instrument reading result data 109. This is a program for storing files in . FIG. 19 shows an example of a flowchart of processing executed by the meter reading program 106.

図19におけるステップ1901では、計器読み取りプログラム106は、計器設定データ108から読み取り対象となる計器に関する設定情報を取得する。具体的には、計器読み取りプログラム106は、計器設定データ108から計器名称501の一覧を取得し、端末202の画面上に一覧表示するとともに、利用者に対象となる計器に対応する計器名称を選択するよう指示を行う。計器読み取りプログラム106は、利用者が一覧から選択した計器名称に対応する設定情報を計器設定データ108から読み込む。 In step 1901 in FIG. 19, the meter reading program 106 acquires setting information regarding the meter to be read from the meter setting data 108. Specifically, the meter reading program 106 acquires a list of meter names 501 from the meter setting data 108, displays the list on the screen of the terminal 202, and prompts the user to select the meter name corresponding to the target meter. give instructions to do so. The meter reading program 106 reads setting information corresponding to the meter name selected by the user from the list from the meter setting data 108.

ステップ1902では、計器読み取りプログラム106は、端末202に設置されているカメラを用いて、読み取り対象となる計器の画像を撮影する。上述したステップ1901およびステップ1902では、読み取り対象となる計器名称を利用者が指定した後、対象となる計器の画像を撮影する流れとなっているが、その他、計器の名称を登録した画像パターンや記号、文字列を対象となる計器の周辺に設置し、計器を撮影する際、その画像パターンや記号、文字列を対象の計器とともに撮影し、画像パターンや記号、文字列を認識させることにより、計器の名称を取得する方法を用いることができる。例えば、計器の名称を登録した画像パターンとしては、よく知られたQRコード(登録商標)やARマーカーと呼ばれる画像パターンを用いることができる。また、計器の名称を表す記号や文字列を使用する場合は、よく知られた文字認識技術を用いることにより、撮影した画像から計器の名称を取得することが可能となる。 In step 1902, the meter reading program 106 uses the camera installed in the terminal 202 to take an image of the meter to be read. In steps 1901 and 1902 described above, the user specifies the name of the instrument to be read and then takes an image of the instrument. By placing symbols and character strings around the target instrument and photographing the instrument, the image pattern, symbol, and character string are photographed together with the target instrument, and the image pattern, symbol, and character string are recognized. A method of obtaining the name of the instrument can be used. For example, as the image pattern in which the name of the instrument is registered, an image pattern called a well-known QR code (registered trademark) or an AR marker can be used. Furthermore, when using a symbol or character string representing the name of a meter, it is possible to obtain the name of the meter from the captured image by using well-known character recognition technology.

計器設定データ108のテンプレート画像503およびステップ1902で撮影した計器の画像は、ともに読み取り対象となる計器を撮影した画像であるが、撮影時のカメラの位置や向きが同一となることは無いため、画像上における計器の位置、向き、大きさが異なっている画像となる。この状態では、計器設定データ108に保存されている情報を使用して計器の指示値の読み取りを行うことが困難である。そのため、計器読み取りプログラム106は、ステップ1903において、ステップ1902で撮影した画像上での計器とテンプレート画像上での計器の位置、向き、大きさを一致させる処理を行う。この方法としては、計器読み取りプログラム106は、例えば、よく知られた画像の局所特徴点および局所特徴点に付随する局所特徴量と呼ばれる情報をテンプレート画像503およびステップ1902で撮影した計器の画像から抽出する。 The template image 503 of the instrument setting data 108 and the image of the instrument taken in step 1902 are both images of the instrument to be read, but the position and orientation of the camera at the time of shooting are never the same. The result is an image in which the position, orientation, and size of the instrument on the image are different. In this state, it is difficult to read the indicated value of the meter using the information stored in the meter setting data 108. Therefore, in step 1903, the instrument reading program 106 performs processing to match the position, orientation, and size of the instrument on the image captured in step 1902 with the instrument on the template image. In this method, the instrument reading program 106 extracts, for example, local feature points of a well-known image and information called local feature quantities attached to the local feature points from the template image 503 and the instrument image taken in step 1902. do.

次に、計器読み取りプログラム106は、局所特徴量の類似度に基づいてテンプレート画像503から抽出した局所特徴点と、ステップ1902で撮影した計器の画像から抽出した局所特徴点との対応関係を求める。対応関係を求める方法としては、よく知られた総当たり法等を用いることができる。計器読み取りプログラム106は、局所特徴点の対応関係を求めた後、求めた対応関係を用いてステップ1902で撮影した計器の画像をテンプレート画像503上に投影するための変換行列を求める。この変換行列は、よく知られたホモグラフィー行列と呼ばれる行列である。 Next, the instrument reading program 106 determines the correspondence between the local feature points extracted from the template image 503 based on the similarity of the local feature amounts and the local feature points extracted from the image of the instrument photographed in step 1902. As a method for determining the correspondence, a well-known brute force method or the like can be used. After determining the correspondence between local feature points, the instrument reading program 106 uses the determined correspondence to determine a transformation matrix for projecting the image of the instrument photographed in step 1902 onto the template image 503. This transformation matrix is a well-known matrix called a homography matrix.

最後に、計器読み取りプログラム106は、求めた変換行列を用いて、ステップ1902で撮影した計器の画像をテンプレート画像503上に投影する処理を行う。これにより、ステップ1902で撮影した画像中の計器の部分をテンプレート画像503上の計器の部分に合わせ込んだ画像、すなわち計器の位置、向き、大きさを一致させた画像を取得することができる。テンプレート画像503上の計器とステップ1902で撮影した画像上の計器を一致させる方法としては、同様の結果が得られる手法であればどのような手法を用いても良い。 Finally, the instrument reading program 106 performs a process of projecting the instrument image photographed in step 1902 onto the template image 503 using the obtained transformation matrix. As a result, it is possible to obtain an image in which the part of the instrument in the image photographed in step 1902 is aligned with the part of the instrument on the template image 503, that is, an image in which the position, orientation, and size of the instrument are matched. As a method for matching the instrument on the template image 503 with the instrument on the image photographed in step 1902, any method may be used as long as it yields similar results.

ステップ1904では、計器読み取りプログラム106は、ステップ1903により得られた計器の画像、および計器設定データ108の情報を用いて、計器の指示値の読み取りを行う。ステップ1903により得られた画像上における計器の位置、向き、大きさは、テンプレート画像上における計器の位置、向き、大きさに一致しているため、計器読み取りプログラム106は、例えば、以下のような方法により、指示値の読み取りを行う。計器読み取りプログラム106は、まず、指針の色と同じ領域をステップ1903により得られた計器の画像中から抽出することにより、指針を画像中から抽出する。 In step 1904, the meter reading program 106 uses the image of the meter obtained in step 1903 and the information in the meter setting data 108 to read the indicated value of the meter. Since the position, orientation, and size of the instrument on the image obtained in step 1903 match the position, orientation, and size of the instrument on the template image, the instrument reading program 106, for example, reads the following. The indicated value is read according to the method. The meter reading program 106 first extracts the pointer from the image by extracting an area having the same color as the pointer from the image of the meter obtained in step 1903.

さらに、計器読み取りプログラム106は、抽出した指針の輪郭線(エッジ)を求め、求めた輪郭線から直線の抽出を行う。輪郭線を求める方法としては、例えば上述したCanny法を用いることができる。直線を抽出する方法としては、例えば上述したHough変換を用いることができる。その他、同様の結果を得られる方法であれば、どのような方法を用いても良い。計器読み取りプログラム106は、抽出した直線のうち、最も長い二本の直線が交わる位置を求めることにより、指針の先端位置を取得することができる。あるいは、ステップ1903により得られた計器の画像中から直接、輪郭線を求め、輪郭線から抽出した直線のうち、最も長い二本の直線が交わる位置を求めることにより、指針の先端位置を取得するようにしても良い。なお、指針の抽出や輪郭線の抽出等において、計器設定データ108における円の中心位置504および円の半径505によって決定される円の範囲に処理の範囲を限定することにより、不要な領域や輪郭線の抽出を抑制することができる。 Furthermore, the meter reading program 106 determines the contour line (edge) of the extracted pointer and extracts a straight line from the determined contour line. As a method for determining the contour line, for example, the above-mentioned Canny method can be used. As a method for extracting straight lines, for example, the above-mentioned Hough transformation can be used. Any other method may be used as long as it can obtain similar results. The meter reading program 106 can obtain the tip position of the pointer by finding the position where the two longest straight lines intersect among the extracted straight lines. Alternatively, the tip position of the pointer is obtained by directly determining the contour line from the image of the instrument obtained in step 1903 and determining the position where the two longest straight lines intersect among the straight lines extracted from the contour line. You can do it like this. In addition, when extracting pointers, contour lines, etc., by limiting the processing range to the range of the circle determined by the circle center position 504 and circle radius 505 in the instrument setting data 108, unnecessary areas and contours are removed. Line extraction can be suppressed.

計器読み取りプログラム106は、画像中における指針の先端位置を求めた後、最小値位置506および最大値位置507の値と同じ計算方法による値に指針の先端位置を変換する。用いる計算方法としては、例えば、円の中心位置504から真下に下した直線と、円の中心位置504から対象位置に伸ばした直線がなす角度を求める、というような方法を用いることができる。この計算方法により求めた指針の先端位置と、計器設定データ108における最小値位置506、最大値位置507、最小値508、最大値509を用いて、(式1)により計器の指示値を算出することができる。 After determining the position of the tip of the pointer in the image, the meter reading program 106 converts the position of the tip of the pointer into a value based on the same calculation method as the values of the minimum value position 506 and the maximum value position 507. As a calculation method to be used, for example, a method can be used in which the angle between a straight line drawn directly downward from the center position 504 of the circle and a straight line extended from the center position 504 of the circle to the target position is determined. Using the tip position of the pointer obtained by this calculation method and the minimum value position 506, maximum value position 507, minimum value 508, and maximum value 509 in the meter setting data 108, the indicated value of the meter is calculated by (Formula 1). be able to.

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 (Formula 1)
In (Equation 1), M is the obtained reading of the meter, P is the pointer tip position, θmin is the minimum value position 506, θmax is the maximum value position 507, Vmin is the minimum value 508, and Vmax is the maximum value 509. . (Equation 1) is a calculation formula that can be used to calculate the indicated value of the meter when all the scales between the minimum value 508 and the maximum value 509 are equally spaced, and is a well-known linear formula. This is a calculation formula using interpolation. If the scale intervals are uneven, information about intermediate scale positions and scale values between the minimum value 508 and maximum value 509 is added to the instrument setting data 108, and intermediate scale positions sandwiching the pointer tip position are added to the instrument setting data 108. The indicated value of the meter may be calculated by performing linear interpolation using the position and scale value. The method of detecting the position of the tip of the pointer and the method of calculating the indicated value of the meter are not limited to the methods described above, and any method can be used as long as it yields similar results. can.

最後に、計器読み取りプログラム106は、ステップ1905で、ステップ1904で読み取った計器の指示値を端末202の画面上に表示するとともに、計器読み取り結果データ109に格納し、処理を終了する。 Finally, in step 1905, the meter reading program 106 displays the reading of the meter read in step 1904 on the screen of the terminal 202, stores it in the meter reading result data 109, and ends the process.

以上のように第一の実施例によれば、目盛りが円状に配置されており、指針がその円の中心を支点として回転する種類の計器の指示値を画像から読み取る計器読み取りシステムにおいて、計器の読み取りに必要となる情報の設定にスマートフォンやタブレット端末等のモバイル機器を用いる場合でも、正確に且つ短時間で、計器の読み取りに必要となる情報を設定することが可能となる。 As described above, according to the first embodiment, in an instrument reading system that reads from an image the indicated value of an instrument in which the scale is arranged in a circle and the pointer rotates around the center of the circle, Even when using a mobile device such as a smartphone or tablet terminal to set the information necessary for reading the meter, it is possible to set the information necessary for reading the meter accurately and in a short time.

第二の実施例を図20から図21を用いて説明する。第一の実施例では図3に示すように、目盛りが円状に配置されており、指針がその円の中心を支点として回転する種類(例えば、円形形状)の計器を読み取り対象の計器として想定していた。一方、第二の実施例では図20の計器2001に示すように、目盛りが直線状に配置されており、指針がその直線に平行に直線状に移動する種類(例えば、矩形形状)の計器を読み取り対象の計器として想定する。 A second embodiment will be described using FIGS. 20 and 21. In the first embodiment, as shown in Fig. 3, a type of meter (e.g. circular shape) in which the scale is arranged in a circular shape and the pointer rotates around the center of the circle as a fulcrum is assumed as the meter to be read. Was. On the other hand, in the second embodiment, as shown in a meter 2001 in FIG. 20, a type of meter (for example, rectangular shape) in which the scale is arranged in a straight line and the pointer moves linearly parallel to the straight line is used. Assume that it is an instrument to be read.

図20に示す種類の計器の指示値を読み取るために必要となる基本的な情報は、図20の指針の支点(が稼働する範囲の)位置2002、目盛りが構成する直線の位置2003、目盛りの最小値位置2004および目盛りの最大値位置2005に描かれた破線で囲まれた領域を特定する情報であり、指針の支点(が稼働する範囲の)位置2002、目盛りが構成する直線の位置2003、目盛りの最小値位置2004および目盛りの最大値位置2005がそれらの情報となる。これらの情報はすべて、例えば、画像の左下を原点とした位置座標により表すことができる。原点位置は、任意に設定することもできる。これらの情報を利用者が効率的に指定するためには、例えば、支点位置2002、目盛りの最小値位置2004および目盛りの最大値位置2005のみを指定すれば良い。 The basic information required to read the indicated value of the type of meter shown in FIG. This information specifies the area surrounded by the broken line drawn at the minimum value position 2004 and the maximum value position 2005 of the scale, and includes the fulcrum position of the pointer (in the range in which it operates) 2002, the position 2003 of the straight line formed by the scale, The minimum value position 2004 of the scale and the maximum value position 2005 of the scale are such information. All of this information can be expressed, for example, by positional coordinates with the origin at the bottom left of the image. The origin position can also be set arbitrarily. In order for the user to efficiently specify this information, for example, it is sufficient to specify only the fulcrum position 2002, the minimum value position 2004 of the scale, and the maximum value position 2005 of the scale.

図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 minimum value position 2004 and maximum value position 2005 of the scale are expressed only by position coordinates in the vertical direction. However, when specifying a position on an image, it is specified by a point, that is, both the X and Y coordinates can be obtained, so the minimum value position 2004 and maximum value position 2005 of the scale are saved in XY format. The three types of information described above are the basic information needed to read the meter. Furthermore, by using a constraint such that the center of the instrument coincides with the center of the image when taking an image of the instrument, the instrument setting program 105 can set the minimum value position 2004 and the maximum value position of the scale. 2005 and only the fulcrum position 2002, the area necessary for reading the instrument in FIG. It becomes possible to specify the area surrounded by the broken line drawn at the maximum value position 2005 of the scale. In this case, for example, when the instrument setting program 105 uses only the minimum value position 2004 of the scale, it is sufficient to regard a position that is axisymmetric with respect to the horizontal line passing through the center of the image in FIG. 20 as the maximum value position 2005 of the scale. . The information described above is the basic information needed to read a meter of the type shown in FIG. 20, but other information can also be added. For example, if the scale intervals are uneven, an intermediate scale position may be added between the minimum scale value position 2004 and the maximum scale value position 2005. Furthermore, although the instrument shown in FIG. 20 is photographed without any tilt, when actually photographing the instrument, the instrument is generally photographed with the instrument tilted. Therefore, in addition to the information shown above, information regarding the inclination may be added.

計器情報データ107には、計器設定プログラム105は、設定情報リスト402および入力情報リスト403の内容を上述した情報に合わせて変更したデータを登録する。例えば、設定情報リスト402は「支点位置、直線位置、最小値位置、最大値位置」、入力情報リスト403は「支点位置、最小値位置、最大値位置」のように記述することができる。「支点位置」は指針の支点位置2002、「直線位置」は目盛りが構成する直線の位置2003、「最小値位置」は目盛りの最小値位置2004、「最大値位置」は目盛りの最大値位置2005にそれぞれ対応することを想定している。第一の実施例では、指針の支点位置である円の中心位置は検出された円候補によって決定されるため利用者による入力は不要であるが、図4に示す種類の計器では支点が稼働する範囲を目盛りが構成する直線の位置2003などから一意に決定することが困難であるため、第二の実施例においては、「支点位置」も利用者が入力することを想定する。 In the instrument information data 107, the instrument setting program 105 registers data obtained by changing the contents of the setting information list 402 and the input information list 403 in accordance with the above-mentioned information. For example, the setting information list 402 can be described as "fulcrum position, linear position, minimum value position, maximum value position", and the input information list 403 can be described as "fulcrum position, minimum value position, maximum value position". "Fulcrum position" is the fulcrum position of the pointer 2002, "linear position" is the position of the straight line formed by the scale 2003, "minimum value position" is the minimum value position 2004 of the scale, "maximum value position" is the maximum value position 2005 of the scale It is assumed that each will correspond to the following. In the first embodiment, the center position of the circle, which is the fulcrum position of the pointer, is determined by the detected circle candidate, so no input by the user is required; however, in the type of instrument shown in FIG. 4, the fulcrum moves. Since it is difficult to uniquely determine the range from the position 2003 of the straight line formed by the scale, in the second embodiment, it is assumed that the user also inputs the "fulcrum position".

図21に、第二の実施例で使用する計器設定データ108のフォーマットの一例を示す。図5との違いは、円の中心位置504が支点位置2101に、円の半径505が直線の位置2102に変更されている点である。支点位置2101および直線の位置2012は、それぞれ、図20における指針の支点位置2002および目盛りが構成する直線の位置2003に対応している。 FIG. 21 shows an example of the format of the meter setting data 108 used in the second embodiment. The difference from FIG. 5 is that the center position 504 of the circle has been changed to a fulcrum position 2101, and the radius 505 of the circle has been changed to a straight line position 2102. The fulcrum position 2101 and the straight line position 2012 correspond to the fulcrum position 2002 of the pointer and the straight line position 2003 formed by the scale in FIG. 20, respectively.

第二の実施例における計器設定プログラム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 steps 704 and 707 is changed from detecting circle candidates to detecting straight line candidates. In addition, in the processing after step 708, the instrument setting program 105 detects scale candidates for the detected straight line candidates (step 708), ranks the straight line candidates (step 710), and ranks the straight line candidates based on the ranking results. What is necessary is to display candidates (step 711) or the like. Furthermore, in detecting scale candidates (step 708), since the scale is linear, there is no need to perform the polar coordinate transformation used in the first embodiment. The meter setting program 105 can directly acquire an image as shown in FIG. 12 or 13 from the meter image and detect candidates for scale positions. Regarding the ranking of straight line candidates (step 710), the instrument setting program 105 replaces the process performed based on the distance between the position specified by the user and the circle candidate in the first embodiment with the process based on the position specified by the user. It is only necessary to change the processing to be performed based on the distance between the position and the straight line candidate. Regarding the display of candidates and the user's operations on the candidates, basically the same method can be used, although there is a difference in shape between circles and straight lines.

第二の実施例における計器読み取りプログラム106では、図19に示すフローチャートで示される処理と同様の処理を行うことで、計器の指示値の読み取りを行うことができる。ただし第二の実施例では、ステップ1904で実施される処理において、以下の二点が第一の実施例とは異なる。まず、第一の実施例では円の中心位置504および円の半径505によって決定される円の範囲に処理の範囲を限定していたが、第二の実施例では指針の支点位置2002および目盛りが構成する直線の位置2003によって決定される矩形領域(図20において、2002と2003で挟まれた領域)に処理の範囲を限定する。また、第一の実施例では指針の先端位置を円の中心位置504からの相対的な値に変換した後、指示値の計算をしていたが、第二の実施例では検出した指針の先端位置をそのまま使用することができる。例えば、計器読み取りプログラム106は、図20に示すように指針が縦方向に移動する場合は指針位置のY座標の値をそのまま用いることができる。この場合、目盛りの最小値位置2004、目盛りの最大値位置2005についても同様の値を用いれば良い。また、指針が横方向に移動する場合はX座標の値を用いれば良い。 The meter reading program 106 in the second embodiment can read the indicated value of the meter by performing the same process as shown in the flowchart shown in FIG. However, the second embodiment differs from the first embodiment in the following two points in the processing performed in step 1904. First, in the first embodiment, the range of processing is limited to the range of the circle determined by the center position 504 of the circle and the radius 505 of the circle, but in the second embodiment, the fulcrum position 2002 of the pointer and the scale are The range of processing is limited to a rectangular area determined by the position 2003 of the constituent straight lines (the area sandwiched between 2002 and 2003 in FIG. 20). Furthermore, in the first embodiment, the indicated value was calculated after converting the tip position of the pointer to a value relative to the center position 504 of the circle, but in the second embodiment, the tip of the pointer detected You can use the position as is. For example, when the pointer moves in the vertical direction as shown in FIG. 20, the meter reading program 106 can use the value of the Y coordinate of the pointer position as is. In this case, similar values may be used for the minimum value position 2004 of the scale and the maximum value position 2005 of the scale. Furthermore, when the pointer moves in the horizontal direction, the value of the X coordinate may be used.

以上のように第二の実施例によれば、目盛りが直線状に配置されており、指針がその直線に沿って直線状に移動する種類の計器の指示値を画像から読み取る計器読み取りシステムにおいて、計器の読み取りに必要となる情報の設定にスマートフォンやタブレット端末等のモバイル機器を用いる場合でも、正確に且つ短時間で、計器の読み取りに必要となる情報を設定することが可能となる。 As described above, according to the second embodiment, in a meter reading system that reads the indicated value of a meter in which the scale is arranged in a straight line and the pointer moves linearly along the straight line, from an image, Even when using a mobile device such as a smartphone or a tablet terminal to set the information necessary for meter reading, it is possible to set the information necessary for meter reading accurately and in a short time.

また、実施例1で示した円形形状の計器、実施例2で示した矩形形状の計器、あるいは円形形状や矩形形状に含まれる様々な種類の計器について、少なくとも、計器の種類ごとに、目盛りを含む領域の形状、制約条件に関する情報の種類、制約条件を入力する順序に関する情報を格納する計器情報格納手段(例えば、計器情報データ107、計器設定データ108、計器読み取り結果データ109を記憶するストレージ)と、設定を行う計器の種類を取得する種類取得手段(例えば、計器設定プログラム105)と、画像上に表示されている目盛りを含む領域の候補あるいは目盛り位置の候補を選択する選択手段(例えば、図16の画面下部1603に表示された円候補、最大値候補、最小値候補の選択を受け付ける計器設定プログラム105)と、を有し、上記設定手段は、取得された計器の種類に対応する情報を計器情報格納手段から取得し、取得した情報に基づいて、目盛りを含む領域の候補または目盛り位置の候補の順位付けに必要な制約条件に関する情報を取得し、上記順位付け手段は、取得された情報に基づいて、目盛りを含む領域の候補または目盛り位置の候補の順位付けを行い、上記選択手段は、順位付けの結果に基づいて、目盛りを含む領域の候補または目盛り位置の候補の選択を行うことも可能である。これにより、計器読み取りシステムを様々な種類の計器に適用することができる。 In addition, for the circular instrument shown in Example 1, the rectangular instrument shown in Example 2, or various types of instruments included in the circular or rectangular shape, at least scales are set for each type of instrument. Instrument information storage means that stores information about the shape of the included region, the type of information about constraints, and the order in which constraints are input (for example, a storage that stores instrument information data 107, instrument setting data 108, and instrument reading result data 109) , type acquisition means (for example, instrument setting program 105) that acquires the type of instrument to be set, and selection means (for example, The setting means includes an instrument setting program 105) that accepts selections of circle candidates, maximum value candidates, and minimum value candidates displayed in the lower part 1603 of the screen in FIG. is obtained from the instrument information storage means, and based on the obtained information, information regarding constraint conditions necessary for ranking candidates for areas including scales or candidates for scale positions is obtained, and the ranking means Based on the information, candidates for a region containing a scale or candidates for a scale position are ranked, and the selection means selects candidates for a region containing a scale or candidates for a scale position based on the ranking result. It is also possible. This allows the meter reading system to be applied to various types of meters.

1000 計器読み取りシステム
101 CPU
102 入力I/F
103 出力I/F
104 メモリ
105 計器設定プログラム
106 計器読み取りプログラム
107 計器情報データ
108 計器設定データ
109 計器読み取り結果データ
201 利用者
202 モバイル端末
203 対象計器
1000 Instrument reading system 101 CPU
102 Input I/F
103 Output I/F
104 Memory 105 Instrument setting program 106 Instrument reading program 107 Instrument information data 108 Instrument setting data 109 Instrument reading result data 201 User 202 Mobile terminal 203 Target instrument

Claims (12)

計器の画像を取得する取得手段と、
計器が示す数値を読み取るために必要な計器の情報を設定するための設定手段と、
設定された前記計器の情報に基づいて前記計器の画像から計器が示す数値を読み取る読み取り手段と、
前記計器が示す数値を読み取った結果を表示する表示手段と、を有する計器読み取りシステムであって、
前記設定手段は、
前記計器の画像における目盛りを含む領域の候補を検出する領域候補検出手段と、
検出された目盛りを含む領域の各候補に対して、目盛り位置の候補を検出する位置候補検出手段と、
前記目盛りを含む領域の候補および前記目盛り位置の候補から、最適な候補を選択するための制約条件に関する情報を入力する入力手段と、
前記目盛りを含む領域の候補および前記目盛り位置の候補と、入力された前記制約条件とに基づいて、前記目盛りを含む領域の候補と前記目盛り位置の候補とに順位付けを行う順位付け手段と、
前記順位付けの結果に基づいて最適な目盛りを含む領域の候補と目盛り位置の候補を表示する表示手段と、
を有することを特徴とする計器読み取りシステム。
an acquisition means for acquiring an image of the instrument;
a setting means for setting meter information necessary to read the numerical value indicated by the meter;
reading means for reading a numerical value indicated by the meter from an image of the meter based on set information of the meter;
A meter reading system comprising: a display means for displaying a result of reading a numerical value indicated by the meter,
The setting means includes:
region candidate detection means for detecting a region candidate including a scale in the image of the instrument;
position candidate detection means for detecting a candidate scale position for each candidate of a region including the detected scale;
input means for inputting information regarding constraint conditions for selecting an optimal candidate from candidates for the region including the scale and candidates for the scale position;
a ranking means for ranking the candidates for the region including the scale and the candidates 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 candidates for an area including an optimal scale and candidates for a scale position based on the ranking result;
An instrument reading system comprising:
請求項1記載の計器読み取りシステムであって、
前記領域候補検出手段は、
前記計器の画像中から抽出した輪郭情報から目盛りを含む領域を表す形状を特定することにより、前記計器の画像中から前記目盛りを含む領域の候補を検出する処理と、前記計器の画像中から各々の目盛りに対応する小領域を抽出し、抽出した複数の小領域が構成する形状が目盛りを含む領域を表す形状であるかどうかを判定することにより、前記計器の画像中から前記目盛りを含む領域の候補を検出する処理と、
の少なくともいずれかの処理を行うこと、
を特徴とする計器読み取りシステム。
The meter reading system of claim 1, comprising:
The area candidate detection means includes:
A process of detecting a candidate for a region including the scale from the image of the instrument by identifying a shape representing a region including the scale from contour information extracted from the image of the instrument; A region including the scale is extracted from the image of the instrument by extracting a small region corresponding to the scale and determining whether the shape formed by the plurality of extracted small regions is a shape representing the region including the scale. a process of detecting candidates for
carrying out at least one of the following;
An instrument reading system featuring:
請求項1記載の計器読み取りシステムであって、
前記設定手段は、
前記入力手段から、前記目盛り位置の概略の位置を取得し、
前記順位付け手段は、
検出された前記目盛りを含む領域の候補と、前記目盛り位置の候補の位置と取得した前記概略の位置との距離とに基づいて、検出された前記目盛りを含む領域の候補と前記目盛り位置の候補とに順位付けを行うこと、
を特徴とする計器読み取りシステム。
The meter reading system of claim 1, comprising:
The setting means includes:
obtaining the approximate position of the scale position from the input means;
The ranking means is
A candidate for a region including the detected scale and a candidate for the scale position based on the detected candidate for the region including the scale and the distance between the position of the candidate for the scale position and the obtained approximate position. to rank the
An instrument reading system featuring:
請求項3記載の計器読み取りシステムであって、
前記設定手段は、
前記目盛りを含む領域の形状が円形の場合、前記入力手段から、(1)最小値および最大値を示す前記目盛り位置の概略の位置、(2)円形の中心位置の概略の位置と最小値を示す前記目盛り位置の概略の位置、(3)円形の中心位置の概略の位置と最大値を示す前記目盛り位置の概略の位置、(4)最小値を示す前記目盛り位置の概略の位置と前記計器の画像の中心位置、(5)最大値を示す前記目盛り位置の概略の位置と前記計器の画像の中心位置、のいずれかを条件を取得し、
前記順位付け手段は、
検出された前記目盛りを含む領域の候補と、前記(1)~(5)のいずれかの条件とに基づいて、前記目盛りを含む領域の候補、および前記目盛り位置の候補に順位付けを行うこと、
を特徴とする計器読み取りシステム。
4. The meter reading system of claim 3, comprising:
The setting means includes:
When the shape of the region including the scale is circular, the input means inputs (1) the approximate position of the scale position indicating the minimum value and maximum value, and (2) the approximate position of the center position of the circle and the minimum value. (3) the approximate position of the center position of the circle 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 meter (5) the approximate position of the scale position indicating the maximum value and the center position of the image of the instrument;
The ranking means is
Ranking candidates for a region including the scale and candidates for the scale position based on the detected candidate for the region including the scale and any of the conditions (1) to (5) above. ,
An instrument reading system featuring:
請求項3記載の計器読み取りシステムであって、
前記設定手段は、
前記目盛り位置が特定の線に対して線対称である計器である場合、前記入力手段から取得する情報として、最小値を示す前記目盛り位置の概略の位置、あるいは、最大値を示す前記目盛り位置の概略の位置、のいずれか一方を取得し、
前記順位付け手段は、
検出された前記目盛りを含む領域の候補と、前記目盛り位置の候補の位置と取得したいずれかの前記概略の位置との距離とに基づいて、検出された前記目盛りを含む領域の候補と前記目盛り位置の候補とに順位付けを行うこと、
を特徴とする計器読み取りシステム。
4. The meter reading system of claim 3, comprising:
The setting means includes:
In the case of a meter in which the scale position is symmetrical with respect to a specific line, the information acquired from the input means includes the approximate position of the scale position indicating the minimum value, or the approximate position of the scale position indicating the maximum value. Get the approximate position,
The ranking means is
A candidate for a region including the detected scale and the scale based on the distance between the detected candidate for the scale and the position of the candidate for the scale position and any of the obtained approximate positions. ranking the candidate positions;
An instrument reading system featuring:
請求項3記載の計器読み取りシステムであって、
前記設定手段は、前記目盛りを含む領域の候補のうち、順位が上位の候補からあらかじめ定められた個数の候補を、前記計器の画像に重ねて表示するとともに、前記目盛りを含む領域の各候補に対応する目盛り位置の候補のうち、順位が上位の候補からあらかじめ定められた個数の候補を前記計器の画像に重ね合わせて表示すること、
を特徴とする計器読み取りシステム。
4. The meter reading system of claim 3, comprising:
The setting means displays a predetermined number of candidates having a higher ranking among the candidates for the area including the scale, superimposed on the image of the instrument, and also displays a predetermined number of candidates for the area including the scale, overlapping the image of the instrument. displaying a predetermined number of candidates with higher ranks among the candidates for the corresponding scale positions in a superimposed manner on the image of the meter;
An instrument reading system featuring:
請求項6記載の計器読み取りシステムであって、
前記設定手段は、
画像上に表示されている前記目盛りを含む領域の候補あるいは前記目盛り位置の候補を選択する選択手段を有し、
選択された前記目盛りを含む領域の候補および前記目盛り位置の候補を、他の前記目盛りを含む領域の候補および前記目盛り位置の候補とは異なる形態で表示する処理、選択された前記目盛りを含む領域の候補に対する前記目盛り位置の候補のみを計器の画像上に表示する処理、
のいずれか1つ以上の処理を行い、前記目盛りを含む領域の候補および前記目盛り位置の候補を計器の画面上に表示すること、
を特徴とする計器読み取りシステム。
7. The meter reading system of claim 6, comprising:
The setting means includes:
comprising a selection means for selecting a candidate for an area including the scale displayed on the image or a candidate for the position of the scale;
A process of displaying a candidate for a region including the selected scale and a candidate for the scale position in a form different from other candidates for a region including the scale and candidates for the scale position, an area including the selected scale. a process of displaying only the scale position candidates for the candidates on the instrument image;
performing any one or more of the following processes to display candidates for the area including the scale and candidates for the scale position on the screen of the instrument;
An instrument reading system featuring:
請求項7記載の計器読み取りシステムであって、
前記設定手段は、
前記目盛りを含む領域の候補と前記目盛り位置の候補の一覧を表示し、前記一覧の中で選択された前記目盛りを含む領域の候補あるいは前記目盛り位置の候補に対応する候補を、他の前記目盛りを含む領域の候補あるいは前記目盛り位置の候補とは異なる形態で計器の画像上で表示すること、
を特徴とする計器読み取りシステム。
8. The meter reading system of claim 7,
The setting means includes:
A list of candidates for the area including the scale and candidates for the scale position is displayed, and a candidate corresponding to the candidate for the area including the scale or the candidate for the scale position selected in the list is selected from the other candidates for the scale. Displaying on the image of the instrument in a form different from the area candidate containing the area or the scale position candidate;
An instrument reading system featuring:
請求項7記載の計器読み取りシステムであって、
前記設定手段は、
前記目盛りを含む領域の候補および前記目盛り位置の候補のうち、選択されている候補の前記計器の画像上における位置を調整することができること、
を特徴とする計器読み取りシステム。
8. The meter reading system of claim 7,
The setting means includes:
being able to adjust the position of the selected candidate on the image of the meter among the candidates for the region including the scale and the candidates for the scale position;
An instrument reading system featuring:
請求項6記載の計器読み取りシステムであって、
前記設定手段は、
前記入力手段から、制約条件となる情報を一つ取得するごとに、前記目盛りを含む領域の候補および前記目盛り位置の候補の順位付けを更新し、前記計器の画像上における前記目盛りを含む領域の候補および前記目盛り位置の候補の表示を変更すること、
を特徴とする計器読み取りシステム。
7. The meter reading system of claim 6, comprising:
The setting means includes:
Every time one piece of information serving as a constraint condition is acquired from the input means, the ranking of candidates for the area including the scale and the candidates for the scale position is updated, and the ranking of the area including the scale on the image of the meter is updated. changing the display of the candidates and the candidates of the scale positions;
An instrument reading system featuring:
請求項1記載の計器読み取りシステムであって、
少なくとも、計器の種類ごとに、前記目盛りを含む領域の形状、制約条件に関する情報の種類、制約条件を入力する順序に関する情報を格納する計器情報格納手段と、設定を行う前記計器の種類を取得する種類取得手段と、画像上に表示されている前記目盛りを含む領域の候補あるいは前記目盛り位置の候補を選択する選択手段と、を有し、
前記設定手段は、
取得された前記計器の種類に対応する前記情報を前記計器情報格納手段から取得し、取得した前記情報に基づいて、前記目盛りを含む領域の候補または前記目盛り位置の候補の順位付けに必要な制約条件に関する情報を取得し、
前記順位付け手段は、
取得された前記情報に基づいて、前記目盛りを含む領域の候補または前記目盛り位置の候補の順位付けを行い、
前記選択手段は、
前記順位付けの結果に基づいて、前記目盛りを含む領域の候補または前記目盛り位置の候補の選択を行うこと、
を特徴とする計器読み取りシステム。
The meter reading system of claim 1, comprising:
At least, for each type of meter, an instrument information storage unit that stores information regarding the shape of the area including the scale, the type of information regarding the constraints, and the order in which the constraints are input, and the type of the meter for which settings are to be made are acquired. comprising a type acquisition means, and a selection means for selecting a candidate for an area including the scale displayed on the image or a candidate for the scale position;
The setting means includes:
The information corresponding to the type of the acquired instrument is acquired from the instrument information storage means, and based on the acquired information, constraints necessary for ranking candidates for the area including the scale or candidates for the scale position. Get information about conditions,
The ranking means is
Based on the acquired information, rank candidates for a region including the scale or candidates for the scale position;
The selection means is
selecting a candidate for a region including the scale or a candidate for the scale position based on the ranking result;
An instrument reading system featuring:
コンピュータを、
計器の画像を取得する取得手段、
計器が示す数値を読み取るために必要な計器の情報を設定するための設定手段、
設定された前記計器の情報に基づいて前記計器の画像から計器が示す数値を読み取る読み取り手段、
前記計器が示す数値を読み取った結果を表示する表示手段、として機能させる計器読み取りプログラムであって、
前記設定手段を、
前記計器の画像における目盛りを含む領域の候補を検出する領域候補検出手段、
検出された目盛りを含む領域の各候補に対して、目盛り位置の候補を検出する位置候補検出手段、
前記目盛りを含む領域の候補および前記目盛り位置の候補から、最適な候補を選択するための制約条件に関する情報を入力する入力手段、
前記目盛りを含む領域の候補および前記目盛り位置の候補と、入力された前記制約条件とに基づいて、前記目盛りを含む領域の候補と前記目盛り位置の候補とに順位付けを行う順位付け手段、
前記順位付けの結果に基づいて最適な目盛りを含む領域の候補と目盛り位置の候補を表示する表示手段、
として機能させることを特徴とする計器読み取りプログラム。
computer,
an acquisition means for acquiring an image of the instrument;
a setting means for setting instrument information necessary to read the numerical value indicated by the instrument;
reading means for reading a numerical value indicated by the meter from an image of the meter based on set information of the meter;
An instrument reading program that functions as a display means for displaying a result of reading a numerical value indicated by the instrument,
The setting means,
region candidate detection means for detecting a region candidate including a scale in the image of the instrument;
position candidate detection means for detecting a candidate scale position for each candidate in a region including the detected scale;
input means for inputting information regarding constraint conditions for selecting an optimal candidate from candidates for the region including the scale and candidates for the scale position;
a ranking means for ranking the candidates for the region including the scale and the candidates 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 candidates for an area including an optimal scale and candidates for a scale position based on the ranking result;
An instrument reading program characterized by functioning as an instrument reading program.
JP2020193527A 2020-11-20 2020-11-20 Instrument reading system, instrument reading program Active JP7411534B2 (en)

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 JP2022082140A (en) 2022-06-01
JP7411534B2 true 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)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004133560A (en) 2002-10-08 2004-04-30 Central Res Inst Of Electric Power Ind Automatic reading method and automatic reader for analog meter
JP2020181467A (en) 2019-04-26 2020-11-05 Gmoクラウド株式会社 Meter reading system, meter reading method, and program
JP2020194275A (en) 2019-05-27 2020-12-03 株式会社東芝 Reading system, mobile body, reading method, program, and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004133560A (en) 2002-10-08 2004-04-30 Central Res Inst Of Electric Power Ind Automatic reading method and automatic reader for analog meter
JP2020181467A (en) 2019-04-26 2020-11-05 Gmoクラウド株式会社 Meter reading system, meter reading method, and program
JP2020194275A (en) 2019-05-27 2020-12-03 株式会社東芝 Reading system, mobile body, reading method, program, and storage medium

Also Published As

Publication number Publication date
JP2022082140A (en) 2022-06-01

Similar Documents

Publication Publication Date Title
JP5963325B2 (en) Apparatus, method, and program for presenting information specified based on marker
EP2733629A1 (en) System for associating tag information with images supporting image feature search
US8645901B2 (en) Visualization and information display for shapes in displayed graphical images based on a cursor
US8438531B2 (en) Visualization and information display for shapes in displayed graphical images
US20150242114A1 (en) Electronic device, method and computer program product
US20110050686A1 (en) Three-dimensional data display apparatus and method
JP5877824B2 (en) Information processing system, information processing method, and information processing program
TW200941314A (en) Touch sensor device and pointing coordinate determination method thereof
JP7013994B2 (en) Medical image display device and program
JP2012123608A (en) Gesture recognition device, method, program and computer readable medium storing program
CN103140826B (en) Information terminal device and the display methods of contact panel
CN108027903B (en) Information processing apparatus, control method, and program
US8533626B2 (en) Visualization and information display for shapes in displayed graphical images based on user zone of focus
JP4950716B2 (en) Image processing system and scanning electron microscope apparatus
CN103529933A (en) Method and system for controlling eye tracking
JP2013182524A (en) Image processing apparatus and image processing method
JP7411534B2 (en) Instrument reading system, instrument reading program
US11994665B2 (en) Systems and methods for processing electronic images of pathology data and reviewing the pathology data
CN105930845A (en) Method of teaching for parts information and device thereof
CN104869268B (en) Display control unit, image forming apparatus and display control method
WO2022022757A1 (en) A method for testing an embedded system of a device, a method for identifying a state of the device and a system for these methods
US20150277705A1 (en) Graphical user interface user input technique for choosing and combining digital images as video
JP6256545B2 (en) Information processing apparatus, control method and program thereof, and information processing system, control method and program thereof
US20230367473A1 (en) Ink data generation apparatus, method, and program
JP5683764B1 (en) Data input system, data input method, data input program, and data input device

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