JP5831069B2 - Program, information processing apparatus and abnormality determination method - Google Patents

Program, information processing apparatus and abnormality determination method Download PDF

Info

Publication number
JP5831069B2
JP5831069B2 JP2011200043A JP2011200043A JP5831069B2 JP 5831069 B2 JP5831069 B2 JP 5831069B2 JP 2011200043 A JP2011200043 A JP 2011200043A JP 2011200043 A JP2011200043 A JP 2011200043A JP 5831069 B2 JP5831069 B2 JP 5831069B2
Authority
JP
Japan
Prior art keywords
segment
value
segments
unit
dictionary
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.)
Expired - Fee Related
Application number
JP2011200043A
Other languages
Japanese (ja)
Other versions
JP2013061816A (en
Inventor
信二 滋野
信二 滋野
佐藤 浩
浩 佐藤
幸三 馬場
幸三 馬場
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2011200043A priority Critical patent/JP5831069B2/en
Publication of JP2013061816A publication Critical patent/JP2013061816A/en
Application granted granted Critical
Publication of JP5831069B2 publication Critical patent/JP5831069B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Character Input (AREA)

Description

本発明は、複数のセグメントで表される値を撮像した画像を処理するプログラム、情報処理装置及び異常判定方法に関する。   The present invention relates to a program, an information processing apparatus, and an abnormality determination method for processing an image obtained by capturing values represented by a plurality of segments.

従来、電卓の表示部のように、7つの線分で1桁の数字を表す7セグメント表示という表示方式がある。それぞれの線分はセグメントとも呼ばれる。例えば、放射線の線量計のように、計測値を7セグメント表示するのみで、計測値をデジタル値として出力するインタフェースを持たない機器がある。   Conventionally, there is a display method called 7-segment display that represents a single-digit number with seven line segments, like a display unit of a calculator. Each line segment is also called a segment. For example, there is a device such as a radiation dosimeter that does not have an interface that only displays a measurement value in seven segments and outputs the measurement value as a digital value.

一方で、7セグメント表示された値をデジタル値として取得し、出力することができれば、後段のシステムでそのデジタル値を利用することができるようになり、利便性が向上する。そこで、7セグメント表示された数字をデジタル値として取得する技術が研究されている。   On the other hand, if the value displayed in 7 segments can be acquired and output as a digital value, the digital value can be used in a subsequent system, and convenience is improved. In view of this, research has been conducted on a technique for acquiring a number represented by 7 segments as a digital value.

例えば、セグメント構造の印字パターンを撮像した撮像画像から、予め想定している文字パターンに対応したセグメント毎の輝度状態の相対関係に基づき、一致不一致を判定して印字良否又は誤印字を判定する技術がある。   For example, based on a captured image obtained by capturing a segment structure print pattern, based on the relative relationship of the brightness state of each segment corresponding to a character pattern assumed in advance, a technique for determining whether or not the print is good or bad by determining a match / mismatch There is.

また、スキャナで読み取った画像から、1つのセグメント内の複数の位置で黒画素の有無を判定し、さらに、どの位置に黒画素があるかも考慮して、セグメントにおける線分の有無を判定する技術がある。   A technique for determining the presence / absence of black pixels at a plurality of positions in one segment from an image read by a scanner, and determining the presence / absence of a line segment in the segment in consideration of at which position black pixels are present There is.

特開2000−339472号公報JP 2000-339472 A 特開平2−91789号公報Japanese Patent Laid-Open No. 2-91789

7セグメント表示器の表示領域には、一般的に液晶が用いられる。液晶の特性によって、ある文字から別の文字に表示が切り替わる際、一時的に両方の文字が重なったような状態になる。   Liquid crystal is generally used for the display area of the 7-segment display. Due to the characteristics of the liquid crystal, when the display is switched from one character to another, both characters are temporarily overlapped.

この原理は、次の通りである。液晶に対して電圧を印加し、液晶の向きを変えることで、バックライトの光が表示面を透過したり塞がれたりする。第一の文字を表示しているときは、第一の文字を形成するセグメント部分に電圧が印加されている状態である。また、第一の文字から第二の文字に表示が切り替わる際、第一の文字のセグメントに対する電圧印加が止まるとともに、第二の文字を形成するセグメント部分に電圧が印加される。   This principle is as follows. By applying a voltage to the liquid crystal and changing the direction of the liquid crystal, the light from the backlight is transmitted through or blocked by the display surface. When the first character is displayed, the voltage is applied to the segment portion forming the first character. Further, when the display is switched from the first character to the second character, the voltage application to the segment of the first character is stopped and the voltage is applied to the segment part forming the second character.

電圧印加が止められたセグメントと電圧印加されたセグメントとは、液晶の性質により、徐々に液晶分子の向きが変化する。また、液晶表示方法には、光らせない部分に電圧を印加するものもある。   The orientation of the liquid crystal molecules gradually changes between the segment where the voltage application is stopped and the segment where the voltage application is applied, depending on the properties of the liquid crystal. In some liquid crystal display methods, a voltage is applied to a portion that is not illuminated.

ここで、7セグメント表示器において、2文字間の切り替わり中の状態では、表示されているONのセグメントの組み合わせは、意味を成さない。このセグメントの組み合わせは、セグメントの文字を表すパターンを保持する辞書には存在しないので、エラーと判断される。   Here, in the 7-segment display, in the state of switching between two characters, the displayed combination of ON segments does not make sense. Since this segment combination does not exist in the dictionary that holds the pattern representing the characters of the segment, it is determined as an error.

また、エラーを示す別のケースとして、セグメントの組み合わせが、7セグメント表示器の故障などを表すエラーコードを示す場合も、このセグメントの組み合わせは、辞書に存在しないセグメントの組み合わせであり、エラーと判断される。   In addition, as another case indicating an error, when a combination of segments indicates an error code indicating a failure of a 7-segment display, the combination of segments is a combination of segments that do not exist in the dictionary and is determined to be an error. Is done.

上述した2つの状態について、文字の切り替わり状態と、エラーコードを示す状態とは、区別して判断されるべきである。   Regarding the two states described above, a character switching state and a state indicating an error code should be distinguished from each other.

しかしながら、従来技術では、これら2つの状態を判定することができず、異常状態を適切に判定することができないという問題があった。   However, the conventional technique has a problem that these two states cannot be determined, and an abnormal state cannot be appropriately determined.

そこで、開示の技術は、異常状態を適切に判定することができるプログラム、情報処理装置及び異常判定方法を提供することを目的とする。   Therefore, it is an object of the disclosed technology to provide a program, an information processing apparatus, and an abnormality determination method that can appropriately determine an abnormal state.

開示の一態様におけるプログラムは、複数のセグメントを用いて表される値の少なくとも1つが、所定時間毎に撮像された各画像から、ONである各セグメントを抽出し、抽出された前記各セグメントと、記憶部に予め記憶されたセグメントの組み合わせを含む辞書とを比較し、前記辞書に存在しないセグメントの組み合わせが抽出されている時間を計測し、計測された時間と所定値との比較結果により、値の切り替わり状態か、故障かを判定する処理をコンピュータに実行させる。   The program according to one aspect of the disclosure extracts each segment in which at least one of the values represented by using a plurality of segments is ON from each image captured every predetermined time, and the extracted each segment , Comparing with a dictionary including a combination of segments stored in advance in the storage unit, measuring the time when a combination of segments that do not exist in the dictionary is extracted, and by comparing the measured time with a predetermined value, Causes the computer to execute processing for determining whether the value is switched or a failure.

開示の技術によれば、異常状態を適切に判定することができる。   According to the disclosed technology, an abnormal state can be appropriately determined.

実施例1における情報処理装置のハードウェアの一例を示すブロック図。FIG. 2 is a block diagram illustrating an example of hardware of the information processing apparatus according to the first embodiment. 実施例1における情報処理装置の機能の一例を示すブロック図。FIG. 2 is a block diagram illustrating an example of functions of the information processing apparatus according to the first embodiment. 実施例1におけるセグメント抽出部の機能の一例を示すブロック図。FIG. 3 is a block diagram illustrating an example of a function of a segment extraction unit according to the first embodiment. 領域画像の一例を示す図。The figure which shows an example of an area | region image. 各セグメントと閉領域を説明するための図。The figure for demonstrating each segment and a closed region. 領域Aを部分領域に分割する例を示す図。The figure which shows the example which divides | segments the area | region A into a partial area. 暗い環境で7セグメント表示された数字を撮像した部分画像の一例を示す図。The figure which shows an example of the partial image which imaged the number displayed by 7 segments in the dark environment. 図7に示す部分画像の計測値を示す図。The figure which shows the measured value of the partial image shown in FIG. 明るい環境で7セグメント表示された数字を撮像した部分画像の一例を示す図。The figure which shows an example of the partial image which imaged the number displayed by 7 segments in the bright environment. 図9に示す部分画像の計測値を示す図。The figure which shows the measured value of the partial image shown in FIG. 各セグメントのON/OFFの一例を示す図。The figure which shows an example of ON / OFF of each segment. セグメント辞書の一例を示す図。The figure which shows an example of a segment dictionary. 輝度値異常の一例を示す図。The figure which shows an example of luminance value abnormality. 輝度値の変化の一例を示す図。The figure which shows an example of the change of a luminance value. 異常判定を説明するための図。The figure for demonstrating abnormality determination. 実施例1における情報処理装置の処理の一例を示すフローチャート。3 is a flowchart illustrating an example of processing of the information processing apparatus according to the first embodiment. S106のセグメント抽出処理の一例を示すフローチャート。The flowchart which shows an example of the segment extraction process of S106. S108の辞書比較処理の一例を示すフローチャート。The flowchart which shows an example of the dictionary comparison process of S108. 実施例2におけるセグメント抽出部の機能の一例を示すブロック図。FIG. 10 is a block diagram illustrating an example of a function of a segment extraction unit according to the second embodiment. セグメント毎の輝度値異常を判定するのに用いる閾値を示す図。The figure which shows the threshold value used for determining the luminance value abnormality for every segment. セグメントのON/OFF時の輝度差を説明するための図。The figure for demonstrating the brightness | luminance difference at the time of ON / OFF of a segment. 実施例2における情報処理装置の処理の一例を示すフローチャート。9 is a flowchart illustrating an example of processing of an information processing device according to a second embodiment.

以下、各実施例について、添付図面を参照しながら説明する。   Each embodiment will be described below with reference to the accompanying drawings.

[実施例1]
<ハードウェア>
図1は、実施例1における情報処理装置10のハードウェアの一例を示すブロック図である。図1に示す例では、情報処理装置10は、撮像部12、表示部13と接続される。撮像部12は、撮像素子を有する撮像装置であり、例えばカメラである。撮像部12は、表示器11に表示されるセグメント構造の値を所定間隔で撮像する。撮像部12により撮像された画像(撮像画像とも呼ぶ)は、情報処理装置10に出力される。表示器11に複数のセグメント構造の値が表示される場合は、撮像部12は、少なくとも1つの値を含むようにして撮像する。
[Example 1]
<Hardware>
FIG. 1 is a block diagram illustrating an example of hardware of the information processing apparatus 10 according to the first embodiment. In the example illustrated in FIG. 1, the information processing apparatus 10 is connected to an imaging unit 12 and a display unit 13. The imaging unit 12 is an imaging device having an imaging element, for example, a camera. The imaging unit 12 images the segment structure values displayed on the display 11 at predetermined intervals. An image captured by the imaging unit 12 (also referred to as a captured image) is output to the information processing apparatus 10. When a plurality of segment structure values are displayed on the display 11, the imaging unit 12 captures an image so as to include at least one value.

表示器11は、複数のセグメントで表す値を表示する。表示器11は、例えば、放射線の線量計や温度計、電卓などのメーターであり、7セグメントで値を表す。   The display 11 displays values represented by a plurality of segments. The indicator 11 is a meter such as a radiation dosimeter, a thermometer, or a calculator, for example, and represents a value by 7 segments.

情報処理装置10は、撮像部12から取得した撮像画像に対して、セグメント抽出処理を行い、セグメント表示の値に対応するデジタル値を取得する。情報処理装置10は、このデジタル値を表示部13に表示するよう制御してもよい。   The information processing apparatus 10 performs a segment extraction process on the captured image acquired from the imaging unit 12, and acquires a digital value corresponding to the segment display value. The information processing apparatus 10 may control to display the digital value on the display unit 13.

表示部13は、例えばCRT(Cathode Ray Tube)やLCD(Liquid Crystal Display)等であり、情報処理装置10から取得したデジタル値を表示する。   The display unit 13 is, for example, a CRT (Cathode Ray Tube), an LCD (Liquid Crystal Display), or the like, and displays a digital value acquired from the information processing apparatus 10.

情報処理装置10は、制御部101、主記憶部102、補助記憶部103、通信部104、ドライブ装置105を有する。各部は、バスを介して相互にデータ送受信可能に接続されている。   The information processing apparatus 10 includes a control unit 101, a main storage unit 102, an auxiliary storage unit 103, a communication unit 104, and a drive device 105. Each unit is connected via a bus so that data can be transmitted / received to / from each other.

制御部101は、コンピュータの中で、各装置の制御やデータの演算、加工を行うCPU(Central Processing Unit)である。また、制御部101は、主記憶部102や補助記憶部103に記憶されたプログラムを実行する演算装置であり、入力装置や記憶装置からデータを受け取り、演算、加工した上で、出力装置や記憶装置に出力する。   The control unit 101 is a CPU (Central Processing Unit) that performs control of each device, calculation of data, and processing in a computer. The control unit 101 is an arithmetic device that executes a program stored in the main storage unit 102 or the auxiliary storage unit 103. The control unit 101 receives data from the input device or the storage device, calculates, processes the output device, the storage device, and the like. Output to the device.

主記憶部102は、例えば、ROM(Read Only Memory)やRAM(Random Access Memory)などである。主記憶部102は、制御部101が実行する基本ソフトウェアであるOSやアプリケーションソフトウェアなどのプログラムやデータを記憶又は一時保存する記憶装置である。   The main storage unit 102 is, for example, a ROM (Read Only Memory) or a RAM (Random Access Memory). The main storage unit 102 is a storage device that stores or temporarily stores programs and data such as an OS and application software that are basic software executed by the control unit 101.

補助記憶部103は、例えばHDD(Hard Disk Drive)などであり、アプリケーションソフトウェアなどに関連するデータを記憶する記憶装置である。補助記憶部103は、例えば撮像部12から取得した画像を記憶する。   The auxiliary storage unit 103 is, for example, an HDD (Hard Disk Drive) or the like, and is a storage device that stores data related to application software. For example, the auxiliary storage unit 103 stores an image acquired from the imaging unit 12.

通信部104は、有線又は無線で周辺機器とデータ通信を行う。通信部104は、例えばネットワークを介して、文字を含む画像を取得し、補助記憶部103に記憶する。   The communication unit 104 performs data communication with peripheral devices by wire or wireless. The communication unit 104 acquires an image including characters via a network, for example, and stores it in the auxiliary storage unit 103.

ドライブ装置105は、記録媒体106、例えばフレキシブルディスクやCD(Compact Disc)から所定のプログラムを読み出し、記憶装置にインストールする。   The drive device 105 reads a predetermined program from the recording medium 106, for example, a flexible disk or a CD (Compact Disc), and installs it in the storage device.

また、記録媒体106に、所定のプログラムを格納し、この記録媒体106に格納されたプログラムは、ドライブ装置105を介して情報処理装置10にインストールされる。インストールされた所定のプログラムは、情報処理装置10により実行可能となる。   A predetermined program is stored in the recording medium 106, and the program stored in the recording medium 106 is installed in the information processing apparatus 10 via the drive device 105. The installed predetermined program can be executed by the information processing apparatus 10.

なお、情報処理装置10は、撮像部12及び表示部13を別構成としたが、どちらか一方、又は両方を含む構成としてもよい。   The information processing apparatus 10 has the imaging unit 12 and the display unit 13 separately configured, but may be configured to include either one or both.

<機能>
図2は、実施例1における情報処理装置10の機能の一例を示すブロック図である。図2に示す例では、情報処理装置10は、画像取得部200、抽出部201、記憶部206、比較部207、計測部208、判定部209、出力部210を有する。
<Function>
FIG. 2 is a block diagram illustrating an example of functions of the information processing apparatus 10 according to the first embodiment. In the example illustrated in FIG. 2, the information processing apparatus 10 includes an image acquisition unit 200, an extraction unit 201, a storage unit 206, a comparison unit 207, a measurement unit 208, a determination unit 209, and an output unit 210.

記憶部206は、例えば主記憶部102又は補助記憶部103により実現されうる。画像取得部200、抽出部201、比較部207、計測部208、判定部209、出力部210は、例えば制御部101及びワークメモリとしての主記憶部102により実現されうる。   The storage unit 206 can be realized by the main storage unit 102 or the auxiliary storage unit 103, for example. The image acquisition unit 200, the extraction unit 201, the comparison unit 207, the measurement unit 208, the determination unit 209, and the output unit 210 can be realized by, for example, the control unit 101 and the main storage unit 102 as a work memory.

画像取得部200は、記憶部206に所定間隔で記憶された撮像画像又は所定間隔で撮像部12が撮像した撮像画像を順に取得する。画像取得部200は、順に取得した撮像画像を抽出部201に出力する。   The image acquisition unit 200 sequentially acquires captured images stored in the storage unit 206 at predetermined intervals or captured images captured by the imaging unit 12 at predetermined intervals. The image acquisition unit 200 outputs the captured images acquired in order to the extraction unit 201.

抽出部201は、撮像画像から値毎にONとなっている各セグメントを抽出する。ONのセグメントとは、文字の一部を形成するセグメントをいい、OFFのセグメントとは、文字の一部ではなく、背景を形成するセグメントをいう。   The extraction unit 201 extracts each segment that is ON for each value from the captured image. The ON segment refers to a segment that forms a part of a character, and the OFF segment refers to a segment that forms a background, not a part of a character.

ここで、表示器11を7セグメント表示器とした場合、7セグメント表示器には、黒地に白や緑や赤などで値を表すセグメントが光るものや、電卓のように白地に黒で数字を表示するものなど、様々な種類がある。よって、7セグメント表示器の種類を問わず、7セグメント表示された値をデジタル値として取得したいというニーズがある。   Here, if the display 11 is a 7-segment display, the 7-segment display has a black background with white, green, red, etc. segments that indicate values, or a calculator with black numbers on a white background. There are various types, such as what to display. Therefore, there is a need to acquire a 7-segment display value as a digital value regardless of the type of the 7-segment display.

また、デジタル値として取得するには、どのセグメントがONであるかを判別する必要がある。なお、表示器11が設置される環境によっては、表示領域に対する外光が一様ではない場合があり、その場合には、同じ値を構成するセグメントであっても、セグメントの位置によって画像上の輝度が異なる場合が考えられる。例えば8の上水平のセグメントと、下水平セグメントとでは、輝度値が異なる場合がある。   In order to obtain a digital value, it is necessary to determine which segment is ON. Depending on the environment in which the display device 11 is installed, the external light for the display area may not be uniform. In this case, even if the segments form the same value, the position on the image depends on the position of the segment. There may be cases where the brightness is different. For example, the upper horizontal segment and the lower horizontal segment of 8 may have different luminance values.

そこで、以下に説明するセグメント抽出方法は、表示器11の種類や外光の状況によらず、各セグメントのON/OFFを適切に判定することができる。なお、セグメントの抽出については、以下に示す方法に限られず、他の公知の方法でセグメントを抽出してもよい。   Therefore, the segment extraction method described below can appropriately determine ON / OFF of each segment regardless of the type of the display 11 and the situation of external light. In addition, about extraction of a segment, it is not restricted to the method shown below, You may extract a segment by another well-known method.

抽出部201は、領域画像取得部202、直線・線分抽出部203、検知部204、セグメント抽出部205を有する。   The extraction unit 201 includes an area image acquisition unit 202, a straight line / line segment extraction unit 203, a detection unit 204, and a segment extraction unit 205.

領域画像取得部202は、撮像画像内に例えば7セグメント表示される数字を全て含む矩形領域の位置を予め記憶しておく。この矩形領域の位置は、事前にユーザなどにより設定される。この矩形領域は、表示器11の表示領域を含む領域である。   The area image acquisition unit 202 stores in advance the position of a rectangular area that includes, for example, all the numbers displayed in 7 segments in the captured image. The position of this rectangular area is set in advance by the user or the like. This rectangular area is an area including the display area of the display 11.

領域画像取得部202は、撮像画像を取得すると、予め設定された位置の矩形領域の画像(領域画像とも呼ぶ)を取得する。領域画像取得部202は、取得した領域画像を直線・線分抽出部203に出力する。   When the captured image is acquired, the region image acquisition unit 202 acquires a rectangular region image (also referred to as a region image) at a preset position. The area image acquisition unit 202 outputs the acquired area image to the straight line / line segment extraction unit 203.

直線・線分抽出部203は、取得した領域画像に対し、例えばハフ変換を行って直線、線分成分を抽出する。直線・線分抽出部203は、抽出した直線、線分成分を検知部204に出力する。   The straight line / line segment extraction unit 203 performs, for example, a Hough transform on the acquired region image to extract a straight line and a line segment component. The straight line / line segment extraction unit 203 outputs the extracted straight line and line segment component to the detection unit 204.

検知部204は、取得した直線、線分成分の本数や画素数に基づいて、表示器11の表示領域に遮蔽物があるか否かを判定する。検知部204は、例えば、3桁の表示領域であることが分かっているときに、1桁の値の線分の最低本数が2本、最高本数が7本であることから、取得した線分の本数が6本以上21本以下であるかを判定する。   The detection unit 204 determines whether or not there is a shielding object in the display area of the display 11 based on the acquired number of straight lines and line segment components and the number of pixels. For example, when the detection unit 204 knows that the display area is a three-digit display area, the minimum number of line segments having a single-digit value is two and the maximum number is seven. It is determined whether the number of is 6 or more and 21 or less.

検知部204は、この条件を満たさない場合、遮蔽物がある、又は表示領域が曇っているなどのエラーであると検知し、表示部13にエラー表示を行うよう制御する。ここで、検知部204には、何桁の表示領域であるかが予め設定されている。   When this condition is not satisfied, the detection unit 204 detects an error such as the presence of a blocking object or a clouded display area, and performs control to display an error on the display unit 13. Here, how many digits the display area is set in the detection unit 204 in advance.

また、検知部204は、取得した線分又は背景の黒画素数をカウントし、このカウント数と、領域画像の画素数とを比較することで、エラーであるか否かを判定してもよい。領域画像のサイズが予め分かっていれば、その領域画像内に黒画素が少なくともどれくらいあるかを算出することができる。これにより、検知部204は、領域画像内にある黒画素が所定値よりも少ない場合に遮蔽物がある、又は表示領域が曇っているなどのエラーであると検知し、表示部13にエラー表示を行うよう要求する。   In addition, the detection unit 204 may determine whether there is an error by counting the number of black pixels in the acquired line segment or background, and comparing this count number with the number of pixels in the region image. . If the size of the area image is known in advance, it is possible to calculate at least how many black pixels are in the area image. As a result, the detection unit 204 detects an error such as the presence of a shielding object or a clouded display region when the number of black pixels in the region image is less than a predetermined value, and displays an error on the display unit 13. Request to do.

検知部204は、遮蔽物などがないと判定した場合に、その旨をセグメント抽出部205に通知する。なお、直線・線分抽出部203、検知部204は、セグメント抽出処理に必ずしも必要な機能ではない。   When the detection unit 204 determines that there is no shielding object, the detection unit 204 notifies the segment extraction unit 205 to that effect. The straight line / line segment extraction unit 203 and the detection unit 204 are not necessarily functions necessary for the segment extraction process.

セグメント抽出部205は、領域画像から、桁毎に、抽出したセグメントのON/OFFを判定する。セグメント抽出部205の詳細は、図3を用いて説明する。   The segment extraction unit 205 determines ON / OFF of the extracted segment for each digit from the region image. Details of the segment extraction unit 205 will be described with reference to FIG.

図3は、実施例1におけるセグメント抽出部205の機能の一例を示すブロック図である。図3に示すセグメント抽出部205は、輝度値取得部301、セグメント判定部304を有する。   FIG. 3 is a block diagram illustrating an example of the function of the segment extraction unit 205 according to the first embodiment. The segment extraction unit 205 illustrated in FIG. 3 includes a luminance value acquisition unit 301 and a segment determination unit 304.

輝度値取得部301は、桁毎に、予め設定された所定領域の画像内の輝度値を取得する。予め設定された所定領域は、例えばセグメントに隣接する常にOFFの領域である。図3に示す輝度値取得部301は、第1輝度値取得部302、第2輝度値取得部303を有する。   The luminance value acquisition unit 301 acquires a luminance value in an image of a predetermined area set in advance for each digit. The predetermined area set in advance is, for example, an always OFF area adjacent to the segment. The luminance value acquisition unit 301 illustrated in FIG. 3 includes a first luminance value acquisition unit 302 and a second luminance value acquisition unit 303.

第1輝度値取得部302は、各セグメントに隣接する所定領域、例えば7セグメントの上部の閉領域の画像の輝度値を取得する。閉領域は、セグメントに囲まれる領域である。この輝度値は、例えば、閉領域の画像の平均輝度値とする。   The first luminance value acquisition unit 302 acquires a luminance value of an image of a predetermined region adjacent to each segment, for example, a closed region above the seven segments. A closed region is a region surrounded by segments. This brightness value is, for example, the average brightness value of the image in the closed region.

第2輝度値取得部303は、各セグメントに隣接する所定領域、例えば7セグメントの下部の閉領域の画像の輝度値を取得する。   The second luminance value acquisition unit 303 acquires the luminance value of an image of a predetermined region adjacent to each segment, for example, a closed region below the seven segments.

第1輝度値取得部302、第2輝度値取得部303で輝度値が取得される領域は、予め設定されている。   The areas where the luminance values are acquired by the first luminance value acquisition unit 302 and the second luminance value acquisition unit 303 are set in advance.

第1輝度値取得部302、第2輝度値取得部303は、領域画像内の桁毎に輝度値を取得し、セグメント判定部304に出力する。   The first luminance value acquisition unit 302 and the second luminance value acquisition unit 303 acquire a luminance value for each digit in the area image and output it to the segment determination unit 304.

セグメント判定部304は、輝度値取得部301から取得した輝度値と、各セグメントの輝度値とに基づいて、各セグメントがONであるかを判定する。セグメントがONであるとは、そのセグメントが文字の一部として有効な状態であることをいう。   The segment determination unit 304 determines whether each segment is ON based on the luminance value acquired from the luminance value acquisition unit 301 and the luminance value of each segment. A segment being ON means that the segment is valid as part of a character.

セグメントの輝度値は、セグメントの平均輝度値でもよいし、セグメント内の所定位置の輝度値でもよい。各セグメントの位置は、予め設定されているため、セグメント判定部304は、設定された位置に従って各セグメントの輝度値を取得する。   The segment brightness value may be an average brightness value of the segment or a brightness value at a predetermined position in the segment. Since the position of each segment is set in advance, the segment determination unit 304 acquires the luminance value of each segment according to the set position.

図3に示すセグメント判定部304は、第1セグメント判定部305、第2セグメント判定部306、第3セグメント判定部307を有する。   The segment determination unit 304 illustrated in FIG. 3 includes a first segment determination unit 305, a second segment determination unit 306, and a third segment determination unit 307.

第1セグメント判定部305は、7セグメントの中央のセグメントの輝度値と、第1領域及び第2領域の平均輝度値との差分値を算出する。中央のセグメントとは、例えば、7セグメントの中央の水平なセグメントをいう。第1セグメント判定部305は、この差分値と第1閾値とを比較することで、中央のセグメントがONであるか否かを判定する。輝度値の差分値は、例えば、式(1)により求められる。   The first segment determination unit 305 calculates a difference value between the luminance value of the center segment of the seven segments and the average luminance value of the first area and the second area. A center segment means the horizontal segment of the center of 7 segments, for example. The first segment determination unit 305 determines whether or not the center segment is ON by comparing the difference value with the first threshold value. The difference value of the luminance value is obtained by, for example, equation (1).

Figure 0005831069
V:輝度値の差分値
R1,G1,B1:セグメントの画素値
R2,G2、B2:領域の平均画素値
第1セグメント判定部305は、式(1)のR2,G2,B2に対し、第1領域及び第2領域の平均画素値を代入する。
Figure 0005831069
V: luminance value difference values R1, G1, B1: segment pixel values R2, G2, B2: area average pixel value The first segment determination unit 305 determines the second segment R2, G2, B2 in equation (1) The average pixel values of the first area and the second area are substituted.

また、輝度値は、色差変換を行った後のYなどでもよい。この場合、輝度値の差分値は、式(2)により求められる。
V=Y1−Y2 ・・・式(2)
Y1:セグメントの輝度値
Y2:領域の平均輝度値
第1セグメント判定部305は、式(2)のY2に対し、第1領域及び第2領域の平均輝度値を代入する。
The luminance value may be Y after color difference conversion. In this case, the difference value of the luminance value is obtained by Expression (2).
V = Y1-Y2 Formula (2)
Y1: Segment brightness value Y2: Area average brightness value The first segment determination unit 305 substitutes the average brightness values of the first area and the second area for Y2 in Expression (2).

第1セグメント判定部305は、差分値の絶対値が第1閾値よりも大きい場合、そのセグメントはONであると判定し、差分値の絶対値が第1閾値以下の場合、そのセグメントはOFFであると判定する。   The first segment determination unit 305 determines that the segment is ON when the absolute value of the difference value is greater than the first threshold value, and the segment is OFF when the absolute value of the difference value is equal to or less than the first threshold value. Judge that there is.

第2セグメント判定部306は、7セグメントの上部の各セグメントの輝度値と、第1領域の輝度値との差分値を算出する。上部の各セグメントとは、例えば、最上セグメント、上左セグメント、上右セグメントの3つのセグメントをいう。第2セグメント判定部306は、この差分値と第2閾値とを比較することで、上部の各セグメントがONであるか否かを判定する。   The second segment determination unit 306 calculates a difference value between the luminance value of each segment above the seven segments and the luminance value of the first region. Each of the upper segments refers to, for example, three segments including an uppermost segment, an upper left segment, and an upper right segment. The second segment determination unit 306 determines whether each upper segment is ON by comparing the difference value with the second threshold value.

第2セグメント判定部306は、差分値の絶対値が第2閾値よりも大きい場合、そのセグメントはONであると判定し、差分値の絶対値が第2閾値以下の場合、そのセグメントはOFFであると判定する。   The second segment determination unit 306 determines that the segment is ON when the absolute value of the difference value is greater than the second threshold, and the segment is OFF when the absolute value of the difference value is equal to or less than the second threshold. Judge that there is.

第3セグメント判定部307は、7セグメントの下部の各セグメントの輝度値と、第2領域の輝度値との差分値を算出する。下部の各セグメントとは、例えば、最下セグメント、下左セグメント、下右セグメントの3つのセグメントをいう。第3セグメント判定部307は、この差分値と第3閾値とを比較することで、下部の各セグメントがONであるか否かを判定する。   The third segment determination unit 307 calculates a difference value between the luminance value of each segment below the seven segments and the luminance value of the second region. Each of the lower segments refers to, for example, three segments including a lowermost segment, a lower left segment, and a lower right segment. The third segment determination unit 307 determines whether or not each lower segment is ON by comparing the difference value with the third threshold value.

第3セグメント判定部307は、差分値の絶対値が第3閾値よりも大きい場合、そのセグメントはONであると判定し、差分値の絶対値が第3閾値以下の場合、そのセグメントはOFFであると判定する。   The third segment determination unit 307 determines that the segment is ON when the absolute value of the difference value is greater than the third threshold, and the segment is OFF when the absolute value of the difference value is equal to or less than the third threshold. Judge that there is.

セグメント判定部304は、各セグメントのON/OFFを示す情報を、記憶部206に記憶する。また、セグメント判定部304は、判定に用いた各セグメントの輝度値及び/又はセグメントと領域との輝度値の差分値を記憶部206に記憶するようにしてもよい。   The segment determination unit 304 stores information indicating ON / OFF of each segment in the storage unit 206. In addition, the segment determination unit 304 may store in the storage unit 206 the luminance value of each segment and / or the difference value of the luminance value between the segment and the region used for the determination.

これにより、セグメントの輝度値と、常にOFFである領域の輝度値との差分値を用いることで、表示器11の種類に関係なく、セグメントのON/OFFを判定することができる。また、セグメント毎に、隣接する常にOFFの領域の輝度値を用いて比較するので、外光の影響を減らし、セグメント毎にON/OFFを適切に判定することができる。よって、上述したセグメント抽出方法によれば、ONである各セグメントを適切に抽出することができる。   Thus, by using the difference value between the brightness value of the segment and the brightness value of the area that is always OFF, it is possible to determine the ON / OFF state of the segment regardless of the type of the display 11. Further, since the comparison is performed using the luminance value of the always OFF region adjacent to each segment, the influence of external light can be reduced and ON / OFF can be appropriately determined for each segment. Therefore, according to the segment extraction method described above, each segment that is ON can be appropriately extracted.

図2に戻り、記憶部206は、撮像画像や、セグメントの組み合わせによる文字パターンを含む辞書(セグメント辞書とも呼ぶ)や、セグメントのON/OFFを判定する閾値、各セグメントのON/OFFを示す情報、各セグメントのON/OFFの輝度値の情報などを記憶する。ここでの文字は、数字を含み、以下では数字を例にして説明する。また、記憶部206は、複数の記憶領域にそれぞれのデータを記憶してもよく、また、複数の記憶装置にそれぞれのデータを記憶するようにしてもよい。   Returning to FIG. 2, the storage unit 206 stores a captured image, a dictionary including a character pattern based on a combination of segments (also referred to as a segment dictionary), a threshold for determining ON / OFF of a segment, and information indicating ON / OFF of each segment. In addition, information on ON / OFF brightness values of each segment is stored. The characters here include numbers, and will be described below by taking numbers as examples. The storage unit 206 may store each data in a plurality of storage areas, and may store each data in a plurality of storage devices.

比較部207は、記憶部206から桁毎に各セグメントのON/OFFを示す情報を取得し、ONのセグメントの組み合わせが、記憶部206に記憶されているセグメント辞書に含まれる数字に一致するかを比較する。比較部207は、比較結果が一致した場合、一致した旨を計測部208に通知し、一致した数字を出力部210に出力する。比較部207は、この処理を全ての桁に対して行う。   The comparison unit 207 acquires information indicating ON / OFF of each segment for each digit from the storage unit 206, and whether the combination of ON segments matches the number included in the segment dictionary stored in the storage unit 206. Compare When the comparison results match, the comparison unit 207 notifies the measurement unit 208 of the match, and outputs the matched numbers to the output unit 210. The comparison unit 207 performs this process for all the digits.

比較部207は、少なくとも1つの桁で比較結果が一致しなかった場合、辞書にない数字が表示されていると判断して、計測部208に不一致を示す旨を通知する。   If the comparison result does not match in at least one digit, the comparison unit 207 determines that a number that is not in the dictionary is displayed, and notifies the measurement unit 208 that there is a mismatch.

また、表示器11が液晶の表示領域を有する場合、数字が切り替わる時に、切替前の数字が消えてから切替後の数字が表示されるものがある。この場合、数字の切り替え中に撮像部12が撮像すると、輝度値が正常なON状態とは異なる状態で撮像されてしまう。このような輝度値のエラーを検知する必要がある。   In addition, when the display 11 has a liquid crystal display area, when the number is switched, the number after switching is displayed after the number before switching disappears. In this case, if the imaging unit 12 captures an image while switching numbers, the image is captured in a state different from a normal ON state. It is necessary to detect such a luminance value error.

そこで、比較部207は、例えば、比較対象のONのセグメントの輝度値と、記憶部206に記憶されているそのセグメントのON時の平均輝度値との差が、所定の閾値以上であれば、比較対象のセグメントの輝度値は異常時(切り替わり時)の輝度値であるとして、撮像部12に再撮像を要求する。これにより、数字の切り替わりに伴うセグメントの輝度値異常を検出することができる。   Therefore, the comparison unit 207, for example, if the difference between the luminance value of the ON segment to be compared and the average luminance value at the ON time of the segment stored in the storage unit 206 is greater than or equal to a predetermined threshold value, The imaging unit 12 is requested to perform re-imaging, assuming that the luminance value of the segment to be compared is a luminance value at the time of abnormality (when switching). Thereby, it is possible to detect an abnormality in the luminance value of the segment accompanying the switching of numbers.

また、比較部207は、各セグメントのON/OFF判定に用いる輝度差に所定範囲を設け、この輝度差が所定範囲を超えていれば、セグメントの輝度値に異常があると検出することもできる。第1領域又は第2領域の輝度値はほぼ一定であるのでセグメントの輝度値が異常であると、この差分値に影響が出る。よって、セグメントがON又はOFF時のこの差分値が所定範囲になければ、比較部207は、セグメントの輝度値が異常であると判定することができる。   Further, the comparison unit 207 can provide a predetermined range for the luminance difference used for ON / OFF determination of each segment, and can detect that the luminance value of the segment is abnormal if the luminance difference exceeds the predetermined range. . Since the luminance value of the first area or the second area is substantially constant, if the luminance value of the segment is abnormal, this difference value is affected. Therefore, if the difference value when the segment is ON or OFF is not within the predetermined range, the comparison unit 207 can determine that the luminance value of the segment is abnormal.

計測部208は、比較部207により不一致の通知を受けた時から、一致の通知を受けるまでの時間を計測する。この時間は、継続時間とも呼び、抽出された各セグメントが辞書に存在しない時間を表す。計測部208は、計測した継続時間を判定部209に出力する。   The measurement unit 208 measures the time from when the comparison unit 207 receives the mismatch notification until the match notification is received. This time is also called duration and represents the time when each extracted segment does not exist in the dictionary. The measurement unit 208 outputs the measured duration time to the determination unit 209.

また、計測部208は、画像の撮像周期を記録しておき、辞書にない数字が認識された時刻の周期に基づき、撮像部12により撮像される撮像周期を自動的に調整してもよい。例えば、計測部208は、辞書にない数字が認識された時刻の周期よりも、撮像間隔を長くし、撮像周期をずらす。計測部208は、調整した撮像間隔を撮像部12に通知する。   The measuring unit 208 may record the imaging cycle of the image, and automatically adjust the imaging cycle captured by the imaging unit 12 based on the cycle of the time when a number not in the dictionary is recognized. For example, the measurement unit 208 makes the imaging interval longer than the period of time when a number not in the dictionary is recognized, and shifts the imaging period. The measurement unit 208 notifies the imaging unit 12 of the adjusted imaging interval.

これにより、撮像した時に、各セグメントの組み合わせが辞書にない可能性を低くし、再撮像に伴う処理を減らすことができる。   Thereby, when imaging, the possibility that the combination of each segment does not exist in a dictionary is reduced, and the process accompanying reimaging can be reduced.

また、計測部208は、辞書に存在しないセグメントの組み合わせが、前回抽出されたセグメントの組み合わせと同じである場合に、継続時間を計測するようにしてもよい。エラーコードを示すセグメントの組み合わせは、継続して表示されるためである。一方で、抽出されたセグメントの組み合わせが、例えば2回連続で辞書に存在しなかったとしても、そのセグメントが異なる組み合わせであれば、異なる2文字間の切り替わり状態が撮像された可能性が高い。   In addition, the measurement unit 208 may measure the duration when the combination of segments that do not exist in the dictionary is the same as the combination of segments extracted last time. This is because combinations of segments indicating error codes are continuously displayed. On the other hand, even if the combination of the extracted segments does not exist in the dictionary twice consecutively, for example, if the segments are different combinations, there is a high possibility that the switching state between two different characters has been imaged.

これにより、計測部208は、抽出されたセグメントの組み合わせが辞書に存在しない場合であり、かつ、前回抽出されたセグメントの組み合わせと同じである場合に、継続時間を計測するようにしてもよい。計測部208は、抽出されたセグメントの組み合わせについては、比較部207から取得してもよいし、比較部208から通知と共に入力されてもよい。   Thereby, the measurement unit 208 may measure the duration when the extracted segment combination does not exist in the dictionary and is the same as the previously extracted segment combination. The measurement unit 208 may acquire the extracted segment combination from the comparison unit 207 or may be input from the comparison unit 208 together with the notification.

また、計測部208は、抽出された複数の桁で同じセグメントの組み合わせが表示され、そのセグメントの組み合わせが辞書に存在しない場合の継続時間を計測してもよい。エラーコードは、例えば全ての桁で同じコードが表示される場合があるからである。   Further, the measurement unit 208 may measure the duration when the same combination of segments is displayed with a plurality of extracted digits and the combination of segments does not exist in the dictionary. This is because, for example, the same code may be displayed in all digits.

判定部209は、計測部208が計測した時間と所定値(例えば3秒)とを比較する。判定部209は、計測した時間が所定値を超えた場合、故障を示すエラーコードが表示されていると判定する。   The determination unit 209 compares the time measured by the measurement unit 208 with a predetermined value (for example, 3 seconds). If the measured time exceeds a predetermined value, the determination unit 209 determines that an error code indicating a failure is displayed.

また、判定部209は、計測した時間が所定値以下の場合、数字の切り替わり状態であると判定し、撮像部12に再撮像を要求する。これにより、他の時刻で再びセグメント抽出処理を行うことができる。また、このリトライ処理は、所定回数行われればよい。判定部209は、エラーコードが表示されていると判定した場合、出力部210にその旨を通知する。   In addition, when the measured time is equal to or less than the predetermined value, the determination unit 209 determines that the number is in a state of switching, and requests the imaging unit 12 to perform re-imaging. Thereby, the segment extraction process can be performed again at another time. Further, this retry process may be performed a predetermined number of times. If the determination unit 209 determines that an error code is displayed, the determination unit 209 notifies the output unit 210 accordingly.

出力部210は、比較部207から取得した各桁の数字を撮像時刻と対応付けて記憶し、例えば、CSVファイル形式などで出力する。また、出力部210は、各桁の数字と撮像時刻とを表示部13に出力するようにしてもよい。   The output unit 210 stores the digits of each digit acquired from the comparison unit 207 in association with the imaging time, and outputs the numbers in, for example, a CSV file format. Further, the output unit 210 may output each digit number and imaging time to the display unit 13.

また、出力部210は、判定部209からエラーコードが表示されていることを通知された場合、表示器11が故障したことを表示するよう表示部13に要求する。これにより、表示部13は、故障表示を行い、ユーザに表示器11が故障したことを知らせることができる。   When the output unit 210 is notified from the determination unit 209 that an error code is displayed, the output unit 210 requests the display unit 13 to display that the display unit 11 has failed. Thereby, the display part 13 can perform a failure display and can notify a user that the indicator 11 failed.

<セグメント抽出処理概要>
次に、実施例1におけるセグメント抽出の処理概要について具体例を用いて説明する。表示器11は、例えば7セグメントで数字を表示するメーターであるとする。
<Summary of segment extraction processing>
Next, an outline of segment extraction processing in the first embodiment will be described using a specific example. The display 11 is assumed to be a meter that displays numbers in, for example, 7 segments.

図4は、領域画像の一例を示す図である。図4に示す領域画像401は、領域画像取得部202により、撮像画像から予め設定された位置を切り出すことで取得される。領域画像取得部202は、7セグメント表示される表示領域の撮像画像内の位置を予め設定しておく。この事前設定は、ユーザなどにより設定可能とする。   FIG. 4 is a diagram illustrating an example of a region image. The region image 401 illustrated in FIG. 4 is acquired by the region image acquisition unit 202 by cutting a preset position from the captured image. The area image acquisition unit 202 sets in advance the position in the captured image of the display area displayed as 7 segments. This pre-setting can be set by a user or the like.

また、領域画像401内の各桁の位置やセグメントの位置、セグメント内の閉領域の位置なども事前に設定されている。   In addition, the position of each digit in the area image 401, the position of the segment, the position of the closed area in the segment, and the like are set in advance.

図5は、各セグメントと閉領域を説明するための図である。図5に示す領域Aは、7セグメントの上部の閉領域を表し、第1領域に対応する。図5に示す領域Bは、7セグメントの下部の閉領域を表し、第2領域に対応する。
セグメント(1)は、7セグメントの中央の横セグメントを表す。
セグメント(2)は、7セグメントの上左の縦セグメントを表す。
セグメント(3)は、7セグメントの最上の横セグメントを表す。
セグメント(4)は、7セグメントの上右の縦セグメントを表す。
セグメント(5)は、7セグメントの下右の縦セグメントを表す。
セグメント(6)は、7セグメントの最下の横セグメントを表す。
セグメント(7)は、7セグメントの下左の縦セグメントを表す。
FIG. 5 is a diagram for explaining each segment and the closed region. Region A shown in FIG. 5 represents the closed region at the top of the seven segments and corresponds to the first region. Region B shown in FIG. 5 represents a closed region at the bottom of 7 segments and corresponds to the second region.
Segment (1) represents the middle horizontal segment of the seven segments.
Segment (2) represents the upper left vertical segment of 7 segments.
Segment (3) represents the top horizontal segment of 7 segments.
Segment (4) represents the upper right vertical segment of 7 segments.
Segment (5) represents the lower right vertical segment of 7 segments.
Segment (6) represents the bottom horizontal segment of 7 segments.
Segment (7) represents the lower left vertical segment of 7 segments.

図5に示すような位置関係の場合、第1輝度値取得部302は、図5に示す領域Aの輝度値を領域画像から取得する。この輝度値は、例えば領域Aの平均輝度値である。   In the case of the positional relationship as shown in FIG. 5, the first luminance value acquisition unit 302 acquires the luminance value of the area A shown in FIG. 5 from the area image. This luminance value is, for example, the average luminance value of the region A.

第2輝度値取得部303は、図5に示す領域Bの輝度値を領域画像から取得する。この輝度値は、例えば領域Bの平均輝度値である。   The second luminance value acquisition unit 303 acquires the luminance value of the region B illustrated in FIG. 5 from the region image. This luminance value is, for example, the average luminance value of the region B.

第1セグメント判定部305は、セグメント(1)の輝度値と、領域Aと領域Bの平均輝度値との差分値を算出し、この差分値と第1閾値とを比較することで、セグメント(1)がONであるかを判定する。   The first segment determination unit 305 calculates a difference value between the luminance value of the segment (1) and the average luminance value of the region A and the region B, and compares the difference value with the first threshold value to thereby calculate the segment ( It is determined whether 1) is ON.

第2セグメント判定部306は、セグメント(2)〜(4)の上部の各セグメントの輝度値と、領域Aの輝度値との差分値を算出し、この差分値と第2閾値とを比較することで、上部の各セグメントがONであるかを判定する。   The second segment determination unit 306 calculates a difference value between the brightness value of each segment above the segments (2) to (4) and the brightness value of the region A, and compares this difference value with the second threshold value. Thus, it is determined whether each upper segment is ON.

第3セグメント判定部307は、セグメント(5)〜(7)の下部の各セグメントの輝度値と、領域Bの輝度値との差分値を算出し、この差分値と第3閾値とを比較することで、下部の各セグメントがONであるかを判定する。   The third segment determination unit 307 calculates a difference value between the luminance value of each segment below the segments (5) to (7) and the luminance value of the region B, and compares this difference value with the third threshold value. Thus, it is determined whether each lower segment is ON.

なお、輝度値取得部301は、領域A、Bを横方向又は縦方向の部分領域に分割し、部分領域で輝度値に所定の差がある場合、各部分領域の輝度値を取得するようにしてもよい。   The luminance value acquisition unit 301 divides the regions A and B into partial regions in the horizontal direction or the vertical direction, and acquires a luminance value of each partial region when there is a predetermined difference in luminance value between the partial regions. May be.

図6は、領域Aを部分領域に分割する例を示す図である。図6(A)は、領域Aを縦に分割し、2つの部分領域に分ける例を示す。この2つの部分領域で、所定値以上の輝度値差分があるとする。この場合、第2セグメント判定部306は、セグメント(2)の輝度値と、部分領域501の輝度値との差分値を算出して判定を行う。   FIG. 6 is a diagram illustrating an example in which the area A is divided into partial areas. FIG. 6A shows an example in which the area A is divided vertically and divided into two partial areas. It is assumed that there is a luminance value difference of a predetermined value or more in these two partial areas. In this case, the second segment determination unit 306 performs determination by calculating a difference value between the luminance value of the segment (2) and the luminance value of the partial region 501.

また、第2セグメント判定部306は、セグメント(4)の輝度値と、部分領域502の輝度値との差分値を算出して判定を行う。なお、この場合のセグメント(3)については領域Aの輝度値と差分をとってもよいし、次に説明する部分領域503の輝度値と差分をとってもよい。   In addition, the second segment determination unit 306 performs determination by calculating a difference value between the luminance value of the segment (4) and the luminance value of the partial region 502. In addition, regarding the segment (3) in this case, a difference from the luminance value of the region A may be taken, or a difference from the luminance value of the partial region 503 described below may be taken.

図6(B)は、領域Aを横に分割し、2つの部分領域に分ける例を示す。この2つの部分領域で、所定値以上の輝度値差分があるとする。この場合、第3セグメント判定部307は、セグメント(3)の輝度値と、部分領域503の輝度値との差分値を算出して判定を行う。   FIG. 6B shows an example in which the area A is divided horizontally and divided into two partial areas. It is assumed that there is a luminance value difference of a predetermined value or more in these two partial areas. In this case, the third segment determination unit 307 performs determination by calculating a difference value between the luminance value of the segment (3) and the luminance value of the partial region 503.

また、第1セグメント判定部305は、セグメント(1)の輝度値と、部分領域504及び領域Bの上部の部分画像の平均輝度値との差分値を算出して判定を行う。   In addition, the first segment determination unit 305 performs determination by calculating a difference value between the luminance value of the segment (1) and the average luminance value of the partial images in the upper part of the partial area 504 and the area B.

これにより、外光の影響をさらに細分化して、各セグメントのON/OFFをさらに適切に判定することができる。また、領域Aだけでなく、領域Bについても部分領域に分割してもよい。   Thereby, the influence of external light can be further subdivided and ON / OFF of each segment can be determined more appropriately. Further, not only the area A but also the area B may be divided into partial areas.

次に、第1〜第3閾値の例について説明する。以下では、明るい環境と、暗い環境とでの撮像画像の計測値に基づいて第1〜第3閾値を設定する。   Next, examples of the first to third threshold values will be described. In the following, the first to third threshold values are set based on the measured values of the captured images in a bright environment and a dark environment.

図7は、暗い環境で7セグメント表示された数字を撮像した部分画像の一例を示す図である。ここでの部分画像は、1桁のセグメント表示された値を含む画像である。セグメント抽出部205は、図7の部分画像を基に、各セグメント、領域A、Bの輝度値を取得する。図7に示す例では、黒のセグメントで数字を表すものとする。   FIG. 7 is a diagram illustrating an example of a partial image obtained by capturing numbers displayed in seven segments in a dark environment. Here, the partial image is an image including a one-digit segment display value. The segment extraction unit 205 acquires the luminance value of each segment and regions A and B based on the partial image of FIG. In the example shown in FIG. 7, it is assumed that numbers are represented by black segments.

図8は、図7に示す部分画像の計測値を示す図である。図8(A)は、第1輝度値取得部302が取得した領域Aの輝度値と、第2輝度値取得部302が取得した領域Bの輝度値とを表す。図8(A)に示す例では、領域Aの輝度値は41であり、領域Bの輝度値は48である。   FIG. 8 is a diagram showing measured values of the partial images shown in FIG. FIG. 8A shows the luminance value of the region A acquired by the first luminance value acquisition unit 302 and the luminance value of the region B acquired by the second luminance value acquisition unit 302. In the example shown in FIG. 8A, the luminance value of the region A is 41 and the luminance value of the region B is 48.

図8(B)は、各セグメントのON、OFF時の輝度値を表す。黒のセグメントで、数字を表すため、ON時の輝度値の方が、OFFの輝度値よりも小さい。図8(C)は、ON/OFF時の差分値の絶対値を表す。   FIG. 8B shows the luminance value when each segment is ON and OFF. Since the black segment represents a number, the luminance value when ON is smaller than the luminance value when OFF. FIG. 8C shows the absolute value of the difference value at ON / OFF.

図9は、明るい環境で7セグメント表示された数字を撮像した部分画像の一例を示す図である。セグメント抽出部205は、図9の部分画像を基に、各セグメント、領域A、Bの輝度値を取得する。図9に示す例では、黒のセグメントで数字を表すものとする。   FIG. 9 is a diagram illustrating an example of a partial image obtained by capturing numbers displayed in seven segments in a bright environment. The segment extraction unit 205 acquires the luminance values of the segments and regions A and B based on the partial image in FIG. In the example shown in FIG. 9, it is assumed that numbers are represented by black segments.

図10は、図9に示す部分画像の計測値を示す図である。図10(A)は、第1輝度値取得部302が取得した領域Aの輝度値と、第2輝度値取得部302が取得した領域Bの輝度値とを表す。図10(A)に示す例では、領域Aの輝度値は100であり、領域Bの輝度値は113である。   FIG. 10 is a diagram showing measured values of the partial images shown in FIG. FIG. 10A shows the luminance value of the region A acquired by the first luminance value acquisition unit 302 and the luminance value of the region B acquired by the second luminance value acquisition unit 302. In the example shown in FIG. 10A, the luminance value of region A is 100, and the luminance value of region B is 113.

図10(B)は、各セグメントのON、OFF時の輝度値を表す。黒のセグメントで、数字を表すため、ON時の輝度値の方が、OFFの輝度値よりも小さい。図10(C)は、ON/OFF時の差分値の絶対値を表す。   FIG. 10B shows the luminance value when each segment is ON and OFF. Since the black segment represents a number, the luminance value when ON is smaller than the luminance value when OFF. FIG. 10C shows the absolute value of the difference value at ON / OFF.

図8、図10に示す計測例では、暗い環境、明るい環境いずれも、OFF時の最大差分値は6であるため、この6よりも大きい値を第1〜第3閾値に設定すれば、ON/OFFの切り分けが可能となる。よって、例えば、セグメント判定部304では、第1〜第3閾値を7に設定しておく。なお、第1〜3閾値は、それぞれ異なる値を設定してもよい。   In the measurement examples shown in FIGS. 8 and 10, since the maximum difference value at the time of OFF is 6 in both the dark environment and the bright environment, if a value larger than 6 is set as the first to third threshold values, the ON is performed. / OFF separation becomes possible. Therefore, for example, the segment determination unit 304 sets the first to third thresholds to 7. The first to third threshold values may be set to different values.

図11は、各セグメントのON/OFFの一例を示す図である。図11に示す例は、セグメント判定部304により、セグメント(4)とセグメント(5)とがONであると判定され、セグメント(1)〜(3)、セグメント(6)(7)はOFFであると判定された場合を示す。   FIG. 11 is a diagram illustrating an example of ON / OFF of each segment. In the example shown in FIG. 11, the segment determination unit 304 determines that the segment (4) and the segment (5) are ON, and the segments (1) to (3) and the segments (6) and (7) are OFF. The case where it is determined that there is present is shown.

このとき、セグメント判定部304は、セグメント(4)(5)に対しONを示す情報を、セグメント(1)〜(3)、セグメント(6)(7)に対しOFFを示す情報を記憶部206に記憶する。   At this time, the segment determination unit 304 stores information indicating ON for the segments (4) and (5), and stores information indicating OFF for the segments (1) to (3) and the segments (6) and (7). To remember.

<辞書比較処理概要>
次に、実施例1における辞書比較の処理概要について具体例を用いて説明する。図12は、セグメント辞書の一例を示す図である。図12に示すセグメント辞書は、記憶部206に記憶され、各セグメントのON/OFFの組み合わせによる数字を保持する。
<Dictionary comparison process overview>
Next, an outline of the dictionary comparison process in the first embodiment will be described using a specific example. FIG. 12 is a diagram illustrating an example of a segment dictionary. The segment dictionary shown in FIG. 12 is stored in the storage unit 206 and holds numbers based on the ON / OFF combinations of the segments.

比較部207は、記憶部306に記憶された各セグメントのON/OFFを示す情報と、セグメント辞書とを比較する。比較部207は、ONのセグメントの組み合わせが、セグメント辞書に含まれる数字を示す場合は、その数字を出力部210に出力する。   The comparison unit 207 compares information indicating ON / OFF of each segment stored in the storage unit 306 with the segment dictionary. When the combination of ON segments indicates a number included in the segment dictionary, the comparison unit 207 outputs the number to the output unit 210.

図13は、輝度値異常の一例を示す図である。図13に示す例では、7セグメント表示の数字が、8から1に切り替わる例を示す。数字が薄くなるt〜tの間で、比較部207は、輝度値異常を検出する。 FIG. 13 is a diagram illustrating an example of a luminance value abnormality. The example shown in FIG. 13 shows an example in which the number of 7-segment display is switched from 8 to 1. The comparison unit 207 detects an abnormality in the luminance value between t 2 and t 4 where the numbers become lighter.

比較部207は、輝度値異常を検出するため、正常なON時のセグメントの輝度値の閾値TH、正常なOFF時のセグメントの輝度値の閾値THをセグメント毎に有する。閾値THと閾値THとは、記憶部306に記憶され、比較部207により適宜読み出されるようにしてもよい。比較部207は、セグメントの輝度値が、閾値THと閾値THとの間に含まれる場合は、輝度値異常と判定する。 In order to detect a luminance value abnormality, the comparison unit 207 has, for each segment, a threshold value TH 1 of the segment luminance value at normal ON and a threshold value TH 2 of the segment luminance value at normal OFF. The threshold value TH 1 and the threshold value TH 2 may be stored in the storage unit 306 and may be appropriately read out by the comparison unit 207. Comparing unit 207, the luminance value of the segment, if included between the threshold TH 1 and the threshold TH 2 determines that the luminance abnormalities.

よって、輝度値異常のセグメントを有する桁については、比較部207は、辞書に一致しないと判定する。   Therefore, the comparison unit 207 determines that the digit having a segment with an abnormal luminance value does not match the dictionary.

図14は、輝度値の変化の一例を示す図である。図14(A)に示す例では、例えば電卓などのように黒でセグメントを表す表示器11における、数字が切り替わる時の輝度値変化の一例を示す。   FIG. 14 is a diagram illustrating an example of a change in luminance value. In the example shown in FIG. 14A, an example of a luminance value change when the number is switched in the display 11 that represents a segment in black, such as a calculator, is shown.

図14(A)に示す例では、セグメントがONの状態からOFFの状態になるのに、輝度値が大きくなるよう変化する。このとき、THはON時の閾値を表す。比較部207は、TH以下の輝度値は、正常なON時のセグメントの輝度値と判定し、THより大きい輝度値は、輝度値異常であると判定する。 In the example shown in FIG. 14A, the luminance value changes so that the segment changes from the ON state to the OFF state. In this case, TH 1 represents a threshold at the time ON. The comparison unit 207 determines that the luminance value equal to or lower than TH 1 is the normal luminance value of the segment when ON, and determines that the luminance value higher than TH 1 is abnormal in luminance value.

また、THはOFF時の閾値を表す。比較部207は、TH以上の輝度値は、正常なOFF時のセグメントの輝度値と判定し、THより小さい輝度値は、輝度値異常であると判定する。 TH 2 represents a threshold value when OFF. The comparison unit 207 determines that the luminance value equal to or higher than TH 2 is the normal luminance value of the segment at OFF, and determines that the luminance value lower than TH 2 is abnormal in luminance value.

よって、輝度値がTHより大きくTHより小さい期間Tの間に撮像部12により撮像された場合には、比較部207は、輝度値異常であると判定する。 Therefore, it is determined that if the brightness value is captured by the imaging unit 12 between the larger TH 2 smaller period T than TH 1, the comparison unit 207, a luminance abnormalities.

図14(B)は、例えばAV機器の表示部のように黒地に白などを発光させてセグメントをONにする表示器11における、数字が切り替わる時の輝度値変化の一例を示す。   FIG. 14B shows an example of a change in luminance value when a number is switched in a display 11 that turns on a segment by emitting white or the like on a black background as in a display unit of an AV device, for example.

図14(B)に示す例では、セグメントがONの状態からOFFの状態になるのに、輝度値が小さくなるよう変化する。このとき、THはON時の閾値を表す。比較部207は、TH以上の輝度値は、正常なON時のセグメントの輝度値と判定し、THより小さい輝度値は、輝度値異常であると判定する。 In the example shown in FIG. 14B, the luminance value changes so as to decrease even when the segment changes from the ON state to the OFF state. In this case, TH 1 represents a threshold at the time ON. The comparison unit 207 determines that the luminance value equal to or higher than TH 1 is a normal luminance value of the segment when ON, and determines that the luminance value lower than TH 1 is abnormal in luminance value.

また、THはOFF時の閾値を表す。比較部207は、TH以下の輝度値は、正常なOFF時のセグメントの輝度値と判定し、THより大きい輝度値は、輝度値異常であると判定する。 TH 2 represents a threshold value when OFF. The comparison unit 207 determines that the luminance value equal to or lower than TH 2 is the normal luminance value of the segment at OFF, and determines that the luminance value higher than TH 2 is abnormal in luminance value.

よって、輝度値がTHより小さくTHより大きい期間Tの間に撮像部12により撮像された場合には、比較部207は、輝度値異常であると判定する。これにより、正常な輝度値のセグメントのON/OFFにより、辞書比較を行うことができる。 Therefore, when the imaging unit 12 captures an image during the period T in which the luminance value is smaller than TH 1 and larger than TH 2 , the comparing unit 207 determines that the luminance value is abnormal. Thereby, dictionary comparison can be performed by ON / OFF of a segment having a normal luminance value.

<異常判定処理概要>
次に、実施例1における異常判定の処理概要について具体例を用いて説明する。図15は、異常判定を説明するための図である。図15(A)は、文字の切り替わり状態を示す。図15(A)に示す例では、t11、t12、t14のタイミングで辞書に存在するセグメントの組み合わせを抽出し、t13のタイミングで辞書に存在しないセグメントの組み合わせを抽出する。
<Outline of abnormality determination processing>
Next, an outline of the abnormality determination process in the first embodiment will be described using a specific example. FIG. 15 is a diagram for explaining abnormality determination. FIG. 15A shows a character switching state. In the example shown in FIG. 15A, a combination of segments existing in the dictionary is extracted at timings t 11 , t 12 , and t 14 , and a combination of segments not existing in the dictionary is extracted at timing t 13 .

図15(A)に示す例では、計測部208は、例えばt13からt14までの時間T11を計測し、計測した時間T11を判定部209に出力する。判定部209は、時間T11が、所定値TH(例えば3秒)より大きいかどうかを判定する。時間T11は、TH以下であるとすると、判定部209は、t13で抽出されたセグメントの組み合わせは、文字の切り替わり状態であると判定する。 In the example shown in FIG. 15 (A), the measuring unit 208, for example, measures the time T 11 from t 13 to t 14, and outputs a time T 11 measured in the determination unit 209. Determination unit 209 determines whether time T 11 is the predetermined value TH 3 (e.g. 3 seconds) or greater. Time T 11, when a is TH 3 or less, determination unit 209, a combination of segments extracted with t 13 determines that the character of the switching state.

図15(B)は、エラーコードが表示された状態を示す。図15(B)に示す例では、t21のタイミングで辞書に存在するセグメントの組み合わせを抽出し、t22〜のタイミングで、辞書に存在しないセグメントの組み合わせを抽出する。 FIG. 15B shows a state where an error code is displayed. In the example shown in FIG. 15 (B), and extracts a combination of segments that exist in the dictionary at the timing t 21, the timing of the ~ t 22, extracts a combination of segments that do not exist in the dictionary.

図15(B)に示す例では、計測部208は、例えばt22以降の時間を計測し、t23、t24のタイミングで、計測した時間T21を判定部209に出力する。計測部208は、時間T21が所定値THを超えたときに、エラーコードが表示されていると判定する。 In the example shown in FIG. 15 (B), the measuring unit 208, for example, measures the t 22 after the time at the timing of t 23, t 24, and outputs the measured time T 21 to the determination unit 209. Measurement unit 208 determines when the time T 21 exceeds a predetermined value TH 3, an error code is displayed.

これにより、計測部208は、辞書に存在しないセグメントの組み合わせが抽出されている時間を計測し、判定部209が計測された時間と所定値とを比較することで、異常状態を適切に判定することができる。   As a result, the measurement unit 208 measures the time during which a combination of segments that does not exist in the dictionary is extracted, and compares the time measured by the determination unit 209 with a predetermined value to appropriately determine the abnormal state. be able to.

また、計測部208は、図15(B)に示すように、辞書に存在しないセグメントの組み合わせが同じである場合に、継続時間を計測するようにしてもよい。例えば、t23のタイミングで、辞書には存在しないが、他のセグメントの組み合わせであった場合、計測部208は、計測していた継続時間をリセットし、t23から計測を再開する。 Further, as shown in FIG. 15B, the measurement unit 208 may measure the duration when the combinations of segments that do not exist in the dictionary are the same. For example, at timing t 23, does not exist in the dictionary, if a combination of the other segments, the measuring unit 208 resets the duration has been measured, resume measured from t 23.

これにより、エラーコードの判定確率を向上させることができる。エラーコードは、同じ文字が継続して表示されることが多いからである。   As a result, the error code determination probability can be improved. This is because the same character is often displayed continuously as the error code.

また、図15(B)のt22で示すようなセグメントの組み合わせが、複数の桁で表示されている場合に、計測部208は、継続時間を計測するようにしてもよい。エラーコードは、複数の桁で同じエラーコードが表示されることが多いからである。 Also, combinations of segments as shown by t 22 shown in FIG. 15 (B) it is, if it is displayed by a plurality of digits, the measuring unit 208 may be measured duration. This is because the same error code is often displayed in a plurality of digits.

<動作>
次に、実施例1における情報処理装置10の動作について説明する。図16は、実施例1における情報処理装置10の処理の一例を示すフローチャートである。情報処理装置10の処理は、セグメント抽出処理を含む。
<Operation>
Next, the operation of the information processing apparatus 10 in the first embodiment will be described. FIG. 16 is a flowchart illustrating an example of processing of the information processing apparatus 10 according to the first embodiment. The process of the information processing apparatus 10 includes a segment extraction process.

ステップS101で、画像取得部200は、撮像部12により表示器11の表示領域が所定間隔で撮像された撮像画像を順に取得する。   In step S <b> 101, the image acquisition unit 200 sequentially acquires captured images in which the display area of the display unit 11 is captured at a predetermined interval by the imaging unit 12.

ステップS102、領域画像取得部202は、7セグメント表示される値を含む領域の領域画像を取得する。領域画像の位置は、予め設定されている。   In step S102, the area image acquisition unit 202 acquires an area image of an area including a value to be displayed in 7 segments. The position of the region image is set in advance.

ステップS103で、直線・線分抽出部203は、ハフ変換により領域画像内から直線、線分を抽出する。   In step S103, the straight line / line segment extraction unit 203 extracts straight lines and line segments from the region image by Hough transform.

ステップS104で、検知部204は、抽出された直線・線分の数や画素数に基づいて、遮蔽物が検知されたかを判定する。遮蔽物が検知された場合(ステップS104−YES)ステップS105に進み、遮蔽物が検知されなかった場合(ステップS104−NO)S106に進む。   In step S104, the detection unit 204 determines whether a shielding object has been detected based on the number of extracted straight lines / line segments and the number of pixels. When a shielding object is detected (step S104-YES), it progresses to step S105, and when a shielding object is not detected (step S104-NO), it progresses to S106.

ステップS105で、検知部204は、遮蔽物があるとして、エラー表示を行うよう表示部13に要求する。また、検知部204は、再度セグメント抽出処理を行わせるため、撮像部12に撮像を要求する。   In step S105, the detection unit 204 requests the display unit 13 to perform error display, assuming that there is a shielding object. In addition, the detection unit 204 requests the imaging unit 12 to perform imaging in order to perform segment extraction processing again.

ステップS106で、セグメント抽出部205は、セグメントに隣接する常にOFFの領域の輝度値と、各セグメントの輝度値とを比較し、ONである各セグメントを抽出する。抽出方法については上述した通りである。セグメント抽出部205は、セグメント抽出を桁毎に行う。   In step S106, the segment extraction unit 205 compares the brightness value of the always OFF region adjacent to the segment with the brightness value of each segment, and extracts each segment that is ON. The extraction method is as described above. The segment extraction unit 205 performs segment extraction for each digit.

ステップS101〜S106は、セグメント抽出処理である。このセグメント抽出処理により、表示器11の種類や外光の影響に関係なく、抽出された各セグメントのON/OFFを適切に判定してONのセグメントを抽出することができる。なお、ステップS103〜S105は、必ずしも必要は処理ではない。また、実施例では、上述したセグメント抽出処理に限定されず、他の公知のセグメント抽出処理を用いてもよい。   Steps S101 to S106 are segment extraction processing. By this segment extraction process, it is possible to appropriately determine the ON / OFF of each extracted segment and extract the ON segment regardless of the type of the display 11 or the influence of external light. Note that steps S103 to S105 are not necessarily processing. Moreover, in an Example, it is not limited to the segment extraction process mentioned above, You may use another well-known segment extraction process.

ステップS107で、比較部207は、判定されたONのセグメントと、セグメント辞書(図12参照)とを比較する。比較部207は、上述した輝度値異常を判定してもよい。   In step S107, the comparison unit 207 compares the determined ON segment with the segment dictionary (see FIG. 12). The comparison unit 207 may determine the above-described luminance value abnormality.

ステップS108で、比較部207は、ONのセグメントの組み合わせ(値)が辞書のセグメントパターンと一致するかを判定する。セグメントの組み合わせがセグメント辞書に存在する場合(ステップS108−YES)ステップS109に進み、セグメントの組み合わせがセグメント辞書に存在しない場合(ステップS108−NO)ステップS110に進む。   In step S108, the comparison unit 207 determines whether the combination (value) of the ON segment matches the segment pattern of the dictionary. If the segment combination exists in the segment dictionary (step S108—YES), the process proceeds to step S109. If the segment combination does not exist in the segment dictionary (step S108—NO), the process proceeds to step S110.

ステップS109で、比較部207は、辞書に存在する値を出力部210に出力する。これにより、7セグメントで表示された値をデジタル値で取得することができ、後段のシステムで利用することができるようになる。例えば、出力部210は、比較部207から取得する値を継続して保持しておき、CSVファイルにして出力することができる。   In step S109, the comparison unit 207 outputs the values existing in the dictionary to the output unit 210. As a result, the value displayed in 7 segments can be acquired as a digital value, and can be used in a system at a later stage. For example, the output unit 210 can continuously hold the value acquired from the comparison unit 207 and output it as a CSV file.

ステップS110で、計測部208は、辞書に存在しないセグメントが抽出されている時間を計測する。計測部208は、比較部207から比較結果を取得することで、この時間を計測することができる。   In step S110, the measurement unit 208 measures the time during which a segment that does not exist in the dictionary is extracted. The measurement unit 208 can measure this time by acquiring the comparison result from the comparison unit 207.

ステップS111で、判定部209は、計測された時間と所定値THとを比較して、エラーコードであるか否かを判定する。判定部209は、計測された時間が所定値THより大きい場合はエラーコードであると判定し、計測された時間が所定値TH以下である場合は切り替わり状態であると判定する。 In step S111, the determination unit 209 compares the time measured with a predetermined value TH 3, determines whether the error code. Judging unit 209 determines that the measured time is larger than the predetermined value TH 3 is determined error code, the measured time is the state switching if it is less than the predetermined value TH 3.

エラーコードであると判定された場合(ステップS111−YES)ステップS112に進み、エラーコードではないと判定された場合(ステップS111−NO)ステップS113に進む。   When it is determined that it is an error code (step S111—YES), the process proceeds to step S112, and when it is determined that it is not an error code (step S111—NO), the process proceeds to step S113.

ステップS112で、出力部210は、表示器11に故障が起きたという表示を表示部13に表示させる。   In step S112, the output unit 210 causes the display unit 13 to display a display indicating that a failure has occurred in the display unit 11.

ステップS113で、判定部209は、別画像で再度解析を行わせるため、撮像部12に撮像を要求する。   In step S113, the determination unit 209 requests the imaging unit 12 to perform imaging in order to perform another analysis on another image.

これにより、抽出されたセグメントの組み合わせが辞書に存在しない場合に、文字の切り替わり状態なのか、エラーコードの表示状態なのかの異常判定を適切に行うことができる。   Thereby, when the extracted combination of segments does not exist in the dictionary, it is possible to appropriately determine whether the character is switched or the error code is displayed.

次に、異常判定の精度を高めるための、セグメント抽出処理について説明する。図17は、S106のセグメント抽出処理の一例を示すフローチャートである。図17に示すステップS201で、セグメント抽出部205は、桁番号を表すnを1に設定する。   Next, a segment extraction process for improving the accuracy of abnormality determination will be described. FIG. 17 is a flowchart illustrating an example of the segment extraction process in S106. In step S201 illustrated in FIG. 17, the segment extraction unit 205 sets n representing a digit number to 1.

ステップS202で、第1輝度値取得部302は、第1領域に対応する閉領域Aの平均輝度値を取得する。   In step S202, the first luminance value acquisition unit 302 acquires the average luminance value of the closed region A corresponding to the first region.

ステップS203で、第2輝度値取得部303は、第2領域に対応する閉領域Bの平均輝度値を取得する。   In step S203, the second luminance value acquisition unit 303 acquires the average luminance value of the closed region B corresponding to the second region.

ステップS204で、セグメント判定部304は、セグメント番号を示すsを1に設定する。   In step S204, the segment determination unit 304 sets s indicating the segment number to 1.

ステップS205で、セグメント判定部304は、セグメント番号が1であるか、2〜4であるか、5〜7であるかを判定する。なお、セグメント番号が1〜7は、セグメント(1)〜(7)にそれぞれ対応する。   In step S205, the segment determination unit 304 determines whether the segment number is 1, 2-4, or 5-7. Segment numbers 1 to 7 correspond to segments (1) to (7), respectively.

セグメント番号が1の場合はステップS206に進み、セグメント番号が2〜4の場合はステップS207に進み、セグメント番号が5〜7の場合はステップS208に進む。   If the segment number is 1, the process proceeds to step S206. If the segment number is 2-4, the process proceeds to step S207. If the segment number is 5-7, the process proceeds to step S208.

ステップS206で、第1セグメント判定部305は、セグメント(1)の輝度値と、第1領域及び第2領域の輝度値の平均との差分値を算出し、この差分値の絶対値が第1閾値より大きいかを判定する。差分値の絶対値が第1閾値より大きい場合は、第1セグメント判定部305は、このセグメントについてONであると判定する。差分値の絶対値が第1閾値以下である場合は、第1セグメント判定部305は、このセグメントについてOFFであると判定する。   In step S206, the first segment determination unit 305 calculates a difference value between the luminance value of the segment (1) and the average of the luminance values of the first area and the second area, and the absolute value of the difference value is the first value. It is determined whether it is larger than the threshold value. If the absolute value of the difference value is greater than the first threshold, the first segment determination unit 305 determines that this segment is ON. When the absolute value of the difference value is equal to or smaller than the first threshold, the first segment determination unit 305 determines that this segment is OFF.

ステップS207で、第2セグメント判定部306は、各セグメント(2)〜(4)の輝度値と、第1領域の輝度値との差分値を算出し、この差分値の絶対値が第2閾値より大きいかを判定する。差分値の絶対値が第2閾値より大きい場合は、第2セグメント判定部306は、このセグメントについてONであると判定する。差分値の絶対値が第2閾値以下である場合は、第2セグメント判定部306は、このセグメントについてOFFであると判定する。   In step S207, the second segment determination unit 306 calculates a difference value between the luminance value of each segment (2) to (4) and the luminance value of the first region, and the absolute value of the difference value is the second threshold value. Determine if greater than. When the absolute value of the difference value is larger than the second threshold, the second segment determination unit 306 determines that this segment is ON. When the absolute value of the difference value is equal to or smaller than the second threshold value, the second segment determination unit 306 determines that this segment is OFF.

ステップS208で、第3セグメント判定部307は、各セグメント(5)〜(7)の輝度値と、第2領域の輝度値との差分値を算出し、この差分値の絶対値が第3閾値より大きいかを判定する。差分値の絶対値が第3閾値より大きい場合は、第3セグメント判定部307は、このセグメントについてONであると判定する。差分値の絶対値が第3閾値以下である場合は、第3セグメント判定部307は、このセグメントについてOFFであると判定する。   In step S208, the third segment determination unit 307 calculates a difference value between the luminance values of the segments (5) to (7) and the luminance value of the second region, and the absolute value of the difference value is the third threshold value. Determine if greater than. If the absolute value of the difference value is larger than the third threshold value, the third segment determination unit 307 determines that this segment is ON. When the absolute value of the difference value is equal to or smaller than the third threshold value, the third segment determination unit 307 determines that this segment is OFF.

ステップS209で、セグメント判定部304は、セグメント番号s=7であるかを判定する。セグメント番号sが7である場合(ステップS209−YES)ステップS211に進み、セグメント番号sが7ではない場合(ステップS209−NO)ステップS210に進む。   In step S209, the segment determination unit 304 determines whether the segment number s = 7. If the segment number s is 7 (step S209—YES), the process proceeds to step S211. If the segment number s is not 7 (step S209—NO), the process proceeds to step S210.

ステップS210で、セグメント判定部304は、セグメント番号sに1を加算する。ステップS210の処理後、ステップS205に戻る。   In step S210, the segment determination unit 304 adds 1 to the segment number s. After the process of step S210, the process returns to step S205.

ステップS211で、セグメント抽出部205は、桁番号nがNであるかを判定する。Nは、最大桁数を表し、事前に設定されている。桁番号nがNである場合(ステップS211−YES)この抽出処理を終了し、桁番号nがNでない場合(ステップS211−NO)、セグメント抽出部205は、nに1を加算する。ステップS212の処理後は、ステップS202に戻る。   In step S211, the segment extraction unit 205 determines whether the digit number n is N. N represents the maximum number of digits and is set in advance. If the digit number n is N (step S211—YES), this extraction process is terminated. If the digit number n is not N (step S211—NO), the segment extraction unit 205 adds 1 to n. After step S212, the process returns to step S202.

これにより、表示領域の桁毎に、各セグメントのON/OFFの判定を適切に行うことができる。   Thereby, ON / OFF determination of each segment can be appropriately performed for each digit of the display area.

図18は、S108の辞書比較処理の一例を示すフローチャートである。図18に示すステップS301で、比較部207は、ONと判定されたセグメントの組み合わせが、セグメント辞書に存在するかを判定する。辞書に存在する場合(ステップS301−YES)ステップS302に進み、辞書に存在しない場合(ステップS302−NO)ステップS110に進む。   FIG. 18 is a flowchart illustrating an example of the dictionary comparison process in S108. In step S301 illustrated in FIG. 18, the comparison unit 207 determines whether the combination of segments determined to be ON exists in the segment dictionary. When it exists in the dictionary (step S301—YES), the process proceeds to step S302, and when it does not exist in the dictionary (step S302—NO), the process proceeds to step S110.

ステップS302で、比較部207は、セグメント番号sを1に設定する。ステップS303で、比較部207は、ON/OFFと判定されたセグメントの輝度値と、ONの閾値THとOFFの閾値THとを比較する。 In step S302, the comparison unit 207 sets the segment number s to 1. In step S303, comparison unit 207 compares the luminance value of the segment is determined to ON / OFF, and a threshold value TH 2 thresholds TH 1 and OFF is ON.

ステップS304で、比較部207は、セグメントの輝度値が、閾値THより大きく閾値THより小さいかを判定する。また、比較部207は、セグメントの輝度値が、閾値THより大きく閾値THより小さいかを判定する。この2つの判定は、表示器11の種類に対応するためである(図14参照)。 In step S304, the comparison unit 207 determines the luminance value of the segment, the larger or the threshold value TH 2 smaller than the threshold value TH 1. The comparison unit 207 determines the luminance value of the segment, the larger or the threshold value TH 1 is smaller than the threshold TH 2. This is because these two determinations correspond to the type of the display 11 (see FIG. 14).

セグメントの輝度値が閾値の条件を満たす場合(ステップS304−YES)ステップS110に進み、セグメントの輝度値が閾値の条件を満たさない場合(ステップS304−NO)S305に進む。   If the luminance value of the segment satisfies the threshold condition (step S304—YES), the process proceeds to step S110. If the luminance value of the segment does not satisfy the threshold condition (step S304—NO), the process proceeds to S305.

ステップS305で、比較部207は、セグメント番号sが7であるかを判定する。セグメント番号sが7である場合(ステップS305−YES)ステップS307に進み、セグメント番号sが7ではない場合(ステップS305−NO)ステップS306に進む。   In step S305, the comparison unit 207 determines whether the segment number s is 7. When the segment number s is 7 (step S305—YES), the process proceeds to step S307, and when the segment number s is not 7 (step S305—NO), the process proceeds to step S306.

ステップS306で、比較部207は、セグメント番号に1を加算する。ステップS306の処理後、ステップS303に戻る。   In step S306, the comparison unit 207 adds 1 to the segment number. After step S306, the process returns to step S303.

ステップS307で、比較部207は、セグメント毎に、輝度値を例えば記憶部306に保存する。   In step S307, the comparison unit 207 stores the luminance value in the storage unit 306 for each segment, for example.

これにより、セグメントの輝度値の異常を検知することができ、正常な輝度値のセグメントに基づいて、辞書比較を行うことができる。   Thereby, abnormality of the luminance value of a segment can be detected, and dictionary comparison can be performed based on a segment having a normal luminance value.

以上、実施例1によれば、異常状態を適切に判定することができる。また、実施例1によれば、表示器11の種類や外光の状況によらず、適切に抽出したONの各セグメントを用いて、異常状態を判定することができる。   As described above, according to the first embodiment, the abnormal state can be appropriately determined. Further, according to the first embodiment, it is possible to determine an abnormal state using appropriately extracted ON segments regardless of the type of the display 11 and the external light condition.

[実施例2]
次に、実施例2における情報処理装置について説明する。実施例2では、セグメントの輝度値の異常を判定する閾値を、セグメントの輝度値の計測値を用いてセグメント毎に更新する。これにより、より適切なONのセグメントを用いて異常判定を行うことができる。
[Example 2]
Next, an information processing apparatus according to the second embodiment will be described. In the second embodiment, the threshold value for determining the abnormality of the luminance value of the segment is updated for each segment using the measured value of the luminance value of the segment. Thereby, abnormality determination can be performed using a more appropriate ON segment.

<ハードウェア>
実施例2における情報処理装置のハードウェアは、実施例1と同様であるため、その説明を省略する。
<Hardware>
Since the hardware of the information processing apparatus in the second embodiment is the same as that in the first embodiment, description thereof is omitted.

<機能>
実施例2における情報処理装置の機能は、セグメント抽出部の機能以外は図2に示す機能と同等であるため、その説明を省略する。
<Function>
The functions of the information processing apparatus according to the second embodiment are the same as the functions illustrated in FIG. 2 except for the function of the segment extraction unit, and thus the description thereof is omitted.

図19は、実施例2におけるセグメント抽出部601の機能の一例を示すブロック図である。実施例2におけるセグメント抽出部601の機能について、図3に示す機能と同様のものは同じ符号を付し、その説明を省略する。   FIG. 19 is a block diagram illustrating an example of functions of the segment extraction unit 601 according to the second embodiment. Regarding the function of the segment extraction unit 601 in the second embodiment, the same functions as those shown in FIG.

セグメント抽出部601の更新部602は、セグメントの輝度値の異常を判定するのに用いる閾値を更新する。   The update unit 602 of the segment extraction unit 601 updates the threshold value used to determine the abnormality of the luminance value of the segment.

更新部602は、例えば、セグメント毎に、ON又はOFFと判定されたときの輝度値と領域の輝度値との差分値を平均し、この平均値を用いて閾値を更新する。   For example, for each segment, the update unit 602 averages the difference value between the luminance value when determined to be ON or OFF and the luminance value of the region, and updates the threshold using the average value.

図20は、セグメント毎の輝度値異常を判定するのに用いる閾値を示す図である。図20に示す例では、セグメント毎に、ONとOFF時の平均輝度差と、最新の輝度差と、許容する平均輝度差の上限値(+)及び下限値(−)とが、対応付けられている。輝度差とは、輝度値の差分値を表す。   FIG. 20 is a diagram illustrating threshold values used to determine an abnormality in luminance value for each segment. In the example illustrated in FIG. 20, the average brightness difference between ON and OFF, the latest brightness difference, and the upper limit value (+) and lower limit value (−) of the allowed average brightness difference are associated with each segment. ing. A luminance difference represents a difference value of luminance values.

図20に示すように、セグメント番号1のON時の平均輝度差が20である場合、このセグメント番号1の正常な輝度値の差分値は、20−4〜20+20の間である。すなわち、16〜40の間に輝度差があれば、セグメントの輝度値は正常であると比較部207により判定される。   As shown in FIG. 20, when the average luminance difference when segment number 1 is ON is 20, the difference value of the normal luminance value of segment number 1 is between 20−4 and 20 + 20. That is, if there is a luminance difference between 16 and 40, the comparison unit 207 determines that the luminance value of the segment is normal.

例えば、比較部207は、セグメント番号1の最新の輝度差が22であり、この値は正常範囲16〜40の間にあるため、セグメント番号1のセグメントは正常な輝度値であると判定する。   For example, the comparison unit 207 determines that the segment of segment number 1 is a normal luminance value because the latest luminance difference of segment number 1 is 22 and this value is in the normal range of 16 to 40.

図20に示すように、セグメント番号1のOFF時の平均輝度差が3である場合、このセグメント番号1の正常な輝度値の差分値は、3−4〜3+4の間である。すなわち、0〜7の間に輝度差があれば、セグメントの輝度値は正常であると比較部207により判定される。なお、閾値がマイナスになった場合は0に丸め込まれる。   As shown in FIG. 20, when the average luminance difference when segment number 1 is OFF is 3, the difference value of the normal luminance value of segment number 1 is between 3-4 and 3 + 4. That is, if there is a luminance difference between 0 and 7, the comparison unit 207 determines that the luminance value of the segment is normal. If the threshold value is negative, it is rounded to zero.

例えば、比較部207は、セグメント番号1の最新の輝度差が3であり、この値は正常範囲0〜7の間にあるため、セグメント番号1のセグメントは正常な輝度値であると判定する。   For example, the comparison unit 207 determines that the segment with the segment number 1 has a normal luminance value because the latest luminance difference with the segment number 1 is 3 and this value is between the normal ranges 0 to 7.

なお、ONとOFFとで許容する平均輝度差との差で「+」部分に違いがある。ON時の方が、OFF時よりも大きい値が設定されている。この理由について説明する。   It should be noted that there is a difference in the “+” portion depending on the difference between the average luminance differences allowed between ON and OFF. A larger value is set at the ON time than at the OFF time. The reason for this will be described.

図21は、セグメントのON/OFF時の輝度差を説明するための図である。図21(A)は、セグメントがON時の輝度差を示す。図21(A)に示すように、セグメントがONの場合は、領域A又は領域Bとの輝度差が大きくなる。しかし、周囲の外光などの照明条件によって、領域A又は領域BとのON時の輝度差が変動する。   FIG. 21 is a diagram for explaining a luminance difference when a segment is ON / OFF. FIG. 21A shows the luminance difference when the segment is ON. As shown in FIG. 21A, when the segment is ON, the luminance difference from the region A or the region B becomes large. However, the brightness difference at the time of ON with the region A or the region B varies depending on illumination conditions such as ambient external light.

よって、セグメントがONの場合には、大きめの許容値の範囲で最新入力値が許容できるかどうかを比較部207は判定する。したがって、ON時の許容する平均輝度差との差の「+」が20に設定されている。最新入力値とは、最新のセグメントの輝度値と、領域A又は領域Bの輝度値との差分値をいう。   Therefore, when the segment is ON, the comparison unit 207 determines whether or not the latest input value can be allowed within a larger allowable value range. Therefore, “+” of the difference from the average luminance difference allowed at the time of ON is set to 20. The latest input value is a difference value between the luminance value of the latest segment and the luminance value of region A or region B.

図21(B)は、セグメントがOFF時の輝度差を示す。図21(B)に示すように、常にOFFの領域との比較を行うため、セグメントがOFFの場合、周囲の照明条件によらず領域A又は領域Bとの輝度差は小さくなる。   FIG. 21B shows the luminance difference when the segment is OFF. As shown in FIG. 21B, since the comparison is always made with the OFF region, when the segment is OFF, the luminance difference with the region A or region B is small regardless of the surrounding illumination conditions.

よって、セグメントがOFFの場合には、小さめの許容値の範囲で最新入力値が許容できるかどうかを比較部207は判定する。したがって、OFF時の許容する平均輝度差との差の「+」が4に設定されている。   Therefore, when the segment is OFF, the comparison unit 207 determines whether or not the latest input value can be permitted within the range of the smaller allowable value. Therefore, “+” of the difference from the average luminance difference allowed at the OFF time is set to 4.

このように、各セグメントの平均輝度差が変動することで、正常な輝度差の範囲もセグメント毎に変動する。平均輝度差に(+)の値を加算した値が、正常な輝度差の上限の閾値となり、平均輝度差に(−)の値を減算した値が、正常な輝度差の下限の閾値となる。   As described above, when the average luminance difference of each segment varies, the normal luminance difference range also varies for each segment. The value obtained by adding the (+) value to the average luminance difference becomes the upper limit threshold value of the normal luminance difference, and the value obtained by subtracting the (−) value from the average luminance difference becomes the lower limit threshold value of the normal luminance difference. .

更新部601は、ON時及びOFF時のセグメントの輝度差の平均を算出することで、輝度値の異常判定に用いる閾値を更新することになる。これにより、各セグメントに応じた適切な閾値を用いて、輝度値異常を検出することができる。   The updating unit 601 updates the threshold used for determining the abnormality of the luminance value by calculating the average of the luminance differences of the segments at the time of ON and OFF. Thereby, it is possible to detect an abnormality in luminance value using an appropriate threshold value corresponding to each segment.

なお、更新部602は、実施例1で説明した閾値THと閾値THとを更新するようにしてもよい。この場合、更新部602は、各セグメントのON時/OFF時の輝度値の平均値を算出する。更新部602は、図14(A)に示す場合、ON時の輝度値の平均値に所定値を加算した値を閾値TH、OFF時の輝度値の平均値に所定値を減算した値をTHとして、閾値を更新すればよい。 Incidentally, the update unit 602 may update the threshold value TH 1 and the threshold TH 2 described in the first embodiment. In this case, the update unit 602 calculates the average value of the luminance values when each segment is ON / OFF. In the case shown in FIG. 14A, the updating unit 602 uses a threshold TH 1 as a value obtained by adding a predetermined value to the average value of luminance values at the time of ON, and a value obtained by subtracting the predetermined value from the average value of luminance values at the time of OFF. as TH 2, it may be updated threshold.

<動作>
次に、実施例2における情報処理装置の動作について説明する。図22は、実施例2における情報処理装置の処理の一例を示すフローチャートである。
<Operation>
Next, the operation of the information processing apparatus according to the second embodiment will be described. FIG. 22 is a flowchart illustrating an example of processing performed by the information processing apparatus according to the second embodiment.

図22に示すステップS401〜S406の処理は、図16に示すステップS101〜S106の処理と同様であるため、その説明を省略する。   The processes in steps S401 to S406 shown in FIG. 22 are the same as the processes in steps S101 to S106 shown in FIG.

ステップS407で、更新部602は、各セグメントのON/OFFの輝度差分値の平均を算出し、この平均値を用いて輝度値異常判定に用いる閾値を更新する。この閾値は、比較部207により輝度値異常の判定に用いられる。   In step S407, the update unit 602 calculates the average of the ON / OFF luminance difference values of each segment, and updates the threshold value used for the luminance value abnormality determination using the average value. This threshold value is used by the comparison unit 207 to determine whether the luminance value is abnormal.

ステップS408〜S414の処理は、図16に示すステップS107〜S113の処理と同様であるため、その説明を省略する。   The processing in steps S408 to S414 is the same as the processing in steps S107 to S113 shown in FIG.

以上、実施例2によれば、セグメントの輝度値の異常を判定する閾値を、セグメントの輝度値の計測値を用いてセグメント毎に更新するため、より適切なセグメントの輝度値でセグメントのON/OFFを判定することができる。よって、この適切なONのセグメントを用いて異常判定を行い、判定精度を上げることができる。   As described above, according to the second embodiment, the threshold value for determining an abnormality in the luminance value of the segment is updated for each segment using the measured value of the luminance value of the segment. OFF can be determined. Therefore, it is possible to perform an abnormality determination using the appropriate ON segment and increase the determination accuracy.

[変形例]
なお、前述した各実施例で説明した処理を実現するためのプログラムを記録媒体に記録することで、各実施例での処理をコンピュータに実施させることができる。例えば、このプログラムを記録媒体に記録し、このプログラムが記録された記録媒体をコンピュータに読み取らせて、前述した処理を実現させることも可能である。
[Modification]
Note that by recording a program for realizing the processing described in each of the above-described embodiments on a recording medium, the processing in each of the embodiments can be performed by a computer. For example, it is possible to record the program on a recording medium and cause the computer to read the recording medium on which the program is recorded, thereby realizing the processing described above.

なお、記録媒体は、CD−ROM、フレキシブルディスク、光磁気ディスク等の様に情報を光学的、電気的或いは磁気的に記録する記録媒体、ROM、フラッシュメモリ等の様に情報を電気的に記録する半導体メモリ等、様々なタイプの記録媒体を用いることができる。この記録媒体には、搬送波は含まれない。   The recording medium is a recording medium that records information optically, electrically, or magnetically, such as a CD-ROM, flexible disk, magneto-optical disk, etc., and information is electrically recorded such as ROM, flash memory, etc. Various types of recording media such as a semiconductor memory can be used. This recording medium does not include a carrier wave.

以上、実施例について詳述したが、特定の実施例に限定されるものではなく、特許請求の範囲に記載された範囲内において、種々の変形及び変更が可能である。また、前述した各実施例の構成要素を全部又は複数を組み合わせることも可能である。   Although the embodiments have been described in detail above, the invention is not limited to the specific embodiments, and various modifications and changes can be made within the scope described in the claims. It is also possible to combine all or a plurality of the constituent elements of the above-described embodiments.

なお、以上の各実施例に関し、さらに以下の付記を開示する。
(付記1)
複数のセグメントを用いて表される値の少なくとも1つが、所定時間毎に撮像された各画像から、ONである各セグメントを抽出し、
抽出された前記各セグメントと、記憶部に予め記憶されたセグメントの組み合わせを含む辞書とを比較し、
前記辞書に存在しないセグメントの組み合わせが抽出されている時間を計測し、
計測された時間と所定値との比較結果により、値の切り替わり状態か、故障かを判定する処理をコンピュータに実行させるためのプログラム。
(付記2)
前記時間を計測する処理は、
抽出された前記各セグメントが前記辞書に存在しないセグメントの組み合わせであり、かつ前回抽出された各セグメントと同じである場合に、前記時間を計測する付記1記載のプログラム。
(付記3)
前記セグメントを抽出する処理は、
前記値が複数撮像された画像から、前記値ごとにONである各セグメントを抽出し、
前記辞書と比較する処理は、
前記値ごとに前記辞書と比較し、
前記時間を計測する処理は、
複数の値で、抽出された前記各セグメントが前記辞書に存在しないセグメントの組み合わせであり、かつ該セグメントの組み合わせが同じである場合に、前記時間を計測する付記1記載のプログラム。
(付記4)
前記各セグメントを抽出する処理は、
前記画像から、前記値を含む領域画像を取得し、
前記領域画像内の前記値毎に、前記セグメントに囲まれる第1領域及び第2領域の輝度値を取得し、
前記複数のセグメントにおける各セグメントの輝度値と、前記第1領域又は前記第2領域の輝度値とに基づき、前記各セグメントがONであるか否かを判定する処理を有する付記1乃至3いずれか一項に記載のプログラム。
(付記5)
前記複数のセグメントは、7セグメントであり、
前記第1領域及び前記第2領域の輝度値を取得する処理は、
前記7セグメントの上部の閉領域を前記第1領域とし、前記7セグメントの下部の閉領域を前記第2領域とする付記4記載のプログラム。
(付記6)
前記判定する処理は、
前記7セグメントの上部の各セグメントの輝度値と前記第1領域の輝度値との差分値、前記7セグメントの下部の各セグメントの輝度値と前記第2領域の輝度値との差分値、又は前記7セグメントの中央のセグメントの輝度値と前記第1領域及び前記第2領域の輝度値の平均値との差分値に基づき、各セグメントがONであるか否かを判定する付記5記載のプログラム。
(付記7)
複数のセグメントを用いて表される値の少なくとも1つが、所定時間毎に撮像された各画像から、ONである各セグメントを抽出する抽出部と、
抽出された前記各セグメントと、記憶部に予め記憶されたセグメントの組み合わせを含む辞書とを比較する比較部と、
前記辞書に存在しないセグメントの組み合わせが抽出されている時間を計測する計測部と、
計測された時間と所定値との比較結果により、値の切り替わり状態か、故障かを判定する判定部と、
を備える情報処理装置。
(付記8)
複数のセグメントを用いて表される値の少なくとも1つが、所定時間毎に撮像された各画像から、ONである各セグメントを抽出し、
抽出された前記各セグメントと、記憶部に予め記憶されたセグメントの組み合わせを含む辞書とを比較し、
前記辞書に存在しないセグメントの組み合わせが抽出されている時間を計測し、
計測された時間と所定値との比較結果により、値の切り替わり状態か、故障かを判定する処理をコンピュータが実行する異常判定方法。
In addition, the following additional notes are disclosed regarding each of the above embodiments.
(Appendix 1)
Extracting each segment in which at least one of the values represented using a plurality of segments is ON from each image captured at predetermined time intervals,
Comparing each extracted segment with a dictionary containing a combination of segments pre-stored in the storage unit;
Measure the time when the combination of segments that do not exist in the dictionary is extracted,
A program for causing a computer to execute a process of determining whether a value is switched or a failure based on a comparison result between a measured time and a predetermined value.
(Appendix 2)
The process of measuring the time is:
The program according to appendix 1, wherein the time is measured when the extracted segments are combinations of segments not existing in the dictionary and are the same as the previously extracted segments.
(Appendix 3)
The process of extracting the segment is:
Extracting each segment that is ON for each value from an image in which a plurality of the values are captured,
The process of comparing with the dictionary is as follows:
Compare with the dictionary for each value,
The process of measuring the time is:
The program according to claim 1, wherein the time is measured when the extracted segments are combinations of segments that do not exist in the dictionary with a plurality of values, and the combinations of the segments are the same.
(Appendix 4)
The process of extracting each segment is as follows:
An area image including the value is acquired from the image,
For each value in the region image, obtain a luminance value of the first region and the second region surrounded by the segment,
One of supplementary notes 1 to 3, further comprising a process for determining whether or not each segment is ON based on a luminance value of each segment in the plurality of segments and a luminance value of the first region or the second region. The program according to one item.
(Appendix 5)
The plurality of segments is 7 segments,
The process of acquiring the luminance values of the first area and the second area is as follows:
The program according to claim 4, wherein a closed area above the 7 segments is the first area, and a closed area below the 7 segments is the second area.
(Appendix 6)
The determination process is as follows.
The difference value between the brightness value of each segment above the 7 segment and the brightness value of the first area, the difference value between the brightness value of each segment below the 7 segment and the brightness value of the second area, or The program according to appendix 5, wherein it is determined whether or not each segment is ON based on a difference value between a luminance value of a central segment of seven segments and an average value of the luminance values of the first area and the second area.
(Appendix 7)
An extraction unit that extracts each segment in which at least one of the values represented by using a plurality of segments is ON from each image captured at a predetermined time;
A comparison unit that compares each extracted segment with a dictionary that includes a combination of segments stored in advance in the storage unit;
A measuring unit for measuring a time during which a combination of segments not existing in the dictionary is extracted;
A determination unit that determines whether the value is switched or malfunctioned based on a comparison result between the measured time and the predetermined value;
An information processing apparatus comprising:
(Appendix 8)
Extracting each segment in which at least one of the values represented using a plurality of segments is ON from each image captured at predetermined time intervals,
Comparing each extracted segment with a dictionary containing a combination of segments pre-stored in the storage unit;
Measure the time when the combination of segments that do not exist in the dictionary is extracted,
An abnormality determination method in which a computer executes a process of determining whether a value is switched or a failure based on a comparison result between a measured time and a predetermined value.

10 情報処理装置
11 表示器
12 撮像部
13 表示部
101 制御部
102 主記憶部
103 補助記憶部
104 通信部
105 ドライブ装置
200 画像取得部
201 抽出部
202 領域画像取得部
203 直線・線分抽出部
204 検知部
205 セグメント抽出部
206 記憶部
207 比較部
208 計測部
209 判定部
210 出力部
301 輝度値取得部
302 第1輝度値取得部
303 第2輝度値取得部
304 セグメント判定部
305 第1セグメント判定部
306 第2セグメント判定部
307 第3セグメント判定部
DESCRIPTION OF SYMBOLS 10 Information processing apparatus 11 Display 12 Image pick-up part 13 Display part 101 Control part 102 Main storage part 103 Auxiliary storage part 104 Communication part 105 Drive apparatus 200 Image acquisition part 201 Extraction part 202 Area image acquisition part 203 Straight line and line segment extraction part 204 Detection unit 205 Segment extraction unit 206 Storage unit 207 Comparison unit 208 Measurement unit 209 Determination unit 210 Output unit 301 Luminance value acquisition unit 302 First luminance value acquisition unit 303 Second luminance value acquisition unit 304 Segment determination unit 305 First segment determination unit 306 Second segment determination unit 307 Third segment determination unit

Claims (7)

複数のセグメントを用いて表される値の少なくとも1つが、所定時間毎に撮像された各画像から、ONである各セグメントを抽出し、
抽出された前記各セグメントと、記憶部に予め記憶されたセグメントの組み合わせを含む辞書とを比較し、
前記辞書に存在しないセグメントの組み合わせが抽出されている時間を計測し、
計測された時間と所定値との比較結果により、値の切り替わり状態か、故障かを判定する処理をコンピュータに実行させるためのプログラム。
Extracting each segment in which at least one of the values represented using a plurality of segments is ON from each image captured at predetermined time intervals,
Comparing each extracted segment with a dictionary containing a combination of segments pre-stored in the storage unit;
Measure the time when the combination of segments that do not exist in the dictionary is extracted,
A program for causing a computer to execute a process of determining whether a value is switched or a failure based on a comparison result between a measured time and a predetermined value.
前記時間を計測する処理は、
抽出された前記各セグメントが前記辞書に存在しないセグメントの組み合わせであり、かつ前回抽出された各セグメントと同じである場合に、前記時間を計測する請求項1記載のプログラム。
The process of measuring the time is:
The program according to claim 1, wherein the time is measured when each of the extracted segments is a combination of segments not existing in the dictionary and is the same as each of the previously extracted segments.
前記セグメントを抽出する処理は、
前記値が複数撮像された画像から、前記値ごとにONである各セグメントを抽出し、
前記辞書と比較する処理は、
前記値ごとに前記辞書と比較し、
前記時間を計測する処理は、
複数の値で、抽出された前記各セグメントが前記辞書に存在しないセグメントの組み合わせであり、かつ該セグメントの組み合わせが全て同じである場合に、前記時間を計測する請求項1記載のプログラム。
The process of extracting the segment is:
Extracting each segment that is ON for each value from an image in which a plurality of the values are captured,
The process of comparing with the dictionary is as follows:
Compare with the dictionary for each value,
The process of measuring the time is:
The program according to claim 1, wherein the time is measured when the extracted segments are combinations of segments that do not exist in the dictionary with a plurality of values, and the combinations of the segments are all the same.
前記各セグメントを抽出する処理は、
前記画像から、前記値を含む領域画像を取得し、
前記領域画像内の前記値毎に、前記セグメントに囲まれる第1領域及び第2領域の輝度値を取得し、
前記複数のセグメントにおける各セグメントの輝度値と、前記第1領域又は前記第2領域の輝度値とに基づき、前記各セグメントがONであるか否かを判定する処理を有する請求項1乃至3いずれか一項に記載のプログラム。
The process of extracting each segment is as follows:
An area image including the value is acquired from the image,
For each value in the region image, obtain a luminance value of the first region and the second region surrounded by the segment,
4. The method according to claim 1, further comprising: determining whether each segment is ON based on a luminance value of each segment in the plurality of segments and a luminance value of the first area or the second area. A program according to any one of the above.
複数のセグメントを用いて表される値の少なくとも1つが、所定時間毎に撮像された各画像から、ONである各セグメントを抽出し、  Extracting each segment in which at least one of the values represented using a plurality of segments is ON from each image captured at predetermined time intervals,
抽出された前記各セグメントと、記憶部に予め記憶されたセグメントの組み合わせを含む辞書とを比較し、  Comparing each extracted segment with a dictionary containing a combination of segments pre-stored in the storage unit;
前記辞書に存在しないセグメントの組み合わせが抽出されている時間を計測し、  Measure the time when the combination of segments that do not exist in the dictionary is extracted,
計測された時間と所定値との比較結果により、値の切り替わり状態か、故障かを判定する処理をコンピュータに実行させ、  According to the comparison result between the measured time and the predetermined value, the computer is caused to execute a process of determining whether the value is switched or a failure,
前記各セグメントを抽出する処理は、  The process of extracting each segment is as follows:
前記画像から、前記値を含む領域画像を取得し、  An area image including the value is acquired from the image,
前記領域画像内の前記値毎に、前記セグメントに囲まれる第1領域及び第2領域の輝度値を取得し、  For each value in the region image, obtain a luminance value of the first region and the second region surrounded by the segment,
前記複数のセグメントにおける各セグメントの輝度値と、前記第1領域又は前記第2領域の輝度値とに基づき、前記各セグメントがONであるか否かを判定し、  Based on the luminance value of each segment in the plurality of segments and the luminance value of the first region or the second region, it is determined whether or not each segment is ON,
前記複数のセグメントは、7セグメントであり、  The plurality of segments is 7 segments,
前記第1領域及び前記第2領域の輝度値を取得する処理は、  The process of acquiring the luminance values of the first area and the second area is as follows:
前記7セグメントの上部の閉領域を前記第1領域とし、前記7セグメントの下部の閉領域を前記第2領域とするプログラム。  A program in which the closed area above the 7 segments is the first area and the closed area below the 7 segments is the second area.
複数のセグメントを用いて表される値の少なくとも1つが、所定時間毎に撮像された各画像から、ONである各セグメントを抽出する抽出部と、
抽出された前記各セグメントと、記憶部に予め記憶されたセグメントの組み合わせを含む辞書とを比較する比較部と、
前記辞書に存在しないセグメントの組み合わせが抽出されている時間を計測する計測部と、
計測された時間と所定値との比較結果により、値の切り替わり状態か、故障かを判定する判定部と、
を備える情報処理装置。
An extraction unit that extracts each segment in which at least one of the values represented by using a plurality of segments is ON from each image captured at a predetermined time;
A comparison unit that compares each extracted segment with a dictionary that includes a combination of segments stored in advance in the storage unit;
A measuring unit for measuring a time during which a combination of segments not existing in the dictionary is extracted;
A determination unit that determines whether the value is switched or malfunctioned based on a comparison result between the measured time and the predetermined value;
An information processing apparatus comprising:
複数のセグメントを用いて表される値の少なくとも1つが、所定時間毎に撮像された各画像から、ONである各セグメントを抽出し、
抽出された前記各セグメントと、記憶部に予め記憶されたセグメントの組み合わせを含む辞書とを比較し、
前記辞書に存在しないセグメントの組み合わせが抽出されている時間を計測し、
計測された時間と所定値との比較結果により、値の切り替わり状態か、故障かを判定する処理をコンピュータが実行する異常判定方法。
Extracting each segment in which at least one of the values represented using a plurality of segments is ON from each image captured at predetermined time intervals,
Comparing each extracted segment with a dictionary containing a combination of segments pre-stored in the storage unit;
Measure the time when the combination of segments that do not exist in the dictionary is extracted,
An abnormality determination method in which a computer executes a process of determining whether a value is switched or a failure based on a comparison result between a measured time and a predetermined value.
JP2011200043A 2011-09-13 2011-09-13 Program, information processing apparatus and abnormality determination method Expired - Fee Related JP5831069B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011200043A JP5831069B2 (en) 2011-09-13 2011-09-13 Program, information processing apparatus and abnormality determination method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011200043A JP5831069B2 (en) 2011-09-13 2011-09-13 Program, information processing apparatus and abnormality determination method

Publications (2)

Publication Number Publication Date
JP2013061816A JP2013061816A (en) 2013-04-04
JP5831069B2 true JP5831069B2 (en) 2015-12-09

Family

ID=48186431

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011200043A Expired - Fee Related JP5831069B2 (en) 2011-09-13 2011-09-13 Program, information processing apparatus and abnormality determination method

Country Status (1)

Country Link
JP (1) JP5831069B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107449836A (en) * 2016-09-06 2017-12-08 江苏出入境检验检疫局动植物与食品检测中心 The quick discriminating detection method of Manuka honey
JP6901334B2 (en) * 2017-07-04 2021-07-14 中国計器工業株式会社 Optical number reading method and equipment
JP6974128B2 (en) * 2017-11-14 2021-12-01 アズビル株式会社 Segment display reader and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57196291A (en) * 1981-05-28 1982-12-02 Jidou Keisoku Gijutsu Kenkiyuu Digital indication reader
JP3509594B2 (en) * 1998-01-06 2004-03-22 ホーチキ株式会社 Remote tester for fire alarm system
JPH11316794A (en) * 1998-05-06 1999-11-16 Aisin Aw Seimitsu Kk Method for reading and deciding segment information

Also Published As

Publication number Publication date
JP2013061816A (en) 2013-04-04

Similar Documents

Publication Publication Date Title
JP4528850B2 (en) Defect detection apparatus, defect detection method, defect detection program, and computer-readable recording medium recording the program
US8953048B2 (en) Information processing apparatus and control method thereof
EP2905680B1 (en) Information processing apparatus, information processing method, and program
US10789716B2 (en) Image processing apparatus and method of controlling the same and recording medium
CN110503011B (en) Data calibration method, electronic device and non-volatile computer-readable storage medium
JP5831069B2 (en) Program, information processing apparatus and abnormality determination method
US20190172214A1 (en) Measurement method and apparatus
CN112750105B (en) Image abnormal point detection method and device, electronic device and storage medium
JP2021052238A (en) Deposit detection device and deposit detection method
US8655024B2 (en) Displacement detection device and displacement detection method thereof
JP2006098217A (en) Image inspection apparatus, image inspection method, and image inspection program
US20120127326A1 (en) Image optimization system and method for optimizing images
CN115760653B (en) Image correction method, device, equipment and readable storage medium
JP5699871B2 (en) Program, information processing apparatus, and segment extraction method
US20200043443A1 (en) Correction system
JP7223198B1 (en) Meter reading device, meter reading method, and meter reading program
CN113377592B (en) Chip detection method and device, computer readable storage medium and electronic equipment
CN116109817A (en) Identification method and identification device for display screen icon flickering and electronic equipment
JP2009017158A (en) Camera inspection device
JP4947105B2 (en) Image processing apparatus, image processing program, and imaging apparatus
KR20070098263A (en) Compensation apparatus of defected pixel and compensation method of defected pixel
JP7075068B2 (en) measuring device
US8351690B2 (en) System and method for detecting black bars in electronic image
US20150347865A1 (en) Image processing apparatus, image processing method, and medium
JP2015076855A (en) Image-capturing device and method for detecting defective pixel

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140508

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150122

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150127

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150327

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151012

R150 Certificate of patent or registration of utility model

Ref document number: 5831069

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees