JP2018005622A - Portable type electronic device - Google Patents

Portable type electronic device Download PDF

Info

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
Application number
JP2016132675A
Other languages
Japanese (ja)
Inventor
泰明 岡本
Yasuaki Okamoto
泰明 岡本
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.)
Idec Auto ID Solutions Co Ltd
Original Assignee
Welcat Inc
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 Welcat Inc filed Critical Welcat Inc
Priority to JP2016132675A priority Critical patent/JP2018005622A/en
Publication of JP2018005622A publication Critical patent/JP2018005622A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Character Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a portable type electronic device that can reduce wrong recognition of recognition processing arising from picture-taking operation of operators.SOLUTION: A handy scanner 100 according to the present invention comprises: an imaging unit 10 that takes pictures of character strings targeted for reading; a computation processing unit 20 that executes computation processing for recognizing the character string from images taken by the imaging unit 10; and a display unit 50 that notifies a computation processing result of the computation processing unit 20. The computation processing unit 20 is configured to: extract a character string area 13 where the character string exists in the image taken by the imaging unit 10; determine whether the character string area is present in a reading effective area 12 pre-set to an imaging area of the imaging unit 10; when the character string area 13 is not present within the reading effective area 12, further determine a protrusion direction of the character string area 13 with respect to the reading effective area 12; and notify the determination result by the display unit 50.SELECTED DRAWING: Figure 1

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).

特開平08−153159号公報Japanese Patent Laid-Open No. 08-153159 特開2015−210542号公報JP2015-210542A

文字認識機能を有する携帯型電子機器において、操作者の撮像操作に起因する誤認識が生ずる状況としては、例えば次のような状況が想定され得る。例えば読み取ろうとしている文字列の一部が読み取り有効範囲からはみ出た状態では、文字列の各文字が正しく認識されない可能性があり、また一部の文字が欠落した不完全な文字列が文字認識結果として認識される可能性がある。また例えば、読み取ろうとしている文字列と携帯型電子機器の撮像部との距離が近すぎたり遠すぎたりすると、文字の認識精度が低下し、やはり文字列の各文字が正しく認識されない可能性がある。さらに読み取ろうとしている文字列に対して携帯型電子機器の撮像部が一定以上の角度で左右に傾いている場合も、文字の認識精度が低下し、やはり文字列の各文字が正しく認識されない可能性がある。   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.

ハンディスキャナのブロック図。Block diagram of the handy scanner. 文字列領域と読み取り有効領域との関係を例示的に図示した平面図。The top view which illustrated the relationship between a character string area | region and a reading effective area | region illustratively. 文字列領域と読み取り有効領域との関係を例示的に図示した平面図。The top view which illustrated the relationship between a character string area | region and a reading effective area | region illustratively. 文字列領域と読み取り有効領域との関係を例示的に図示した平面図。The top view which illustrated the relationship between a character string area | region and a reading effective area | region illustratively. 文字列領域と読み取り有効領域との関係を例示的に図示した平面図。The top view which illustrated the relationship between a character string area | region and a reading effective area | region illustratively. 文字列領域と有効サイズ範囲との関係を例示的に図示した平面図。The top view which illustrated the relationship between a character string area | region and an effective size range as an example. 文字列領域と有効サイズ範囲との関係を例示的に図示した平面図。The top view which illustrated the relationship between a character string area | region and an effective size range as an example. 文字列領域と有効傾き範囲との関係を例示的に図示した平面図。The top view which illustrated the relationship between a character string area | region and an effective inclination range exemplarily. 文字列領域と有効傾き範囲との関係を例示的に図示した平面図。The top view which illustrated the relationship between a character string area | region and an effective inclination range exemplarily. 文字列領域が読み取り有効領域内にない場合における表示画面の平面図。The top view of a display screen in case a character string area | region is not in a reading effective area | region. 文字列領域のサイズが有効サイズ範囲内でない場合における表示画面の平面図。The top view of a display screen in case the size of a character string area | region is not in the effective size range. 文字列領域の傾きが有効傾き範囲内でない場合における表示画面の平面図。The top view of a display screen in case the inclination of a character string area | region is not in the effective inclination range. 文字列領域から認識した文字列を表示する表示画面の平面図。The top view of the display screen which displays the character string recognized from the character string area | region. ハンディスキャナの動作フローを図示したフローチャート。The flowchart which illustrated the operation | movement flow of the handy scanner. ハンディスキャナの動作フローを図示したフローチャート。The flowchart which illustrated the operation | movement flow of the handy scanner. ハンディスキャナの動作フローを図示したフローチャート。The flowchart which illustrated the operation | movement flow of the handy scanner. ハンディスキャナの動作フローを図示したフローチャート。The flowchart which illustrated the operation | movement flow of the handy scanner.

以下、本発明の実施の形態について図面を参照しながら説明する。
尚、本発明は、以下説明する実施例に特に限定されるものではなく、特許請求の範囲に記載された発明の範囲内で種々の変形が可能であることは言うまでもない。
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 Handy Scanner 100>
A configuration of a handy scanner 100 as an example of a “portable electronic device” according to the present invention will be described with reference to FIG.

図1は、ハンディスキャナ100のブロック図である。
ハンディスキャナ100は、撮像部10、演算処理部20、外部入出力部30、操作スイッチ部40、表示部50、デバイス制御部60及び表示制御部70を備える。
FIG. 1 is a block diagram of the handy scanner 100.
The handy scanner 100 includes an imaging unit 10, an arithmetic processing unit 20, an external input / output unit 30, an operation switch unit 40, a display unit 50, a device control unit 60, and a display control unit 70.

