JPH06103400A - Bar-code checking method for ocr - Google Patents

Bar-code checking method for ocr

Info

Publication number
JPH06103400A
JPH06103400A JP4278115A JP27811592A JPH06103400A JP H06103400 A JPH06103400 A JP H06103400A JP 4278115 A JP4278115 A JP 4278115A JP 27811592 A JP27811592 A JP 27811592A JP H06103400 A JPH06103400 A JP H06103400A
Authority
JP
Japan
Prior art keywords
code
cpu
bar
bar code
ocr
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
JP4278115A
Other languages
Japanese (ja)
Inventor
Tsuneo Meguro
恒雄 目黒
Takeshi Kato
武 加藤
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.)
Hitachi High Tech Corp
Original Assignee
Hitachi Electronics Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Electronics Engineering Co Ltd filed Critical Hitachi Electronics Engineering Co Ltd
Priority to JP4278115A priority Critical patent/JPH06103400A/en
Publication of JPH06103400A publication Critical patent/JPH06103400A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To provide the method for checking a read error of a bar-code mentioned in a business form, etc., in an OCR of a computer system. CONSTITUTION:This device is provided with a recognizing/discriminating means 51 for recognizing and discriminating a general character, etc., mentioned in a business form, etc., and read by a reading part 2, and a bar-code, respectively, decoding means 52, 53 for decoding both of the discriminated bar-code, and a numerical code mentioned together therewith, respectively, and a check means 54 for checking the coincidece of decoded both of them, respectively, and when both of them coincide with each other as a result of check by the checking means, it is decided that its bar-code is read correctly and it is transferred to a CPU 4 of a computer system, and in the case of discrepancy, an NG code for showing the discrepancy is generated by an NG code generating means 55, and sent out to the CPU 4. In such a way, trouble generated due to a fact that bar-code data having a read error is inputted to the CPU 4, is prevented.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、コンピュータシステ
ムの入力手段として設けられたOCRにおける、バーコ
ードのチェック方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a barcode check method in an OCR provided as an input means of a computer system.

【0002】[0002]

【従来の技術】コンピュータシステムにおいては、入力
手段としてOCRが使用されている。図2はOCRの基
本構成の概略を示す。文字や、記号または図形などが記
載された帳票類1は、読み取り部2の回転するローラー
21により矢印の方向に移動し、蛍光灯などの光源22によ
り照射され、その反射光が反射遮光板23のスリットを透
過し、ミラー24、レンズ25を経てイメージセンサ26に受
光されて読み取られる。読み取り信号は画像信号処理部
3の処理回路31に入力して文字などに対する画像信号が
作成され、画像信号はデジタル化により2値化または多
値化され、読み取られた1列ごとにレジスタ32に一旦記
憶されて逐次にRAM34に転送され、これより適当なタ
イミングでコンピュータシステムのCPU4に転送され
る。CPU4においては入力したデジタルデータに対し
て所定の処理がなされて、文字などが判読される。な
お、帳票類1に記載された文字などの原稿は、濃度や濃
淡に相違があり、また帳票類1のサイズも各種があるな
ど、帳票類1とその原稿には種々の条件(画像条件)が
あるので、画像信号処理部3に画像条件設定部33を設
け、処理回路31やRAM34などに適切な画像条件が設定
されている。
2. Description of the Related Art In computer systems, OCR is used as an input means. FIG. 2 shows the outline of the basic configuration of the OCR. The form 1 on which characters, symbols or figures are written is a rotating roller of the reading unit 2.
It moves in the direction of the arrow by 21 and is irradiated by a light source 22 such as a fluorescent lamp. The reflected light thereof passes through the slit of the reflection / shield plate 23, is received by the image sensor 26 via the mirror 24 and the lens 25, and is read. The read signal is input to the processing circuit 31 of the image signal processing unit 3 to create an image signal for a character or the like, and the image signal is binarized or multivalued by digitization, and the read signal is stored in the register 32 for each column. The data is once stored and sequentially transferred to the RAM 34, and then transferred to the CPU 4 of the computer system at an appropriate timing. In the CPU 4, the input digital data is subjected to predetermined processing so that characters and the like can be read. It should be noted that the originals such as characters described in the forms 1 have different densities and shades, and the sizes of the forms 1 also vary, so that the forms 1 and the originals have various conditions (image conditions). Therefore, the image signal processing unit 3 is provided with the image condition setting unit 33, and appropriate image conditions are set in the processing circuit 31, the RAM 34, and the like.

【0003】さて、図3に一例を示すバーコードBは商
品や部品などに一般的に広く使用されているが、最近に
おいては、これがOCRの対象とする帳票類1にも採用
される傾向がある。これに対してOCRは従来の文字な
どと同様に、バーコードBも読み取ってCPU4に転送
している。なお、バーコードBには通常、これが示す情
報内容と同一の意味をもつ10進数の数字コードAが並
記されており、数字コードAもバーコードBと同時にO
CRにより読み取られてCPU4に転送されている。
The bar code B, an example of which is shown in FIG. 3, is generally widely used for products and parts, but recently, it tends to be adopted for the forms 1 targeted for OCR. is there. On the other hand, the OCR also reads the bar code B and transfers it to the CPU 4, like the conventional characters. The bar code B usually includes a decimal number code A having the same meaning as the information content indicated by the bar code B, and the number code A is O at the same time as the bar code B.
It is read by the CR and transferred to the CPU 4.

【0004】[0004]

【発明が解決しようとする課題】上記のバーコードBは
図3に例示したように、幅が細いバーと太いバーが所定
の間隔に配列されたものであるが、帳票類1は繰り返し
て多数回使用される場合があり、このためにバーコード
Bは汚れや皺が生じて、OCRの読み取りエラーが発生
することがある。このようなエラーのあるバーコードB
のデータがそのままCPU4に転送されると、無用なト
ラブルを招き好ましくない。これに対して、バーコード
Bに並記され同時に読み取られた数字コードAを利用
し、両者が一致するか否かをチェックすれば、読み取り
エラーによるCPUの無用なトラブルを防止することが
できる。この発明は以上に鑑みてなされたもので、バー
コードBとこれに並記された数字コードAの両者の一致
をチェックし、一致したときバーコードBが正しく読み
取られたとしてCPU4に対して転送する、バーコード
チェック方法を提供することを目的とする。
As shown in FIG. 3, the above-mentioned bar code B is one in which narrow bars and thick bars are arranged at a predetermined interval. However, many forms 1 are repeatedly formed. The bar code B may be used repeatedly, which may cause stains and wrinkles on the barcode B, resulting in an OCR reading error. Bar code B with such an error
If the above data is transferred to the CPU 4 as it is, it is not preferable because it causes unnecessary trouble. On the other hand, if the numerical code A that is written on the bar code B and read at the same time is used to check whether the two match, it is possible to prevent an unnecessary trouble of the CPU due to a reading error. The present invention has been made in view of the above, and checks whether the barcode B and the numerical code A juxtaposed to the barcode B match each other, and when they match, the barcode B is correctly read and transferred to the CPU 4. The purpose is to provide a barcode check method that does.

【0005】[0005]

【課題を解決するための手段】この発明は、OCRのバ
ーコードチェック方法であって、入力手段としてOCR
を有するコンピュータシステムにおいて、被処理の帳票
類に記載され、10進数の数字が並記されたバーコード
を対象とする。帳票類に記載され、OCRにより読み取
られた一般の文字などと、バーコードとをそれぞれ認識
して区別する認識・区別手段と、区別されたバーコード
と数字コードの両者をそれぞれ解読する解読手段、およ
び解読された両者の一致をチェックするチェック手段
を、それぞれ設ける。チェック手段のチェックにより両
者が一致したとき、そのバーコードは正しく読み取られ
てとしてコンピュータシステムのCPUに転送する。両
者が不一致のときは、CPUに対して不一致を示すNG
符号を送出する。
SUMMARY OF THE INVENTION The present invention is an OCR barcode check method, wherein the OCR is used as an input means.
In a computer system having, the target is a barcode described in a form to be processed and in which decimal numbers are written side by side. A recognition / discrimination means for recognizing and discriminating a general character or the like written on a form from an OCR and a barcode, and a deciphering means for deciphering both the discriminated barcode and the numeric code. Checking means for checking the coincidence between the decrypted and decrypted data are provided. When the two match according to the check by the checking means, the bar code is correctly read and is transferred to the CPU of the computer system. If they do not match, NG indicating no match to the CPU
Send the code.

