JP7484251B2 - IMAGE ANALYSIS DEVICE, IMAGE ANALYSIS METHOD, AND PROGRAM - Google Patents

IMAGE ANALYSIS DEVICE, IMAGE ANALYSIS METHOD, AND PROGRAM Download PDF

Info

Publication number
JP7484251B2
JP7484251B2 JP2020043026A JP2020043026A JP7484251B2 JP 7484251 B2 JP7484251 B2 JP 7484251B2 JP 2020043026 A JP2020043026 A JP 2020043026A JP 2020043026 A JP2020043026 A JP 2020043026A JP 7484251 B2 JP7484251 B2 JP 7484251B2
Authority
JP
Japan
Prior art keywords
image
meter
pointer
value
image analysis
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
JP2020043026A
Other languages
Japanese (ja)
Other versions
JP2021144494A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP2020043026A priority Critical patent/JP7484251B2/en
Publication of JP2021144494A publication Critical patent/JP2021144494A/en
Application granted granted Critical
Publication of JP7484251B2 publication Critical patent/JP7484251B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Description

本発明は、画像解析装置、画像解析方法、及びプログラムに関する。 The present invention relates to an image analysis device, an image analysis method, and a program.

従来、各種メータが有する指示部に示される指示値を認識する技術が各種提案されている。 Various technologies have been proposed to recognize the indicated values shown on the indicators of various meters.

例えば、下記特許文献1には、指針によって指示値が示される指示部を有するメータであって、当該メータの指示部が撮像された撮像画像に対して画像認識処理を行うことで、指示部に示された指示値を認識する技術が開示されている。 For example, the following Patent Document 1 discloses a technology for a meter having an indicator where a value is indicated by a needle, and for recognizing the indicated value by performing image recognition processing on an image of the indicator of the meter.

特開2011-81715号公報JP 2011-81715 A

特許文献1には、指針によって指示値が示される指示部を有するメータにおける指示値を認識するための画像認識処理のみが開示されている。しかしながら、メータには、指針によって指示値が示される指示部を有するメータ以外にも、多様な種類のメータが存在する。そこで、メータの種類に応じた画像解析により、各メータの指示値をより精度高く取得できることが望ましい。 Patent Document 1 only discloses image recognition processing for recognizing the indicated value of a meter having an indicator where the indicated value is indicated by a needle. However, there are many other types of meters other than meters having an indicator where the indicated value is indicated by a needle. Therefore, it is desirable to be able to obtain the indicated value of each meter with higher accuracy by image analysis according to the type of meter.

上述の課題を鑑み、本発明の目的は、メータの種類に応じた画像解析によって各種メータの指示値を精度高く取得することが可能な画像解析装置、画像解析方法、及びプログラムを提供することにある。 In view of the above-mentioned problems, the object of the present invention is to provide an image analysis device, an image analysis method, and a program that can obtain the indicated values of various meters with high accuracy by performing image analysis according to the type of meter.

上述の課題を解決するために、本発明の一態様に係る画像解析装置は、指針によって指示値が示されるメータが撮像された撮像画像を2値化した第1の2値化画像を生成し、前記第1の2値化画像における前記指針を示す画素の分布に関するヒストグラムを2値化した第2の2値化画像を生成する画像処理部と、前記第2の2値化画像に基づき、前記指針が前記指示値を指している指針位置を特定し、前記指針位置における前記指示値を取得する画像解析部と、を備える。 In order to solve the above-mentioned problems, an image analysis device according to one aspect of the present invention includes an image processing unit that generates a first binary image by binarizing an image of a meter in which an indicated value is indicated by a pointer, and generates a second binary image by binarizing a histogram relating to the distribution of pixels indicating the pointer in the first binary image, and an image analysis unit that identifies the pointer position where the pointer is pointing to the indicated value based on the second binary image, and acquires the indicated value at the pointer position.

本発明の一態様に係る画像解析方法は、画像処理部が、指針によって指示値が示されるメータが撮像された撮像画像を2値化した第1の2値化画像を生成し、前記第1の2値化画像における前記指針を示す画素の分布に関するヒストグラムを2値化した第2の2値化画像を生成することと、画像解析部が、前記第2の2値化画像に基づき、前記指針が前記指示値を指している指針位置を特定し、前記指針位置における前記指示値を取得することと、を含む。 An image analysis method according to one aspect of the present invention includes an image processing unit generating a first binary image by binarizing an image of a meter in which an indicated value is indicated by a pointer, and generating a second binary image by binarizing a histogram relating to the distribution of pixels indicating the pointer in the first binary image, and an image analysis unit identifying a pointer position where the pointer is pointing to the indicated value based on the second binary image, and acquiring the indicated value at the pointer position.

本発明の一態様に係るプログラムは、コンピュータを、指針によって指示値が示されるメータが撮像された撮像画像を2値化した第1の2値化画像を生成し、前記第1の2値化画像における前記指針を示す画素の分布に関するヒストグラムを2値化した第2の2値化画像を生成する画像処理部と、前記第2の2値化画像に基づき、前記指針が前記指示値を指している指針位置を特定し、前記指針位置における前記指示値を取得する画像解析部と、として機能させる。 A program according to one aspect of the present invention causes a computer to function as an image processing unit that generates a first binary image by binarizing an image of a meter whose indicated value is indicated by a pointer, and generates a second binary image by binarizing a histogram relating to the distribution of pixels indicating the pointer in the first binary image, and an image analysis unit that identifies the pointer position where the pointer is pointing to the indicated value based on the second binary image, and acquires the indicated value at the pointer position.

また、上述の課題を解決するために、本発明の一態様に係る画像解析装置は、軸に沿って移動可能なフロートによって指示値が示されるメータが撮像された撮像画像を2値化した第1の2値化画像を生成し、前記第1の2値化画像における前記軸を示す画素の画素値と、前記第1の2値化画像における前記軸に対して平行な所定のライン上の画素の画素値とに基づく第2の2値化画像を生成する画像処理部と、前記第2の2値化画像に基づき、前記フロートの位置を特定し、前記フロートの位置における前記指示値を取得する画像解析部と、を備える。 In order to solve the above-mentioned problems, an image analysis device according to one aspect of the present invention includes an image processing unit that generates a first binary image by binarizing an image of a meter whose indication value is indicated by a float movable along an axis, and generates a second binary image based on pixel values of pixels indicating the axis in the first binary image and pixel values of pixels on a predetermined line parallel to the axis in the first binary image, and an image analysis unit that identifies the position of the float based on the second binary image and obtains the indication value at the position of the float.

本発明の一態様に係る画像解析方法は、画像処理部が、軸に沿って移動可能なフロートによって指示値が示されるメータが撮像された撮像画像を2値化した第1の2値化画像を生成し、前記第1の2値化画像における前記軸を示す画素の画素値と、前記第1の2値化画像における前記軸に対して平行な所定のライン上の画素の画素値とに基づく第2の2値化画像を生成することと、画像解析部が、前記第2の2値化画像に基づき、前記フロートの位置を特定し、前記フロートの位置における前記指示値を取得することと、を含む。 An image analysis method according to one aspect of the present invention includes an image processing unit generating a first binary image by binarizing an image of a meter whose indication value is indicated by a float movable along an axis, and generating a second binary image based on pixel values of pixels indicating the axis in the first binary image and pixel values of pixels on a predetermined line parallel to the axis in the first binary image, and an image analysis unit identifying the position of the float based on the second binary image and obtaining the indication value at the position of the float.

本発明の一態様に係るプログラムは、コンピュータを、軸に沿って移動可能なフロートによって指示値が示されるメータが撮像された撮像画像を2値化した第1の2値化画像を生成し、前記第1の2値化画像における前記軸を示す画素の画素値と、前記第1の2値化画像における前記軸に対して平行な所定のライン上の画素の画素値とに基づく第2の2値化画像を生成する画像処理部と、前記第2の2値化画像に基づき、前記フロートの位置を特定し、前記フロートの位置における前記指示値を取得する画像解析部と、として機能させる。 A program according to one aspect of the present invention causes a computer to function as an image processing unit that generates a first binary image by binarizing an image of a meter whose indicated value is indicated by a float movable along an axis, and generates a second binary image based on pixel values of pixels in the first binary image that indicate the axis and pixel values of pixels on a predetermined line parallel to the axis in the first binary image, and an image analysis unit that identifies the position of the float based on the second binary image and obtains the indicated value at the position of the float.

本発明によれば、メータの種類に応じた画像解析によって各種メータの指示値を精度高く取得することができる。 According to the present invention, it is possible to obtain the readings of various meters with high accuracy by performing image analysis according to the type of meter.

本実施形態に係る画像解析システムの構成の一例を示すブロック図である。1 is a block diagram showing an example of a configuration of an image analysis system according to an embodiment of the present invention. 本実施形態に係る撮像制御端末の機能構成の一例を示すブロック図である。2 is a block diagram showing an example of a functional configuration of an imaging control terminal according to the present embodiment. FIG. 本実施形態に係る画像解析端末の機能構成の一例を示すブロック図である。2 is a block diagram showing an example of a functional configuration of an image analysis terminal according to the present embodiment. FIG. 本実施形態に係る画像解析端末における処理の流れの一例を示すフローチャートである。10 is a flowchart showing an example of a processing flow in the image analysis terminal according to the present embodiment. 本実施形態に係る7セグメータのメータ画像に対するHSVマスキングの一例を示す図である。11 is a diagram showing an example of HSV masking for a 7-segment meter image according to the embodiment; FIG. 本実施形態に係る7セグメータに対する解析処理の流れの一例を示すフローチャートである。10 is a flowchart showing an example of the flow of an analysis process for a seven-segment meter according to the present embodiment. 本実施形態に係る円形メータのメータ画像に対するHSVマスキングの一例を示す図である。11A and 11B are diagrams illustrating an example of HSV masking for a meter image of a circular meter according to the present embodiment. 本実施形態に係る円形メータのメータ画像の2値化画像に対するノイズ除去の一例を示す図である。11A and 11B are diagrams illustrating an example of noise removal for a binary image of a meter image of a circular meter according to the embodiment. 本実施形態に係る円形メータのメータ画像の2値化画像に基づく角度情報のヒストグラム化の一例を示す図である。11 is a diagram showing an example of a histogram of angle information based on a binary image of a meter image of a circular meter according to the present embodiment. FIG. 本実施形態に係る角度情報のヒストグラムの2値化の一例を示す図である。FIG. 11 is a diagram showing an example of binarization of a histogram of angle information according to the embodiment. 本実施形態に係る円形メータに対する解析処理の流れの一例を示すフローチャートである。5 is a flowchart showing an example of the flow of an analysis process for a circular meter according to the present embodiment. 本実施形態に係るエッジワイズメータのメータ画像に対するHSVマスキングの一例を示す図である。11 is a diagram showing an example of HSV masking for a meter image of an edgewise meter according to the embodiment; FIG. 本実施形態に係るエッジワイズメータのメータ画像の2値化画像に基づく位置情報のヒストグラム化の一例を示す図である。11 is a diagram showing an example of a histogram of position information based on a binary image of a meter image of an edgewise meter according to the embodiment; FIG. 本実施形態に係る位置情報のヒストグラムの2値化の一例を示す図である。FIG. 11 is a diagram showing an example of binarization of a histogram of position information according to the embodiment. 本実施形態に係るエッジワイズメータに対する解析処理の流れの一例を示すフローチャートである。5 is a flowchart showing an example of a flow of an analysis process for an edgewise meter according to the present embodiment. 本実施形態に係るフロートメータのメータ画像に対する2値化の一例を示す図である。4 is a diagram showing an example of binarization of a meter image of a float meter according to the present embodiment; FIG. 本実施形態に係る特徴値画像の生成の一例を示す図である。10A to 10C are diagrams illustrating an example of generation of a feature value image according to the present embodiment. 本実施形態に係るフロートメータに対する解析処理の流れの一例を示すフローチャートである。5 is a flowchart showing an example of a flow of an analysis process for a float meter according to the present embodiment.

以下、図面を参照しながら本発明の実施形態について詳しく説明する。 The following describes in detail an embodiment of the present invention with reference to the drawings.

<1.画像解析システムの構成>
まず、図1を参照して、本実施形態に係る画像解析システムの構成の一例について説明する。図1は、本実施形態に係る画像解析システム1の構成の一例を示すブロック図である。画像解析システム1は、図1に示す撮像装置2、撮像制御端末4、及び画像解析端末5で構成される。
1. Image analysis system configuration
First, an example of the configuration of an image analysis system according to this embodiment will be described with reference to Fig. 1. Fig. 1 is a block diagram showing an example of the configuration of an image analysis system 1 according to this embodiment. The image analysis system 1 is composed of an imaging device 2, an imaging control terminal 4, and an image analysis terminal 5 shown in Fig. 1.

撮像装置2は、メータ3(3-1~3-n(nは自然数))を撮像した撮像画像を取得する装置(例えばカメラ)である。撮像領域20は、撮像装置2が撮像可能な領域である。本実施形態に係る撮像装置2は、撮像領域20に複数のメータ3が含まれるように設けられる。なお、撮像領域20に含まれるメータ3の数は、特に限定されない。アライメントマーカ30は、撮像画像の正対補正に用いられるマーカである。撮像領域20には、複数のアライメントマーカ30が含まれてもよい。 The imaging device 2 is a device (e.g., a camera) that captures an image of the meters 3 (3-1 to 3-n (n is a natural number)). The imaging area 20 is an area that can be captured by the imaging device 2. The imaging device 2 according to this embodiment is provided so that the imaging area 20 includes multiple meters 3. Note that the number of meters 3 included in the imaging area 20 is not particularly limited. The alignment markers 30 are markers used to correct the orientation of the captured image. The imaging area 20 may include multiple alignment markers 30.

メータ3は、多様なメータを含む。例えば、メータ3は、7セグメントディスプレイによって指示値が示される指示部を有するメータ(以下、「7セグメータ」とも称される)である。7セグメントディスプレイでは、7つのセグメントの組み合わせによって1つの文字が表示される。当該文字には、数字、アルファベット、及び記号が含まれる。 The meter 3 includes a variety of meters. For example, the meter 3 is a meter having an indication portion in which an indicated value is shown by a seven-segment display (hereinafter, also referred to as a "seven-segment meter"). In a seven-segment display, one character is displayed by combining seven segments. The character includes numbers, letters, and symbols.

また、メータ3は、指針によって指示値が示される指示部を有するメータ(以下、「指針メータ」とも称される)であってもよい。指針メータの一例として、円形メータ、エッジワイズメータ等が挙げられる。 Meter 3 may also be a meter having an indicator in which a value is indicated by a needle (hereinafter also referred to as a "pointer meter"). Examples of a pointer meter include a circular meter and an edgewise meter.

指針メータの指針は、規制された方向に移動し得る。例えば、平面上において中心軸を基準に、第1の方向または第2の方向のいずれか一方に移動する。これにより、指針メータの指針は、指示値を指し示す。例えば、円形メータの指針は、中心軸を基準に、時計回り方向(第1の方向)又は反時計回り方向(第2の方向)に移動する。 The pointer of a pointer meter can move in a restricted direction. For example, it moves in either a first direction or a second direction on a plane with a central axis as a reference. This causes the pointer of the pointer meter to indicate an indicated value. For example, the pointer of a circular meter moves in a clockwise direction (first direction) or counterclockwise direction (second direction) with a central axis as a reference.

なお、本実施形態の指針メータの文字盤は固定されており、指針が動くタイプのメータであるとする。なお、かかる例に限定されず、指針メータは文字盤が動くタイプのものであってもよい。 In this embodiment, the dial of the pointer meter is fixed, and the pointer is a type of meter that moves. However, this is not limited to this example, and the pointer meter may be a type that has a moving dial.

また、メータ3は、フロートによって指示値が示される指示部を有するメータ(以下、「フロートメータ」とも称される)であってもよい。フロートメータのフロートは、規制された方向に移動し得る。例えば、フロートは、軸に沿って第1の方向または第2の方向のいずれか一方に移動する。これにより、フロートメータのフロートは、指示値を指し示す。 The meter 3 may also be a meter having an indication portion in which an indicated value is indicated by a float (hereinafter, also referred to as a "float meter"). The float of the float meter may move in a regulated direction. For example, the float moves in either a first direction or a second direction along an axis. In this way, the float of the float meter indicates an indicated value.

撮像制御端末4は、撮像装置2に関する制御を行う端末である。撮像制御端末4は、例えば、PC(パーソナルコンピュータ)等の端末である。撮像装置2に関する制御は、例えば、撮像装置2がメータ3を撮像するタイミングの制御である。 The imaging control terminal 4 is a terminal that controls the imaging device 2. The imaging control terminal 4 is, for example, a terminal such as a PC (personal computer). The control of the imaging device 2 is, for example, control of the timing at which the imaging device 2 captures an image of the meter 3.

画像解析端末5は、撮像装置2が撮像した撮像画像を解析する端末である。画像解析端末5は、本実施形態に係る画像解析装置である。画像解析端末5は、例えば、PC等の端末である。画像解析端末5は、撮像画像の解析により、メータ3の指示部に示された指示値を取得する。 The image analysis terminal 5 is a terminal that analyzes the captured image captured by the imaging device 2. The image analysis terminal 5 is an image analysis device according to this embodiment. The image analysis terminal 5 is, for example, a terminal such as a PC. The image analysis terminal 5 obtains the indicated value shown on the indication section of the meter 3 by analyzing the captured image.

撮像装置2と撮像制御端末4は、互いに通信可能に接続される。例えば、撮像装置2と撮像制御端末4は、信号ケーブルによって接続され、有線による通信を行う。撮像装置2は、当該通信により、撮像画像を撮像制御端末4へ送信し、撮像制御端末4から制御信号を受信する。撮像制御端末4は、当該通信により、制御信号を撮像装置2へ送信し、撮像装置2から撮像画像を受信する。なお、撮像装置2と撮像制御端末4は、無線による通信を行ってもよい。 The imaging device 2 and the imaging control terminal 4 are connected so that they can communicate with each other. For example, the imaging device 2 and the imaging control terminal 4 are connected by a signal cable and perform wired communication. Through this communication, the imaging device 2 transmits captured images to the imaging control terminal 4 and receives control signals from the imaging control terminal 4. Through this communication, the imaging control terminal 4 transmits control signals to the imaging device 2 and receives captured images from the imaging device 2. Note that the imaging device 2 and the imaging control terminal 4 may also perform wireless communication.

撮像制御端末4と画像解析端末5は、互いに通信可能に接続される。例えば、撮像装置2と撮像制御端末4は、ネットワークNWを介して接続され、有線または無線による通信を行う。撮像制御端末4は、当該通信により、撮像画像を画像解析端末5へ送信する。画像解析端末5は、当該通信により、撮像制御端末4から撮像画像を受信する。 The imaging control terminal 4 and the image analysis terminal 5 are connected so that they can communicate with each other. For example, the imaging device 2 and the imaging control terminal 4 are connected via a network NW and communicate with each other by wire or wirelessly. The imaging control terminal 4 transmits captured images to the image analysis terminal 5 through this communication. The image analysis terminal 5 receives captured images from the imaging control terminal 4 through this communication.

<2.撮像制御端末4の機能構成>
以上、本実施形態に係る画像解析システム1の構成の一例について説明した。続いて、図2を参照して、本実施形態に係る撮像制御端末4の機能構成の一例について説明する。図2は、本実施形態に係る撮像制御端末4の機能構成の一例を示すブロック図である。図2に示すように、撮像制御端末4は、通信部410、制御部420、記憶部430、及び出力部440を備える。
2. Functional configuration of the imaging control terminal 4
An example of the configuration of the image analysis system 1 according to the present embodiment has been described above. Next, an example of the functional configuration of the imaging control terminal 4 according to the present embodiment will be described with reference to Fig. 2. Fig. 2 is a block diagram showing an example of the functional configuration of the imaging control terminal 4 according to the present embodiment. As shown in Fig. 2, the imaging control terminal 4 includes a communication unit 410, a control unit 420, a storage unit 430, and an output unit 440.

通信部410は、各種情報の送受信を行う機能を有する。例えば、通信部410は、撮像装置2へ制御信号を送信し、撮像装置2から撮像画像を受信する。通信部410は、受信した撮像画像を制御部420へ出力する。また、通信部410は、制御部420から入力される撮像画像を、画像解析端末5へ送信する。 The communication unit 410 has a function of transmitting and receiving various information. For example, the communication unit 410 transmits a control signal to the imaging device 2 and receives captured images from the imaging device 2. The communication unit 410 outputs the received captured images to the control unit 420. The communication unit 410 also transmits the captured images input from the control unit 420 to the image analysis terminal 5.

制御部420は、撮像制御端末4の動作全体を制御する。制御部420、撮像制御端末4がハードウェアとして備えるCPU(Central Processing Unit)にプログラムを実行させることによって実現される。図2に示すように、制御部420は、撮像制御部4202及び出力処理部4204を備える。 The control unit 420 controls the overall operation of the imaging control terminal 4. The control unit 420 is realized by causing a CPU (Central Processing Unit) provided as hardware in the imaging control terminal 4 to execute a program. As shown in FIG. 2, the control unit 420 includes an imaging control unit 4202 and an output processing unit 4204.

撮像制御部4202は、撮像装置2がメータ3を撮像するタイミングを制御する。撮像制御部4202は、撮像装置2にメータ3を撮像させるための制御信号を通信部410に撮像装置2へ送信させる。 The imaging control unit 4202 controls the timing at which the imaging device 2 captures an image of the meter 3. The imaging control unit 4202 causes the communication unit 410 to transmit a control signal to the imaging device 2 to cause the imaging device 2 to capture an image of the meter 3.

出力処理部4204は、撮像制御端末4における出力を制御する。例えば、出力処理部4204は、撮像画像を通信部410へ出力し、画像解析端末5へ送信させる。また、出力処理部4204は、撮像画像を記憶部430へ出力し、記憶させてもよい。また、出力処理部4204は、撮像画像を出力部440へ出力し、表示させてもよい。 The output processing unit 4204 controls the output in the imaging control terminal 4. For example, the output processing unit 4204 outputs the captured image to the communication unit 410 and transmits it to the image analysis terminal 5. The output processing unit 4204 may also output the captured image to the storage unit 430 and store it. The output processing unit 4204 may also output the captured image to the output unit 440 and display it.

記憶部430は、記憶媒体、例えば、HDD(Hard Disk Drive)、フラッシュメモリ、EEPROM(Electrically Erasable Programmable Read Only Memory)、RAM(Random Access read/write Memory)、ROM(Read Only Memory)、またはこれらの記憶媒体の任意の組み合わせによって構成される。記憶部430は、例えば、不揮発性メモリを用いることができる。
記憶部430は、各種情報を記憶する。各種情報は、例えば、出力処理部4204から入力される撮像画像である。
The storage unit 430 is configured by a storage medium, for example, a hard disk drive (HDD), a flash memory, an electrically erasable programmable read only memory (EEPROM), a random access read/write memory (RAM), a read only memory (ROM), or any combination of these storage media. The storage unit 430 can be, for example, a non-volatile memory.
The storage unit 430 stores various types of information, such as captured images input from the output processing unit 4204.

出力部440は、例えば、ディスプレイ等の表示装置である。
出力部440は、各種情報を出力する。各種情報は、例えば、出力処理部4204から入力される撮像画像である。
The output unit 440 is, for example, a display device such as a display.
The output unit 440 outputs various information, such as a captured image input from the output processing unit 4204.

<3.画像解析端末5の機能構成>
以上、本実施形態に係る撮像制御端末4の機能構成の一例について説明した。続いて、図3を参照して、本実施形態に係る画像解析端末5の機能構成の一例について説明する。図3は、本実施形態に係る画像解析端末5の機能構成の一例を示すブロック図である。図3に示すように、画像解析端末5は、通信部510、制御部520、記憶部530、及び出力部540を備える。
<3. Functional configuration of image analysis terminal 5>
An example of the functional configuration of the imaging control terminal 4 according to this embodiment has been described above. Next, an example of the functional configuration of the image analysis terminal 5 according to this embodiment will be described with reference to Fig. 3. Fig. 3 is a block diagram showing an example of the functional configuration of the image analysis terminal 5 according to this embodiment. As shown in Fig. 3, the image analysis terminal 5 includes a communication unit 510, a control unit 520, a storage unit 530, and an output unit 540.

通信部510は、各種情報の送受信を行う機能を有する。例えば、通信部510は、撮像制御端末4から送信される撮像画像を受信する。通信部510は、受信した撮像画像を制御部520へ出力する。 The communication unit 510 has a function of transmitting and receiving various information. For example, the communication unit 510 receives captured images transmitted from the imaging control terminal 4. The communication unit 510 outputs the received captured images to the control unit 520.

制御部520は、画像解析端末5の動作全体を制御する。制御部520、画像解析端末5がハードウェアとして備えるCPU(Central Processing Unit)にプログラムを実行させることによって実現される。図3に示すように、制御部520は、補正部5202、判定部5204、画像処理部5206、画像解析部5208、及び出力処理部5210を備える。 The control unit 520 controls the overall operation of the image analysis terminal 5. The control unit 520 is realized by causing a CPU (Central Processing Unit) provided as hardware in the image analysis terminal 5 to execute a program. As shown in FIG. 3, the control unit 520 includes a correction unit 5202, a determination unit 5204, an image processing unit 5206, an image analysis unit 5208, and an output processing unit 5210.

補正部5202は、通信部510から入力された撮像画像に対して補正処理を行う。例えば、補正部5202は、撮像画像内のアライメントマーカ30に基づき、撮像画像に対して正対補正を行う。 The correction unit 5202 performs a correction process on the captured image input from the communication unit 510. For example, the correction unit 5202 performs a facing correction on the captured image based on the alignment marker 30 in the captured image.

具体的に、まず、補正部5202は、撮像画像から複数のアライメントマーカ30を検出する。補正部5202は、検出した複数のアライメントマーカ30間の距離を算出した上で、複数のアライメントマーカ30間の距離の縦横比を算出する。補正部5202は、算出した縦横比に基づき、撮像画像が正対画像となるように、撮像画像に対して台形補正を行う。 Specifically, first, the correction unit 5202 detects multiple alignment markers 30 from the captured image. The correction unit 5202 calculates the distance between the detected multiple alignment markers 30, and then calculates the aspect ratio of the distance between the multiple alignment markers 30. Based on the calculated aspect ratio, the correction unit 5202 performs keystone correction on the captured image so that the captured image becomes a front-facing image.

これにより、補正部5202は、正対画像となった撮像画像を取得することができる。補正部5202は、正対補正後の撮像画像を判定部5204へ出力する。 As a result, the correction unit 5202 can obtain a captured image that has become a front-facing image. The correction unit 5202 outputs the captured image after the front-facing correction to the determination unit 5204.

また、補正部5202は、後述する解析処理において、撮像画像から各メータの領域を切り取ったメータ画像ごとに、歪み補正を行ってもよい。例えば、補正部5202は、メータ画像に対して、ユーザによってあらかじめ用意された歪み補正用の補正マトリクスを適用する。歪み補正により、メータ画像の歪みが補正される。補正部5202は、歪み補正後のメータ画像を画像解析部5208へ出力する。後述する画像解析部5208は、補正部5202が歪み補正を行ったメータ画像を用いて解析処理を行うことで、解析処理における解析精度を向上することができる。 The correction unit 5202 may also perform distortion correction for each meter image obtained by cutting out the area of each meter from the captured image in the analysis process described below. For example, the correction unit 5202 applies a correction matrix for distortion correction prepared in advance by the user to the meter image. The distortion of the meter image is corrected by the distortion correction. The correction unit 5202 outputs the meter image after distortion correction to the image analysis unit 5208. The image analysis unit 5208 described below can improve the analysis accuracy in the analysis process by performing analysis processing using the meter image for which the distortion correction has been performed by the correction unit 5202.

また、補正部5202は、後述する解析処理において、メータ画像ごとに拡大処理を行ってもよい。一例として、補正部5202は、メータ画像の画素数が所定の閾値以上であるか否かを判定し、判定結果に応じて各メータ画像に対して拡大処理を行う。拡大処理の一例として、メータ画像のサイズが300画素四方の画像よりも小さい場合、即ち、所定の閾値が90000画素(300画素×300画素)以上でない場合、補正部5202は、メータ画像に対して拡大処理を行う。なお、所定の閾値の値はかかる例に限定されず、任意の値が設定されてよい。 The correction unit 5202 may also perform enlargement processing for each meter image in the analysis processing described below. As an example, the correction unit 5202 determines whether the number of pixels in the meter image is equal to or greater than a predetermined threshold, and performs enlargement processing on each meter image depending on the determination result. As an example of enlargement processing, when the size of the meter image is smaller than an image of 300 pixels square, that is, when the predetermined threshold is not equal to or greater than 90,000 pixels (300 pixels x 300 pixels), the correction unit 5202 performs enlargement processing on the meter image. Note that the value of the predetermined threshold is not limited to this example, and any value may be set.

また、補正部5202は、後述する解析処理において、メータ画像ごとにバイリニア補完を行ってもよい。例えば、補正部5202は、拡大処理後のメータ画像に対してバイリニア補完を行う。バイリニア補完により、補正部5202は、バイリニア補完前よりもなめらかに表現されたメータ画像を得ることができる。補正部5202は、バイリニア補完後のメータ画像を画像解析部5208へ出力する。後述する画像解析部5208は、補正部5202がバイリニア補完を行ったメータ画像を用いて解析処理を行うことで、解析処理における解析精度を向上することができる。 The correction unit 5202 may also perform bilinear interpolation for each meter image in the analysis process described below. For example, the correction unit 5202 performs bilinear interpolation on the meter image after the enlargement process. By using bilinear interpolation, the correction unit 5202 can obtain a meter image that is more smoothly expressed than before the bilinear interpolation. The correction unit 5202 outputs the meter image after bilinear interpolation to the image analysis unit 5208. The image analysis unit 5208 described below can improve the analysis accuracy in the analysis process by performing analysis using the meter image on which the correction unit 5202 has performed bilinear interpolation.

判定部5204は、メータ3の種類を判定する。例えば、判定部5204は、メータ画像とメータ情報とに基づき、メータ3の種類をメータ画像ごとに判定する。メータ情報には、例えば、メータ3の種類ごとの特徴を示す情報が含まれる。一例として、判定部5204は、メータ画像ごとに画像認識処理を行って得られた指示部ごとの特徴と、メータ情報とを比較してメータ3の種類を判定する。判定部5204は、判定結果を画像解析部5208へ出力する。 The determination unit 5204 determines the type of the meter 3. For example, the determination unit 5204 determines the type of the meter 3 for each meter image based on the meter image and the meter information. The meter information includes, for example, information indicating the characteristics of each type of meter 3. As an example, the determination unit 5204 determines the type of the meter 3 by comparing the characteristics of each indicator obtained by performing image recognition processing for each meter image with the meter information. The determination unit 5204 outputs the determination result to the image analysis unit 5208.

画像処理部5206は、各種処理に応じた画像処理を行う。例えば、画像処理部5206は、補正部5202の補正処理、判定部5204の判定処理、及び画像解析部5208の解析処理等で用いられるメータ画像を生成する。具体的に、画像処理部5206は、撮像画像から各メータ3の領域を切り取り、撮像画像に写るメータ3ごとにメータ画像を生成する。画像処理部5206は、生成したメータ画像を補正部5202へ出力する。 The image processing unit 5206 performs image processing according to various processes. For example, the image processing unit 5206 generates a meter image used in the correction process of the correction unit 5202, the determination process of the determination unit 5204, and the analysis process of the image analysis unit 5208. Specifically, the image processing unit 5206 cuts out the area of each meter 3 from the captured image and generates a meter image for each meter 3 that appears in the captured image. The image processing unit 5206 outputs the generated meter image to the correction unit 5202.

また、画像処理部5206は、画像解析部5208の解析処理に関する画像処理を行う。なお、解析処理に関する画像処理の詳細は、後述される。 The image processing unit 5206 also performs image processing related to the analysis processing of the image analysis unit 5208. Details of the image processing related to the analysis processing will be described later.

画像解析部5208は、判定結果に基づき、メータ画像に対してメータ3の種類に応じた解析処理を行い、複数のメータ3の各々の指示値を取得する。メータ3の種類ごとの解析処理の詳細は後述する。画像解析部5208は、取得した指示値を出力処理部5210へ出力する。 Based on the determination result, the image analysis unit 5208 performs an analysis process on the meter image according to the type of meter 3, and obtains the indication value of each of the multiple meters 3. Details of the analysis process for each type of meter 3 will be described later. The image analysis unit 5208 outputs the obtained indication value to the output processing unit 5210.

出力処理部5210は、画像解析端末5における処理で得られる情報に関する出力処理を行う。例えば、出力処理部5210は、画像解析部5208が解析処理によって取得した指示値を記憶部530へ出力し、記憶させる。 The output processing unit 5210 performs output processing related to information obtained by processing in the image analysis terminal 5. For example, the output processing unit 5210 outputs the indication value obtained by the image analysis unit 5208 through the analysis processing to the storage unit 530 and stores it.

また、出力処理部5210は、通信部510が撮像制御端末4から受信した撮像画像を記憶部530へ出力し、記憶させる。撮像画像は、例えば、アーカイブとして記憶部530に記憶される。なお、出力処理部5210は、撮像画像を出力部540へ出力し、表示させてもよい。 The output processing unit 5210 also outputs the captured image received by the communication unit 510 from the imaging control terminal 4 to the storage unit 530 for storage. The captured image is stored in the storage unit 530 as an archive, for example. The output processing unit 5210 may also output the captured image to the output unit 540 for display.

記憶部530は、記憶媒体、例えば、HDD(Hard Disk Drive)、フラッシュメモリ、EEPROM(Electrically Erasable Programmable Read Only Memory)、RAM(Random Access read/write Memory)、ROM(Read Only Memory)、またはこれらの記憶媒体の任意の組み合わせによって構成される。記憶部530は、例えば、不揮発性メモリを用いることができる。
記憶部530は、各種情報を記憶する。各種情報は、例えば、出力処理部5210から入力される指示値または撮像画像である。
The storage unit 530 is configured by a storage medium, for example, a hard disk drive (HDD), a flash memory, an electrically erasable programmable read only memory (EEPROM), a random access read/write memory (RAM), a read only memory (ROM), or any combination of these storage media. The storage unit 530 may be, for example, a non-volatile memory.
The storage unit 530 stores various types of information, such as an instruction value or a captured image input from the output processing unit 5210.

出力部540は、例えば、ディスプレイ等の表示装置である。
出力部540は、各種情報を出力する。各種情報は、例えば、出力処理部5210から入力される撮像画像である。
The output unit 540 is, for example, a display device such as a display.
The output unit 540 outputs various types of information, such as the captured image input from the output processing unit 5210.

<4.処理の流れ>
以上、本実施形態に係る画像解析端末5の機能構成の一例について説明した。続いて、図4を参照して、本実施形態に係る画像解析端末5における処理の流れの一例について説明する。図4は、本実施形態に係る画像解析端末5における処理の流れの一例を示すフローチャートである。
<4. Processing flow>
An example of the functional configuration of the image analysis terminal 5 according to the present embodiment has been described above. Next, an example of the flow of processing in the image analysis terminal 5 according to the present embodiment will be described with reference to Fig. 4. Fig. 4 is a flowchart showing an example of the flow of processing in the image analysis terminal 5 according to the present embodiment.

図4に示すように、まず、画像解析端末5は、撮像制御端末4から撮像画像を受信する(S102)。 As shown in FIG. 4, first, the image analysis terminal 5 receives a captured image from the imaging control terminal 4 (S102).

画像解析端末5は、受信した撮像画像から複数のアライメントマーカ30を検出する(S104)。画像解析端末5は、複数のアライメントマーカ30に基づき、撮像画像に対して正対補正を行う(S106)。 The image analysis terminal 5 detects the alignment markers 30 from the received captured image (S104). The image analysis terminal 5 performs orientation correction on the captured image based on the alignment markers 30 (S106).

画像解析端末5は、正対補正後の撮像画像から各メータ3の領域を切り取り、メータ3ごとにメータ画像を生成する(S108)。 The image analysis terminal 5 cuts out the area of each meter 3 from the captured image after orientation correction, and generates a meter image for each meter 3 (S108).

画像解析端末5は、生成したメータ画像とメータ情報とに基づき、メータ画像に写るメータ3の種類の判定を行う(S110)。 The image analysis terminal 5 determines the type of meter 3 shown in the meter image based on the generated meter image and meter information (S110).

画像解析端末5は、判定したメータ3の種類に応じて、メータ画像に対して解析処理を行い、各メータ3における指示値を取得する(S112)。なお、解析処理の詳細は、後述される。 The image analysis terminal 5 performs an analysis process on the meter image according to the determined type of meter 3, and obtains the indicated value of each meter 3 (S112). Details of the analysis process will be described later.

画像解析端末5は、取得した指示値に関する出力処理を行う(S114)。例えば、画像解析端末5は、受信した撮像画像と取得した指示値を記憶部530へ出力し、記憶させる。 The image analysis terminal 5 performs an output process related to the acquired instruction value (S114). For example, the image analysis terminal 5 outputs the received captured image and the acquired instruction value to the storage unit 530 and stores them.

<5.具体例>
以上、本実施形態に係る画像解析端末5における処理の流れの一例について説明した。続いて、図5~図18を参照して、本実施形態に係る具体例について説明する。上述したように、画像解析端末5は、メータ3の種類に応じた解析処理を行い、メータ3の指示値を取得する。以下では、メータ3の種類に応じた解析処理の具体例について詳細に説明する。
5. Specific Examples
An example of the flow of processing in the image analysis terminal 5 according to the present embodiment has been described above. Next, a specific example according to the present embodiment will be described with reference to Figs. 5 to 18. As described above, the image analysis terminal 5 performs analysis processing according to the type of the meter 3 and acquires the indicated value of the meter 3. A specific example of analysis processing according to the type of the meter 3 will be described in detail below.

(1)第1の具体例
第1の具体例では、図5及び図6を参照して、メータ3が7セグメータである場合の解析処理の一例について説明する。まず、メータ3が7セグメータである場合に、補正部5202、画像処理部5206、及び画像解析部5208が解析処理にて行う処理の詳細について説明する。
(1) First Specific Example In the first specific example, an example of the analysis process when the meter 3 is a seven-segment meter will be described with reference to Fig. 5 and Fig. 6. First, when the meter 3 is a seven-segment meter, the details of the processes performed in the analysis process by the correction unit 5202, the image processing unit 5206, and the image analysis unit 5208 will be described.

(補正部5202の処理)
補正部5202は、例えば、7セグメータのメータ画像に対して歪み補正を行う。また、補正部5202は、歪み補正後の7セグメータのメータ画像に対して、バイリニア補完を行う。
(Processing of correction unit 5202)
The correction unit 5202 performs distortion correction on, for example, a seven-segment meter image. The correction unit 5202 also performs bilinear interpolation on the seven-segment meter image after the distortion correction.

なお、7セグメントディスプレイには、指示値の各文字が斜体で表示されるタイプのものや、指示値に小数点が含まれるタイプのものも含まれる。補正部5202は、後述する画像解析部5208が斜体で表示された指示値や小数点を含む指示値を認識可能に、メータ画像に対して補正を行う。例えば、補正部5202は、指示値を構成する各文字を外接矩形で囲んだ際に、1つの外接矩形に1つの文字のみが含まれるように、メータ画像の歪みを補正する。 Note that 7-segment displays include types in which each character of the indicated value is displayed in italics, and types in which the indicated value includes a decimal point. The correction unit 5202 performs correction on the meter image so that the image analysis unit 5208 described below can recognize the indicated value displayed in italics or the indicated value including a decimal point. For example, the correction unit 5202 corrects the distortion of the meter image so that when each character constituting the indicated value is surrounded by a circumscribing rectangle, only one character is included in one circumscribing rectangle.

(画像処理部5206の処理)
画像処理部5206は、例えば、バイリニア補完後の7セグメータのメータ画像に対して、7セグメータのメータ画像のHSVに基づくマスキング(以下、「HSVマスキング」とも称される)を行う。画像処理部5206は、7セグメータのメータ画像に対するHSVマスキングにより、7セグメータのメータ画像が2値化された2値化画像を生成する。画像処理部5206は、例えば、指示値を示すセグメントの画素の色が白、当該セグメントの画素以外の画素の色が黒となるように7セグメータのメータ画像のHSVマスキングを行う。
(Processing of image processing unit 5206)
The image processing unit 5206 performs, for example, masking based on the HSV of the seven-segment meter image (hereinafter also referred to as "HSV masking") on the seven-segment meter image after bilinear interpolation. The image processing unit 5206 generates a binarized image in which the seven-segment meter image is binarized by HSV masking the seven-segment meter image. The image processing unit 5206 performs HSV masking on the seven-segment meter image so that, for example, the color of pixels of a segment indicating an indicated value becomes white, and the color of pixels other than the pixels of the segment becomes black.

画像を白黒に変換する2値化では、画像の画素の画素値が0または1のいずれか一方の値に変換される。例えば、画像の2値化において、0が白を示す画素値である場合、1が黒を示す画素値である。一方、1が白を示す画素値である場合、0が黒を示す画素値である。本実施形態では、画像の2値化にて、1が白を示す画素値であり、0が黒を示す画素値であるものとする。 In binarization, which converts an image into black and white, the pixel values of the pixels in the image are converted to either a value of 0 or 1. For example, in binarization of an image, if 0 is a pixel value that indicates white, then 1 is a pixel value that indicates black. On the other hand, if 1 is a pixel value that indicates white, then 0 is a pixel value that indicates black. In this embodiment, in binarization of an image, 1 is a pixel value that indicates white, and 0 is a pixel value that indicates black.

HSVのHはHue(色相)、SはSaturation(彩度)、VはValue(明度)を示している。HSVマスキングでは、7セグメータのメータ画像の各画素の画素値が、1(白)又は0(黒)のいずれか一方に変換される。 The H in HSV stands for Hue, S for Saturation, and V for Value. With HSV masking, the pixel value of each pixel in a seven-segment meter image is converted to either 1 (white) or 0 (black).

これにより、7セグメータのメータ画像が2値化される。本実施形態では、画像処理部5206は、7セグメータのメータ画像にて指示値を示している画素の画素値を1(白)に変換し、それ以外の画素の画素値を0(黒)に変換する。 This causes the seven-segment meter image to be binarized. In this embodiment, the image processing unit 5206 converts the pixel values of pixels showing the indicated value in the seven-segment meter image to 1 (white), and converts the pixel values of other pixels to 0 (black).

ここで、図5を参照して、7セグメータのメータ画像に対するHSVマスキングの一例について説明する。図5は、本実施形態に係る7セグメータのメータ画像に対するHSVマスキングの一例を示す図である。 Here, an example of HSV masking for a 7-segment meter image will be described with reference to FIG. 5. FIG. 5 is a diagram showing an example of HSV masking for a 7-segment meter image according to this embodiment.

図5の左図は、7セグメータのメータ画像40である。7セグメータのメータ画像40には、指示値として「1523」が示されている。画像解析端末5の画像処理部5206は、7セグメータのメータ画像40に対してHSVマスキングを行う。 The left image in FIG. 5 is a seven-segment meter image 40. The seven-segment meter image 40 shows "1523" as the indicated value. The image processing unit 5206 of the image analysis terminal 5 performs HSV masking on the seven-segment meter image 40.

これにより、画像処理部5206は、図5の右図に示すように、7セグメータのメータ画像40が2値化された2値化画像41を生成することができる。2値化画像41は、7セグメータのメータ画像40にて指示値を示していた画素の色が白で示され、指示値以外を示していた画素の色が黒で示されている。 As a result, the image processing unit 5206 can generate a binary image 41 in which the seven-segment meter image 40 is binarized, as shown in the right diagram of Figure 5. In the binary image 41, the color of pixels that indicated the indicated value in the seven-segment meter image 40 is shown in white, and the color of pixels that indicated values other than the indicated value is shown in black.

(画像解析部5208の処理)
画像解析部5208は、例えば、2値化画像に対して文字認識処理を行うことで、7セグメントディスプレイが示す指示値を取得する。2値化画像は、画像処理部5206が7セグメータのメータ画像を2値化することで生成した画像である。画像解析部5208は、文字認識処理の一例として、2値化画像に対してSSOCR(Seven Segment Optical Character Recognition)を行う。
(Processing of image analysis unit 5208)
The image analysis unit 5208 acquires an indication value indicated by the seven-segment display by performing character recognition processing on the binary image, for example. The binary image is an image generated by binarizing a seven-segment meter image by the image processing unit 5206. As an example of character recognition processing, the image analysis unit 5208 performs SSOCR (Seven Segment Optical Character Recognition) on the binary image.

画像解析部5208は、例えば、デフォルトパラメータでSSOCRをコールする。デフォルトパラメータでコールされたSSOCRにより、2値化画像における黒い画素は背景(マスキングされた領域)を構成する画素として検出され、2値化画像における白い画素は指示値を構成する画素として検出される。また、SSOCRにより、指示値の桁数も検出される。 The image analysis unit 5208 calls SSOCR with default parameters, for example. SSOCR called with default parameters detects black pixels in the binary image as pixels that make up the background (masked area), and detects white pixels in the binary image as pixels that make up the indication value. SSOCR also detects the number of digits in the indication value.

なお、黒い画素を背景の画素とするSSOCRによる認識結果が得られなかった場合、画像解析部5208は、パラメータの設定を変更して再度SSOCRをコールする。例えば、画像解析部5208は、SSOCRが白い画素を背景の画素として検出し、黒い画素を指示値の画素として検出するようにパラメータを変更する。 If the SSOCR does not obtain a recognition result that indicates that black pixels are background pixels, the image analysis unit 5208 changes the parameter settings and calls SSOCR again. For example, the image analysis unit 5208 changes the parameters so that SSOCR detects white pixels as background pixels and black pixels as pixels of the specified value.

なお、SSOCRでは、7セグメントディスプレイの表記ゆれによる誤認識が生じ得る。例えば、SSOCRでは、数字の「6」がアルファベットの「b」と誤って認識される場合がある。この場合、画像解析部5208は、誤って認識されたアルファベットの「b」を、正しい認識結果を示す数字の「6」に置換する。 In addition, in SSOCR, misrecognition may occur due to variations in notation on the seven-segment display. For example, in SSOCR, the number "6" may be mistakenly recognized as the alphabet "b." In this case, the image analysis unit 5208 replaces the incorrectly recognized alphabet "b" with the number "6," which indicates the correct recognition result.

また、画像解析部5208は、SSOCRによる認識結果を数値に変換し、指示値を数値として取得する。画像解析部5208は、取得した指示値を出力処理部5210へ出力する。なお、画像解析部5208は、SSOCRによる認識結果を数値に変換できなかった場合、SSOCRによる認識結果を変換せずに出力処理部5210へ出力する。 The image analysis unit 5208 also converts the recognition result by SSOCR into a numerical value and acquires the instruction value as a numerical value. The image analysis unit 5208 outputs the acquired instruction value to the output processing unit 5210. Note that if the image analysis unit 5208 is unable to convert the recognition result by SSOCR into a numerical value, it outputs the recognition result by SSOCR to the output processing unit 5210 without converting it.

(解析処理の流れ)
続いて、図6を参照して、7セグメータに対する解析処理の流れの一例について説明する。図6は、本実施形態に係る7セグメータに対する解析処理の流れの一例を示すフローチャートである。
(Flow of analysis process)
Next, an example of the flow of the analysis process for a seven-segment meter will be described with reference to Fig. 6. Fig. 6 is a flowchart showing an example of the flow of the analysis process for a seven-segment meter according to this embodiment.

図6に示すように、まず、画像解析端末5の補正部5202は、7セグメータのメータ画像に対して歪み補正を行う(S202)。 As shown in FIG. 6, first, the correction unit 5202 of the image analysis terminal 5 performs distortion correction on the 7-segment meter image (S202).

次いで、補正部5202は、歪み補正後の7セグメータのメータ画像に対して、バイリニア補完を行う(S204)。 Next, the correction unit 5202 performs bilinear interpolation on the distortion-corrected seven-segment meter image (S204).

