JPH10240852A - Code information reader - Google Patents

Code information reader

Info

Publication number
JPH10240852A
JPH10240852A JP9056891A JP5689197A JPH10240852A JP H10240852 A JPH10240852 A JP H10240852A JP 9056891 A JP9056891 A JP 9056891A JP 5689197 A JP5689197 A JP 5689197A JP H10240852 A JPH10240852 A JP H10240852A
Authority
JP
Japan
Prior art keywords
code information
bar code
barcode
information
reading
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
JP9056891A
Other languages
Japanese (ja)
Inventor
Osamu Nishiguchi
修 西口
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP9056891A priority Critical patent/JPH10240852A/en
Publication of JPH10240852A publication Critical patent/JPH10240852A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent code information from being misread by counting matches while regarding the same code information obtained from the same scanning line as one piece of code information. SOLUTION: When a read frequency (m) recorded in a read frequency area reaches a certain value (>N), a bar code information decision part compares or retrieves pieces of bar code information by scanning lines which are stored in a bar code information area of a bar code information storage memory 24 and judges bar code information having more than one match as correct bar code information. Further, a scanning line number (n) is managed and bar code information obtained from the same scanning line is handled as one piece of bar code information even in case of a match. Therefore, even when code information is misread on only one scanning line and unreadable on other scanning lines, the number of matches of the misread code information does not increase, so the misread code information is never judged as proper code information.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は符号情報読取り装置
に関する。例えば、ラスタースキャン方式のバーコード
リーダのような符号情報読取り装置に関する。
[0001] The present invention relates to a code information reading apparatus. For example, the present invention relates to a code information reading device such as a raster scan type bar code reader.

【0002】[0002]

【従来の技術】従来のラスタースキャン方式のバーコー
ドリーダ1を図1に示す。このバーコードリーダ1にあ
っては、バーコードリーダ1から出射した光ビーム2を
複数本の走査線3に沿ってバーコード4上で走査し、バ
ーコード4で反射した光ビーム2をバーコードリーダ1
で受光し、バーコードリーダ1で受光した光強度信号に
基づいてバーコード情報を解読している。
2. Description of the Related Art FIG. 1 shows a conventional bar code reader 1 of a raster scan system. In the bar code reader 1, a light beam 2 emitted from the bar code reader 1 is scanned on a bar code 4 along a plurality of scanning lines 3, and the light beam 2 reflected by the bar code 4 is converted into a bar code. Reader 1
And bar code information is decoded based on the light intensity signal received by the bar code reader 1.

【0003】このように複数本の走査線3に沿って光ビ
ーム2を走査するラスタースキャン方式は、単一走査線
のバーコードリーダに比較すると、バーコードの読取り
率及び読取り精度を高めることができる利点がある。す
なわち、単一の走査線に沿って光ビームを走査させる方
式であると、バーコードの印刷が薄かったり、バーコー
ドの一部に欠けや汚れがあったり、バーコードを印刷し
たラベルに皺がよっていたりしてバーコードの読取り条
件が悪い場合には、バーコードが読取り不可能になった
り、誤読したりする恐れが高い。そのため、複数本の走
査線3に沿って光ビーム2を走査させて複数箇所でバー
コード4を読み取ることにより、バーコード4の読取り
率及び読取り精度を高めている。
The raster scanning method in which the light beam 2 is scanned along a plurality of scanning lines 3 as described above can improve the bar code reading rate and the reading accuracy as compared with a single scanning line bar code reader. There are advantages that can be done. That is, if the light beam is scanned along a single scanning line, the barcode is printed thinly, a part of the barcode is chipped or dirty, and wrinkles are formed on the barcode printed label. For this reason, when the barcode reading conditions are poor, there is a high possibility that the barcode becomes unreadable or misread. Therefore, by reading the barcode 4 at a plurality of positions by scanning the light beam 2 along the plurality of scanning lines 3, the reading rate and reading accuracy of the barcode 4 are improved.

【0004】このようなラスタースキャン方式のバーコ
ードリーダにあっては、同じバーコードを読み取ってい
るときでも、走査線の位置によって読み取り条件が異な
るので、走査線の位置によっては誤読が生じ、各走査線
に対応して解読されたバーコード情報が互いに一致しな
い場合がある。また、走査線の位置によっては、バーコ
ードを解読不可能な場合もある。そのため、従来のラス
タースキャン方式のバーコードリーダにあっては、各走
査毎に解読したバーコードが所定回数(複数回)連続し
て一致した場合に正しいバーコード情報であると判断し
て読取完了するようにしている。例を挙げると、図2に
示すように走査線ナンバーn=1〜NのN本の走査線
(この走査線の総数Nは、ポリゴンミラーの面数などか
ら決まる)に沿って光ビーム2を走査させることによっ
てバーコードを読み取り、例えば4回連続一致でバーコ
ード読取完了とするバーコードリーダの場合、読取った
バーコード情報が走査線n=j〜j+3で一致したとす
ると、他に異なるバーコード情報が読み取られていたと
しても、走査線n=j〜j+3で読み取ったバーコード
情報を正しいバーコードの読取り情報であると判断して
読取完了する。これによって、バーコードの誤読を防止
して信頼性を高めている。
In such a raster scan type bar code reader, even when the same bar code is being read, the reading conditions are different depending on the position of the scanning line. The barcode information decoded corresponding to the scanning line may not coincide with each other. Further, depending on the position of the scanning line, the bar code may not be able to be decoded. Therefore, in the conventional raster scan type bar code reader, when the bar codes decoded for each scan match a predetermined number of times (a plurality of times) consecutively, it is determined that the bar code information is correct and the reading is completed. I am trying to do it. As an example, as shown in FIG. 2, the light beam 2 is transmitted along N scanning lines of scanning line numbers n = 1 to N (the total number N of the scanning lines is determined by the number of surfaces of the polygon mirror, etc.). For example, in the case of a barcode reader that reads a barcode by scanning, and completes the barcode reading by, for example, four consecutive matches, if the read barcode information matches at scanning lines n = j to j + 3, another bar code is read. Even if the code information has been read, the barcode information read by the scanning lines n = j to j + 3 is determined to be correct barcode read information, and the reading is completed. This prevents erroneous reading of the barcode and improves reliability.

【0005】[0005]

【発明が解決しようとする課題】上記のようなラスター
スキャン方式のバーコードリーダ1にあっては、解読し
たバーコード情報が複数回連続して一致した場合に正し
く読み取れていると判断するようにしているが、バーコ
ードリーダは全走査線上を何度も繰り返し走査している
ので、1本の走査線上でのみ誤読された場合には、バー
コードの複数回連続一致が成立して誤読が生じる。すな
わち、図2に示す場合では、バーコードリーダは走査線
n=1、n=2、…n=Nと走査し、走査線n=Nを走
査し終えると、再び走査線n=1に戻って各走査線を走
査し、全走査線を何度も繰り返し走査する。このため、
読取り条件が非常に悪くて、走査線n=jで誤読し、他
のすべての走査線n≠jでは読取り不可能であった場合
には、同じ走査線n=jでは同じバーコード情報と誤読
される結果、同一の走査線上で複数回連続一致が成立す
ることがある。この場合には、誤読されたバーコード情
報が正しいバーコード情報であるとして出力されること
になる。
In the raster scan type bar code reader 1 as described above, if the decoded bar code information matches a plurality of times consecutively, it is determined that the bar code information is correctly read. However, since the barcode reader repeatedly scans all the scanning lines over and over again, if an erroneous reading is performed only on one scanning line, a barcode is consecutively matched a plurality of times and erroneous reading occurs. . That is, in the case shown in FIG. 2, the bar code reader scans the scanning lines n = 1, n = 2,... N = N, and returns to the scanning line n = 1 again when the scanning of the scanning line n = N is completed. To scan each scanning line, and repeatedly scan all the scanning lines many times. For this reason,
When the reading condition is very bad and the reading is erroneous at the scanning line n = j and the reading is not possible at all the other scanning lines n ≠ j, the same bar code information is erroneously read at the same scanning line n = j. As a result, a plurality of consecutive matches may be established on the same scanning line. In this case, the erroneously read barcode information is output as correct barcode information.

【0006】このような理由により、従来のラスタース
キャン方式のバーコードリーダでは、複数回連続一致で
読取完了するようにしているものの、必ずしもバーコー
ド読取りの信頼性向上になっていなかった。
For this reason, in a conventional raster scan type bar code reader, reading is completed with a plurality of consecutive matches, but the bar code reading reliability has not always been improved.