【0006】[0006]

【作用】上記のバーコードチェック方法においては、帳
票類に記載され、OCRにより読み取られた一般の文字
などと、バーコードとは認識・区別手段によりそれぞれ
認識されて区別される。区別されたバーコードと数字コ
ードの両者は解読手段によりそれぞれ解読され、チェッ
ク手段により両者の一致がチェックされる。このチェッ
クの結果、両者が一致しているときは、そのバーコード
は正しく読み取られたものとしてCPUに転送される。
また両者が不一致のときは、CPUに対して不一致を示
すNG符号が送出される。
In the above-mentioned bar code checking method, the ordinary character or the like written on the form and read by the OCR is recognized and distinguished from the bar code by the recognition / separation means. Both of the bar code and the numerical code that have been distinguished are decoded by the decoding means, and the matching means checks the agreement between the two. As a result of this check, if they match, the bar code is transferred to the CPU as if it was correctly read.
When they do not match, an NG code indicating the mismatch is sent to the CPU.

【0007】[0007]

【実施例】図1はこの発明の一実施例における基本構成
の概略を示し、前記した図2のOCRの画像信号処理部
3とCPU4の間に、バーコードチェック部5を設け
る。バーコードチェック部5は、認識・区別手段51と、
バーコード解読手段52、数字コード解読手段53、一致チ
ェック手段54、およびNG符号発生手段55とにより構成
され、各手段は図示のように接続される。なお、各手段
はハード回路、またはソフト処理、またはそれらの混合
のいずれかにより実現することができる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows the outline of the basic construction of an embodiment of the present invention. A bar code check section 5 is provided between the image signal processing section 3 and the CPU 4 of the OCR shown in FIG. The barcode check unit 5 includes a recognition / discrimination means 51,
It is composed of a bar code decoding means 52, a numerical code decoding means 53, a coincidence checking means 54, and an NG code generating means 55, and the respective means are connected as shown. It should be noted that each means can be realized by either a hard circuit, software processing, or a mixture thereof.

【0008】上記の構成によるバーコードのチェック方
法を説明すると、読み取り部2により、帳票類1に記載
された文字などとともに、数字コードAが並記されたバ
ーコードBが読み取られ、読み取り信号は、従来と同様
に画像信号処理部3の処理回路31に入力して画像信号が
作成され、画像信号はデジタル化により2値化または多
値化され、読み取られた1列ごとにレジスタ32に一旦記
憶されて逐次にRAM34に転送され、これより適当なタ
イミングでコンピュータシステムのCPU4に転送され
る。一方、読み取り部2の読み取り信号は分岐してバー
コードチェック部5に入力し、認識・区別手段51により
一般の文字などと、バーコードBとがそれぞれ認識され
て区別され、区別されたバーコードBと数字コードA
は、数字コード解読手段52とバーコード解読手段53によ
りそれぞれ解読される。解読された両者は一致チェック
手段54により一致がチェックされ、一致(OK)したと
きは読み取られたバーコードBが正しいとして、解読さ
れたバーコードBがRAM34に転送され、相当するアド
レスに記憶される。また、不一致(NG)のときは、N
G符号発生手段55により不一致を示すNG符号が発生し
てRAM34に送出され、バーコードBの代わりに記憶さ
れる。記憶された正しいバーコードBまたはNG符号
は、上記の一般の文字などに対するデジタルデータとと
もに、適当なタイミングでCPU4に転送されて所定の
処理がなされる。
To explain the method of checking the bar code having the above structure, the reading section 2 reads the bar code B in which the numerical code A is written together with the characters and the like written on the form 1 and the read signal is Similarly to the conventional case, the image signal is input to the processing circuit 31 of the image signal processing unit 3 to create an image signal, the image signal is binarized or multivalued by digitization, and the read signal is once stored in the register 32 once for each column. It is stored and sequentially transferred to the RAM 34, and then transferred to the CPU 4 of the computer system at an appropriate timing. On the other hand, the read signal of the reading unit 2 is branched and input to the barcode check unit 5, and the recognition / discrimination means 51 recognizes and discriminates a general character and the barcode B from each other, and the discriminated bar code is discriminated. B and number code A
Are decoded by the numerical code decoding means 52 and the bar code decoding means 53, respectively. The coincidence check means 54 checks the coincidence between the decoded two, and when the coincidence is OK, the read bar code B is regarded as correct and the decoded bar code B is transferred to the RAM 34 and stored in the corresponding address. It If they do not match (NG), N
An NG code indicating a mismatch is generated by the G code generation means 55, sent out to the RAM 34, and stored in place of the bar code B. The stored correct bar code B or NG code is transferred to the CPU 4 at a proper timing together with the digital data for the above-mentioned general characters and subjected to predetermined processing.

【0009】[0009]

【発明の効果】以上の説明のとおり、この発明によるバ
ーコードチェック方法においては、帳票類に記載され、
OCRにより読み取られたバーコードと、これに並記さ
れた数字コードは、一般の文字などと区別されて解読さ
れ、チェック手段によりチェックされ、両者が一致して
いるときは、そのバーコードは正しく読み取られたもの
としてCPUに転送され、不一致のときはCPUに対し
てNG符号を送出するもので、汚れや皺などにより読み
取りエラーが発生したバーコードのデータを、そのまま
転送することによりCPUに生ずる無用のトラブルが未
然に防止され、バーコードの読み取りの信頼性の向上に
寄与するものである。
As described above, in the barcode check method according to the present invention, it is described in the form,
The bar code read by the OCR and the numerical code written in parallel with the bar code are deciphered by being distinguished from ordinary characters, checked by the checking means, and when the two match, the bar code is correct. It is transferred to the CPU as read, and when there is a mismatch, the NG code is sent to the CPU. The bar code data in which a read error has occurred due to dirt or wrinkles is directly transferred to the CPU and is generated. Unnecessary troubles are prevented and the reliability of barcode reading is improved.

【図面の簡単な説明】[Brief description of drawings]

【図1】 この発明の一実施例における基本構成の概略
を示す。
FIG. 1 shows an outline of a basic configuration in an embodiment of the present invention.

【図2】 OCRの基本構成の概略を示す。FIG. 2 shows an outline of a basic configuration of OCR.

【図3】 バーコードの一例を示す。FIG. 3 shows an example of a barcode.

【符号の説明】[Explanation of symbols]

1…帳票類、2…読み取り部、21…ローラー、22…光
源、23…反射遮光板、24…ミラー、25…レンズ、26…イ
メージセンサ、3…画像信号処理部、31…処理回路、32
…レジスタ、33…画像条件設定部、34…RAM、4…コ
ンピュータシステムのCPU、5…バーコードチェック
部、51…認識・区別手段、52…バーコード解読手段、53
…数字コード解読手段、54…一致チェック手段、55…N
G符号発生手段。
1 ... Forms, 2 ... Reading section, 21 ... Roller, 22 ... Light source, 23 ... Reflecting light-shielding plate, 24 ... Mirror, 25 ... Lens, 26 ... Image sensor, 3 ... Image signal processing section, 31 ... Processing circuit, 32
... register, 33 ... image condition setting section, 34 ... RAM, 4 ... computer system CPU, 5 ... bar code check section, 51 ... recognition / discrimination means, 52 ... bar code decoding means, 53
... Numerical code decoding means, 54 ... match checking means, 55 ... N
G code generating means.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入力手段としてOCRを有するコンピュ
ータシステムにおいて、被処理の帳票類に記載され、1
0進数の数字コードが並記されたバーコードを対象と
し、前記帳票類に記載され、前記OCRにより読み取ら
れた一般の文字などと、前記バーコードとをそれぞれ認
識して区別する認識・区別手段と、該区別されたバーコ
ードと数字コードの両者をそれぞれ解読する解読手段、
および該解読された両者の一致をチェックするチェック
手段を、それぞれ設け、該チェック手段によりチェック
された該両者が一致したとき、該バーコードが正しく読
み取られてとして、前記コンピュータシステムのCPU
に転送し、該両者が不一致のとき、該CPUに対して該
不一致を示すNG符号を送出することを特徴とする、O
CRのバーコードチェック方法。
1. A computer system having an OCR as an input means, which is written on a form to be processed,
Recognizing / distributing means for recognizing and distinguishing a general character or the like described in the form and read by the OCR from the bar code, targeting a bar code in which 0-digit number codes are written in parallel. And a decoding means for decoding both the distinguished bar code and numerical code,
And a check means for checking whether the decrypted two match each other, and when the both checked by the check means match, the CPU of the computer system determines that the bar code is correctly read.
And when the both do not match, an NG code indicating the mismatch is sent to the CPU.
CR barcode check method.
JP4278115A 1992-09-22 1992-09-22 Bar-code checking method for ocr Pending JPH06103400A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4278115A JPH06103400A (en) 1992-09-22 1992-09-22 Bar-code checking method for ocr

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4278115A JPH06103400A (en) 1992-09-22 1992-09-22 Bar-code checking method for ocr

Publications (1)

Publication Number Publication Date
JPH06103400A true JPH06103400A (en) 1994-04-15

Family

ID=17592834

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4278115A Pending JPH06103400A (en) 1992-09-22 1992-09-22 Bar-code checking method for ocr

Country Status (1)

Country Link
JP (1) JPH06103400A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998048373A1 (en) * 1997-04-24 1998-10-29 United Parcel Service Of America, Inc. System and method for ocr assisted bar code decoding
US6739510B2 (en) * 2002-03-08 2004-05-25 Lockheed Martin Corporation OCR/BCR sequencing priority
JPWO2005096201A1 (en) * 2004-04-01 2007-08-16 松下電器産業株式会社 Ticket management system, terminal device, ticket management server, register device, value conversion method, computer program, and recording medium
JP2020194594A (en) * 2020-09-01 2020-12-03 東芝テック株式会社 Code recognition device
CN112989862A (en) * 2021-02-08 2021-06-18 北京声智科技有限公司 Bar code checking method and device, storage medium and electronic equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998048373A1 (en) * 1997-04-24 1998-10-29 United Parcel Service Of America, Inc. System and method for ocr assisted bar code decoding
US5880451A (en) * 1997-04-24 1999-03-09 United Parcel Service Of America, Inc. System and method for OCR assisted bar code decoding
US6739510B2 (en) * 2002-03-08 2004-05-25 Lockheed Martin Corporation OCR/BCR sequencing priority
JPWO2005096201A1 (en) * 2004-04-01 2007-08-16 松下電器産業株式会社 Ticket management system, terminal device, ticket management server, register device, value conversion method, computer program, and recording medium
JP4676429B2 (en) * 2004-04-01 2011-04-27 パナソニック株式会社 Ticket management system, terminal device, ticket management server, register device, value conversion method, computer program, and recording medium
JP2020194594A (en) * 2020-09-01 2020-12-03 東芝テック株式会社 Code recognition device
CN112989862A (en) * 2021-02-08 2021-06-18 北京声智科技有限公司 Bar code checking method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
EP0230447B1 (en) Checkout control system
US4894522A (en) Interface apparatus
US5179375A (en) Interconnection system for an electronic cash register
JPS6077279A (en) Initiation of character image
JPH03218589A (en) Computer input system using facsimile
JPH06103400A (en) Bar-code checking method for ocr
US5059775A (en) Slip and method of and apparatus for automatic reading of the slip
JPH0253194A (en) Identification label and reader
JP2836773B2 (en) Barcode data detection method and device
KR900007011B1 (en) Erroneous-operation preventive apparatus
JP2937527B2 (en) Barcode reader
JPH03122782A (en) Bar-code reader
JP3002601B2 (en) Barcode reader
JP2669434B2 (en) Optical character reader
JPS5935478B2 (en) Barcode symbol reading method
JP2778870B2 (en) Barcode decoder
JP2762723B2 (en) Barcode reader
JPH01314468A (en) Facsimile connecting device
JPS63266585A (en) Readout control system
JPH0737033A (en) Image reading device
JPS5842510B2 (en) Voting ticket refund device
JPS5818770A (en) Output controlling system of optical character reader
JP3606228B2 (en) Bar code reader
JPH03164884A (en) Handy type bar code scanner
JPS60110091A (en) Character recognizing system