次いで、画像解析端末5の画像処理部5206は、バイリニア補完後の7セグメータのメータ画像に対して、HSVマスキングを行う(S206)。 Next, the image processing unit 5206 of the image analysis terminal 5 performs HSV masking on the 7-segment meter image after bilinear interpolation (S206).

次いで、画像解析端末5の画像解析部5208は、2値化画像に対して、SSOCRを行う(S208)。 Next, the image analysis unit 5208 of the image analysis terminal 5 performs SSOCR on the binarized image (S208).

最後に、画像解析端末5の画像解析部5208は、SSOCRによる認識結果を変換した数値を、指示値として取得する(S210)。 Finally, the image analysis unit 5208 of the image analysis terminal 5 obtains the numerical value converted from the recognition result by SSOCR as the instruction value (S210).

(2)第2の具体例
第2の具体例では、図7~図15を参照して、メータ3が指針メータである例について説明する。指針メータの種類の一例として、円形メータとエッジワイズメータが挙げられる。以下、円形メータとエッジワイズメータのそれぞれの解析処理の一例について説明する。
(2) Second Specific Example In the second specific example, an example in which the meter 3 is a pointer meter will be described with reference to Figs. 7 to 15. Examples of types of pointer meters include a circular meter and an edgewise meter. Below, an example of analysis processing for each of the circular meter and the edgewise meter will be described.

(2-1)円形メータ
図7~図11を参照して、メータ3が円形メータである場合の解析処理の一例について説明する。まず、メータ3が円形メータである場合に、補正部5202、画像処理部5206、及び画像解析部5208が解析処理にて行う処理の詳細について説明する。
7 to 11, an example of the analysis process when the meter 3 is a circular meter will be described. First, when the meter 3 is a circular meter, the details of the processes performed by the correction unit 5202, the image processing unit 5206, and the image analysis unit 5208 in the analysis process will be described.

(補正部5202の処理)
補正部5202は、例えば、円形メータのメータ画像に対して歪み補正を行う。補正部5202は、例えば、予め設定された基準位置と、円形メータの指針の中心軸の位置とが一致するように歪み補正を行う。
(Processing of correction unit 5202)
The correction unit 5202 performs distortion correction on, for example, a meter image of a circular meter. The correction unit 5202 performs distortion correction so that, for example, a preset reference position and the position of the central axis of the needle of the circular meter coincide with each other.

また、補正部5202は、歪み補正後の円形メータのメータ画像に対して、バイリニア補完を行う。 The correction unit 5202 also performs bilinear interpolation on the meter image of the circular meter after distortion correction.

(画像処理部5206の処理)
画像処理部5206は、例えば、バイリニア補完後の円形メータのメータ画像に対して、HSVマスキングを行う。画像処理部5206は、円形メータのメータ画像に対するHSVマスキングにより、円形メータのメータ画像が2値化された2値化画像(第1の2値化画像)を生成する。画像処理部5206は、例えば、指示値を指し示す円形メータの指針の画素の色が白、当該指針の画素以外の画素の色が黒となるように円形メータのメータ画像のHSVマスキングを行う。
(Processing of image processing unit 5206)
The image processing unit 5206 performs HSV masking on the meter image of the circular meter after bilinear interpolation, for example. The image processing unit 5206 generates a binary image (first binary image) in which the meter image of the circular meter is binarized by HSV masking the meter image of the circular meter. The image processing unit 5206 performs HSV masking on the meter image of the circular meter so that the color of the pixels of the needle of the circular meter indicating the indicated value is white, and the color of the pixels other than the pixels of the needle is black.

ここで、図7を参照して、円形メータのメータ画像に対するHSVマスキングの一例について説明する。図7は、本実施形態に係る円形メータのメータ画像に対するHSVマスキングの一例を示す図である。 Here, an example of HSV masking for a meter image of a circular meter will be described with reference to FIG. 7. FIG. 7 is a diagram showing an example of HSV masking for a meter image of a circular meter according to this embodiment.

図7の左図は、円形メータのメータ画像50である。図7の左図に示す円形メータは、指針52が軸53を回転軸として回転するメータである。円形メータの文字盤54には、指示値の範囲を示す目盛りが記載されている。円形メータの指針52の両端の内、指針52の太さが細い方の端が先端側であり、指針52の太さが太い方の端が末端側である。図7の左図に示す円形メータでは、指針52の先端側が指している目盛りの値が指示値である。例えば、図7の左図における指示値は、0.7である。 The left image in Figure 7 is a meter image 50 of a circular meter. The circular meter shown in the left image in Figure 7 is a meter in which a pointer 52 rotates around an axis 53. A scale indicating the range of indicated values is printed on the dial 54 of the circular meter. Of the two ends of the pointer 52 of the circular meter, the end with the thinner pointer 52 is the tip side, and the end with the thicker pointer 52 is the end side. In the circular meter shown in the left image in Figure 7, the value of the scale indicated by the tip side of the pointer 52 is the indicated value. For example, the indicated value in the left image in Figure 7 is 0.7.

画像解析端末5の画像処理部5206は、メータ画像50に対してHSVマスキングを行う。これにより、画像処理部5206は、図7の右図に示すように、メータ画像50が2値化された2値化画像51を生成することができる。当該2値化画像51は、メータ画像50にて指示値を示していた指針52の画素の色が白で示され、指針52以外を示していた画素の色が黒で示されている。以下、メータ画像の2値化画像において、白い画素で示された領域は、「白画素領域」とも称される。 The image processing unit 5206 of the image analysis terminal 5 performs HSV masking on the meter image 50. As a result, the image processing unit 5206 can generate a binary image 51 in which the meter image 50 is binarized, as shown in the right diagram of FIG. 7. In the binary image 51, the color of the pixels of the needle 52 that indicated the indicated value in the meter image 50 is shown in white, and the color of the pixels that indicated anything other than the needle 52 is shown in black. Hereinafter, in the binary image of the meter image, the area shown by white pixels is also referred to as a "white pixel area".

また、画像処理部5206は、円形メータのメータ画像の2値化画像に対して、ノイズ除去を行う。例えば、画像処理部5206は、メータ画像の2値化画像における白画素領域に基づき、ノイズ除去を行う。 The image processing unit 5206 also performs noise removal on the binary image of the meter image of the circular meter. For example, the image processing unit 5206 performs noise removal based on the white pixel areas in the binary image of the meter image.

例えば、画像処理部5206は、所定の領域の外側の白画素をノイズとして除去する。所定の領域は、例えば、円形メータの軸を中心とする円の領域である。当該円の領域の大きさは、例えば、円形メータの大きさの7割である。即ち、当該円の領域の半径の大きさは、円形メータの半径の7割の大きさである。 For example, the image processing unit 5206 removes white pixels outside a predetermined area as noise. The predetermined area is, for example, a circular area centered on the axis of the circular meter. The size of the circular area is, for example, 70% of the size of the circular meter. In other words, the radius of the circular area is 70% of the radius of the circular meter.

具体的に、画像処理部5206は、白画素領域の重心位置を算出し、当該重心位置が所定の領域に含まれるか否かに基づき、ノイズ除去を行うか否かを判定する。重心位置が所定の領域に含まれる場合、画像処理部5206は、メータ画像の2値化画像のノイズ除去を行わないと判定する。これは、白画素領域の重心位置から、白画素領域が指針を示しているとみなすことができるためである。
一方、重心位置が所定の領域に含まれない場合、画像処理部5206は、メータ画像の2値化画像のノイズ除去を行うと判定する。
Specifically, the image processing unit 5206 calculates the position of the center of gravity of the white pixel region, and determines whether or not to perform noise removal based on whether or not the position of the center of gravity is included in a predetermined region. If the position of the center of gravity is included in the predetermined region, the image processing unit 5206 determines not to perform noise removal of the binarized image of the meter image. This is because the position of the center of gravity of the white pixel region can be considered to indicate the pointer.
On the other hand, if the center position is not included in the predetermined region, the image processing unit 5206 determines to perform noise removal on the binarized image of the meter image.

ここで、図8を参照して、円形メータのメータ画像の2値化画像に対するノイズ除去の一例について説明する。図8は、本実施形態に係る円形メータのメータ画像の2値化画像に対するノイズ除去の一例を示す図である。 Here, an example of noise removal from a binary image of a meter image of a circular meter will be described with reference to FIG. 8. FIG. 8 is a diagram showing an example of noise removal from a binary image of a meter image of a circular meter according to this embodiment.

図8に示すメータ画像の2値化画像51において、一点鎖線で示される円形の領域は、円形メータの領域54示している。また、二点鎖線で示される円形の領域は、所定の領域55を示している。 In the binary image 51 of the meter image shown in FIG. 8, the circular area indicated by the dashed line indicates the circular meter area 54. Also, the circular area indicated by the dashed line indicates the specified area 55.

画像処理部5206は、まず、2値化画像51から白画素の輪郭を検出することで、白画素の領域を検出する。図8に示す例では、例えば、白画素領域56の輪郭と白画素領域57の輪郭が検出される。画像処理部5206は、検出した白画素領域56と白画素領域57のそれぞれの重心の位置を算出する。そして、画像処理部5206は、算出した重心位置が所定の領域55に含まれるか否かに基づき、ノイズ除去を行う。 The image processing unit 5206 first detects the contours of white pixels from the binarized image 51 to detect white pixel regions. In the example shown in FIG. 8, for example, the contours of white pixel region 56 and white pixel region 57 are detected. The image processing unit 5206 calculates the positions of the centers of gravity of the detected white pixel regions 56 and 57. The image processing unit 5206 then performs noise removal based on whether the calculated center positions are included in the specified region 55.

また、画像処理部5206は、円形メータのメータ画像の2値化画像に基づき、角度情報のヒストグラム化を行う。角度情報は、例えば、2値化画像における白い画素の角度を示す情報である。白い画素の角度は、具体的に、基準点と円形メータの軸の位置とを結ぶ直線と、対象となる白い画素と円形メータの軸の位置とを結ぶ直線とがなす角度である。画像処理部5206は、メータ画像の2値化画像の白い画素の全てを対象に、白い画素ごとに角度を算出し、当該角度の分布に関するヒストグラムを生成する。 The image processing unit 5206 also generates a histogram of angle information based on the binary image of the meter image of the circular meter. The angle information is, for example, information indicating the angle of a white pixel in the binary image. Specifically, the angle of a white pixel is the angle between a line connecting a reference point and the position of the axis of the circular meter and a line connecting a target white pixel and the position of the axis of the circular meter. The image processing unit 5206 calculates the angle for each white pixel for all white pixels in the binary image of the meter image, and generates a histogram relating to the distribution of the angles.

ここで、図9を参照して、円形メータのメータ画像の2値化画像に基づく角度情報のヒストグラム化の一例について説明する。図9は、本実施形態に係る円形メータのメータ画像の2値化画像に基づく角度情報のヒストグラム化の一例を示す図である。 Now, with reference to Figure 9, we will explain an example of histogramming of angle information based on a binary image of a meter image of a circular meter. Figure 9 is a diagram showing an example of histogramming of angle information based on a binary image of a meter image of a circular meter according to this embodiment.

図9の上図の2値化画像51における直線L1は、基準点P1と円形メータの軸53の位置とを通る線である。直線L2は、対象となる白い画素の位置を示す点P2と円形メータの軸53の位置とを通る線である。角度θは、直線L1と直線L2とがなす角度である。当該角度θが、対象となる白い画素の角度である。画像処理部5206は、2値化画像51におけるすべての白い画素の角度θを算出する。算出後、画像処理部5206は、算出した全ての角度θの分布を示すヒストグラム58を生成する。 In the binary image 51 in the upper diagram of Figure 9, straight line L1 is a line that passes through reference point P1 and the position of axis 53 of the circular meter. Straight line L2 is a line that passes through point P2, which indicates the position of the target white pixel, and the position of axis 53 of the circular meter. Angle θ is the angle made by lines L1 and L2. This angle θ is the angle of the target white pixel. The image processing unit 5206 calculates the angle θ of all white pixels in the binary image 51. After the calculation, the image processing unit 5206 generates a histogram 58 that shows the distribution of all the calculated angles θ.

図9の下図に示すヒストグラム58は、画像処理部5206が算出した角度θの分布を示している。ヒストグラム58の横軸は角度を示し、縦軸は白い画素の数を示している。なお、ヒストグラム58における0度は、図9の上図の2値化画像51における直線L1の位置を示している。 Histogram 58 shown in the lower diagram of FIG. 9 shows the distribution of angle θ calculated by image processing unit 5206. The horizontal axis of histogram 58 shows the angle, and the vertical axis shows the number of white pixels. Note that 0 degrees in histogram 58 shows the position of line L1 in binarized image 51 in the upper diagram of FIG. 9.

また、画像処理部5206は、円形メータのメータ画像の2値化画像における指針を示す画素の分布に関するヒストグラムを2値化し、ヒストグラムの2値化画像(第2の2値化画像)を生成する。例えば、画像処理部5206は、角度情報のヒストグラムが示す各角度に存在する白い画素の数を正規化する。 The image processing unit 5206 also binarizes a histogram relating to the distribution of pixels indicating the pointer in the binary image of the meter image of the circular meter, and generates a binary image of the histogram (second binary image). For example, the image processing unit 5206 normalizes the number of white pixels present at each angle indicated by the histogram of the angle information.

具体的に、画像処理部5206は、角度情報のヒストグラムが示す各角度に存在し得る白い画素の数の範囲が、0~255の範囲の画素値で示されるように正規化する。これにより、画像処理部5206は、角度情報のヒストグラムをグレースケール化し、ヒストグラムのグレースケール画像を生成することができる。 Specifically, the image processing unit 5206 normalizes the range of the number of white pixels that can exist at each angle indicated by the histogram of the angle information so that it is represented by pixel values ranging from 0 to 255. This allows the image processing unit 5206 to grayscale the histogram of the angle information and generate a grayscale image of the histogram.

画像処理部5206は、所定の閾値に基づき、角度情報のヒストグラムのグレースケール画像を2値化する。一例として、画像処理部5206は、角度情報のヒストグラムのグレースケール画像において、画素値が所定の閾値以上であるか否かを判定し、判定結果に応じて、各画素の画素値を変換する。 The image processing unit 5206 binarizes the grayscale image of the histogram of the angle information based on a predetermined threshold. As an example, the image processing unit 5206 determines whether or not a pixel value in the grayscale image of the histogram of the angle information is equal to or greater than a predetermined threshold, and converts the pixel value of each pixel according to the determination result.

例えば、角度情報のヒストグラムのグレースケール画像において、画素の画素値が所定の閾値以上である場合、画像処理部5206は、当該画素の画素値を1(白)に変換する。一方、角度情報のヒストグラムのグレースケール画像において、画素の画素値が所定の閾値以上でない場合、画像処理部5206は、当該画素の画素値を0(黒)に変換する。 For example, in the grayscale image of the histogram of angle information, if the pixel value of a pixel is equal to or greater than a predetermined threshold, the image processing unit 5206 converts the pixel value of the pixel to 1 (white). On the other hand, in the grayscale image of the histogram of angle information, if the pixel value of a pixel is not equal to or greater than the predetermined threshold, the image processing unit 5206 converts the pixel value of the pixel to 0 (black).

これにより、画像処理部5206は、角度情報のヒストグラムの2値化画像を生成することができる。角度情報のヒストグラムの2値化画像の生成時、画像処理部5206は、所定の閾値に基づき2値化を行うことで、2値化画像におけるノイズを減らすことができる。なお、所定の閾値には、任意の値が設定されてよい。 This allows the image processing unit 5206 to generate a binary image of the histogram of angle information. When generating the binary image of the histogram of angle information, the image processing unit 5206 performs binarization based on a predetermined threshold value, thereby reducing noise in the binary image. Note that any value may be set as the predetermined threshold value.

ここで、図10を参照して、角度情報のヒストグラムの2値化の一例について説明する。図10は、本実施形態に係る角度情報のヒストグラムの2値化の一例を示す図である。 Here, an example of binarization of a histogram of angle information will be described with reference to FIG. 10. FIG. 10 is a diagram showing an example of binarization of a histogram of angle information according to this embodiment.