【0007】本発明は叙上の従来例の欠点に鑑みてなさ
れたものであり、その目的とするところは、複数の走査
線上で光ビームを走査させることによって符号情報を読
取る方式の符号情報読取り装置において、符号情報の誤
読を防止することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned drawbacks of the prior art, and has as its object to read code information by a method of reading code information by scanning light beams on a plurality of scanning lines. An object of the present invention is to prevent code information from being erroneously read.

【0008】[0008]

【発明の開示】請求項1に記載の符号情報読取り装置
は、光ビームを複数の異なる走査線に沿って走査させる
ことにより各走査毎に符号情報を読取り、各符号情報の
一致数に基づいて適正な符号情報を判定する符号情報読
取り装置において、同一の走査線から得られた同一の符
号情報は、1つの符号情報として一致数を数える符号情
報判別手段を備えていることを特徴としている。
SUMMARY OF THE INVENTION A code information reader according to claim 1 reads code information for each scan by scanning a light beam along a plurality of different scanning lines, and based on the number of coincidences of each code information. In a code information reading apparatus that determines proper code information, the same code information obtained from the same scanning line is provided with a code information determination unit that counts the number of matches as one code information.

【0009】請求項1に記載の符号情報読取り装置にあ
っては、同一の走査線から得られた同一の符号情報は1
つの符号情報として一致数を数えているので、同一の走
査線上で同じ符号情報が繰り返し誤読されても、それに
よって一致数が増え続けることがなく、当該符号情報の
一致数は1としかならない。
According to the first aspect of the present invention, the same code information obtained from the same scanning line is one.
Since the number of matches is counted as two pieces of code information, even if the same code information is repeatedly misread on the same scanning line, the number of matches does not keep increasing, and the number of matches of the code information is only one.

【0010】従って、1つの走査線上でのみ符号情報が
誤読され、他の走査線上では読み取り不可能であった場
合でも、誤読された符号情報の一致数が大きくならない
ので、誤読された符号情報を適正な符号情報と判断する
ことがない。
Therefore, even if the code information is erroneously read on one scanning line and cannot be read on another scanning line, the number of coincidences of the erroneously read code information does not increase. It is not determined that the code information is appropriate.

【0011】請求項2に記載の符号情報読取り装置は、
光ビームを複数の異なる走査線に沿って走査させること
により符号情報を読取り、適正な符号情報を判定する符
号情報読取り装置において、光ビームを各走査線に沿っ
て走査させることにより各走査毎に符号情報を読取り、
当該符号情報から求めた読取率に基づいて適正な符号情
報を判定する符号情報判別手段を備えていることを特徴
としている。
According to a second aspect of the present invention, there is provided a code information reading apparatus.
In a code information reading device that reads code information by scanning a light beam along a plurality of different scanning lines and determines appropriate code information, a light beam is scanned along each scanning line to perform scanning for each scanning. Read the sign information,
It is characterized by including code information determining means for determining appropriate code information based on the read rate obtained from the code information.

【0012】請求項2に記載の符号情報読取り装置は、
読取率によって適正な符号情報を判定しているので、同
一の走査線上で同じ符号情報が繰り返し誤読されても、
それによって読取率が増加することがない。
According to a second aspect of the present invention, there is provided a code information reading apparatus.
Since the proper code information is determined based on the reading rate, even if the same code information is repeatedly misread on the same scanning line,
As a result, the reading rate does not increase.

【0013】従って、1つの走査線上でのみ符号情報が
誤読され、他の走査線上では読み取り不可能であった場
合でも、誤読された符号情報の読取率が大きくならない
ので、誤読された符号情報を適正な符号情報と判断する
ことがない。
Therefore, even if the code information is erroneously read only on one scan line and cannot be read on another scan line, the read rate of the erroneously read code information does not increase. It is not determined that the code information is appropriate.

【0014】請求項3に記載の符号情報読取り装置は、
光ビームを複数の異なる走査線に沿って走査させること
により符号情報を読取り、適正な符号情報を判定する符
号情報読取り装置において、全ての走査線に沿って各1
回光ビームを走査して符号情報の読取りと判定を実行し
た後、記憶していた全ての符号情報を消去する符号情報
判別手段を備えていることを特徴としている。
According to a third aspect of the present invention, there is provided a code information reading apparatus.
In a code information reading device that reads code information by scanning a light beam along a plurality of different scanning lines and determines appropriate code information, each code information is read along one of all scanning lines.
It is characterized by comprising code information discriminating means for scanning the light beam to read and determine the code information, and then erases all the stored code information.

【0015】請求項3に記載の符号情報読取り装置は、
1巡の走査(1ラスタースキャン)の符号情報読取り
後、全ての符号情報を消去しているので、1巡の走査に
よる符号情報のみを用いて符号情報の読取りと適正な符
号情報の判定を行なう。よって、同じ符号情報が繰り返
し誤読されても、互いに別な判定時の符号情報となるだ
けであって、互いの判定に影響を与えない。
According to a third aspect of the present invention, there is provided a code information reading apparatus.
After reading the code information of one scan (one raster scan), all the code information is erased. Therefore, the code information is read and the proper code information is determined using only the code information of one scan. . Therefore, even if the same code information is repeatedly erroneously read, it is merely code information for a different determination, and does not affect each other's determination.

【0016】従って、1つの走査線上でのみ符号情報が
誤読され、他の走査線上では読み取り不可能であった場
合でも、誤読された符号情報を適正な符号情報と判断す
ることがない。
Therefore, even if the code information is erroneously read only on one scanning line and cannot be read on another scanning line, the erroneously read code information is not judged as proper code information.

【0017】[0017]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

(第1の実施の形態)本発明の符号情報読取り装置の読
取り対象となる符号情報は、各種バーコードに限るもの
でなく、マトリックスコードなど任意のものが含まれる
が、以下においてはバーコードを対象とするバーコード
リーダを例として説明する。
(First Embodiment) The code information to be read by the code information reading apparatus of the present invention is not limited to various barcodes, but includes any type such as a matrix code. An example of a target barcode reader will be described.

【0018】図3は本発明の一実施形態によるバーコー
ドリーダ6を示す概略ブロック図である。バーコードリ
ーダ6の投光系は、主として、半導体レーザー素子(L
D)7、LD駆動回路8、投光レンズ9及びポリゴンミ
ラー10とからなる。しかして、LD駆動回路8により
半導体レーザー素子7を駆動すると、半導体レーザー素
子7がパルス発光する。半導体レーザー素子7から出射
された光ビーム2は投光レンズ9によってコリメートさ
れ、ポリゴンミラー10のミラー面に入射し、当該ミラ
ー面で反射された光ビーム2はバーコード4の方向に向
けて投射される。ポリゴンミラー10は正多角形をした
角柱体の外周面にミラー面を形成された多面鏡であっ
て、サーボモータ(図示せず)により一定速度で回転し
ている。従って、ポリゴンミラー10で反射された光ビ
ーム2は、ポリゴンミラー10の回転に伴ってポリゴン
ミラー10の回転軸と直交する方向へ走査される。ま
た、ポリゴンミラー10の各ミラー面は、その回転軸に
対して互いに異なる角度傾いているので、各ミラー面で
反射される光ビーム2は図2に示すような異なる走査線
3上をラスタースキャンされる。例えば、ポリゴンミラ
ー10のミラー面数が10面であれば、光ビーム2は1
0本の走査線3に沿って順次走査されることになる。
FIG. 3 is a schematic block diagram showing a bar code reader 6 according to one embodiment of the present invention. The light projecting system of the bar code reader 6 mainly includes a semiconductor laser element (L
D) 7, an LD drive circuit 8, a light projecting lens 9 and a polygon mirror 10. When the semiconductor laser element 7 is driven by the LD drive circuit 8, the semiconductor laser element 7 emits pulse light. The light beam 2 emitted from the semiconductor laser element 7 is collimated by the light projecting lens 9 and is incident on the mirror surface of the polygon mirror 10. The light beam 2 reflected by the mirror surface is projected toward the bar code 4. Is done. The polygon mirror 10 is a polygonal mirror in which a mirror surface is formed on an outer peripheral surface of a regular polygonal prism, and is rotated at a constant speed by a servomotor (not shown). Therefore, the light beam 2 reflected by the polygon mirror 10 is scanned in a direction orthogonal to the rotation axis of the polygon mirror 10 as the polygon mirror 10 rotates. Further, since each mirror surface of the polygon mirror 10 is inclined at a different angle with respect to its rotation axis, the light beam 2 reflected by each mirror surface is raster-scanned on a different scanning line 3 as shown in FIG. Is done. For example, if the number of mirror surfaces of the polygon mirror 10 is 10, the light beam 2 is 1
Scanning is performed sequentially along zero scanning lines 3.

【0019】11はポリゴンミラー10で走査される光
ビーム2の走査領域の終端部に設けられた端検出用受光
素子であって、光ビーム2が走査領域の終端部に達した
時に受光し、各走査線に沿った光走査の終わりを検出す
る。
Reference numeral 11 denotes an end detecting light receiving element provided at the end of the scanning area of the light beam 2 scanned by the polygon mirror 10, and receives light when the light beam 2 reaches the end of the scanning area. The end of the optical scan along each scan line is detected.

【0020】バーコードリーダ6の受光系は、主とし
て、受光レンズ12、フォトダイオード(PD)のよう
な受光素子13、I/V(電流/電圧)変換回路14、
AGC回路(オートゲインコントローラ)15、2値化
回路16、デコーダ17、バーコード情報判別部18及
び出力回路19から構成されている。バーコード4上を
走査された光ビーム2はバーコード4の表面で拡散反射
された後、受光レンズ12によって受光素子13上に集
光される。受光素子13には、受光量に応じた光電流が
流れるので、この光電流をI/V変換回路14により受
光信号(電圧)に変換される。受光信号はバーコード4
の距離やコントラストにより大きく変化するので、状態
が変化しても安定に読み取れるようAGC回路15によ
り信号振幅が一定値となるように処理したのち、2値化
回路16によりバーコード幅に対応した時間幅の2値化
信号(以下、読取りデータという)に変換される。この
ようにして光ビームの走査毎に得られる読取りデータ
は、バーコード4のバー幅情報としてデコーダ17で翻
訳(デコード)される。読取りコードをデコーダ17で
翻訳することにより得られたバーコード情報は、バーコ
ード情報判別部18へ送られる。バーコード情報判別部
18は、各走査線毎に得られた複数のバーコード情報を
比較もしくは検索することによって正しいと判断できる
バーコード情報が存在するか否か判別し、正しいと判別
できるバーコード情報が存在すれば、当該バーコード情
報を抽出して出力回路19から外部機器に出力する。
The light receiving system of the bar code reader 6 mainly includes a light receiving lens 12, a light receiving element 13 such as a photodiode (PD), an I / V (current / voltage) conversion circuit 14,
It comprises an AGC circuit (auto gain controller) 15, a binarization circuit 16, a decoder 17, a barcode information discriminator 18 and an output circuit 19. The light beam 2 scanned on the bar code 4 is diffusely reflected on the surface of the bar code 4 and then condensed on the light receiving element 13 by the light receiving lens 12. Since a photocurrent according to the amount of received light flows through the light receiving element 13, the photocurrent is converted into a light receiving signal (voltage) by the I / V conversion circuit 14. Light reception signal is bar code 4
AGC circuit 15 performs processing so that the signal amplitude becomes a constant value so that the signal can be stably read even if the state changes, and then a time corresponding to the bar code width is obtained by the binarization circuit 16. It is converted into a width binarized signal (hereinafter referred to as read data). The read data obtained every time the light beam is scanned in this manner is translated (decoded) by the decoder 17 as bar width information of the bar code 4. Bar code information obtained by translating the read code by the decoder 17 is sent to the bar code information discriminating unit 18. The barcode information determining unit 18 determines whether there is barcode information that can be determined to be correct by comparing or searching for a plurality of barcode information obtained for each scanning line, and determines whether the barcode information can be determined to be correct. If the information exists, the barcode information is extracted and output from the output circuit 19 to an external device.

【0021】ここで用いられているデコーダ17は、2
値化された読取りデータを高速で取り込むために、DM
A(ダイレクト・メモリ・アクセス)方式を使用してい
る。このデコーダ17の構成を図4のブロック図に示
す。このデコーダ17は、DMAコントローラ20によ
り、2つのバッファメモリ(RAM)22,23を論理
的に交互に切り替えてデータ読み込み処理と翻訳処理を
並列に実行し、中央処理装置(CPU)21により翻訳
されたバーコード情報をバーコード情報格納メモリ24
に書込むようにしたものである。図5(a)(b)に示
すものは、読取りデータを格納するためのバッファメモ
リ22,23のデータ構造を示す図であって、読取りデ
ータを格納する読取りデータエリアと当該データを獲得
したときの走査線ナンバーを格納する走査線ナンバーエ
リアとを有している。図5(c)は翻訳されたバーコー
ド情報を格納するためのバーコード情報格納メモリ24
のデータ構造を示す図であって、走査線ナンバーn=1
〜Nにより指定されたバーコード情報エリアと翻訳され
たバーコード情報の読取回数mを記録する読取回数エリ
アとを有している。
The decoder 17 used here is composed of 2
In order to capture the quantified read data at high speed, DM
A (direct memory access) method is used. The configuration of the decoder 17 is shown in the block diagram of FIG. The decoder 17 logically alternately switches between two buffer memories (RAMs) 22 and 23 by the DMA controller 20 to execute data reading processing and translation processing in parallel, and is translated by the central processing unit (CPU) 21. The barcode information stored in the barcode information storage memory 24
Is to be written to. FIGS. 5A and 5B are diagrams showing the data structure of the buffer memories 22 and 23 for storing read data. FIG. 5A shows a read data area for storing read data, and FIG. And a scanning line number area for storing the scanning line numbers of the above. FIG. 5C shows a barcode information storage memory 24 for storing the translated barcode information.
Is a diagram showing a data structure of a scan line number n = 1
To N, and a read count area for recording the read count m of the translated bar code information.

【0022】しかして、2値化回路16からデコーダ1
7に読取りデータが入力されると、DMAコントローラ
20は、その読取りデータを対応する走査線ナンバーと
共に一方のバッファメモリに格納する。例えば、図5
(a)に示すように走査線ナンバーniと読取りデータ
Riとをそれぞれバッファメモリ(RAM)22の走査
線ナンバーエリアと読取りデータエリアに格納する。同
時に、DMAコントローラ20は、他方のバッファメモ
リ23に格納されていた読取りデータとその走査線ナン
バーを読み出して中央処理装置21へ転送する。例え
ば、図5(b)に示すようにバッファメモリ(RAM)
23の読取りデータエリアと走査線ナンバーエリアに格
納されていた読取りデータRjと走査線ナンバーnjを読
み出して中央処理装置21へ転送する。中央処理装置2
1は、あらかじめメモリ(ROM)25に格納されてい
るバーコード規則に基づいて転送された読取りデータ、
例えばRjをバーコード情報Tjに翻訳(デコード)し、
これをバーコード情報格納メモリ24の該当する走査線
ナンバーnjで指定される格納場所(n=nj)に格納す
る。但し、読取りデータが翻訳不可能な場合には、バー
コード情報エリアの該当位置には「?」などの不可コー
ドが格納される。また、読取回数エリアの値mは、翻訳
が成功する度に1ずつカウントアップされる。
Thus, the binarization circuit 16 sends the decoder 1
When the read data is input to 7, the DMA controller 20 stores the read data together with the corresponding scan line number in one buffer memory. For example, FIG.
As shown in (a), the scan line number ni and the read data Ri are stored in the scan line number area and the read data area of the buffer memory (RAM) 22, respectively. At the same time, the DMA controller 20 reads out the read data and its scan line number stored in the other buffer memory 23 and transfers them to the central processing unit 21. For example, a buffer memory (RAM) as shown in FIG.
The read data Rj and the scan line number nj stored in the read data area 23 and the scan line number area are read and transferred to the central processing unit 21. Central processing unit 2
1 is read data transferred based on a barcode rule stored in a memory (ROM) 25 in advance;
For example, Rj is translated (decoded) into barcode information Tj,
This is stored in the storage location (n = nj) designated by the corresponding scanning line number nj in the barcode information storage memory 24. However, if the read data cannot be translated, an unacceptable code such as “?” Is stored at the corresponding position in the barcode information area. The value m of the read count area is incremented by one each time the translation is successful.

【0023】バーコード情報判別部18は、読取回数エ
リアに記録されている読取回数mが一定値(>N)に達
すると、バーコード情報格納メモリ24のバーコード情
報エリアに格納されている各走査線毎のバーコード情報
を比較もしくは検索し、複数回一致しているバーコード
情報を正しいバーコード情報であると判断し、読取完了
するものであるが、本実施形態では、さらに走査線ナン
バーnを管理し、同じ走査線から得られたバーコード情
報は例え一致していても1つのバーコード情報として取
り扱い、複数回一致の判断対象とはしないようにしてい
る。具体的には、図5(c)に示すように、バーコード
情報エリアの格納場所を走査線の数と等しくし、ある走
査線ナンバーのバーコード情報が格納されると、その走
査線ナンバーのバーコード情報エリアに格納されていた
バーコード情報に上書きされるようにしている。従っ
て、バーコード情報エリアには、各走査線ナンバーに対
応するバーコード情報は1つずつしか格納されず、バー
コード情報判別部18は単にバーコード情報エリアに格
納されているバーコード情報の一致回数を検索するだけ
でよい。
When the number of readings m recorded in the number-of-readings area reaches a certain value (> N), the barcode information discriminating section 18 stores each barcode information stored in the barcode information area of the barcode information storage memory 24. The barcode information for each scanning line is compared or searched, and the barcode information that matches a plurality of times is determined to be correct barcode information, and the reading is completed. n is managed, and even if the barcode information obtained from the same scanning line matches, the barcode information is treated as one barcode information, and is not determined as a match for a plurality of times. More specifically, as shown in FIG. 5C, the storage location of the barcode information area is set equal to the number of scanning lines, and when barcode information of a certain scanning line number is stored, the barcode information area is stored. The barcode information stored in the barcode information area is overwritten. Therefore, only one barcode information corresponding to each scanning line number is stored in the barcode information area, and the barcode information discriminating section 18 simply checks the barcode information stored in the barcode information area for the coincidence of the barcode information. You just need to search for the number.

【0024】次に、上記バーコードリーダ6におけるバ
ーコード読取りのためのアルゴリズムを図6及び図7の
フロー図により説明する。バーコードリーダ6が読取り
動作を開始する場合には、まず初期化処理が実行される
(S31)。すなわち、バッファメモリ22,23の走
査線ナンバーエリア[図5(a)(b)]に格納されて
いる走査線ナンバーnの値がクリア(n=0)され、読
取りデータエリア[図5(a)(b)]に格納されてい
る読取りデータがクリア(不可コード「?」を格納)さ
れる。さらに、バーコード情報エリア[図5(c)]に
格納されているバーコード情報をすべてクリア(不可コ
ード「?」を格納)し、読取回数エリア[図5(c)]
に格納されている読取回数をクリア(m=0)する。
Next, an algorithm for reading a bar code in the bar code reader 6 will be described with reference to the flow charts of FIGS. When the barcode reader 6 starts the reading operation, first, an initialization process is executed (S31). That is, the value of the scan line number n stored in the scan line number area [FIGS. 5A and 5B] of the buffer memories 22 and 23 is cleared (n = 0), and the read data area [FIG. ) (B)], the read data stored therein is cleared (an impossible code “?” Is stored). Further, all the barcode information stored in the barcode information area [FIG. 5 (c)] is cleared (impossible code "?" Is stored), and the number of readings area [FIG. 5 (c)]
Is cleared (m = 0).

【0025】ついで、読取指示を受信するまで待機し
(S32)、読取指示を受信すると、LD駆動回路8に
より半導体レーザー素子7を発光させて光ビーム2を走
査(ラスタースキャン)させる(S33)。同時に、バ
ーコード4で反射された光ビーム2を受光素子13で受
光し、2値化回路16等によって受光信号を処理して読
取りデータR1を出力する。この読取りデータR1は、D
MAコントローラ20により指定されているバッファメ
モリ22に格納開始される(S34)。
Next, the process waits until a read instruction is received (S32). When the read instruction is received, the LD driving circuit 8 causes the semiconductor laser element 7 to emit light and scan the light beam 2 (raster scan) (S33). At the same time, the light beam 2 reflected by the bar code 4 is received by the light receiving element 13 and the light receiving signal is processed by the binarization circuit 16 or the like, and the read data R1 is output. This read data R1 is D
The storage is started in the buffer memory 22 specified by the MA controller 20 (S34).

【0026】ついで、走査領域の終端部に配置されてい
る端検出用受光素子11が光ビーム2を受光するまで読
取りデータR1の格納を続け(S35,S52)、端検
出用受光素子11により光ビーム2が走査領域の終端ま
で達したことを検知すると(S35)、当該バッファメ
モリ22への読取りデータR1の格納を停止する(S3
6)。こうして、1走査線分の読取りデータR1がバッ
ファメモリ22の読取りデータエリアに格納し終わる
と、DMAコントローラ20によってデータ格納先がバ
ッファメモリ23に切り替えられ、つぎの走査線n=2
による読取りデータR2がバッファメモリ23に格納開
始される(S37)。ついで、読取りデータR1を格納
し終えたバッファメモリ22の走査線ナンバーエリアに
走査線ナンバーを1増加させて(n=1)格納する。
Then, storage of the read data R1 is continued until the edge detecting light receiving element 11 arranged at the end of the scanning area receives the light beam 2 (S35, S52). When it is detected that the beam 2 has reached the end of the scanning area (S35), the storage of the read data R1 in the buffer memory 22 is stopped (S3).
6). When the read data R1 for one scan line is stored in the read data area of the buffer memory 22 in this manner, the data storage destination is switched to the buffer memory 23 by the DMA controller 20, and the next scan line n = 2
Is started to be stored in the buffer memory 23 (S37). Next, the scan line number is incremented by 1 (n = 1) and stored in the scan line number area of the buffer memory 22 in which the read data R1 has been stored.

【0027】この後、中央処理装置21は、バッファメ
モリ22に格納されている読取りデータR1を読み出し
て翻訳する(S41)。ここで翻訳が不可能であった場
合には、走査線ナンバーエリア内に格納されている走査
線ナンバーに対応する、バーコード情報エリア内の格納
場所(n=1)に不可コード「?」を格納する(S4
2,S43)。
Thereafter, the central processing unit 21 reads and translates the read data R1 stored in the buffer memory 22 (S41). If the translation is impossible, an unacceptable code “?” Is stored in the storage location (n = 1) in the barcode information area corresponding to the scanning line number stored in the scanning line number area. Store (S4
2, S43).

【0028】ステップS42で翻訳に成功した場合に
は、走査線ナンバーエリア内の走査線ナンバーに対応す
る、バーコード情報エリア内の格納場所(n=1)から
バーコード情報を読み出して翻訳されたバーコード情報
と一致するか照合する(S44)。
If the translation is successful in step S42, the bar code information is read from the storage location (n = 1) in the bar code information area corresponding to the scanning line number in the scanning line number area and translated. It is checked whether it matches the barcode information (S44).

【0029】この照合結果が一致した場合には、当該格
納場所(n=1)に格納されていたバーコード情報をそ
のまま保存し、照合結果が一致しない場合には、バーコ
ード情報エリアの当該格納場所に、翻訳された新しいバ
ーコード情報を格納してデータを更新する(S45)
が、初めにはバーコード情報エリアには、不可コード
「?」が格納されているから、翻訳に成功したバーコー
ド情報はバーコード情報エリアに格納され、読取回数エ
リアの読取回数を1増加(m=1)させる(S46)。
If the collation results match, the barcode information stored in the storage location (n = 1) is stored as it is. If the collation results do not match, the corresponding barcode information in the barcode information area is stored. The translated new barcode information is stored in the location and the data is updated (S45).
However, since the bar code information area initially stores an unacceptable code "?", The bar code information that has been successfully translated is stored in the bar code information area, and the number of times of reading in the number of readings area is increased by one ( m = 1) (S46).

【0030】このようにして走査線ナンバーn=1につ
いての処理が終了すると、2番目の走査線(n=2)に
ついて、走査領域の終端部に配置されている端検出用受
光素子11が光ビーム2を受光するまで読取りデータR
2の格納を続ける(S35,S52)。2番目の走査終
了が検知されると(S35)、バッファメモリ23への
読取りデータR2の格納を停止し(S36)、他方のバ
ッファメモリ22をクリアして次の走査線(n=3)に
よる読取りデータR3の格納を開始する(S37)。つ
いで、読取りデータR2を格納し終えたバッファメモリ
23の走査線ナンバーエリアに走査線ナンバーを1増加
させて(n=2)格納する(S38)。
When the processing for the scanning line number n = 1 is completed as described above, the edge detection light-receiving element 11 disposed at the end of the scanning area is turned on for the second scanning line (n = 2). Read data R until beam 2 is received
The storage of 2 is continued (S35, S52). When the end of the second scan is detected (S35), the storage of the read data R2 in the buffer memory 23 is stopped (S36), the other buffer memory 22 is cleared, and the next scan line (n = 3) is used. The storage of the read data R3 is started (S37). Next, the scan line number is incremented by 1 (n = 2) and stored in the scan line number area of the buffer memory 23 where the read data R2 has been stored (S38).

【0031】この後、1番目の走査線の場合と同様にし
て、バッファメモリ23内の読取りデータR2を翻訳し
(S41)、翻訳不可能であれば、バーコード情報格納
メモリ24のバーコード情報エリアの格納位置n=2に
不可コード「?」を格納し(S42,S43)、翻訳に
成功すれば、バーコード情報エリアの格納位置n=2に
翻訳されたバーコード情報を格納して(S42,S4
4,S45)、読取回数エリアの読取回数mを1増加さ
せる(S46)。
Thereafter, the read data R2 in the buffer memory 23 is translated in the same manner as in the case of the first scanning line (S41). If translation is impossible, the barcode information in the barcode information storage memory 24 is read. The impossible code "?" Is stored in the storage location n = 2 of the area (S42, S43). If the translation is successful, the translated barcode information is stored in the storage location n = 2 of the barcode information area ( S42, S4
4, S45), the number of readings m in the number of readings area is increased by 1 (S46).

【0032】上記のような処理を走査線の本数(N本)
だけ繰り返すと、バーコード情報格納メモリ24のバー
コード情報エリアn=1〜Nには、翻訳されたバーコー
ド情報T1〜TNもしくは不可コード「?」が格納され
る。この際、走査線ナンバーnが1増加して最大値Nに
なると、直ちにクリア(n=0)される(S38〜S4
0)。
The above processing is performed by using the number of scanning lines (N lines).
By repeating the above, the translated barcode information T1 to TN or the unacceptable code "?" Is stored in the barcode information area n = 1 to N of the barcode information storage memory 24. At this time, when the scanning line number n increases by 1 and reaches the maximum value N, it is immediately cleared (n = 0) (S38 to S4).
0).

【0033】従って、この後、バーコードが走査され、
読取りデータRi(i=1〜N)と走査線ナンバーni
がバッファメモリ22,23に格納されると(S35〜
S40)、読取りデータRiを翻訳し(S41)、翻訳
不可能であった場合には、バーコード情報エリアの当該
格納位置niに不可コード「?」を格納する(S4
2)。翻訳が成功した場合には、バーコード情報エリア
の当該格納位置niに格納されていたバーコード情報
(旧情報)と翻訳されたバーコード情報(新情報)とを
照合し(S44)、一致した場合には、バーコード情報
エリアの当該格納位置niに格納されていたバーコード
情報を更新せず、そのまま保存する。照合が一致しない
場合には、当該格納位置niのデータを新しいバーコー
ド情報に更新し(S45)、読取回数mを1増加させる
(S46)。
Therefore, after this, the bar code is scanned,
Read data Ri (i = 1 to N) and scan line number ni
Is stored in the buffer memories 22 and 23 (S35 to S35).
(S40), the read data Ri is translated (S41), and if the translation is not possible, the impossible code "?" Is stored in the corresponding storage position ni in the barcode information area (S4).
2). If the translation is successful, the barcode information (old information) stored in the corresponding storage location ni in the barcode information area is compared with the translated barcode information (new information) (S44), and a match is obtained. In this case, the barcode information stored in the storage location ni in the barcode information area is not updated and is stored as it is. If the collation does not match, the data at the storage location ni is updated to new barcode information (S45), and the number of readings m is increased by 1 (S46).

【0034】光ビームがバーコード上を何度もラスター
スキャンされて同一走査線上を繰り返し走査されると、
各走査毎にバーコード情報が得られてバーコード情報格
納メモリ24のバーコード情報エリアに格納されるが、
図5(c)に示すように、バーコード情報エリアには、
走査線の本数だけの格納位置しかなく、同一走査線から
得られたバーコード情報は更新されて1つしか保存され
ていない。
When the light beam is raster-scanned many times over the bar code and repeatedly scanned on the same scanning line,
Barcode information is obtained for each scan and stored in the barcode information area of the barcode information storage memory 24.
As shown in FIG. 5C, the barcode information area includes
There are only storage positions corresponding to the number of scanning lines, and only one barcode information obtained from the same scanning line is updated and stored.

【0035】こうしてバーコード情報がバーコード情報
エリアに格納される度に読取回数mは1ずつ増加し、こ
の読取回数が設定値(走査線の本数をN本とすると、設
定値を例えば10Nに設定する)に達すると(S4
7)、バーコード情報エリア内に格納されているバーコ
ード情報のうち同じデータが規定数(例えば、N/2)
以上あるか否か検索する(S48)。そして、バーコー
ド情報エリアに同一バーコード情報が規定数以上あれ
ば、半導体レーザー素子7を消灯し(S49)、当該バ
ーコード情報を抽出して出力回路19から出力し(S5
0)、さらに読取り成功(OK)の信号を出力する(S
51)。
Each time the bar code information is stored in the bar code information area, the number of readings m increases by one. When the number of readings reaches a set value (when the number of scanning lines is N, the set value is set to, for example, 10N). (Set) (S4)
7) The same number of the same data in the barcode information stored in the barcode information area is a specified number (for example, N / 2)
A search is made as to whether there is any more (S48). If the same bar code information is present in the bar code information area in a predetermined number or more, the semiconductor laser element 7 is turned off (S49), and the bar code information is extracted and output from the output circuit 19 (S5).
0), and further outputs a read success (OK) signal (S)
51).

【0036】ステップS35,S52で、端検出用受光
素子11により走査終了パルスを受光するまで待機して
いる場合には、読取終了指示を受信するかどうか監視し
ており(S52)、読取終了指示を受信した場合には、
読取りデータの格納を中断し(S53)、半導体レーザ
ー素子7を消灯して(S54)読取に失敗(NG)した
データを出力し(S55)、さらに読取失敗(NG)の
信号を出力する(S56)。
In steps S35 and S52, if it is on standby until the end detecting light receiving element 11 receives the scanning end pulse, it is monitored whether a reading end instruction is received (S52). If you receive
The storage of the read data is interrupted (S53), the semiconductor laser element 7 is turned off (S54), the data in which the reading has failed (NG) is output (S55), and the signal of the reading failure (NG) is output (S56). ).

【0037】なお、ステップ48では、バーコード情報
エリアに同じデータがいくつあるか検索し、同じデータ
が規定数以上であるか否かを判定したが、複数のバーコ
ード情報がそれぞれ規定数あった場合には、そのうちの
同一データ数の最も多いものをバーコード情報として抽
出するとよい。あるいは、そのような場合には、エラー
としてもよい。また、ステップ48における判定方法と
しては、バーコード情報エリア内で連続して一致してい
るバーコード情報の連続一致数が規定数以上かどうか判
定するようにしてもよい。
In step 48, the number of the same data in the bar code information area is searched to determine whether or not the same data is equal to or more than the specified number. In this case, it is preferable to extract the data having the largest number of the same data as the barcode information. Alternatively, in such a case, an error may be set. Further, as the determination method in step 48, it may be determined whether or not the number of consecutive matches of the barcode information that continuously matches in the barcode information area is equal to or greater than a specified number.

【0038】(第2の実施形態)図8は本発明の別な実
施形態によるバーコード情報格納メモリ24のデータ構
造を示す図である。この実施形態にあっては、図8に示
すように、同一走査線から得られたバーコード情報がバ
ーコード情報エリア内の異なる格納位置に格納される。
すなわち、走査線の数をN本、ラスタースキャンの繰り
返し数を例えば10回とすると、バーコード情報エリア
には、10Nの格納位置が確保される。
(Second Embodiment) FIG. 8 is a diagram showing a data structure of a barcode information storage memory 24 according to another embodiment of the present invention. In this embodiment, as shown in FIG. 8, barcode information obtained from the same scanning line is stored in different storage positions in the barcode information area.
That is, assuming that the number of scanning lines is N and the number of repetitions of the raster scan is 10, for example, 10N storage positions are secured in the barcode information area.

【0039】しかして、この実施形態にあっては、同じ
走査線からのバーコード情報が重複してバーコード情報
エリアに格納され、中央処理装置21が同一データを数
える際に、同一の走査線ナンバーに対応する同一のバー
コード情報は1回しか数えないようにソフト的に処理を
して同一データの数を数える。
In this embodiment, the bar code information from the same scanning line is stored in the bar code information area in duplicate, and when the central processing unit 21 counts the same data, the same scanning line is used. The same barcode information corresponding to the number is processed by software so as to be counted only once, and the number of the same data is counted.