「撮像装置」としての撮像部10は、例えばCCDイメージセンサやCMOSイメージセンサ等の光学センサを用いたデジタルカメラ等であり、活字文字が印刷等された伝票等を光学的に走査して読み取り対象となる文字列を撮像する。「演算処理装置」としての演算処理部20は、例えば公知のマイコン演算装置であり、撮像部10で撮像した画像から文字列を認識する演算処理等を実行する。外部入出力部30は、外部機器(図示せず)との間でデータ等の入出力を行うインタフェース回路等を含む。操作スイッチ部40は、例えばテンキーや押しボタン等を含み、撮像部10を用いた撮像のトリガ操作やハンディスキャナ100に必要な種々の設定(例えば読み取る文字のフォントや桁数等)を操作者が行うために設けられている。   The imaging unit 10 as an “imaging device” is, for example, a digital camera or the like using an optical sensor such as a CCD image sensor or a CMOS image sensor, and is a target to be read by optically scanning a slip or the like on which printed characters are printed. The character string that becomes is imaged. The arithmetic processing unit 20 as an “arithmetic processing device” is, for example, a known microcomputer arithmetic device, and executes arithmetic processing for recognizing a character string from an image captured by the imaging unit 10. The external input / output unit 30 includes an interface circuit for inputting / outputting data and the like with an external device (not shown). The operation switch unit 40 includes, for example, a numeric keypad, a push button, and the like, and an operator can perform an imaging trigger operation using the imaging unit 10 and various settings necessary for the handy scanner 100 (for example, font and number of digits of characters to be read). Provided to do.

「報知装置」としての表示部50は、例えば液晶ディスプレイや有機ELディスプレイ等の視覚表示装置であり、例えば文字認識処理で認識した文字列等、演算処理部20の演算処理結果を表示する。本発明の「報知装置」は、例えばLED表示灯を用いてもよい。また本発明の「報知装置」は、視覚表示装置に特に限定されるものではなく、例えばブザー音やバイブレーション機能を用いて報知する装置であってもよいし、これらと視覚表示装置とを組み合わせた構成としてもよい。デバイス制御部60は、ハンディスキャナ100に搭載されている機器や回路(撮像部10、外部入出力部30、操作スイッチ部40、表示部50)を制御する。表示制御部70は、例えば表示部50の表示制御を実行するアプリケーションである。   The display unit 50 as the “notification device” is a visual display device such as a liquid crystal display or an organic EL display, for example, and displays the calculation processing result of the calculation processing unit 20 such as a character string recognized by the character recognition processing. The “notification device” of the present invention may use, for example, an LED indicator. In addition, the “notification device” of the present invention is not particularly limited to the visual display device, and may be a device that uses a buzzer sound or a vibration function, for example, or a combination of these with a visual display device. It is good also as a structure. The device control unit 60 controls devices and circuits (the imaging unit 10, the external input / output unit 30, the operation switch unit 40, and the display unit 50) mounted on the handy scanner 100. The display control unit 70 is an application that executes display control of the display unit 50, for example.

演算処理部20は、二値化変換部21、文字列領域抽出部22、文字列領域判定部23、文字列領域詳細判定部24、文字列高さ判定部25、文字列高さ詳細判定部26、文字列傾き判定部27、文字列傾き詳細判定部28、文字認識部29を含む。   The arithmetic processing unit 20 includes a binarization conversion unit 21, a character string region extraction unit 22, a character string region determination unit 23, a character string region detail determination unit 24, a character string height determination unit 25, and a character string height detail determination unit. 26, a character string inclination determination unit 27, a character string inclination detail determination unit 28, and a character recognition unit 29.

二値化変換部21は、撮像部10で撮像した画像を二値化して二値画像データに変換する。文字列領域抽出部22は、二値化変換部21が二値化した二値画像データに対して少なくとも4方向、好ましくは8方向のラベリング処理を行い、ラベリング処理後の二値画像データにおいて文字列が存在する文字列領域を抽出する。   The binarization conversion unit 21 binarizes the image captured by the imaging unit 10 and converts it into binary image data. The character string region extraction unit 22 performs labeling processing in at least four directions, preferably eight directions, on the binary image data binarized by the binarization conversion unit 21, and characters in the binary image data after the labeling processing are processed. Extract the character string area where the column exists.

文字列領域判定部23は、文字列領域抽出部22で抽出した文字列領域が撮像部10の撮像範囲に予め設定された読み取り有効領域内にあるか否かを判定する。読み取り有効領域の形状、位置及び大きさは、例えば固定データとして演算処理部20の不揮発性メモリ(図示せず)に記憶しておいてもよいし、操作者が操作スイッチ部40を操作して任意に設定できるようにしてもよいし、外部入出力部30を介して外部から設定できるようにしてもよい。   The character string region determination unit 23 determines whether or not the character string region extracted by the character string region extraction unit 22 is within a reading effective region set in advance in the imaging range of the imaging unit 10. The shape, position, and size of the effective reading area may be stored as, for example, fixed data in a non-volatile memory (not shown) of the arithmetic processing unit 20, or the operator operates the operation switch unit 40. It may be set arbitrarily or may be set from the outside via the external input / output unit 30.

文字列領域詳細判定部24は、文字列領域抽出部22で抽出した文字列領域が読み取り有効領域内にない場合に、さらに読み取り有効領域に対する文字列領域のはみ出し方向を判定する。   When the character string area extracted by the character string area extraction unit 22 is not within the reading effective area, the character string area detail determination unit 24 further determines the protruding direction of the character string area with respect to the reading effective area.

文字列高さ判定部25は、文字列領域抽出部22で抽出した文字列領域が読み取り有効領域内にあることを条件として、文字列領域のサイズが予め設定した有効サイズ範囲内か否かを判定する。この文字列領域の有効サイズ範囲は、例えば固定データとして演算処理部20の不揮発性メモリ(図示せず)に記憶しておいてもよいし、操作者が操作スイッチ部40を操作して任意に設定できるようにしてもよいし、外部入出力部30を介して外部から設定できるようにしてもよい。   The character string height determination unit 25 determines whether or not the size of the character string region is within a preset effective size range on the condition that the character string region extracted by the character string region extraction unit 22 is in the reading effective region. judge. The effective size range of the character string area may be stored in, for example, a non-volatile memory (not shown) of the arithmetic processing unit 20 as fixed data, or may be arbitrarily set by the operator operating the operation switch unit 40. It may be settable or may be settable externally via the external input / output unit 30.

文字列高さ詳細判定部26は、文字列領域抽出部22で抽出した文字列領域のサイズ(例えば文字列領域の高さ)が有効サイズ範囲内でない場合に、さらに文字列領域のサイズが有効サイズ範囲より大きいのか小さいのかを判定する。   The character string height detail determination unit 26 further determines that the size of the character string region is valid when the size of the character string region extracted by the character string region extraction unit 22 (for example, the height of the character string region) is not within the effective size range. Determine whether it is larger or smaller than the size range.

文字列傾き判定部27は、文字列領域抽出部22で抽出した文字列領域が読み取り有効領域内にあることを条件として、文字列領域の傾きが予め設定した有効傾き範囲内か否かを判定する。この文字列領域の有効傾き範囲は、例えば固定データとして演算処理部20の不揮発性メモリ(図示せず)に記憶しておいてもよいし、操作者が操作スイッチ部40を操作して任意に設定できるようにしてもよいし、外部入出力部30を介して外部から設定できるようにしてもよい。   The character string inclination determination unit 27 determines whether or not the inclination of the character string area is within a preset effective inclination range on the condition that the character string area extracted by the character string area extraction unit 22 is in the reading effective area. To do. The effective inclination range of the character string area may be stored in, for example, a non-volatile memory (not shown) of the arithmetic processing unit 20 as fixed data, or may be arbitrarily set by the operator operating the operation switch unit 40. It may be settable or may be settable externally via the external input / output unit 30.

文字列傾き詳細判定部28は、文字列領域抽出部22で抽出した文字列領域の傾きが有効傾き範囲内でない場合には、さらに文字列領域の傾き方向を判定する。   When the inclination of the character string area extracted by the character string area extraction unit 22 is not within the effective inclination range, the character string inclination detail determination unit 28 further determines the inclination direction of the character string area.

<文字列領域の判定>
文字列領域の判定の詳細について、図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 character string area 13 of the captured image 11 and the effective reading area 12 as an example.

撮像画像11から抽出した文字列領域13が読み取り有効領域12内にない場合、つまり抽出した文字列領域13が読み取り有効領域12からはみ出している場合には、その文字列領域13の文字認識処理において誤認識が生ずる可能性がある。そのため文字列領域13が読み取り有効領域12内にあるか否かの判定は、文字列領域13の文字認識処理を実行する前に行うのが好ましい。そして文字列領域13が読み取り有効領域12内にない場合には、文字列領域13の文字認識処理を実行しないのが好ましい。それによって文字認識処理の精度を向上させることができるとともに、無駄な文字認識処理を排除して操作者の作業効率を向上させることができる。   When the character string area 13 extracted from the captured image 11 is not within the effective reading area 12, that is, when the extracted character string area 13 protrudes from the effective reading area 12, the character recognition process for the character string area 13 is performed. Misrecognition may occur. Therefore, it is preferable to determine whether or not the character string area 13 is in the reading effective area 12 before executing the character recognition process of the character string area 13. If the character string area 13 is not in the reading effective area 12, it is preferable not to execute the character recognition process for the character string area 13. As a result, the accuracy of the character recognition process can be improved, and the operator's work efficiency can be improved by eliminating the useless character recognition process.

読み取り有効領域12は、例えば矩形の領域である。文字列領域13が読み取り有効領域12内にあるか否かは、換言すれば文字列領域13が読み取り有効領域12からはみ出していないか否かということである。文字列領域判定部23は、例えば読み取り有効領域12の上下左右方向の端部に文字列領域13が接していないか否かで、文字列領域13が読み取り有効領域12内にあるか否かを判定する。そして文字列領域詳細判定部24は、文字列領域13が読み取り有効領域12内にない場合に、読み取り有効領域12の端部に文字列領域13が接している方向を特定することによって、読み取り有効領域12に対する文字列領域13のはみ出し方向を判定する。   The effective reading area 12 is, for example, a rectangular area. Whether or not the character string area 13 is in the reading effective area 12 is, in other words, whether or not the character string area 13 is not protruding from the reading effective area 12. The character string area determination unit 23 determines whether the character string area 13 is in the reading effective area 12 by checking whether the character string area 13 is not in contact with the vertical and horizontal ends of the reading effective area 12, for example. judge. Then, the character string area detail determination unit 24 specifies the direction in which the character string area 13 is in contact with the end of the reading effective area 12 when the character string area 13 is not in the reading effective area 12, thereby The protruding direction of the character string area 13 with respect to the area 12 is determined.

文字列領域詳細判定部24は、例えば読み取り有効領域12の左方向の端部に文字列領域13が接している場合には、読み取り有効領域12に対して文字列領域13が左方向にはみ出していると判定する(図2)。この場合には、例えば操作者が撮像位置を左方向へずらすことによって、文字列領域13が読み取り有効領域12内に入るようにすることができる。   For example, when the character string area 13 is in contact with the left end of the effective reading area 12, the character string area detail determining unit 24 protrudes leftward from the effective reading area 12. (FIG. 2). In this case, for example, the character string area 13 can enter the effective reading area 12 by shifting the imaging position to the left by the operator.

また文字列領域詳細判定部24は、例えば読み取り有効領域12の左右両方向の端部に文字列領域13が接している場合には、読み取り有効領域12に対して文字列領域13が左右両方向にはみ出していると判定する(図3)。この場合には、例えば操作者が撮像位置を後方(撮像対象から離間する方向)へ是正することによって、文字列領域13が読み取り有効領域12内に入るようにすることができる。   For example, when the character string area 13 is in contact with the left and right ends of the effective reading area 12, the character string area detail determination unit 24 protrudes in the left and right directions with respect to the effective reading area 12. (FIG. 3). In this case, for example, the operator corrects the imaging position backward (in a direction away from the imaging target) so that the character string area 13 can enter the effective reading area 12.

また文字列領域詳細判定部24は、例えば読み取り有効領域12の上方向の端部に文字列領域13が接している場合には、読み取り有効領域12に対して文字列領域13が上方向にはみ出していると判定する(図4)。この場合には、例えば操作者が撮像位置を上方向へずらすことによって、文字列領域13が読み取り有効領域12内に入るようにすることができる。   For example, when the character string area 13 is in contact with the upper end of the effective reading area 12, the character string area detail determination unit 24 protrudes upward from the effective reading area 12. (FIG. 4). In this case, for example, the operator can shift the imaging position upward so that the character string area 13 enters the reading effective area 12.

また文字列領域詳細判定部24は、例えば読み取り有効領域12の下方向の端部に文字列領域13が接している場合には、読み取り有効領域12に対して文字列領域13が下方向にはみ出していると判定する(図5)。この場合には、例えば操作者が撮像位置を下方向へずらすことによって、文字列領域13が読み取り有効領域12内に入るようにすることができる。   For example, when the character string area 13 is in contact with the lower end of the reading effective area 12, the character string area detail determination unit 24 protrudes downward from the reading effective area 12. (FIG. 5). In this case, for example, the operator can shift the imaging position downward so that the character string area 13 falls within the effective reading area 12.

図10は、文字列領域13が読み取り有効領域12内にない場合における表示部50の表示画面51の一例を図示した平面図である。   FIG. 10 is a plan view illustrating an example of the display screen 51 of the display unit 50 when the character string area 13 is not in the reading effective area 12.

文字列領域13が読み取り有効領域12からはみ出している場合には、その判定結果として、表示画面51の読み取りステータス表示部511に「読み取りエラー」の文字が表示される。また同時に、読み取り有効領域12に対する文字列領域13のはみ出し方向が表示画面51に表示される。より具体的には、例えば読み取り有効領域12の左右両方向の端部に文字列領域13が接している場合(図3)には、表示画面51の読み取り範囲オーバー表示部513に「左端、右端」の文字が表示される。   When the character string area 13 extends beyond the effective reading area 12, the character “reading error” is displayed on the reading status display section 511 of the display screen 51 as the determination result. At the same time, the protruding direction of the character string area 13 with respect to the effective reading area 12 is displayed on the display screen 51. More specifically, for example, when the character string area 13 is in contact with the left and right ends of the effective reading area 12 (FIG. 3), the “left end, right end” is displayed on the reading range overdisplay section 513 of the display screen 51. Is displayed.

このように抽出した文字列領域13が読み取り有効領域12内にあるか否かを判定し、その判定結果を表示部50の表示画面51に表示して操作者に知らせることによって、適切な撮像操作を操作者に促すことができる。つまり操作者は、表示部50の表示画面51に表示される判定結果から、撮像操作が適切であったか否かを知ることができるとともに、どのように撮像操作を是正する必要があるのかを理解することができる。それによって操作者の撮像操作に起因する文字認識処理の誤認識を低減することができる。また文字列領域13が読み取り有効領域12内にない場合に、さらに読み取り有効領域12に対する文字列領域13のはみ出し方向を判定して表示部50の表示画面51に表示することによって、操作者は、より具体的に、どのように撮像操作を是正する必要があるのかを理解することができる。   It is determined whether or not the character string area 13 extracted in this way is within the reading effective area 12, and the determination result is displayed on the display screen 51 of the display unit 50 to notify the operator, thereby performing an appropriate imaging operation. Can be prompted to the operator. That is, the operator can know whether or not the imaging operation is appropriate from the determination result displayed on the display screen 51 of the display unit 50, and understand how the imaging operation needs to be corrected. be able to. Thereby, it is possible to reduce misrecognition of the character recognition process caused by the imaging operation of the operator. Further, when the character string area 13 is not in the effective reading area 12, the operator further determines the protruding direction of the character string area 13 with respect to the effective reading area 12 and displays it on the display screen 51 of the display unit 50. More specifically, it can be understood how the imaging operation needs to be corrected.

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 character string region 13 of the captured image 11 and the effective size range.

撮像画像11から抽出した文字列領域13が読み取り有効領域12内にある場合であっても、その抽出した文字列領域13のサイズが有効サイズ範囲内にない場合、つまり抽出した文字列領域13が大きすぎる又は小さすぎる場合には、文字の認識精度が低下し、その文字列領域13の文字認識処理において誤認識が生ずる可能性がある。そのため文字列領域13の文字認識処理を実行する前に、文字列領域13のサイズが有効サイズ範囲内か否かの判定を行うのが好ましい。そして文字列領域13のサイズが有効サイズ範囲内でない場合には、文字列領域13の文字認識処理を実行しないのが好ましい。それによって文字認識処理の精度をさらに向上させることができるとともに、無駄な文字認識処理を排除して操作者の作業効率をさらに向上させることができる。   Even when the character string area 13 extracted from the captured image 11 is within the effective reading area 12, the size of the extracted character string area 13 is not within the effective size range, that is, the extracted character string area 13 is If it is too large or too small, the character recognition accuracy is lowered, and there is a possibility that erroneous recognition will occur in the character recognition process of the character string region 13. Therefore, it is preferable to determine whether or not the size of the character string area 13 is within the effective size range before executing the character recognition process for the character string area 13. If the size of the character string area 13 is not within the effective size range, it is preferable not to execute the character recognition process for the character string area 13. As a result, the accuracy of the character recognition process can be further improved, and the operator's work efficiency can be further improved by eliminating the useless character recognition process.

文字列領域13の有効サイズ範囲は、例えば文字列領域13の高さ(上下方向の長さ)の有効範囲として設定する。文字列領域13の高さは、例えば文字列領域13の最外周のピクセルの座標を特定し、その文字列領域13の高さの平均値とする。文字列領域13の高さの有効範囲は、例えば文字列領域13の高さの上限値と下限値で設定する。より具体的には、例えば文字列領域13の高さの下限値を15dot、文字列領域13の高さの上限値を50dotに設定し、これを文字列領域13の高さの有効範囲(有効サイズ範囲)とする。   The effective size range of the character string region 13 is set as, for example, an effective range of the height (length in the vertical direction) of the character string region 13. The height of the character string area 13 is determined by, for example, specifying the coordinates of the outermost peripheral pixels of the character string area 13 and using the average height of the character string area 13. The effective range of the height of the character string area 13 is set by, for example, an upper limit value and a lower limit value of the height of the character string area 13. More specifically, for example, the lower limit value of the height of the character string area 13 is set to 15 dots and the upper limit value of the height of the character string area 13 is set to 50 dots, which are set to the effective range of the height of the character string area 13 (effective Size range).

文字列高さ判定部25は、例えば文字列領域13の高さが10dotである場合には、文字列領域13の高さの下限値15dotより小さいことから、文字列領域13のサイズが有効サイズ範囲内でないと判定する(図6)。そして文字列高さ詳細判定部26は、文字列領域13のサイズが有効サイズ範囲より小さいと判定する(図6)。この場合には、例えば操作者が撮像位置を前方(撮像対象に近づく方向)へずらすことによって、文字列領域13のサイズが有効サイズ範囲内に入るようにすることができる。   For example, when the height of the character string region 13 is 10 dots, the character string height determination unit 25 is smaller than the lower limit value 15 dots of the height of the character string region 13, so that the size of the character string region 13 is the effective size. It is determined that it is not within the range (FIG. 6). Then, the character string height detail determination unit 26 determines that the size of the character string region 13 is smaller than the effective size range (FIG. 6). In this case, for example, when the operator shifts the imaging position forward (in the direction approaching the imaging target), the size of the character string region 13 can fall within the effective size range.

また文字列高さ判定部25は、例えば文字列領域13の高さが60dotである場合には、文字列領域13の高さの上限値50dotより大きいことから、文字列領域13のサイズが有効サイズ範囲内でないと判定する(図7)。そして文字列高さ詳細判定部26は、文字列領域13のサイズが有効サイズ範囲より大きいと判定する(図7)。この場合には、例えば操作者が撮像位置を後方(撮像対象から離間する方向)へずらすことによって、文字列領域13のサイズが有効サイズ範囲内に入るようにすることができる。   For example, when the height of the character string region 13 is 60 dots, the character string height determination unit 25 is larger than the upper limit value 50 dots of the height of the character string region 13, and therefore the size of the character string region 13 is effective. It is determined that it is not within the size range (FIG. 7). Then, the character string height detail determination unit 26 determines that the size of the character string region 13 is larger than the effective size range (FIG. 7). In this case, for example, the operator can shift the imaging position backward (in a direction away from the imaging target) so that the size of the character string region 13 falls within the effective size range.

図11は、文字列領域13のサイズが有効サイズ範囲内でない場合における表示部50の表示画面51の一例を図示した平面図である。   FIG. 11 is a plan view illustrating an example of the display screen 51 of the display unit 50 when the size of the character string region 13 is not within the effective size range.

文字列領域13のサイズが有効サイズ範囲内でない場合には、その判定結果として、表示画面51の読み取りステータス表示部511に「読み取りエラー」の文字が表示される。また同時に、文字列領域13のサイズが有効サイズ範囲より大きいのか小さいのかが表示画面51に表示される。より具体的には、例えば文字列領域13のサイズが有効サイズ範囲より小さい場合(図6)には、表示画面51の読み取り距離オーバー表示部514に「遠距離」の文字が表示される。   If the size of the character string area 13 is not within the effective size range, the character “reading error” is displayed on the reading status display section 511 of the display screen 51 as the determination result. At the same time, whether the size of the character string area 13 is larger or smaller than the effective size range is displayed on the display screen 51. More specifically, for example, when the size of the character string region 13 is smaller than the effective size range (FIG. 6), the “long distance” character is displayed on the reading distance over display portion 514 of the display screen 51.

このように抽出した文字列領域13のサイズが有効サイズ範囲内であるか否かを判定し、その判定結果を表示部50の表示画面51に表示して操作者に知らせることによって、より適切な撮像操作を操作者に促すことができる。また文字列領域13のサイズが有効サイズ範囲内にない場合に、さらに文字列領域13のサイズが有効サイズ範囲より大きいのか小さいのかを判定して表示部50の表示画面51に表示することによって、操作者は、より具体的に、どのように撮像操作を是正する必要があるのかを理解することができる。   It is determined whether or not the size of the character string area 13 extracted in this way is within the effective size range, and the determination result is displayed on the display screen 51 of the display unit 50 to notify the operator, thereby making it more appropriate. An operator can be prompted to perform an imaging operation. Further, when the size of the character string region 13 is not within the effective size range, it is further determined whether the size of the character string region 13 is larger or smaller than the effective size range and displayed on the display screen 51 of the display unit 50. More specifically, the operator can understand how the imaging operation needs to be corrected.

3.有効傾き範囲による判定
図8及び図9は、撮像画像11の文字列領域13と有効傾き範囲との関係を例示的に図示した平面図である。
3. Determination by Effective Tilt Range FIGS. 8 and 9 are plan views exemplarily showing the relationship between the character string region 13 of the captured image 11 and the effective tilt range.

撮像画像11から抽出した文字列領域13が読み取り有効領域12内にある場合であっても、その抽出した文字列領域13の傾きが有効傾き範囲内にない場合、つまり抽出した文字列領域13の傾きが大きすぎる場合には、文字の認識精度が低下し、その文字列領域13の文字認識処理において誤認識が生ずる可能性がある。そのため文字列領域13の文字認識処理を実行する前に、文字列領域13の傾きが有効傾き範囲内か否かの判定を行うのが好ましい。そして文字列領域13の傾きが有効傾き範囲内でない場合には、文字列領域13の文字認識処理を実行しないのが好ましい。それによって文字認識処理の精度をさらに向上させることができるとともに、無駄な文字認識処理を排除して操作者の作業効率をさらに向上させることができる。   Even when the character string area 13 extracted from the captured image 11 is within the effective reading area 12, if the inclination of the extracted character string area 13 is not within the effective inclination range, that is, the extracted character string area 13 If the inclination is too large, the character recognition accuracy is lowered, and there is a possibility that erroneous recognition occurs in the character recognition processing of the character string region 13. Therefore, it is preferable to determine whether or not the inclination of the character string area 13 is within the effective inclination range before executing the character recognition process for the character string area 13. If the inclination of the character string area 13 is not within the effective inclination range, it is preferable not to execute the character recognition process for the character string area 13. As a result, the accuracy of the character recognition process can be further improved, and the operator's work efficiency can be further improved by eliminating the useless character recognition process.

文字列領域13の傾き角度は、例えば文字列領域13の各文字の中心点を特定し、その各文字の中心点から文字列領域13の中心線を決定し、読み取り有効領域12の水平方向の中心線に対する文字列領域13の中心線の角度とする。文字列領域13の有効傾き範囲は、例えば文字列領域13の左右回転方向への傾き角度の範囲(文字列領域13の右回転方向の傾き角度の上限値と左回転方向の傾き角度の上限値)として設定する。より具体的には、例えば文字列領域13の左回転方向への傾き角度の上限値を−10度、右回転方向への傾き角度の上限値を+10度とし、これを文字列領域13の有効傾き範囲とする。   The inclination angle of the character string region 13 is determined by, for example, specifying the center point of each character in the character string region 13, determining the center line of the character string region 13 from the center point of each character, The angle of the center line of the character string area 13 with respect to the center line is set. The effective inclination range of the character string area 13 is, for example, the range of the inclination angle of the character string area 13 in the left-right rotation direction (the upper limit value of the inclination angle in the right rotation direction and the upper limit value of the inclination angle in the left rotation direction of the character string area 13). ). More specifically, for example, the upper limit value of the tilt angle in the left rotation direction of the character string region 13 is set to −10 degrees, and the upper limit value of the tilt angle in the right rotation direction is set to +10 degrees. The tilt range.

文字列傾き判定部27は、例えば文字列領域13が+20度の角度で傾いている場合には、文字列領域13の傾きが右回転方向への傾き角度の上限値+10度より大きいことから、文字列領域13の傾きが有効傾き範囲でないと判定する(図8)。そして文字列傾き詳細判定部28は、その傾き方向が右回転方向であると判定する(図8)。この場合には、例えば操作者が右回転方向へ撮像角度を是正することによって、文字列領域13の傾きが有効傾き範囲内に入るようにすることができる。   For example, when the character string region 13 is inclined at an angle of +20 degrees, the character string inclination determination unit 27 is larger than the upper limit value +10 degrees of the inclination angle in the clockwise rotation direction. It determines with the inclination of the character string area | region 13 not being an effective inclination range (FIG. 8). And the character string inclination detailed determination part 28 determines with the inclination direction being a right rotation direction (FIG. 8). In this case, for example, when the operator corrects the imaging angle in the right rotation direction, the inclination of the character string region 13 can fall within the effective inclination range.

また文字列傾き判定部27は、例えば文字列領域13が−20度の角度で傾いている場合には、文字列領域13の傾きが左回転方向への傾き角度の上限値−10度より大きいことから、文字列領域13の傾きが有効傾き範囲でないと判定する(図9)。そして文字列傾き詳細判定部28は、その傾き方向が左回転方向であると判定する(図9)。この場合には、例えば操作者が左回転方向へ撮像角度を是正することによって、文字列領域13の傾きが有効傾き範囲内に入るようにすることができる。   Further, the character string inclination determination unit 27, for example, when the character string area 13 is inclined at an angle of −20 degrees, the inclination of the character string area 13 is larger than the upper limit value −10 degrees of the inclination angle in the left rotation direction. Therefore, it is determined that the inclination of the character string area 13 is not within the effective inclination range (FIG. 9). And the character string inclination detailed determination part 28 determines with the inclination direction being a left rotation direction (FIG. 9). In this case, for example, when the operator corrects the imaging angle in the left rotation direction, the inclination of the character string region 13 can fall within the effective inclination range.

図12は、文字列領域13の傾きが有効傾き範囲内でない場合における表示部50の表示画面51の一例を図示した平面図である。   FIG. 12 is a plan view illustrating an example of the display screen 51 of the display unit 50 when the inclination of the character string region 13 is not within the effective inclination range.

文字列領域13の傾きが有効傾き範囲内でない場合には、その判定結果として、表示画面51の読み取りステータス表示部511に「読み取りエラー」の文字が表示される。また同時に、文字列領域13の傾き方向が表示画面51に表示される。より具体的には、例えば文字列領域13の傾きが有効傾き範囲より左回転方向へ傾いている場合(図9)には、表示画面51の読み取り傾きオーバー表示部515に「左回転」の文字が表示される。   When the inclination of the character string area 13 is not within the effective inclination range, the character “reading error” is displayed on the reading status display section 511 of the display screen 51 as the determination result. At the same time, the inclination direction of the character string area 13 is displayed on the display screen 51. More specifically, for example, when the inclination of the character string area 13 is inclined to the left rotation direction from the effective inclination range (FIG. 9), the character “Rotate left” is displayed on the reading inclination overdisplay portion 515 of the display screen 51. Is displayed.

このように抽出した文字列領域13の傾きが有効傾き範囲内であるか否かを判定し、その判定結果を表示部50の表示画面51に表示して操作者に知らせることによって、より適切な撮像操作を操作者に促すことができる。また文字列領域13の傾きが有効傾き範囲内にない場合に、さらに文字列領域13の傾き方向を判定して表示部50の表示画面51に表示することによって、操作者は、より具体的に、どのように撮像操作を是正する必要があるのかを理解することができる。   It is determined whether or not the inclination of the character string area 13 extracted in this way is within the effective inclination range, and the determination result is displayed on the display screen 51 of the display unit 50 to notify the operator. An operator can be prompted to perform an imaging operation. In addition, when the inclination of the character string area 13 is not within the effective inclination range, the operator further determines the inclination direction of the character string area 13 and displays it on the display screen 51 of the display unit 50, so that the operator can be more specific. Can understand how the imaging operation needs to be corrected.

<ハンディスキャナ100の動作フロー>
ハンディスキャナ100の動作フローの一例について、図14〜図17を参照しながら詳細に説明する。図14〜図17は、ハンディスキャナ100の動作フローの一例を図示したフローチャートである。
<Operation Flow of Handy Scanner 100>
An example of the operation flow of the handy scanner 100 will be described in detail with reference to FIGS. 14 to 17 are flowcharts illustrating an example of an operation flow of the handy scanner 100.

まず読み取り対象となる文字列が印刷された伝票等を撮像部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 imaging unit 10, and the captured image is acquired (step S1). Subsequently, the binarization conversion unit 21 binarizes the acquired image and converts it into binary image data (step S2). Subsequently, the character string region extraction unit 22 performs, for example, eight-direction labeling processing on the binarized binary image data (step S3), and a character string in which a character string exists from the binary image data after the labeling processing. The region 13 is extracted (step S4).

つづいて読み取り有効領域12の判定処理を実行し(ステップS5)、抽出した文字列領域13が読み取り有効領域12内にあるか否かを判定する(ステップS6)。より具体的には文字列領域判定部23において、前述したように読み取り有効領域12の上下左右方向の端部に文字列領域13が接していないか否かを判定する。   Subsequently, a process for determining the effective reading area 12 is executed (step S5), and it is determined whether or not the extracted character string area 13 is in the effective reading area 12 (step S6). More specifically, the character string area determination unit 23 determines whether or not the character string area 13 is in contact with the vertical and horizontal ends of the effective reading area 12 as described above.

文字列領域13が読み取り有効領域12内にない場合には(ステップS6でNo)、つづいてリトライ回数(再読み取り回数)が規定回数に達しているか否かを判定する(ステップS7)。リトライ回数が規定回数に達していない場合には(ステップS7でNo)、リトライ回数をインクリメントした後、ステップS1へ戻る。   If the character string area 13 is not in the effective reading area 12 (No in step S6), it is subsequently determined whether or not the number of retries (rereading count) has reached a specified number (step S7). If the number of retries has not reached the specified number (No in step S7), the number of retries is incremented, and the process returns to step S1.

リトライ回数が規定回数に達している場合には(ステップ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 effective area 12 is executed (step S8). More specifically, the character string area detail determination unit 24 specifies the direction in which the character string area 13 is in contact with the end of the reading effective area 12 as described above, thereby determining the character string area 13 with respect to the reading effective area 12. Determine the direction of protrusion. Then, the determination result is stored in the memory (step S9).

つづいて判定結果の出力処理を実行する(ステップ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 effective area 12, reading data and reading status information are passed to the device control unit 60. The device control unit 60 passes these pieces of information to the display control unit 70. The display control unit 70 performs display control of the display screen 51 of the display unit 50 based on these pieces of information (FIG. 10).

他方、文字列領域13が読み取り有効領域12内にある場合には(ステップS6でYes)、つづいて文字列領域13のサイズの判定を実行し(ステップS11)、抽出した文字列領域13のサイズが有効サイズ範囲内か否かを判定する(ステップS12)。より具体的には文字列高さ判定部25において、前述したように文字列領域13の高さの上限値と下限値を有効サイズ範囲として設定し、文字列領域13の高さが有効サイズ範囲内か否かを判定する。   On the other hand, if the character string area 13 is within the effective reading area 12 (Yes in step S6), then the size of the character string area 13 is determined (step S11), and the size of the extracted character string area 13 is determined. Is within the effective size range (step S12). More specifically, in the character string height determination unit 25, as described above, the upper limit value and the lower limit value of the height of the character string region 13 are set as the effective size range, and the height of the character string region 13 is set to the effective size range. It is determined whether it is within.

文字列領域13のサイズが有効サイズ範囲内でない場合には(ステップS12でNo)、つづいてリトライ回数(再読み取り回数)が規定回数に達しているか否かを判定する(ステップS13)。リトライ回数が規定回数に達していない場合には(ステップS13でNo)、リトライ回数をインクリメントした後、ステップS1へ戻る。   If the size of the character string area 13 is not within the effective size range (No in step S12), it is then determined whether or not the number of retries (reread count) has reached a specified number (step S13). If the number of retries has not reached the specified number (No in step S13), the number of retries is incremented, and then the process returns to step S1.

リトライ回数が規定回数に達している場合には(ステップ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 character string area 13 is executed (step S14). More specifically, the character string height detail determination unit 26 determines whether the height of the character string region 13 is larger than the upper limit value or smaller than the lower limit value as described above. Then, the determination result is stored in the memory (step S15).

つづいて判定結果の出力処理を実行する(ステップ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 character string area 13, read data and read status information are passed to the device controller 60. The device control unit 60 passes these pieces of information to the display control unit 70. The display control unit 70 performs display control of the display screen 51 of the display unit 50 based on these pieces of information (FIG. 11).

他方、文字列領域13のサイズが有効サイズ範囲内である場合には(ステップS12でYes)、つづいて文字列領域13の傾きの判定を実行し(ステップS17)、抽出した文字列領域13の傾きが有効傾き範囲内か否かを判定する(ステップS18)。より具体的には文字列傾き判定部27において、前述したように文字列領域13の右回転方向の傾き角度の上限値と左回転方向の傾き角度の上限値を有効傾き範囲として設定し、文字列領域13の傾き角度が有効傾き範囲内か否かを判定する。   On the other hand, if the size of the character string area 13 is within the effective size range (Yes in step S12), then the inclination of the character string area 13 is determined (step S17), and the extracted character string area 13 It is determined whether the inclination is within the effective inclination range (step S18). More specifically, the character string inclination determination unit 27 sets the upper limit value of the inclination angle in the right rotation direction and the upper limit value of the inclination angle in the left rotation direction of the character string area 13 as the effective inclination range as described above, and It is determined whether the inclination angle of the row region 13 is within the effective inclination range.

文字列領域13の傾きが有効傾き範囲内でない場合には(ステップS18でNo)、つづいてリトライ回数(再読み取り回数)が規定回数に達しているか否かを判定する(ステップS19)。リトライ回数が規定回数に達していない場合には(ステップS19でNo)、リトライ回数をインクリメントした後、ステップS1へ戻る。   If the inclination of the character string area 13 is not within the effective inclination range (No in step S18), it is then determined whether or not the number of retries (rereading number) has reached a specified number (step S19). If the number of retries has not reached the specified number (No in step S19), the number of retries is incremented, and then the process returns to step S1.

リトライ回数が規定回数に達している場合には(ステップ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 character string area 13 is executed (step S20). More specifically, in the character string inclination detailed determination unit 28, as described above, whether the inclination angle of the character string area 13 exceeds the upper limit value of the inclination angle in the right rotation direction, or the upper limit of the inclination angle in the left rotation direction. It is determined by specifying whether the value is exceeded (that is, whether the inclination angle of the character string area 13 is a positive angle or a negative angle). Then, the determination result is stored in the memory (step S21).

つづいて判定結果の出力処理を実行する(ステップ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 character string area 13, read data and read status information are passed to the device control unit 60. The device control unit 60 passes these pieces of information to the display control unit 70. The display control unit 70 performs display control of the display screen 51 of the display unit 50 based on these pieces of information (FIG. 12).

他方、文字列領域13の傾きが有効傾き範囲内である場合には(ステップS18でYes)、つづいて文字認識部29において文字列領域13の文字認識処理を実行し(ステップS23)、文字認識が成功したか否かを判定する(ステップS24)。例えば伝票等に印刷された文字列が不鮮明であるために文字認識に失敗した場合、或いは操作者の操作による読み取り操作の終了命令やタイムアウト命令によって文字認識処理が中止された場合等、文字認識処理において文字の認識が成功しなかった場合には(ステップS24でNo)、ステップS1へ戻る。   On the other hand, when the inclination of the character string area 13 is within the effective inclination range (Yes in step S18), the character recognition process of the character string area 13 is subsequently executed in the character recognition unit 29 (step S23), and the character recognition is performed. It is determined whether or not has succeeded (step S24). For example, when character recognition fails because the character string printed on a slip is unclear, or when character recognition processing is stopped by a read operation end command or timeout command by the operator's operation, etc. If the character recognition is not successful in (No in step S24), the process returns to step S1.

この場合には、例えば読み取りデータを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 effective area 12, the result of the detailed determination of the size of the character string area 13, and the result of the detailed determination of the inclination of the character string area 13 are all reset to the initial values. These pieces of information are passed to the device control unit 60. The device control unit 60 passes these pieces of information to the display control unit 70. The display control unit 70 performs display control of the display screen 51 of the display unit 50 based on these pieces of information.

そして文字認識処理において文字の認識が成功した場合には(ステップ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 effective area 12, the result of the detailed determination of the size of the character string area 13, and the result of the detailed determination of the inclination of the character string area 13 are all reset to the initial values. These pieces of information are passed to the device control unit 60. The device control unit 60 passes these pieces of information to the display control unit 70. The display control unit 70 performs display control of the display screen 51 of the display unit 50 based on these pieces of information.

図13は、文字列領域13から認識した文字列を表示する表示画面51の一例を図示した平面図である。
文字認識処理において文字の認識が成功した場合には、表示画面51の読み取りステータス表示部511に「読み取り成功」の文字が表示されるとともに、表示画面51の読み取り結果表示部512に認識された文字列が表示される。
FIG. 13 is a plan view illustrating an example of a display screen 51 that displays a character string recognized from the character string region 13.
When the character recognition is successful in the character recognition process, the character “reading success” is displayed on the reading status display unit 511 of the display screen 51 and the character recognized by the reading result display unit 512 of the display screen 51 is displayed. A column is displayed.

10 撮像部
20 演算処理部
30 外部入出力部
40 操作スイッチ部
50 表示部
60 デバイス制御部
70 表示制御部
100 ハンディスキャナ
DESCRIPTION OF SYMBOLS 10 Imaging part 20 Arithmetic processing part 30 External input / output part 40 Operation switch part 50 Display part 60 Device control part 70 Display control part 100 Handy scanner

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.
請求項1に記載の携帯型電子機器において、前記演算処理装置は、前記文字列領域が前記読み取り有効領域内にあることを条件として、前記文字列領域のサイズが予め設定した有効サイズ範囲内か否かを判定し、その判定結果を前記報知装置で報知する、携帯型電子機器。   The portable electronic device according to claim 1, wherein the arithmetic processing unit determines whether the size of the character string area is within a preset effective size range on the condition that the character string area is in the reading effective area. A portable electronic device that determines whether or not and notifies the determination result by the notification device. 請求項2に記載の携帯型電子機器において、前記演算処理装置は、前記文字列領域のサイズが前記有効サイズ範囲内でない場合には、さらに前記文字列領域のサイズが前記有効サイズ範囲より大きいのか小さいのかを判定し、その判定結果を前記報知装置で報知する、携帯型電子機器。   3. The portable electronic device according to claim 2, wherein, when the size of the character string region is not within the effective size range, the arithmetic processing device further determines whether the size of the character string region is larger than the effective size range. A portable electronic device that determines whether the information is small and notifies the determination result by the notification device. 請求項1〜3のいずれか1項に記載の携帯型電子機器において、前記演算処理装置は、前記文字列領域が前記読み取り有効領域内にあることを条件として、前記文字列領域の傾きが予め設定した有効傾き範囲内か否かを判定し、その判定結果を前記報知装置で報知する、携帯型電子機器。   The portable electronic device according to any one of claims 1 to 3, wherein the arithmetic processing device has an inclination of the character string area in advance on condition that the character string area is within the effective reading area. A portable electronic device that determines whether or not it is within a set effective inclination range and notifies the determination result by the notification device. 請求項4に記載の携帯型電子機器において、前記演算処理装置は、前記文字列領域の傾きが前記有効傾き範囲内でない場合には、さらに前記文字列領域の傾き方向を判定し、その判定結果を前記報知装置で報知する、携帯型電子機器。   5. The portable electronic device according to claim 4, wherein when the inclination of the character string area is not within the effective inclination range, the arithmetic processing device further determines an inclination direction of the character string area, and a determination result thereof A portable electronic device that notifies the information by the notification device.
JP2016132675A 2016-07-04 2016-07-04 Portable type electronic device Pending JP2018005622A (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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