画像処理部5206は、図9に示したヒストグラム58をグレースケール化することで、図10の上図に示すグレースケール画像59を生成する。画像処理部5206は、グレースケール画像59をさらに2値化することで、図10の下図に示す2値化画像60を生成する。なお、グレースケール画像59及び2値化画像60の横軸は、角度θを示している。 The image processing unit 5206 grayscales the histogram 58 shown in FIG. 9 to generate the grayscale image 59 shown in the upper diagram of FIG. 10. The image processing unit 5206 further binarizes the grayscale image 59 to generate the binary image 60 shown in the lower diagram of FIG. 10. Note that the horizontal axis of the grayscale image 59 and the binary image 60 indicates the angle θ.

(画像解析部5208の処理)
画像解析部5208は、ヒストグラムの2値化画像に対する解析により、指示値を取得する。例えば、画像解析部5208は、ヒストグラムの2値化画像に基づき、指針が指示値を指している指針位置を特定し、指針位置における指示値を取得する。
(Processing of image analysis unit 5208)
The image analysis unit 5208 acquires the indication value by analyzing the binary image of the histogram. For example, the image analysis unit 5208 identifies the position of the pointer where the pointer is pointing to the indication value based on the binary image of the histogram, and acquires the indication value at the pointer position.

具体的に、画像解析部5208は、ヒストグラムの2値化画像に基づき、指示値を指している指針の先端側の位置と、指示値を指していない指針の末端側の位置とを判定する。そして、画像解析部5208は、指針の先端側の位置を指針位置と特定する。 Specifically, the image analysis unit 5208 determines the position of the tip side of the needle that is pointing to the indicated value and the position of the end side of the needle that is not pointing to the indicated value based on the binary image of the histogram. Then, the image analysis unit 5208 identifies the position of the tip side of the needle as the needle position.

指針の先端側の位置を指針位置と特定するにあたり、画像解析部5208は、まず、ヒストグラムの2値化画像から、白い画素で示される領域(ピーク)を複数検出する。次いで、画像解析部5208は、検出した複数のピークから角度関係が180度となるピークの組み合わせを探す。ここで、再度、図10を参照して、指針の先端側の位置の特定の一例について説明する。 When identifying the position of the tip side of the needle as the needle position, the image analysis unit 5208 first detects multiple areas (peaks) indicated by white pixels from the binary image of the histogram. Next, the image analysis unit 5208 searches for a combination of peaks from the multiple detected peaks that results in an angular relationship of 180 degrees. Here, an example of identifying the position of the tip side of the needle will be described with reference to FIG. 10 again.

画像解析部5208は、図10に示したヒストグラム60において、白い画素のピークを探索する。図10に示す例の場合、ピーク61、ピーク62、及びピーク63の3つのピークが検出される。 The image analysis unit 5208 searches for peaks of white pixels in the histogram 60 shown in FIG. 10. In the example shown in FIG. 10, three peaks, peak 61, peak 62, and peak 63, are detected.

画像解析部5208は、検出した複数のピークから、角度関係が180度となるピークの組み合わせを探す。例えば、複数のピークの中に、第1のピークと、第1のピークが示す角度よりも大きい角度を示す第2のピークとがあったとする。第1のピークと第2のピークにおいて、第2のピークが示す角度の最大値と第1のピークが示す角度の最小値との差分が180度よりも大きい、かつ、第2のピークが示す角度の最小値と第1のピークが示す角度の最大値との差分が180度よりも小さいとする。この場合、画像解析部5208は、第1のピークと第2のピークの組み合わせを角度関係が180度となるピークの組み合わせとみなす。図10に示す例の場合、画像解析部5208は、ピーク61(第1のピーク)とピーク63(第2のピーク)の組み合わせを角度関係が180度となるピークの組み合わせとみなす。 The image analysis unit 5208 searches for a combination of peaks with an angular relationship of 180 degrees from the detected multiple peaks. For example, assume that there is a first peak and a second peak that indicates an angle larger than the angle indicated by the first peak among the multiple peaks. Assume that, for the first and second peaks, the difference between the maximum angle indicated by the second peak and the minimum angle indicated by the first peak is greater than 180 degrees, and the difference between the minimum angle indicated by the second peak and the maximum angle indicated by the first peak is less than 180 degrees. In this case, the image analysis unit 5208 regards the combination of the first and second peaks as a combination of peaks with an angular relationship of 180 degrees. In the case of the example shown in FIG. 10, the image analysis unit 5208 regards the combination of peak 61 (first peak) and peak 63 (second peak) as a combination of peaks with an angular relationship of 180 degrees.

画像解析部5208は、角度関係が180度となるピークの組み合わせの各ピークが、メータ角度範囲内にあるか否かを判定する。メータ角度範囲は、指針が回転可能な角度の範囲において、指針の先端が指示値を指す範囲である。 The image analysis unit 5208 determines whether each peak of the combination of peaks with an angular relationship of 180 degrees is within the meter angle range. The meter angle range is the range within which the tip of the pointer points to the indicated value within the range of angles within which the pointer can rotate.

各ピークの内、一方のピークがメータ角度範囲内にない場合、画像解析部5208は、メータ角度範囲内にあるピークを、指針の先端側のピークとみなす。例えば、図10に示す例において、メータ角度範囲が-100度~100度である場合、画像解析部5208は、ピーク63を指針の先端側のピークとみなす。 If one of the peaks is not within the meter angle range, the image analysis unit 5208 considers the peak within the meter angle range to be the peak on the tip side of the needle. For example, in the example shown in FIG. 10, if the meter angle range is -100 degrees to 100 degrees, the image analysis unit 5208 considers peak 63 to be the peak on the tip side of the needle.

各ピークの両方がメータ角度範囲内にある場合、画像解析部5208は、ピーク幅が狭い方のピークを、指針の先端側のピークとみなす。例えば、図10に示す例において、ピーク61とピーク63の両方がメータ角度範囲内にあるとする。各ピークのピーク幅を比較すると、ピーク61のピーク幅よりもピーク63のピーク幅の方が狭いことが分かる。よって、画像解析部5208は、ピーク63を指針の先端側のピークとみなす。一方、画像解析部5208は、ピーク61を指針の末端側のピークとみなす。 When both peaks are within the meter angle range, the image analysis unit 5208 considers the peak with the narrower peak width to be the peak on the tip side of the needle. For example, in the example shown in FIG. 10, assume that both peaks 61 and 63 are within the meter angle range. Comparing the peak widths of each peak, it can be seen that the peak width of peak 63 is narrower than the peak width of peak 61. Therefore, the image analysis unit 5208 considers peak 63 to be the peak on the tip side of the needle. On the other hand, the image analysis unit 5208 considers peak 61 to be the peak on the end side of the needle.

なお、画像解析部5208がヒストグラムの2値化画像(2値化画像60)に対する解析によって指針の先端側のピークを特定できなかったとする。この場合、画像解析部5208は、グレースケール化された角度情報のヒストグラム(グレースケール画像59)に基づき、指針の先端側のピークを特定してもよい。例えば、画像解析部5208は、グレースケール化された角度情報のヒストグラムにおいて最大の輝度値を有するピークを指針の先端側のピークとみなす。 Let us say that the image analysis unit 5208 is unable to identify the peak at the tip of the needle by analyzing the binary image of the histogram (binary image 60). In this case, the image analysis unit 5208 may identify the peak at the tip of the needle based on the histogram of the grayscaled angle information (grayscale image 59). For example, the image analysis unit 5208 considers the peak with the maximum brightness value in the histogram of the grayscaled angle information to be the peak at the tip of the needle.

画像解析部5208は、特定した指針の先端側のピークに基づき、指針の角度を特定する。例えば、画像解析部5208は、当該ピークの中央値を指針の角度と特定する。特定した指針の角度が示す位置は、即ち指針の指針位置である。 The image analysis unit 5208 identifies the angle of the pointer based on the identified peak at the tip of the pointer. For example, the image analysis unit 5208 identifies the median value of the peak as the angle of the pointer. The position indicated by the identified angle of the pointer is the pointer position of the pointer.

画像解析部5208は、特定した指針の角度に基づき、指示値を取得する。例えば、画像解析部5208は、下記の式(1)によって指示値を算出する。なお、指針の角度をθ、メータ角度範囲の最小角度をθmin、最大角度をθmax、指示値をx、メータの目盛りの最小値をxmin、最大値をxmaxとする。
=xmin+(θ-θmin)×(xmax-xmin)/(θmax-θmin) (1)
The image analysis unit 5208 acquires the indication value based on the identified angle of the needle. For example, the image analysis unit 5208 calculates the indication value by the following formula (1). Note that the angle of the needle is θ, the minimum angle of the meter angle range is θ min , the maximum angle is θ max , the indication value is x 1 , the minimum value of the meter scale is x min , and the maximum value is x max .
x1 = xmin +(θ- θmin )×( xmax - xmin )/( θmax - θmin ) (1)

画像解析部5208は、算出した指示値を、所定の桁精度に丸めてもよい。例えば、画像解析部5208は、算出した指示値に対して整数への丸めを行う。 The image analysis unit 5208 may round the calculated instruction value to a predetermined digit precision. For example, the image analysis unit 5208 rounds the calculated instruction value to an integer.

(解析処理の流れ)
続いて、図11を参照して、円形メータに対する解析処理の流れの一例について説明する。図11は、本実施形態に係る円形メータに対する解析処理の流れの一例を示すフローチャートである。
(Flow of analysis process)
Next, an example of the flow of the analysis process for a circular meter will be described with reference to Fig. 11. Fig. 11 is a flowchart showing an example of the flow of the analysis process for a circular meter according to this embodiment.

図11に示すように、まず、画像解析端末5の補正部5202は、円形メータのメータ画像に対して歪み補正を行う(S302)。 As shown in FIG. 11, first, the correction unit 5202 of the image analysis terminal 5 performs distortion correction on the meter image of the circular meter (S302).

次いで、補正部5202は、歪み補正後のメータ画像に対して、バイリニア補完を行う(S304)。 Next, the correction unit 5202 performs bilinear interpolation on the meter image after distortion correction (S304).

次いで、画像解析端末5の画像処理部5206は、バイリニア補完後のメータ画像に対して、HSVマスキングを行う(S306)。これにより、画像処理部5206は、円形メータのメータ画像の2値化画像を生成する。 Next, the image processing unit 5206 of the image analysis terminal 5 performs HSV masking on the meter image after bilinear interpolation (S306). As a result, the image processing unit 5206 generates a binary image of the meter image of the circular meter.

次いで、画像処理部5206は、円形メータのメータ画像の2値化画像に対して、ノイズ除去を行う(S308)。 Next, the image processing unit 5206 performs noise removal on the binary image of the circular meter image (S308).

次いで、画像処理部5206は、角度情報のヒストグラム化を行う(S310)。これにより、画像処理部5206は、角度情報の分布を示すヒストグラムを生成する。 Next, the image processing unit 5206 creates a histogram of the angle information (S310). As a result, the image processing unit 5206 generates a histogram that shows the distribution of the angle information.

次いで、画像処理部5206は、生成した角度情報のヒストグラムを2値化する(S312)。これにより、画像処理部5206は、角度情報のヒストグラムの2値化画像を生成する。 Next, the image processing unit 5206 binarizes the generated histogram of angle information (S312). As a result, the image processing unit 5206 generates a binarized image of the histogram of angle information.

次いで、画像解析部5208は、角度情報のヒストグラムの2値化画像に対する解析を行う(S314)。これにより、画像解析部5208は、指針の指針位置(指針の角度)を特定する。 Next, the image analysis unit 5208 analyzes the binarized image of the histogram of angle information (S314). As a result, the image analysis unit 5208 identifies the needle position (angle of the needle).

最後に、画像解析部5208は、特定した指針位置に基づき、指示値を取得する(S316)。 Finally, the image analysis unit 5208 obtains the indication value based on the identified pointer position (S316).

(2-2)エッジワイズメータ
図12~図15を参照して、メータ3がエッジワイズメータである場合の解析処理の一例について説明する。まず、メータ3がエッジワイズメータである場合に、補正部5202、画像処理部5206、及び画像解析部5208が解析処理にて行う処理の詳細について説明する。
(2-2) Edgewise Meter An example of the analysis process when the meter 3 is an edgewise meter will be described with reference to Fig. 12 to Fig. 15. First, when the meter 3 is an edgewise meter, the details of the processes performed in the analysis process by the correction unit 5202, the image processing unit 5206, and the image analysis unit 5208 will be described.

(補正部5202の処理)
補正部5202は、例えば、エッジワイズメータのメータ画像に対して歪み補正を行う。また、補正部5202は、歪み補正後のエッジワイズメータのメータ画像に対して、バイリニア補完を行う。
(Processing of correction unit 5202)
The correction unit 5202 performs distortion correction on, for example, the meter image of the edgewise meter. The correction unit 5202 also performs bilinear interpolation on the meter image of the edgewise meter after the distortion correction.

(画像処理部5206の処理)
画像処理部5206は、例えば、バイリニア補完後のエッジワイズメータのメータ画像に対して、HSVマスキングを行う。画像処理部5206は、エッジワイズメータのメータ画像に対するHSVマスキングにより、エッジワイズメータのメータ画像が2値化された2値化画像(第1の2値化画像)を生成する。画像処理部5206は、例えば、指示値を指し示すエッジワイズメータの指針の画素の色が白、当該指針の画素以外の画素の色が黒となるようにエッジワイズメータのメータ画像のHSVマスキングを行う。
(Processing of image processing unit 5206)
The image processing unit 5206 performs, for example, HSV masking on the meter image of the edgewise meter after bilinear interpolation. The image processing unit 5206 generates a binary image (first binary image) in which the meter image of the edgewise meter is binarized by HSV masking the meter image of the edgewise meter. The image processing unit 5206 performs HSV masking on the meter image of the edgewise meter so that, for example, the color of the pixels of the needle of the edgewise meter indicating the indicated value is white and the color of the pixels other than the pixels of the needle is black.

ここで、図12を参照して、エッジワイズメータのメータ画像に対するHSVマスキングの一例について説明する。図12は、本実施形態に係るエッジワイズメータのメータ画像に対するHSVマスキングの一例を示す図である。 Here, an example of HSV masking for a meter image of an edgewise meter will be described with reference to FIG. 12. FIG. 12 is a diagram showing an example of HSV masking for a meter image of an edgewise meter according to this embodiment.

図12の左図は、エッジワイズメータのメータ画像70である。図12の左図に示すエッジワイズメータは、指針72が第1の方向または第2の方向のいずれか一方に移動することで、指示値を指し示すメータである。エッジワイズメータの文字盤73には、指示値の範囲を示す目盛りが記載されている。指針72は、例えば、目盛りの0~200の間を、0の方向(第1の方向)または200の方向(第2の方向)のいずれか一方に移動する。図12の左図に示すエッジワイズメータでは、指針72の位置における目盛りの値が指示値である。 The left diagram in FIG. 12 is a meter image 70 of an edgewise meter. The edgewise meter shown in the left diagram in FIG. 12 is a meter that indicates an indicated value by moving a pointer 72 in either a first direction or a second direction. A scale indicating the range of indicated values is printed on a dial 73 of the edgewise meter. The pointer 72 moves, for example, between 0 and 200 on the scale in either the direction of 0 (first direction) or the direction of 200 (second direction). In the edgewise meter shown in the left diagram in FIG. 12, the value of the scale at the position of the pointer 72 is the indicated value.

画像解析端末5の画像処理部5206は、メータ画像70に対してHSVマスキングを行う。これにより、画像処理部5206は、図12の右図に示すように、メータ画像70が2値化された2値化画像71を生成することができる。当該2値化画像71は、メータ画像70にて指示値を示していた指針72の画素の色が白で示され、指針72以外を示していた画素の色が黒で示されている。 The image processing unit 5206 of the image analysis terminal 5 performs HSV masking on the meter image 70. As a result, the image processing unit 5206 can generate a binary image 71 in which the meter image 70 is binarized, as shown in the right diagram of FIG. 12. In the binary image 71, the color of the pixels of the pointer 72 that indicated the indicated value in the meter image 70 is shown in white, and the color of the pixels that indicated anything other than the pointer 72 is shown in black.