【0040】このような方法によっても同一走査線によ
るデータを重複して数えないようにすることができる
が、第1の実施形態の方法による方がメモリ効率がよ
く、中央処理装置21における処理も簡単になる。
Although the data of the same scanning line can be prevented from being counted redundantly by such a method, the method of the first embodiment is more memory efficient, and the processing in the central processing unit 21 is also improved. It's easy.

【0041】(第3の実施形態)図9及び図10は本発
明の別な実施形態のバーコードリーダによるバーコード
読取りのためのアルゴリズムを示すフロー図である。こ
の実施形態は、全走査線を1回走査する(以下、これを
1ラスタースキャンという)度に、バーコード情報を読
み取れたか否か判断し、1ラスタースキャン毎にバーコ
ード情報エリア内の全バーコード情報をクリアするもの
である。図9及び図10においては、図6及び図7のフ
ロー図と同じ処理を実行する部分については、同一の符
号を付している。また、図11はバーコード情報格納メ
モリ24のデータ構造を示す図である。この実施形態に
おけるバーコード情報格納メモリ24のバーコード情報
エリア内には、異なるデータ毎にバーコード情報と各一
致数(読取回数)qiとが格納される。バーコードリー
ダやバッファメモリの構成は、第1の実施形態と同じで
あるので、省略する(図3、図4、図5(a)
(b))。
(Third Embodiment) FIGS. 9 and 10 are flowcharts showing an algorithm for reading a barcode by a barcode reader according to another embodiment of the present invention. In this embodiment, every time all the scanning lines are scanned once (hereinafter, this is referred to as one raster scan), it is determined whether or not the barcode information has been read, and every bar scan in the barcode information area is performed every raster scan. This clears the code information. In FIGS. 9 and 10, the same reference numerals are given to portions that execute the same processes as those in the flowcharts of FIGS. 6 and 7. FIG. 11 is a diagram showing the data structure of the barcode information storage memory 24. In the barcode information area of the barcode information storage memory 24 in this embodiment, barcode information and the number of coincidences (the number of times of reading) qi are stored for different data. Since the configurations of the barcode reader and the buffer memory are the same as those of the first embodiment, they are omitted (FIGS. 3, 4 and 5A).
(B)).

【0042】以下、この実施形態を図9及び図10に従
って説明する。第1の実施形態の場合と同様にして、各
走査線毎に読取られた読取りデータは、走査線ナンバー
と共にバッファメモリ22,23に交互に格納される
(S31〜S38)。
Hereinafter, this embodiment will be described with reference to FIGS. As in the case of the first embodiment, the read data read for each scanning line is alternately stored in the buffer memories 22 and 23 together with the scanning line number (S31 to S38).

【0043】ついで、ハッファメモリ22,23の読取
りデータをバーコード情報に翻訳し(S61)、翻訳に
成功したかどうか判定し(S62)、翻訳不可能であれ
ば次の走査線のデータを処理する。また、翻訳に成功し
た場合には、そのバーコード情報がバーコード情報エリ
アに既に格納されている何れかのバーコード情報に一致
するかどうか検索し(S65)、一致するものがなけれ
ば当該バーコード情報をバーコード情報エリアの空きエ
リアに登録すると共に当該バーコード情報の一致数qi
を1として格納する(S66,S67)。
Next, the data read from the buffer memories 22 and 23 are translated into bar code information (S61), and it is determined whether the translation is successful (S62). If translation is impossible, the data of the next scanning line is processed. . If the translation is successful, a search is made to determine whether the barcode information matches any of the barcode information already stored in the barcode information area (S65). The code information is registered in an empty area of the bar code information area, and the number of matches qi of the bar code information is registered.
Is stored as 1 (S66, S67).

【0044】これに対し、バーコード情報エリアに格納
されているバーコード情報のうちに、翻訳されたバーコ
ード情報と一致するものがあった場合には、バーコード
情報エリア内の一致するバーコード情報の一致数qiを
1だけ増加させる(S68)。ついで、一致数qiが規
定値(例えば、N/2)に達したかどうか判定し(S6
9)、規定値に達していない場合には、ステップS35
以下の処理を繰り返し、規定値に達した場合には処理を
終了してそのバーコード情報を出力回路19から出力す
る(S49〜S51)。すなわち、この実施形態では、
異なるバーコード情報とその一致数qiのみを管理し、
走査線数Nに対して最も早く一致数qi(つまり、読取
率qi/N)が規定値に達したバーコード情報を抽出し
て出力するようになっている。
On the other hand, if any of the bar code information stored in the bar code information area matches the translated bar code information, the corresponding bar code information in the bar code information area is displayed. The number of information matches qi is increased by 1 (S68). Then, it is determined whether or not the number of matches qi has reached a specified value (for example, N / 2) (S6).
9) If the specified value has not been reached, step S35
The following process is repeated, and when the specified value is reached, the process is terminated and the barcode information is output from the output circuit 19 (S49 to S51). That is, in this embodiment,
Manages only different barcode information and the number of matches qi,
Barcode information in which the number of matches qi (that is, the reading rate qi / N) reaches the specified value earliest with respect to the number N of scanning lines is extracted and output.

【0045】また、ステップS63及びS64では、走
査線ナンバーを管理して走査線ナンバーが最大値、つま
り走査線の総数Nに等しくなった場合には、初期化処理
してバッファメモリ22,23やバーコード情報格納メ
モリ24内のデータをクリアしているので、一致数qi
は1回のラスタースキャン内でのみ演算されており、同
じ走査線からのバーコード情報を重複して評価すること
がない。従って、従来例について説明したように、1つ
の走査線でのみ誤読され、他のすべての走査線では翻訳
不可能であった場合でも、誤読されたバーコード情報の
一致数qiは1にしかならず、誤読されたバーコード情
報が出力されることがない。
In steps S63 and S64, when the scanning line number is managed and the scanning line number becomes equal to the maximum value, that is, the total number N of the scanning lines, initialization processing is performed and the buffer memories 22, 23 and Since the data in the barcode information storage memory 24 has been cleared, the number of matches qi
Is calculated only within one raster scan, and bar code information from the same scanning line is not evaluated redundantly. Therefore, as described in the conventional example, even when the reading is erroneous on only one scanning line and the translation is impossible on all other scanning lines, the number of coincidences qi of the erroneously read barcode information is only one, and Misread bar code information is not output.

【0046】なお、一致数に関する規定値は固定値とし
てもよく、ユーザーにおいて設定可能にしてあってもよ
い。
The specified value for the number of matches may be a fixed value or may be settable by the user.

【0047】(第4の実施形態)図12及び図13は本
発明のさらに別な実施形態のバーコードリーダによるバ
ーコード読取りのためのアルゴリズムを示すフロー図で
ある。この実施形態では、バーコード情報の読取率を管
理し、当該読取率が規定値以上であれば、バーコードの
読取りに成功したと判定するようにしたものである。図
12及び図13においては、図6及び図7のフロー図と
同じ処理を実行する部分については、同一の符号を付し
ている。また、図14はバーコード情報格納メモリ24
のデータ構造を示す図である。この実施形態におけるバ
ーコード情報格納メモリ24のバーコード情報エリア内
には、異なるデータ毎にバーコード情報とその一致数
(読取回数)qiとが格納され、さらにラスタースキャ
ン回数エリアには、ラスタースキャン回数Jが格納され
る。バーコードリーダやバッファメモリの構成は、第1
の実施形態と同じであるので、省略する(図3、図4、
図5(a)(b))。ただしラスタースキャンさせるた
め、ポリゴンミラーの中心軸をモータの回転軸に対して
傾けている。
(Fourth Embodiment) FIGS. 12 and 13 are flowcharts showing an algorithm for reading a barcode by a barcode reader according to still another embodiment of the present invention. In this embodiment, the reading rate of barcode information is managed, and if the reading rate is equal to or greater than a specified value, it is determined that the barcode has been successfully read. 12 and 13, the same reference numerals are given to the portions that execute the same processes as those in the flowcharts of FIGS. 6 and 7. FIG. 14 shows a barcode information storage memory 24.
FIG. 3 is a diagram showing a data structure of FIG. In the barcode information area of the barcode information storage memory 24 in this embodiment, barcode information and the number of coincidences (the number of times of reading) qi are stored for each different data. The number of times J is stored. The configuration of the barcode reader and buffer memory is the first
Since it is the same as the embodiment of FIG.
(FIGS. 5A and 5B). However, the center axis of the polygon mirror is inclined with respect to the rotation axis of the motor for raster scanning.

