JP7067018B2 - Recognition program, recognition method and recognition device - Google Patents

Recognition program, recognition method and recognition device Download PDF

Info

Publication number
JP7067018B2
JP7067018B2 JP2017208639A JP2017208639A JP7067018B2 JP 7067018 B2 JP7067018 B2 JP 7067018B2 JP 2017208639 A JP2017208639 A JP 2017208639A JP 2017208639 A JP2017208639 A JP 2017208639A JP 7067018 B2 JP7067018 B2 JP 7067018B2
Authority
JP
Japan
Prior art keywords
digit
display area
area
meter
character piece
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
JP2017208639A
Other languages
Japanese (ja)
Other versions
JP2019082761A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2017208639A priority Critical patent/JP7067018B2/en
Publication of JP2019082761A publication Critical patent/JP2019082761A/en
Application granted granted Critical
Publication of JP7067018B2 publication Critical patent/JP7067018B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、認識プログラム、認識方法および認識装置に関する。 The present invention relates to a recognition program, a recognition method and a recognition device.

電気やガス、水道などのメータを始め、遠隔地に設置される各種のメータを監視するために、メータの計測値に関する表示を画像処理によって認識する技術が知られている。 In order to monitor various meters installed in remote areas, including meters for electricity, gas, and water, there is known a technique for recognizing the display related to the measured value of the meter by image processing.

例えば、ドラム式メータの表示を認識する技術の一例として、現字形計器認識処理装置が提案されている。この現字形計器認識処理装置に関する説明として、「0から9の数字を縦に並べた照合用モデル画像(数字車図柄を展開したものに相当)をあらかじめ用意し、照合用モデル画像として登録しておく。そして、取得された表示値が、数字車のどの位置に最も一致するかを比較・検索し、検出された位置情報から、表示されている値を小数点単位で算出する・・・」といった記載がある。 For example, as an example of a technique for recognizing a display of a drum type meter, a current character instrument recognition processing device has been proposed. As an explanation of this current character instrument recognition processing device, "a collation model image (corresponding to an expanded number car pattern) in which numbers from 0 to 9 are arranged vertically is prepared in advance and registered as a collation model image. Then, compare and search which position of the number car the acquired display value best matches, and calculate the displayed value in decimal units from the detected position information. " There is a description.

特開2003-242444号公報Japanese Patent Application Laid-Open No. 2003-242444 特開平9-44601号公報Japanese Unexamined Patent Publication No. 9-44601

しかしながら、上記の技術では、メータ認識のロバスト性が低下する場合がある。 However, with the above technique, the robustness of meter recognition may decrease.

すなわち、ドラム式メータが搭載されるドラムで数字と数字が配置される間隔は、メータの種類によって異なることもあれば、同一の種類のメータであってもその製造元によって異なる場合がある。それにも関わらず、上記の現字形計器認識処理装置では、ドラム式メータの最終桁のドラムに表示される数字から数値を小数点単位で算出するために、0から9の数字を縦に並べた照合用モデル画像が画一的に使用される。このため、照合用モデル画像における数字と数字の間隔がドラムにおける数字と数字の間隔に一致しない場合、照合用モデル画像の数字とドラムの数値との間に位置ずれが生じるので、ドラムに表示される数字が誤認識される場合がある。このように、上記の現字形計器認識処理装置では、照合用モデル画像における数字と数字の間隔と、ドラムにおける数字と数字の間隔とが一致するという制約が課されるので、文字認識のロバスト性が低下する。 That is, the interval at which the numbers are arranged on the drum on which the drum type meter is mounted may differ depending on the type of meter, or may differ depending on the manufacturer of the same type of meter. Nevertheless, in the above-mentioned current character instrument recognition processing device, in order to calculate the numerical value in decimal units from the number displayed on the drum of the last digit of the drum type meter, the numbers 0 to 9 are arranged vertically for collation. The model image is used uniformly. Therefore, if the number-to-number spacing in the matching model image does not match the number-to-number spacing in the drum, the numbers in the matching model image and the numbers in the drum will be misaligned and will be displayed on the drum. Numbers may be misrecognized. In this way, in the above-mentioned current character instrument recognition processing device, the constraint that the number-to-number spacing in the matching model image and the number-to-number spacing in the drum match is imposed, so that the robustness of character recognition is imposed. Decreases.

1つの側面では、本発明は、メータ認識のロバスト性を向上させることができる認識プログラム、認識方法および認識装置を提供することを目的とする。 In one aspect, it is an object of the present invention to provide a recognition program, recognition method and recognition device capable of improving the robustness of meter recognition.

一態様では、認識プログラムは、画像内の文字の線画領域内に複数の線画領域を特定した場合に、それぞれの線画領域からそれぞれの文字の候補を特定し、特定した複数の文字の候補の内、線画領域が離れている場合における文字の組合せの条件を満たすそれぞれの文字を特定する、処理をコンピュータに実行させる。 In one aspect, when the recognition program identifies a plurality of line drawing areas in the line drawing area of characters in the image, the recognition program identifies each character candidate from each line drawing area, and among the specified plurality of character candidates. , Specify each character that satisfies the condition of the character combination when the line drawing area is separated, and let the computer execute the process.

メータ認識のロバスト性を向上させることができる。 The robustness of meter recognition can be improved.

図1は、実施例1に係るメータ監視システムの構成例を示す図である。FIG. 1 is a diagram showing a configuration example of the meter monitoring system according to the first embodiment. 図2は、実施例1に係るサーバ装置の機能的構成の一例を示すブロック図である。FIG. 2 is a block diagram showing an example of the functional configuration of the server device according to the first embodiment. 図3は、メータ表示領域の切出しから数字表示領域への分割までの模式図の一例を示す図である。FIG. 3 is a diagram showing an example of a schematic diagram from cutting out the meter display area to dividing into the number display area. 図4は、複数の文字片候補の分離方法の一例を示す図である。FIG. 4 is a diagram showing an example of a method for separating a plurality of character piece candidates. 図5は、部分テンプレート画像の切出し方法の一例を示す図である。FIG. 5 is a diagram showing an example of a method of cutting out a partial template image. 図6は、部分テンプレート画像の切出し方法の一例を示す図である。FIG. 6 is a diagram showing an example of a method of cutting out a partial template image. 図7Aは、空白部および最終桁の数字表示領域の位置関係の一例を示す図である。FIG. 7A is a diagram showing an example of the positional relationship between the blank portion and the numerical display area of the final digit. 図7Bは、空白部および最終桁の数字表示領域の位置関係の一例を示す図である。FIG. 7B is a diagram showing an example of the positional relationship between the blank portion and the numerical display area of the final digit. 図7Cは、空白部および最終桁の数字表示領域の位置関係の一例を示す図である。FIG. 7C is a diagram showing an example of the positional relationship between the blank portion and the numerical display area of the final digit. 図8は、実施例1に係るメータ計測値の監視処理の手順を示すフローチャートである。FIG. 8 is a flowchart showing a procedure for monitoring the meter measurement value according to the first embodiment. 図9は、実施例1に係る認識処理の手順を示すフローチャートである。FIG. 9 is a flowchart showing the procedure of the recognition process according to the first embodiment. 図10は、実施例1及び実施例2に係る認識プログラムを実行するコンピュータのハードウェア構成例を示す図である。FIG. 10 is a diagram showing a hardware configuration example of a computer that executes the recognition program according to the first and second embodiments.

以下に添付図面を参照して本願に係る認識プログラム、認識方法および認識装置について説明する。なお、この実施例は開示の技術を限定するものではない。そして、各実施例は、処理内容を矛盾させない範囲で適宜組み合わせることが可能である。 The recognition program, recognition method and recognition device according to the present application will be described below with reference to the accompanying drawings. It should be noted that this embodiment does not limit the disclosed technique. Then, each embodiment can be appropriately combined as long as the processing contents do not contradict each other.

[システム構成]
図1は、実施例1に係るメータ監視システムの構成例を示す図である。図1に示すメータ監視システム1は、遠隔地等に設置されるドラム式メータ2A~2Cに表示された文字を画像処理によって認識することにより、クライアント端末30にメータ監視サービスを提供するものである。
[System configuration]
FIG. 1 is a diagram showing a configuration example of the meter monitoring system according to the first embodiment. The meter monitoring system 1 shown in FIG. 1 provides a meter monitoring service to the client terminal 30 by recognizing characters displayed on the drum type meters 2A to 2C installed in a remote location or the like by image processing. ..

図1に示すように、メータ監視システム1には、サーバ装置10と、カメラ20A~20Cと、クライアント端末30とが含まれる。以下では、ドラム式メータ2A~2Cを総称する場合に「ドラム式メータ2」と記載すると共に、カメラ20A~20Cを総称する場合に「カメラ20」と記載することがある。なお、図1には、サーバ装置10およびクライアント端末30を1つずつ例示したが、1つのサーバ装置30に複数のクライアント端末30が収容されることとしてもかまわない。また、図1には、3つのカメラ20を例示したが、サーバ装置10に収容されるカメラ20の数は、3つに限定されず、単数であっても複数であってもかまわない。 As shown in FIG. 1, the meter monitoring system 1 includes a server device 10, cameras 20A to 20C, and a client terminal 30. In the following, when the drum type meters 2A to 2C are collectively referred to as "drum type meter 2", and when the cameras 20A to 20C are collectively referred to, the term "camera 20" may be used. Although FIG. 1 illustrates one server device 10 and one client terminal 30, one server device 30 may accommodate a plurality of client terminals 30. Further, although three cameras 20 are illustrated in FIG. 1, the number of cameras 20 accommodated in the server device 10 is not limited to three, and may be singular or plural.

これらサーバ装置10、カメラ20およびクライアント端末30の間は、任意のネットワークNWを介して接続される。このネットワークNWは、有線または無線を問わず、インターネット、LAN(Local Area Network)やVPN(Virtual Private Network)などの任意の種類の通信網により構築することができる。 The server device 10, the camera 20, and the client terminal 30 are connected via an arbitrary network NW. This network NW can be constructed by any kind of communication network such as the Internet, LAN (Local Area Network) and VPN (Virtual Private Network) regardless of whether it is wired or wireless.

ドラム式メータ2は、複数桁のドラムを回転させることにより、計測値を表示するメータである。 The drum type meter 2 is a meter that displays measured values by rotating a drum having a plurality of digits.

ここで、ドラム式メータ2が搭載するドラムには、線画の一例として、数字が配置される例を挙げて以下の説明を行うこととする。以下では、メータが計測する物理量や指標などの計測値のことを「メータ計測値」と記載することがある。また、メータ計測値に対応する数字列が表示される領域のことを「メータ表示領域」と記載することがある。さらに、メータ表示領域の各桁に表示される1字分の数字の領域のことを「数字表示領域」と記載することがある。なお、以下では、桁数は、左端の桁から右端の桁へ向けて昇順にカウントを開始し、左端の桁のことを「開始桁」と記載し、右端の桁のことを「最終桁」と記載することがある。 Here, as an example of a line drawing on the drum mounted on the drum type meter 2, the following description will be given by giving an example in which numbers are arranged. In the following, measured values such as physical quantities and indicators measured by the meter may be referred to as "meter measured values". Further, the area where the number string corresponding to the meter measurement value is displayed may be described as "meter display area". Further, the area of numbers for one character displayed in each digit of the meter display area may be referred to as a "number display area". In the following, the number of digits starts counting from the leftmost digit to the rightmost digit in ascending order, the leftmost digit is described as the "starting digit", and the rightmost digit is referred to as the "last digit". May be described as.

このようなドラム式メータ2のメータ計測値が画像認識される場合、次に挙げる(1)~(7)の共通項が活用される。 When the meter measurement value of the drum type meter 2 is image-recognized, the following common items (1) to (7) are utilized.

(1)ドラムの円周部分には、一例として、0~9までの数字が上から順番に配置される。
(2)ドラムは、メータ表示領域の手前側から奥側の方向、すなわち鉛直の下方から上方へ向かって回転する。
(3)最終桁のドラムは、メータ計測値の小数点レベルの変動にも連動して回転する。
(4)最終桁以外の桁のドラムは、1つ下位の桁の数字が「9」から「0」へ繰り上がるタイミングに合わせて1つインクリメントされた数字が定位置となるまで回転する。
(5)数字表示領域は、ドラム上に配置される1字分の数字のサイズよりも大きい。
(6)数字表示領域には、同時に2つの数字が出現しうるが、完全には数字表示領域に収まらない。
(7)ドラム上に配置される数字と数字の間には、区切りとして空白部が挿入される。
(1) As an example, numbers from 0 to 9 are arranged in order from the top on the circumferential portion of the drum.
(2) The drum rotates in the direction from the front side to the back side of the meter display area, that is, from the vertical lower side to the upper side.
(3) The drum of the last digit rotates in conjunction with the fluctuation of the decimal point level of the meter measurement value.
(4) The drum of a digit other than the last digit rotates until the digit incremented by one in accordance with the timing at which the digit of the next lower digit moves from "9" to "0" becomes a fixed position.
(5) The number display area is larger than the size of a number for one character arranged on the drum.
(6) Two numbers may appear in the number display area at the same time, but they do not completely fit in the number display area.
(7) A blank portion is inserted as a delimiter between the numbers arranged on the drum.

サーバ装置10は、上記のメータ監視サービスをクライアント端末30に提供するコンピュータである。 The server device 10 is a computer that provides the above-mentioned meter monitoring service to the client terminal 30.

