JPS58161078A - Recognizing device of bar code character - Google Patents

Recognizing device of bar code character

Info

Publication number
JPS58161078A
JPS58161078A JP4433482A JP4433482A JPS58161078A JP S58161078 A JPS58161078 A JP S58161078A JP 4433482 A JP4433482 A JP 4433482A JP 4433482 A JP4433482 A JP 4433482A JP S58161078 A JPS58161078 A JP S58161078A
Authority
JP
Japan
Prior art keywords
bars
bar
width
image sensor
image
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
JP4433482A
Other languages
Japanese (ja)
Inventor
Tatsuya Nakamura
達哉 中村
Jiro Kubo
二郎 久保
Takuo Toba
鳥羽 拓夫
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP4433482A priority Critical patent/JPS58161078A/en
Publication of JPS58161078A publication Critical patent/JPS58161078A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/10831Arrangement of optical elements, e.g. lenses, mirrors, prisms

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)

Abstract

PURPOSE:To reduce the read error, by detecting the width of a bar of the width between bars by the output of an image sensor. CONSTITUTION:Bars 15 and 17 constituting a bar code character or a part 16 between bars is focused onto a one-dimensional image sensor 5, and the number of elements indicating the same polarity continuously is taken into a computer in the order of the arrangement of elements 180-18-15. This 16-bit information is processed by the computer to recognize the bar code character. Consequently, the read error is reduced independently of the change of the character scanning speed.

Description

【発明の詳細な説明】 本発明は、バーコード文字を読取るためのバーコード文
字認識装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a barcode character recognition device for reading barcode characters.

従来のバーコード文字認識装置は、文字を走査している
波形を時間および振幅について分析してバーすなわちス
トロークの有無を判断し、ストロ一り間の間隔を測定し
ていた。このようなシステムは動作が比較的複雑である
かまたは遅く、比較的複雑な回路を必要とした。また文
字の走査速度が文字を走査中に大きく変わると、読取り
が不可能であった。
Conventional barcode character recognition devices analyze the waveform scanning a character for time and amplitude to determine the presence or absence of bars or strokes and measure the spacing between strokes. Such systems were relatively complex or slow to operate and required relatively complex circuitry. Furthermore, if the scanning speed of the characters changed significantly while scanning the characters, it was impossible to read them.

本発明は、簡易な回路構成で、文字の走査速度に依存し
ないノゞ−コード文字認識装置を提供することを目的と
する。
SUMMARY OF THE INVENTION An object of the present invention is to provide a code character recognition device that has a simple circuit configuration and does not depend on the character scanning speed.

すなわち、本発明は、−次元イメージセンサ土に、バー
コード文字を構成するバーもしくはバー間を結像させ、
連続して同一極性を示す素子の数でこれらの幅を検出し
、文字の走査にしたがって順次検出を行うことKよって
バーコード文字の認識を行うバーコード文字認識装置で
ある。
That is, the present invention causes a -dimensional image sensor to image the bars or between bars that constitute a barcode character,
This is a barcode character recognition device that recognizes barcode characters by detecting the width of these elements by the number of elements that successively exhibit the same polarity and sequentially detecting them as the characters are scanned.

以下本発明を実施例とともに詳述する。The present invention will be described in detail below along with examples.

第1図は、本発明による装置の光学系の一実施例を示し
たものである。バー1、バー1の像2は便宜上厚みを付
けている。バーコードが印刷されている媒体3上のバー
1はレンズ4を介して一次元イメージセンサ6上にバー
1の像2を結ぶ。このときバー1の像2は一次元イメー
ジセンサ6の内部に全体が写像される状態が可能でなけ
ればならない。バー1間の像についても同様である。し
たがって60μ間隔に16個の素子が湛んだ一次元イメ
ージセンサを用い、標準モジー−ル寸法のTANコード
を読む場合、最大バー幅もしくは最、大バー間幅は、1
.4−弱となるので、その幅に対し約%以下の幅の像を
結ぶように、レンズ4およびレンズ4とノ、く一コード
媒体3の距離およびレンズ4とイメージセンサ6との距
離を設定する必要がある。
FIG. 1 shows an embodiment of the optical system of the apparatus according to the invention. The bar 1 and the image 2 of the bar 1 are thickened for convenience. A bar 1 on a medium 3 on which a bar code is printed forms an image 2 of the bar 1 on a one-dimensional image sensor 6 via a lens 4. At this time, it must be possible for the image 2 of the bar 1 to be entirely mapped inside the one-dimensional image sensor 6. The same applies to the image between bars 1. Therefore, when reading a TAN code with standard module dimensions using a one-dimensional image sensor with 16 elements spaced at 60μ intervals, the maximum bar width or maximum inter-bar width is 1
.. 4-weak, so the distance between the lens 4, the code medium 3, and the distance between the lens 4 and the image sensor 6 are set so as to form an image with a width of approximately % or less of the width. There is a need to.