【0048】以下、この実施形態を図12及び図13に
従って説明する。第1の実施形態の場合と同様にして、
各走査線毎に読取られた読取りデータは、走査線ナンバ
ーと共にバッファメモリ22,23に交互に格納される
(S31〜S38)。なお、この実施形態では、ステッ
プS31の初期化処理において、ラスタースキャン回数
エリアに格納されているラスタースキャン回数Jもクリ
アされる(J=0)。
Hereinafter, this embodiment will be described with reference to FIGS. As in the case of the first embodiment,
The read data read for each scanning line is alternately stored in the buffer memories 22 and 23 together with the scanning line number (S31 to S38). In this embodiment, the number of raster scans J stored in the number of raster scans area is also cleared in the initialization processing of step S31 (J = 0).

【0049】ついで、ハッファメモリ22,23の読取
りデータをバーコード情報に翻訳し(S71)、翻訳に
成功したかどうか判定し(S72)、翻訳不可能であれ
ば次の走査線のデータを処理する。また、翻訳に成功し
た場合には、そのバーコード情報がバーコード情報エリ
アに既に格納されている何れかのバーコード情報に一致
するかどうか検索し(S73)、一致するものがなけれ
ば当該バーコード情報をバーコード情報エリアの空きエ
リアに登録すると共に当該バーコード情報の一致数qi
を1として格納する(S74,S75)。
Next, the data read from the buffer memories 22 and 23 are translated into bar code information (S71), and it is determined whether or not the translation is successful (S72). If translation is impossible, the data of the next scanning line is processed. . If the translation is successful, a search is made to see if the barcode information matches any of the barcode information already stored in the barcode information area (S73). The code information is registered in an empty area of the bar code information area, and the number of matches qi of the bar code information is registered.
Is stored as 1 (S74, S75).

【0050】これに対し、バーコード情報エリアに格納
されているバーコード情報のうちに、翻訳されたバーコ
ード情報と一致するものがあった場合には、バーコード
情報エリア内の一致するバーコード情報の一致数qiを
1だけ増加させる(S76)。
On the other hand, if any of the bar code information stored in the bar code information area matches the translated bar code information, the corresponding bar code information in the bar code information area is displayed. The number of information matches qi is increased by 1 (S76).

【0051】このようにしてバッファメモリ22,23
に格納された読取りデータを交互に翻訳し、翻訳に成功
した場合には新たなバーコード情報をバーコード情報エ
リアに格納し、あるいは既に登録されているバーコード
情報の一致数qiを1ずつ増加させる処理(S71〜S
76)を1ラスタースキャン分繰り返して走査線ナンバ
ーnが最大値Nに達すると(S77)、ラスタースキャ
ン回数エリア内のラスタースキャン回数Jを1増加させ
る(S78)。
Thus, the buffer memories 22 and 23
The barcode information is alternately translated, and if the translation is successful, new barcode information is stored in the barcode information area, or the number of matches qi of the already registered barcode information is increased by one. Processing (S71-S
When the scanning line number n reaches the maximum value N by repeating (76) for one raster scan (S77), the number of raster scans J in the raster scan count area is increased by 1 (S78).

【0052】ついで、バーコード情報判別部18は、読
取り率を求める。すなわち、バーコード情報格納メモリ
24のバーコード情報エリアに格納されている各バーコ
ード情報Tiの一致数qiから読取率qi/(N×J)を
演算する(S79)。そして、求めた読取率qi/(N
×J)のうち規定値(例えば、0.5)以上のものが存
在するか否か判定し(S80)、規定値以上のものがあ
れば、そのバーコード情報を正しいバーコード情報であ
ると判定し、そのバーコード情報を出力回路19から出
力する(S49〜S51)。なお、このとき読取率が規
定値以上のバーコード情報が複数抽出された場合には、
そのうち最も読取率の大きなバーコード情報を正しいバ
ーコード情報であると判定するようにしてもよい。
Next, the bar code information discriminating section 18 obtains a reading rate. That is, the reading rate qi / (N × J) is calculated from the number of matches qi of each barcode information Ti stored in the barcode information area of the barcode information storage memory 24 (S79). Then, the obtained reading rate qi / (N
× J), it is determined whether or not there is one having a specified value (for example, 0.5) or more (S80). If there is one having the specified value or more, the barcode information is determined to be correct barcode information. The determination is made, and the barcode information is output from the output circuit 19 (S49 to S51). At this time, if a plurality of barcode information whose reading rate is equal to or more than the specified value is extracted,
Of these, the barcode information with the largest read rate may be determined to be correct barcode information.

【0053】一方、読取り率qi/(N×J)が規定値
以上のバーコード情報が存在しなかった場合には、バッ
ファメモリ22,23の走査線ナンバーエリアの走査線
ナンバーだけをクリアする(S81)。この場合には、
バーコードの読取りと翻訳を続行し、バーコード情報の
一致数qiを更新し、1ラスタースキャン分の処理が行
なわれる都度、読取率が規定値以上のものが存在してい
るか否か判定し、読取率が規定値以上のものがあれば読
取りを完了し、無ければさらに1ラスタースキャン分の
処理を実行する。
On the other hand, if there is no bar code information with the reading rate qi / (N × J) being equal to or more than the specified value, only the scanning line numbers in the scanning line number areas of the buffer memories 22 and 23 are cleared ( S81). In this case,
Continue reading and translating the barcode, update the number of coincidences qi of the barcode information, and each time one raster scan process is performed, determine whether or not there is one with a reading rate equal to or greater than a specified value. If the reading rate is equal to or more than the specified value, the reading is completed, and if not, processing for one raster scan is further executed.

【0054】従って、この実施形態では、1ラスタース
キャン毎に、異なるバーコード情報の読取率を検索して
規定値以上のものを求め、読取率が規定値以上のものが
見つかれば、そのバーコード情報を抽出して出力する。
このような読取率を管理する方式であると、従来例につ
いて説明したように、1つの走査線でのみ誤読され、他
のすべての走査線では翻訳不可能であった場合でも、誤
読されたバーコード情報の読取率は、J/(N×J)=
1/Nにしかならず、誤読されたバーコード情報が出力
されることがない。
Therefore, in this embodiment, the reading rate of different bar code information is searched for each raster scan to find one having a specified rate or more. Extract and output information.
With such a method of managing the reading rate, as described in the related art, even if the reading error occurs only on one scanning line and the translation cannot be performed on all the other scanning lines, the error reading bar can be read. The read rate of the code information is J / (N × J) =
This is only 1 / N, and misread bar code information is not output.

【0055】また、従来のバーコードリーダでは、実際
に運転する前に、現場テストで読取り率を確認している
が、実際の運転中には、読取率を確認することができな
かった。しかし、この方式では、実際の運転中でもバー
コードの読取率を出力して表示させることが可能にな
る。
Further, in the conventional bar code reader, the reading rate is confirmed by a field test before the actual operation, but the reading rate cannot be confirmed during the actual operation. However, in this method, it is possible to output and display the barcode reading rate even during actual driving.

【0056】なお、読取率に関する規定値は固定値とし
てもよく、ユーザーにおいて設定可能にしてあってもよ
い。
Note that the prescribed value relating to the reading rate may be a fixed value or may be settable by the user.

【0057】(その他の方式)さらに別な方式として
は、第1の実施形態の方式と第3又は第4の実施形態の
方式とを併用し、両方の方式からの出力結果が一致した
場合にのみ、当該バーコード情報を出力するようにして
もよい。これによりバーコード情報判定の確度を向上さ
せることができる。
(Other Methods) As still another method, the method of the first embodiment and the method of the third or fourth embodiment are used together, and when the output results from both methods match. Only the barcode information may be output. As a result, the accuracy of the barcode information determination can be improved.

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

【図1】従来例のラスタースキャン方式のバーコードリ
ーダを示す概略斜視図である。
FIG. 1 is a schematic perspective view showing a conventional raster scan type bar code reader.

【図2】バーコード上を走査される複数本の走査線を示
す図である。
FIG. 2 is a diagram showing a plurality of scanning lines scanned on a barcode.

【図3】本発明の一実施形態によるバーコードリーダの
構成を示す概略ブロック図である。
FIG. 3 is a schematic block diagram illustrating a configuration of a barcode reader according to an embodiment of the present invention.

【図4】同上のデコーダの構成を示すブロック図であ
る。
FIG. 4 is a block diagram showing a configuration of a decoder according to the embodiment.

【図5】(a)(b)(c)は同上のデコーダに用いら
れているバッファメモリ及びバーコード情報格納メモリ
のデータ構造を示す図である。
FIGS. 5A, 5B, and 5C are diagrams showing a data structure of a buffer memory and a barcode information storage memory used in the decoder of the above.

【図6】同上のバーコードリーダにおけるバーコード読
取りのためのアルゴリズムを示すフロー図である。
FIG. 6 is a flowchart showing an algorithm for reading a barcode in the barcode reader according to the embodiment.

【図7】図6のフロー図の一部を示す部分フロー図であ
る。
FIG. 7 is a partial flowchart showing a part of the flowchart of FIG. 6;

【図8】本発明の別な実施形態によるバーコードリーダ
におけるバーコード情報格納メモリのデータ構造を示す
図である。
FIG. 8 is a diagram showing a data structure of a barcode information storage memory in a barcode reader according to another embodiment of the present invention.

【図9】本発明のさらに別な実施形態によるバーコード
リーダにおけるバーコード読取りのためのアルゴリズム
を示すフロー図である。
FIG. 9 is a flowchart illustrating an algorithm for reading a barcode in a barcode reader according to yet another embodiment of the present invention.

【図10】図9のフロー図の一部を示す部分フロー図で
ある。
FIG. 10 is a partial flowchart showing a part of the flowchart in FIG. 9;

【図11】同上の実施形態におけるバーコード情報格納
メモリのデータ構造を示す図である。
FIG. 11 is a diagram showing a data structure of a barcode information storage memory in the embodiment.

【図12】本発明のさらに別な実施形態によるバーコー
ドリーダにおけるバーコード読取りのためのアルゴリズ
ムを示すフロー図である。
FIG. 12 is a flowchart illustrating an algorithm for reading a barcode in a barcode reader according to yet another embodiment of the present invention.

【図13】図12のフロー図の一部を示す部分フロー図
である。
FIG. 13 is a partial flowchart showing a part of the flowchart of FIG. 12;

【図14】同上の実施形態におけるバーコード情報格納
メモリのデータ構造を示す図である。
FIG. 14 is a diagram showing a data structure of a barcode information storage memory in the embodiment.

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

2 光ビーム 4 バーコード 7 半導体レーザー素子 10 ポリゴンミラー 13 受光素子 17 デコーダ 18 バーコード情報判別部 20 DMAコントローラ 21 中央処理装置(CPU) 22,23 バッファメモリ 24 バーコード情報格納メモリ 2 light beam 4 bar code 7 semiconductor laser element 10 polygon mirror 13 light receiving element 17 decoder 18 bar code information discriminating unit 20 DMA controller 21 central processing unit (CPU) 22, 23 buffer memory 24 bar code information storage memory

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 光ビームを複数の異なる走査線に沿って
走査させることにより各走査毎に符号情報を読取り、各
符号情報の一致数に基づいて適正な符号情報を判定する
符号情報読取り装置において、 同一の走査線から得られた同一の符号情報は、1つの符
号情報として一致数を数える符号情報判別手段を備えて
いることを特徴とする符号情報読取り装置。
1. A code information reading apparatus which reads code information for each scan by scanning a light beam along a plurality of different scanning lines and determines appropriate code information based on the number of coincidences of each code information. A code information reading apparatus comprising: code information determination means for counting the number of coincidences as the same code information obtained from the same scanning line as one code information.
【請求項2】 光ビームを複数の異なる走査線に沿って
走査させることにより符号情報を読取り、適正な符号情
報を判定する符号情報読取り装置において、 光ビームを各走査線に沿って走査させることにより各走
査毎に符号情報を読取り、当該符号情報から求めた読取
率に基づいて適正な符号情報を判定する符号情報判別手
段を備えていることを特徴とする符号情報読取り装置。
2. A code information reading apparatus for reading code information by scanning a light beam along a plurality of different scanning lines and determining proper code information, wherein the light beam is scanned along each scanning line. A code information reading device comprising: code information reading means for reading code information for each scan and determining appropriate code information based on a reading rate obtained from the code information.
【請求項3】 光ビームを複数の異なる走査線に沿って
走査させることにより符号情報を読取り、適正な符号情
報を判定する符号情報読取り装置において、 全ての走査線に沿って各1回光ビームを走査して符号情
報の読取りと判定を実行した後、記憶していた全ての符
号情報を消去する符号情報判別手段を備えていることを
特徴とする符号情報読取り装置。
3. A code information reading apparatus for reading code information by scanning a light beam along a plurality of different scanning lines and determining proper code information, wherein each of the light beams is scanned once along all the scanning lines. A code information reading device comprising: code information reading means for scanning and performing code information reading and determining, and then deleting all stored code information.
JP9056891A 1997-02-24 1997-02-24 Code information reader Pending JPH10240852A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9056891A JPH10240852A (en) 1997-02-24 1997-02-24 Code information reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9056891A JPH10240852A (en) 1997-02-24 1997-02-24 Code information reader

Publications (1)

Publication Number Publication Date
JPH10240852A true JPH10240852A (en) 1998-09-11

Family

ID=13040065

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9056891A Pending JPH10240852A (en) 1997-02-24 1997-02-24 Code information reader

Country Status (1)

Country Link
JP (1) JPH10240852A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010250676A (en) * 2009-04-17 2010-11-04 Toshiba Tec Corp Apparatus and method for reading bar code, apparatus and method for processing article sale data
JP2018034835A (en) * 2016-08-31 2018-03-08 株式会社テクノメデイカ Label sticking device for automatic blood collecting tube preparation device
JP2019057026A (en) * 2017-09-20 2019-04-11 カシオ計算機株式会社 Slip processing device, slip processing method and program
JP2019220219A (en) * 2019-09-06 2019-12-26 カシオ計算機株式会社 Slip processing device, slip processing method and program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010250676A (en) * 2009-04-17 2010-11-04 Toshiba Tec Corp Apparatus and method for reading bar code, apparatus and method for processing article sale data
JP2018034835A (en) * 2016-08-31 2018-03-08 株式会社テクノメデイカ Label sticking device for automatic blood collecting tube preparation device
JP2019057026A (en) * 2017-09-20 2019-04-11 カシオ計算機株式会社 Slip processing device, slip processing method and program
CN109858296A (en) * 2017-09-20 2019-06-07 卡西欧计算机株式会社 Invoice processing unit, invoices processing method and storage medium
US10860820B2 (en) 2017-09-20 2020-12-08 Casio Computer Co., Ltd. Slip processing device, slip processing method and storage medium
CN109858296B (en) * 2017-09-20 2022-05-03 卡西欧计算机株式会社 Invoice processing device, invoice processing method and storage medium
JP2019220219A (en) * 2019-09-06 2019-12-26 カシオ計算機株式会社 Slip processing device, slip processing method and program

Similar Documents

Publication Publication Date Title
US5278398A (en) Decoding bar code symbols by determining the best alignment of partial scans
US5241164A (en) Method of decoding bar code symbols from partial scans
US5777310A (en) Problem reduction with low level information integration in bar code decoding
US5920060A (en) Bar code scanner with simplified auto-focus capablilty
US4074114A (en) Bar code and method and apparatus for interpreting the same
AU601100B2 (en) Technique for reading bar codes
US6669091B2 (en) Scanner for and method of repetitively scanning a coded symbology
CN109255271B (en) Electro-optical code reader and method for reading optical codes
CA2267892C (en) Method and apparatus for decoding bar code symbols using ratio analysis of module size
US20040206821A1 (en) Autodiscriminating bar code reading apparatus having solid state image sensor
JPH02268383A (en) Bar code reader
US7108187B2 (en) Method of reading a plurality of bar codes during a scanning motion
US20070152061A1 (en) Methods and apparatus for tracking the direction of a moving item by a bar code scanner
US20040262394A1 (en) Optical reader having solid-state image sensor
US5245167A (en) Bar-code reading apparatus
US5179271A (en) Compact optical scan pattern generator for bar code reading systems
JPH10134130A (en) Method and device for reading bar code
JPH10240852A (en) Code information reader
JPH0877289A (en) Analytical method of circular bar code
KR19990023128A (en) Bar code readers, bar code reading methods and computer readable media
JPH05233867A (en) Bar code reader
US7051939B2 (en) Bar code scanner with laser beam oscillator
JP3606228B2 (en) Bar code reader
JP2725221B2 (en) Barcode reader
JPH0578872B2 (en)