ここで言う「サーバ装置」というラベルは、あくまで機能の一面からの分類であってコンピュータの種類やそのハードウェア構成は特定のものに限定されない。例えば、サーバ装置10は、パッケージソフトウェア又はオンラインソフトウェアとして、上記のメータ監視サービスを実現するメータ監視プログラムを所望のコンピュータにインストールさせることによって実装できる。例えば、サーバ装置10は、上記のメータ監視サービスを提供するWebサーバとして実装することとしてもよいし、アウトソーシングによって上記のメータ監視サービスを提供するクラウドとして実装することとしてもかまわない。 The label "server device" referred to here is only a classification from one aspect of the function, and the type of computer and its hardware configuration are not limited to a specific one. For example, the server device 10 can be implemented as package software or online software by installing a meter monitoring program that realizes the above meter monitoring service on a desired computer. For example, the server device 10 may be implemented as a Web server that provides the meter monitoring service, or may be implemented as a cloud that provides the meter monitoring service by outsourcing.

カメラ20は、CCD(Charge Coupled Device)やCMOS(Complementary Metal Oxide Semiconductor)などの撮像素子を搭載する撮像装置である。 The camera 20 is an image pickup device equipped with an image pickup device such as a CCD (Charge Coupled Device) or a CMOS (Complementary Metal Oxide Semiconductor).

例えば、カメラ20は、1対1に対応するドラム式メータ2に併設される。このとき、カメラ20は、少なくともドラム式メータ2のメータ表示領域がカメラ20の撮像範囲に含まれる状態で配置される。このようなカメラ20の配置の下、カメラ20は、サーバ装置10からのリクエストまたはサーバ装置10等の外部装置により指示された設定、例えばタイマなどにしたがってドラム式メータ2のメータ表示領域を撮像する。以下では、ドラム式メータ2のメータ表示領域が撮像された画像のことを「メータ画像」と記載する場合がある。このメータ画像は、ドラム式メータ2A~2Cなどの個体を識別できるように、ドラム式メータ2の識別情報と共にサーバ装置10へアップロードされる。このとき、カメラ20は、リアルタイムでメータ画像をアップロードすることとしてもよいし、所定の期間に渡って蓄積されたメータ画像をバッチ処理でアップロードすることとしてもかまわない。なお、ここでは、ドラム式メータ2およびカメラ20が1対1で併設される場合を例示したが、必ずしもドラム式メータ2およびカメラ20を1対1で併設せずともかまわない。例えば、1つのカメラ20が複数のドラム式メータ2を撮影できる場合、複数のドラム式メータ2につき1つのカメラ20を併設することとしてもかまわない。 For example, the camera 20 is attached to a drum type meter 2 having a one-to-one correspondence. At this time, the camera 20 is arranged so that at least the meter display area of the drum type meter 2 is included in the imaging range of the camera 20. Under such an arrangement of the camera 20, the camera 20 captures the meter display area of the drum meter 2 according to a request from the server device 10 or a setting instructed by an external device such as the server device 10, for example, a timer. .. In the following, an image in which the meter display area of the drum type meter 2 is captured may be referred to as a “meter image”. This meter image is uploaded to the server device 10 together with the identification information of the drum type meter 2 so that the individual such as the drum type meters 2A to 2C can be identified. At this time, the camera 20 may upload the meter image in real time, or may upload the meter image accumulated over a predetermined period by batch processing. Although the case where the drum type meter 2 and the camera 20 are arranged side by side is illustrated here, the drum type meter 2 and the camera 20 may not necessarily be arranged side by side on a one-to-one basis. For example, if one camera 20 can shoot a plurality of drum-type meters 2, one camera 20 may be provided for each of the plurality of drum-type meters 2.

クライアント端末30は、上記のメータ監視サービスの提供を受けるコンピュータである。 The client terminal 30 is a computer that receives the above-mentioned meter monitoring service.

ここで言う「クライアント端末」というラベルも、あくまで機能の一面からの分類であってコンピュータの種類やそのハードウェア構成は特定のものに限定されない。例えば、クライアント端末30には、パーソナルコンピュータやワークステーションなどのデスクトップ型のコンピュータなどが対応する。このようなデスクトップ型のコンピュータに限定されず、ラックトップ型のコンピュータや携帯端末装置、ウェアラブル端末などがクライアント端末として採用されることとしてもかまわない。 The label "client terminal" here is also a classification from one aspect of the function, and the type of computer and its hardware configuration are not limited to a specific one. For example, the client terminal 30 corresponds to a desktop computer such as a personal computer or a workstation. Not limited to such a desktop computer, a rack-top computer, a mobile terminal device, a wearable terminal, or the like may be adopted as a client terminal.

例えば、クライアント端末30は、上記のメータ監視サービスの利用が許可されたアカウントを通じてサーバ装置10へのログイン認証に成功した場合、サーバ装置10からの指示にしたがってドラム式メータ2のメータ計数値を表示するメータ監視画面等を表示することができる。この他、クライアント端末30は、予め指定された定期日時などに、サーバ装置10からのプッシュ通知としてメータ計測値などを受け付けることもできる。 For example, when the client terminal 30 succeeds in login authentication to the server device 10 through an account authorized to use the meter monitoring service, the client terminal 30 displays the meter count value of the drum type meter 2 according to the instruction from the server device 10. It is possible to display a meter monitoring screen or the like. In addition, the client terminal 30 can also receive meter measurement values and the like as push notifications from the server device 10 at a predetermined periodic date and time.

[サーバ装置10の機能的構成]
図2は、実施例1に係るサーバ装置10の機能的構成の一例を示すブロック図である。図2に示すように、サーバ装置10は、通信I/F(InterFace)部11と、記憶部13と、制御部15とを有する。図2には、データの授受の関係を表す実線が示されているが、説明の便宜上、最小限の部分について示されているに過ぎない。すなわち、各処理部に関するデータの入出力は、図示の例に限定されず、図示以外のデータの入出力、例えば処理部及び処理部の間、処理部及びデータの間、並びに、処理部及び外部装置の間のデータの入出力が行われることとしてもかまわない。
[Functional configuration of server device 10]
FIG. 2 is a block diagram showing an example of the functional configuration of the server device 10 according to the first embodiment. As shown in FIG. 2, the server device 10 has a communication I / F (InterFace) unit 11, a storage unit 13, and a control unit 15. In FIG. 2, a solid line showing the relationship between data transfer is shown, but for convenience of explanation, only the minimum part is shown. That is, the input / output of data relating to each processing unit is not limited to the illustrated example, and the input / output of data other than those shown in the illustration, for example, between the processing unit and the processing unit, between the processing unit and the data, and between the processing unit and the outside. Data may be input and output between the devices.

通信I/F部11は、他の装置、例えばカメラ20やクライアント端末30との間で通信制御を行うインタフェースである。 The communication I / F unit 11 is an interface for controlling communication with another device, for example, a camera 20 or a client terminal 30.

一実施形態として、通信I/F部11には、LAN(Local Area Network)カードなどのネットワークインタフェースカードを採用できる。例えば、通信I/F部11は、カメラ20から画像を受信したり、カメラ20に関する各種の設定、例えばカメラ20に撮像を指示する日時などをカメラ20へ送信したりすることができる。また、通信I/F部11は、クライアント端末30からログイン認証に用いるアカウント情報を受け付けたり、ログイン認証に成功したクライアント端末30にメータ監視画面を送信したりする。 As one embodiment, a network interface card such as a LAN (Local Area Network) card can be adopted for the communication I / F unit 11. For example, the communication I / F unit 11 can receive an image from the camera 20 and transmit various settings related to the camera 20, such as a date and time instructing the camera 20 to take an image, to the camera 20. Further, the communication I / F unit 11 accepts account information used for login authentication from the client terminal 30, and transmits a meter monitoring screen to the client terminal 30 that has succeeded in login authentication.

記憶部13は、制御部15で実行されるOS(Operating System)を始め、上記のメータ監視サービスを実現するアプリケーションプログラムなどの各種プログラムに用いられるデータを記憶する記憶デバイスである。 The storage unit 13 is a storage device that stores data used in various programs such as an OS (Operating System) executed by the control unit 15 and an application program that realizes the meter monitoring service.

一実施形態として、記憶部13は、サーバ装置10における補助記憶装置として実装することができる。例えば、記憶部13には、HDD(Hard Disk Drive)、光ディスクやSSD(Solid State Drive)などを採用できる。なお、記憶部13は、必ずしも補助記憶装置として実装されずともよく、サーバ装置10における主記憶装置として実装することもできる。この場合、記憶部13には、各種の半導体メモリ素子、例えばRAM(Random Access Memory)やフラッシュメモリを採用できる。 As one embodiment, the storage unit 13 can be implemented as an auxiliary storage device in the server device 10. For example, an HDD (Hard Disk Drive), an optical disk, an SSD (Solid State Drive), or the like can be adopted as the storage unit 13. The storage unit 13 does not necessarily have to be mounted as an auxiliary storage device, and may be mounted as a main storage device in the server device 10. In this case, various semiconductor memory elements such as RAM (Random Access Memory) and flash memory can be adopted for the storage unit 13.

記憶部13は、制御部15で実行されるプログラムに用いられるデータの一例として、テンプレートデータ13aと、メータ計測値データ13bとを記憶する。これらのデータ以外にも、記憶部13には、他の電子データが記憶されることとしてもかまわない。例えば、記憶部13は、クライアント端末30を使用するユーザに付与されたアカウント情報なども併せて記憶することもできる。なお、テンプレートデータ13aおよびメータ計測値データ13bの説明は、各データの登録または参照が行われる制御部15の説明と合わせて行うこととする。 The storage unit 13 stores the template data 13a and the meter measurement value data 13b as an example of the data used in the program executed by the control unit 15. In addition to these data, other electronic data may be stored in the storage unit 13. For example, the storage unit 13 can also store account information and the like given to the user who uses the client terminal 30. The explanation of the template data 13a and the meter measurement value data 13b will be given together with the explanation of the control unit 15 in which each data is registered or referred to.

制御部15は、サーバ装置10の全体制御を行う処理部である。 The control unit 15 is a processing unit that controls the entire server device 10.

一実施形態として、制御部15は、CPU(Central Processing Unit)やMPU(Micro Processing Unit)などのハードウェアプロセッサにより実装することができる。ここでは、プロセッサの一例として、CPUやMPUを例示したが、汎用型および特化型を問わず、任意のプロセッサ、例えばGPGPU(Graphics Processing Unit)やDSP(Digital Signal Processor)により実装することができる。この他、制御部15は、ASIC(Application Specific Integrated Circuit)やFPGA(Field Programmable Gate Array)などのハードワイヤードロジックによって実現されることとしてもかまわない。 As one embodiment, the control unit 15 can be implemented by a hardware processor such as a CPU (Central Processing Unit) or an MPU (Micro Processing Unit). Here, a CPU and an MPU are exemplified as an example of a processor, but it can be implemented by any processor, for example, a GPGPU (Graphics Processing Unit) or a DSP (Digital Signal Processor), regardless of whether it is a general-purpose type or a specialized type. .. In addition, the control unit 15 may be realized by hard-wired logic such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array).

制御部15は、図示しない主記憶装置として実装されるDRAM(Dynamic Random Access Memory)やSRAM(Static Random Access Memory)などのRAMのワークエリア上に、上記のメータ監視プログラムを展開することにより、下記の処理部を仮想的に実現する。 The control unit 15 deploys the above meter monitoring program on a work area of a RAM such as a DRAM (Dynamic Random Access Memory) or a SRAM (Static Random Access Memory) mounted as a main storage device (not shown) to be described below. The processing part of is virtually realized.

制御部15は、図2に示すように、取得部15aと、切出し部15bと、認識部15cと、分離部15dと、第1の特定部15eと、第2の特定部15fと、組み立て部15gとを有する。 As shown in FIG. 2, the control unit 15 includes an acquisition unit 15a, a cutting unit 15b, a recognition unit 15c, a separation unit 15d, a first specific unit 15e, a second specific unit 15f, and an assembly unit. It has 15 g and.

取得部15aは、画像を取得する処理部である。 The acquisition unit 15a is a processing unit for acquiring an image.

一実施形態として、取得部15aは、カメラ20からサーバ装置10へメータ画像をアップロードさせることにより、当該メータ画像を取得することができる。例えば、取得部15aは、カメラ20によりメータ画像が撮像される度に当該メータ画像をリアルタイムでアップロードさせることができる。他の一例として、取得部15aは、クライアント端末30からアップロードの指示操作が実行された場合、それまでにカメラ20に保存されていたメータ画像をアップロードさせることもできる。更なる一例として、取得部15aは、一定の周期、例えば1時間や1日、1週間、1ヶ月ごとにメータ画像をアップロードさせることとしてもよいし、定期日時、例えば毎日12時や毎月15日などにメータ画像をアップロードさせることとしてもかまわない。このようにカメラ20からアップロードされたメータ画像は、記憶部13へ保存しておくこともできる。この場合、カメラ20に対応付けられたドラム式メータ2の識別情報をメータ画像のファイル名やメータ画像のメタデータ等に埋め込むことにより、カメラ20により撮像されたドラム式メータ2の個体が識別可能な状態でメータ画像を記憶部13へ保存することができる。 As one embodiment, the acquisition unit 15a can acquire the meter image by uploading the meter image from the camera 20 to the server device 10. For example, the acquisition unit 15a can upload the meter image in real time each time the meter image is captured by the camera 20. As another example, when the upload instruction operation is executed from the client terminal 30, the acquisition unit 15a can also upload the meter image stored in the camera 20 up to that point. As a further example, the acquisition unit 15a may have the meter image uploaded at regular intervals, for example, every hour, one day, one week, or one month, or at a regular date and time, for example, at 12:00 every day or on the 15th day of every month. It does not matter if you let the meter image be uploaded to. The meter image uploaded from the camera 20 in this way can also be stored in the storage unit 13. In this case, by embedding the identification information of the drum type meter 2 associated with the camera 20 in the file name of the meter image, the metadata of the meter image, or the like, the individual of the drum type meter 2 imaged by the camera 20 can be identified. The meter image can be stored in the storage unit 13 in such a state.

他の実施形態として、取得部15aは、メータ画像を蓄積するメモリカードやUSB(Universal Serial Bus)メモリなどのリムーバブルメディアからメータ画像を取得することもできる。更なる一例として、取得部15aは、カメラ20以外の他の外部装置からネットワークNWを介して受信することによってメータ画像を取得することもできる。このように取得部15aがメータ画像を取得する経路は任意の経路であってよく、特定の経路に限定されない。 As another embodiment, the acquisition unit 15a can also acquire a meter image from a removable medium such as a memory card or a USB (Universal Serial Bus) memory that stores the meter image. As a further example, the acquisition unit 15a can also acquire a meter image by receiving it from an external device other than the camera 20 via the network NW. As described above, the route for the acquisition unit 15a to acquire the meter image may be an arbitrary route and is not limited to a specific route.

切出し部15bは、画像からメータ表示領域を切り出す処理部である。 The cutting unit 15b is a processing unit that cuts out a meter display area from an image.

一実施形態として、切出し部15bは、取得部15aにより取得されたメータ画像から、切出しがあらかじめ設定された領域をメータ表示領域として切り出すことができる。他の一例として、切出し部15bは、取得部15aにより取得されたメータ画像から、ドラム式メータ2のメータ表示領域の近傍に配置されたマーカを認識する。このマーカとメータ表示領域との間の相対位置をあらかじめキャリブレーションしておくことにより、切出し部15bは、メータ画像上のマーカの位置からメータ表示領域の位置を求めて当該メータ表示領域を切り出すことができる。 As one embodiment, the cutout unit 15b can cut out a region in which the cutout is preset as a meter display area from the meter image acquired by the acquisition unit 15a. As another example, the cutting unit 15b recognizes a marker arranged in the vicinity of the meter display area of the drum type meter 2 from the meter image acquired by the acquisition unit 15a. By calibrating the relative position between the marker and the meter display area in advance, the cutting unit 15b obtains the position of the meter display area from the position of the marker on the meter image and cuts out the meter display area. Can be done.

他の実施形態として、切出し部15bは、取得部15aにより取得されたメータ画像をクライアント端末30に表示させると共に当該メータ画像から切り出す矩形領域の照準を表示させる。この矩形領域の照準をメータ表示領域に合わせるユーザ操作をクライアント端末30を介して受け付けることにより、メータ表示領域を切り出すこともできる。この他、切出し部15bは、メータ表示領域に含まれる数字の背景に対応する色情報に基づいてメータ表示領域を切り出すこともできる。 As another embodiment, the cutout unit 15b causes the client terminal 30 to display the meter image acquired by the acquisition unit 15a and displays the aim of the rectangular region cut out from the meter image. The meter display area can also be cut out by accepting the user operation of aligning the aim of the rectangular area with the meter display area via the client terminal 30. In addition, the cutting unit 15b can also cut out the meter display area based on the color information corresponding to the background of the numbers included in the meter display area.

このようにメータ画像からメータ表示領域が切り出された後、切出し部15bは、メータ表示領域を各桁の数字表示領域へ分割する。例えば、切出し部15bは、メータ表示領域上であらかじめ分割が設定された各桁の区画にしたがって、メータ画像から切り出されたメータ表示領域を数字表示領域に分割する。他の一例として、切出し部15bは、メータ表示領域に桁が整列する桁の方向と同一の方向に向かって、メータ画像から切り出されたメータ表示領域に含まれる数字の背景に対応する色を探索することにより、メータ表示領域から数字と数字が並ぶ隙間を検出する。その上で、切出し部15bは、数字の隙間を桁の方向と直交する方向に区切ることによって当該メータ表示領域を複数の数字表示領域に分割することとしてもよい。 After the meter display area is cut out from the meter image in this way, the cutout unit 15b divides the meter display area into a numerical display area of each digit. For example, the cutting unit 15b divides the meter display area cut out from the meter image into a number display area according to the division of each digit in which division is set in advance on the meter display area. As another example, the cutting unit 15b searches for a color corresponding to the background of the numbers included in the meter display area cut out from the meter image in the same direction as the direction of the digits in which the digits are aligned in the meter display area. By doing so, the gap between the numbers and the numbers is detected from the meter display area. Further, the cutout portion 15b may divide the meter display area into a plurality of number display areas by dividing the gap between the numbers in the direction orthogonal to the digit direction.

図3は、メータ表示領域の切出しから数字表示領域への分割までの模式図の一例を示す図である。図3に示すように、取得部15aによりメータ画像300が取得されると、切出し部15bは、当該メータ画像300からドラム式メータ2のメータ表示領域310を切り出す。このようにメータ画像300からメータ表示領域310が切り出された後、切出し部15bは、メータ表示領域310を各桁の数字表示領域310A~310Fへ分割する。この場合、開始桁「1」である数字表示領域310Aから順に最終桁「N=6」である数字表示領域310Fまで6つ数字表示領域が得られる。 FIG. 3 is a diagram showing an example of a schematic diagram from cutting out the meter display area to dividing into the number display area. As shown in FIG. 3, when the meter image 300 is acquired by the acquisition unit 15a, the cutting unit 15b cuts out the meter display area 310 of the drum type meter 2 from the meter image 300. After the meter display area 310 is cut out from the meter image 300 in this way, the cutout unit 15b divides the meter display area 310 into the number display areas 310A to 310F of each digit. In this case, six number display areas can be obtained from the number display area 310A having the start digit "1" to the number display area 310F having the final digit "N = 6" in order.

認識部15cは、数字表示領域に対応する文字を認識する処理部である。 The recognition unit 15c is a processing unit that recognizes characters corresponding to the number display area.

一実施形態として、認識部15cは、図示しない桁数カウンタが保持するレジスタの値nを初期値、例えば「1」に初期化する。続いて、認識部15cは、切出し部15bによりメータ表示領域から分割された数字表示領域のうち開始桁「1」の数字表示領域から順に選択する。その後、認識部15cは、最終桁「N」の数字表示領域が選択されるまで、記憶部13に記憶されたテンプレートデータ13aを参照して、各桁の数字表示領域に次のような画像処理を実行することによって数字表示領域に対応する数字を認識する。このテンプレートデータ13aの一例として、各数字のテンプレート画像、すなわち数字「0」のテンプレート画像、数字「1」のテンプレート画像、・・・、数字「9」のテンプレート画像といった10種類のテンプレート画像が参照される。 As one embodiment, the recognition unit 15c initializes the value n of the register held by the digit counter (not shown) to an initial value, for example, "1". Subsequently, the recognition unit 15c selects in order from the number display area of the start digit "1" in the number display area divided from the meter display area by the cutting unit 15b. After that, the recognition unit 15c refers to the template data 13a stored in the storage unit 13 until the number display area of the final digit "N" is selected, and performs the following image processing in the number display area of each digit. Recognize the number corresponding to the number display area by executing. As an example of this template data 13a, 10 types of template images such as a template image of each number, that is, a template image of the number "0", a template image of the number "1", ..., A template image of the number "9" are referred to. Will be done.

このようなテンプレートデータ13aを参照して、認識部15cは、数字ごとに、テンプレート画像と、先に選択された数字表示領域の部分画像との照合、いわゆるテンプレートマッチングを実行する。ここで、最終桁以外の他の桁では、上記の(4)で説明した通り、桁が繰り上がる時を除いて、数字は定位置に存在する。すなわち、数字が形成する線画の中心と数字表示領域の中心とが略一致する状態であると想定できる。このため、テンプレート画像の中心と、数字表示領域の中心とを一致させる位置合わせが行われた状態で、テンプレートマッチングが実行される。このようなテンプレートマッチングによって、テンプレート画像および数字表示領域の間の類似度が数字ごとに得られる。その上で、認識部15cは、各テンプレート画像のうち数字表示領域との間で最高の類似度が算出されたテンプレート画像の数字を当該数字表示領域に対応する数字と認識する。続いて、認識部15cは、桁数カウンタが保持するレジスタの値nを1つインクリメントする。その後、認識部15cは、桁数カウンタが保持するレジスタの値nが最終桁Nになるまで、数字表示領域に対応する数字の認識を繰り返し実行する。 With reference to such template data 13a, the recognition unit 15c executes matching of the template image with the partially image of the previously selected number display area, that is, so-called template matching, for each number. Here, in the digits other than the last digit, the numbers are present at fixed positions except when the digits are carried up, as described in (4) above. That is, it can be assumed that the center of the line drawing formed by the numbers and the center of the number display area substantially coincide with each other. Therefore, template matching is executed in a state where the center of the template image and the center of the number display area are aligned with each other. By such template matching, the similarity between the template image and the digit display area is obtained for each digit. Then, the recognition unit 15c recognizes the number of the template image for which the highest degree of similarity with the number display area of each template image is calculated as the number corresponding to the number display area. Subsequently, the recognition unit 15c increments the value n of the register held by the digit counter by one. After that, the recognition unit 15c repeatedly recognizes the number corresponding to the number display area until the value n of the register held by the digit counter becomes the final digit N.

分離部15dは、数字表示領域に含まれる複数の文字片候補を分離する処理部である。 The separation unit 15d is a processing unit that separates a plurality of character piece candidates included in the number display area.

一実施形態として、分離部15dは、桁数カウンタが保持するレジスタの値nが最終桁Nになると、処理を起動する。すなわち、上記の(3)で説明した通り、最終桁のドラムは、メータ計測値の小数点レベルの変動にも連動して回転する。したがって、上記の(6)で説明した通り、数字表示領域の外枠を形成する表示枠には、複数の数字が含まれる可能性がある。このことから、分離部15dは、上記の(7)の事項にしたがって、ドラム上に配置される数字と数字の区切りを検出するために、数字と数字の間に挿入される空白部を検出する。このとき、複数の空白部が検出された場合、最終桁の数字表示領域には、数字が1つしか含まれない可能性が高いと判断できる。この場合、分離部15dは、認識部15cと同様のテンプレートマッチングを認識部15cに実行させることにより、最終桁の数字表示領域に対応する数字を認識させる。 As one embodiment, the separation unit 15d starts processing when the value n of the register held by the digit counter reaches the final digit N. That is, as described in (3) above, the drum of the final digit rotates in conjunction with the fluctuation of the decimal point level of the meter measurement value. Therefore, as described in (6) above, the display frame forming the outer frame of the number display area may include a plurality of numbers. From this, the separation unit 15d detects a blank portion inserted between the numbers in order to detect the number and the number delimiter arranged on the drum according to the above item (7). .. At this time, if a plurality of blank areas are detected, it can be determined that there is a high possibility that only one number is included in the number display area of the last digit. In this case, the separation unit 15d causes the recognition unit 15c to perform the same template matching as the recognition unit 15c, so that the number corresponding to the number display area of the final digit is recognized.

一方、1つの空白部しか検出されない場合、最終桁の数字表示領域には、2つの数字が含まれる可能性が高いと判明する。この場合、分離部15dは、最終桁の数字表示領域から検出された空白部を境界に、最終桁の数字表示領域を2つに分離する。このように2つに分離される領域には、上記の(6)で説明した通り、完全には2つの数字が収まらないので、各々の領域には、数字の文字片が含まれる。このことから、2つに分離された領域のうち一方の分離先を「第1の文字片領域」と記載すると共に他方の分離先を「第2の文字片領域」と記載する場合がある。なお、第1の文字片領域は、第1の線画領域の一例である。また、第2の文字片領域は、第2の線画領域の一例である。 On the other hand, if only one blank area is detected, it is found that there is a high possibility that the number display area of the last digit contains two numbers. In this case, the separation unit 15d separates the number display area of the final digit into two with the blank portion detected from the number display area of the final digit as a boundary. As described in (6) above, the two separated regions do not completely fit the two numbers, so each region contains a character piece of a number. For this reason, one of the two separated regions may be described as the "first character fragment area" and the other separation destination may be described as the "second character fragment region". The first character piece area is an example of the first line drawing area. Further, the second character piece area is an example of the second line drawing area.

図4は、複数の文字片候補の分離方法の一例を示す図である。図4には、図3に示すメータ表示領域310に含まれる数字表示領域310A~310Fのうち最終桁の数字表示領域310Fが示されている。図4に示す最終桁の数字表示領域310Fから、背景色が識別される。例えば、分離部15dは、数字部分と背景部分のコントラストの差と、数字部分と背景部分の画素数、面積の差とから、背景色を「黒」、数字の色を「白」と識別できる。この場合、分離部15dは、背景色の「黒」に対応し、かつ数字表示領域310Fを桁の方向、すなわち左右の横方向へ分断する矩形状のブロブを空白部400として検出する。ここでは、メータ計測値に対応する数字列が並ぶ桁の方向が横方向であるので、分離部15dは、数字表示領域310Fを横断する空白部400を境界に、数字表示領域310Fを上下に分離する。これによって、上側に分離された第1の文字片領域410と、下側に分離された第2の文字片領域420とが得られる。 FIG. 4 is a diagram showing an example of a method for separating a plurality of character piece candidates. FIG. 4 shows the number display area 310F of the last digit among the number display areas 310A to 310F included in the meter display area 310 shown in FIG. The background color is identified from the number display area 310F of the last digit shown in FIG. For example, the separation unit 15d can identify the background color as "black" and the number color as "white" from the difference in contrast between the number portion and the background portion and the difference in the number of pixels and the area between the number portion and the background portion. .. In this case, the separation unit 15d detects a rectangular blob corresponding to the background color "black" and dividing the number display area 310F in the digit direction, that is, in the left-right lateral direction as the blank area 400. Here, since the direction of the digits in which the number strings corresponding to the meter measurement values are lined up is the horizontal direction, the separation unit 15d separates the number display area 310F vertically with the blank portion 400 crossing the number display area 310F as a boundary. do. As a result, the first character piece area 410 separated on the upper side and the second character piece area 420 separated on the lower side are obtained.

第1の特定部15eは、文字片領域ごとに当該文字片領域に含まれる文字片候補を特定する処理部である。 The first specific unit 15e is a processing unit that specifies a character piece candidate included in the character piece area for each character piece area.

一側面として、第1の特定部15eは、第1の文字片領域に含まれる文字片候補を特定する。ここで、上側に分離された第1の文字片領域には、数字の下部分が含まれる可能性が高い一方で、数字の上部分が含まれる可能性は低い。このことから、第1の特定部15eは、テンプレート画像ごとに、当該テンプレート画像の数字の下部分が切り出された部分テンプレート画像を生成する。 As one aspect, the first specific unit 15e identifies a character piece candidate included in the first character piece area. Here, while the first character piece region separated on the upper side is likely to include the lower part of the number, it is unlikely to include the upper part of the number. For this reason, the first specific unit 15e generates a partial template image in which the lower part of the number of the template image is cut out for each template image.

図5は、部分テンプレート画像の切出し方法の一例を示す図である。例えば、数字「0」のテンプレート画像500の場合、数字「0」の最下端の位置から上方向に第1の文字片領域410に対応する高さH1分の領域を切り出すことにより、部分テンプレート画像500Aが生成される。また、数字「1」のテンプレート画像510の場合、数字「1」の最下端の位置から上方向に第1の文字片領域410に対応する高さH1分の領域を切り出すことにより、部分テンプレート画像510Aが生成される。これと同様の要領で、数字「2」のテンプレート画像520~数字「9」のテンプレート画像590から、部分テンプレート画像520A~部分テンプレート画像590Aが生成される。 FIG. 5 is a diagram showing an example of a method of cutting out a partial template image. For example, in the case of the template image 500 of the number "0", a partial template image is obtained by cutting out an area having a height of H1 corresponding to the first character piece area 410 upward from the position of the lowermost end of the number "0". 500A is generated. Further, in the case of the template image 510 of the number "1", a partial template image is obtained by cutting out an area having a height of H1 corresponding to the first character piece area 410 upward from the position of the lowermost end of the number "1". 510A is generated. In the same manner as this, the partial template image 520A to the partial template image 590A are generated from the template image 520 of the number "2" to the template image 590 of the number "9".

このように部分テンプレート画像が生成された後、第1の特定部15eは、部分テンプレート画像ごとに、当該部分テンプレート画像と、第1の文字片領域に対応する部分画像との間でテンプレートマッチングを実行する。このテンプレートマッチングでは、部分テンプレート画像の下端と、第1の文字片領域に対応する部分画像の下端とを一致させる位置合わせが行われた上で、両者の類似度が算出される。例えば、数字「0」の場合、部分テンプレート画像500Aの下端と、第1の文字片領域410の下端との位置合わせを行ってテンプレートマッチングが実行される。他の数字においても、部分テンプレート画像の中身は異なれども同様のテンプレートマッチングが実行される。この結果、部分テンプレート画像および数字表示領域の間の類似度が数字ごとに得られる。 After the partial template image is generated in this way, the first specific unit 15e performs template matching between the partial template image and the partial image corresponding to the first character piece area for each partial template image. Run. In this template matching, the lower end of the partial template image and the lower end of the partial image corresponding to the first character piece area are aligned, and then the similarity between the two is calculated. For example, in the case of the number "0", template matching is executed by aligning the lower end of the partial template image 500A with the lower end of the first character piece area 410. For other numbers, the same template matching is performed even though the contents of the partial template image are different. As a result, the similarity between the partial template image and the number display area is obtained for each number.

その上で、第1の特定部15eは、各部分テンプレート画像のうち第1の文字片領域との間で所定の閾値Th以上の類似度が算出された部分テンプレート画像の数字を第1の文字片領域に含まれる文字片候補として特定する。 On that basis, the first specific unit 15e uses the number of the partial template image for which the similarity with the first character piece region of each partial template image is calculated to be equal to or higher than a predetermined threshold value as the first character. Specify as a character piece candidate included in one area.

他の一側面として、第1の特定部15eは、第2の文字片領域に含まれる文字片候補を特定する。ここで、下側に分離された第2の文字片領域には、数字の上部分が含まれる可能性が高い一方で、数字の下部分が含まれる可能性は低い。このことから、第1の特定部15eは、テンプレート画像ごとに、当該テンプレート画像の数字の上部分が切り出された部分テンプレート画像を生成する。 As another aspect, the first specific unit 15e identifies a character piece candidate included in the second character piece area. Here, while the second character piece region separated on the lower side is likely to include the upper part of the number, it is unlikely to include the lower part of the number. For this reason, the first specific unit 15e generates a partial template image in which the upper part of the number of the template image is cut out for each template image.

図6は、部分テンプレート画像の切出し方法の一例を示す図である。例えば、数字「0」のテンプレート画像600の場合、数字「0」の最上端の位置から下方向に第2の文字片領域420に対応する高さH2分の領域を切り出すことにより、部分テンプレート画像600Aが生成される。また、数字「1」のテンプレート画像610の場合、数字「1」の最上端の位置から下方向に第2の文字片領域420に対応する高さH2分の領域を切り出すことにより、部分テンプレート画像610Aが生成される。これと同様の要領で、数字「2」のテンプレート画像620~数字「9」のテンプレート画像690から、部分テンプレート画像620A~部分テンプレート画像690Aが生成される。 FIG. 6 is a diagram showing an example of a method of cutting out a partial template image. For example, in the case of the template image 600 of the number "0", a partial template image is obtained by cutting out an area having a height of H2 corresponding to the second character piece area 420 downward from the position of the uppermost end of the number "0". 600A is generated. Further, in the case of the template image 610 of the number "1", a partial template image is obtained by cutting out an area having a height of H2 corresponding to the second character piece area 420 downward from the position of the uppermost end of the number "1". 610A is generated. In the same manner as this, the partial template image 620A to the partial template image 690A are generated from the template image 620 of the number "2" to the template image 690 of the number "9".

このように部分テンプレート画像が生成された後、第1の特定部15eは、部分テンプレート画像ごとに、当該部分テンプレート画像と、第2の文字片領域に対応する部分画像との間でテンプレートマッチングを実行する。このテンプレートマッチングでは、部分テンプレート画像の上端と、第2の文字片領域に対応する部分画像の上端とを一致させる位置合わせが行われた上で、両者の類似度が算出される。例えば、数字「0」の場合、部分テンプレート画像600Aの上端と、第2の文字片領域420の上端との位置合わせを行ってテンプレートマッチングが実行される。他の数字においても、部分テンプレート画像の中身は異なれども同様のテンプレートマッチングが実行される。この結果、部分テンプレート画像および数字表示領域の間の類似度が数字ごとに得られる。 After the partial template image is generated in this way, the first specific unit 15e performs template matching between the partial template image and the partial image corresponding to the second character piece area for each partial template image. Run. In this template matching, the upper end of the partial template image and the upper end of the partial image corresponding to the second character piece area are aligned, and then the similarity between the two is calculated. For example, in the case of the number "0", template matching is executed by aligning the upper end of the partial template image 600A with the upper end of the second character piece area 420. For other numbers, the same template matching is performed even though the contents of the partial template image are different. As a result, the similarity between the partial template image and the number display area is obtained for each number.

その上で、第1の特定部15eは、各部分テンプレート画像のうち第2の文字片領域との間で所定の閾値Th以上の類似度が算出された部分テンプレート画像の数字を第2の文字片領域に含まれる文字片候補として特定する。 On top of that, the first specific unit 15e uses the numbers of the partial template image for which the similarity with the second character piece region of each partial template image is calculated to be equal to or higher than a predetermined threshold value as the second character. Specify as a character piece candidate included in one area.

第2の特定部15fは、第1の文字片領域の文字片候補および第2の文字片領域の文字片候補の組合せの中から、ドラム式メータ2の数字の配列条件に適合する組合せを特定する処理部である。 The second specifying unit 15f specifies a combination that matches the numerical arrangement condition of the drum type meter 2 from the combinations of the character piece candidates in the first character piece area and the character piece candidates in the second character piece area. It is a processing unit.

一実施形態として、第2の特定部15fは、第1の文字片領域の文字片候補のうち文字片候補を1つ選択する。以下では、第1の文字片領域の文字片候補の中でも選択された文字片候補を他の文字片候補と識別するために、「選択中の文字片候補」と記載する場合がある。そして、第2の特定部15fは、第2の文字片領域の文字片候補の中に、選択中の文字片候補との間で上記の数字の配列条件を満たす第2の文字片領域の文字片候補が存在するか否かを判定する。すなわち、上記の(1)で説明した通り、ドラムの円周部分には、0~9までの数字が上から順番に配列される。この配列条件にしたがって、第2の文字片領域の文字片候補の中に、選択中の文字片候補の数字に後続する連番の数字を持つものが存在するか否かが判定される。その後、第2の特定部15fは、上記の数字の配列条件を満たす第2の文字片領域の文字片候補が判明するまで、第1の文字片領域の文字片候補の中から選択を繰り返し、上記の数字の配列条件を満たす第2の文字片領域の文字片候補を探索する。このような探索が実行されることによって、ドラム式メータ2の数字の配列条件に適合する、第1の文字片領域の文字片候補および第2の文字片領域の文字片候補の組合せが特定される。 As one embodiment, the second specific unit 15f selects one character piece candidate from the character piece candidates in the first character piece area. In the following, in order to distinguish the character piece candidate selected among the character piece candidates in the first character piece area from other character piece candidates, it may be described as "selected character piece candidate". Then, the second specific unit 15f is a character in the second character piece area that satisfies the above-mentioned number arrangement condition with the selected character piece candidate in the character piece candidate in the second character piece area. Determine if one candidate exists. That is, as described in (1) above, numbers from 0 to 9 are arranged in order from the top on the circumferential portion of the drum. According to this arrangement condition, it is determined whether or not there is a character piece candidate having a serial number following the number of the selected character piece candidate among the character piece candidates in the second character piece area. After that, the second specific unit 15f repeatedly selects from the character piece candidates in the first character piece area until the character piece candidate in the second character piece area satisfying the above-mentioned arrangement of numbers is found. A character piece candidate in the second character piece area that satisfies the above-mentioned number arrangement condition is searched for. By executing such a search, a combination of a character piece candidate in the first character piece area and a character piece candidate in the second character piece area that matches the numerical arrangement condition of the drum type meter 2 is identified. To.

この探索を具体的に例を挙げて説明する。ここでは、次に示す(イ)及び(ロ)の条件下で探索が実行されることとする。(イ)第1の文字片領域の文字片候補は「3」、「5」、「9」であるとする。(ロ)第2の文字片領域の文字片候補は「6」であるとする。この条件下では、まず、第1の文字片領域の文字片候補の中から数字「3」が選択される。そして、選択中の文字片候補の数字「3」に後続する連番の数字「4」を持つものが第2の文字片領域の文字片候補に存在するか否かが判定される。この条件下では第2の文字片領域の文字片候補の中に数字「4」は存在しない。このため、第1の文字片領域の文字片候補の中から数字「5」が改めて選択される。そして、選択中の文字片候補の数字「5」に後続する連番の数字「6」を持つものが第2の文字片領域の文字片候補に存在するか否かが判定される。この場合、条件(ロ)の通り、第2の文字片領域の文字片候補の中に数字「6」が存在する。したがって、第1の文字片領域の文字片候補の数字「5」および第2の文字片領域の文字片候補の数字「6」の組合せがドラム式メータ2の数字の配列条件に適合する組合せとして特定される。 This search will be specifically described with an example. Here, it is assumed that the search is executed under the conditions (a) and (b) shown below. (B) It is assumed that the character piece candidates in the first character piece area are "3", "5", and "9". (B) It is assumed that the character piece candidate in the second character piece area is "6". Under this condition, first, the number "3" is selected from the character piece candidates in the first character piece area. Then, it is determined whether or not a character having a serial number "4" following the number "3" of the selected character piece candidate exists in the character piece candidate in the second character piece area. Under this condition, the number "4" does not exist in the character piece candidates in the second character piece area. Therefore, the number "5" is selected again from the character piece candidates in the first character piece area. Then, it is determined whether or not a character having a serial number "6" following the number "5" of the selected character piece candidate exists in the character piece candidate in the second character piece area. In this case, as in the condition (b), the number "6" exists in the character piece candidate in the second character piece area. Therefore, the combination of the number "5" of the character piece candidate in the first character piece area and the number "6" of the character piece candidate in the second character piece area is a combination that meets the arrangement condition of the numbers of the drum type meter 2. Be identified.

すなわち、条件(イ)として想定に組み込んだ通り、第1の文字片領域410に含まれる数字の下部分だけでは、部分テンプレート画像との間でテンプレートマッチングを実行したとしても、第1の文字片領域の文字片候補を正解である数字「5」だけには絞り込みにくい。このため、正解の数字「5」と下部部の形状が類似する数字「3」および数字「9」も、第1の文字片領域の文字片候補に含まれる可能性がある。このように第1の文字片領域の文字片候補が複数存在する場合でも、ドラム式メータ2の数字の配列条件に適合する組合せを探索することで、第1の文字片領域の文字片候補の数字「5」および第2の文字片領域の文字片候補の数字「6」の組合せを特定できる。 That is, as assumed as the condition (a), even if template matching is performed with the partial template image only in the lower part of the number included in the first character piece area 410, the first character piece It is difficult to narrow down the character fragment candidates in the area to only the correct number "5". Therefore, there is a possibility that the number "3" and the number "9", which are similar in shape to the correct number "5" and the shape of the lower portion, are also included in the character piece candidates in the first character piece area. Even when there are a plurality of character piece candidates in the first character piece area in this way, by searching for a combination that matches the numerical arrangement conditions of the drum type meter 2, the character piece candidates in the first character piece area can be found. A combination of the number "5" and the number "6" of the character piece candidate in the second character piece area can be specified.

このようにドラム式メータ2の数字の配列条件に適合する組合せが特定された後、第2の特定部15fは、当該組合せから最終桁における整数部の数字と、最終桁における小数部、例えば小数点第一位の数字とをさらに特定する。 After the combination that matches the arrangement condition of the numbers of the drum type meter 2 is specified in this way, the second specific part 15f is the number of the integer part in the last digit from the combination and the fractional part in the last digit, for example, the decimal point. Further identify the number with the first decimal place.

ここで、第1の文字片領域の文字片候補および第2の文字片領域の文字片候補の組合せが判明した場合、最終桁が繰り上がりの途中であることから、整数部には、ドラム式メータ2の数字の配列条件に適合する第1の文字片領域の文字片候補の数字が当てはまると判断できる。 Here, when the combination of the character piece candidate in the first character piece area and the character piece candidate in the second character piece area is found, since the last digit is in the middle of the carry, the integer part is a drum type. It can be determined that the number of the character piece candidate in the first character piece area that matches the arrangement condition of the number of the meter 2 is applicable.

さらに、第2の特定部15fは、空白部の位置から小数部の数字を算出することができる。例えば、第2の特定部15fは、最終桁の数字表示領域の最下端に対する空白部の高さ方向の中心位置の変位を算出する。そして、第2の特定部15fは、最終桁の数字表示領域の高さに対する、空白部の高さ方向の中心位置の変位の割合、例えば「空白部の高さ方向の中心位置の変位÷最終桁の数字表示領域の高さ」を小数部として算出する。 Further, the second specific portion 15f can calculate the number of the decimal part from the position of the blank portion. For example, the second specific portion 15f calculates the displacement of the center position in the height direction of the blank portion with respect to the lowermost end of the numerical display area of the final digit. Then, the second specific portion 15f is the ratio of the displacement of the center position in the height direction of the blank portion to the height of the number display area of the final digit, for example, “displacement of the center position in the height direction of the blank portion ÷ final”. Calculate the "height of the digit display area" as a decimal part.

図7A~図7Cは、空白部および最終桁の数字表示領域の位置関係の一例を示す図である。図7A及び図7Cには、いずれも最終桁の小数部が「0」である場合の位置関係が示されているが、図7Aに示す最終桁の数字表示領域310Fには、数字「5」が定位置に表示される一方で、図7Cに示す最終桁の数字表示領域310Fには、数字「6」が定位置に表示される点で異なる。さらに、図7Bには、最終桁の小数部が「0.5」である場合の位置関係が示されている。なお、図7A及び図7Cの例では、複数の空白部が検出される場合、2つの数字が最終桁の数字表示領域310Fに出現しないので、小数部の算出は実行されないが、上記の割合が小数部に対応することを説明する観点から計算例を説明することする。 7A to 7C are diagrams showing an example of the positional relationship between the blank portion and the numerical display area of the final digit. 7A and 7C both show the positional relationship when the fractional part of the last digit is "0", but the number "5" is shown in the number display area 310F of the last digit shown in FIG. 7A. Is displayed in a fixed position, while the number "6" is displayed in a fixed position in the number display area 310F of the last digit shown in FIG. 7C. Further, FIG. 7B shows the positional relationship when the fractional part of the final digit is “0.5”. In the example of FIGS. 7A and 7C, when a plurality of blank parts are detected, the two numbers do not appear in the number display area 310F of the last digit, so that the calculation of the decimal part is not executed, but the above ratio is calculated. A calculation example will be described from the viewpoint of explaining that it corresponds to a decimal part.

図7Aに示すように、数字「5」が定位置に位置する場合、空白部400の高さ方向の中心位置は、最終桁の数字表示領域310Fの最下端と同じ位置に存在する。この場合、空白部400の高さ方向の中心位置の変位もゼロとなるので、小数部を「0」と算出できる。また、図7Bに示すように、ドラムが数字「5」の定位置からの回転を開始し、数字「6」の定位置へ切り替わるまでの半分まで回転した場合、空白部400の高さ方向の中心位置は、最終桁の数字表示領域310Fの高さ方向の中心位置と同じ位置に存在する。この場合、空白部400の高さ方向の中心位置の変位は、D(=0.5h)となるので、小数部は、D÷h(0.5h÷h)の計算により、「0.5」と算出できる。さらに、図7Cに示すように、ドラムが数字「6」の定位置まで回転した場合、空白部400の高さ方向の中心位置は、最終桁の数字表示領域310Fの最上端と同じ位置に達する。この場合、空白部400の高さ方向の中心位置の変位は、D(=h)となるので、小数部は、D÷h(h÷h)の計算により、「1」と算出できる。 As shown in FIG. 7A, when the number "5" is located at a fixed position, the center position of the blank portion 400 in the height direction exists at the same position as the lowermost end of the number display area 310F of the last digit. In this case, the displacement of the center position of the blank portion 400 in the height direction is also zero, so that the fractional portion can be calculated as "0". Further, as shown in FIG. 7B, when the drum starts rotating from the fixed position of the number "5" and rotates halfway until it switches to the fixed position of the number "6", it is in the height direction of the blank portion 400. The center position exists at the same position as the center position in the height direction of the number display area 310F of the last digit. In this case, the displacement of the center position in the height direction of the blank portion 400 is D 1 (= 0.5 h 1 ), so that the decimal part is calculated as D 1 ÷ h 1 (0.5 h 1 ÷ h 1 ). Therefore, it can be calculated as "0.5". Further, as shown in FIG. 7C, when the drum is rotated to the fixed position of the number "6", the center position in the height direction of the blank portion 400 reaches the same position as the uppermost end of the number display area 310F of the last digit. .. In this case, the displacement of the center position in the height direction of the blank portion 400 is D 2 (= h 1 ), so that the fractional portion is calculated as D 2 ÷ h 1 (h 1 ÷ h 1 ). Can be calculated.

ここで、空白部の位置が小数部の数字の算出に有利に働く根拠の一例を挙げる。すなわち、空白部の幅は、メータの種類によって異なることもあれば、同一の種類のメータであってもその製造元によって異なる場合がある。その一方で、アクチュエータ等の駆動機構の構造や制御が複雑化するのを抑制する観点から、数字の表示の切替え時にドラムを回転させる角度は、一定となるように設計される。このため、同一のドラムでは、各数字の間で互いの高さは共通すると共に、各空白部の間で互いの高さも共通する。したがって、メータの種類が違っても、あるいはメータの製造元が異なっても、同一のロジックで小数部の数字を算出できるので、ロバスト性を向上させることができる。 Here, an example of the grounds that the position of the blank part is advantageous for calculating the number of the decimal part is given. That is, the width of the blank portion may differ depending on the type of meter, or may differ depending on the manufacturer of the same type of meter. On the other hand, from the viewpoint of suppressing complicated structure and control of a drive mechanism such as an actuator, the angle at which the drum is rotated when switching the display of numbers is designed to be constant. Therefore, in the same drum, the heights of the numbers are the same, and the heights of the blanks are the same. Therefore, even if the type of meter is different or the manufacturer of the meter is different, the decimal number can be calculated by the same logic, so that the robustness can be improved.

なお、ここでは、あくまで一例として、空白部の位置から小数部の数字を算出する例を説明したが、例えば、数字の高さ方向の中心が最終桁の数字表示領域310Fの枠内に存在する位置から小数部を算出することもできる。この場合、第1の文字片領域から推定される数字領域の高さ方向の中心が枠内の中心に位置する場合、小数部は「0」と算出される。また、第1の文字片領域または第2の文字片領域から推定される数字領域の高さ方向の中心が枠内の最上端に位置する場合、小数部は「0.5」と算出される。また、第2の文字片領域から推定される数字領域字の高さ方向の中心が枠内の最下端に位置する場合、小数部は「0」と算出される。この他にも、公知の方法を用いて、小数部を算出することができる。 Here, as an example, the example of calculating the number of the decimal part from the position of the blank part has been described, but for example, the center of the number in the height direction exists in the frame of the number display area 310F of the last digit. It is also possible to calculate the fractional part from the position. In this case, if the center in the height direction of the digit area estimated from the first character piece area is located at the center of the frame, the decimal part is calculated as "0". Further, when the center in the height direction of the digit area estimated from the first character piece area or the second character piece area is located at the uppermost end in the frame, the decimal part is calculated as "0.5". .. Further, when the center in the height direction of the number area character estimated from the second character piece area is located at the lowermost end of the frame, the decimal part is calculated as "0". In addition to this, a known method can be used to calculate the fractional part.

組み立て部15gは、メータ計測値を組み立てる処理部である。 The assembly unit 15g is a processing unit for assembling meter measurement values.

一実施形態として、組み立て部15gは、認識部15cにより最終桁以外の各桁で認識される数字表示領域の数字と、第2の特定部15fにより特定される最終桁の整数部の数字および小数部の数字とに基づいてメータ計測値を組み立てる。例えば、メータ計測値が10進数により表現される場合、組み立て部15gは、各桁の数字を次式(1)に代入することによりメータ計測値を算出できる。 As one embodiment, the assembly unit 15g includes a number in the number display area recognized by the recognition unit 15c in each digit other than the final digit, and a number and a decimal number in the integer part of the final digit specified by the second specific unit 15f. Assemble the meter measurements based on the numbers in the part. For example, when the meter measurement value is expressed in decimal, the assembly unit 15g can calculate the meter measurement value by substituting the numerical value of each digit into the following equation (1).

開始桁の数字×10N-1+開始2桁+1桁の数字×10N-2、・・・、最終桁の数字×10・・・(1) Start digit number x 10 N-1 + Start 2 digits + 1 digit number x 10 N-2 , ..., Last digit number x 10 0 ... (1)

このように組み立てられたメータ計測値は、次のような出力先へ出力することができる。例えば、組み立て部15gは、メータ計測値をクライアント端末30へ出力することができる。この場合、組み立て部15gは、一例として、ドラム式メータ2のメータ計測値もしくはその時系列データを表示するメータ監視画面等をクライアント端末30に表示させることができる。また、組み立て部15gは、メータ計測値を記憶部13へ出力することができる。この場合、組み立て部15gは、ドラム式メータ2の識別情報にメータ計測値が対応付けられたメータ計測値データ13bを記憶部13へ保存する。この他、組み立て部15gは、バックエンドに位置するアプリケーションプログラム、例えばメータ計測値の分析や通知を行うアプリケーションプログラム等へ出力することもできる。例えば、通知プログラムへ出力された場合、通知プログラムは、メータ計測値が所定の閾値以上であるか否かを判定し、閾値以上であるメータ計測値を関係者の情報処理端末へ出力することができる。また、分析プログラムへ出力された場合、分析プログラムは、メータ計測値の統計分析を実行したり、メータ計測値に関する図表、例えばグラフ等を作成することもできる。 The meter measurement values assembled in this way can be output to the following output destinations. For example, the assembly unit 15g can output the meter measurement value to the client terminal 30. In this case, as an example, the assembly unit 15g can display the meter monitoring screen or the like displaying the meter measurement value of the drum type meter 2 or the time series data thereof on the client terminal 30. Further, the assembly unit 15g can output the meter measurement value to the storage unit 13. In this case, the assembly unit 15g stores the meter measurement value data 13b in which the meter measurement value is associated with the identification information of the drum type meter 2 in the storage unit 13. In addition, the assembly unit 15g can also output to an application program located at the back end, for example, an application program that analyzes and notifies meter measurement values. For example, when it is output to the notification program, the notification program may determine whether or not the meter measurement value is equal to or higher than a predetermined threshold value, and output the meter measurement value which is equal to or higher than the threshold value to the information processing terminal of the person concerned. can. Further, when output to the analysis program, the analysis program can also execute statistical analysis of the meter measurement value and create a chart, for example, a graph or the like regarding the meter measurement value.

[処理の流れ]
次に、本実施例に係るサーバ装置10の処理の流れについて説明する。なお、ここでは、サーバ装置10により実行される(1)メータ計測値の監視処理について説明した後、そのサブフローとして実行される(2)認証処理について説明することとする。
[Processing flow]
Next, the flow of processing of the server device 10 according to this embodiment will be described. Here, (1) the monitoring process of the meter measurement value executed by the server device 10 will be described, and then (2) the authentication process executed as a subflow thereof will be described.

(1)メータ計測値の監視処理
図8は、実施例1に係るメータ計測値の監視処理の手順を示すフローチャートである。この処理は、一例として、カメラ20からメータ画像が取得される度に繰り返し実行される処理である。
(1) Monitoring process of meter measured value FIG. 8 is a flowchart showing a procedure of monitoring process of meter measured value according to the first embodiment. As an example, this process is a process that is repeatedly executed every time a meter image is acquired from the camera 20.

図8に示すように、取得部15aによりメータ画像が取得されると(ステップS101)、切出し部15bは、ステップS101で取得されたメータ画像からドラム式メータ2のメータ表示領域を切り出す(ステップS102)。続いて、切出し部15bは、メータ表示領域を各桁の数字表示領域へ分割する(ステップS103)。 As shown in FIG. 8, when the meter image is acquired by the acquisition unit 15a (step S101), the cutting unit 15b cuts out the meter display area of the drum type meter 2 from the meter image acquired in step S101 (step S102). ). Subsequently, the cutting unit 15b divides the meter display area into a numerical display area of each digit (step S103).

そして、認識部15cは、図示しない桁数カウンタが保持するレジスタの値nを初期値、例えば「1」に初期化する(ステップS104)。続いて、ステップS103でメータ表示領域から分割された数字表示領域のうち開始桁「1」の数字表示領域から順に、数字表示領域に対する数字を認識する「認識処理」が実行される(ステップS105)。 Then, the recognition unit 15c initializes the value n of the register held by the digit counter (not shown) to an initial value, for example, “1” (step S104). Subsequently, in step S103, a "recognition process" for recognizing numbers for the number display area is executed in order from the number display area of the start digit "1" in the number display area divided from the meter display area (step S105). ..

