JP7387346B2 - Image processing device, its control method, program - Google Patents
Image processing device, its control method, program Download PDFInfo
- Publication number
- JP7387346B2 JP7387346B2 JP2019166873A JP2019166873A JP7387346B2 JP 7387346 B2 JP7387346 B2 JP 7387346B2 JP 2019166873 A JP2019166873 A JP 2019166873A JP 2019166873 A JP2019166873 A JP 2019166873A JP 7387346 B2 JP7387346 B2 JP 7387346B2
- Authority
- JP
- Japan
- Prior art keywords
- decimal point
- detection
- digit
- numerical value
- image processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Character Input (AREA)
- Character Discrimination (AREA)
Description
本発明は、表示装置に表示された数値を読取るための技術に関する。 The present invention relates to a technique for reading numerical values displayed on a display device.
複数セグメントを用いて文字や数字を表現する表示器に表示された数字を認識するための各種技術が知られている。特に、昔から使われている古い機器の測定値などをデジタル化するために、セグメント表示された文字や数字を撮像し、撮像された画像に含まれる文字や数字を認識技術を用いて認識することが考えられている。このような認識を行うための技術として、特許文献1には、横線およびまたは縦線から対象領域を抽出して、その対象領域を含むように数字表示領域を切り出す画像処理装置が開示されている。
Various techniques are known for recognizing numbers displayed on a display device that expresses letters and numbers using multiple segments. In particular, in order to digitize measurements of old equipment that has been used for a long time, characters and numbers displayed in segments are imaged, and the characters and numbers contained in the captured image are recognized using recognition technology. That is what is being considered. As a technique for performing such recognition,
しかしながら、特許文献1に記載の技術では、小数点つきの複数セグメント数字の表示器から数値を読み取る際に、複数セグメント文字の1文字を内包する矩形毎に読み取るため、小数点が含まれていても小数点を正しく検出できないことがあった。
However, with the technology described in
本発明に係る画像処理装置は、表示器に点灯した複数セグメントの組み合わせで示された数値を検出する画像処理装置であって、前記表示器を撮像した画像を取得する取得手段と、取得手段により得た画像における検出範囲を特定する特定手段と、前記検出範囲を桁毎の領域に分割する分割手段と、前記桁毎の領域ごとに、点灯状態から数値を検出する数値検出手段と、前記検出範囲のうち、複数の前記桁毎の領域に跨る領域を対象として点灯状態から小数点を検出する小数点検出手段と、前記小数点検出手段により検出された小数点の位置と、前記桁毎の領域との位置関係とに基づき、前記数値全体における前記小数点の位置を決定する決定手段と、を有する。 An image processing device according to the present invention is an image processing device that detects a numerical value indicated by a combination of a plurality of segments lit on a display, and includes an acquisition means for acquiring an image of the display, and an acquisition means for acquiring an image of the display. a specifying means for specifying a detection range in the obtained image; a dividing means for dividing the detection range into regions for each digit; a numerical value detection means for detecting a numerical value from a lighting state for each region for each digit; A decimal point detection means for detecting a decimal point from a lighting state in an area spanning a plurality of the areas for each digit within the range, and a position of the decimal point detected by the decimal point detection means and a position of the area for each digit. determining means for determining the position of the decimal point in the entire numerical value based on the relationship .
本発明によれば、表示の検出精度を向上させることができる。 According to the present invention, display detection accuracy can be improved.
<第1の実施形態>
本実施形態において小数点つきの複数セグメント数字の表示器から数値を読み取る画像処理装置について説明する。複数セグメントの表示器は、色々な種類があるが、本実施形態では、7つのセグメントの点灯状態で数値を表示する表示器を読み取り対象とする。
<First embodiment>
In this embodiment, an image processing apparatus that reads numerical values from a multi-segment numerical display with a decimal point will be described. There are various types of multi-segment display devices, but in this embodiment, a display device that displays numerical values with seven segments lit is used as a reading target.
なお、本実施形態において、画像処理対象とする画像は非圧縮もしくは解凍済みのグレースケールの8bit深度の画像であるものとする。画像上の座標の原点は左上に存在するものとし、X座標は右方向に行くほど増加し、Y座標は下方向に行くほど増加するものとする。角度は、画像の中心からY座標が同一値でX座標のプラス方向に直線を引いた角度が0度であるものとし、X座標が同一値で、Y座標のマイナス方向に直線を引いた角度が90度。Y座標が同一値で、X座標のマイナス方向に直線を引いた角度が180度。X座標が同一値で、Y座標のプラス方向に直線を引いた角度が270度、であるものとする。以降、7つのセグメントの点灯状態で数値を表示したものを、7セグと記す。また、本発明の一実施形態に係る画像処理装置において、7セグ表示器からの数値読取りを実現するためには、設定モードと運転モードと2つのモードがあるものとする。設定モードでは、7セグ表示器の数値の読取りを実現するための各種設定を行う。運転モードでは、所定の間隔で撮影を行い、設定モードで設定された情報に基づいて、7セグ表示器の撮影された画像データから数値を読み取る。 In this embodiment, it is assumed that the image to be subjected to image processing is an uncompressed or decompressed grayscale 8-bit depth image. It is assumed that the origin of the coordinates on the image exists at the upper left, the X coordinate increases as it goes to the right, and the Y coordinate increases as it goes downward. The angle is assumed to be 0 degrees when a straight line is drawn from the center of the image in the positive direction of the X coordinate with the same Y coordinate value, and the angle when a straight line is drawn in the negative direction of the Y coordinate with the same X coordinate value. is 90 degrees. The Y coordinate is the same value, and the angle of a straight line drawn in the negative direction of the X coordinate is 180 degrees. Assume that the X coordinates have the same value and the angle of a straight line drawn in the positive direction of the Y coordinate is 270 degrees. Hereinafter, the display of numerical values in the lighting state of seven segments will be referred to as 7 segments. Further, in the image processing apparatus according to an embodiment of the present invention, there are two modes, a setting mode and an operation mode, in order to realize numerical reading from a 7-segment display. In the setting mode, various settings are made to read numerical values on the 7-segment display. In the driving mode, images are taken at predetermined intervals, and numerical values are read from the image data taken on the 7-segment display based on the information set in the setting mode.
[システム構成]
図1は、本発明の一実施形態に係る画像処理装置100を含む全体構成図である。
[System configuration]
FIG. 1 is an overall configuration diagram including an
図1において、100は画像処理装置として動作するコンピュータである。コンピュータにおいて所定の制御プログラムを実行することにより以下に説明する画像処理を行い、画像処理装置として機能する。 In FIG. 1, 100 is a computer that operates as an image processing device. By executing a predetermined control program in a computer, the computer performs the image processing described below and functions as an image processing device.
101は画像処理装置100全体の制御を司るCPUであり、各部からの信号や各種プログラムに基づき、表示制御、記録制御、入出力制御、各種画像処理などを行う。なお、CPUは必ずしも1つのハードウェアで構成されている必要はなく、GPUなどを組み合わせた複数のハードウェアが協働して1つの手段として機能してもよい。また、1つのハードウェアが異なる処理を制御することで複数の手段を兼ねてもよい。
A
102はCPU101の動作処理手順(例えばコンピュータの立ち上げ処理や基本入出力処理等のプログラム)を記憶しているROMである。
103はRAMであり、CPU101のメインメモリとして機能する。RAM103には後述の処理を実現するための制御プログラムを含む各種プログラムがハードディスクドライブ105等からロードされCPU101によって実行される。また、RAM103はCPU101が各種処理を実行する際のワークエリアを提供する。
103 is a RAM, which functions as the main memory of the
104はディスプレイでありCPU101の制御下で各種表示を行う。
A
105はハードディスクドライブ(以下、HDD)を示し、アプリケーションプログラムやデータ、ライブラリなどの保存及び読み込み用に用いられる。 A hard disk drive (hereinafter referred to as HDD) 105 is used for storing and reading application programs, data, libraries, and the like.
106はポインティングデバイスやキーボード等の入力装置である。 106 is an input device such as a pointing device or a keyboard.
107は記憶媒体装着ユニット(メディアドライブ)であり、着脱可能な記憶媒体を装着し、デジタルスチルカメラで撮影され記憶されたデータを読み出すことを可能とする。 A storage medium mounting unit (media drive) 107 allows a removable storage medium to be mounted and data captured and stored with a digital still camera to be read out.
108はネットワークインターフェイスであり、通信回線110を介してコンピュータネットワーク111と接続される。このネットワークインターフェイス108により通信可能な機器からデータを送受信する。本実施形態においては、このネットワークインターフェイスを介して撮像装置112と接続し、CPU101が撮像装置112へ撮影指示を行い、撮像装置112から撮影した画像を取得し、HDD105へ記録する。
A
109は上述した各ユニット間を接続するシステムバス(アドレスバス、データバスおよび制御バスからなる)である。
112は撮像装置として動作するデジタルカメラである。通信回路113を介してコンピュータネットワーク111と接続される。
112 is a digital camera that operates as an imaging device. It is connected to the
114は計測対象となるセグメント表示器である。本実施形態においては、温度、圧力、回転数、距離などの物理量を7セグの数字として表示する表示器であるものとする。デジタルカメラ112は、表示器114を定期的に撮影し、グレースケールの画像データを生成する。そして、コンピュータネットワーク111を介して画像処理装置100へ転送する。
114 is a segment display device to be measured. In this embodiment, it is assumed that the display device displays physical quantities such as temperature, pressure, rotation speed, and distance as 7-segment numbers. The
本実施形態の画像処理装置において、処理対象とする画像データは、HDD105に保存されているものとする。
In the image processing apparatus of this embodiment, it is assumed that image data to be processed is stored in the
図2および図3は、本発明の一実施形態に係る画像処理装置のユーザーインターフェイスの一例である。図2、図3は、共に、設定モードにおけるユーザーインターフェイスである。図2および図3を用いて、ユーザーがメーターの値の読み取りを行うための設定方法と表示方法について、説明する。図2において検出領域を設定した後の状態が図3であるものとする。図2と図3で同じ動作をする部材については、番号を併記し、説明する。 2 and 3 are examples of user interfaces of an image processing apparatus according to an embodiment of the present invention. Both FIGS. 2 and 3 are user interfaces in the setting mode. A setting method and display method for a user to read meter values will be explained using FIGS. 2 and 3. Assume that the state after setting the detection area in FIG. 2 is as shown in FIG. 3. Components that perform the same operations in FIGS. 2 and 3 will be described with reference numbers.
201と301は、画像表示エリアである。読取りの対象とする7セグ表示器の画像をユーザーの操作に応じてCPU101がRAM103に読み込み表示する。またユーザーの設定操作を補助する線や検出したエッジ箇所を画像に重畳して表示する。
201 and 301 are image display areas. The
202と302は、撮影ボタンである。ユーザーの押下に応じて、CPU101はネットワークインターフェイス108を介してデジタルカメラ112に撮影指示を行い、撮影画像を取得して、HDD105に記憶する。そして、CPU101が、HDD105からRAM103に読み込み画像表示エリア201に撮影した画像を表示する。
202 and 302 are shooting buttons. In response to the user's press, the
203と303は、ファイル読込みボタンである。ユーザーが押下した場合、CPU101はユーザーからファイル指定操作が行われたものと判定し、一般的なファイルオープンダイアログを表示する。そして、ファイルオープンダイアログでユーザーが指定したファイルをHDD105からRAM103に読み込み画像表示エリア201に表示する。
203 and 303 are file read buttons. If the user presses the button, the
204と304は、検出領域指定ボタンである。ユーザーの押下に応じて、CPU101はユーザーから検出領域の指定開始操作があったものと判定し、画像表示エリア201におけるポインティングデバイス106による操作に応じて、検出領域(検出範囲)指定のための矩形を描画する。検出領域指定後のユーザーインターフェイスを図3に示す。図3における320の矩形で囲まれた領域が検出領域である。
204 and 304 are detection area designation buttons. In response to the user's press, the
205と305は、文字読み取り角度ボックスである。検出領域をユーザーが指定した後に、その矩形の長辺の角度を初期値として表示する。図3における326の読み取り方向を示す矢印の角度が0度に指定されている場合の例である。ユーザーが数値を変更した場合、CPU101はユーザーから変更指示があったものとして、入力値に従って、読み取り方向の矢印326および検出領域320の長辺の角度を変更して描画を更新する。その際、検出領域320は、矩形の中心を基準に回転するものとする。
205 and 305 are character reading angle boxes. After the user specifies the detection area, the angle of the long side of the rectangle is displayed as an initial value. This is an example in which the angle of the
206と306は、輝度閾値ボックスである。検出領域320で数字検出(認識)のための二値化を行う際の輝度閾値を指定するボックスである。初期値は128とし、0から255の範囲の値を受け付けるものとする。ユーザーが数値を変更した場合、CPU101はユーザーから輝度閾値変更指示があったものとして、二値化の閾値を変更する。
206 and 306 are brightness threshold boxes. This is a box for specifying a brightness threshold when performing binarization for number detection (recognition) in the
207と307は、7セグ桁数ボックスである。初期値は4とし、1以上の整数値を受け付けるものとする。そして、検出領域320における文字読み取り角度ボックス205の方向の辺を等分に分割し、その分割した領域を1桁の数字の検出領域とする。ユーザーが数値を変更した場合、CPU101はユーザーから桁数変更指示があったものとして、検出領域320の分割数を変更して表示を更新する。7セグ桁数ボックス207に8が指定された後のユーザーインターフェイスを図3に示す。図3において検出領域320を読取方向の辺を点線321,322,323,324,325に示す通り6等分に分割して表示する。
207 and 307 are 7-segment digit boxes. The initial value is 4, and an integer value of 1 or more is accepted. Then, the side of the
208と308は、セグメント幅閾値ボックスである。初期値は3とし、1以上の200以下の整数値を受け付けるものとする。そして、数字を数値として認識する際に、指定されたピクセル数分連続した画素が二値化の閾値以上であるか否かにより、検出対象のセグメントが点灯状態にあるか否かを判定する。7セグの点灯状態から数字および記号を読み取り、数値に置き換える方法については、後述する。 208 and 308 are segment width threshold boxes. The initial value is 3, and an integer value between 1 and 200 is accepted. Then, when recognizing a number as a numerical value, it is determined whether or not the segment to be detected is in a lighting state based on whether or not a specified number of consecutive pixels are equal to or greater than a binarization threshold. A method of reading numbers and symbols from the lighting state of the 7-segment and replacing them with numerical values will be described later.
209と309は、文字色リストボックスである。明るい背景に暗い文字、暗い背景に明るい文字がリストされる。画像上の検出領域において、輝度閾値ボックス206の値以上の輝度値を数字の認識対象とするか、輝度閾値ボックス206の値未満を数字の認識の対象とするかを切り換える。ユーザーが明るい背景に暗い文字を選択した場合には、輝度閾値ボックス206の値未満を数字の認識対象とする。ユーザーが暗い背景に明るい文字を選択した場合には、輝度閾値ボックス206の値以上を数字の認識対象とする。検出領域320において、輝度閾値ボックス206と文字色リストボックス209で数字の認識対象となる二値化後の輝度の値が1の画素をグレースケールの画像上に着色して重畳して表示する。その状態を図3の327に示す。
209 and 309 are text color list boxes. Lists dark text on a light background and light text on a dark background. In the detection area on the image, it is switched whether the brightness value greater than or equal to the value in the
210と310は、小数点処理設定チェックボックスである。出力値に対して小数点に関わる処理をするかしないかを指定する。初期値はOFFとし、OFFの場合には後述の小数点に関わる部材211から215乃至311から315はDisableにし、ユーザー操作を受け付けないものとする。ユーザーの操作により、ONになった場合には、CPU101は、出力値に小数点が含まれる可能性があるものと判定し、部材211から215乃至311から315をEnableにし、ユーザー操作を受け付ける。OFFの場合には、CPU101は、出力値に小数点はないものとして、出力値は整数値のみとする。
210 and 310 are decimal point processing setting check boxes. Specify whether or not to perform processing related to the decimal point on the output value. The initial value is OFF, and when it is OFF,
211と311は、小数点以下の桁数選択ラジオボタンである。初期値はOFFとする。ユーザーがONにした場合には、CPU101は小数点以下の桁数があるものと判定し、後述する小数点以下桁数ボックス213で指定された数値分小数点以下の桁数があるものとして、出力値に小数点を付与する。そして、後述の小数点検出ラジオボタン212もしくは312をOFFにする。
211 and 311 are radio buttons for selecting the number of digits below the decimal point. The initial value is OFF. When the user turns it on, the
212と312は、小数点検出ラジオボタンである。初期値はONとする。ONの場合、CPU101は小数点の検出処理を行う必要があるものと判定し、後述の小数点検出処理を行う。
212 and 312 are decimal point detection radio buttons. The initial value is ON. If ON, the
213と313は、小数点以下桁数ボックスである。初期値は1とし、1から7セグ桁数ボックス207もしくは307以下の整数値を受け付けるものとする。7セグ桁数ボックス207もしくは307にて6が指定されており、小数点以下桁数が2である場合に、必ず下2桁目と3桁目の間に小数点があるものとして、出力値を算出する。6桁の値が168753と検出した場合、1687.53とする。6桁の値が168750である場合、6桁の値が1687.5とする。6桁の値が上位2桁は検出なしで、3桁目から8753と検出した場合、87.53とする。
213 and 313 are decimal places boxes. The initial value is 1, and an integer value of 1 to 7 segment
214と314は、小数点サイズ指定手段の一例である、小数点の最小サイズボックスである。初期値は40とし、1以上最大サイズ未満の整数値を受け付けるものとする。 214 and 314 are minimum size boxes for decimal points, which are examples of decimal point size designation means. The initial value is 40, and an integer value greater than or equal to 1 and less than the maximum size is accepted.
215と315は、小数点の最大サイズボックスである。初期値は300とし、最小サイズより大きく300以下の整数値を受け付けるものとする。そして、小数点の画像上のサイズが最小サイズと最大サイズの範囲のピクセル数分あるものとして、後述の数値検出処理において、小数点の検出を行う。 215 and 315 are the maximum size boxes for the decimal point. The initial value is 300, and an integer value greater than the minimum size and less than or equal to 300 is accepted. Then, the decimal point is detected in the numerical value detection process described later, assuming that the size of the decimal point on the image is equal to the number of pixels in the range between the minimum size and the maximum size.
216と316は、設定画面終了ボタンである。ユーザーが押下した場合には、CPU101がユーザーから設定に関する終了指示があったと判定し、一連の設定処理を終了する。それと同時に設定モードから運転モードに切り替えたものとする。
216 and 316 are setting screen exit buttons. If the user presses the button, the
217と317は、通知閾値ボックスである。初期値を1000とし、ユーザーから数値入力があった場合には、CPU101は通知する閾値の指定がユーザーからあったものと判定し、RAM103にその値を記憶する。
217 and 317 are notification threshold boxes. The initial value is 1000, and when a numerical value is input by the user, the
328は、結果出力領域である。設定画面における各種設定に応じて検出した結果を画像表示エリア301に表示する。305から315までの各種設定部材の設定内容に従って後述の数値検出処理を実行し、検出に成功した場合には、検出結果の数値を表示する。
328 is a result output area. The detected results are displayed in the
[数値検出処理]
図4は、本発明の一実施形態に係る小数点つきの複数セグメント数字の表示器から数値を読み取る工程を示すフローチャート図である。なお、図4の処理は、CPU101がRAM103に格納された制御プログラムを実行することにより実行される。設定モードで画像読み込みおよび検出領域320の指定が完了した後に、初期値の設定およびユーザーが各種部材により設定変更をした都度、実行されるものとする。また、運転モードに切り替えた場合にも実行されるものとする。図2と図3における共通の部材については、図3に付した番号で説明する。
[Numeric value detection processing]
FIG. 4 is a flowchart diagram illustrating the process of reading a numeric value from a multi-segment numeric display with decimal point according to one embodiment of the present invention. Note that the process in FIG. 4 is executed by the
ステップS400にて、CPU101は、検出領域320内のグレースケールの画像データをRAM103へ読み込む。
In step S400,
ステップS401にて、CPU101は、図2乃至図3にて説明したユーザーインターフェイスにおける各種設定をRAM103へ読み込む。
In step S401, the
ステップS402にて、CPU101は、輝度閾値ボックス306の値および文字色リストボックス309の設定に従いRAM103に保持した画像データに対して二値化処理を行い、数値検出対象画像を生成する。そしてRAM103に保持する。
In step S402, the
ステップS403にて、CPU101は、桁毎に数字とマイナス記号を読み取る処理を実行するためのカウンタiに1を代入する。
In step S403, the
ステップS404にて、CPU101は、カウンタiが桁数以下か否かを判定する。小さいと判定した場合には、ステップS407へと進む。カウンタiが桁数より大きいと判定した場合には、桁数毎の数字マイナス記号読み取り処理が完了したものとして、ステップS410へと進む。
In step S404, the
ステップS405にて、CPU101は、ステップS403にて二値化した数値検出対象画像を読取方向に桁数で分割する。数値検出対象の画像データの幅がimgW、高さがimgH、読取方向はx軸のプラス方向、桁数がNumDigitsとしてi桁目の数値検出対象画像における左上の座標(sepX0[i],sepY0[i])を式1に示す。右下の座標(sepX1[i],sepY1[i])を式2に示す。中心座標(sepCenterX[i],sepCenterY[i])を式3に示す。
sepX0[i]=(imgW÷NumDigits)×(i-1)
sepY0[i]=0 ….式1
sepX1[i]=(imgW÷NumDigits)×(i)
sepY1[i]=imgH ….式2
sepCenterX[i]= (sepX0[i]+ sepX1[i])÷2
sepCenterY[i]= (sepY0[i]+ sepY1[i])÷2 ….式3
In step S405, the
sepX0[i]=(imgW÷NumDigits)×(i-1)
sepY0[i]=0….
sepX1[i]=(imgW÷NumDigits)×(i)
sepY1[i]=imgH….
sepCenterX[i] = (sepX0[i]+sepX1[i])÷2
sepCenterY[i] = (sepY0[i]+sepY1[i])÷2...
桁毎に分割した画像にカウンタiを付して、RAM103に保持する。このとき数値検出対象画像も破棄せずにRAM103に保持し続ける。
A counter i is attached to the image divided into each digit and the image is stored in the
ステップS406にて、CPU101は、数値検出対象画像における桁毎の分割領域の中心座標(sepCenterX[i],sepCenterY[i])をRAM103に記憶する。
In step S406, the
ステップS407にて、CPU101は、i桁目の分割画像データから数字とマイナス記号を読み取る。数字マイナス記号読み取り処理は、図5、図6を用いて後述する。
In step S407, the
ステップS420にて、CPU101は、読み取りが成功したか否かを判定する。読み取りに成功した場合には、ステップS408へと進む。失敗した場合には、ステップS419へと進む。
In step S420, the
ステップS408にて、CPU101は、桁毎の結果を保持する配列のi番目に検出結果を代入し、RAM103に保持する。
In step S408, the
ステップS409にて、CPU101は、カウンタiをインクリメントし、ステップS404へと戻る。
In step S409, the
ステップS410にて、CPU101は、小数点設定がONになっているか否かを判定する。小数点処理設定チェックボックス310がONの場合には、CPU101は小数点設定がONであるものと判定し、ステップS411へと進む。小数点処理設定チェックボックス310がOFFの場合には、CPU101は小数点設定がONではないと判定し、ステップS421へと進む。
In step S410, the
ステップS411にて、CPU101は、小数点検出をするか否かを判定する。小数点検出ラジオボタン312がONの場合には、CPU101は小数点検出するものと判定し、ステップS412へと進む。小数点検出ラジオボタン312がOFFの場合には、CPU101は小数点検出をしないものと判定し、ステップS416へと進む。
In step S411, the
ステップS412にて、CPU101は、ステップS402にて二値化した数値検出対象画像を桁毎に分割せずに小数点検出を行う。小数点検出処理は図7を用いて後述する。小数点検出処理の出力値は、小数点の検出数と検出領域320における小数点の中心のXY座標とする。
In step S412, the
ステップS413にて、CPU101は、小数点の検出数が複数だったか否かを判定する。小数点検出数が2以上であった場合には、CPU101は小数点検出が正常に実行されなかったものとして、ステップS419へと進む。
In step S413, the
ステップS414にて、CPU101は、小数点検出数が1だったか否かを判定する。小数点検出が1であった場合には、ステップS415へと進む。小数点検出が0であった場合には、CPU101は小数点の検出がなかったものと判定しステップS417へと進む。
In step S414, the
ステップS415にて、CPU101は、小数点以下の桁数を算出する。算出方法は図8を用いて後述する。
In step S415, the
ステップS416にて、CPU101は、小数点以下桁数ボックス313の値を小数点以下の桁数として読み込む。
In step S416, the
ステップS421にて、CPU101は、小数点以下の桁数を0とする。
In step S421, the
ステップS417にて、CPU101は、ステップS408にて検出した各桁の数値およびマイナス記号を並べた結果、数値として成り立つか否かを判定する。マイナス記号が検出された場合には先頭に1つのみであること。図6にて後述するNULLの桁があったとして、それが桁の先頭か末尾のみに連続していること。を条件とする。数値として成り立つ場合には、ステップS418へと進む。数値として成り立たない場合には、ステップS419へと進む。
In step S417, the
ステップS418にて、CPU101は、数値に変換する。NULLの桁に関しては、0として、下1桁目の数値には1、下2桁目の数値には10、下3桁目の数値には100という風に、10ずつ掛けた値を検出した桁数分掛けて、合算する。その後、小数点以下の桁数に応じて割る。小数点以下の桁数が1であれば、10で割る。小数点以下の桁数が2であれば、100で割るという風に10ずつ掛けた値で割る。小数点以下の桁数が0の場合には、割り算を行わず、整数値のままとする。
In step S418, the
ステップS419にて、CPU101は、数値読み取りに失敗したものとし、結果をNGとする。そして、一連の読み取り処理を終了する。
In step S419, the
ステップS419にて、CPU101は、数値読み取りに成功したものとし、ステップS418の数値を出力値とすると共に、結果をOKとする。そして、一連の読み取り処理を終了する。
In step S419, the
[数字マイナス記号読み取り処理]
図5は、本発明の一実施形態に係る7セグの一桁を示す図である。本実施形態において、検出対象とする画像データは、図4のステップS405でRAM103に保持した桁毎に分割した二値化済みの画像とする。二値化済みのため、画像データを構成する画素の輝度の値は、0か1のどちらかの値となっているものとする。
[Number minus sign reading process]
FIG. 5 is a diagram showing one digit of 7 segments according to an embodiment of the present invention. In this embodiment, the image data to be detected is a binarized image divided into digits stored in the
図6は、本発明の一実施形態に係る、検出されたセグメントの点灯状況及び消灯状況と対応する出力値を示すテーブルの概念図である。図6はRAM103に保持されているものとする。
FIG. 6 is a conceptual diagram of a table showing output values corresponding to detected lighting statuses and extinguishing statuses of segments, according to an embodiment of the present invention. It is assumed that FIG. 6 is held in the
図5および図6を用いて、各セグメントの点灯と消灯を検出する方法と、その結果から出力値を得る方法を説明する。図2と図3における共通の部材については、図3に付した番号で説明する。 A method of detecting lighting and extinction of each segment and a method of obtaining an output value from the result will be explained using FIGS. 5 and 6. Common members in FIGS. 2 and 3 will be explained using the numbers assigned to FIG. 3.
図5において、501,502,503,504,505,506,507は7セグを構成するセグメントである。以降、501~507のセグメントをそれぞれsegNo.1~segNo.7、とする。
In FIG. 5, 501, 502, 503, 504, 505, 506, and 507 are segments forming 7 segments. Thereafter,
508は、一桁の画像データを構成する上辺を二等分に分割する点である。 508 is a point that divides the upper side of one-digit image data into two equal parts.
509と510は、一桁の画像データを構成する右辺を三等分に分割する点である。上側を509、下側を510とする。
511は、一桁の画像データを構成する下辺を二等分に分割する点である。 511 is a point that divides the lower side of one-digit image data into two equal parts.
512と513は、一桁の画像データを構成する右辺を三等分に分割する点である。上側を513、下側を512とする。
514は、点508と点511を結ぶ直線と、点513と点509を結ぶ直線の交点である。
514 is the intersection of the straight
515は、点508と点511を結ぶ直線と、点512と点510を結ぶ直線の交点である。
515 is the intersection of the straight line connecting the
segNo.1が点灯しているか消灯しているかを判別する場合、CPU101は点509から点514へと画素の値を順次読み込み1の値が連続して、セグメント幅閾値ボックス308で設定された個数以上出現するか否かを判定する。セグメント幅閾値ボックス308で設定された個数以上出現すると判定した場合には、CPU101はsegNo.1が点灯しているものとして、segNo.1と関連付けてRAM103に記憶する。セグメント幅閾値ボックス308で設定された個数未満であった場合には、segNo.1が消灯しているものとして、segNo.1と関連付けてRAM103に記憶する。
segNo. When determining whether 1 is on or off, the
同様に、segNo.2については点514から点515へ、segNo.3については点510から点515へ、segNo.4については点511から点515へ、segNo.5については点512から点515へ、segNo.6については点513から点514へ、segNo.7については点508から点514へ、画素の値を順次読み込み前述の方法で、点灯しているか否かを判定し、その結果をsegNo.と関連付けてRAM103に記憶する。
Similarly, segNo. 2, from
601は、テーブルのデータを一意に特定するための管理番号列である。602は、点灯状態を示す図である。 601 is a management number string for uniquely identifying table data. 602 is a diagram showing a lighting state.
603から609は、segNo毎の点灯条件を示す列である。603はsegNo.1に、604はsegNo.2に、605はsegNo.3に、606はsegNo.4に、607はsegNo.5に、608はsegNo.6に、609はsegNo.7に、対応する。 603 to 609 are columns indicating lighting conditions for each segNo. 603 is segNo. 1, 604 is segNo. 2, 605 is segNo. 3, 606 is segNo. 4, 607 is segNo. 5, 608 is segNo. 6, 609 is segNo. Corresponds to 7.
610は、出力値の列である。 610 is a column of output values.
611から625までは、各セグメントの点灯条件と対応する出力値を示す行である。
segNo.1からsegNo.7まですべてONである場合には、622が一致する行であり、その出力値は8となる。 segNo. 1 to segNo. If all rows up to 7 are ON, 622 is the matching row and its output value is 8.
segNo2のみがONであり、他のセグメントが全てOFFの場合には、624が一致する行であり、その出力値は、-(マイナス)となる。 If only segNo. 2 is ON and all other segments are OFF, 624 is the matching row, and its output value is - (minus).
CPU101は図4のステップS407において、図5の検出方法を用いて各セグメントの点灯結果をRAM103に保持する。そして、点灯結果と一致する点灯条件の行を図6のテーブルを用いて探索する。そして、一致する行があった場合には、その行の出力値列610の値を数字マイナス記号読み取り結果としてRAM103に保持する。見つからなかった場合には、読み取り失敗として、RAM103に保持する。
In step S407 of FIG. 4, the
[小数点検出処理]
図7は、本発明の一実施形態に係る小数点読み取り範囲を示す図である。図4のステップS412における小数点の検出方法について図7を用いて説明する。本実施形態において、検出対象とする画像データは、図4のステップS402でRAM103に保持した検出領域320の二値化済みの画像とする。二値化済みのため、画像データを構成する画素の輝度の値は、0か1のどちらかの値となっているものとする。
[Decimal point detection processing]
FIG. 7 is a diagram showing a decimal point reading range according to an embodiment of the present invention. The method for detecting the decimal point in step S412 in FIG. 4 will be explained using FIG. 7. In this embodiment, the image data to be detected is the binarized image of the
700、701、702、703の頂点で構成される二重線の矩形は、小数点読み取り領域である。本実施形態において、検出領域320の下部三分の一の領域であるものとする。
The double-lined rectangle formed by the
ステップS412において、CPU101は、小数点読み取り領域を700、701方向から読み取り方向へと画素値を読み込む。そして小数点の最小サイズボックス314と小数点の最大サイズボックス315で指定されたピクセル数分隣り合う画素が連続して1であり、且つ、形状が円に近似している箇所を探索する。円に近似しているかは、連続して1である箇所の幅と高さの比率が、1:0.8~1.2の範囲に含まれるか否かにより判定を行う。探索した結果、該当箇所が見つかった場合、中心となる点のx座標y座標をRAM103に保持する。そして、702、703まで探索した結果、該当箇所が複数ある場合、その個数と対応するx座標y座標を全てRAM103に保持する。そして、ステップS413以降の処理にその結果を利用する。
In step S412, the
[小数点の位置および小数点以下の桁数算出処理]
図8は、本発明の一実施形態に係る小数点の位置および小数点以下の桁数を算出する工程を示すフローチャート図である。
[Decimal point position and number of digits below the decimal point calculation process]
FIG. 8 is a flowchart showing the process of calculating the position of the decimal point and the number of digits to the right of the decimal point according to an embodiment of the present invention.
本実施形態において、読み取り方向の矢印326がx座標のプラス方向と一致しているものとして、説明を行う。
In this embodiment, the explanation will be given assuming that the
ステップS801にて、CPU101は、小数点の入る桁の位置を探索するためのカウンタiに1を代入する。
In step S801, the
ステップS802にて、CPU101は、小数点の中心座標xをpXに代入する。
In step S802, the
ステップS803にて、CPU101は、i桁目の分割領域の中心座標よりpXの値が小さいか否かを判定する。小さいと判定した場合、CPU101は、i桁目とi-1桁目の間に小数点が入るものとして、ステップS807へと進む。
In step S803, the
ステップS804にて、CPU101は、カウンタiが桁数未満の値であるか否かを判定する。カウンタiが桁数未満の場合には、ステップS805へと進む。カウンタiが桁数以上の場合には、CPU101は、小数点が一番末尾の桁の右につくものと判定し、ステップS806へと進む。
In step S804, the
ステップS805にて、CPU101は、i桁目の分割領域の中心座標とi+1桁目の分割領域の中心座標の間にpXが入るかを判定する。入ると判定した場合には、ステップS806へと進む。入らないと判定した場合には、ステップS808へと進む。
In step S805, the
ステップS806にて、CPU101は、小数点の桁の位置を保持するnにiを代入する。小数点の桁の位置は、nとn+1の桁数の間であることを示す。
In step S806, the
ステップS807にて、CPU101は、nに0を代入する。この場合、小数点の桁の位置は、1桁目の数値の左側、つまり最上位の桁の前にあることになる。
In step S807, the
ステップS808にて、CPU101は、カウンタiをインクリメントする。そして、ステップS804へと戻る。
In step S808, the
ステップS809にて、CPU101は、小数点以下の桁数を算出する。7セグ桁数ボックス307で指定された桁数がNumDigitsとして、小数点以下の桁数NumDeciを式4に示す。
NumDeci = NumDigits - n ….式4
In step S809, the
NumDeci = NumDigits - n….
[運転時の数値読み取り方法]
図9は、本発明の一実施形態に係る画像処理装置において、運転時の複数セグメント数字の表示器から数値を読み取る工程を示すフローチャート図である。なお、図9の処理は、CPU101がRAM103に格納された制御プログラムを実行することにより実行される。図2および図3は、本実施形態の画像処理装置における設定モードにおけるユーザーインターフェイスを説明した。対して、図9の処理は、運転モードにおける処理である。設定時と同じ位置から計測対象とする複数セグメント数字の表示器を定期的に撮影し、その都度、表示器から値を読み取る。そして、読み取った値を随時HDD105に記録したり、ユーザーが指定した閾値以上の値の場合に、ユーザーに通知したりする。
[How to read numerical values during operation]
FIG. 9 is a flowchart showing a process of reading numerical values from a multi-segment numerical display during operation in the image processing apparatus according to an embodiment of the present invention. Note that the process in FIG. 9 is executed by the
ステップS901にて、CPU101は、ユーザーから読取開始操作があったか否かを判定する。読取開始操作は、設定画面終了ボタン316の押下であるものとする。
In step S901, the
ステップS902にて、CPU101は、通信回線110を介してコンピュータネットワーク111の先のデジタルカメラ112に撮影指示を行う。
In step S902, the
ステップS903にて、CPU101は、デジタルカメラ112にて撮影された画像データを、通信回線110を介して取得し、HDD105に記憶する。
In step S903, the
ステップS904にて、CPU101は、数値を読み取り、結果をRAM103に保持する。値の読み取り方法は、図4から図8までで説明した方法である。
In step S904, the
ステップS905にて、CPU101は、読み取り成功したか否かを判定する。読み取りに成功した場合には、ステップS906へと進む。読み取りに失敗した場合には、ステップS910へと進む。
In step S905, the
ステップS906にて、CPU101は、通知閾値ボックス317で指定された値以上か否かを判定する。通知閾値ボックス317で指定された値以上の場合には、通知が必要な値を表示器が指していると判定し、ステップS907へと進む。通知閾値ボックス317で指定された値未満の場合には、通知は不要と判定し、ステップS909へと進む。
In step S906, the
ステップS907にて、CPU101は、ユーザーに通知する。通知とは、ディスプレイ104への警告ダイアログの表示である。警告ダイアログには、「閾値外の値が検出されました。読取を継続しますか?終了しますか?」というメッセージとともに継続ボタンと終了ボタンを表示する。また、警告ダイアログの下に測定対象となった画像に重畳して、結果出力領域328に読み取り結果を表示するものとする。
In step S907, the
ステップS908にて、CPU101は、ユーザー操作があるか判定する。ユーザー操作とは警告ダイアログの継続ボタンもしくは終了ボタン押下とする。ユーザーによるボタン操作があった場合には、ステップS909へと進む。
In step S908, the
ステップS909にて、CPU101は、ユーザーから終了操作があるか否かを判定する。終了操作とは、ステップS907もしくはステップS910における警告ダイアログ内の終了ボタン押下である。終了ボタンが押下された場合には、CPU101はユーザーから終了操作があったものと判定し、表示器読み取りの一連の処理を終了し、設定モードへと移行する。終了操作がないと判定した場合には、ステップS902へと戻る。
In step S909, the
ステップS910にて、CPU101は、CPU101は、ユーザーに通知する。通知とは、ディスプレイ104への警告ダイアログの表示である。警告ダイアログには、正常に値読取ができませんでした。読取を継続しますか?終了しますか?というメッセージとともに継続ボタンと終了ボタンを表示する。
In step S910, the
ステップS911にて、CPU101は、ユーザー操作があるか判定する。ユーザー操作とは警告ダイアログの継続ボタンもしくは終了ボタン押下とする。ユーザーによるボタン操作があった場合には、ステップS909へと進む。
In step S911, the
尚、本実施形態の画像処理装置において、運転モードにおいて、数値読み取りが失敗した場合に、計測を中断し、警告を表示したが、警告を表示せずに再度撮影指示を行い、計測を継続してもよい。用途に応じては、計測と値の記録を中断しない方がよいからである。 In addition, in the image processing device of this embodiment, when numerical reading fails in the operation mode, measurement is interrupted and a warning is displayed, but the imaging instruction is issued again without displaying the warning and measurement is continued. You can. This is because depending on the application, it is better not to interrupt measurement and recording of values.
尚、本実施形態の画像処理装置において、小数点の検出を検出領域320の下部三分の一の領域としたが、検出領域全体としても良いし、小数点の表示範囲が下部の四分の一乃至五分の一に含まれるようであれば、その範囲にしてもよい。小数点の検出領域を少なくするほどに検出にかかる時間を短くしたり、ノイズを拾いにくくしたり、することが可能となる。また、上部に描画されることのある桁区切りのカンマを、小数点として誤検出することを防ぐことができる。
In the image processing apparatus of this embodiment, the decimal point is detected in the lower third of the
尚、本実施形態の画像処理装置において、7セグの表示器を処理の対象として説明をしたが、セグメントの数が異なっても適用可能である。この場合は、図5および図6における、各セグメントの点灯と消灯を検出する方法と出力値を対応付けするテーブルを、検出するセグメントの位置および本数に対応すればよい。 Although the image processing apparatus of this embodiment has been described using a 7-segment display as a processing target, the present invention is applicable even if the number of segments is different. In this case, the table shown in FIGS. 5 and 6 that associates the method of detecting lighting and unlighting of each segment with the output value may correspond to the position and number of segments to be detected.
尚、本実施形態の画像処理装置において、縦のセグメントの傾きがない7セグの表示器を処理の対象として説明をしたが、傾いていても桁区切りの領域を縦のセグメントの傾きと同じ角度で傾けて読み取れば、数値の読み取りは可能である。また小数点の入る桁の位置も桁毎の中心座標と小数点を検出した位置の中心座標との比較により決定するため、傾きによらず適切な位置となる。 Furthermore, in the image processing apparatus of this embodiment, a 7-segment display with no tilted vertical segments has been described as a processing target. It is possible to read numerical values by tilting the screen. Furthermore, since the position of the digit where the decimal point is placed is determined by comparing the center coordinates of each digit with the center coordinates of the position where the decimal point is detected, the position is appropriate regardless of the inclination.
尚、本実施形態の画像処理装置において、円に近似しているかは、連続して1である箇所の画像上の幅と高さの比率が、1:0.8~1.2の範囲に含まれるか否かにより判定を行った。これに対し、表示器における小数点の形状が円であれば、小数点検出領域において円の形状で探索し、小数点を検出してもよい。小数点の形状がカンマである場合には、小数点検出領域においてカンマの形状で探索し、小数点を検出してもよい。 In the image processing device of this embodiment, whether the approximation to a circle is determined by determining whether the width and height ratio of consecutive 1 points on the image is in the range of 1:0.8 to 1.2. Judgment was made based on whether it was included or not. On the other hand, if the shape of the decimal point on the display is a circle, the decimal point may be detected by searching in the shape of a circle in the decimal point detection area. If the shape of the decimal point is a comma, the decimal point may be detected by searching the decimal point detection area in the shape of a comma.
尚、本実施形態の画像処理装置において、検出領域320をユーザーの指定した座標により決定したが、場所を特定するためのマークを検出し、そのマークからの相対的な位置で検出領域を変更してもよい。そうすることにより、表示器と撮像装置の相対的な位置がずれても被写体像上に表示器とマークがあれば、補正することが可能となる。
In the image processing device of this embodiment, the
尚、本実施形態の画像処理装置において、小数点の個数による数値としての妥当性の検証と、数字とマイナス記号の相対的な位置関係による数値としての妥当性の検証を異なるステップで行った。これに対し、読み取った数字とマイナス記号と小数点を全て並べて妥当性の検証を行ってもよい。文字を数値に変換する既存の機能があったならば、その入力として数字とマイナス記号と小数点を入力し、数値変換エラーとなるか否かで判定してもよい。処理が簡素化したり高速化したりする可能性がある。 In the image processing apparatus of this embodiment, the validity of the numerical value is verified by the number of decimal points, and the validity of the numerical value by the relative positional relationship between the number and the minus sign is verified in different steps. On the other hand, the validity may be verified by arranging all the read numbers, minus signs, and decimal points. If there is an existing function that converts characters into numerical values, a number, a minus sign, and a decimal point may be input as input, and the determination can be made based on whether or not a numerical value conversion error occurs. Processing may be simplified or speeded up.
以上説明した通り、本実施形態の画像処理装置によれば、小数点の検出数に応じて数値として妥当か否かを判定するため、誤検出を防ぐことができる。 As described above, according to the image processing apparatus of this embodiment, it is determined whether or not a numerical value is valid according to the number of detected decimal points, so that false detection can be prevented.
以上説明した通り、本実施形態の画像処理装置によれば、小数点の画像上のサイズの範囲を指定し、前記サイズの条件にあった場合にのみ小数点として検出するため、ノイズによる誤検出を防ぐことができる。 As explained above, according to the image processing device of the present embodiment, the size range of the decimal point on the image is specified and the decimal point is detected only when the size condition is met, thereby preventing false detection due to noise. be able to.
以上説明した通り、本実施形態の画像処理装置によれば、読み取った数値、マイナス記号の相対的な位置関係から、数値として妥当か否かを判定するため、誤検出を防ぐことができる。 As described above, according to the image processing apparatus of this embodiment, it is determined whether or not the numerical value is valid based on the relative positional relationship between the read numerical value and the minus sign, so that false detection can be prevented.
以上説明した通り、本実施形態の画像処理装置によれば、小数点を桁の末尾に検出した場合には、整数値として、小数点を桁の先頭に検出した場合には、1未満の値として数値を出力することができる。 As explained above, according to the image processing apparatus of this embodiment, when the decimal point is detected at the end of a digit, the value is treated as an integer value, and when the decimal point is detected at the beginning of the digit, the value is treated as a value less than 1. can be output.
以上説明した通り、本実施形態の画像処理装置によれば、小数点を検出しなかった場合に、読み取り結果を整数値として出力することができる。 As described above, according to the image processing apparatus of this embodiment, when a decimal point is not detected, the reading result can be output as an integer value.
以上説明した通り、本実施形態の画像処理装置によれば、セグメント幅閾値ボックス308においてセグメントの幅を指定するため、太いセグメントでも細いセグメントでもユーザー操作に従って検出が可能となる。
As described above, according to the image processing apparatus of this embodiment, since the width of the segment is specified in the segment
以上説明した通り、本実施形態の画像処理装置によれば、上位の桁が点灯していない場合、下位の桁が0である場合、上位にマイナス記号が付与されている場合でも、適切な数値を読み取ることが可能となる。 As explained above, according to the image processing apparatus of the present embodiment, even if the upper digit is not lit, the lower digit is 0, or the upper digit is given a minus sign, an appropriate value is displayed. It becomes possible to read.
以上説明した通り、本実施形態の画像処理装置によれば、桁毎に分割された領域で数値やマイナス記号を読み取ると共に、桁毎に分割しない領域で小数点を検出する。したがって、小数点が隣り合った桁毎の分割領域両方にまたがっていたとしても、重複した検出や検出漏れを防ぐことができる。 As described above, according to the image processing apparatus of this embodiment, numerical values and minus signs are read in areas divided into digits, and decimal points are detected in areas that are not divided into digits. Therefore, even if the decimal point straddles both divided regions of adjacent digits, duplicate detections and missed detections can be prevented.
以上説明した通り、本実施形態の画像処理装置によれば、小数点つきの複数セグメント数字の表示器から数値を読み取る際に、小数点の読み取りを可能にし、誤認識を軽減できるようになる。 As described above, according to the image processing device of the present embodiment, when reading a numerical value from a multi-segment number display with a decimal point, it is possible to read the decimal point and reduce misrecognition.
以上、本発明をその好適な実施形態に基づいて詳述してきたが、本発明はこれら特定の実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。上述の実施形態の一部を適宜組み合わせてもよい。 Although the present invention has been described above in detail based on its preferred embodiments, the present invention is not limited to these specific embodiments, and the present invention may take various forms without departing from the gist of the present invention. included. Some of the embodiments described above may be combined as appropriate.
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。 Further, the present invention can also be realized by executing the following processing. That is, the software (program) that realizes the functions of the embodiments described above is supplied to a system or device via a network or various storage media, and the computer (or CPU, MPU, etc.) of the system or device reads the program. This is the process to be executed.
Claims (9)
前記表示器を撮像した画像を取得する取得手段と、
取得手段により得た画像における検出範囲を特定する特定手段と、
前記検出範囲を桁毎の領域に分割する分割手段と、
前記桁毎の領域ごとに、点灯状態から数値を検出する数値検出手段と、
前記検出範囲のうち、複数の前記桁毎の領域に跨る領域を対象として点灯状態から小数点を検出する小数点検出手段と、
前記小数点検出手段により検出された小数点の位置と、前記桁毎の領域との位置関係とに基づき、前記数値全体における前記小数点の位置を決定する決定手段と、
を有する画像処理装置。 An image processing device that detects a numerical value indicated by a combination of multiple segments lit on a display,
acquisition means for acquiring an image of the display;
identification means for identifying a detection range in the image obtained by the acquisition means;
dividing means for dividing the detection range into areas for each digit;
Numerical value detection means for detecting a numerical value from a lighting state for each area of each digit;
decimal point detection means for detecting a decimal point from a lighting state in an area spanning a plurality of digit-based areas within the detection range;
determining means for determining the position of the decimal point in the entire numerical value based on the position of the decimal point detected by the decimal point detecting means and the positional relationship between the area for each digit;
An image processing device having:
前記小数点検出手段は、前記小数点サイズ指定手段において指定されたサイズに応じて、前記小数点の検出を制御することを特徴とする請求項1乃至5のいずれか1項に記載の画像処理装置。 further comprising decimal point size designation means for designating the size of the decimal point on the image;
6. The image processing apparatus according to claim 1, wherein the decimal point detection means controls detection of the decimal point according to the size specified by the decimal point size specification means.
前記表示器を撮像した画像を取得する取得工程と、
取得工程で得た画像における検出範囲を特定する特定工程と、
前記検出範囲を桁毎の領域に分割する分割工程と、
前記桁毎の領域ごとに、点灯状態から数値を検出する数値検出工程と、
前記検出範囲のうち、複数の前記桁毎の領域に跨る領域を対象として点灯状態から小数点を検出する小数点検出工程と、
前記小数点検出工程で検出された小数点の位置と、前記桁毎の領域との位置関係とに基づき、前記数値全体における前記小数点の位置を決定する決定工程と、
を有する制御方法。 A method for controlling an image processing device that detects a numerical value indicated by a combination of a plurality of segments lit on a display, the method comprising:
an acquisition step of acquiring an image of the display;
an identification step of identifying a detection range in the image obtained in the acquisition step;
a dividing step of dividing the detection range into areas for each digit;
a numerical value detection step of detecting a numerical value from a lighting state for each area of each digit;
A decimal point detection step of detecting a decimal point from a lighting state in a region spanning a plurality of digit regions within the detection range ;
a determining step of determining the position of the decimal point in the entire numerical value based on the position of the decimal point detected in the decimal point detection step and the positional relationship with the area for each digit;
A control method having
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019166873A JP7387346B2 (en) | 2019-09-13 | 2019-09-13 | Image processing device, its control method, program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019166873A JP7387346B2 (en) | 2019-09-13 | 2019-09-13 | Image processing device, its control method, program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2021043836A JP2021043836A (en) | 2021-03-18 |
| JP7387346B2 true JP7387346B2 (en) | 2023-11-28 |
Family
ID=74863385
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2019166873A Active JP7387346B2 (en) | 2019-09-13 | 2019-09-13 | Image processing device, its control method, program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7387346B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2023129943A (en) * | 2022-03-07 | 2023-09-20 | 日鉄ソリューションズ株式会社 | Information processing system, information processing device, information processing method, and program |
| CN114998887B (en) * | 2022-08-08 | 2022-10-11 | 山东精惠计量检测有限公司 | Intelligent identification method for electric energy meter |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008233657A (en) | 2007-03-22 | 2008-10-02 | Yaskawa Electric Corp | Parameter display device |
| JP2015197851A (en) | 2014-04-02 | 2015-11-09 | 大成建設株式会社 | Image processor, program for image processing and information management system |
| JP2016173760A (en) | 2015-03-17 | 2016-09-29 | 富士電機株式会社 | Numerical value recognition apparatus, numerical value recognition method, and numerical value recognition program |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2760549B2 (en) * | 1989-03-07 | 1998-06-04 | 三洋電機株式会社 | Information processing device |
-
2019
- 2019-09-13 JP JP2019166873A patent/JP7387346B2/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008233657A (en) | 2007-03-22 | 2008-10-02 | Yaskawa Electric Corp | Parameter display device |
| JP2015197851A (en) | 2014-04-02 | 2015-11-09 | 大成建設株式会社 | Image processor, program for image processing and information management system |
| JP2016173760A (en) | 2015-03-17 | 2016-09-29 | 富士電機株式会社 | Numerical value recognition apparatus, numerical value recognition method, and numerical value recognition program |
Non-Patent Citations (1)
| Title |
|---|
| 画像処理技術を用いた設備自動監視判定システム,画像ラボ 第30巻 第8号,2019年08月10日 |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2021043836A (en) | 2021-03-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11900316B2 (en) | Information processing apparatus, control method, and program | |
| US11024036B2 (en) | Extracting an object region from an extraction target image including a display surface | |
| CN112041906B (en) | Reading system, reading method, program, and storage medium | |
| JP5311143B2 (en) | Measuring apparatus and method, and program | |
| US8483859B2 (en) | Image processing device and image processing method | |
| US20200265256A1 (en) | Device and method for analyzing state of manual work by worker, and work analysis program | |
| CN108475431B (en) | Image processing apparatus, image processing system, image processing method, and recording medium | |
| JP7387346B2 (en) | Image processing device, its control method, program | |
| US11386934B2 (en) | Method and device for displaying target object | |
| JP2016194834A (en) | Conformity determination method, conformity determination program, and conformity determination system | |
| US20030174253A1 (en) | Object detection method using an image-pickup device with easy detection masking region setting and object detection apparatus using the method | |
| JP7187265B2 (en) | Image processing device and its control method and program | |
| CN110730345B (en) | Image display method, image recognition device, image display medium, image recognition device, and image recognition system | |
| JP6516884B2 (en) | Connection inspection work support system | |
| US20120237118A1 (en) | Image processing device, image processing method, and image processing program | |
| JP2952673B2 (en) | Region of interest extraction method and cutout method | |
| CN112071246B (en) | Method and device for positioning sub-pixels of display panel and compensation method of display panel | |
| JPH0779429A (en) | Image monitoring device | |
| JP2023058726A (en) | Data generation device, data generation method and program | |
| JP7466303B2 (en) | Image processing device, control method thereof, program, and image processing system | |
| JP2023058726A5 (en) | ||
| JP2021064300A (en) | Information processing apparatus, information processing method, and program | |
| US10706315B2 (en) | Image processing device, image processing method, and computer program product | |
| US6549655B1 (en) | Image binarization method and image processing system using the same | |
| JP2004235768A (en) | Image processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220906 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230710 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230718 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230912 |
|
| 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: 20231017 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20231115 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 7387346 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |