JP2004213061A - Optical character reader and reading method of two-dimensional code - Google Patents

Optical character reader and reading method of two-dimensional code Download PDF

Info

Publication number
JP2004213061A
JP2004213061A JP2002378272A JP2002378272A JP2004213061A JP 2004213061 A JP2004213061 A JP 2004213061A JP 2002378272 A JP2002378272 A JP 2002378272A JP 2002378272 A JP2002378272 A JP 2002378272A JP 2004213061 A JP2004213061 A JP 2004213061A
Authority
JP
Japan
Prior art keywords
dimensional code
reading
code
configuration
scanner
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
JP2002378272A
Other languages
Japanese (ja)
Inventor
Daisuke Nakada
大介 中田
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2002378272A priority Critical patent/JP2004213061A/en
Publication of JP2004213061A publication Critical patent/JP2004213061A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Character Input (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an optical character reader that can realize a convenient two-dimensional code reading function by a simple and low-cost structure, and a reading method of a two-dimensional code that uses a scanner. <P>SOLUTION: A two-dimensional code detection part 15 uses parameters supplied by a format control management part 13 which indicate the structure of a QR code symbol recorded on a form to be read, to detect an image pattern of the QR code from an image of the form acquired by a scanner part 11 that scans the form, and to acquire numerically patterned code information from a coded area of the QR code, and then supplies the code information to a two-dimensional code reading part 16. The two-dimensional code reading part 16 decodes the code information to output data such as numerals, alphabets and kanji depending on the coding pattern recorded on the coded area of the QR code symbol via a reading output part 17. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、フォーマットコントロール(FC)情報を用いて帳票に記録(印字)された情報を読み取る光学的文字読取装置、およびスキャナを用いた2次元コードの読取方法に関する。
【0002】
【従来の技術】
バーコードシンボルは、各分野で、省力化、自動化のための情報入力手段として使用されている。バーコードが横方向にしか情報をもたないのに対して、2次元コードは、縦、横方向に情報をもつことで、大容量のデータを記録することができる。この2次元コードとして、近年では、漢字データ等を効率的に記録することができるQRコードが広く用いられる(例えば、非特許文献1参照)。
【0003】
このQRコードのシンボル構成例を図9に示す。QRコードは、符号化領域と機能パターンとにより構成される。機能パターンには、図10に示すような三隅に配置される3個の位置検出パターン(Pa)、図11に示すような位置あわせパターン(Pb)等があり、更にその他にも、分離パターン、タイミングパターン、拡張パターン等がある。尚、位置あわせパターン(Pb)はモデル2、拡張パターンはモデル1に用いられる。2次元コードには、上記したQRコード以外に、Vereコード、DataMatrix等のマトリックス型2次元コードがある。従来では、上記した2次元コード読取に、それぞれ専用のバーコードリーダが用いられていた(例えば、特許文献1参照)。
【0004】
上記した2次元コードの記録領域を所定フォーマット形式の帳票に設けて、2次元コードを含めた帳票読取を行おうとしたとき、従来では、帳票読取と2次元コード読取とをそれぞれ異なる読取機構で別々に読み取らなければならなかった。
【0005】
【非特許文献1】
http;//www.keyence.co.jp/barcode/2jigenbacic.html
【0006】
【特許文献1】
特開平7−254037号公報(図17)
【0007】
【発明が解決しようとする課題】
上述したように、所定フォーマット形式の帳票上に2次元コードの記録領域を設けて、2次元コードを含めた帳票読取を行おうとしたとき、従来では、帳票読取と2次元コード読取とをそれぞれ異なる読取機構で別々に読み取らなければならず、従って、帳票の取り扱いが容易でなく使い勝手が悪いという問題が生じるとともに、読取機構全体が大型化して、コストが嵩み、しかも大きなスペースが必要になる等、種々の問題があった。
【0008】
本発明は上記実情に鑑みなされたもので、簡単かつ安価な構成で、使い勝手のよい2次元コードの読取機能を実現できる光学的文字読取装置、およびスキャナを用いた2次元コードの読取方法を提供することを目的とする。
【0009】
【課題を解決するための手段】
本発明は、フォーマットコントロール(FC;Format Control)により2次元コード読取を支援することで、帳票に記録された2次元コードの読取を可能にした光学的文字読取装置を特徴とする。
【0010】
また、本発明は、2次元コードシンボルの構成を予め定義しておくことで、スキャナを用いた2次元コード読取を可能にした2次元コードの読取方法を特徴とする。
【0011】
即ち、本発明は、帳票上を走査して帳票に記録されたイメージを読み取るスキャナ部と、前記スキャナ部で読み取る被帳票に記録される2次元コードシンボルの構成を定義したフォーマットコントロールと、前記フォーマットコントロールの情報をもとに、前記スキャナ部で読み取った帳票イメージから帳票に記録した2次元コードを読み取る読取手段とを具備した光学的文字読取装置を特徴とする。
【0012】
また、本発明は、前記光学的文字読取装置に於いて、前記2次元コードシンボルの構成を前記フォーマットコントロールに定義するための所定の設定画面をもつグラフィックユーザインタフェースを更に具備したことを特徴とする。
【0013】
また、本発明は、スキャナを用いた2次元コードの読取方法であって、前記スキャナが読み取る帳票に記録される2次元コードシンボルの構成を読取支援情報として保存しておき、前記読取支援情報をもとに、前記スキャナで読み取った帳票イメージから前記帳票に記録された2次元コードを読み取ることを特徴とする。
【0014】
【発明の実施の形態】
以下、図面を参照して本発明の実施形態を説明する。
【0015】
図1は本発明の実施形態に於ける光学的文字読取装置の本発明に関係する要部の構成を示すブロック図である。
【0016】
この図1に示す光学的文字読取装置は、スキャナ部11と、フォーマットコントロール作成部12と、フォーマットコントロール管理部13と、フォーマットコントロール記憶部14と、2次元コード検出部15と、2次元コード読取部16と、読取出力部17とを具備して構成される。
【0017】
スキャナ部11は、帳票上を走査して、その帳票に記録された画像を読み込む。この実施形態では、帳票に記録された、図10、図11に示すような機能パターンをもつ、図9に示すようなQRコードシンボルのイメージを読み取る。
【0018】
フォーマットコントロール作成部12は、GUI(Graphical User Interface)により帳票読取に使用するフォーマットコントロール(FC)を作成する。この実施形態では、後述する図3に示されるようなQRコード読取フィールド用のGUI画面を用いて、QRコードシンボルの印字領域、サイズ、モジュール数、位置検出パターンのサイズ、位置あわせパターンのサイズと位置、型番等の少なくともいずれかを含んだQRコードシンボルの構成を定義したフォーマットコントロール(FC)を作成する。
【0019】
フォーマットコントロール管理部13は、フォーマットコントロール部12で作成されたフォーマットコントロール(FC)をフォーマットコントロール記憶部14上で管理する。この実施形態ではフォーマットコントロール作成部12で作成されたQRコードシンボルの構成を示す、QRコードの型番、QRコードシンボルの印字領域、サイズ、モジュール数、位置検出パターンのサイズ、位置あわせパターンのサイズと位置等の各種パラメータが型番単位でフォーマットコントロール記憶部14に記録され、フォーマットコントロール管理部13により管理される。尚、ここで扱うQRコードの型番( version)は、21×21モジュール(1型)から177×177モジュール(40型)までである。
【0020】
2次元コード検出部15は、フォーマットコントロール管理部13より取り出したQRコードシンボルの構成を示すパラメータを用いて、スキャナ部11が帳票上を走査した取得した帳票のイメージからQRコードの画像パターンを検出し、そのQRコードの符号化領域から数値パターン化されたコード情報を取得する。
【0021】
2次元コード読取部16は上記2次元コード検出部15が取得したコード情報をデコードし、QRコードシンボルの符号化領域に記録された符号化パターンに従うデータを生成(復元)する。
【0022】
出力部17は上記2次元コード読取部16でデコードした、数字、英字、漢字等のデータを、例えば表示若しくは印字出力する。
【0023】
図2は上記実施形態に於ける2次元コード読取用フォーマットコントロールの設定手順を示すフローチャートである。
【0024】
図3乃至図8はそれぞれ上記図2に示す2次元コード読取用フォーマットコントロールの設定手順に従うGUI画面の構成並びに状態遷移を示す図である。この図3乃至図8に示すGUI画面は、標準的なOCRの各種読取フィールドに加え、2次元コードフィールドが選択対象として設けられたフィールド種類選択エリア101と、このフィールド種類選択エリア101で2次元コードフィールドが選択されている際に表示される、QRコードシンボルの構成を設定するパラメータ設定エリア103と、このパラメータ設定エリア103の設定内容が反映される帳票イメージの表示エリア102とを有して構成される。尚、上記フィールド種類選択エリア101はQRコードシンボルの構成を設定するGUI画面以外の、例えばスキャナ部11が読み取る被読取帳票の帳票サイズ、帳票の向き、スキャナ解像度等を設定するGUI画面上に於いても表示され、このフィールド種類選択エリア101のプルダウンメニュー上で、例えば手書きフィールド、バーコードフィールド、2次元コードフィールド等、任意の読取フィールドを選択することで、その選択された読取フィールドについてGUI画面上でパラメータ設定が可能となる。
【0025】
ここで、上記各図を参照して本発明の実施形態に於ける動作を説明する。
【0026】
スキャナ部11で読み取る被読取帳票の所定の領域には、図9に示すようなQRコードシンボルが記録されているものとする。この帳票に記録したQRコードのスキャナ読取を支援(助ける)ために、上記QRコードシンボルの構成をフォーマットコントロール作成部12により設定し、QRコード読み取り用のフォーマットコントロール(FC)として、フォーマットコントロール記憶部14に予め登録しておく。この際の登録処理の具体例について図2に示すフローチャート、および図3乃至図8に示すGUI画面を参照して説明する。
【0027】
この実施形態では、まず、スキャナ部11に読み取られる、QRコードシンボルの記録領域をもつ被読取帳票について、標準的なOCRの帳票読取の場合と同様に、帳票サイズ、帳票の向き、スキャナ解像度等を例えばGUI画面を用いて設定する(図2ステップS1)。
【0028】
この設定に従い、上記GUI画面上に、図3に示すように、帳票イメージの表示エリア102が開かれ、その帳票イメージの表示エリア102に上記設定内容に従う帳票イメージが表示される(図2ステップS2)。尚、この設定は帳票のプリスキャンによって設定することも可能である。
【0029】
更に、このGUI画面上のフィールド種類選択エリア101に設けられたプルダウンメニュー上で、2次元コードフィールドを選択することにより、図3に示すように、上記QRコードの構成を定義するためのパラメータ設定エリア103が開かれる(図2ステップS3)。
【0030】
この図3に示すGUI画面上のパラメータ設定エリア103を用いて、被読取帳票上に於けるQRコードシンボルの記録(印字)領域を設定する(図2ステップS4)。ここでは、図4に示すように、帳票の左上を起点として、QRコードシンボルの始点(XSTT,YSTT)および記録領域(WIDTH,HEIGHT)が設定される。この設定は、パラメータ設定エリア103上で数値入力により設定する設定手段、若しくは帳票イメージの表示エリア102をマウス等のポインティングデバイスで操作して座標入力することも可能である。このポインティングデバイスを用いた座標入力では、操作入力された座標値が実時間処理で即座に帳票イメージの表示エリア102、およびパラメータ設定エリア103に反映される。尚、ここでは、所定セル単位のクワイエットゾーン(マージン)を含めてQRコードシンボルの記録領域(図示波線参照)を指定する。また、ここでは上記パラメータ設定エリア103に於いて、次に入力するパラメータの名称(ここではアルファベットの文字列表示を例に示している)を予め設定した順序でパラメータの設定毎に順次更新してゆくパラメータ設定のガイド機能をもつ構成としているが、パラメータ設定エリア103上で個々に入力することも可能である。
【0031】
次にGUI画面上でモジュール数を設定する(図2ステップS5)。尚、モジュール(module)はシンボルを構成する単位正方形のセルであり、1モジュールが1ビットに相当する。ここで扱う(設定可能な)モジュール数は、21×21モジュールから177×177モジュールまでである。
【0032】
ここでのモジュール数の設定は、図5に示すように、型番( version)のプルダウンメニュー104を開き、そのメニューリストから設定するモジュール数の型番(VER)を選択することで、容易に設定が可能である。
【0033】
次にGUI画面上でQRコードのシンボルサイズ(クワイエットゾーンを除いたシンボルの大きさ)を設定する(図2ステップS6)。この実施形態では、図6に示すように、GUI画面上のパラメータ設定エリア103に、シンボル(実体)の縦横サイズ(XL,YL)を設定する。この設定は、パラメータ設定エリア103上で数値入力により設定する設定手段、若しくは帳票イメージの表示エリア102をマウス等のポインティングデバイスで操作して座標入力することも可能である。このポインティングデバイスを用いた座標入力では、操作入力された座標値が実時間処理で即座に帳票イメージの表示エリア102、およびパラメータ設定エリア103に反映される。
【0034】
次にGUI画面上で、図10および図11に示す、QRコードシンボルの3隅に設けられた位置検出パターン(Pa)の向きおよびサイズを設定する(図2ステップS7)。この実施形態では、図7に示すように、パラメータ設定エリア103上の位置検出パターンの向き(ROT)を設定するパラメータ入力フィールド上でプルダウンメニューを開いて位置検出パターン(Pa)の向き(ROT)を設定することにより、その設定に従った3隅に位置検出パターン(Pa)がグレーゾーン若しくはグレーパターンで表示されるものとする。尚、位置検出パターンの向き(ROT)を設定するプルダウンメニューに於いては、正位置と各90度単位で回転する各位置との中から任意の向きが選択可能である。この位置検出パターン(Pa)のサイズ(XFP,YFP)の設定は、パラメータ設定エリア103上で数値入力により設定する設定手段、若しくは帳票イメージの表示エリア102をマウス等のポインティングデバイスで操作して座標入力することも可能である。このポインティングデバイスを用いた座標入力では、操作入力された座標値が実時間処理で即座に帳票イメージの表示エリア102、およびパラメータ設定エリア103に反映される。
【0035】
次にGUI画面上で、図11に示す位置あわせパターン(Pb)のサイズと座標を設定する(図2ステップS8)。尚、この位置あわせパターン(Pb)の設定は、モデル2のQRコードシンボルについてのみであり、サイズは上記選択した型番に固有のものであることから、ここでは位置あわせパターン(Pb)の領域を指定することで、その各中心座標値(XAP,YAP)が設定され、その設定内容が帳票イメージの表示エリア102、およびパラメータ設定エリア103に反映される。この実施形態では、位置あわせパターン(Pb)の領域を設定することにより、その設定に従った位置あわせパターン(Pb)が帳票イメージの表示エリア102にグレーゾーン若しくはグレーパターンで表示されるものとする。
【0036】
このようにして、フォーマットコントロール作成部12により、図3乃至図8に示すGUI画面上にて、スキャナ部11で読み取る被読取帳票に記録(印字)されたQRコードシンボルの構成を定義した各種のパラメータが設定され、QRコード読取用のフォーマットコントロールとしてフォーマットコントロール記憶部14に記憶されて、フォーマットコントロール管理部13により管理される。
【0037】
次に、上記フォーマットコントロール記憶部14に記憶されたQRコード読取用のフォーマットコントロールを用いて、QRコードシンボルを記録(印字)した帳票から、QRコードを読み取る処理動作を説明する。
【0038】
スキャナ部11は、上記帳票上を走査して、その帳票に記録された画像を読み込む。ここでは、帳票に記録された図9に示すようなQRコードシンボルのイメージを読み取る。
【0039】
フォーマットコントロール管理部13は、上記スキャナ部11で読み取る帳票に対して、その帳票に記録(印字)されるQRコードシンボルのフォーマットコントロールをフォーマットコントロール記憶部14から読み出し、2次元コード検出部15に供給する。
【0040】
2次元コード検出部15は、上記フォーマットコントロール管理部13より供給されたQRコードシンボルのフォーマットコントロール、即ち被読取帳票に記録(印字)されたQRコードシンボルの構成を示すパラメータを用いて、スキャナ部11が帳票上を走査した取得した帳票のイメージからQRコードの画像パターンを検出し、そのQRコードの符号化領域から数値パターン化されたコード情報を取得して、そのコード情報を2次元コード読取部16に供給する。
【0041】
2次元コード読取部16は上記2次元コード検出部15より受けたコード情報をデコードし、QRコードシンボルの符号化領域に記録された符号化パターンに従う、数字、英字、漢字等のデータを生成して、当該データを読取出力部17を介し、表示若しくは印字出力する。
【0042】
このように、スキャナ部11で読み取ったQRコードシンボルについて、予め設定したQRコードシンボルの構成を示すパラメータを用いて、読取支援を行うことで、スキャナを用いた信頼性の高い2次元コード読取が可能となる。
【0043】
尚、上記した実施形態では、QRコードシンボルの印字領域、サイズ、モジュール数、位置検出パターンのサイズ、位置あわせパターンのサイズと位置について、そのすべてを設定したが、これに限らず、その一部の必須パラメータのみを設定してもよい。例えば位置検出パターンのサイズから1セルの大きさを割り出すことができ、1セルの大きさ分かればシンボル全体の大きさ(セル数=モジュール数)が分かる。このように規格に基づいて波及的に割り出すことのできるパラメータについては、その設定を省略することが可能である。また、上記したQRコード読取支援のためのフォーマットコントロールとして、例えばQRコードシンボルの符号化領域の字種、桁数、フィールド数、誤り訂正レベル、フォーマット情報、タイミングパターン、その他の機能パターン等を必要に応じて適宜定義することにより、スキャナを用いた、より信頼性の高い2次元コード読取が可能となる。
【0044】
【発明の効果】
以上詳記したように本発明によれば、簡単かつ安価な構成で、使い勝手のよい2次元コードの読取機能を実現できる光学的文字読取装置、およびスキャナを用いた2次元コードの読取方法が提供できる。
【図面の簡単な説明】
【図1】本発明の実施形態に於ける光学的文字読取装置の本発明に関係する要部の構成を示すブロック図。
【図2】上記実施形態に於ける2次元コード読取用フォーマットコントロールの設定手順を示すフローチャート。
【図3】上記実施形態に於けるGUI画面の構成並びに状態遷移を示す図。
【図4】上記実施形態に於けるGUI画面の構成並びに状態遷移を示す図。
【図5】上記実施形態に於けるGUI画面の構成並びに状態遷移を示す図。
【図6】上記実施形態に於けるGUI画面の構成並びに状態遷移を示す図。
【図7】上記実施形態に於けるGUI画面の構成並びに状態遷移を示す図。
【図8】上記実施形態に於けるGUI画面の構成並びに状態遷移を示す図。
【図9】本発明の実施形態で適用されるQRコードシンボルの構成例を示す図。
【図10】上記実施形態で適用されるQRコードシンボルの位置検出パターンを示す図。
【図11】上記実施形態で適用されるQRコードシンボルの位置あわせパターンを示す図。
【符号の説明】
11…スキャナ部、12…フォーマットコントロール作成部、13…フォーマットコントロール管理部、14…フォーマットコントロール記憶部、15…2次元コード検出部、16…2次元コード読取部、17…出力部。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an optical character reading device that reads information recorded (printed) on a form using format control (FC) information, and a two-dimensional code reading method using a scanner.
[0002]
[Prior art]
Barcode symbols are used in various fields as information input means for labor saving and automation. While a barcode has information only in the horizontal direction, a two-dimensional code can record a large amount of data by having information in the vertical and horizontal directions. In recent years, a QR code capable of efficiently recording kanji data and the like has been widely used as the two-dimensional code (for example, see Non-Patent Document 1).
[0003]
FIG. 9 shows a symbol configuration example of this QR code. The QR code is composed of an encoding area and a function pattern. The functional patterns include three position detection patterns (Pa) arranged at three corners as shown in FIG. 10, a positioning pattern (Pb) as shown in FIG. 11, and the like. There are a timing pattern, an extension pattern and the like. The alignment pattern (Pb) is used for model 2 and the extended pattern is used for model 1. In addition to the QR code described above, the two-dimensional code includes a matrix type two-dimensional code such as a Vere code and DataMatrix. Conventionally, dedicated bar code readers have been used for the two-dimensional code reading described above (for example, see Patent Document 1).
[0004]
Conventionally, when the above-described two-dimensional code recording area is provided in a form of a predetermined format to read a form including the two-dimensional code, conventionally, the form reading and the two-dimensional code reading are separately performed by different reading mechanisms. Had to read.
[0005]
[Non-patent document 1]
http; // www. keyence. co. jp / barcode / 2jigenbacic. html
[0006]
[Patent Document 1]
JP-A-7-254037 (Fig. 17)
[0007]
[Problems to be solved by the invention]
As described above, when a recording area of a two-dimensional code is provided on a form in a predetermined format to read a form including a two-dimensional code, conventionally, the form reading and the two-dimensional code reading are different from each other. The documents must be read separately by the reading mechanism. Therefore, there is a problem that the handling of the form is not easy and the usability is poor. In addition, the entire reading mechanism becomes large, the cost increases, and a large space is required. There were various problems.
[0008]
The present invention has been made in view of the above circumstances, and provides an optical character reading device capable of realizing a convenient two-dimensional code reading function with a simple and inexpensive configuration, and a two-dimensional code reading method using a scanner. The purpose is to do.
[0009]
[Means for Solving the Problems]
The present invention is characterized by an optical character reading device that enables reading of a two-dimensional code recorded on a form by supporting two-dimensional code reading by a format control (FC).
[0010]
In addition, the present invention is characterized by a two-dimensional code reading method in which a two-dimensional code can be read using a scanner by defining the configuration of the two-dimensional code symbol in advance.
[0011]
That is, the present invention provides a scanner unit that scans a form and reads an image recorded on the form, a format control that defines the configuration of a two-dimensional code symbol recorded on a form to be read by the scanner unit, An optical character reading apparatus comprising: reading means for reading a two-dimensional code recorded on a form from a form image read by the scanner unit based on control information.
[0012]
Further, the present invention is characterized in that the optical character reading device further comprises a graphic user interface having a predetermined setting screen for defining the configuration of the two-dimensional code symbol in the format control. .
[0013]
The present invention also relates to a method of reading a two-dimensional code using a scanner, wherein a configuration of a two-dimensional code symbol recorded on a form read by the scanner is stored as read support information, and the read support information is stored in the form. The two-dimensional code recorded on the form is read from the form image read by the scanner.
[0014]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0015]
FIG. 1 is a block diagram showing a configuration of a main part of an optical character reading apparatus according to an embodiment of the present invention, which is related to the present invention.
[0016]
The optical character reading apparatus shown in FIG. 1 includes a scanner unit 11, a format control creation unit 12, a format control management unit 13, a format control storage unit 14, a two-dimensional code detection unit 15, and a two-dimensional code reading unit. And a reading output unit 17.
[0017]
The scanner unit 11 scans a form and reads an image recorded on the form. In this embodiment, an image of a QR code symbol as shown in FIG. 9 having a function pattern as shown in FIGS. 10 and 11 recorded on a form is read.
[0018]
The format control creating unit 12 creates a format control (FC) used for reading a form by using a GUI (Graphical User Interface). In this embodiment, a printing area, a size, the number of modules, a size of a position detection pattern, a size of a position detection pattern, and a size of a positioning pattern are used by using a GUI screen for a QR code reading field as shown in FIG. A format control (FC) defining a configuration of a QR code symbol including at least one of a position, a model number, and the like is created.
[0019]
The format control management unit 13 manages the format control (FC) created by the format control unit 12 on the format control storage unit 14. In this embodiment, the QR code symbol number, the print area and size of the QR code symbol, the number of modules, the size of the position detection pattern, the size of the position detection pattern, the size of the alignment pattern, and the configuration of the QR code symbol created by the format control creation unit 12 are shown. Various parameters such as the position are recorded in the format control storage unit 14 for each model number, and are managed by the format control management unit 13. The model numbers (versions) of the QR codes handled here are from 21 × 21 modules (1 type) to 177 × 177 modules (40 type).
[0020]
The two-dimensional code detection unit 15 detects the image pattern of the QR code from the acquired image of the form scanned by the scanner unit 11 using the parameter indicating the configuration of the QR code symbol extracted from the format control management unit 13. Then, code information in a numerical pattern is obtained from the coding area of the QR code.
[0021]
The two-dimensional code reading unit 16 decodes the code information acquired by the two-dimensional code detection unit 15, and generates (restores) data according to the coding pattern recorded in the coding area of the QR code symbol.
[0022]
The output unit 17 displays, for example, or prints out data such as numbers, English characters, and Chinese characters decoded by the two-dimensional code reading unit 16.
[0023]
FIG. 2 is a flowchart showing a setting procedure of the format control for reading a two-dimensional code in the embodiment.
[0024]
FIGS. 3 to 8 are views showing the configuration and state transition of the GUI screen according to the setting procedure of the format control for two-dimensional code reading shown in FIG. The GUI screens shown in FIGS. 3 to 8 include a field type selection area 101 in which a two-dimensional code field is provided as a selection target in addition to various standard OCR reading fields, and a two-dimensional It has a parameter setting area 103 for setting the configuration of a QR code symbol displayed when a code field is selected, and a form image display area 102 on which the setting contents of the parameter setting area 103 are reflected. Be composed. The field type selection area 101 is provided on a GUI screen for setting the configuration of the QR code symbol, for example, a form size of the form to be read, a form orientation, a scanner resolution, and the like read by the scanner unit 11. By selecting an arbitrary reading field such as a handwriting field, a barcode field, or a two-dimensional code field on the pull-down menu of the field type selection area 101, a GUI screen is displayed for the selected reading field. Parameter setting becomes possible above.
[0025]
Here, the operation in the embodiment of the present invention will be described with reference to the above-described drawings.
[0026]
It is assumed that a QR code symbol as shown in FIG. 9 is recorded in a predetermined area of the form to be read by the scanner unit 11. In order to support (help) the scanner reading of the QR code recorded on this form, the format of the QR code symbol is set by the format control creating unit 12, and the format control storage unit is used as a format control (FC) for QR code reading. 14 in advance. A specific example of the registration process at this time will be described with reference to the flowchart shown in FIG. 2 and the GUI screens shown in FIGS.
[0027]
In this embodiment, first, for a form to be read having a QR code symbol recording area read by the scanner unit 11, the form size, form direction, scanner resolution, etc., as in the case of standard OCR form reading. Is set using, for example, a GUI screen (step S1 in FIG. 2).
[0028]
According to this setting, a form image display area 102 is opened on the GUI screen as shown in FIG. 3, and the form image according to the setting contents is displayed in the form image display area 102 (step S2 in FIG. 2). ). This setting can also be made by pre-scanning the form.
[0029]
Further, by selecting a two-dimensional code field on a pull-down menu provided in a field type selection area 101 on the GUI screen, as shown in FIG. 3, parameter setting for defining the configuration of the QR code is performed. The area 103 is opened (FIG. 2, step S3).
[0030]
Using the parameter setting area 103 on the GUI screen shown in FIG. 3, the recording (printing) area of the QR code symbol on the form to be read is set (step S4 in FIG. 2). Here, as shown in FIG. 4, starting points (XSTT, YSTT) and recording areas (WIDTH, HEIGHT) of the QR code symbol are set starting from the upper left of the form. For this setting, it is possible to input coordinates by operating setting means for setting by numerical input on the parameter setting area 103 or operating the display area 102 of the form image with a pointing device such as a mouse. In the coordinate input using the pointing device, the coordinate values input by the operation are immediately reflected in the display area 102 of the form image and the parameter setting area 103 in real time processing. Here, the recording area (see the dashed line in the figure) of the QR code symbol is specified, including the quiet zone (margin) of a predetermined cell unit. Here, in the parameter setting area 103, the name of the parameter to be input next (here, the character string display of the alphabet is shown as an example) is sequentially updated in a preset order for each parameter setting. Although it has a configuration having a guide function for parameter setting, it is also possible to input individually on the parameter setting area 103.
[0031]
Next, the number of modules is set on the GUI screen (step S5 in FIG. 2). Note that a module is a unit square cell that forms a symbol, and one module corresponds to one bit. The number of modules handled (settable) here is from 21 × 21 modules to 177 × 177 modules.
[0032]
The number of modules can be set easily by opening the model number (version) pull-down menu 104 and selecting the module number (VER) from the menu list as shown in FIG. It is possible.
[0033]
Next, the symbol size of the QR code (the size of the symbol excluding the quiet zone) is set on the GUI screen (step S6 in FIG. 2). In this embodiment, as shown in FIG. 6, the vertical and horizontal sizes (XL, YL) of the symbol (substance) are set in the parameter setting area 103 on the GUI screen. For this setting, it is possible to input coordinates by operating setting means for setting by numerical input on the parameter setting area 103 or operating the display area 102 of the form image with a pointing device such as a mouse. In the coordinate input using the pointing device, the coordinate values input by the operation are immediately reflected in the display area 102 of the form image and the parameter setting area 103 in real time processing.
[0034]
Next, the direction and size of the position detection pattern (Pa) provided at the three corners of the QR code symbol shown in FIGS. 10 and 11 are set on the GUI screen (step S7 in FIG. 2). In this embodiment, as shown in FIG. 7, a pull-down menu is opened on a parameter input field for setting the direction (ROT) of the position detection pattern on the parameter setting area 103, and the direction (ROT) of the position detection pattern (Pa) is opened. Is set, the position detection pattern (Pa) is displayed in a gray zone or a gray pattern at three corners according to the setting. In the pull-down menu for setting the direction (ROT) of the position detection pattern, an arbitrary direction can be selected from the normal position and the positions rotated in units of 90 degrees. The size (XFP, YFP) of the position detection pattern (Pa) is set by setting means for setting by numerical input on the parameter setting area 103, or by operating the form image display area 102 with a pointing device such as a mouse. It is also possible to enter. In the coordinate input using the pointing device, the coordinate values input by the operation are immediately reflected in the display area 102 of the form image and the parameter setting area 103 in real time processing.
[0035]
Next, the size and coordinates of the alignment pattern (Pb) shown in FIG. 11 are set on the GUI screen (step S8 in FIG. 2). Note that the setting of the alignment pattern (Pb) is only for the QR code symbol of the model 2, and the size is specific to the selected model number. By designating, the respective center coordinate values (XAP, YAP) are set, and the set contents are reflected in the display area 102 of the form image and the parameter setting area 103. In this embodiment, by setting the area of the alignment pattern (Pb), the alignment pattern (Pb) according to the setting is displayed in the form image display area 102 in a gray zone or gray pattern. .
[0036]
In this manner, the format control creation unit 12 defines various types of QR code symbols recorded (printed) on the form to be read by the scanner unit 11 on the GUI screens shown in FIGS. The parameters are set, stored in the format control storage unit 14 as a format control for QR code reading, and managed by the format control management unit 13.
[0037]
Next, a processing operation of reading a QR code from a form on which a QR code symbol is recorded (printed) using the format control for reading a QR code stored in the format control storage unit 14 will be described.
[0038]
The scanner unit 11 scans the form and reads an image recorded on the form. Here, an image of a QR code symbol as shown in FIG. 9 recorded on a form is read.
[0039]
The format control management unit 13 reads the format control of the QR code symbol recorded (printed) on the form from the format control storage unit 14 for the form read by the scanner unit 11 and supplies the format control to the two-dimensional code detection unit 15. I do.
[0040]
The two-dimensional code detection unit 15 uses the format control of the QR code symbol supplied from the format control management unit 13, that is, the scanner unit using the parameter indicating the configuration of the QR code symbol recorded (printed) on the read form. Numeral 11 detects a QR code image pattern from the acquired form image obtained by scanning the form, obtains numerical pattern-coded code information from the QR code encoding area, and reads the code information into a two-dimensional code. To the unit 16.
[0041]
The two-dimensional code reading unit 16 decodes the code information received from the two-dimensional code detection unit 15 and generates data such as numbers, alphabets, and kanji according to the encoding pattern recorded in the encoding area of the QR code symbol. Then, the data is displayed or printed out via the reading output unit 17.
[0042]
As described above, by performing reading support for the QR code symbol read by the scanner unit 11 using the parameter indicating the configuration of the QR code symbol set in advance, highly reliable two-dimensional code reading using the scanner can be performed. It becomes possible.
[0043]
In the above-described embodiment, all of the QR code symbol print area, size, number of modules, size of the position detection pattern, and size and position of the alignment pattern are set. However, the present invention is not limited to this. May be set. For example, the size of one cell can be determined from the size of the position detection pattern. If the size of one cell is known, the size of the entire symbol (the number of cells = the number of modules) can be known. As described above, it is possible to omit the setting of the parameters that can be determined based on the standard. Also, as the format control for supporting the QR code reading described above, for example, the character type, the number of digits, the number of fields, the error correction level, the format information, the timing pattern, the other functional patterns, etc. of the encoding area of the QR code symbol are required. , A more reliable two-dimensional code reading using a scanner becomes possible.
[0044]
【The invention's effect】
As described above in detail, according to the present invention, an optical character reading device capable of realizing an easy-to-use two-dimensional code reading function with a simple and inexpensive configuration, and a two-dimensional code reading method using a scanner are provided. it can.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a main part of an optical character reading apparatus according to an embodiment of the present invention, which is related to the present invention.
FIG. 2 is a flowchart showing a setting procedure of a format control for reading a two-dimensional code in the embodiment.
FIG. 3 is a view showing a configuration and a state transition of a GUI screen in the embodiment.
FIG. 4 is a view showing a configuration and a state transition of a GUI screen in the embodiment.
FIG. 5 is a view showing a configuration and a state transition of a GUI screen in the embodiment.
FIG. 6 is a view showing a configuration and a state transition of a GUI screen in the embodiment.
FIG. 7 is a view showing a configuration and a state transition of a GUI screen in the embodiment.
FIG. 8 is a view showing a configuration and a state transition of a GUI screen in the embodiment.
FIG. 9 is a diagram showing a configuration example of a QR code symbol applied in the embodiment of the present invention.
FIG. 10 is a view showing a position detection pattern of a QR code symbol applied in the embodiment.
FIG. 11 is a diagram showing a QR code symbol alignment pattern applied in the embodiment.
[Explanation of symbols]
11 scanner unit, 12 format control creation unit, 13 format control management unit, 14 format control storage unit, 15 two-dimensional code detection unit, 16 two-dimensional code reading unit, 17 output unit.

Claims (7)

スキャナ部と、
前記スキャナ部で読み取る被帳票に記録される2次元コードシンボルの構成を定義したフォーマットコントロールと、
前記フォーマットコントロールの情報をもとに、前記スキャナ部で読み取った帳票イメージから帳票に記録した2次元コードを読み取る読取手段と
を具備したことを特徴とする光学的文字読取装置。
A scanner unit,
A format control defining a configuration of a two-dimensional code symbol recorded on a form to be read by the scanner unit;
An optical character reading device comprising: reading means for reading a two-dimensional code recorded on a form from a form image read by the scanner unit based on the information of the format control.
前記フォーマットコントロールには、前記2次元コードシンボルの印字領域、サイズ、モジュール数、位置検出パターンのサイズ、位置あわせパターンのサイズと位置、型番の少なくともいずれかが2次元コードシンボルの構成として定義される請求項1記載の光学的文字読取装置。In the format control, at least one of a print area, a size, the number of modules, a size of a position detection pattern, a size and a position of an alignment pattern, and a model number of the two-dimensional code symbol is defined as a configuration of the two-dimensional code symbol. The optical character reading device according to claim 1. 前記フォーマットコントロールには、前記2次元コードの符号化領域の字種、桁数、フィールド数、誤り訂正レベル、フォーマット情報、タイミングパターン、その他の機能パターン構成の少なくともいずれかが定義される請求項1または2記載の光学的文字読取装置。2. The format control defines at least one of a character type, a digit number, a field number, an error correction level, format information, a timing pattern, and other functional pattern configurations of an encoding area of the two-dimensional code. Or the optical character reader according to 2. 前記2次元コードシンボルの構成を前記フォーマットコントロールに定義するグラフィックユーザインタフェースを更に具備した請求項1または2記載の光学的文字読取装置。3. The optical character reading device according to claim 1, further comprising a graphic user interface for defining a configuration of the two-dimensional code symbol in the format control. 前記グラフィックユーザインタフェースは、
2次元コードフィールドを含む複数種の帳票読取フィールドから任意のフィールドが選択可能なフィールド種類選択エリアと、
前記フィールド種類選択エリアで前記2次元コードフィールドが選択された際に有効となる、前記2次元コードシンボルの構成を設定するパラメータ設定エリア、および前記パラメータ設定エリアの設定内容が反映される帳票イメージの表示エリアを有する設定画面を具備する請求項4記載の光学的文字読取装置。
The graphic user interface comprises:
A field type selection area in which an arbitrary field can be selected from a plurality of types of form reading fields including a two-dimensional code field;
A parameter setting area for setting the configuration of the two-dimensional code symbol, which is enabled when the two-dimensional code field is selected in the field type selection area, and a form image on which the setting content of the parameter setting area is reflected. The optical character reading device according to claim 4, further comprising a setting screen having a display area.
スキャナを用いた2次元コードの読取方法であって、
前記スキャナが読み取る帳票に記録される2次元コードシンボルの構成を読取支援情報として保存しておき、
前記読取支援情報をもとに、前記スキャナで読み取った帳票イメージから前記帳票に記録された2次元コードを読み取ることを特徴とする2次元コードの読取方法。
A two-dimensional code reading method using a scanner,
The configuration of the two-dimensional code symbol recorded on the form read by the scanner is stored as reading support information,
A two-dimensional code reading method, wherein a two-dimensional code recorded on the form is read from a form image read by the scanner based on the read support information.
スキャナで読取る2次元コードについて、2次元コードシンボルの構成を定義するステップと、
前記定義された2次元コードシンボルの構成内容を保存するステップと、
前記保存された2次元コードシンボルの構成内容を参照して、前記スキャナにより帳票上を走査し、前記帳票に記録された2次元コードを読み取るステップとを具備したことを特徴とする2次元コードの読取方法。
Defining a configuration of a two-dimensional code symbol for the two-dimensional code read by the scanner;
Storing the configuration of the defined two-dimensional code symbol;
Scanning the form with the scanner with reference to the configuration contents of the stored two-dimensional code symbol and reading the two-dimensional code recorded on the form. Reading method.
JP2002378272A 2002-12-26 2002-12-26 Optical character reader and reading method of two-dimensional code Pending JP2004213061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002378272A JP2004213061A (en) 2002-12-26 2002-12-26 Optical character reader and reading method of two-dimensional code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002378272A JP2004213061A (en) 2002-12-26 2002-12-26 Optical character reader and reading method of two-dimensional code

Publications (1)

Publication Number Publication Date
JP2004213061A true JP2004213061A (en) 2004-07-29

Family

ID=32815197

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002378272A Pending JP2004213061A (en) 2002-12-26 2002-12-26 Optical character reader and reading method of two-dimensional code

Country Status (1)

Country Link
JP (1) JP2004213061A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007086936A (en) * 2005-09-20 2007-04-05 Fuji Xerox Co Ltd Method and device for detecting two-dimensional bar code
US8061615B2 (en) 2005-09-20 2011-11-22 Fuji Xerox Co., Ltd. Detection method of two-dimensional code, detection device for the same, and storage medium storing detection program for the same
JP2012018494A (en) * 2010-07-07 2012-01-26 Keyence Corp Bar code symbol reader, bar code symbol reading method, and computer program
US8584949B2 (en) 2011-05-17 2013-11-19 Toshiba Tec Kabushiki Kaisha Code reading apparatus and method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007086936A (en) * 2005-09-20 2007-04-05 Fuji Xerox Co Ltd Method and device for detecting two-dimensional bar code
JP4645384B2 (en) * 2005-09-20 2011-03-09 富士ゼロックス株式会社 Two-dimensional barcode detection method and detection apparatus
US8061615B2 (en) 2005-09-20 2011-11-22 Fuji Xerox Co., Ltd. Detection method of two-dimensional code, detection device for the same, and storage medium storing detection program for the same
JP2012018494A (en) * 2010-07-07 2012-01-26 Keyence Corp Bar code symbol reader, bar code symbol reading method, and computer program
US8584949B2 (en) 2011-05-17 2013-11-19 Toshiba Tec Kabushiki Kaisha Code reading apparatus and method

Similar Documents

Publication Publication Date Title
US9785815B2 (en) Imaging terminal, imaging sensor to determine document orientation based on bar code orientation and methods for operating the same
US6707466B1 (en) Method and system for form recognition and digitized image processing
EP1758045B1 (en) Method for forming 2-dimensional code by laser marking and laser marking device
US5298731A (en) Method for printing and reading for orthogonal bar code patterns
CN102375969B (en) System and method for document processing
EP1416433B1 (en) Active embedded interaction coding
US6600482B1 (en) Method and system for form recognition and digitized image processing
WO1994010652A1 (en) Apparatus and method for a text input system and universal computer input device
EA004418B1 (en) Automatic barcode creation for data transfer and retrieval
JP4271097B2 (en) Automatic correction of machine readable code during image processing
KR100455802B1 (en) Method and apparatus for displaying a time-varying code to a handheld terminal, and method and apparatus for approval and authentication processing by using the same
US20060290999A1 (en) Image processing apparatus and network system
JP2004213061A (en) Optical character reader and reading method of two-dimensional code
US8649055B2 (en) Image processing apparatus and computer readable medium
JP2009295108A (en) Information code reader and information code reading method
JPH0338791A (en) Symbol for confirmation and confirmation device thereof
CA2397151A1 (en) A method and system for form recognition and digitized image processing
KR100829108B1 (en) Apparatus and method for reading 2 dimensional barcode with a pattern gradient calculation function
CN102810171B (en) Chinese-sensible code and construction method thereof
JP3690281B2 (en) Information code
JP4383961B2 (en) Digital information record carrier
JP3853331B2 (en) Digital information recording method
JP2008244545A (en) Image processor
JP2000242751A (en) Code sheet
JP2002216073A (en) Device for reading readable character or the like and method for the same

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050120

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050222

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050628