その後、認識部15cは、桁数カウンタを1つインクリメントする(ステップS106)。そして、桁数カウンタに保持された桁数nが最終桁Nに到達するまで(ステップS107No)、上記のステップS105および上記のステップS106の処理が実行される。 After that, the recognition unit 15c increments the digit counter by one (step S106). Then, the processes of the above step S105 and the above step S106 are executed until the number of digits n held in the digit number counter reaches the final digit N (step S107 No).

そして、桁数カウンタに保持された桁数nが最終桁Nに到達すると(ステップS107Yes)、組み立て部15gは、ステップS105で認識された各桁の数字からメータ計測値を組み立て(ステップS108)、当該メータ計測値を所定の出力先へ出力し(ステップS109)、処理を終了する。 Then, when the number of digits n held in the number of digits counter reaches the final digit N (step S107Yes), the assembling unit 15g assembles the meter measurement value from the number of each digit recognized in step S105 (step S108). The meter measurement value is output to a predetermined output destination (step S109), and the process is terminated.

(2)認識処理
図9は、実施例1に係る認識処理の手順を示すフローチャートである。この処理は、図8に示すステップS105の処理に対応する。図9に示すように、桁数カウンタに保持された桁数nが最終桁「N」でない場合(ステップS201No)、認識部15cは、記憶部13に記憶されたテンプレートデータ13aを参照して、桁数カウンタに保持された桁数nに対応する桁の数字表示領域にテンプレートマッチング等の画像処理を実行することにより、当該数字表示領域に対応する数字を認識し(ステップS202)、処理を終了する。
(2) Recognition process FIG. 9 is a flowchart showing the procedure of the recognition process according to the first embodiment. This process corresponds to the process of step S105 shown in FIG. As shown in FIG. 9, when the number of digits n held in the number of digits counter is not the final digit "N" (step S201No), the recognition unit 15c refers to the template data 13a stored in the storage unit 13 and refers to the template data 13a. By executing image processing such as template matching in the digit display area of the digit corresponding to the digit number n held in the digit counter, the number corresponding to the digit display area is recognized (step S202), and the process is completed. do.

また、桁数カウンタに保持された桁数nが最終桁「N」である場合(ステップS201Yes)、分離部15dは、ドラム上に配置される数字と数字の区切りを検出するために、最終桁の数字表示領域から数字と数字の間に挿入される空白部を検出する(ステップS203)。 Further, when the number of digits n held in the number of digits counter is the final digit "N" (step S201Yes), the separation unit 15d has the final digit in order to detect the number separated from the numbers arranged on the drum. A blank portion inserted between numbers is detected from the number display area of (step S203).

このとき、複数の空白部が検出された場合(ステップS204No)、最終桁の数字表示領域には、数字が1つしか含まれない可能性が高いと判断できる。この場合、分離部15dは、認識部15cと同様のテンプレートマッチングを認識部15cに実行させることにより、最終桁の数字表示領域に対応する数字を認識させ(ステップS202)、処理を終了する。 At this time, if a plurality of blank areas are detected (step S204 No.), it can be determined that there is a high possibility that only one number is included in the number display area of the final digit. In this case, the separation unit 15d causes the recognition unit 15c to perform the same template matching as the recognition unit 15c to recognize the number corresponding to the number display area of the final digit (step S202), and ends the process.

一方、1つの空白部しか検出されない場合(ステップS204Yes)、最終桁の数字表示領域には、2つの数字が含まれる可能性が高いと判明する。この場合、分離部15dは、最終桁の数字表示領域から検出された空白部を境界に、最終桁の数字表示領域を第1の文字片領域および第2の文字片領域に分離する(ステップS205)。 On the other hand, when only one blank portion is detected (step S204Yes), it is found that there is a high possibility that two numbers are included in the number display area of the last digit. In this case, the separation unit 15d separates the number display area of the last digit into the first character piece area and the second character piece area with the blank part detected from the number display area of the last digit as a boundary (step S205). ).

続いて、第1の特定部15eは、各テンプレート画像の数字の下部分が切り出された部分テンプレート画像のうち、第1の文字片領域との間で所定の閾値Th以上の類似度が算出された部分テンプレート画像の数字を第1の文字片領域に含まれる文字片候補として特定する(ステップS206)。 Subsequently, in the first specific portion 15e, a degree of similarity of a predetermined threshold Th or more is calculated with the first character piece region in the partial template image in which the lower part of the number of each template image is cut out. The number of the partial template image is specified as a character piece candidate included in the first character piece area (step S206).

また、第1の特定部15eは、各テンプレート画像の数字の上半分が切り出された部分テンプレート画像のうち、第2の文字片領域との間で所定の閾値Th以上の類似度が算出された部分テンプレート画像の数字を第2の文字片領域に含まれる文字片候補として特定する(ステップS207)。 Further, in the first specific portion 15e, the similarity of the partial template image in which the upper half of the numbers of each template image is cut out to the second character piece region is calculated to have a degree of similarity equal to or higher than a predetermined threshold Th. The numbers in the partial template image are specified as character piece candidates included in the second character piece area (step S207).

その後、第2の特定部15fは、ステップS206で特定された第1の文字片領域の文字片候補およびステップS207で特定された第2の文字片領域の文字片候補の組合せの中から、ドラム式メータ2の数字の配列条件に適合する組合せを特定する(ステップS208)。 After that, the second specific unit 15f is a drum from the combination of the character piece candidate of the first character piece area specified in step S206 and the character piece candidate of the second character piece area specified in step S207. A combination that matches the arrangement condition of the numbers of the formula meter 2 is specified (step S208).

その後、第2の特定部15fは、当該組合せから最終桁における整数部の数字と、最終桁における小数部、例えば小数点第一位の数字とをさらに特定し(ステップS209およびステップS210)、処理を終了する。 After that, the second specifying unit 15f further specifies the number of the integer part in the last digit and the decimal part in the last digit, for example, the number having the first decimal place from the combination (step S209 and step S210), and performs processing. finish.

[効果の一側面]
上述してきたように、本実施例に係るサーバ装置10は、ドラム式メータ2の最終桁に複数の文字片が含まれる場合に文字片ごとに数字候補を特定し、各文字片の数字候補の組合せの中からドラム式メータ2の数字の配列条件に適合する組合せを特定する。このように、一方の文字片から特定される数字候補ともう一方の文字片から特定される数字候補の整合性から最終桁のドラム表示を認識できるので、数字と数字の間に挿入される空白部の間隔の違いにより認識精度が低下するのを抑制できる。したがって、本実施例に係るサーバ装置10によれば、メータ認識のロバスト性を向上させることができる。
[One aspect of the effect]
As described above, the server device 10 according to the present embodiment specifies a number candidate for each character piece when the final digit of the drum type meter 2 contains a plurality of character pieces, and the number candidate of each character piece. From the combinations, the combination that matches the arrangement condition of the numbers of the drum type meter 2 is specified. In this way, since the drum display of the last digit can be recognized from the consistency of the number candidate specified from one character piece and the number candidate specified from the other character piece, a blank inserted between the numbers. It is possible to suppress a decrease in recognition accuracy due to a difference in the spacing between the parts. Therefore, according to the server device 10 according to the present embodiment, the robustness of meter recognition can be improved.

さて、これまで開示の装置に関する実施例について説明したが、本発明は上述した実施例以外にも、種々の異なる形態にて実施されてよいものである。そこで、以下では、本発明に含まれる他の実施例を説明する。 Although the embodiments relating to the disclosed apparatus have been described so far, the present invention may be implemented in various different forms other than the above-described embodiments. Therefore, another embodiment included in the present invention will be described below.

[数字以外の文字]
上記の実施例1では、ドラム式メータ2のドラム表示が数字である場合を例示したが、ドラム表示が数字以外の文字である場合にも、図8及び図9に示す処理を実行することができる。例えば、ドラム式メータ2のドラム表示がひらがなやカタカナ、アルファベットが含まれる場合にも、ドラムに配列される文字間で各文字の配列条件を定義することにより、メータ表示を認識できる。
[Characters other than numbers]
In the first embodiment described above, the case where the drum display of the drum type meter 2 is a number is illustrated, but even when the drum display is a character other than a number, the processes shown in FIGS. 8 and 9 can be executed. can. For example, even when the drum display of the drum type meter 2 includes hiragana, katakana, and alphabets, the meter display can be recognized by defining the arrangement condition of each character between the characters arranged on the drum.

[スタンドアローンでの適用]
上記の実施例1では、上記のメータ監視システム1がクライアントサーバシステムとして構築される場合を例示したが、必ずしもクライアントサーバシステムとして構築されずともよい。例えば、サーバ装置10が有する機能部により実行される図8や図9に示す処理は、カメラ20を搭載する各種の情報処理装置、例えばポータブル端末やスマートフォン、タブレット端末やウェアラブル端末によりスタンドアローンで実行されることとしてもかまわない。
[Applying standalone]
In the first embodiment, the case where the meter monitoring system 1 is constructed as a client-server system is illustrated, but the meter monitoring system 1 may not necessarily be constructed as a client-server system. For example, the processes shown in FIGS. 8 and 9 executed by the functional unit of the server device 10 are executed stand-alone by various information processing devices equipped with the camera 20, for example, a portable terminal, a smartphone, a tablet terminal, or a wearable terminal. It doesn't matter if it is done.

[分散および統合]
また、図示した各装置の各構成要素は、必ずしも物理的に図示の如く構成されておらずともよい。すなわち、各装置の分散・統合の具体的形態は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。例えば、取得部15a、切出し部15b、認識部15c、分離部15d、第1の特定部15e、第2の特定部15fまたは組み立て部15gをサーバ装置10の外部装置としてネットワーク経由で接続するようにしてもよい。
また、取得部15a、切出し部15b、認識部15c、分離部15d、第1の特定部15e、第2の特定部15fまたは組み立て部15gを別の装置がそれぞれ有し、ネットワーク接続されて協働することで、上記のサーバ装置10の機能を実現するようにしてもよい。
[Distributed and integrated]
Further, each component of each of the illustrated devices does not necessarily have to be physically configured as shown in the figure. That is, the specific form of distribution / integration of each device is not limited to the one shown in the figure, and all or part of them may be functionally or physically distributed / physically in any unit according to various loads and usage conditions. Can be integrated and configured. For example, the acquisition unit 15a, the cutting unit 15b, the recognition unit 15c, the separation unit 15d, the first specific unit 15e, the second specific unit 15f, or the assembly unit 15g are connected via a network as an external device of the server device 10. You may.
Further, another device has an acquisition unit 15a, a cutting unit 15b, a recognition unit 15c, a separation unit 15d, a first specific unit 15e, a second specific unit 15f, or an assembly unit 15g, respectively, and is connected to a network to cooperate. By doing so, the function of the server device 10 may be realized.

[認識プログラム]
また、上記の実施例で説明した各種の処理は、予め用意されたプログラムをパーソナルコンピュータやワークステーションなどのコンピュータで実行することによって実現することができる。そこで、以下では、図10を用いて、上記の実施例と同様の機能を有する認識プログラムを実行するコンピュータの一例について説明する。
[Recognition program]
Further, the various processes described in the above embodiment can be realized by executing a program prepared in advance on a computer such as a personal computer or a workstation. Therefore, in the following, an example of a computer that executes a recognition program having the same function as that of the above embodiment will be described with reference to FIG.

図10は、実施例1及び実施例2に係る認識プログラムを実行するコンピュータのハードウェア構成例を示す図である。図10に示すように、コンピュータ100は、操作部110aと、スピーカ110bと、カメラ110cと、ディスプレイ120と、通信部130とを有する。さらに、このコンピュータ100は、CPU150と、ROM160と、HDD170と、RAM180とを有する。これら110~180の各部はバス140を介して接続される。 FIG. 10 is a diagram showing a hardware configuration example of a computer that executes the recognition program according to the first and second embodiments. As shown in FIG. 10, the computer 100 includes an operation unit 110a, a speaker 110b, a camera 110c, a display 120, and a communication unit 130. Further, the computer 100 has a CPU 150, a ROM 160, an HDD 170, and a RAM 180. Each of these 110 to 180 parts is connected via the bus 140.

HDD170には、図10に示すように、上記の実施例1で示した取得部15a、切出し部15b、認識部15c、分離部15d、第1の特定部15e、第2の特定部15f及び組み立て部15gと同様の機能を発揮する認識プログラム170aが記憶される。この認識プログラム170aは、図2に示した取得部15a、切出し部15b、認識部15c、分離部15d、第1の特定部15e、第2の特定部15f及び組み立て部15gの各構成要素と同様、統合又は分離してもかまわない。すなわち、HDD170には、必ずしも上記の実施例1で示した全てのデータが格納されずともよく、処理に用いるデータがHDD170に格納されればよい。例えば、認識プログラム170aが有する機能のうち、各桁の数字表示領域に対応する数字を認識する機能または最終桁の数字表示領域に対応する数字を認識する機能が抜粋してモジュール化されたライブラリをメータ監視を実現するメータ監視プログラムに参照させることとしてもかまわない。 As shown in FIG. 10, the HDD 170 includes the acquisition unit 15a, the cutting unit 15b, the recognition unit 15c, the separation unit 15d, the first specific unit 15e, the second specific unit 15f, and the assembly shown in the first embodiment. A recognition program 170a that exhibits the same function as the unit 15g is stored. This recognition program 170a is the same as each component of the acquisition unit 15a, the cutting unit 15b, the recognition unit 15c, the separation unit 15d, the first specific unit 15e, the second specific unit 15f, and the assembly unit 15g shown in FIG. , Can be integrated or separated. That is, not all the data shown in the first embodiment may be stored in the HDD 170, and the data used for processing may be stored in the HDD 170. For example, among the functions of the recognition program 170a, a library in which the function of recognizing the number corresponding to the number display area of each digit or the function of recognizing the number corresponding to the number display area of the last digit is excerpted and modularized is obtained. It may be referred to the meter monitoring program that realizes meter monitoring.

このような環境の下、CPU150は、HDD170から認識プログラム170aを読み出した上でRAM180へ展開する。この結果、認識プログラム170aは、図10に示すように、認識プロセス180aとして機能する。この認識プロセス180aは、RAM180が有する記憶領域のうち認識プロセス180aに割り当てられた領域にHDD170から読み出した各種データを展開し、この展開した各種データを用いて各種の処理を実行する。例えば、認識プロセス180aが実行する処理の一例として、図2に示す処理などが含まれる。なお、CPU150では、必ずしも上記の実施例1で示した全ての処理部が動作せずともよく、実行対象とする処理に対応する処理部が仮想的に実現されればよい。 Under such an environment, the CPU 150 reads the recognition program 170a from the HDD 170 and deploys it to the RAM 180. As a result, the recognition program 170a functions as the recognition process 180a, as shown in FIG. The recognition process 180a expands various data read from the HDD 170 into an area allocated to the recognition process 180a in the storage area of the RAM 180, and executes various processes using the expanded various data. For example, as an example of the process executed by the recognition process 180a, the process shown in FIG. 2 is included. In the CPU 150, not all the processing units shown in the first embodiment need to operate, and it is sufficient that the processing units corresponding to the processes to be executed are virtually realized.

なお、上記の認識プログラム170aは、必ずしも最初からHDD170やROM160に記憶されておらずともかまわない。例えば、コンピュータ100に挿入されるFD、CD-ROM、DVDディスク、光磁気ディスク、ICカードなどの「可搬用の物理媒体」に認識プログラム170aを記憶させる。そして、コンピュータ100がこれらの可搬用の物理媒体から認識プログラム170aを取得して実行するようにしてもよい。また、公衆回線、インターネット、LAN、WANなどを介してコンピュータ100に接続される他のコンピュータまたはサーバ装置などに認識プログラム170aを記憶させておき、コンピュータ100がこれらから認識プログラム170aを取得して実行するようにしてもよい。 The recognition program 170a may not necessarily be stored in the HDD 170 or the ROM 160 from the beginning. For example, the recognition program 170a is stored in a "portable physical medium" such as an FD, a CD-ROM, a DVD disk, a magneto-optical disk, or an IC card inserted in the computer 100. Then, the computer 100 may acquire the recognition program 170a from these portable physical media and execute it. Further, the recognition program 170a is stored in another computer or server device connected to the computer 100 via a public line, the Internet, a LAN, a WAN, or the like, and the computer 100 acquires the recognition program 170a from these and executes it. You may try to do it.

以上の実施例を含む実施形態に関し、さらに以下の付記を開示する。 The following additional notes will be further disclosed with respect to the embodiments including the above embodiments.

(付記1)画像内の文字の線画領域内に複数の線画領域を特定した場合に、それぞれの線画領域からそれぞれの文字の候補を特定し、
特定した複数の文字の候補の内、線画領域が離れている場合における文字の組合せの条件を満たすそれぞれの文字を特定する、
処理をコンピュータに実行させることを特徴とする認識プログラム。
(Appendix 1) When a plurality of line drawing areas are specified in the line drawing area of characters in the image, candidates for each character are specified from each line drawing area.
Among the specified multiple character candidates, each character that satisfies the condition of the character combination when the line drawing area is separated is specified.
A recognition program characterized by having a computer perform processing.

(付記2)前記文字の組合せの条件は、ドラム式メータが有するドラムに配列される数字の配列条件であることを特徴とする付記1に記載の認識プログラム。 (Supplementary note 2) The recognition program according to Supplementary note 1, wherein the condition for combining the characters is an arrangement condition for numbers arranged on the drum of the drum type meter.

(付記3)前記ドラム式メータのメータ表示領域が撮像された画像を取得し、
前記画像から切り出されたメータ表示領域に含まれる桁のうち末尾の桁の数字表示領域内に複数の線画領域を特定した場合に、前記末尾の桁の数字表示領域から検出される空白部を境界に、前記末尾の桁の数字表示領域を前記桁の方向に沿って第1の線画領域および第2の線画領域に分離する処理を前記コンピュータにさらに実行させ、
前記文字の候補を特定する処理は、前記メータ表示領域に含まれる桁に配置される各数字のテンプレート画像を参照して、前記第1の線画領域および前記第2の線画領域からそれぞれの数字の候補を特定することを特徴とする付記2に記載の認識プログラム。
(Appendix 3) An image in which the meter display area of the drum type meter is captured is acquired.
When a plurality of line drawing areas are specified in the number display area of the last digit among the digits included in the meter display area cut out from the image, the blank part detected from the number display area of the last digit is bounded. Further causes the computer to perform a process of separating the number display area of the last digit into a first line drawing area and a second line drawing area along the direction of the digit.
In the process of identifying the character candidate, the template image of each number arranged in the digit included in the meter display area is referred to, and the respective numbers from the first line drawing area and the second line drawing area are referred to. The recognition program according to Appendix 2, which is characterized by identifying a candidate.

(付記4)前記分離する処理は、前記桁に対応するドラムが回転する第1の方向側に前記第1の線画領域を分離し、前記第1の方向とは逆である第2の方向側に前記第2の線画領域を分離し、
前記文字の候補を特定する処理は、前記テンプレート画像のうち前記第2の方向寄りの一部が切り出された部分テンプレート画像と前記第1の線画領域との照合により数字の候補を特定し、前記テンプレート画像のうち前記第1の方向寄りの一部が切り出された部分テンプレート画像と前記第2の線画領域との照合により数字の候補を特定することを特徴とする付記3に記載の認識プログラム。
(Appendix 4) In the separation process, the first line drawing region is separated on the first direction side in which the drum corresponding to the girder rotates, and the second direction side opposite to the first direction. The second line drawing area is separated into
In the process of specifying the character candidate, the number candidate is specified by collating the partial template image in which a part of the template image near the second direction is cut out with the first line drawing area, and the above. The recognition program according to Appendix 3, wherein a candidate for a numerical value is specified by collating a partial template image obtained by cutting out a part of the template image toward the first direction with the second line drawing area.

(付記5)前記文字を特定する処理は、前記数字の配列条件を満たす数字の組合せから前記末尾の桁の整数部および小数部をさらに特定することを特徴とする付記3または付記4に記載の認識プログラム。 (Supplementary Note 5) The process of specifying the character is described in Appendix 3 or Appendix 4, wherein the integer part and the decimal part of the last digit are further specified from the combination of numbers satisfying the arrangement condition of the numbers. Recognition program.

(付記6)前記文字を特定する処理は、前記末尾の桁の数字表示領域から検出される空白部の位置に基づいて前記小数部を特定することを特徴とする付記5に記載の認識プログラム。 (Supplementary Note 6) The recognition program according to Supplementary Note 5, wherein the process of specifying the character is to specify the decimal part based on the position of the blank part detected from the number display area of the last digit.

(付記7)画像内の文字の線画領域内に複数の線画領域を特定した場合に、それぞれの線画領域からそれぞれの文字の候補を特定し、
特定した複数の文字の候補の内、線画領域が離れている場合における文字の組合せの条件を満たすそれぞれの文字を特定する、
処理をコンピュータが実行することを特徴とする認識方法。
(Appendix 7) When a plurality of line drawing areas are specified in the line drawing area of characters in the image, candidates for each character are specified from each line drawing area.
Among the specified multiple character candidates, each character that satisfies the condition of the character combination when the line drawing area is separated is specified.
A recognition method characterized by a computer performing processing.

(付記8)前記文字の組合せの条件は、ドラム式メータが有するドラムに配列される数字の配列条件であることを特徴とする付記7に記載の認識方法。 (Supplementary Note 8) The recognition method according to Supplementary note 7, wherein the condition for combining the characters is an arrangement condition for numbers arranged on the drum of the drum type meter.

(付記9)前記ドラム式メータのメータ表示領域が撮像された画像を取得し、
前記画像から切り出されたメータ表示領域に含まれる桁のうち末尾の桁の数字表示領域内に複数の線画領域を特定した場合に、前記末尾の桁の数字表示領域から検出される空白部を境界に、前記末尾の桁の数字表示領域を前記桁の方向に沿って第1の線画領域および第2の線画領域に分離する処理を前記コンピュータがさらに実行し、
前記文字の候補を特定する処理は、前記メータ表示領域に含まれる桁に配置される各数字のテンプレート画像を参照して、前記第1の線画領域および前記第2の線画領域からそれぞれの数字の候補を特定することを特徴とする付記8に記載の認識方法。
(Appendix 9) An image in which the meter display area of the drum type meter is captured is acquired.
When a plurality of line drawing areas are specified in the number display area of the last digit among the digits included in the meter display area cut out from the image, the blank part detected from the number display area of the last digit is bounded. Further, the computer further executes a process of separating the number display area of the last digit into a first line drawing area and a second line drawing area along the direction of the digit.
In the process of identifying the character candidate, the template image of each number arranged in the digit included in the meter display area is referred to, and the respective numbers from the first line drawing area and the second line drawing area are referred to. The recognition method according to Appendix 8, wherein the candidate is specified.

(付記10)前記分離する処理は、前記桁に対応するドラムが回転する第1の方向側に前記第1の線画領域を分離し、前記第1の方向とは逆である第2の方向側に前記第2の線画領域を分離し、
前記文字の候補を特定する処理は、前記テンプレート画像のうち前記第2の方向寄りの一部が切り出された部分テンプレート画像と前記第1の線画領域との照合により数字の候補を特定し、前記テンプレート画像のうち前記第1の方向寄りの一部が切り出された部分テンプレート画像と前記第2の線画領域との照合により数字の候補を特定することを特徴とする付記9に記載の認識方法。
(Appendix 10) In the separation process, the first line drawing region is separated on the first direction side in which the drum corresponding to the girder rotates, and the second direction side opposite to the first direction. The second line drawing area is separated into
In the process of specifying the character candidate, the number candidate is specified by collating the partial template image in which a part of the template image near the second direction is cut out with the first line drawing area, and the above. The recognition method according to Appendix 9, wherein a numerical candidate is specified by collating the partial template image in which a part of the template image near the first direction is cut out with the second line drawing area.

(付記11)前記文字を特定する処理は、前記数字の配列条件を満たす数字の組合せから前記末尾の桁の整数部および小数部をさらに特定することを特徴とする付記9または付記10に記載の認識方法。 (Supplementary Note 11) The process of specifying the character is described in Appendix 9 or Appendix 10, wherein the integer part and the decimal part of the last digit are further specified from the combination of numbers satisfying the arrangement condition of the numbers. Recognition method.

(付記12)前記文字を特定する処理は、前記末尾の桁の数字表示領域から検出される空白部の位置に基づいて前記小数部を特定することを特徴とする付記11に記載の認識方法。 (Supplementary Note 12) The recognition method according to Supplementary Note 11, wherein the process of specifying the character is to specify the decimal part based on the position of the blank part detected from the number display area of the last digit.

(付記13)画像内の文字の線画領域内に複数の線画領域を特定した場合に、それぞれの線画領域からそれぞれの文字の候補を特定する第1の特定部と、
特定した複数の文字の候補の内、線画領域が離れている場合における文字の組合せの条件を満たすそれぞれの文字を特定する第2の特定部と、
を有することを特徴とする認識装置。
(Appendix 13) When a plurality of line drawing areas are specified in the line drawing area of characters in the image, a first specific part that specifies a candidate for each character from each line drawing area, and
A second specific part that specifies each character that satisfies the condition of the character combination when the line drawing area is separated from the specified plurality of character candidates, and
A recognition device characterized by having.

(付記14)前記文字の組合せの条件は、ドラム式メータが有するドラムに配列される数字の配列条件であることを特徴とする付記13に記載の認識装置。 (Supplementary Note 14) The recognition device according to Supplementary Note 13, wherein the condition for the combination of characters is an arrangement condition for numbers arranged on a drum of the drum type meter.

(付記15)前記ドラム式メータのメータ表示領域が撮像された画像を取得する取得部と、
前記画像から切り出されたメータ表示領域に含まれる桁のうち末尾の桁の数字表示領域内に複数の線画領域を特定した場合に、前記末尾の桁の数字表示領域から検出される空白部を境界に、前記末尾の桁の数字表示領域を前記桁の方向に沿って第1の線画領域および第2の線画領域に分離する分離部とをさらに有し、
前記第1の特定部は、前記メータ表示領域に含まれる桁に配置される各数字のテンプレート画像を参照して、前記第1の線画領域および前記第2の線画領域からそれぞれの数字の候補を特定することを特徴とする付記14に記載の認識装置。
(Appendix 15) An acquisition unit that acquires an image in which the meter display area of the drum type meter is captured, and
When a plurality of line drawing areas are specified in the number display area of the last digit among the digits included in the meter display area cut out from the image, the blank part detected from the number display area of the last digit is bounded. Further has a separating portion for separating the number display area of the last digit into a first line drawing area and a second line drawing area along the direction of the digit.
The first specific unit refers to a template image of each number arranged in a digit included in the meter display area, and selects a candidate for each number from the first line drawing area and the second line drawing area. The recognition device according to Appendix 14, characterized in that it is specified.

(付記16)前記分離部は、前記桁に対応するドラムが回転する第1の方向側に前記第1の線画領域を分離し、前記第1の方向とは逆である第2の方向側に前記第2の線画領域を分離し、
前記第1の特定部は、前記テンプレート画像のうち前記第2の方向寄りの一部が切り出された部分テンプレート画像と前記第1の線画領域との照合により数字の候補を特定し、前記テンプレート画像のうち前記第1の方向寄りの一部が切り出された部分テンプレート画像と前記第2の線画領域との照合により数字の候補を特定することを特徴とする付記15に記載の認識装置。
(Appendix 16) The separation unit separates the first line drawing region on the side in the first direction in which the drum corresponding to the girder rotates, and on the side in the second direction opposite to the first direction. The second line drawing area is separated and
The first specific portion identifies a numerical candidate by collating a partial template image obtained by cutting out a part of the template image toward the second direction with the first line drawing area, and the template image. The recognition device according to Appendix 15, wherein a numerical candidate is specified by collating the partial template image in which a part of the first direction is cut out with the second line drawing area.

(付記17)前記第2の特定部は、前記数字の配列条件を満たす数字の組合せから前記末尾の桁の整数部および小数部をさらに特定することを特徴とする付記15または付記16に記載の認識装置。 (Supplementary Note 17) The second specific part according to Supplementary note 15 or Supplementary note 16, wherein the integer part and the decimal part of the last digit are further specified from the combination of numbers satisfying the arrangement condition of the numbers. Recognition device.

(付記18)前記第2の特定部は、前記末尾の桁の数字表示領域から検出される空白部の位置に基づいて前記小数部を特定することを特徴とする付記17に記載の認識装置。 (Supplementary Note 18) The recognition device according to Supplementary Note 17, wherein the second specific portion identifies the decimal portion based on the position of a blank portion detected from the digit display area of the last digit.

1 メータ監視システム
2A,2B,2C ドラム式メータ
10 サーバ装置
11 通信I/F部
13 記憶部
13a テンプレートデータ
13b メータ計測値データ
15 制御部
15a 取得部
15b 切り出し部
15c 認識部
15d 分離部
15e 第1の特定部
15f 第2の特定部
15g 組み立て部
20A,20B,20C カメラ
30 クライアント端末
1 Meter monitoring system 2A, 2B, 2C Drum type meter 10 Server device 11 Communication I / F unit 13 Storage unit 13a Template data 13b Meter measurement value data 15 Control unit 15a Acquisition unit 15b Cutout unit 15c Recognition unit 15d Separation unit 15e 1st Specific part 15f Second specific part 15g Assembly part 20A, 20B, 20C Camera 30 Client terminal

Claims (7)

ドラム式メータのメータ表示領域が撮像された画像を取得し、
前記画像から切り出されたメータ表示領域に含まれる第1の桁の数字表示領域内の空白部であって前記数字表示領域を所定の方向に横断する空白部が1つである場合に、前記空白部を境界に前記数字表示領域を2つに区切ることにより前記数字表示領域を第1の文字片領域および第2の文字片領域に分離し、
前記メータ表示領域に含まれる桁に配置される数字の各々のテンプレート画像を参照して、前記第1の文字片領域および前記第2の文字片領域からそれぞれの数字の候補を特定し、
前記第1の文字片領域から特定した数字の候補および前記第2の文字片領域から特定した数字の候補の組合せの内、前記ドラム式メータが有するドラムに配列される数字の配列条件を満たす数字の候補の組合せに基づいて前記第1の桁の数字を特定すると共に、前記第1の桁の数字表示領域に対する前記空白部の相対位置に基づいて、前記第1の桁に後続する第2の桁の数字を特定する、
処理をコンピュータに実行させることを特徴とする認識プログラム。
The image that the meter display area of the drum type meter was captured is acquired, and
When there is one blank portion in the numerical display area of the first digit included in the meter display area cut out from the image and crosses the numerical display area in a predetermined direction, the blank portion is described. By dividing the number display area into two with a portion as a boundary, the number display area is separated into a first character piece area and a second character piece area.
With reference to each template image of the numbers arranged in the digits included in the meter display area, a candidate for each number is identified from the first character piece area and the second character piece area.
Among the combinations of the number candidates specified from the first character piece area and the number candidates specified from the second character piece area, the numbers satisfying the arrangement condition of the numbers arranged on the drum of the drum type meter. The number of the first digit is specified based on the combination of the candidates of the first digit, and the second digit following the first digit is specified based on the relative position of the blank portion with respect to the digit display area of the first digit. Identify the digit number,
A recognition program characterized by having a computer perform processing.
前記数字を特定する処理は、前記数字表示領域の高さに対する、前記空白部の高さ方向の中心位置の変位の割合に基づいて、前記第2の桁の数字を特定することを特徴とする請求項1に記載の認識プログラム。The process of specifying the number is characterized in that the number of the second digit is specified based on the ratio of the displacement of the center position in the height direction of the blank portion to the height of the number display area. The recognition program according to claim 1. 前記分離する処理は、前記数字表示領域のうち前記所定の方向に直交し、かつ前記第1の桁に対応するドラムが回転する第1の方向側を前記第1の文字片領域として分離し、前記第1の方向とは逆である第2の方向側を前記第2の文字片領域として分離し、
前記数字の候補を特定する処理は、前記テンプレート画像のうち前記第2の方向寄りの端部から前記第1の文字片領域に対応する高さの領域が切り出された部分テンプレート画像と前記第1の文字片領域との照合により数字の候補を特定し、前記テンプレート画像のうち前記第1の方向寄りの端部から前記第2の文字片領域に対応する高さの領域が切り出された部分テンプレート画像と前記第2の文字片領域との照合により数字の候補を特定することを特徴とする請求項1または2に記載の認識プログラム。
In the separation process, the first direction side of the number display area orthogonal to the predetermined direction and in which the drum corresponding to the first digit rotates is separated as the first character piece area. The second direction side opposite to the first direction is separated as the second character piece region.
The process of specifying the numerical candidate is a partial template image in which a region having a height corresponding to the first character piece region is cut out from the end portion of the template image near the second direction and the first. A partial template in which a numerical candidate is identified by collation with the character piece area of the above, and an area having a height corresponding to the second character piece area is cut out from the end of the template image near the first direction. The recognition program according to claim 1 or 2 , wherein a numerical candidate is identified by collating an image with the second character piece area .
前記第1の桁は、前記メータ表示領域に含まれる桁のうち最終桁に対応し、The first digit corresponds to the last digit among the digits included in the meter display area.
前記第2の桁は、前記メータ表示領域に含まれない桁のうち前記最終桁に後続する後続桁に対応する、 The second digit corresponds to a subsequent digit following the last digit among the digits not included in the meter display area.
ことを特徴とする請求項1~3のいずれか1つに記載の認識プログラム。 The recognition program according to any one of claims 1 to 3, wherein the recognition program is characterized in that.
前記最終桁は、1の位に対応し、The last digit corresponds to the ones digit and
前記後続桁は、小数点第一位に対応する、 The following digit corresponds to the first decimal place.
ことを特徴とする請求項4に記載の認識プログラム。 The recognition program according to claim 4.
ドラム式メータのメータ表示領域が撮像された画像を取得し、
前記画像から切り出されたメータ表示領域に含まれる第1の桁の数字表示領域内の空白部であって前記数字表示領域を所定の方向に横断する空白部が1つである場合に、前記空白部を境界に前記数字表示領域を2つに区切ることにより前記数字表示領域を第1の文字片領域および第2の文字片領域に分離し、
前記メータ表示領域に含まれる桁に配置される数字の各々のテンプレート画像を参照して、前記第1の文字片領域および前記第2の文字片領域からそれぞれの数字の候補を特定し、
前記第1の文字片領域から特定した数字の候補および前記第2の文字片領域から特定した数字の候補の組合せの内、前記ドラム式メータが有するドラムに配列される数字の配列条件を満たす数字の候補の組合せに基づいて前記第1の桁の数字を特定すると共に、前記第1の桁の数字表示領域に対する前記空白部の相対位置に基づいて、前記第1の桁に後続する第2の桁の数字を特定する、
処理をコンピュータが実行することを特徴とする認識方法。
The image that the meter display area of the drum type meter was captured is acquired, and
When there is one blank portion in the numerical display area of the first digit included in the meter display area cut out from the image and crosses the numerical display area in a predetermined direction, the blank portion is described. By dividing the number display area into two with a portion as a boundary, the number display area is separated into a first character piece area and a second character piece area.
With reference to each template image of the numbers arranged in the digits included in the meter display area, a candidate for each number is identified from the first character piece area and the second character piece area.
Among the combinations of the number candidates specified from the first character piece area and the number candidates specified from the second character piece area, the numbers satisfying the arrangement condition of the numbers arranged on the drum of the drum type meter. The number of the first digit is specified based on the combination of the candidates of the first digit, and the second digit following the first digit is specified based on the relative position of the blank portion with respect to the digit display area of the first digit. Identify the digit number,
A recognition method characterized by a computer performing processing.
ドラム式メータのメータ表示領域が撮像された画像を取得する取得部と、
前記画像から切り出されたメータ表示領域に含まれる第1の桁の数字表示領域内の空白部であって前記数字表示領域を所定の方向に横断する空白部が1つである場合に、前記空白部を境界に前記数字表示領域を2つに区切ることにより前記数字表示領域を第1の文字片領域および第2の文字片領域に分離する分離部と、
前記メータ表示領域に含まれる桁に配置される数字の各々のテンプレート画像を参照して、前記第1の文字片領域および前記第2の文字片領域からそれぞれの数字の候補を特定する第1の特定部と、
前記第1の文字片領域から特定した数字の候補および前記第2の文字片領域から特定した数字の候補の組合せの内、前記ドラム式メータが有するドラムに配列される数字の配列条件を満たす数字の候補の組合せに基づいて前記第1の桁の数字を特定すると共に、前記第1の桁の数字表示領域に対する前記空白部の相対位置に基づいて、前記第1の桁に後続する第2の桁の数字を特定する第2の特定部と、
を有することを特徴とする認識装置。
An acquisition unit that acquires an image in which the meter display area of a drum-type meter is captured, and
When there is one blank portion in the numerical display area of the first digit included in the meter display area cut out from the image and crosses the numerical display area in a predetermined direction, the blank portion is described. A separation unit that separates the number display area into a first character piece area and a second character piece area by dividing the number display area into two with a unit as a boundary.
A first to identify a candidate for each number from the first character piece area and the second character piece area with reference to each template image of the numbers arranged in the digits included in the meter display area. With a specific part
Among the combinations of the number candidates specified from the first character piece area and the number candidates specified from the second character piece area, the numbers satisfying the arrangement condition of the numbers arranged on the drum of the drum type meter. The number of the first digit is specified based on the combination of the candidates of the first digit, and the second digit following the first digit is specified based on the relative position of the blank portion with respect to the digit display area of the first digit. The second specific part that specifies the digit number, and
A recognition device characterized by having.
JP2017208639A 2017-10-27 2017-10-27 Recognition program, recognition method and recognition device Active JP7067018B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017208639A JP7067018B2 (en) 2017-10-27 2017-10-27 Recognition program, recognition method and recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017208639A JP7067018B2 (en) 2017-10-27 2017-10-27 Recognition program, recognition method and recognition device

Publications (2)

Publication Number Publication Date
JP2019082761A JP2019082761A (en) 2019-05-30
JP7067018B2 true JP7067018B2 (en) 2022-05-16

Family

ID=66670424

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017208639A Active JP7067018B2 (en) 2017-10-27 2017-10-27 Recognition program, recognition method and recognition device

Country Status (1)

Country Link
JP (1) JP7067018B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7093321B2 (en) * 2019-03-19 2022-06-29 株式会社Third Instrument reading system
CN113658420B (en) * 2020-05-12 2022-10-18 中移物联网有限公司 Multi-screen ammeter meter reading expert system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003242444A (en) 2002-02-20 2003-08-29 Toko Electric Corp Inking shape meter recognizing and processing unit and inking shape meter recognizing and processing method
JP2003346081A (en) 2002-05-29 2003-12-05 Mitsubishi Electric Corp Character recognition device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3372111B2 (en) * 1994-04-08 2003-01-27 日本電気計器検定所 Watt hour meter character recognition device
JPH0944601A (en) * 1995-07-28 1997-02-14 Chubu Electric Power Co Inc Image recognizing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003242444A (en) 2002-02-20 2003-08-29 Toko Electric Corp Inking shape meter recognizing and processing unit and inking shape meter recognizing and processing method
JP2003346081A (en) 2002-05-29 2003-12-05 Mitsubishi Electric Corp Character recognition device

Also Published As

Publication number Publication date
JP2019082761A (en) 2019-05-30

Similar Documents

Publication Publication Date Title
JP6706788B2 (en) Image recognition method, image recognition device and program
US8929595B2 (en) Dictionary creation using image similarity
US11323577B2 (en) Image processing device for creating an album
JP2018151979A (en) Image processing apparatus, method, and program
JP7067018B2 (en) Recognition program, recognition method and recognition device
CN106445424A (en) Information processing method and information processing apparatus
JP2016031679A (en) Object identification device, object identification method, and program
US10621427B2 (en) Information processing apparatus, storage medium, and information processing method for character recognition by setting a search area on a target image
JP5794036B2 (en) Image search apparatus, image search method, and program
EP3093822A1 (en) Displaying a target object imaged in a moving picture
JP2018151830A (en) Image processing device, image processing method and program
JP2018045302A (en) Information processing device, information processing method and program
JP2017045438A (en) Image analyzer, image analysis method, image analysis program and image analysis system
CN108875538B (en) Attribute detection method, device and system and storage medium
JP2018029270A (en) Image processing apparatus, control method thereof, imaging apparatus, and program
JP6247103B2 (en) Form item recognition method, form item recognition apparatus, and form item recognition program
JP2008305311A (en) Display device and method, program, and recording medium
JP6379478B2 (en) Image processing apparatus, electronic camera, and image processing program
JP6656453B2 (en) Reading system, reading device, program, and storage medium
CN109165627A (en) A kind of model building method, device and testimony of a witness checking method
JP6175904B2 (en) Verification target extraction system, verification target extraction method, verification target extraction program
JP6731883B2 (en) Reference image selection device, method, and program
JP2015508923A (en) System and method for efficiently performing an image classification procedure
JP6923011B2 (en) Travel time storage system, travel time storage method and travel time storage program
JP2015187770A (en) Image recognition device, image recognition method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200709

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210804

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210817

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211018

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: 20220329

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220411

R150 Certificate of patent or registration of utility model

Ref document number: 7067018

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150