JP2018005622A - Portable type electronic device - Google Patents
Portable type electronic device Download PDFInfo
- Publication number
- JP2018005622A JP2018005622A JP2016132675A JP2016132675A JP2018005622A JP 2018005622 A JP2018005622 A JP 2018005622A JP 2016132675 A JP2016132675 A JP 2016132675A JP 2016132675 A JP2016132675 A JP 2016132675A JP 2018005622 A JP2018005622 A JP 2018005622A
- Authority
- JP
- Japan
- Prior art keywords
- character string
- area
- effective
- reading
- inclination
- 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.)
- Pending
Links
Images
Landscapes
- Character Input (AREA)
Abstract
Description
本発明は、撮像画像から文字列を認識する文字認識機能を有する携帯型電子機器に関する。 The present invention relates to a portable electronic device having a character recognition function for recognizing a character string from a captured image.
例えばハンディスキャナタイプの文字認識装置等、撮像機能を有し、撮像画像から文字列を認識する文字認識機能を有する携帯型電子機器が公知である。このような携帯型電子機器は、印刷等された文字の読み取りを手軽に行えるというメリットがある反面、読み取ろうとしている文字列が撮像機能の有効領域内に入るように位置を合わせた状態で読み取り操作を行う必要があるため、操作者による位置合わせ操作が適切でないことに起因して文字の認識精度が低下し、文字の誤認識が生ずる可能性がある。 For example, a portable electronic device having an imaging function and a character recognition function for recognizing a character string from a captured image, such as a handy scanner type character recognition device, is known. While such portable electronic devices have the advantage of being able to easily read printed characters, they are read with their positions aligned so that the character string to be read falls within the effective area of the imaging function. Since it is necessary to perform the operation, the recognition accuracy of the character is lowered due to the inappropriate positioning operation by the operator, and there is a possibility that erroneous recognition of the character occurs.
このような携帯型電子機器の従来技術の一例として、例えば誤認識が生じた可能性の有無に関する情報や最終的な文字読取り結果に影響する要因に関する情報等、文字認識処理において生ずる情報を操作者に通知する機能を有するハンディターミナルやパターン認識装置が公知である(例えば特許文献1、2を参照)。 As an example of the prior art of such a portable electronic device, information generated in the character recognition process, such as information on the possibility of erroneous recognition and information on factors affecting the final character reading result, for example, A handy terminal or a pattern recognition device having a function of notifying the user is known (see, for example, Patent Documents 1 and 2).
文字認識機能を有する携帯型電子機器において、操作者の撮像操作に起因する誤認識が生ずる状況としては、例えば次のような状況が想定され得る。例えば読み取ろうとしている文字列の一部が読み取り有効範囲からはみ出た状態では、文字列の各文字が正しく認識されない可能性があり、また一部の文字が欠落した不完全な文字列が文字認識結果として認識される可能性がある。また例えば、読み取ろうとしている文字列と携帯型電子機器の撮像部との距離が近すぎたり遠すぎたりすると、文字の認識精度が低下し、やはり文字列の各文字が正しく認識されない可能性がある。さらに読み取ろうとしている文字列に対して携帯型電子機器の撮像部が一定以上の角度で左右に傾いている場合も、文字の認識精度が低下し、やはり文字列の各文字が正しく認識されない可能性がある。 In a portable electronic device having a character recognition function, for example, the following situation can be assumed as a situation in which erroneous recognition due to an imaging operation of an operator occurs. For example, if a part of the character string you are trying to read is outside the effective reading range, each character in the character string may not be recognized correctly, and an incomplete character string with some characters missing may be recognized. It may be recognized as a result. In addition, for example, if the distance between the character string to be read and the imaging unit of the portable electronic device is too close or too far, the character recognition accuracy decreases, and each character of the character string may not be recognized correctly. is there. Furthermore, even when the imaging unit of the portable electronic device is tilted to the left or right at a certain angle or more with respect to the character string to be read, the character recognition accuracy is lowered, and each character of the character string may not be recognized correctly. There is sex.
しかしながら上記の従来技術は、いずれも文字認識処理の過程で生ずる情報を操作者に通知するだけであり、読み取られた文字列に誤認識がある可能性等を操作者が知ることが出来るものの、どのように撮像操作を是正する必要があるのかを操作者が認識することが困難であるため、操作者の撮像操作に起因する誤認識を低減することが難しいという課題がある。 However, each of the above prior arts only informs the operator of information generated in the process of character recognition processing, and the operator can know the possibility of erroneous recognition in the read character string. Since it is difficult for the operator to recognize how to correct the imaging operation, there is a problem that it is difficult to reduce misrecognition caused by the imaging operation of the operator.
このような状況に鑑み本発明はなされたものであり、その目的は、操作者の撮像操作に起因する文字認識処理の誤認識を低減することが可能な携帯型電子機器を提供することにある。 The present invention has been made in view of such a situation, and an object thereof is to provide a portable electronic device capable of reducing erroneous recognition of character recognition processing caused by an imaging operation of an operator. .
<本発明の第1の態様>
本発明の第1の態様は、読み取り対象となる文字列を撮像する撮像装置と、前記撮像装置で撮像した画像から文字列を認識する演算処理を実行する演算処理装置と、前記演算処理装置の演算処理結果を報知する報知装置と、を備え、前記演算処理装置は、前記撮像装置で撮像した画像において文字列が存在する文字列領域を抽出し、前記文字列領域が前記撮像装置の撮像範囲に予め設定された読み取り有効領域内にあるか否かを判定し、前記文字列領域が前記読み取り有効領域内にない場合には、さらに前記読み取り有効領域に対する前記文字列領域のはみ出し方向を判定し、その判定結果を前記報知装置で報知する、携帯型電子機器である。
<First Aspect of the Present Invention>
According to a first aspect of the present invention, there is provided an imaging device that captures a character string to be read, an arithmetic processing device that performs arithmetic processing for recognizing a character string from an image captured by the imaging device, and the arithmetic processing device. A notification device for notifying a result of the arithmetic processing, wherein the arithmetic processing device extracts a character string region where a character string exists in an image captured by the imaging device, and the character string region is an imaging range of the imaging device. If the character string area is not in the effective reading area, the direction of the character string area protruding from the effective reading area is further determined. This is a portable electronic device that notifies the determination result by the notification device.
抽出した文字列領域が読み取り有効領域内にない場合、つまり抽出した文字列領域が読み取り有効領域からはみ出している場合には、その文字列領域の文字認識処理において誤認識が生ずる可能性がある。そこで抽出した文字列領域が読み取り有効領域内にあるか否かを判定し、さらに読み取り有効領域に対する文字列領域のはみ出し方向を判定し、その判定結果を報知装置で報知して操作者に知らせることによって、適切な撮像操作を操作者に促すことができる。つまり操作者は、報知装置で報知される判定結果から、撮像操作が適切であったか否かを知ることができるとともに、どのように撮像操作を是正する必要があるのかを具体的に理解することができる。それによって操作者の撮像操作に起因する文字認識処理の誤認識を低減することができる。 If the extracted character string area is not within the effective reading area, that is, if the extracted character string area protrudes from the effective reading area, erroneous recognition may occur in the character recognition processing of the character string area. Therefore, it is determined whether or not the extracted character string area is within the effective reading area, and further, the protruding direction of the character string area with respect to the effective reading area is determined, and the determination result is notified by the notification device to notify the operator. Thus, it is possible to prompt the operator to perform an appropriate imaging operation. That is, the operator can know whether or not the imaging operation is appropriate from the determination result notified by the notification device, and can specifically understand how the imaging operation needs to be corrected. it can. Thereby, it is possible to reduce misrecognition of the character recognition process caused by the imaging operation of the operator.
これにより本発明の第1の態様によれば、操作者の撮像操作に起因する文字認識処理の誤認識を低減することが可能な携帯型電子機器を提供できるという作用効果が得られる。 As a result, according to the first aspect of the present invention, there is an effect that it is possible to provide a portable electronic device that can reduce misrecognition of character recognition processing caused by an operator's imaging operation.
<本発明の第2の態様>
本発明の第2の態様は、前述した本発明の第1の態様において、前記演算処理装置は、前記文字列領域が前記読み取り有効領域内にあることを条件として、前記文字列領域のサイズが予め設定した有効サイズ範囲内か否かを判定し、その判定結果を前記報知装置で報知する、携帯型電子機器である。
<Second Aspect of the Present Invention>
According to a second aspect of the present invention, in the first aspect of the present invention described above, the arithmetic processing unit is configured such that the size of the character string area is set on the condition that the character string area is within the effective reading area. It is a portable electronic device which determines whether it is in the preset effective size range, and notifies the determination result by the notification device.
抽出した文字列領域が読み取り有効領域内にある場合であっても、その抽出した文字列領域のサイズが有効サイズ範囲内にない場合、つまり抽出した文字列領域が大きすぎる又は小さすぎる場合には、文字の認識精度が低下し、その文字列領域の文字認識処理において誤認識が生ずる可能性がある。本発明の第2の態様によれば、抽出した文字列領域が読み取り有効領域内にある場合には、さらに抽出した文字列領域のサイズが有効サイズ範囲内であるか否かを判定し、その判定結果を報知装置で報知して操作者に知らせることによって、より適切な撮像操作を操作者に促すことができる。 Even if the extracted character string area is within the effective reading area, but the size of the extracted character string area is not within the effective size range, that is, the extracted character string area is too large or too small The character recognition accuracy is lowered, and there is a possibility that erroneous recognition occurs in the character recognition processing of the character string area. According to the second aspect of the present invention, when the extracted character string area is within the effective reading area, it is further determined whether or not the size of the extracted character string area is within the effective size range. By notifying the determination result by the notification device and notifying the operator, it is possible to prompt the operator to perform a more appropriate imaging operation.
<本発明の第3の態様>
本発明の第3の態様は、前述した本発明の第2の態様において、前記演算処理装置は、前記文字列領域のサイズが前記有効サイズ範囲内でない場合には、さらに前記文字列領域のサイズが前記有効サイズ範囲より大きいのか小さいのかを判定し、その判定結果を前記報知装置で報知する、携帯型電子機器である。
本発明の第3の態様によれば、文字列領域のサイズが有効サイズ範囲内にない場合に、さらに文字列領域のサイズが有効サイズ範囲より大きいのか小さいのかを判定して報知装置で報知することによって、操作者は、より具体的に、どのように撮像操作を是正する必要があるのかを理解することができる。
<Third Aspect of the Present Invention>
According to a third aspect of the present invention, in the second aspect of the present invention described above, when the size of the character string area is not within the effective size range, the arithmetic processing device further includes the size of the character string area. Is a portable electronic device that determines whether or not is larger than the effective size range and notifies the determination result by the notification device.
According to the third aspect of the present invention, when the size of the character string region is not within the effective size range, it is further determined whether the size of the character string region is larger or smaller than the effective size range, and notified by the notification device. Thus, the operator can more specifically understand how the imaging operation needs to be corrected.
<本発明の第4の態様>
本発明の第4の態様は、前述した本発明の第1〜第3の態様のいずれかにおいて、前記演算処理装置は、前記文字列領域が前記読み取り有効領域内にあることを条件として、前記文字列領域の傾きが予め設定した有効傾き範囲内か否かを判定し、その判定結果を前記報知装置で報知する、携帯型電子機器である。
<Fourth aspect of the present invention>
According to a fourth aspect of the present invention, in any one of the first to third aspects of the present invention described above, the arithmetic processing unit is configured on the condition that the character string area is in the reading effective area. In the portable electronic device, it is determined whether or not the inclination of the character string area is within a preset effective inclination range, and the determination result is notified by the notification device.
抽出した文字列領域が読み取り有効領域内にある場合であっても、その抽出した文字列領域の傾きが有効傾き範囲内にない場合、つまり抽出した文字列領域の傾きが大きすぎる場合には、文字の認識精度が低下し、その文字列領域の文字認識処理において誤認識が生ずる可能性がある。本発明の第4の態様によれば、抽出した文字列領域が読み取り有効領域内にある場合には、さらに抽出した文字列領域の傾きが有効傾き範囲内であるか否かを判定し、その判定結果を報知装置で報知して操作者に知らせることによって、より適切な撮像操作を操作者に促すことができる。 Even when the extracted character string area is within the effective reading area, if the inclination of the extracted character string area is not within the effective inclination range, that is, if the inclination of the extracted character string area is too large, The recognition accuracy of the character is lowered, and there is a possibility that erroneous recognition occurs in the character recognition process of the character string area. According to the fourth aspect of the present invention, when the extracted character string area is within the effective reading area, it is further determined whether or not the inclination of the extracted character string area is within the effective inclination range. By notifying the determination result by the notification device and notifying the operator, it is possible to prompt the operator to perform a more appropriate imaging operation.
<本発明の第5の態様>
本発明の第5の態様は、前述した本発明の第4の態様において、前記演算処理装置は、前記文字列領域の傾きが前記有効傾き範囲内でない場合には、さらに前記文字列領域の傾き方向を判定し、その判定結果を前記報知装置で報知する、携帯型電子機器である。
本発明の第5の態様によれば、文字列領域の傾きが有効傾き範囲内にない場合に、さらに文字列領域の傾き方向を判定して報知装置で報知することによって、操作者は、より具体的に、どのように撮像操作を是正する必要があるのかを理解することができる。
<Fifth aspect of the present invention>
According to a fifth aspect of the present invention, in the fourth aspect of the present invention described above, the arithmetic processing unit further includes the inclination of the character string area when the inclination of the character string area is not within the effective inclination range. It is a portable electronic device that determines a direction and notifies the determination result by the notification device.
According to the fifth aspect of the present invention, when the inclination of the character string area is not within the effective inclination range, the operator further determines the inclination direction of the character string area and notifies the notification by the notification device. Specifically, it is possible to understand how the imaging operation needs to be corrected.
本発明によれば、操作者の撮像操作に起因する文字認識処理の誤認識を低減することが可能な携帯型電子機器を提供することができる。 ADVANTAGE OF THE INVENTION According to this invention, the portable electronic device which can reduce the misrecognition of the character recognition process resulting from an operator's imaging operation can be provided.
以下、本発明の実施の形態について図面を参照しながら説明する。
尚、本発明は、以下説明する実施例に特に限定されるものではなく、特許請求の範囲に記載された発明の範囲内で種々の変形が可能であることは言うまでもない。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
In addition, this invention is not specifically limited to the Example demonstrated below, It cannot be overemphasized that a various deformation | transformation is possible within the range of the invention described in the claim.
<ハンディスキャナ100の構成>
本発明に係る「携帯型電子機器」の一例としてのハンディスキャナ100の構成について、図1を参照しながら説明する。
<Configuration of
A configuration of a
図1は、ハンディスキャナ100のブロック図である。
ハンディスキャナ100は、撮像部10、演算処理部20、外部入出力部30、操作スイッチ部40、表示部50、デバイス制御部60及び表示制御部70を備える。
FIG. 1 is a block diagram of the
The
「撮像装置」としての撮像部10は、例えばCCDイメージセンサやCMOSイメージセンサ等の光学センサを用いたデジタルカメラ等であり、活字文字が印刷等された伝票等を光学的に走査して読み取り対象となる文字列を撮像する。「演算処理装置」としての演算処理部20は、例えば公知のマイコン演算装置であり、撮像部10で撮像した画像から文字列を認識する演算処理等を実行する。外部入出力部30は、外部機器(図示せず)との間でデータ等の入出力を行うインタフェース回路等を含む。操作スイッチ部40は、例えばテンキーや押しボタン等を含み、撮像部10を用いた撮像のトリガ操作やハンディスキャナ100に必要な種々の設定(例えば読み取る文字のフォントや桁数等)を操作者が行うために設けられている。
The
「報知装置」としての表示部50は、例えば液晶ディスプレイや有機ELディスプレイ等の視覚表示装置であり、例えば文字認識処理で認識した文字列等、演算処理部20の演算処理結果を表示する。本発明の「報知装置」は、例えばLED表示灯を用いてもよい。また本発明の「報知装置」は、視覚表示装置に特に限定されるものではなく、例えばブザー音やバイブレーション機能を用いて報知する装置であってもよいし、これらと視覚表示装置とを組み合わせた構成としてもよい。デバイス制御部60は、ハンディスキャナ100に搭載されている機器や回路(撮像部10、外部入出力部30、操作スイッチ部40、表示部50)を制御する。表示制御部70は、例えば表示部50の表示制御を実行するアプリケーションである。
The
演算処理部20は、二値化変換部21、文字列領域抽出部22、文字列領域判定部23、文字列領域詳細判定部24、文字列高さ判定部25、文字列高さ詳細判定部26、文字列傾き判定部27、文字列傾き詳細判定部28、文字認識部29を含む。
The
二値化変換部21は、撮像部10で撮像した画像を二値化して二値画像データに変換する。文字列領域抽出部22は、二値化変換部21が二値化した二値画像データに対して少なくとも4方向、好ましくは8方向のラベリング処理を行い、ラベリング処理後の二値画像データにおいて文字列が存在する文字列領域を抽出する。
The
文字列領域判定部23は、文字列領域抽出部22で抽出した文字列領域が撮像部10の撮像範囲に予め設定された読み取り有効領域内にあるか否かを判定する。読み取り有効領域の形状、位置及び大きさは、例えば固定データとして演算処理部20の不揮発性メモリ(図示せず)に記憶しておいてもよいし、操作者が操作スイッチ部40を操作して任意に設定できるようにしてもよいし、外部入出力部30を介して外部から設定できるようにしてもよい。
The character string
文字列領域詳細判定部24は、文字列領域抽出部22で抽出した文字列領域が読み取り有効領域内にない場合に、さらに読み取り有効領域に対する文字列領域のはみ出し方向を判定する。
When the character string area extracted by the character string
文字列高さ判定部25は、文字列領域抽出部22で抽出した文字列領域が読み取り有効領域内にあることを条件として、文字列領域のサイズが予め設定した有効サイズ範囲内か否かを判定する。この文字列領域の有効サイズ範囲は、例えば固定データとして演算処理部20の不揮発性メモリ(図示せず)に記憶しておいてもよいし、操作者が操作スイッチ部40を操作して任意に設定できるようにしてもよいし、外部入出力部30を介して外部から設定できるようにしてもよい。
The character string
文字列高さ詳細判定部26は、文字列領域抽出部22で抽出した文字列領域のサイズ(例えば文字列領域の高さ)が有効サイズ範囲内でない場合に、さらに文字列領域のサイズが有効サイズ範囲より大きいのか小さいのかを判定する。
The character string height
文字列傾き判定部27は、文字列領域抽出部22で抽出した文字列領域が読み取り有効領域内にあることを条件として、文字列領域の傾きが予め設定した有効傾き範囲内か否かを判定する。この文字列領域の有効傾き範囲は、例えば固定データとして演算処理部20の不揮発性メモリ(図示せず)に記憶しておいてもよいし、操作者が操作スイッチ部40を操作して任意に設定できるようにしてもよいし、外部入出力部30を介して外部から設定できるようにしてもよい。
The character string
文字列傾き詳細判定部28は、文字列領域抽出部22で抽出した文字列領域の傾きが有効傾き範囲内でない場合には、さらに文字列領域の傾き方向を判定する。
When the inclination of the character string area extracted by the character string
<文字列領域の判定>
文字列領域の判定の詳細について、図2〜図12を参照しながら説明する。
以下説明する読み取り有効領域による判定、有効サイズ範囲による判定、有効傾き範囲による判定のうち、有効サイズ範囲による判定及び有効傾き範囲による判定は任意的事項である。本発明は、読み取り有効領域による判定だけでも実施可能であり、そのような態様でも本発明による作用効果が得られる。また読み取り有効領域による判定の後に、有効サイズ範囲による判定又は有効傾き範囲による判定のいずれか一方のみを行う態様でも本発明は実施可能であり、本発明による作用効果が得られる。また読み取り有効領域による判定の後に、有効サイズ範囲による判定及び有効傾き範囲による判定の両方を行う場合には、どちらを先に行ってもよく、いずれの場合でも本発明による作用効果が得られる。
<Determination of character string area>
Details of the determination of the character string area will be described with reference to FIGS.
Of the determination based on the effective reading area, the determination based on the effective size range, and the determination based on the effective inclination range described below, the determination based on the effective size range and the determination based on the effective inclination range are optional items. The present invention can be implemented only by the determination based on the effective reading area, and the function and effect of the present invention can be obtained even in such an embodiment. In addition, the present invention can be implemented in an embodiment in which only one of determination based on the effective size range and determination based on the effective inclination range is performed after the determination based on the effective reading area, and the effects of the present invention are obtained. Further, when both the determination based on the effective size range and the determination based on the effective inclination range are performed after the determination based on the effective reading area, whichever may be performed first, in any case, the effect of the present invention can be obtained.
1.読み取り有効領域による判定
図2〜図5は、撮像画像11の文字列領域13と読み取り有効領域12との関係を例示的に図示した平面図である。
1. Determination Based on Effective Reading Area FIGS. 2 to 5 are plan views illustrating the relationship between the
撮像画像11から抽出した文字列領域13が読み取り有効領域12内にない場合、つまり抽出した文字列領域13が読み取り有効領域12からはみ出している場合には、その文字列領域13の文字認識処理において誤認識が生ずる可能性がある。そのため文字列領域13が読み取り有効領域12内にあるか否かの判定は、文字列領域13の文字認識処理を実行する前に行うのが好ましい。そして文字列領域13が読み取り有効領域12内にない場合には、文字列領域13の文字認識処理を実行しないのが好ましい。それによって文字認識処理の精度を向上させることができるとともに、無駄な文字認識処理を排除して操作者の作業効率を向上させることができる。
When the
読み取り有効領域12は、例えば矩形の領域である。文字列領域13が読み取り有効領域12内にあるか否かは、換言すれば文字列領域13が読み取り有効領域12からはみ出していないか否かということである。文字列領域判定部23は、例えば読み取り有効領域12の上下左右方向の端部に文字列領域13が接していないか否かで、文字列領域13が読み取り有効領域12内にあるか否かを判定する。そして文字列領域詳細判定部24は、文字列領域13が読み取り有効領域12内にない場合に、読み取り有効領域12の端部に文字列領域13が接している方向を特定することによって、読み取り有効領域12に対する文字列領域13のはみ出し方向を判定する。
The
文字列領域詳細判定部24は、例えば読み取り有効領域12の左方向の端部に文字列領域13が接している場合には、読み取り有効領域12に対して文字列領域13が左方向にはみ出していると判定する(図2)。この場合には、例えば操作者が撮像位置を左方向へずらすことによって、文字列領域13が読み取り有効領域12内に入るようにすることができる。
For example, when the
また文字列領域詳細判定部24は、例えば読み取り有効領域12の左右両方向の端部に文字列領域13が接している場合には、読み取り有効領域12に対して文字列領域13が左右両方向にはみ出していると判定する(図3)。この場合には、例えば操作者が撮像位置を後方(撮像対象から離間する方向)へ是正することによって、文字列領域13が読み取り有効領域12内に入るようにすることができる。
For example, when the
また文字列領域詳細判定部24は、例えば読み取り有効領域12の上方向の端部に文字列領域13が接している場合には、読み取り有効領域12に対して文字列領域13が上方向にはみ出していると判定する(図4)。この場合には、例えば操作者が撮像位置を上方向へずらすことによって、文字列領域13が読み取り有効領域12内に入るようにすることができる。
For example, when the
また文字列領域詳細判定部24は、例えば読み取り有効領域12の下方向の端部に文字列領域13が接している場合には、読み取り有効領域12に対して文字列領域13が下方向にはみ出していると判定する(図5)。この場合には、例えば操作者が撮像位置を下方向へずらすことによって、文字列領域13が読み取り有効領域12内に入るようにすることができる。
For example, when the
図10は、文字列領域13が読み取り有効領域12内にない場合における表示部50の表示画面51の一例を図示した平面図である。
FIG. 10 is a plan view illustrating an example of the
文字列領域13が読み取り有効領域12からはみ出している場合には、その判定結果として、表示画面51の読み取りステータス表示部511に「読み取りエラー」の文字が表示される。また同時に、読み取り有効領域12に対する文字列領域13のはみ出し方向が表示画面51に表示される。より具体的には、例えば読み取り有効領域12の左右両方向の端部に文字列領域13が接している場合(図3)には、表示画面51の読み取り範囲オーバー表示部513に「左端、右端」の文字が表示される。
When the
このように抽出した文字列領域13が読み取り有効領域12内にあるか否かを判定し、その判定結果を表示部50の表示画面51に表示して操作者に知らせることによって、適切な撮像操作を操作者に促すことができる。つまり操作者は、表示部50の表示画面51に表示される判定結果から、撮像操作が適切であったか否かを知ることができるとともに、どのように撮像操作を是正する必要があるのかを理解することができる。それによって操作者の撮像操作に起因する文字認識処理の誤認識を低減することができる。また文字列領域13が読み取り有効領域12内にない場合に、さらに読み取り有効領域12に対する文字列領域13のはみ出し方向を判定して表示部50の表示画面51に表示することによって、操作者は、より具体的に、どのように撮像操作を是正する必要があるのかを理解することができる。
It is determined whether or not the
2.有効サイズ範囲による判定
図6及び図7は、撮像画像11の文字列領域13と有効サイズ範囲との関係を例示的に図示した平面図である。
2. Determination Based on Effective Size Range FIGS. 6 and 7 are plan views exemplarily showing the relationship between the
撮像画像11から抽出した文字列領域13が読み取り有効領域12内にある場合であっても、その抽出した文字列領域13のサイズが有効サイズ範囲内にない場合、つまり抽出した文字列領域13が大きすぎる又は小さすぎる場合には、文字の認識精度が低下し、その文字列領域13の文字認識処理において誤認識が生ずる可能性がある。そのため文字列領域13の文字認識処理を実行する前に、文字列領域13のサイズが有効サイズ範囲内か否かの判定を行うのが好ましい。そして文字列領域13のサイズが有効サイズ範囲内でない場合には、文字列領域13の文字認識処理を実行しないのが好ましい。それによって文字認識処理の精度をさらに向上させることができるとともに、無駄な文字認識処理を排除して操作者の作業効率をさらに向上させることができる。
Even when the
文字列領域13の有効サイズ範囲は、例えば文字列領域13の高さ(上下方向の長さ)の有効範囲として設定する。文字列領域13の高さは、例えば文字列領域13の最外周のピクセルの座標を特定し、その文字列領域13の高さの平均値とする。文字列領域13の高さの有効範囲は、例えば文字列領域13の高さの上限値と下限値で設定する。より具体的には、例えば文字列領域13の高さの下限値を15dot、文字列領域13の高さの上限値を50dotに設定し、これを文字列領域13の高さの有効範囲(有効サイズ範囲)とする。
The effective size range of the
文字列高さ判定部25は、例えば文字列領域13の高さが10dotである場合には、文字列領域13の高さの下限値15dotより小さいことから、文字列領域13のサイズが有効サイズ範囲内でないと判定する(図6)。そして文字列高さ詳細判定部26は、文字列領域13のサイズが有効サイズ範囲より小さいと判定する(図6)。この場合には、例えば操作者が撮像位置を前方(撮像対象に近づく方向)へずらすことによって、文字列領域13のサイズが有効サイズ範囲内に入るようにすることができる。
For example, when the height of the
また文字列高さ判定部25は、例えば文字列領域13の高さが60dotである場合には、文字列領域13の高さの上限値50dotより大きいことから、文字列領域13のサイズが有効サイズ範囲内でないと判定する(図7)。そして文字列高さ詳細判定部26は、文字列領域13のサイズが有効サイズ範囲より大きいと判定する(図7)。この場合には、例えば操作者が撮像位置を後方(撮像対象から離間する方向)へずらすことによって、文字列領域13のサイズが有効サイズ範囲内に入るようにすることができる。
For example, when the height of the
図11は、文字列領域13のサイズが有効サイズ範囲内でない場合における表示部50の表示画面51の一例を図示した平面図である。
FIG. 11 is a plan view illustrating an example of the
文字列領域13のサイズが有効サイズ範囲内でない場合には、その判定結果として、表示画面51の読み取りステータス表示部511に「読み取りエラー」の文字が表示される。また同時に、文字列領域13のサイズが有効サイズ範囲より大きいのか小さいのかが表示画面51に表示される。より具体的には、例えば文字列領域13のサイズが有効サイズ範囲より小さい場合(図6)には、表示画面51の読み取り距離オーバー表示部514に「遠距離」の文字が表示される。
If the size of the
このように抽出した文字列領域13のサイズが有効サイズ範囲内であるか否かを判定し、その判定結果を表示部50の表示画面51に表示して操作者に知らせることによって、より適切な撮像操作を操作者に促すことができる。また文字列領域13のサイズが有効サイズ範囲内にない場合に、さらに文字列領域13のサイズが有効サイズ範囲より大きいのか小さいのかを判定して表示部50の表示画面51に表示することによって、操作者は、より具体的に、どのように撮像操作を是正する必要があるのかを理解することができる。
It is determined whether or not the size of the
3.有効傾き範囲による判定
図8及び図9は、撮像画像11の文字列領域13と有効傾き範囲との関係を例示的に図示した平面図である。
3. Determination by Effective Tilt Range FIGS. 8 and 9 are plan views exemplarily showing the relationship between the
撮像画像11から抽出した文字列領域13が読み取り有効領域12内にある場合であっても、その抽出した文字列領域13の傾きが有効傾き範囲内にない場合、つまり抽出した文字列領域13の傾きが大きすぎる場合には、文字の認識精度が低下し、その文字列領域13の文字認識処理において誤認識が生ずる可能性がある。そのため文字列領域13の文字認識処理を実行する前に、文字列領域13の傾きが有効傾き範囲内か否かの判定を行うのが好ましい。そして文字列領域13の傾きが有効傾き範囲内でない場合には、文字列領域13の文字認識処理を実行しないのが好ましい。それによって文字認識処理の精度をさらに向上させることができるとともに、無駄な文字認識処理を排除して操作者の作業効率をさらに向上させることができる。
Even when the
文字列領域13の傾き角度は、例えば文字列領域13の各文字の中心点を特定し、その各文字の中心点から文字列領域13の中心線を決定し、読み取り有効領域12の水平方向の中心線に対する文字列領域13の中心線の角度とする。文字列領域13の有効傾き範囲は、例えば文字列領域13の左右回転方向への傾き角度の範囲(文字列領域13の右回転方向の傾き角度の上限値と左回転方向の傾き角度の上限値)として設定する。より具体的には、例えば文字列領域13の左回転方向への傾き角度の上限値を−10度、右回転方向への傾き角度の上限値を+10度とし、これを文字列領域13の有効傾き範囲とする。
The inclination angle of the
文字列傾き判定部27は、例えば文字列領域13が+20度の角度で傾いている場合には、文字列領域13の傾きが右回転方向への傾き角度の上限値+10度より大きいことから、文字列領域13の傾きが有効傾き範囲でないと判定する(図8)。そして文字列傾き詳細判定部28は、その傾き方向が右回転方向であると判定する(図8)。この場合には、例えば操作者が右回転方向へ撮像角度を是正することによって、文字列領域13の傾きが有効傾き範囲内に入るようにすることができる。
For example, when the
また文字列傾き判定部27は、例えば文字列領域13が−20度の角度で傾いている場合には、文字列領域13の傾きが左回転方向への傾き角度の上限値−10度より大きいことから、文字列領域13の傾きが有効傾き範囲でないと判定する(図9)。そして文字列傾き詳細判定部28は、その傾き方向が左回転方向であると判定する(図9)。この場合には、例えば操作者が左回転方向へ撮像角度を是正することによって、文字列領域13の傾きが有効傾き範囲内に入るようにすることができる。
Further, the character string
図12は、文字列領域13の傾きが有効傾き範囲内でない場合における表示部50の表示画面51の一例を図示した平面図である。
FIG. 12 is a plan view illustrating an example of the
文字列領域13の傾きが有効傾き範囲内でない場合には、その判定結果として、表示画面51の読み取りステータス表示部511に「読み取りエラー」の文字が表示される。また同時に、文字列領域13の傾き方向が表示画面51に表示される。より具体的には、例えば文字列領域13の傾きが有効傾き範囲より左回転方向へ傾いている場合(図9)には、表示画面51の読み取り傾きオーバー表示部515に「左回転」の文字が表示される。
When the inclination of the
このように抽出した文字列領域13の傾きが有効傾き範囲内であるか否かを判定し、その判定結果を表示部50の表示画面51に表示して操作者に知らせることによって、より適切な撮像操作を操作者に促すことができる。また文字列領域13の傾きが有効傾き範囲内にない場合に、さらに文字列領域13の傾き方向を判定して表示部50の表示画面51に表示することによって、操作者は、より具体的に、どのように撮像操作を是正する必要があるのかを理解することができる。
It is determined whether or not the inclination of the
<ハンディスキャナ100の動作フロー>
ハンディスキャナ100の動作フローの一例について、図14〜図17を参照しながら詳細に説明する。図14〜図17は、ハンディスキャナ100の動作フローの一例を図示したフローチャートである。
<Operation Flow of
An example of the operation flow of the
まず読み取り対象となる文字列が印刷された伝票等を撮像部10で撮像し、その撮像した画像を取得する(ステップS1)。つづいて二値化変換部21において、取得した画像を二値化して二値画像データに変換する(ステップS2)。つづいて文字列領域抽出部22において、二値化した二値画像データに対して例えば8方向のラベリング処理を行い(ステップS3)、ラベリング処理後の二値画像データから文字列が存在する文字列領域13を抽出する(ステップS4)。
First, a slip or the like on which a character string to be read is printed is captured by the
つづいて読み取り有効領域12の判定処理を実行し(ステップS5)、抽出した文字列領域13が読み取り有効領域12内にあるか否かを判定する(ステップS6)。より具体的には文字列領域判定部23において、前述したように読み取り有効領域12の上下左右方向の端部に文字列領域13が接していないか否かを判定する。
Subsequently, a process for determining the
文字列領域13が読み取り有効領域12内にない場合には(ステップS6でNo)、つづいてリトライ回数(再読み取り回数)が規定回数に達しているか否かを判定する(ステップS7)。リトライ回数が規定回数に達していない場合には(ステップS7でNo)、リトライ回数をインクリメントした後、ステップS1へ戻る。
If the
リトライ回数が規定回数に達している場合には(ステップS7でYes)、読み取り有効領域12の詳細判定を実行する(ステップS8)。より具体的には文字列領域詳細判定部24において、前述したように読み取り有効領域12の端部に文字列領域13が接している方向を特定することによって、読み取り有効領域12に対する文字列領域13のはみ出し方向を判定する。そして判定結果をメモリに記憶する(ステップS9)。
If the number of retries has reached the specified number (Yes in step S7), detailed determination of the reading
つづいて判定結果の出力処理を実行する(ステップS10)。より具体的には、例えば読み取りデータを0byte(NULL)データとし、読み取りステータスを読み取り失敗(読み取りエラー)とする。そして読み取り有効領域12の詳細判定の結果、読み取りデータ及び読み取りステータスの情報をデバイス制御部60へ渡す。デバイス制御部60は、これらの情報を表示制御部70へ渡す。表示制御部70は、これらの情報に基づいて、表示部50の表示画面51の表示制御を行う(図10)。
Subsequently, a determination result output process is executed (step S10). More specifically, for example, the read data is 0 byte (NULL) data, and the read status is read failure (read error). Then, as a result of the detailed determination of the reading
他方、文字列領域13が読み取り有効領域12内にある場合には(ステップS6でYes)、つづいて文字列領域13のサイズの判定を実行し(ステップS11)、抽出した文字列領域13のサイズが有効サイズ範囲内か否かを判定する(ステップS12)。より具体的には文字列高さ判定部25において、前述したように文字列領域13の高さの上限値と下限値を有効サイズ範囲として設定し、文字列領域13の高さが有効サイズ範囲内か否かを判定する。
On the other hand, if the
文字列領域13のサイズが有効サイズ範囲内でない場合には(ステップS12でNo)、つづいてリトライ回数(再読み取り回数)が規定回数に達しているか否かを判定する(ステップS13)。リトライ回数が規定回数に達していない場合には(ステップS13でNo)、リトライ回数をインクリメントした後、ステップS1へ戻る。
If the size of the
リトライ回数が規定回数に達している場合には(ステップS13でYes)、文字列領域13のサイズの詳細判定を実行する(ステップS14)。より具体的には文字列高さ詳細判定部26において、前述したように文字列領域13の高さが上限値より大きいか下限値より小さいかを特定することによって判定する。そして判定結果をメモリに記憶する(ステップS15)。
If the number of retries has reached the specified number (Yes in step S13), detailed determination of the size of the
つづいて判定結果の出力処理を実行する(ステップS16)。より具体的には、例えば読み取りデータを0byte(NULL)データとし、読み取りステータスを読み取り失敗(読み取りエラー)とする。そして文字列領域13のサイズの詳細判定の結果、読み取りデータ及び読み取りステータスの情報をデバイス制御部60へ渡す。デバイス制御部60は、これらの情報を表示制御部70へ渡す。表示制御部70は、これらの情報に基づいて、表示部50の表示画面51の表示制御を行う(図11)。
Subsequently, a determination result output process is executed (step S16). More specifically, for example, the read data is 0 byte (NULL) data, and the read status is read failure (read error). As a result of the detailed determination of the size of the
他方、文字列領域13のサイズが有効サイズ範囲内である場合には(ステップS12でYes)、つづいて文字列領域13の傾きの判定を実行し(ステップS17)、抽出した文字列領域13の傾きが有効傾き範囲内か否かを判定する(ステップS18)。より具体的には文字列傾き判定部27において、前述したように文字列領域13の右回転方向の傾き角度の上限値と左回転方向の傾き角度の上限値を有効傾き範囲として設定し、文字列領域13の傾き角度が有効傾き範囲内か否かを判定する。
On the other hand, if the size of the
文字列領域13の傾きが有効傾き範囲内でない場合には(ステップS18でNo)、つづいてリトライ回数(再読み取り回数)が規定回数に達しているか否かを判定する(ステップS19)。リトライ回数が規定回数に達していない場合には(ステップS19でNo)、リトライ回数をインクリメントした後、ステップS1へ戻る。
If the inclination of the
リトライ回数が規定回数に達している場合には(ステップS19でYes)、文字列領域13の傾きの詳細判定を実行する(ステップS20)。より具体的には文字列傾き詳細判定部28において、前述したように文字列領域13の傾き角度が右回転方向の傾き角度の上限値を越えているのか、或いは左回転方向の傾き角度の上限値を越えているのか(つまり文字列領域13の傾き角度正の角度か負の角度か)を特定することによって判定する。そして判定結果をメモリに記憶する(ステップS21)。
If the number of retries has reached the specified number (Yes in step S19), detailed determination of the inclination of the
つづいて判定結果の出力処理を実行する(ステップS22)。より具体的には、例えば読み取りデータを0byte(NULL)データとし、読み取りステータスを読み取り失敗(読み取りエラー)とする。そして文字列領域13の傾きの詳細判定の結果、読み取りデータ及び読み取りステータスの情報をデバイス制御部60へ渡す。デバイス制御部60は、これらの情報を表示制御部70へ渡す。表示制御部70は、これらの情報に基づいて、表示部50の表示画面51の表示制御を行う(図12)。
Subsequently, a determination result output process is executed (step S22). More specifically, for example, the read data is 0 byte (NULL) data, and the read status is read failure (read error). Then, as a result of the detailed determination of the inclination of the
他方、文字列領域13の傾きが有効傾き範囲内である場合には(ステップS18でYes)、つづいて文字認識部29において文字列領域13の文字認識処理を実行し(ステップS23)、文字認識が成功したか否かを判定する(ステップS24)。例えば伝票等に印刷された文字列が不鮮明であるために文字認識に失敗した場合、或いは操作者の操作による読み取り操作の終了命令やタイムアウト命令によって文字認識処理が中止された場合等、文字認識処理において文字の認識が成功しなかった場合には(ステップS24でNo)、ステップS1へ戻る。
On the other hand, when the inclination of the
この場合には、例えば読み取りデータを0byte(NULL)データとし、読み取りステータスを読み取り失敗(読み取りエラー)とする。また読み取り有効領域12の詳細判定の結果、文字列領域13のサイズの詳細判定の結果、文字列領域13の傾きの詳細判定の結果は、いずれも初期値にリセットする。そしてこれらの情報をデバイス制御部60へ渡す。デバイス制御部60は、これらの情報を表示制御部70へ渡す。表示制御部70は、これらの情報に基づいて、表示部50の表示画面51の表示制御を行う。
In this case, for example, the read data is 0 byte (NULL) data, and the read status is read failure (read error). As a result of the detailed determination of the reading
そして文字認識処理において文字の認識が成功した場合には(ステップS24でYes)、文字認識処理の結果をメモリに記憶する(ステップS25)。つづいて文字認識処理の結果の出力処理を実行する(ステップS26)。より具体的には、例えば認識した文字列を読み取りデータとし、読み取りステータスを読み取り成功とする。また読み取り有効領域12の詳細判定の結果、文字列領域13のサイズの詳細判定の結果、文字列領域13の傾きの詳細判定の結果は、いずれも初期値にリセットする。そしてこれらの情報をデバイス制御部60へ渡す。デバイス制御部60は、これらの情報を表示制御部70へ渡す。表示制御部70は、これらの情報に基づいて、表示部50の表示画面51の表示制御を行う。
If the character recognition is successful in the character recognition process (Yes in step S24), the result of the character recognition process is stored in the memory (step S25). Subsequently, an output process of the result of the character recognition process is executed (step S26). More specifically, for example, the recognized character string is set as read data, and the read status is set as successful reading. As a result of the detailed determination of the reading
図13は、文字列領域13から認識した文字列を表示する表示画面51の一例を図示した平面図である。
文字認識処理において文字の認識が成功した場合には、表示画面51の読み取りステータス表示部511に「読み取り成功」の文字が表示されるとともに、表示画面51の読み取り結果表示部512に認識された文字列が表示される。
FIG. 13 is a plan view illustrating an example of a
When the character recognition is successful in the character recognition process, the character “reading success” is displayed on the reading
10 撮像部
20 演算処理部
30 外部入出力部
40 操作スイッチ部
50 表示部
60 デバイス制御部
70 表示制御部
100 ハンディスキャナ
DESCRIPTION OF
Claims (5)
前記撮像装置で撮像した画像から文字列を認識する演算処理を実行する演算処理装置と、
前記演算処理装置の演算処理結果を報知する報知装置と、を備え、
前記演算処理装置は、前記撮像装置で撮像した画像において文字列が存在する文字列領域を抽出し、前記文字列領域が前記撮像装置の撮像範囲に予め設定された読み取り有効領域内にあるか否かを判定し、前記文字列領域が前記読み取り有効領域内にない場合には、さらに前記読み取り有効領域に対する前記文字列領域のはみ出し方向を判定し、その判定結果を前記報知装置で報知する、携帯型電子機器。 An imaging device for imaging a character string to be read;
An arithmetic processing device that executes arithmetic processing for recognizing a character string from an image captured by the imaging device;
An informing device for informing the arithmetic processing result of the arithmetic processing device,
The arithmetic processing unit extracts a character string region where a character string exists in an image captured by the imaging device, and whether the character string region is within a reading effective region set in advance in an imaging range of the imaging device. If the character string area is not in the reading effective area, the protruding direction of the character string area with respect to the reading effective area is further determined, and the determination result is notified by the notification device. Type electronic equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016132675A JP2018005622A (en) | 2016-07-04 | 2016-07-04 | Portable type electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016132675A JP2018005622A (en) | 2016-07-04 | 2016-07-04 | Portable type electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2018005622A true JP2018005622A (en) | 2018-01-11 |
Family
ID=60949416
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016132675A Pending JP2018005622A (en) | 2016-07-04 | 2016-07-04 | Portable type electronic device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2018005622A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0696244A (en) * | 1992-09-10 | 1994-04-08 | Olympus Optical Co Ltd | Bar code symbol reader |
JPH06337467A (en) * | 1993-03-31 | 1994-12-06 | Nikon Corp | Camera incorporating composition advice function |
JPH07160809A (en) * | 1993-12-08 | 1995-06-23 | Nec Corp | Ocr device |
JP2005006255A (en) * | 2003-06-16 | 2005-01-06 | Sharp Corp | Image pickup device |
JP2006209599A (en) * | 2005-01-31 | 2006-08-10 | Casio Hitachi Mobile Communications Co Ltd | Portable terminal, character reading method, and character reading program |
JP2010217997A (en) * | 2009-03-13 | 2010-09-30 | Omron Corp | Device, program, and method for recognizing character |
-
2016
- 2016-07-04 JP JP2016132675A patent/JP2018005622A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0696244A (en) * | 1992-09-10 | 1994-04-08 | Olympus Optical Co Ltd | Bar code symbol reader |
JPH06337467A (en) * | 1993-03-31 | 1994-12-06 | Nikon Corp | Camera incorporating composition advice function |
JPH07160809A (en) * | 1993-12-08 | 1995-06-23 | Nec Corp | Ocr device |
JP2005006255A (en) * | 2003-06-16 | 2005-01-06 | Sharp Corp | Image pickup device |
JP2006209599A (en) * | 2005-01-31 | 2006-08-10 | Casio Hitachi Mobile Communications Co Ltd | Portable terminal, character reading method, and character reading program |
JP2010217997A (en) * | 2009-03-13 | 2010-09-30 | Omron Corp | Device, program, and method for recognizing character |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4670657B2 (en) | Image processing apparatus, image processing method, and program | |
JP4710734B2 (en) | Pointing device, pointing position detection method, and program | |
JP4635889B2 (en) | Portable two-dimensional code reader | |
JP2007201948A (en) | Imaging apparatus, image processing method and program | |
TWI706294B (en) | Method for controlling screen display of mobile terminal and mobile terminal | |
JP2019159739A (en) | Image processing device, image processing method, and program | |
US20070172123A1 (en) | Image processing apparatus, image processing method and computer readable medium | |
JP2013070212A (en) | Image processor and image processing program | |
JP4306457B2 (en) | Optical information reader | |
JP6016760B2 (en) | Work confirmation system | |
JP2016033786A (en) | Optical information reading device | |
KR101259004B1 (en) | calibration device for Deformation of QR-code using camera and thereof. | |
WO2017208367A1 (en) | Image processing device, image processing method, and program | |
JP5217872B2 (en) | Symbol reader and program | |
JP2018005622A (en) | Portable type electronic device | |
JP5413006B2 (en) | Portable terminal device and program | |
JP6789410B2 (en) | Image processing device, control method and control program | |
JP2005122609A (en) | Device for recognizing photographed object | |
JP5310040B2 (en) | Imaging processing apparatus and program | |
JP5310039B2 (en) | Imaging processing apparatus and program | |
JP6251075B2 (en) | Translation device | |
JP2013101698A (en) | Image pickup device and program | |
JP5228016B2 (en) | Optical code reader | |
JP2018092270A (en) | Reading device, reading program and reading method | |
JP5292210B2 (en) | Document presentation device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190611 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A711 Effective date: 20200324 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A821 Effective date: 20200324 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200706 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200715 |
|
A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20200902 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20201021 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210324 |
|
A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20210513 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210719 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20220105 |