また、画像処理部5206は、エッジワイズメータのメータ画像の2値化画像に基づき、位置情報のヒストグラム化を行う。位置情報は、例えば、2値化画像における白い画素の位置を示す情報である。白い画素の位置は、例えば、指針72の移動方向におけるいずれかの位置である。白い画素の位置の具体的な値は、例えば、指針72の移動方向における目盛りの値によって示される。よって、白い画素の位置、目盛りの最小値から最大値の範囲の値によって示される。 The image processing unit 5206 also generates a histogram of position information based on the binary image of the meter image of the edgewise meter. The position information is, for example, information indicating the position of a white pixel in the binary image. The position of the white pixel is, for example, any position in the movement direction of the pointer 72. The specific value of the position of the white pixel is indicated, for example, by the value of the scale in the movement direction of the pointer 72. Thus, the position of the white pixel is indicated by a value in the range from the minimum value to the maximum value of the scale.

画像処理部5206は、メータ画像の2値化画像の白い画素の全てを対象に、白い画素ごとの位置を取得し、当該位置の分布に関するヒストグラムを生成する。画像処理部5206は、例えば、エッジワイズメータのメータ情報に基づき、メータ画像の2値化画像の白い画素の位置を取得する。具体的に、画像処理部5206は、エッジワイズメータのメータ情報に含まれる指示部のサイズ、指針のサイズ、目盛りの間隔等の情報から、メータ画像の2値化画像における白い画素が目盛りのどの位置の画素であるかを特定する。 The image processing unit 5206 acquires the position of each white pixel for all white pixels in the binary image of the meter image, and generates a histogram relating to the distribution of the positions. The image processing unit 5206 acquires the positions of white pixels in the binary image of the meter image, for example, based on the meter information of the edgewise meter. Specifically, the image processing unit 5206 identifies at which position on the scale the white pixels in the binary image of the meter image are located, based on information such as the size of the indicator, the size of the needle, and the interval of the scale, contained in the meter information of the edgewise meter.

ここで、図13を参照して、エッジワイズメータのメータ画像の2値化画像に基づく位置情報のヒストグラム化の一例について説明する。図13は、本実施形態に係るエッジワイズメータのメータ画像の2値化画像に基づく位置情報のヒストグラム化の一例を示す図である。 Now, with reference to FIG. 13, an example of histogramming of position information based on a binary image of the meter image of an edgewise meter will be described. FIG. 13 is a diagram showing an example of histogramming of position information based on a binary image of the meter image of an edgewise meter according to this embodiment.

まず、画像処理部2506は、メータ情報に基づき、図13の上図の2値化画像71における白い画素の位置を特定する。特定後、画像処理部5206は、特定した全ての位置の分布を示すヒストグラム74を生成する。 First, the image processing unit 2506 identifies the positions of white pixels in the binary image 71 in the upper diagram of FIG. 13 based on the meter information. After identification, the image processing unit 5206 generates a histogram 74 that shows the distribution of all the identified positions.

図13の下図に示すヒストグラム74は、画像処理部5206が特定した位置の分布を示している。ヒストグラム74の横軸は白い画素の位置を示し、縦軸は白い画素の数を示している。 The histogram 74 shown in the lower diagram of FIG. 13 indicates the distribution of positions identified by the image processing unit 5206. The horizontal axis of the histogram 74 indicates the positions of white pixels, and the vertical axis indicates the number of white pixels.

また、画像処理部5206は、エッジワイズメータのメータ画像の2値化画像における指針を示す画素の分布に関するヒストグラムを2値化し、ヒストグラムの2値化画像(第2の2値化画像)を生成する。例えば、画像処理部5206は、位置情報のヒストグラムが示す各位置に存在する白い画素の数を正規化する。 The image processing unit 5206 also binarizes a histogram relating to the distribution of pixels indicating the pointer in the binary image of the meter image of the edgewise meter, and generates a binary image of the histogram (second binary image). For example, the image processing unit 5206 normalizes the number of white pixels present at each position indicated by the histogram of position information.

具体的に、画像処理部5206は、位置情報のヒストグラムが示す各位置に存在し得る白い画素の数の範囲が、0~255の範囲の画素値で示されるように正規化する。これにより、画像処理部5206は、位置情報のヒストグラムをグレースケール化し、ヒストグラムのグレースケール画像を生成することができる。 Specifically, the image processing unit 5206 normalizes the range of the number of white pixels that can exist at each position indicated by the histogram of the position information so that it is represented by pixel values ranging from 0 to 255. This allows the image processing unit 5206 to grayscale the histogram of the position information and generate a grayscale image of the histogram.

画像処理部5206は、所定の閾値に基づき、位置情報のヒストグラムのグレースケール画像を2値化する。一例として、画像処理部5206は、位置情報のヒストグラムのグレースケール画像において、画素値が所定の閾値以上であるか否かを判定し、判定結果に応じて各画素の画素値を変換する。 The image processing unit 5206 binarizes the grayscale image of the histogram of the position information based on a predetermined threshold. As an example, the image processing unit 5206 determines whether or not a pixel value in the grayscale image of the histogram of the position information is equal to or greater than a predetermined threshold, and converts the pixel value of each pixel according to the determination result.

例えば、位置情報のヒストグラムのグレースケール画像において、画素の画素値が所定の閾値以上である場合、画像処理部5206は、当該画素の画素値を1(白)に変換する。一方、位置情報のヒストグラムのグレースケール画像において、画素の画素値が所定の閾値以上でない場合、画像処理部5206は、当該画素の画素値を0(黒)に変換する。 For example, in the grayscale image of the histogram of position information, if the pixel value of a pixel is equal to or greater than a predetermined threshold, the image processing unit 5206 converts the pixel value of the pixel to 1 (white). On the other hand, in the grayscale image of the histogram of position information, if the pixel value of a pixel is not equal to or greater than the predetermined threshold, the image processing unit 5206 converts the pixel value of the pixel to 0 (black).

これにより、画像処理部5206は、位置情報のヒストグラムの2値化画像を生成することができる。位置情報のヒストグラムの2値化画像の生成時、画像処理部5206は、所定の閾値に基づき2値化を行うことで、2値化画像におけるノイズを減らすことができる。なお、所定の閾値には、任意の値が設定されてよい。 This allows the image processing unit 5206 to generate a binary image of the histogram of the position information. When generating the binary image of the histogram of the position information, the image processing unit 5206 performs binarization based on a predetermined threshold value, thereby reducing noise in the binary image. Note that any value may be set as the predetermined threshold value.

ここで、図14を参照して、位置情報のヒストグラムの2値化の一例について説明する。図14は、本実施形態に係る位置情報のヒストグラムの2値化の一例を示す図である。 Here, an example of binarization of a histogram of location information will be described with reference to FIG. 14. FIG. 14 is a diagram showing an example of binarization of a histogram of location information according to this embodiment.

画像処理部5206は、図13に示したヒストグラム74をグレースケール化することで、図14の上図に示すグレースケール画像75を生成する。画像処理部5206は、グレースケール画像75をさらに2値化することで、図13の下図に示す2値化画像76を生成する。なお、グレースケール画像75及び2値化画像76の横軸は、位置を示している。 The image processing unit 5206 generates the grayscale image 75 shown in the upper diagram of FIG. 14 by grayscaling the histogram 74 shown in FIG. 13. The image processing unit 5206 further binarizes the grayscale image 75 to generate the binary image 76 shown in the lower diagram of FIG. 13. Note that the horizontal axis of the grayscale image 75 and the binary image 76 indicates the position.

(画像解析部5208の処理)
画像解析部5208は、ヒストグラムの2値化画像に対する解析により、指示値を取得する。例えば、画像解析部5208は、ヒストグラムの2値化画像に基づき、指針が指示値を指している指針位置を特定し、指針位置における指示値を取得する。
(Processing of image analysis unit 5208)
The image analysis unit 5208 acquires the indication value by analyzing the binary image of the histogram. For example, the image analysis unit 5208 identifies the position of the pointer where the pointer is pointing to the indication value based on the binary image of the histogram, and acquires the indication value at the pointer position.

指針の指針位置と特定するにあたり、画像解析部5208は、まず、ヒストグラムの2値化画像から、白い画素で示される領域(ピーク)を検出する。例えば、画像解析部5208は、図14に示すピーク77を検出する。なお、ヒストグラムの2値化画像にノイズが含まれる場合、複数のピークが検出され得る。その場合、画像解析部5208は、複数のピークの内、ヒストグラムの2値化画像の軸の方向において、ピークの幅が最も大きいピークを選択する。 When identifying the needle position, the image analysis unit 5208 first detects an area (peak) indicated by white pixels from the binary image of the histogram. For example, the image analysis unit 5208 detects peak 77 shown in FIG. 14. Note that if the binary image of the histogram contains noise, multiple peaks may be detected. In that case, the image analysis unit 5208 selects, from among the multiple peaks, the peak with the widest peak width in the axial direction of the binary image of the histogram.

画像解析部5208は、検出または選択したピークが示す位置を、指針の指針位置と特定する。そして、画像解析部5208は、特定した指針位置のピークの中央値を、指示値として取得する。 The image analysis unit 5208 identifies the position indicated by the detected or selected peak as the needle position of the needle. The image analysis unit 5208 then obtains the median value of the peaks at the identified needle position as the indication value.

画像解析部5208は、算出した指示値を、所定の桁精度に丸めてもよい。例えば、画像解析部5208は、算出した指示値に対して整数への丸めを行う。 The image analysis unit 5208 may round the calculated instruction value to a predetermined digit precision. For example, the image analysis unit 5208 rounds the calculated instruction value to an integer.

なお、画像解析部5208は、取得した指示値に対して、オフセット値を適用してもよい。撮像装置の画角や処理の影響により、画像解析部5208が算出した指示値と、ユーザがメータ3を目視して認識している指示値とに差分が生じ得る。 The image analysis unit 5208 may apply an offset value to the acquired indication value. Due to the angle of view of the imaging device and the effects of processing, a difference may occur between the indication value calculated by the image analysis unit 5208 and the indication value recognized by the user by visually observing the meter 3.

そこで、画像解析部5208は、画像解析部5208が算出した指示値と、ユーザが目視により認識している指示値とに所定の閾値以上の差分が生じている場合、算出した指示値に対してオフセット値を加算または減算する。これにより、画像解析部5208は、ユーザが目視により認識している指示値により近い指示値を取得することができる。なお、指示値に対して加算または減算するオフセット値、所定の閾値は、特に限定されない。 Therefore, when a difference of a predetermined threshold or more occurs between the indication value calculated by the image analysis unit 5208 and the indication value visually recognized by the user, the image analysis unit 5208 adds or subtracts an offset value to the calculated indication value. This allows the image analysis unit 5208 to obtain an indication value closer to the indication value visually recognized by the user. Note that the offset value to be added or subtracted from the indication value and the predetermined threshold are not particularly limited.

(解析処理の流れ)
続いて、図15を参照して、エッジワイズメータに対する解析処理の流れの一例について説明する。図15は、本実施形態に係るエッジワイズメータに対する解析処理の流れの一例を示すフローチャートである。
(Flow of analysis process)
Next, an example of the flow of analysis processing for an edgewise meter will be described with reference to Fig. 15. Fig. 15 is a flowchart showing an example of the flow of analysis processing for an edgewise meter according to this embodiment.

図15に示すように、まず、画像解析端末5の補正部5202は、エッジワイズメータのメータ画像に対して歪み補正を行う(S402)。 As shown in FIG. 15, first, the correction unit 5202 of the image analysis terminal 5 performs distortion correction on the meter image of the edgewise meter (S402).

次いで、補正部5202は、歪み補正後のメータ画像に対して、バイリニア補完を行う(S404)。 Next, the correction unit 5202 performs bilinear interpolation on the meter image after distortion correction (S404).

次いで、画像解析端末5の画像処理部5206は、バイリニア補完後のメータ画像に対して、HSVマスキングを行う(S406)。これにより、画像処理部5206は、エッジワイズメータのメータ画像の2値化画像を生成する。 Next, the image processing unit 5206 of the image analysis terminal 5 performs HSV masking on the meter image after bilinear interpolation (S406). As a result, the image processing unit 5206 generates a binary image of the meter image of the edgewise meter.

次いで、画像処理部5206は、位置情報のヒストグラム化を行う(S408)。これにより、画像処理部5206は、位置情報の分布を示すヒストグラムを生成する。 Next, the image processing unit 5206 creates a histogram of the position information (S408). As a result, the image processing unit 5206 generates a histogram that shows the distribution of the position information.

次いで、画像処理部5206は、生成した位置情報のヒストグラムを2値化する(S410)。これにより、画像処理部5206は、位置情報のヒストグラムの2値化画像を生成する。 Next, the image processing unit 5206 binarizes the generated histogram of the position information (S410). As a result, the image processing unit 5206 generates a binarized image of the histogram of the position information.

次いで、画像解析部5208は、位置情報のヒストグラムの2値化画像に対する解析を行う(S412)。これにより、画像解析部5208は、指針の指針位置を特定する。 Next, the image analysis unit 5208 analyzes the binarized image of the histogram of the position information (S412). As a result, the image analysis unit 5208 identifies the needle position of the needle.

最後に、画像解析部5208は、特定した指針位置に基づき、指示値を取得する(S414)。 Finally, the image analysis unit 5208 obtains the indication value based on the identified pointer position (S414).

(3)第3の具体例
第3の具体例では、図16~図18を参照して、メータ3がフロートメータである場合の解析処理の一例について説明する。まず、メータ3がフロートメータである場合に、補正部5202、画像処理部5206、及び画像解析部5208が解析処理にて行う処理の詳細について説明する。
(3) Third Specific Example In the third specific example, an example of the analysis process when the meter 3 is a float meter will be described with reference to Fig. 16 to Fig. 18. First, when the meter 3 is a float meter, the details of the processes performed in the analysis process by the correction unit 5202, the image processing unit 5206, and the image analysis unit 5208 will be described.

(補正部5202の処理)
補正部5202は、例えば、フロートメータのメータ画像に対して歪み補正を行う。また、補正部5202は、歪み補正後のフロートメータのメータ画像に対して、バイリニア補完を行う。
(Processing of correction unit 5202)
The correction unit 5202 performs distortion correction on, for example, the meter image of a float meter. The correction unit 5202 also performs bilinear interpolation on the meter image of the float meter after the distortion correction.

(画像処理部5206の処理)
画像処理部5206は、例えば、バイリニア補完後のフロートメータのメータ画像に対して、輝度値に基づく2値化を行う。画像処理部5206は、フロートメータのメータ画像に対する2値化により、フロートメータのメータ画像が2値化された2値化画像(第1の2値化画像)を生成する。画像処理部5206は、例えば、所定の閾値に基づき、フロートメータのメータ画像を2値化する。
(Processing of image processing unit 5206)
The image processing unit 5206 performs binarization based on the luminance value on the float meter meter image after bilinear interpolation, for example. The image processing unit 5206 generates a binarized image (first binarized image) in which the float meter meter image has been binarized by binarizing the float meter meter image. The image processing unit 5206 binarizes the float meter meter image based on a predetermined threshold, for example.

一例として、画像処理部5206は、フロートメータのメータ画像の各画素の輝度値が所定の閾値以上であるか否かを判定し、判定結果に応じて、各画素の画素値を変換する。例えば、画素の輝度値が所定の閾値以上である場合、画像処理部5206は、当該画素の画素値を1(白)に変換する。一方、画素の輝度値が所定の閾値以上でない場合、画像処理部5206は、当該画素の画素値を0(黒)に変換する。これにより、画像処理部5206は、フロートメータのメータ画像の2値化画像を生成することができる。なお、所定の閾値には、任意の値が設定されてよい。 As an example, the image processing unit 5206 determines whether the luminance value of each pixel of the float meter meter image is equal to or greater than a predetermined threshold, and converts the pixel value of each pixel depending on the determination result. For example, if the luminance value of a pixel is equal to or greater than the predetermined threshold, the image processing unit 5206 converts the pixel value of the pixel to 1 (white). On the other hand, if the luminance value of a pixel is not equal to or greater than the predetermined threshold, the image processing unit 5206 converts the pixel value of the pixel to 0 (black). In this way, the image processing unit 5206 can generate a binary image of the float meter meter image. Note that any value may be set as the predetermined threshold.

なお、後述する画像解析部5208は、2値化画像におけるフロートを示す画素の領域に基づき、フロートの位置を特定し、当該フロートの位置における指示値を取得する。そのため、2値化画像において、フロートを示す画素の領域が軸の方向に連続性を持って示されることが望ましい。そこで、画像処理部5206は、2値化前のメータ画像80に対して、(5,7)のカーネルでガウスぼかしを行う。これにより、フロートを示す画素の領域の軸の方向における連続性がより強調される。 The image analysis unit 5208, which will be described later, identifies the position of the float based on the area of pixels that indicate the float in the binarized image, and obtains the indication value at the position of the float. For this reason, it is desirable that the area of pixels that indicate the float is shown with continuity in the axial direction in the binarized image. Therefore, the image processing unit 5206 performs Gaussian blurring with a (5, 7) kernel on the meter image 80 before binarization. This further emphasizes the continuity in the axial direction of the area of pixels that indicate the float.

ここで、図16を参照して、フロートメータのメータ画像に対する2値化の一例について説明する。図16は、本実施形態に係るフロートメータのメータ画像に対する2値化の一例を示す図である。 Here, an example of binarization of a meter image of a float meter will be described with reference to FIG. 16. FIG. 16 is a diagram showing an example of binarization of a meter image of a float meter according to this embodiment.

図16の左図は、フロートメータのメータ画像80である。図16の左図に示すフロートメータは、フロート82が軸83の方向に移動するメータである。フロートメータでは、フロート82の形状と位置に基づき、指示値が示される。例えば、フロート82の最大直径部の位置における目盛りの値が指示値となる。 The left image in Fig. 16 is a meter image 80 of a float meter. The float meter shown in the left image in Fig. 16 is a meter in which a float 82 moves in the direction of an axis 83. In a float meter, an indicated value is shown based on the shape and position of the float 82. For example, the indicated value is the scale value at the position of the maximum diameter part of the float 82.

画像解析端末5の画像処理部5206は、メータ画像80に対して輝度値に基づく2値化を行う。これにより、画像処理部5206は、図16の右図に示すように、メータ画像80が2値化された2値化画像81を生成することができる。 The image processing unit 5206 of the image analysis terminal 5 performs binarization based on the luminance value on the meter image 80. As a result, the image processing unit 5206 can generate a binarized image 81 in which the meter image 80 is binarized, as shown in the right diagram of FIG. 16.

また、画像処理部5206は、フロートメータのメータ画像の2値化画像の特徴値を示す画像(第2の2値化画像)を生成する。フロートメータのメータ画像の2値化画像の特徴値を示す画像は、以下では、「特徴値画像」とも称される。例えば、画像処理部5206は、メータ画像の2値化画像における所定の画素の画素値に対して、所定の特徴値を加算した2値化画像を特徴値画像として生成する。 The image processing unit 5206 also generates an image (second binary image) that indicates the feature values of the binary image of the float meter meter image. The image that indicates the feature values of the binary image of the float meter meter image is also referred to as a "feature value image" below. For example, the image processing unit 5206 generates a binary image as the feature value image by adding a predetermined feature value to the pixel value of a predetermined pixel in the binary image of the meter image.

具体的に、画像処理部5206は、メータ画像の2値化画像における軸を示す画素の画素値と、メータ画像の2値化画像における軸に対して平行な所定のライン上の画素の画素値とに基づき、特徴値画像を生成する。ここで、メータ画像の2値化画像における軸を示す画素の画素値が、所定の画素の画素値である。また、メータ画像の2値化画像における軸に対して平行な所定のライン上の画素の画素値が、所定の特徴値である。 Specifically, the image processing unit 5206 generates a feature value image based on the pixel values of pixels indicating the axis in the binary image of the meter image and the pixel values of pixels on a predetermined line parallel to the axis in the binary image of the meter image. Here, the pixel values of the pixels indicating the axis in the binary image of the meter image are the pixel values of the predetermined pixels. Also, the pixel values of the pixels on a predetermined line parallel to the axis in the binary image of the meter image are the predetermined feature values.

ここで、図17を参照して、特徴値画像の生成の一例について説明する。図17は、本実施形態に係る特徴値画像の生成の一例を示す図である。図17の左図は、フロートメータの2値化画像81である。図17の右図は、2値化画像81に特徴値を加算した特徴値画像84である。なお、図17における2値化画像81と特徴値画像84の縦方向のサイズは同一である。 Now, an example of generating a feature value image will be described with reference to FIG. 17. FIG. 17 is a diagram showing an example of generating a feature value image according to this embodiment. The left diagram in FIG. 17 is a binarized image 81 of a float meter. The right diagram in FIG. 17 is a feature value image 84 in which feature values have been added to the binarized image 81. Note that the vertical sizes of the binarized image 81 and the feature value image 84 in FIG. 17 are the same.

画像処理部5206は、2値化画像81における軸を示す画素の画素値と、2値化画像81における軸に対して平行な所定のライン上の画素の画素値とに基づき、特徴値画像を生成する。図17の左図に示す直線L3は、少なくともフロートの軸を示す画素を通るように引かれた線である。図17の左図に示す直線L4及び直線L5は、直線L3に対して平行に引かれた線である。 The image processing unit 5206 generates a feature value image based on the pixel values of pixels indicating the axis in the binary image 81 and the pixel values of pixels on a predetermined line parallel to the axis in the binary image 81. The straight line L3 shown in the left diagram of FIG. 17 is a line drawn so as to pass through at least the pixels indicating the axis of the float. The straight lines L4 and L5 shown in the left diagram of FIG. 17 are lines drawn parallel to the straight line L3.

画像処理部5206は、直線L3上の画素の画素値に対して、直線L3上の画素と対応する位置にある直線L4上の画素と直線L5上の画素の画素値をそれぞれ特徴値として加算する。例えば、画像処理部5206は、2値化画像81の縦方向の200の位置における直線L3上の画素の画素値に対して、2値化画像81の縦方向の200の位置における直線L4上の画素の画素値と直線L5上の画素の画素値を特徴値として加算する。 The image processing unit 5206 adds, to the pixel value of a pixel on line L3, the pixel values of pixels on lines L4 and L5 that are located at positions corresponding to the pixel on line L3, as feature values. For example, the image processing unit 5206 adds, to the pixel value of a pixel on line L3 at a position 200 in the vertical direction of the binarized image 81, the pixel value of a pixel on line L4 at a position 200 in the vertical direction of the binarized image 81 and the pixel value of a pixel on line L5 at a position 200 in the vertical direction of the binarized image 81, as feature values.

特徴値の加算時、画像処理部5206は、直線L4上の画素の画素値と直線L5上の画素の画素値をそれぞれbit反転した値を、直線L3上の画素の画素値に対して加算する。なお、画像処理部5206は、特徴値の加算は、AND演算により行われる。 When adding feature values, the image processing unit 5206 adds the bit-inverted pixel values of the pixels on line L4 and line L5 to the pixel value of the pixel on line L3. Note that the image processing unit 5206 adds feature values by AND operation.

画像処理部5206は、直線L3上の画素ごとに、特徴値の加算を行う。画像処理部5206は、加算後の画素の画素値に基づき、図17の右図に示す特徴値画像84を生成する。例えば、画像処理部5206は、特徴値画像84の縦方向の各位置の画素の色が、2値化画像81の縦方向の各位置における特徴値の加算結果の画素値が示す色と対応するように、特徴値画像84を生成する。 The image processing unit 5206 adds the feature values for each pixel on the line L3. The image processing unit 5206 generates the feature value image 84 shown in the right diagram of FIG. 17 based on the pixel values of the pixels after addition. For example, the image processing unit 5206 generates the feature value image 84 so that the color of the pixel at each vertical position in the feature value image 84 corresponds to the color indicated by the pixel value resulting from the addition of the feature values at each vertical position in the binarized image 81.

(画像解析部5208の処理)
画像解析部5208は、特徴値画像に対する解析により、指示値を取得する。例えば、画像解析部5208は、特徴値画像に基づき、フロートの位置を特定し、フロートの位置における指示値を取得する。
(Processing of image analysis unit 5208)
The image analysis unit 5208 acquires an indication value by analyzing the feature value image. For example, the image analysis unit 5208 identifies the position of the float based on the feature value image and acquires an indication value at the position of the float.

具体的に、画像解析部5208は、まず、メータ画像の2値化画像におけるフロートを示す画素の画素値と同じ画素値の画素で構成される領域を特徴値画像から検出する。画像解析部5208は、検出した領域の内、予め定められたフロートサイズに対応する大きさの領域を、フロートを示す領域として特定する。 Specifically, the image analysis unit 5208 first detects from the feature value image an area composed of pixels having the same pixel values as pixels indicating a float in the binary image of the meter image. The image analysis unit 5208 identifies, from among the detected areas, an area having a size corresponding to a predetermined float size as an area indicating a float.

なお、予め定められたフロートサイズは、軸の方向におけるフロートのサイズであるとする。また、予め定められたフロートサイズに対応する大きさの領域は、例えば、予め定められたフロートサイズに対応する大きさに最も近い大きさの領域である。 The predetermined float size is the size of the float in the axial direction. The area of the size corresponding to the predetermined float size is, for example, the area of the size closest to the size corresponding to the predetermined float size.

例えば、図17の特徴値画像84において、領域85の軸の方向におけるサイズが、予め定められたフロートサイズと対応する大きさであったとする。この場合、画像解析部5208は、領域85をフロートの領域として特定する。 For example, in the feature value image 84 of FIG. 17, assume that the size of region 85 in the axial direction corresponds to a predetermined float size. In this case, the image analysis unit 5208 identifies region 85 as a float region.

画像解析部5208は、特定したフロートの領域の位置をフロートの位置と特定する。画像解析部5208は、特定したフロートの位置に基づき、指示値を取得する。例えば、画像解析部5208は、下記の式(2)によって指示値を算出する。なお、指示値をx、基準となるメータの目盛りの値をx、目盛りの最小値をxmin、目盛りの最大値をxmax、フロートの現在位置を示す値をy、基準となるメータの目盛りの位置をy、目盛りの開始位置をymin、目盛りの終了位置をymaxとする。
=x+(y-y)×(ymax-ymin)/(xmax-xmin) (2)
The image analysis unit 5208 identifies the position of the identified float area as the position of the float. The image analysis unit 5208 acquires an indication value based on the identified float position. For example, the image analysis unit 5208 calculates the indication value by the following formula (2). Note that the indication value is x 2 , the value of the scale of the reference meter is x S , the minimum value of the scale is x min , the maximum value of the scale is x max , the value indicating the current position of the float is y n , the position of the scale of the reference meter is y S , the start position of the scale is y min , and the end position of the scale is y max .
x2 = xS + ( yn - yS ) x ( ymax - ymin ) / ( xmax - xmin ) (2)

画像解析部5208は、算出した指示値を、所定の桁精度に丸めてもよい。例えば、画像解析部5208は、算出した指示値に対して整数への丸めを行う。 The image analysis unit 5208 may round the calculated instruction value to a predetermined digit precision. For example, the image analysis unit 5208 rounds the calculated instruction value to an integer.

なお、画像解析部5208は、取得した指示値に対して、オフセット値を適用してもよい。撮像装置の画角や処理の影響により、画像解析部5208が算出した指示値と、ユーザがメータ3を目視して認識している指示値とに差分が生じ得る。 The image analysis unit 5208 may apply an offset value to the acquired indication value. Due to the angle of view of the imaging device and the effects of processing, a difference may occur between the indication value calculated by the image analysis unit 5208 and the indication value recognized by the user by visually observing the meter 3.

そこで、画像解析部5208は、画像解析部5208が算出した指示値と、ユーザが目視により認識している指示値とに所定の閾値以上の差分が生じている場合、算出した指示値に対してオフセット値を加算または減算する。 Therefore, when a difference equal to or exceeds a predetermined threshold occurs between the instruction value calculated by the image analysis unit 5208 and the instruction value visually recognized by the user, the image analysis unit 5208 adds or subtracts an offset value to the calculated instruction value.

これにより、画像解析部5208は、ユーザが目視により認識している指示値により近い指示値を取得することができる。なお、指示値に対して加算または減算するオフセット値、所定の閾値は、特に限定されない。 This allows the image analysis unit 5208 to obtain an instruction value that is closer to the instruction value visually recognized by the user. Note that the offset value to be added to or subtracted from the instruction value and the predetermined threshold value are not particularly limited.

(解析処理の流れ)
続いて、図18を参照して、フロートメータに対する解析処理の流れの一例について説明する。図18は、本実施形態に係るフロートメータに対する解析処理の流れの一例を示すフローチャートである。
(Flow of analysis process)
Next, an example of the flow of analysis processing for a float meter will be described with reference to Fig. 18. Fig. 18 is a flowchart showing an example of the flow of analysis processing for a float meter according to this embodiment.

図18に示すように、まず、画像解析端末5の補正部5202は、フロートメータのメータ画像に対して歪み補正を行う(S502)。 As shown in FIG. 18, first, the correction unit 5202 of the image analysis terminal 5 performs distortion correction on the meter image of the float meter (S502).

次いで、補正部5202は、歪み補正後のメータ画像に対して、バイリニア補完を行う(S504)。 Next, the correction unit 5202 performs bilinear interpolation on the meter image after distortion correction (S504).

次いで、画像解析端末5の画像処理部5206は、バイリニア補完後のメータ画像に対して、輝度値に基づく2値化を行う(S506)。これにより、画像処理部5206は、フロートメータのメータ画像の2値化画像を生成する。 Next, the image processing unit 5206 of the image analysis terminal 5 performs binarization based on the luminance value on the meter image after bilinear interpolation (S506). As a result, the image processing unit 5206 generates a binary image of the meter image of the float meter.

次いで、画像処理部5206は、特徴値画像を生成する(S508)。 Next, the image processing unit 5206 generates a feature value image (S508).

次いで、画像解析部5208は、生成した特徴値画像に対する解析を行い、フロートの位置を特定する(S510)。 Next, the image analysis unit 5208 analyzes the generated feature value image and identifies the position of the float (S510).

最後に、画像解析部5208は、特定したフロートの位置に基づき、指示値を取得する(S512)。 Finally, the image analysis unit 5208 obtains the indication value based on the identified float position (S512).

以上説明したように、本実施形態に係る画像解析端末5は、指針メータが撮像されたメータ画像を2値化し、メータ画像の2値化画像を生成する。また、画像解析端末5は、メータ画像の2値化画像における指針を示す画素の分布に関するヒストグラムを2値化し、ヒストグラムの2値化画像を生成する。
画像解析端末5は、ヒストグラムの2値化画像に基づき、指針が指示値を指している指針位置を特定し、指針位置における指示値を取得する。
As described above, the image analysis terminal 5 according to the present embodiment binarizes a meter image in which a pointer meter is captured, and generates a binary image of the meter image. The image analysis terminal 5 also binarizes a histogram relating to the distribution of pixels indicating the pointer in the binary image of the meter image, and generates a binary image of the histogram.
The image analysis terminal 5 identifies the position of the needle where the needle is pointing to the indicated value based on the binary image of the histogram, and obtains the indicated value at the needle position.

かかる構成により、画像解析端末5は、指針メータに特有の画像解析により、指針メータが示す指示値を取得する。よって、画像解析端末5は、指針メータの指示値を精度高く取得することができる。 With this configuration, the image analysis terminal 5 obtains the indicated value of the pointer meter by image analysis specific to the pointer meter. Therefore, the image analysis terminal 5 can obtain the indicated value of the pointer meter with high accuracy.

また、本実施形態に係る画像解析端末5は、フロートメータが撮像されたメータ画像を2値化し、メータ画像の2値化画像を生成する。また、画像解析端末5は、メータ画像の2値化画像における軸を示す画素の画素値と、メータ画像の2値化画像における軸に対して平行な所定のライン上の画素の画素値とに基づく特徴値画像を生成する。
画像解析端末5は、特徴値画像に基づき、フロートの位置を特定し、フロートの位置における指示値を取得する。
The image analysis terminal 5 according to this embodiment also binarizes the meter image obtained by capturing an image of the float meter, and generates a binary image of the meter image. The image analysis terminal 5 also generates a feature value image based on the pixel values of pixels indicating an axis in the binary image of the meter image and the pixel values of pixels on a predetermined line parallel to the axis in the binary image of the meter image.
The image analysis terminal 5 identifies the position of the float based on the feature value image, and obtains an indication value at the position of the float.

かかる構成により、画像解析端末5は、フロートメータに特有の画像解析により、フロートメータが示す指示値を取得する。よって、画像解析端末5は、フロートメータの指示値を精度高く取得することができる。 With this configuration, the image analysis terminal 5 obtains the indicated value of the float meter through image analysis specific to the float meter. Therefore, the image analysis terminal 5 can obtain the indicated value of the float meter with high accuracy.

また、本実施形態に係る画像解析端末5は、指示値が示される指示部を有するメータが複数撮像された撮像画像から、各メータの領域を切り取ったメータ画像を生成する。
画像解析端末5は、メータ画像と、メータの種類を示すメータ情報とに基づき、メータの種類をメータ画像ごとに判定する。
画像解析端末5は、判定結果に基づき、メータ画像に対してメータの種類に応じた解析処理を行い、複数のメータの各々の指示値を取得する。
Moreover, the image analysis terminal 5 according to the present embodiment generates a meter image by cutting out the area of each meter from a captured image in which a plurality of meters having an indication portion that indicates an indication value are captured.
The image analysis terminal 5 determines the type of the meter for each meter image based on the meter image and the meter information indicating the type of the meter.
Based on the determination result, the image analysis terminal 5 performs an analysis process on the meter image according to the type of the meter, and obtains the indicated values of each of the multiple meters.

かかる構成により、画像解析端末5は、複数のメータの種類を判定した上で、メータの種類に応じた画像解析により、各メータが示す指示値を取得する。よって、画像解析端末5は、メータの種類に応じて、各メータの指示値を精度高く取得することができる。 With this configuration, the image analysis terminal 5 determines the types of multiple meters, and then obtains the indicated value of each meter through image analysis according to the type of meter. Therefore, the image analysis terminal 5 can obtain the indicated value of each meter with high accuracy according to the type of meter.

以上より、本実施形態に係る画像解析端末5は、メータの種類に応じた画像解析によって各種メータの指示値を精度高く取得することができる。 As a result, the image analysis terminal 5 according to this embodiment can obtain the indicated values of various meters with high accuracy by performing image analysis according to the type of meter.

以上、本発明の実施形態について説明した。なお、上述した実施形態における画像解析端末5をコンピュータで実現するようにしてもよい。その場合、この機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現してもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD-ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでもよい。また上記プログラムは、前述した機能の一部を実現するためのものであってもよく、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよく、FPGA(Field Programmable Gate Array)等のプログラマブルロジックデバイスを用いて実現されるものであってもよい。 The above describes the embodiment of the present invention. The image analysis terminal 5 in the above embodiment may be realized by a computer. In that case, a program for realizing this function may be recorded on a computer-readable recording medium, and the program recorded on the recording medium may be read into a computer system and executed to realize the function. The term "computer system" as used herein includes hardware such as an OS and peripheral devices. The term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage devices such as hard disks built into a computer system. The term "computer-readable recording medium" may also include a medium that dynamically holds a program for a short period of time, such as a communication line when a program is transmitted via a network such as the Internet or a communication line such as a telephone line, and a medium that holds a program for a certain period of time, such as a volatile memory inside a computer system that is a server or client in that case. The above program may be a program for realizing part of the above-mentioned function, or may be a program that can realize the above-mentioned function in combination with a program already recorded in the computer system, or may be a program that is realized using a programmable logic device such as an FPGA (Field Programmable Gate Array).

以上、図面を参照してこの発明の実施形態について詳しく説明してきたが、具体的な構成は上述のものに限られることはなく、この発明の要旨を逸脱しない範囲内において様々な設計変更等をすることが可能である。 The above describes in detail the embodiments of the present invention with reference to the drawings, but the specific configuration is not limited to the above, and various design changes can be made without departing from the spirit of the present invention.

1 画像解析システム
2 撮像装置
3 メータ
4 撮像制御端末
5 画像解析端末
20 撮像領域
30 アライメントマーカ
410 通信部
420 制御部
430 記憶部
440 出力部
510 通信部
520 制御部
530 記憶部
540 出力部
4202 撮像制御部
4204 出力処理部
5202 補正部
5204 判定部
5206 画像処理部
5208 画像解析部
5210 出力処理部
NW ネットワーク
REFERENCE SIGNS LIST 1 Image analysis system 2 Imaging device 3 Meter 4 Imaging control terminal 5 Image analysis terminal 20 Imaging area 30 Alignment marker 410 Communication unit 420 Control unit 430 Storage unit 440 Output unit 510 Communication unit 520 Control unit 530 Storage unit 540 Output unit 4202 Imaging control unit 4204 Output processing unit 5202 Correction unit 5204 Determination unit 5206 Image processing unit 5208 Image analysis unit 5210 Output processing unit NW Network

Claims (11)

指針によって指示値が示されるメータが撮像された撮像画像を2値化した第1の2値化画像を生成し、前記第1の2値化画像における前記指針を示す画素の分布に関するヒストグラムを2値化した第2の2値化画像を生成する画像処理部と、
前記第2の2値化画像に基づき、前記指針が前記指示値を指している指針位置を特定し、前記指針位置における前記指示値を取得する画像解析部と、
を備える、画像解析装置。
an image processing unit that generates a first binary image by binarizing an image of a meter whose indicated value is indicated by a pointer, and generates a second binary image by binarizing a histogram relating to a distribution of pixels indicating the pointer in the first binary image;
an image analysis unit that identifies a pointer position where the pointer is pointing to the indicated value based on the second binarized image and acquires the indicated value at the pointer position;
An image analysis device comprising:
前記メータが、前記指針が回転可能に設けられた円形メータである場合、
前記画像解析部は、前記第2の2値化画像に基づき、前記指示値を指している前記指針の先端側の位置と、前記指示値を指していない前記指針の末端側の位置とを判定し、前記指針の先端側の位置を前記指針位置と特定する、請求項1に記載の画像解析装置。
When the meter is a circular meter in which the pointer is rotatably provided,
2. The image analyzing device according to claim 1, wherein the image analysis unit determines, based on the second binary image, the position of the tip side of the pointer pointing to the indicated value and the position of the end side of the pointer not pointing to the indicated value, and identifies the position of the tip side of the pointer as the pointer position.
前記画像解析部は、前記第1の2値化画像において前記指針を示す画素ごとに角度を算出し、前記角度の分布を示すヒストグラムを生成する、請求項2に記載の画像解析装置。 The image analysis device according to claim 2, wherein the image analysis unit calculates an angle for each pixel that indicates the pointer in the first binarized image and generates a histogram that indicates a distribution of the angles. 前記メータが、エッジワイズメータである場合、
前記画像解析部は、前記第2の2値化画像に基づき、前記エッジワイズメータにおける前記指針の位置を特定する、請求項1に記載の画像解析装置。
When the meter is an edgewise meter,
The image analyzing device according to claim 1 , wherein the image analyzing section identifies a position of the needle of the edgewise meter based on the second binarized image.
前記画像解析部は、前記第1の2値化画像において前記指針を示す画素ごとに前記メータにおける位置を取得し、前記位置の分布を示すヒストグラムを生成する、請求項4に記載の画像解析装置。 The image analysis device according to claim 4, wherein the image analysis unit obtains a position on the meter for each pixel that indicates the pointer in the first binarized image, and generates a histogram that indicates a distribution of the positions. 軸に沿って移動可能なフロートによって指示値が示されるメータが撮像された撮像画像を2値化した第1の2値化画像を生成し、前記第1の2値化画像における前記軸を示す画素の画素値と、前記第1の2値化画像における前記軸に対して平行な所定のライン上の画素の画素値とに基づく第2の2値化画像を生成する画像処理部と、
前記第2の2値化画像に基づき、前記フロートの位置を特定し、前記フロートの位置における前記指示値を取得する画像解析部と、
を備える、画像解析装置。
an image processing unit that generates a first binary image by binarizing an image of a meter whose indicated value is indicated by a float movable along an axis, and generates a second binary image based on pixel values of pixels indicating the axis in the first binary image and pixel values of pixels on a predetermined line parallel to the axis in the first binary image;
an image analysis unit that identifies a position of the float based on the second binarized image and acquires the indication value at the position of the float;
An image analysis device comprising:
前記画像解析部は、前記第2の2値化画像において、前記第1の2値化画像において前記フロートを示す画素の画素値と同じ画素値の画素で構成される領域の内、予め定められた前記軸の方向におけるフロートサイズに対応する大きさの領域を、前記フロートを示す領域として特定する、請求項6に記載の画像解析装置。 The image analysis device according to claim 6, wherein the image analysis unit identifies, in the second binarized image, an area of a size corresponding to the float size in the direction of the predetermined axis among areas formed by pixels having the same pixel value as the pixel value of the pixel indicating the float in the first binarized image, as the area indicating the float. 画像処理部が、指針によって指示値が示されるメータが撮像された撮像画像を2値化した第1の2値化画像を生成し、前記第1の2値化画像における前記指針を示す画素の分布に関するヒストグラムを2値化した第2の2値化画像を生成することと、
画像解析部が、前記第2の2値化画像に基づき、前記指針が前記指示値を指している指針位置を特定し、前記指針位置における前記指示値を取得することと、
を含む、画像解析方法。
an image processing unit binarizes an image of a meter whose indication value is indicated by a pointer to generate a first binary image, and binarizes a histogram relating to a distribution of pixels indicating the pointer in the first binary image to generate a second binary image;
an image analysis unit specifying a pointer position where the pointer is pointing to the indicated value based on the second binarized image, and acquiring the indicated value at the pointer position;
An image analysis method comprising:
コンピュータを、
指針によって指示値が示されるメータが撮像された撮像画像を2値化した第1の2値化画像を生成し、前記第1の2値化画像における前記指針を示す画素の分布に関するヒストグラムを2値化した第2の2値化画像を生成する画像処理部と、
前記第2の2値化画像に基づき、前記指針が前記指示値を指している指針位置を特定し、前記指針位置における前記指示値を取得する画像解析部と、
として機能させる、プログラム。
Computer,
an image processing unit that generates a first binary image by binarizing an image of a meter whose indicated value is indicated by a pointer, and generates a second binary image by binarizing a histogram relating to a distribution of pixels indicating the pointer in the first binary image;
an image analysis unit that identifies a pointer position where the pointer is pointing to the indicated value based on the second binarized image and acquires the indicated value at the pointer position;
A program that functions as a
画像処理部が、軸に沿って移動可能なフロートによって指示値が示されるメータが撮像された撮像画像を2値化した第1の2値化画像を生成し、前記第1の2値化画像における前記軸を示す画素の画素値と、前記第1の2値化画像における前記軸に対して平行な所定のライン上の画素の画素値とに基づく第2の2値化画像を生成することと、
画像解析部が、前記第2の2値化画像に基づき、前記フロートの位置を特定し、前記フロートの位置における前記指示値を取得することと、
を含む、画像解析方法。
an image processing unit generates a first binary image by binarizing a captured image of a meter whose indicated value is indicated by a float movable along an axis, and generates a second binary image based on pixel values of pixels indicating the axis in the first binary image and pixel values of pixels on a predetermined line parallel to the axis in the first binary image;
an image analysis unit identifying a position of the float based on the second binarized image and acquiring the indication value at the position of the float;
An image analysis method comprising:
コンピュータを、
軸に沿って移動可能なフロートによって指示値が示されるメータが撮像された撮像画像を2値化した第1の2値化画像を生成し、前記第1の2値化画像における前記軸を示す画素の画素値と、前記第1の2値化画像における前記軸に対して平行な所定のライン上の画素の画素値とに基づく第2の2値化画像を生成する画像処理部と、
前記第2の2値化画像に基づき、前記フロートの位置を特定し、前記フロートの位置における前記指示値を取得する画像解析部と、
として機能させる、プログラム。
Computer,
an image processing unit that generates a first binary image by binarizing an image of a meter whose indicated value is indicated by a float movable along an axis, and generates a second binary image based on pixel values of pixels indicating the axis in the first binary image and pixel values of pixels on a predetermined line parallel to the axis in the first binary image;
an image analysis unit that identifies a position of the float based on the second binarized image and acquires the indication value at the position of the float;
A program that functions as a
JP2020043026A 2020-03-12 2020-03-12 IMAGE ANALYSIS DEVICE, IMAGE ANALYSIS METHOD, AND PROGRAM Active JP7484251B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020043026A JP7484251B2 (en) 2020-03-12 2020-03-12 IMAGE ANALYSIS DEVICE, IMAGE ANALYSIS METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020043026A JP7484251B2 (en) 2020-03-12 2020-03-12 IMAGE ANALYSIS DEVICE, IMAGE ANALYSIS METHOD, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2021144494A JP2021144494A (en) 2021-09-24
JP7484251B2 true JP7484251B2 (en) 2024-05-16

Family

ID=77766780

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020043026A Active JP7484251B2 (en) 2020-03-12 2020-03-12 IMAGE ANALYSIS DEVICE, IMAGE ANALYSIS METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP7484251B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7441989B1 (en) 2023-03-15 2024-03-01 三菱電機インフォメーションシステムズ株式会社 Meter reading device, meter reading method and meter reading program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003065812A (en) 2001-08-21 2003-03-05 National Aerospace Laboratory Of Japan System for forming numeral data based on image information in measuring instrument display
JP2006309405A (en) 2005-04-27 2006-11-09 Chugoku Electric Power Co Inc:The Meter recognition system, meter recognition method, and meter recognition program
JP2011081715A (en) 2009-10-09 2011-04-21 Toshiba Corp Monitoring system and monitoring method
JP2017126187A (en) 2016-01-14 2017-07-20 株式会社明電舎 Meter reading device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003065812A (en) 2001-08-21 2003-03-05 National Aerospace Laboratory Of Japan System for forming numeral data based on image information in measuring instrument display
JP2006309405A (en) 2005-04-27 2006-11-09 Chugoku Electric Power Co Inc:The Meter recognition system, meter recognition method, and meter recognition program
JP2011081715A (en) 2009-10-09 2011-04-21 Toshiba Corp Monitoring system and monitoring method
JP2017126187A (en) 2016-01-14 2017-07-20 株式会社明電舎 Meter reading device

Also Published As

Publication number Publication date
JP2021144494A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CA2851598C (en) Apparatus and method for automatically recognizing a qr code
CN112041906B (en) Reading system, reading method, program, and storage medium
CN105426809B (en) A kind of method of gauge pointer automatic identification
US7349588B2 (en) Automatic meter reading
KR102089498B1 (en) Measuring apparatus for analogue gauge and method thereof
US20120051633A1 (en) Apparatus and method for generating character collage message
CN109002823B (en) Region-of-interest determining method, device, equipment and readable storage medium
JP7484251B2 (en) IMAGE ANALYSIS DEVICE, IMAGE ANALYSIS METHOD, AND PROGRAM
CN113343969A (en) GBS-YOLOv5 s-based pointer instrument intelligent digital display method
WO2017169782A1 (en) Distance image processing device, distance image acquisition device, and distance image processing method
JP2020024741A (en) Reading system, reading method, program, and recording medium
JP6542406B1 (en) Reading system, reading method, program, and storage medium
CN111401377B (en) Meter data reading method and device, electronic equipment and storage medium
JP4831340B2 (en) Image processing apparatus, image processing method, program, and recording medium
CN110826376B (en) Marker identification method and device, terminal equipment and storage medium
JP4312185B2 (en) Game mat, card game system, image analysis apparatus, and image analysis method
US8077966B2 (en) Binarizing device and computer readable medium
JP4364186B2 (en) card
CN111428707A (en) Method and device for identifying pattern identification code, storage medium and electronic equipment
CN111670458B (en) Reading system
CN112417975A (en) Method and device for obtaining reading of pointer instrument
JP5337844B2 (en) Region detection apparatus, region detection method, and program
JP2009217174A (en) Adjustment device and adjustment method for video display system, geometric information acquisition method, and program
JP2019145182A (en) Reading system, reading method, program, and storage medium
EP3179410B1 (en) Rotation invariant object feature recognition

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20231225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240109

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240202

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240415

R150 Certificate of patent or registration of utility model

Ref document number: 7484251

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150