バー1の幅に対しバー1の像2の幅が小さすぎると、最
小バー幅を検知するセンサ6内の素子の割り当て数が減
少し、バーコード文字読取りの精度の低下となるので、
像の縮尺はに程度が最適である。なお、図において、6
−1〜6−4は像の作図のだめの補助線であり、7はレ
ンズ4の焦点である。
If the width of the image 2 of the bar 1 is too small relative to the width of the bar 1, the number of elements assigned to the sensor 6 that detects the minimum bar width will decrease, resulting in a decrease in the accuracy of barcode character reading.
The scale of the image is optimal. In addition, in the figure, 6
-1 to 6-4 are auxiliary lines for drawing the image, and 7 is the focal point of the lens 4.

第2図は、バーコード文字の情報をマイクロコンピータ
を含むシステムへ取込む回路の一実施例を示したもので
ある。図中のDo”’−D15はマイクロコンピュータ
のデータバスを示し、IOWはマイクロコンピュータか
ら見て出力装置であるフリップフロップ8への書込み信
号を示し、5YNCは一次元イメージセンサの各素子を
一周掃引するごとに、発生するパルスを示し、CLKは
センサの出力を送出すパルスを示し、DATAはセンサ
を構成する各素子の出力を増幅し整形したものを示し、
xonはマイクロコンピュータから見て入力装置である
3ステートバツフア12の読取り信号である。まずり。
FIG. 2 shows an embodiment of a circuit for importing barcode character information into a system including a microcomputer. In the figure, Do"'-D15 indicates the data bus of the microcomputer, IOW indicates a write signal to the flip-flop 8 which is an output device as seen from the microcomputer, and 5YNC indicates one round sweep of each element of the one-dimensional image sensor. CLK indicates the pulse that sends out the output of the sensor, DATA indicates the amplified and shaped output of each element that makes up the sensor,
xon is a read signal of the 3-state buffer 12, which is an input device from the perspective of the microcomputer. First of all.

を1にしてフリップフロップ8に出力すると、信号線1
3が1になり、そののち5YNC信号によりフリップフ
ロップ9の出力である信号線14が1になり、3ステー
トバツフア1oが開き、CLKがシリアルインプット1
6ピツトパラレルアウトプツトレジスタ11にDATA
を送出す。次にDoを0にしてフリップフロップ8にす
ると、信号l513がOになり、そののち5YNC信号
により信号線14が0になり、3ステートバツフア1o
が閉じ、新たなりATAのレジスタ11への入力は停止
する。上述のようにレジスタ11への入力の停止は、5
YNCに同期しているので、レジスタ11内の情報はセ
ンサの素子の配列順に蓄えられている。以上のタイミン
グの詳細を第3図に示す。
When set to 1 and output to flip-flop 8, signal line 1
3 becomes 1, and then the signal line 14, which is the output of the flip-flop 9, becomes 1 due to the 5YNC signal, the 3-state buffer 1o opens, and CLK becomes the serial input 1.
DATA to 6-pit parallel output register 11
Send out. Next, when Do is set to 0 and the flip-flop 8 is set, the signal l513 becomes O, and then the signal line 14 is set to 0 by the 5YNC signal, and the 3-state buffer 1o
is closed, and the new ATA input to the register 11 is stopped. As mentioned above, the input to the register 11 is stopped at 5
Since it is synchronized with YNC, the information in the register 11 is stored in the order in which the sensor elements are arranged. Details of the above timing are shown in FIG.

次に入力装置である3ステートバツフア12を読込むと
、センサの各素子の情報が素子の配列順に取込まれる。
Next, when the three-state buffer 12, which is an input device, is read, information on each element of the sensor is taken in in the order in which the elements are arranged.

この16ビツト情報をマイクロコンピュータで処理する
。以上のサイクルを繰返し、バーコード文字の認識を行
う。
This 16-bit information is processed by a microcomputer. The above cycle is repeated to recognize barcode characters.

次にマイクロコンピュータ内での処理について説明する
Next, processing within the microcomputer will be explained.

第4図は、実施例の一次元イメージセンサの各素子18
−O〜f8−j5とバーの像15および17とバー間の
像16を示したものである。
FIG. 4 shows each element 18 of the one-dimensional image sensor of the embodiment.
-O to f8-j5, bar images 15 and 17, and an image 16 between the bars.

第5図は各素子が時間とともにどのような出力を示して
いたかをマイクロコンピュータに取入れられたときの状
態で示したもので、O印はバーに、X印はバー間にそれ
ぞれ対応する。第4図における素子18−13のように
中間の位置に来たときには1か0かはっきりしないが、
マイクワコンビ番 一一夕に取入りられた状態では、いずれかの状態になっ
ており、その結果、各時間における各バーもしくは各バ
ー間を示す素子の数は一定とな5ない。
FIG. 5 shows the output of each element over time when it is incorporated into a microcomputer, with O marks corresponding to the bars and X marks corresponding to the spaces between the bars. When it comes to an intermediate position like elements 18-13 in Fig. 4, it is not clear whether it is 1 or 0, but
In the state in which the microphone combination was introduced overnight, it is in one of the states, and as a result, the number of elements indicating each bar or between each bar at each time is not constant.

以下に第6図に示されたデータをどのように処理するか
、−例を上げて説明する。まずT1では、ビット鳳16
が○印すなわちバーを検出しているので、ピッ[6〜1
2までのバー間を示しているビット数を数え記憶する。
How to process the data shown in FIG. 6 will be explained below using an example. First, in T1, Bit Otori 16
is detecting the ○ mark, that is, the bar, so the beep [6 to 1
Count and store the number of bits that indicate the distance between bars up to 2.

このときO印の連続ビット瓜2〜6も数えることができ
るが、T7以降に数えることができるのでここでは数え
ないこととする。同様にしてビット瓜15が○印のT2
゜T等についても数え、T、におけるビット盃6〜12
までのバー間の平均を計算し記憶する。T7ではピッ1
415が×印なので、ビット瓜4〜7までのバーを示し
ているビット数を数え、以降同様の処理を順次行う。以
上の処理はビット415に0印が現われたときに始まり
、全ビットが×印になったときに終了する。以上のフロ
ーチャートを第6図に示す。
At this time, consecutive bits 2 to 6 marked with O can also be counted, but since they can be counted after T7, they are not counted here. Similarly, bit melon 15 is T2 marked with ○.
゜T, etc. are also counted, and bit cups 6 to 12 in T.
Calculate and store the average between the bars up to. Pip 1 in T7
Since 415 is an x mark, the number of bits indicating the bar from bits 4 to 7 is counted, and the same process is sequentially performed thereafter. The above processing starts when a 0 mark appears in bit 415 and ends when all bits become x marks. The above flowchart is shown in FIG.

これらの一連の処理が終了すると、最初のバーの幅以外
のバーコード文字の全バーの幅および全バー間の幅が各
々の幅を表わす素子数の平均値として得られるので、レ
フトガードバ−もしくはライパトガ杢ドパ−を表わす素
子数の平均値を基準にバーコード文字を2進数で表わす
ことができ、バーコード文字の認識ができる。
When this series of processing is completed, the widths of all bars of the barcode character other than the width of the first bar and the width between all bars are obtained as the average value of the number of elements representing each width. Barcode characters can be expressed in binary numbers based on the average value of the number of elements representing heat doper, and barcode characters can be recognized.

本発明は、通常数十μ東で1回の掃引が終わるイメージ
センサの出力でバーの幅もしくはバー間の幅の検出を行
うので、文字走査速度の変化に依存せず、データの処理
はほとんどマイクロコンピュータ内で行うことができ、
そのため複雑な回路を必要とせず、処理速度の速いマイ
クロコンビーータを用いれば、一つのバーの幅もしくは
バー間の幅の検出の機会が多くなり、読み誤まりが減少
し、その効果は大きいものである。
The present invention detects the bar width or the width between bars using the output of an image sensor that usually finishes one sweep after several tens of μ east, so it does not depend on changes in character scanning speed and requires almost no data processing. can be done within a microcomputer,
Therefore, if you use a microconbeater that does not require complicated circuits and has a high processing speed, there will be more opportunities to detect the width of a single bar or the width between bars, reducing misreading, which will have a large effect. It is something.

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

第1図は本発明によるバーコード文字認識装置を実施す
るだめの光学系の配置図、第2図は同じくバーコード文
字情報をシステムへ取込むだめの回路のブロック図、第
3図は同じくタイミングチャート、第4図は本発明の実
施例でのセンサとノく一コード文字の像を示す図、第6
図は同じく各時間毎のデータの値を示す図、第6図は本
発明の実m例でバーコード:文字情報をシステムへ取込
むフローチャートである。 1 ・・・・・・バー、2,1 5 .1 7・・・・
・・ ノ(−の像、 3・・・・・・バーコードが印刷
された媒体、4・・・・・・レンズ、6・・・・・・−
次元イメージセンサ、j、9・・・・・−フリラグフロ
ップ、10,12・・・・・・3ステーレ(ソファ、1
1・・・・・・シリアルインプット16ビツトノクラレ
ルアウトプツトレジスタ、13,14・・・・・・信号
線、16・・・・・・バー間の像、18−0〜1f3−
15・・・・・・−次元イメージセンサを構成する素子
。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名$1
481 1I5!1 ビヅ)−N。 昭和67年−6月タ日 特許庁長官殿 1事件の表示 昭和67年特許願第 44334号 2発明の名称 バーコード文字認識装置 代表者    山  下  俊  彦 6補正の対象 明細書の発明の詳細な説明の欄 3、補正の内容 明細書第4頁第18行の「8にすると、」を「8にIO
W信号を出力すると、」°に補正いたします。
Fig. 1 is a layout diagram of an optical system for implementing a barcode character recognition device according to the present invention, Fig. 2 is a block diagram of a circuit for importing barcode character information into the system, and Fig. 3 is a timing diagram. Chart, Figure 4 is a diagram showing images of the sensor and Nokuichi code characters in the embodiment of the present invention, Figure 6
The figure also shows data values for each time, and FIG. 6 is a flowchart for importing barcode/character information into the system in an actual example of the present invention. 1...bar, 2,1 5. 1 7...
・・・ ノ (- image, 3... Media on which the barcode is printed, 4... Lens, 6... -
Dimensional image sensor, j, 9...-free lag flop, 10, 12...3 stereo (sofa, 1
1... Serial input 16-bit output register, 13, 14... Signal line, 16... Image between bars, 18-0 to 1f3-
15...Elements constituting a -dimensional image sensor. Name of agent: Patent attorney Toshio Nakao and 1 other person $1
481 1I5!1 Biz)-N. 19867-June Patent Office Commissioner 1 Indication of the case 1986 Patent Application No. 44334 2 Name of the invention Barcode character recognition device Representative Toshihiko Yamashita 6 Details of the invention in the specification subject to amendment Explanation column 3, page 4, line 18 of the statement of contents of the amendment, change “to 8” to “IO to 8”
When the W signal is output, it will be corrected to ''°.

Claims (1)

【特許請求の範囲】[Claims] 一次元イメ′−ジセンサと、バーコード文字全構成する
最大幅のバーの像もしくは最大幅のバー間の像を前記−
次元イメージセンサを構成する各素子を結ぶ線分の内部
に結像させる光学系と、前記像に対応する同一極性を示
す前記素子の数を検出する検出回路と、前記バーコード
文字の走査にしたがって順次前記検出回路のデータを読
取りバーコード文字を構成する全バーの像および全バー
間の像に対応する前記素子の数を検出し前記バーコード
文字の情報を読取る手段とからなるバーコード文字認識
装置。
A one-dimensional image sensor and the image of the widest bar that makes up the entire barcode character or the image between the widest bars are
an optical system that forms an image inside a line segment connecting each element constituting the dimensional image sensor; a detection circuit that detects the number of the elements showing the same polarity corresponding to the image; Barcode character recognition comprising means for sequentially reading the data of the detection circuit and detecting the number of the elements corresponding to the images of all the bars constituting the barcode character and the images between all the bars and reading the information of the barcode character. Device.
JP4433482A 1982-03-18 1982-03-18 Recognizing device of bar code character Pending JPS58161078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4433482A JPS58161078A (en) 1982-03-18 1982-03-18 Recognizing device of bar code character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4433482A JPS58161078A (en) 1982-03-18 1982-03-18 Recognizing device of bar code character

Publications (1)

Publication Number Publication Date
JPS58161078A true JPS58161078A (en) 1983-09-24

Family

ID=12688611

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4433482A Pending JPS58161078A (en) 1982-03-18 1982-03-18 Recognizing device of bar code character

Country Status (1)

Country Link
JP (1) JPS58161078A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60157665A (en) * 1984-01-28 1985-08-17 Matsushita Electric Ind Co Ltd Data input/output apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60157665A (en) * 1984-01-28 1985-08-17 Matsushita Electric Ind Co Ltd Data input/output apparatus

Similar Documents

Publication Publication Date Title
EP0390162A2 (en) An apparatus for reading a bar code
US4319331A (en) Curve follower
JPS5836392B2 (en) Data signal processing method and processing device
JPS60262284A (en) Image processing
US4533825A (en) Bar code recognition apparatus
JP2007149131A (en) Reading unit and marking card for optical mark reader
US3832686A (en) Bar code font
JP2886545B2 (en) Margin recognition method and bar code reader
US4109143A (en) Optical reader
EP0379546B1 (en) Method and apparatus for reading characters
US4146175A (en) Bar code converter
JPS58161078A (en) Recognizing device of bar code character
JPS62162181A (en) Optical reader
JPH0132556B2 (en)
JPS6122347B2 (en)
JPS583073A (en) Bar-code read system
JPH0421915B2 (en)
JPS6230471B2 (en)
JPH0222741Y2 (en)
JPS619871A (en) Reader of magnetic stripe data
JPS6155148B2 (en)
JPH0831133B2 (en) Print interval judgment method
JP2726214B2 (en) Image reading device
JPS6036632B2 (en) Image discrimination device
JPS6046739B2 (en) Erroneous information check circuit for card information processing device