JPH0357505B2 - - Google Patents
Info
- Publication number
- JPH0357505B2 JPH0357505B2 JP2005782A JP2005782A JPH0357505B2 JP H0357505 B2 JPH0357505 B2 JP H0357505B2 JP 2005782 A JP2005782 A JP 2005782A JP 2005782 A JP2005782 A JP 2005782A JP H0357505 B2 JPH0357505 B2 JP H0357505B2
- Authority
- JP
- Japan
- Prior art keywords
- barcode
- output
- code
- data
- vertical
- 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.)
- Expired - Lifetime
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/01—Details
- G06K7/016—Synchronisation of sensing process
- G06K7/0166—Synchronisation of sensing process by means of clock-signals derived from the code marks, e.g. self-clocking code
Landscapes
- Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
Description
【発明の詳細な説明】
この発明は、媒体たとえば通帳に記録されてい
る縦バーコードまたは横バーコードの別を判別し
かつそのバーコードを読取る装置に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an apparatus for determining whether a vertical bar code or a horizontal bar code is recorded on a medium such as a bankbook and reading the bar code.
この明細書において縦方向とは、記録媒体の相
対的な搬送方向をいい、横方向とはこれに直交す
る方向をいう。したがつて縦バーコードとは、記
録媒体の相対的な搬送方向に平行なバーの集合か
らなり、これのバーは搬送方向に直交する方向に
並んでいる。横バーコードとは、記録媒体の相対
的な搬送方向に直交する1または複数のバーから
なり、これらのバーは搬送方向に平行に並んでい
る。またこの明細書において、前後とは相対的な
搬送方向を基準とする。 In this specification, the vertical direction refers to the relative conveyance direction of the recording medium, and the horizontal direction refers to the direction perpendicular to this direction. Therefore, a vertical barcode consists of a set of bars parallel to the relative conveyance direction of the recording medium, and the bars are arranged in a direction perpendicular to the conveyance direction. A horizontal barcode consists of one or more bars orthogonal to the relative conveyance direction of the recording medium, and these bars are arranged parallel to the conveyance direction. Further, in this specification, front and back refer to the relative conveying direction.
現金自動取引処理装置で使用するために通常通
帳には、各頁の左上の位置にこの頁を表すバーコ
ードが記録されている。古くから使用されている
通帳のバーコードは横バーコードであつて、バー
の本数によつて頁が表わされている。ところが最
近の通帳は頁数が多いために、縦バーコードが用
いられるようになつてきた。また1冊の通帳に縦
バーコードと横バーコードが混用されている場合
がある。このように通帳に縦バーコードと横バー
コードが混在しているために、従来の取引処理装
置においては各バーコードを読取るためのセンサ
が別個に設けられていた。 In order to be used in an automatic cash transaction processing device, a normal passbook has a bar code recorded at the upper left of each page to represent this page. The barcode for bankbooks that has been used for a long time is a horizontal barcode, and the page is represented by the number of bars. However, because recent bankbooks have a large number of pages, vertical barcodes have come to be used. Also, a single bankbook may contain both vertical and horizontal barcodes. Because a bankbook contains both vertical and horizontal barcodes, conventional transaction processing devices have been provided with separate sensors for reading each barcode.
この発明の目的は、縦バーコードと横バーコー
ドとを1つのセンサで読取ることができるととも
に、各バーコードの印刷の不良に影響されずに各
バーコードの別を正確に判別しかつ読取ることの
できる装置を提供することにある。 The purpose of this invention is to be able to read vertical barcodes and horizontal barcodes with one sensor, and to accurately distinguish and read each barcode without being affected by poor printing of each barcode. The goal is to provide a device that can.
以下この発明を、自動取引処理装置において用
いられる通帳に適用した場合の実施例について詳
述する。 Hereinafter, an embodiment in which the present invention is applied to a passbook used in an automatic transaction processing device will be described in detail.
第1図は、通帳に預金額、支払額、残高などの
取引データを印字する記帳機の一部を示してい
る。通帳BNは印字すべき頁が開かれた状態で、
パルス・モータ4およびこのパルス・モータ4に
よつて駆動される搬送ローラ3からなる搬送装置
によつて搬出入される。通帳の搬送路の途上に
は、通帳の先端を検出する先端センサ1および通
帳に記録されているバーコードを読取るイメー
ジ・センサ2が配置されている。さらに搬入側に
は通帳に取引データを印字するための印字ヘツド
5が配置されている。印字ヘツド5は通帳の搬入
方向Drと直交する方向に移動自在である。 FIG. 1 shows part of a bookkeeping machine that prints transaction data such as deposit amounts, payment amounts, and balances on a passbook. The passbook BN is with the page to be printed open,
It is carried in and out by a conveying device consisting of a pulse motor 4 and a conveying roller 3 driven by the pulse motor 4. A tip sensor 1 for detecting the tip of the passbook and an image sensor 2 for reading the barcode recorded on the passbook are disposed along the passbook transport path. Furthermore, a printing head 5 for printing transaction data on the passbook is arranged on the carry-in side. The print head 5 is movable in a direction perpendicular to the passbook carrying direction Dr.
第2図および第3図は縦バーコードおよび横バ
ーコードを示している。縦バーコードBLは第2
図に示されているように、10本の縦バーからな
る。このうち4本は太いバーであつて1を表わ
し、他の6本は細いバーであつて0を表わしてい
る。各縦バーはその位置に応じて重みが付けられ
ている。10本の縦バーによつて表わされるコード
によつて通帳の頁が表わされている。この実施例
においては縦バーのコードはバーの太さによつて
表わされているが、バーの間隔によつて表わすよ
うにしてもよい。横バーコードBTは第3図に示
されているように、1または複数本の横バーから
なる。各横バーの太さおよび相互間隔はそれぞれ
等く、横バーの本数によつて通帳BNの頁が表わ
されている。横バーの最大本数はあらかじめ定ま
つており、この実施例においては5本とする。 Figures 2 and 3 show vertical and horizontal barcodes. Vertical barcode BL is the second
It consists of 10 vertical bars as shown in the figure. Four of these bars are thick and represent 1, and the other six are thin bars and represent 0. Each vertical bar is weighted according to its position. The pages of the passbook are represented by codes represented by 10 vertical bars. In this embodiment, the code of the vertical bar is represented by the thickness of the bar, but it may also be represented by the interval between the bars. As shown in FIG. 3, the horizontal barcode BT consists of one or more horizontal bars. Each horizontal bar has the same thickness and mutual spacing, and the number of horizontal bars represents the page of the passbook BN. The maximum number of horizontal bars is predetermined, and in this embodiment, it is five.
第4図は各バーコードの読取り領域を示してい
る。通帳BNの先端のやや前方の位置から測定さ
れた長さ10は、通帳先端におけるバーコードの読
取エラー発生を防止するためのものである。縦バ
ーコード読取領域12は、縦バーコードBLの先
端よりやや後方の位置からバーコードBLの後端
よりやや前方の位置の間に設定されている。領域
10と12との間を領域11、領域12より後方
に適当な位置までを領域13とする。領域11,
12および13は、横バーコードの読取領域であ
る。 FIG. 4 shows the reading area of each barcode. The length 10 measured from a position slightly in front of the tip of the passbook BN is to prevent barcode reading errors from occurring at the tip of the passbook. The vertical barcode reading area 12 is set between a position slightly behind the leading end of the vertical barcode BL and a position slightly forward of the rear end of the barcode BL. The area between areas 10 and 12 is defined as area 11, and the area behind area 12 to an appropriate position is defined as area 13. Area 11,
12 and 13 are horizontal barcode reading areas.
第5図は、バーコード読取装置の回路図を示し
ている。イメージ・センサ2は第6図に示されて
いるように、横方向に一列に配列されたn個たと
えば256個のホトセンサからなる。イメージ・セ
ンサの検知幅をLとする。イメージ・センサ2は
たとえばnビツト分割電荷結合ホトセンサ・アレ
イである。タイミング発生回路14は、イメー
ジ・センサ2の同期信号を発生するものであり、
走査スタート・パルスSTと同期クロツクパルス
CKとを発生する。スタート・パルスST間隔すな
わち走査周期をTcとする。1走査周期Tcにおい
てn個のクロツクパルスCKが出力される。イメ
ージ・センサ2の出力Aは波形整形回路15で整
形されたのち、カウンタ11,12および13、
微分回路17、ならびにNOT回路18を経てフ
リツプ・フロツプ21のデータ入力端子Dに送れ
る。縦バーコードBL上の走査線SCに沿うイメー
ジ・センサの出力ALおよび横バーコードBT上
の走査線SCに沿うイメージ・センサの出力ATが
第6図に示されている。これらの出力信号におい
て各バーを検出しているセンサの出力はLレベル
であつてこれを黒レベルとする。これに対してバ
ー以外の部分すなわち通帳の白地を検出している
センサ出力はHレベルであつてこれを白レベルと
する。イメージ・センサ2が各バーコードの前後
の位置を走査しているとき、および横バーコード
の間を走査しているとき(その走査線をSCOで
示す)には、センサ出力Aは白レベルのみの信号
となる。 FIG. 5 shows a circuit diagram of the barcode reading device. As shown in FIG. 6, the image sensor 2 consists of n photosensors, for example 256 photosensors, arranged in a line in the horizontal direction. Let L be the detection width of the image sensor. Image sensor 2 is, for example, an n-bit split charge-coupled photosensor array. The timing generation circuit 14 generates a synchronization signal for the image sensor 2,
Scan start pulse ST and synchronized clock pulse
Generates CK. Let Tc be the start pulse ST interval, that is, the scanning period. n clock pulses CK are output in one scanning period Tc. After the output A of the image sensor 2 is shaped by the waveform shaping circuit 15, it is sent to the counters 11, 12 and 13,
The data can be sent to the data input terminal D of the flip-flop 21 via the differentiating circuit 17 and the NOT circuit 18. The output AL of the image sensor along the scanning line SC on the vertical barcode BL and the output AT of the image sensor along the scanning line SC on the horizontal barcode BT are shown in FIG. The output of the sensor detecting each bar in these output signals is L level, which is taken as the black level. On the other hand, the sensor output detecting the portion other than the bar, that is, the white background of the passbook, is at H level, which is taken as the white level. When image sensor 2 is scanning the positions before and after each barcode, and when scanning between horizontal barcodes (the scanning line is indicated by SCO), sensor output A is only at the white level. It becomes a signal.
カウンタ11,12は、イメージ・センサ2の
1走査周期Tcにおいて白レベルまたは黒レベル
が何ビツトあるかを計数するものである。両カウ
ンタ11,12はプリセツト・カウンタであつて
カウンタ11にはプリセツト値n1が、カウンタ
12にはプリセツト値n2がそれぞれ設定されて
いる。プリセツト値n1はたとえば(2/5)・nで
あり、n2は(4/5)・nである。第7図および第
8図を参照して、カウンタ11にはセンサ2の出
力AがNOT回路16を経て入力しており、この
信号AがLレベル(すなわち黒レベル)にある間
に入力するクロツク・パルスCKを計数する。そ
してその計数値がプリセツト値n1を越えると出
力信号BR1を出力する。カウンタ12には信号
Aが入力しており、この信号AがHレベル(すな
わち白レベル)にある間に入力するクロツク信号
CKを計数し、その計数値が、設定プリセツト値
n2を越えると出力信号BR2を出力する。両カ
ウンタ11,12はスタート・パルスSTによつ
てリセツトされ、再び1から計数を開始する。し
たがつて1走査周期Tcにおいて、信号Aの黒レ
ベルが”2/5以上であれば信号BR1が出力され
フリツプ・フロツプ22がセツトされる。また信
号Aの白レベルが4/5以上であれば信号BR2が
出力されフリツプ・フロツプ22がリセツトされ
る。イメージ・センサ2が縦バーコードBL上を
走査しているときおよび横バーコードBT上を走
査しているとき(走査線がSCのとき)には、信
号Aの黒レベルは2/5以上であり、フリツプ・フ
ロツプ22がセツトされる。これに対してイメー
ジ・センサ2が各バーコードの前後および横バー
コードBTの間を走査しているときには(走査線
がSCOのとき)、信号Aの白レベルは4/5以上あ
りフリツプ・フロツプ22がリセツトされる。縦
バーコードBLのは場合には、フリツプ・フロツ
プ22が1回のみセツトされ、その後リセツトさ
れたときにフリツプ・フロツプ22の出力F2Q
がHレベルからLレベルに反転する立下がりが微
分回路23によつて検出され信号SYNとなる。
縦バーコードBLの場合には信号SYNは1個のみ
出力される。横バーコードBTの場合には、フリ
ツプ・フロツプ22は各横バー毎にセツトされ、
その後リセツトされたときの出力F2Qの立下り
が微分回路23によつて検出され信号SYNが出
力される。横バーコードBTの場合には信号SYN
は横バーの本数と同数出力される。これらのカウ
ンタ11,12は、縦バーコードBLと横バーコ
ードBTとを判別するとともに、印刷むらや小さ
なごみによる誤判別を防止するものである。 The counters 11 and 12 count how many bits there are at the white level or black level in one scanning period Tc of the image sensor 2. Both counters 11 and 12 are preset counters, with counter 11 set to a preset value n1, and counter 12 set to a preset value n2. The preset value n1 is, for example, (2/5).n, and the preset value n2 is (4/5).n. Referring to FIGS. 7 and 8, the output A of the sensor 2 is input to the counter 11 via the NOT circuit 16, and the clock input while this signal A is at the L level (i.e., black level) is input to the counter 11.・Count pulse CK. When the counted value exceeds the preset value n1, an output signal BR1 is output. A signal A is input to the counter 12, and a clock signal input while this signal A is at H level (that is, white level)
CK is counted, and when the counted value exceeds a set preset value n2, an output signal BR2 is output. Both counters 11 and 12 are reset by the start pulse ST and start counting from 1 again. Therefore, in one scanning period Tc, if the black level of the signal A is 2/5 or higher, the signal BR1 is output and the flip-flop 22 is set. When the image sensor 2 is scanning the vertical barcode BL and the horizontal barcode BT (when the scanning line is SC), the signal BR2 is output and the flip-flop 22 is reset. ), the black level of the signal A is 2/5 or higher, and the flip-flop 22 is set.In contrast, the image sensor 2 scans before and after each barcode and between the horizontal barcodes BT. (when the scanning line is SCO), the white level of signal A is 4/5 or higher and the flip-flop 22 is reset.If the vertical barcode BL is, the flip-flop 22 is reset only once. The output F2Q of flip-flop 22 when set and then reset
The falling edge where the signal is inverted from the H level to the L level is detected by the differentiating circuit 23 and becomes the signal SYN.
In the case of a vertical barcode BL, only one signal SYN is output. In the case of a horizontal barcode BT, a flip-flop 22 is set for each horizontal bar,
Thereafter, the falling edge of the output F2Q upon being reset is detected by the differentiating circuit 23 and the signal SYN is output. Signal SYN in case of horizontal barcode BT
is output in the same number as the number of horizontal bars. These counters 11 and 12 are used to discriminate between the vertical barcode BL and the horizontal barcode BT, and to prevent misjudgment due to uneven printing or small dust.
微分回路17、カウンタ13およびフリツプ・
フロツプ21は、縦バーコードBLにおいて1を
表わす太い縦バーを検出するものである。第9図
を参照して、微分回路17は、イメージ・センサ
2による縦バーコードBLの読取信号ALの立下り
と立上りを検出するものである。カウンタ13は
プリセツト・カウンタであつて、太い縦バーを検
出するためのプリセツト値n3があらかじめ設定
されている。第6図に示されているように、太い
縦バーの幅t1は細い縦バーの幅t2の2倍であ
る。また縦バーの間隔t3はt2に等い。プリセ
ツト値n3は、太い縦バーの幅t1の2/3の幅を
計数する値に設定されている。たとえばt1がイ
メージ・センサ2の18ビツトに対応するとすれば
n3は12ビツトを計数する値である。この場合細
い縦バーの幅t2は9ビツトに対応するからn3
はこれよりも大きい。カウンタ13は微分回路1
7の立下り検出信号Ddによつてトリガされ信号
ALが黒レベルにある間クロツク・パルスCKを計
数し、微分回路17の立上り検出信号Daによつ
てリセツトされるまでに、計数値がプリセツト値
n3を超えた場合に信号BR3を出力する。した
がつてカウンタ13からは信号ALが太い縦バー
を検出したときのみ信号BR3が出力される。フ
リツプ・フロツプ21のデータ入力端子Dには信
号ALの反転信号が入力しており信号BR3はそ
のトリガ端子Tに入力している。したがつてフリ
ツプ・フロツプ21は信号ALが黒レベルであつ
て信号BR3が入力したときにセツトされる。こ
のフリツプ・フロツプは信号ALの立上り検出毎
にリセツトされる。フリツプ・フロツプ21の出
力F1Qは太い縦バーが検出されたときに出力さ
れ、シフトレジスタ24に送られる。 Differentiating circuit 17, counter 13 and flip
The flop 21 detects a thick vertical bar representing 1 in the vertical barcode BL. Referring to FIG. 9, the differentiation circuit 17 detects the falling and rising edges of the reading signal AL of the vertical barcode BL by the image sensor 2. The counter 13 is a preset counter, and a preset value n3 for detecting thick vertical bars is set in advance. As shown in FIG. 6, the width t1 of the thick vertical bar is twice the width t2 of the thin vertical bar. Further, the interval t3 between the vertical bars is equal to t2. The preset value n3 is set to a value that counts 2/3 of the width t1 of the thick vertical bar. For example, if t1 corresponds to 18 bits of image sensor 2, n3 is a value that counts 12 bits. In this case, the width t2 of the thin vertical bar corresponds to 9 bits, so n3
is larger than this. Counter 13 is differentiator circuit 1
The signal is triggered by the falling detection signal Dd of 7.
The clock pulse CK is counted while AL is at the black level, and if the counted value exceeds the preset value n3 before being reset by the rising edge detection signal Da of the differentiating circuit 17, a signal BR3 is output. Therefore, the counter 13 outputs the signal BR3 only when the signal AL detects a thick vertical bar. The inverted signal of the signal AL is input to the data input terminal D of the flip-flop 21, and the signal BR3 is input to its trigger terminal T. Therefore, flip-flop 21 is set when signal AL is at black level and signal BR3 is input. This flip-flop is reset every time the rising edge of the signal AL is detected. The output F1Q of the flip-flop 21 is output when a thick vertical bar is detected, and is sent to the shift register 24.
シフトレジスタ24はフリツプ・フロツプ21
の出力F1Qをシリアル−パラレル変換するため
のものであつて、AND回路27を経て入力する
立上り検出信号Daによつてトリガされる。AND
回路27および28のゲートは、後述するところ
から明らかなように、フリツプフロツプ26がセ
ツトされたときにその出力DFQによつて開かれ
る。シフトレジスタ24によつてパラレル信号に
変換された1走査周期Tcにおける縦バーコー
ド・データは、次にフアースト・イン・フアース
ト・アウト・バツフア25(以下FIFOと略す)
に送られシフトイン同期信号SINに同期して
FIFOに25の取込まれる。この同期信号SINは
AND回路28を経て入力するスタート・パルス
STである。FIFO25は、後述するm走査分の縦
バーコード・データをストアする容量をもつてい
る。そして同期信号SIN毎に、入力された縦バー
コード・データは順次シフトされる。FIFO25
にストアされたデータは、後述するシフトアウト
同期信号SOTによつて順次読出される。 The shift register 24 is a flip-flop 21
It is for serial-to-parallel conversion of the output F1Q of , and is triggered by the rising edge detection signal Da inputted via the AND circuit 27. AND
The gates of circuits 27 and 28 are opened by the output DFQ of flip-flop 26 when it is set, as will be seen below. The vertical barcode data in one scanning period Tc converted into a parallel signal by the shift register 24 is then sent to a first-in-first-out buffer 25 (hereinafter abbreviated as FIFO).
in synchronization with the shift-in synchronization signal SIN.
25 are taken into FIFO. This synchronization signal SIN is
Start pulse input via AND circuit 28
It is ST. The FIFO 25 has a capacity to store vertical barcode data for m scans, which will be described later. The input vertical barcode data is sequentially shifted for each synchronization signal SIN. FIFO25
The data stored in is sequentially read out by a shift-out synchronization signal SOT, which will be described later.
イメージ・センサ2によつて横バーコードBT
が読取られている場合には、第10図に示される
ように、フリツプ・フロツプ21は1回のみセツ
トされ、またシフトレジスタ24は立上り信号
Daによつて1回のみシフトされるから、FIFO2
5にストアされる縦バーコードBLの読取データ
とは全く異つたものとなる。 Horizontal barcode BT by image sensor 2
is being read, flip-flop 21 is set only once and shift register 24 is set only once, as shown in FIG.
FIFO2 is shifted only once by Da.
This data is completely different from the read data of the vertical barcode BL stored in 5.
この実施例においては、バーコード読取装置は
中央処理装置(以下CPUと略す)によつて制御
されている。CPU40は、その実行プログラム
を格納したPROM41および各種データを記憶
するRAM42の備えている。また上述した回路
とCPUはインターフエース31,32,33を
介して接続されている。インターフエース31は
FIFO25のデータを読取るためのものである。
インターフエース32は、センサ1や微分回路2
3の出力を読取とともにフリツプ・フロツプ26
やFIFO25を制御する信号を出力するものであ
る。またパルス・モータ4の駆動回路6はこのイ
ンターフエイス32を介して制御される。インタ
ーフエイス33はカウンタとして用いられてい
る。さらにCPU40はパルス発生回路34を備
えている。この回路34から発生したクロツク・
パルスは駆動回路6に送られるとともにAND回
路35を介してインターフエイス33に入力す
る。 In this embodiment, the barcode reading device is controlled by a central processing unit (hereinafter abbreviated as CPU). The CPU 40 includes a PROM 41 that stores its execution program and a RAM 42 that stores various data. Further, the above-mentioned circuit and the CPU are connected via interfaces 31, 32, and 33. Interface 31 is
This is for reading data from FIFO25.
The interface 32 is connected to the sensor 1 and the differential circuit 2.
Flip-flop 26 reads the output of 3.
It outputs a signal for controlling the FIFO 25 and FIFO25. Further, the drive circuit 6 of the pulse motor 4 is controlled via this interface 32. Interface 33 is used as a counter. Furthermore, the CPU 40 includes a pulse generation circuit 34. The clock generated from this circuit 34
The pulse is sent to the drive circuit 6 and is also input to the interface 33 via the AND circuit 35.
第11図はRAM42のデータ領域およびそこ
にストアされるデータの初期値を示している。こ
こでCNAはバーコードの本数を示す信号SYNの
数を計数するカウンタである。Cl0,Cl1,Cl
2,Cl3は、通帳BNを距離l0,l1,l2,
l3だけ搬送するのに必要な、パルス・モータ4
に与えるべきクロツク・パルス数を表しており、
そのエリアはクロツク・パルスを計数するカウン
タとして用いられる。mは、縦バーコード読取領
域におけるイメージ・センサ2の走査回数を表わ
しておりそのエリヤは走査回数を計数するカウン
タとして用いられる。moは、縦バーコードの読
取データの許容一致回数を示している。この実施
例においてはm=25、no=20と設定されている。
Kは、横バーコードを構成するバーの最大数+1
である。この実施例においては横バーの最大数は
5であるからK=6である。FLは、イメージ・
センサ2の読取に位置が領域12を経過したこと
を記憶するためのフラグである。データDAは、
FIFO25から読取つたデータを表わし、このエ
リヤにはm=25の読取データが記憶される。デー
タDBのエリヤは、データDAのうちのチエツク
されたパターン・データを記憶するものであつ
て、ここには同一のパターン・データの出現回数
を計数するカウンタとして用られる場所が、各パ
ターン・データ毎に設けられている。イメージ・
センサ2の走査速度は通帳BNの搬送速度vより
も高速であり、L/Tc≫vが成立する。そして
通帳BNが距離12だけ搬送される間に、m回の
走査が行われる。 FIG. 11 shows the data area of the RAM 42 and the initial values of data stored therein. Here, CNA is a counter that counts the number of signals SYN indicating the number of barcodes. Cl0, Cl1, Cl
2, Cl3 uses the passbook BN as distance l0, l1, l2,
Pulse motor 4 required to transport l3
It represents the number of clock pulses that should be given to
That area is used as a counter to count clock pulses. m represents the number of scans of the image sensor 2 in the vertical barcode reading area, and this area is used as a counter to count the number of scans. mo indicates the permissible number of matches of vertical barcode reading data. In this embodiment, m=25 and no=20 are set.
K is the maximum number of bars that make up the horizontal barcode + 1
It is. In this example, the maximum number of horizontal bars is 5, so K=6. FL is an image
This is a flag for storing that the position passed through the area 12 when read by the sensor 2. Data DA is
This area represents data read from the FIFO 25, and m=25 read data is stored in this area. The area of the data DB is for storing the checked pattern data of the data DA, and the area used as a counter for counting the number of occurrences of the same pattern data is stored in each pattern data area. provided for each. image·
The scanning speed of the sensor 2 is faster than the transport speed v of the bankbook BN, and L/Tc≫v holds true. Then, while the passbook BN is conveyed a distance of 12, scanning is performed m times.
第12図は、CPUによるイメージ・センサの
読取制御および読取られたデータにもとづくバー
コードの判別処理の手順を示している。まず
RAM42のデータ・エリヤの初期値がセツトさ
れる(ステツプ101)。次にパルス・モータ4を正
転されるさせるための指示信号CONが出力され
(ステツプ102)、パルス発生回路34を動作させ
るための信号が出力され、この回路34からクロ
ツク・パルスPCKが出力され駆動回路6に送ら
れる(ステツプ103)。これによりパルス・モータ
4が正転駆動され、通帳BNは搬入方向Drに搬送
されていく。続いてフラグFLが0にリセツトさ
れる(ステツプ104)。通帳BNの先端がセンサ1
の位置に至ると、その先端がセンサ1によつて検
出される。センサ1の検出信号aはインターフエ
イス32を介してCPU40に入力する(ステツ
プ105)。通帳BNの先端検出ののち読取位置チエ
ツク処理、縦バーコード・データ読取処理および
バーコード本数計数処理が並行して行われる。 FIG. 12 shows the procedure of image sensor reading control by the CPU and barcode discrimination processing based on the read data. first
The initial value of the data area of RAM 42 is set (step 101). Next, an instruction signal CON for causing the pulse motor 4 to rotate in the normal direction is output (step 102), a signal for operating the pulse generation circuit 34 is output, and a clock pulse PCK is output from this circuit 34. The signal is sent to the drive circuit 6 (step 103). As a result, the pulse motor 4 is driven to rotate in the forward direction, and the passbook BN is conveyed in the carry-in direction Dr. Subsequently, the flag FL is reset to 0 (step 104). The tip of the passbook BN is sensor 1
When the tip reaches the position, the sensor 1 detects the tip. The detection signal a of the sensor 1 is input to the CPU 40 via the interface 32 (step 105). After detecting the leading edge of the passbook BN, a reading position check process, a vertical barcode data reading process, and a barcode number counting process are performed in parallel.
読取位置チエツク処理においては、まずプリセ
ツト値Cl0がプリセツト・カウンタとして動作す
るインターフエイス33にセツトされ、ANDゲ
ート35が開かれる(ステツプ111)。これにより
カウンタ33はANDド回路35を経て入力する
クロツク・パルスPCKを計数しプリセツト値Cl
0から減算していく。カウンタ33の計数は減算
結果が0になるまで続けられ、0になると(ステ
ツプ112)通帳BNは距離10だけ搬送されたこ
とになるからこの時点でイメージ・センサに2に
よるバーコードの読取が開始される。(ステツプ
113)。イメージ・センサ2の読取開始は、たとえ
ばタイミング発生回路14の動作を開始させる
か、または波形整形回路15の出力側にAND回
路を設けておきこのAND回路のゲートを開くよ
うにすればよい。イメージ・センサ2出力Aは、
上述したように波形整形回路を経て、カウンタ1
1,12,13、微分回路17およびフリツプ・
フロツプ21に送られる。 In the reading position check process, first, a preset value Cl0 is set in the interface 33 which operates as a preset counter, and the AND gate 35 is opened (step 111). As a result, the counter 33 counts the clock pulse PCK input via the AND circuit 35 and calculates the preset value Cl.
Subtract from 0. Counting by the counter 33 continues until the subtraction result becomes 0, and when it reaches 0 (step 112), it means that the bankbook BN has been conveyed a distance of 10, so at this point the image sensor starts reading the barcode by 2. be done. (step
113). Reading by the image sensor 2 may be started by, for example, starting the operation of the timing generation circuit 14, or by providing an AND circuit on the output side of the waveform shaping circuit 15 and opening the gate of this AND circuit. Image sensor 2 output A is
As mentioned above, the counter 1 passes through the waveform shaping circuit.
1, 12, 13, differentiating circuit 17 and flip
It is sent to flop 21.
次にプリセツト値Cl1がカウンタ33にプリセ
ツトされ、同様にしてカウンタ33の減算動作が
開始される(ステツプ114)。カウンタ33の減算
結果が0になると(ステツプ115)、イメージ・セ
ンサ2による読取位置は領域l2に入つたのであ
るから、フリツプ・フロツプ26をセツトするた
めの信号がそのデータ入力端子Dに送られる(ス
テツプ116)。このフリツプ・フロツプ26はこの
後そのトリガ端子Tにスタート・パルスSTが入
力したときにセツトされ、信号DFQが出力され
ることにより、AND回路27,28のゲートが
開かれる。この時点からバーコード・データがシ
フトレジスタに24に入力し、1走査ごとに
FIFO25にストアされるのは上述したとおりで
ある。フリツプ・フロツプ26のセツト後、プリ
セツト値Cl2がカウンタ33にプリセツトされ
(ステツプ117)、カウンタ33は距離l2の計数
を開始する。 Next, the preset value Cl1 is preset in the counter 33, and the subtraction operation of the counter 33 is similarly started (step 114). When the subtraction result of the counter 33 becomes 0 (step 115), the reading position by the image sensor 2 has entered the area l2, so a signal for setting the flip-flop 26 is sent to its data input terminal D. (Step 116). This flip-flop 26 is then set when a start pulse ST is input to its trigger terminal T, and the gates of AND circuits 27 and 28 are opened by outputting a signal DFQ. From this point on, the barcode data is input into the shift register 24 times, and every scan
What is stored in the FIFO 25 is as described above. After setting the flip-flop 26, the preset value Cl2 is preset in the counter 33 (step 117), and the counter 33 starts counting the distance l2.
カウンタ33の減算値が0になると(ステツプ
118)、フリツプ・フロツプ26のデータ入力端子
Dへの入力信号が停止され、フリツプ・フロツプ
26はリセツトされる(ステツプ119)。以上で領
域l2のデータの読取が終了し、プリセツト値Cl
3がカウンタ33にセツトされ、同様にこのカウ
ンタ33は減算動作を開始する(ステツプ120)。
そしてフラグFLが1にセツトされ(ステツプ
121)、読取位置チエツク処理が終了する。 When the subtraction value of the counter 33 becomes 0 (step
118), the input signal to the data input terminal D of the flip-flop 26 is stopped, and the flip-flop 26 is reset (step 119). This completes reading the data in area 12 and sets the preset value Cl.
3 is set in the counter 33, and the counter 33 similarly begins a subtraction operation (step 120).
Then the flag FL is set to 1 (step
121), the reading position check process ends.
縦バーコード・データ読込み処理においては、
まずフリツプ・フロツプ26の出力DFQが検査
される(ステツプ131)。この出力DFQはインタ
ーフエイス32を介してCPU40に入力してい
る。フリツプ・フロツプ26がセツトされて信号
DFQが出力され、この後DFQの出力が停止する
と、(ステツプ132)、イメージ・センサによる領
域l2の読取が終了したのであるから、つぎに
FIFO25からの縦バーコード・データの読込み
処理に進む。まずFIFO25からその第1番目の
データがインターフエイス31を介してCPU4
0に読み込まれ(ステツプ133)、この読み込まれ
たデータはRAM42のデータ・エリアDA第1
番目の記憶場所にストアされる(ステツプ134)。
つづいてシフト・アウト・パルスSOTが出力さ
れFIFO25がシフトされる(ステツプ135)。そ
してカウンタmの内容がマイナス1され(ステツ
プ136)、このカウンタmの内容が0になつたかど
うかが検査される(ステツプ137)。カウンタmの
内容が0でなければデータ・エリアDAの記憶場
所のアドレスにプラス1され(ステツプ138)、ス
テツプ133に戻つてFIFO25の2番目のデータが
同様に読み込まれ、データ・エリアDAの第2番
目の記憶場所にストアされる(ステツプ134)。こ
のようにしてFIFO25から1走査周期ごとのデ
ータが順次CPU40によつてそのRAM42のデ
ータ・エリアDAに読み込まれかつストアされ
る。そしてm=25回の走査のデータが全て読み込
まれると、カウンタmの内容は0になるので(ス
テツプ137)、縦バーコード・データ読み込み処理
が終了する。 In the vertical barcode data reading process,
First, the output DFQ of flip-flop 26 is examined (step 131). This output DFQ is input to the CPU 40 via the interface 32. Flip-flop 26 is set and the signal
When the DFQ is output and the DFQ output stops (step 132), the image sensor has finished reading the area l2, so next
Proceed to the process of reading vertical barcode data from the FIFO 25. First, the first data from the FIFO 25 is sent to the CPU 4 via the interface 31.
0 (step 133), and this read data is stored in data area DA 1 of RAM 42.
stored in the memory location (step 134).
Subsequently, a shift out pulse SOT is output and the FIFO 25 is shifted (step 135). The contents of counter m are then incremented by 1 (step 136), and it is checked whether the contents of counter m have become 0 (step 137). If the contents of the counter m are not 0, the address of the storage location in the data area DA is incremented by 1 (step 138), and the process returns to step 133, where the second data in the FIFO 25 is read in the same way, and the second data in the data area DA is read in the same way. Stored in the second memory location (step 134). In this way, data for each scanning cycle is sequentially read from the FIFO 25 into the data area DA of the RAM 42 by the CPU 40 and stored therein. When all the data of m=25 scans are read, the contents of the counter m become 0 (step 137), and the vertical barcode data reading process ends.
バーコード本数計数処理においては、微分回路
23から立下がり検出信号SYNが出力されたか
どうかが検査され、(ステツプ141)、信号SYNが
出力されると、RAM42内のカウンタCNAに+
1される(ステツプ142)。そしてフラグFLがセ
ツトされたかどうかが検査される(ステツプ
143)。上述のようにフラグFLは領域l2のバー
コード・データ読取が終了したときに1にセツト
される(ステツプ121)。フラグFLが1にセツト
されていなければステツプ141に戻つて同様に信
号SYNの状態が検査される。フラグFLが1にセ
ツトされると、カウンタ33の減算結果が0にな
つたかどうかが検査される(ステツプ144)。カウ
ンタ33には、フラグFLがセツトされたときに
プリセツト値Cl3がプリセツトされている(ステ
ツプ120)。カウンタ33の減算結果が0になるま
で信号SYNの状態の検査と、SYNが出力された
ときのカウンタCNAへの加算が繰返される。そ
してカウンタ33の減算結果が0になつたときに
バーコード本数計数処理が終了する。この処理に
おいてはイメージ・センサ2が領域l1,l2お
よびl3上を移動しているときに検出されたとき
にバーコードの本数がカウンタCNAによつて計
数される。この処理の様子が主に第8図に示され
ている。 In the barcode number counting process, it is checked whether the falling detection signal SYN is output from the differentiating circuit 23 (step 141), and when the signal SYN is output, the counter CNA in the RAM 42 is
1 (step 142). Then it is checked whether the flag FL is set (step
143). As mentioned above, the flag FL is set to 1 when reading of the barcode data in area 12 is completed (step 121). If the flag FL is not set to 1, the process returns to step 141 and the state of the signal SYN is similarly checked. When the flag FL is set to 1, it is checked whether the subtraction result of the counter 33 has become 0 (step 144). A preset value Cl3 is preset in the counter 33 when the flag FL is set (step 120). The inspection of the state of the signal SYN and the addition to the counter CNA when SYN is output are repeated until the subtraction result of the counter 33 becomes 0. Then, when the subtraction result of the counter 33 becomes 0, the barcode number counting process ends. In this process, the number of barcodes detected while the image sensor 2 is moving over the areas 11, 12, and 13 is counted by the counter CNA. The state of this processing is mainly shown in FIG.
ステツプ144においてYESになれば、上述した
3つの並行処理が終了し、次にカウンタCNAの
内容が検査される(ステツプ151)。カウンタ
CNAの内容が0の場合には通帳にはバーコード
が記録されていなかつたのであるからその通帳は
バーコードがない通帳として排出される(ステツ
プ161〜163)。 If YES in step 144, the three parallel processes described above are completed, and the contents of counter CNA are then checked (step 151). counter
If the CNA content is 0, it means that no barcode has been recorded on the passbook, and the passbook is discharged as a passbook without a barcode (steps 161 to 163).
カウンタCNAの内容が0でない場合には次に、
CNAの内容が1かどうかが検査される(ステツ
プ152)。カウンタCNAの内容が1でない場合に
は、カウンタCNAの内容は2以上の値であるか
らつづいて、CNAの内容がK未満かどうが検査
される(ステツプ153)。上述のようにKは横バー
コードBTの最大本数よりも1多い数であるか
ら、検出されたバーコード本数がK未満であれば
それは横バーコードと判定される(ステツプ
154)。検出されたバーコード本数がK以上の場合
にはこの通帳は規定外の通帳であるとして排出さ
れる(ステツプ158、159)。 If the contents of counter CNA are not 0, then
The contents of CNA are checked to see if they are 1 (step 152). If the content of the counter CNA is not 1, since the content of the counter CNA is a value of 2 or more, it is subsequently checked whether the content of the counter CNA is less than K (step 153). As mentioned above, K is one more than the maximum number of horizontal barcodes BT, so if the number of detected barcodes is less than K, it is determined that it is a horizontal barcode (step
154). If the number of detected barcodes is K or more, this passbook is considered to be a non-standard passbook and is ejected (steps 158 and 159).
検出されたバーコード本数すなわちカウンタ
CNAの内容が1の場合には読取られたバーコー
ドは縦バーコードBLおよび横バーコードBTの
両方の可能性があるのでデータDAのチエツク処
理に進む(ステツプ155)、このチエツク処理の詳
細が第13図に示されている。 Number of barcodes detected, i.e. counter
If the content of CNA is 1, there is a possibility that the read barcode is both a vertical barcode BL and a horizontal barcode BT, so proceed to the data DA check process (step 155).The details of this check process are as follows. It is shown in FIG.
第13図において、まずカウンタmとデータ・
エリヤDAのアドレス・カウンタの内容に初期値
がセツトされる(ステツプ170)。そしてデータ・
エリヤDAの第1番目のデータが読み出され、そ
のデータについて4OUT OF10のチエツクが行
われる(ステツプ171)。上述のように縦バーコー
ドBLは10本の縦バーコードからなりそのうちの
4本が太い縦バーで構成されている。この4OUT
OF10のチエツクにおいては1走査周期Tcのデ
ータ中にコード1が4個あるかどうかが検査され
る。4OUT OF10のチエツクにおいてOKであ
れば次にデータ・パターンのチエツクが行われる
(ステツプ172)。第1番目のデータについてはこ
のチエツクは行われず、ただちにRAM42のエ
リヤDBの第1番目のパターン・データ記憶場所
に4OUT OF10のチエツクが行われたデータが
記憶され、かつそのパターン・データ記憶場所に
対応するカウンタの内容に+1される(ステツプ
176、177)。つづいてカウンタmの内容から−1
され(ステツプ174)、カウンタmの内容が0かど
うかが検査され(ステツプ175)、mの内容が0で
なければデータ・エリヤDAのアドレス・カウン
タの内容に+1され(ステツプ178)ステツプ171
にもどる。同様にデータ・エリヤDAの第2番目
の記憶場所のデータが読み出され4OUT OF10
のチエツクが行われる。このチエツクにおいて
OKであればこの第2番目のデータがデータ・エ
リヤDBの第1番目のパターン・データ記憶場所
に記憶されているパターン・データと一致するか
どうかが検査される(ステツプ172)。両データが
一致した場合には、データ・エリヤDBの第1番
目のパターン・データ記憶場所に対応するカウン
タの内容に+1され(ステツプ173)、ステツプ
174、175、178を経て再びステツプ171に戻る。こ
のようにしてデータ・エリヤDAのすべてのデー
タについて4OUT OF10のチエツクと、それら
のパターン・データが一致するかどうかのチエツ
クが順次行われ、一致した場合にはデータ・エリ
ヤDBの一致したパターン・データに対応するカ
ウンタの内容に+1される。そしてm=25回のチ
エツクが終了すると、ステツプ156に進む。ステ
ツプ156においては、パターン・データ・エリヤ
DB内のいずれかのカウンタの計数値がmoよりも
大きいかどうかが検査される。moは上述のよう
に20に設定されている。データ・エリヤDBのい
ずれかのカウンタの計数値がmoよりも大きいと
いうことは、データ・エリヤDAに記憶されてい
た25回の走査のデータのうち少くとも20回の走査
のデータが一致していることを示している。この
場合にはそのデータは縦バーコードのデータであ
ると判定される(ステツプ157)。カウンタの計数
値がmo以下の場合には横バーコードのデータで
あると判定される(ステツプ154)。横バーコード
のデータは、ステツプ171における4OUT OF1
0のチエツクにおいてNGとされるのでデータ・
エリヤDBのカウンタに+1されることはない。 In Fig. 13, first the counter m and the data
An initial value is set to the contents of the address counter of Elijah DA (step 170). And data
The first data of Elijah DA is read out, and 4OUT OF10 is checked for that data (step 171). As mentioned above, the vertical barcode BL consists of 10 vertical barcodes, four of which are thick vertical bars. This 4OUT
In the check of OF10, it is checked whether there are four code 1's in the data of one scanning period Tc. If the 4OUT OF10 check is OK, then the data pattern is checked (step 172). This check is not performed for the first data, and the data for which 4OUT OF10 has been checked is immediately stored in the first pattern data storage location of the area DB of the RAM 42, and the data for which the 4OUT OF10 check has been performed is immediately stored in the first pattern data storage location of the area DB of the RAM 42. The contents of the corresponding counter are incremented by 1 (step
176, 177). Next, from the contents of counter m -1
Then, it is checked whether the contents of the counter m are 0 (step 175), and if the contents of m are not 0, the contents of the address counter of the data area DA are incremented by 1 (step 178), and the address counter of the data area DA is incremented by 1 (step 178).
Return to Similarly, the data in the second storage location of data area DA is read out and 4OUT OF10
A check is performed. In this check
If OK, it is checked whether this second data matches the pattern data stored in the first pattern data storage location of the data area DB (step 172). If both data match, the contents of the counter corresponding to the first pattern data storage location of the data area DB are incremented by 1 (step 173), and the step
After steps 174, 175, and 178, return to step 171. In this way, the 4OUT OF10 check is sequentially performed for all data in the data area DA, and a check is made to see if the pattern data match. If they match, the matched pattern data in the data area DB is checked. The contents of the counter corresponding to the data are incremented by 1. When m=25 checks are completed, the process advances to step 156. In step 156, the pattern data area
It is checked whether the count value of any counter in the DB is greater than mo. mo is set to 20 as described above. If the count value of any counter in the data area DB is greater than mo, it means that the data of at least 20 scans out of the 25 scans stored in the data area DA match. It shows that there is. In this case, the data is determined to be vertical barcode data (step 157). If the count value of the counter is less than or equal to mo, it is determined that the data is a horizontal barcode (step 154). The horizontal barcode data is 4OUT OF1 in step 171.
Since it is judged as NG in the check of 0, the data
Elijah DB's counter will not be incremented by 1.
上記実施例においてはイメージ・センサ2は固
定され、かつ通帳BNは搬送されているが、逆に
通帳を固定しておいてイメージ・センサ2を移動
させるようにしてもよい。またこの発明は通帳以
外の記録媒体に記録されたバーコードにも適用で
きるのはいうまでもない。 In the above embodiment, the image sensor 2 is fixed and the bankbook BN is transported, but the image sensor 2 may be moved while the bankbook is fixed. It goes without saying that the present invention can also be applied to barcodes recorded on recording media other than passbooks.
以上詳細に説明したように、この発明によるバ
ーコード読取装置は、横方向に走査してバーを読
取るイメージ・センサ、イメージ・センサと記録
媒体とを縦方向に相対的に移動させる移動手段、
イメージ・センサの出力から各走査ごとにバーの
有無を表わす信号を得、この信号の上記移動方向
における変化にもとづいてバーの本数を検出する
本数検出手段、イメージ・センサの出力の走査方
向における変化にもとづいて各走査ごとにバーの
表わすコードを判別するコード判別手段、上記本
数検出手段によつて検出されたバーの本数が1本
のときに、複数回の走査において上記コード判別
手段から縦バーコードのフオーマツトを満たす同
一のコードが所定回数以上出力されるという条件
を満たしていれば縦バーコードと判定して所定回
数以上出力された上記同一のコードを縦バーコー
ドの読取り出力とする縦バーコード判定手段、な
らびに上記本数検出手段によつて検出されたバー
本数が1本であつて上記コード判別手段の出力が
上記の条件を満たしていないときおよび検出され
たバー本数が2本以上のときには横バーコードと
判定し、上記本数検出手段の出力を横バーコード
の読取り出力とする横バーコード判定手段を備え
ている。 As described above in detail, the barcode reading device according to the present invention includes an image sensor that scans in the horizontal direction to read the bar, a moving means that relatively moves the image sensor and the recording medium in the vertical direction,
A number detecting means for obtaining a signal indicating the presence or absence of a bar from the output of the image sensor for each scan, and detecting the number of bars based on a change in the signal in the movement direction, and a change in the output of the image sensor in the scanning direction. code discrimination means for discriminating the code represented by a bar for each scan based on the number of bars detected by the number detection means; If the same code that satisfies the code format is output a predetermined number of times or more, it is determined to be a vertical barcode, and the same code that has been output a predetermined number of times or more is a vertical barcode reading output. When the number of bars detected by the code determining means and the number detecting means is one and the output of the code determining means does not satisfy the above conditions, and when the number of detected bars is two or more. A horizontal barcode determining means is provided which determines that the barcode is a horizontal barcode and uses the output of the number detecting means as a horizontal barcode reading output.
したがつて、1個のイメージ・センサで縦バー
コードと横バーコードとを区別して検知しかつこ
れらによつて表わされるコードを読取ることがで
きる。また検出されたバーの本数と、コードを表
わすデータの検査にもとづいて、縦バーコードと
横バーコードの別を判定しているから、バーの印
刷不良や小さなごみの存在による誤検知がなく正
確にバーコードの判定を行うことができる。 Therefore, a single image sensor can separately detect a vertical bar code and a horizontal bar code, and read the code represented by them. In addition, since it determines whether it is a vertical barcode or a horizontal barcode based on the number of detected bars and an inspection of the data representing the code, there are no false positives due to bar printing defects or the presence of small dust, and the accuracy is accurate. It is possible to perform barcode determination.
第1図は、記帳機の通帳搬送機構およびイメー
ジ・センサの配置を示す構成図、第2図および第
3図は、通帳に記録された縦バーコードおよび横
バーコードをそれぞれ示す図、第4図はバーコー
ド読取領域を示す図、第5図はバーコード読取装
置の電気回路を示すブロツク図、第6図はイメー
ジ・センサによるバーコードの読取の様子を示す
図、第7図および第8図は、主にバー本数検出の
ための回路の動作を示すタイム・チヤート、第9
図および第10図は、主にバーコード・データを
読取る回路の動作を示すタイム・チヤート、第1
1図はRAMの内容を示す図、第12図および第
13図は、CPUによるバーコード読取およびバ
ーコード判定処理の手順を示すフローチヤートで
ある。
2…イメージ・センサ、3…搬送ローラ、4…
パルス・モータ、11,12,13…カウンタ、
14…タイミング発生回路、15…波形整形回
路、17…微分回路、21,22,26…フリツ
プ・フロツプ、23…立下り微分回路、24…シ
フトレジスタ、25…FIFO、40…CPU、42
…RAM、BN…通帳、BL…縦バーコード、BT
…横バーコード。
Figure 1 is a block diagram showing the arrangement of the passbook transport mechanism and image sensor of the bookkeeping machine, Figures 2 and 3 are diagrams showing the vertical barcode and horizontal barcode recorded on the passbook, respectively. The figure shows the barcode reading area, Figure 5 is a block diagram showing the electric circuit of the barcode reading device, Figure 6 is a diagram showing how the barcode is read by the image sensor, and Figures 7 and 8. The figure is a time chart, No. 9, which mainly shows the operation of the circuit for detecting the number of bars.
Figure 1 and Figure 10 are time charts showing the operation of the circuit that reads barcode data.
FIG. 1 is a diagram showing the contents of the RAM, and FIGS. 12 and 13 are flowcharts showing the procedure of barcode reading and barcode determination processing by the CPU. 2... Image sensor, 3... Conveyance roller, 4...
Pulse motor, 11, 12, 13... counter,
14...Timing generation circuit, 15...Waveform shaping circuit, 17...Differentiating circuit, 21, 22, 26...Flip-flop, 23...Falling differentiation circuit, 24...Shift register, 25...FIFO, 40...CPU, 42
…RAM, BN…passbook, BL…vertical barcode, BT
...horizontal barcode.
Claims (1)
バーコードの別を判別しかつそのバーコードを読
取る装置であつて、 横方向に走査してバーを読取るイメージ・セン
サ、 イメージ・センサと媒体とを縦方向に相対的に
移動させる移動手段、 イメージ・センサの出力から各走査ごとにバー
の有無を表わす信号を得、この信号の上記移動方
向における変化にもとづいてバーの本数を検出す
る本数検出手段、 イメージ・センサの出力の走査方向における変
化にもとづいて各走査ごとにバーの表わすコード
を判別するコード判別手段、 上記本数検出手段によつて検出されたバーの本
数が1本のときに、複数回の走査において上記コ
ード判別手段から縦バーコードのフオーマツトを
満たす同一のコードが所定回数以上出力されると
いう条件を満たしていれば縦バーコードと判定し
て所定回数以上出力された上記同一のコードを縦
バーコードの読取り出力とする縦バーコード判定
手段、ならびに 上記本数検出手段によつて検出されたバー本数
が1本であつて上記コード判別手段の出力が上記
の条件を満たしていないときおよび検出されたバ
ー本数が2本以上のときには横バーコードと判定
し、上記本数検出手段の出力を横バーコードの読
取り出力とする横バーコード判定手段、 を備えているバーコード読取装置。[Scope of Claims] 1. A device for determining whether a vertical barcode or a horizontal barcode is recorded on a medium and reading the barcode, comprising: an image sensor that reads bars by scanning in the horizontal direction;・A moving means for relatively moving the sensor and the medium in the vertical direction; a signal indicating the presence or absence of bars is obtained from the output of the image sensor for each scan, and the number of bars is determined based on the change in this signal in the above-mentioned movement direction. code determining means for determining the code represented by the bar for each scan based on changes in the output of the image sensor in the scanning direction; code determining means for determining the code represented by the bar for each scan based on a change in the output of the image sensor in the scanning direction; In the case of a book, if the code discrimination means outputs the same code that satisfies the format of a vertical barcode a predetermined number of times or more in multiple scans, it is determined to be a vertical barcode and outputs the same code a predetermined number of times. Vertical bar code determination means that reads the same code as the vertical bar code reading output, and the number of bars detected by the number detection means is one and the output of the code determination means meets the above conditions. horizontal barcode determination means for determining that the barcode is a horizontal barcode when the above conditions are not satisfied and when the number of detected bars is two or more, and for determining the output of the number detection means as a horizontal barcode reading output. Code reader.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005782A JPS58139275A (en) | 1982-02-10 | 1982-02-10 | Bar-code reader |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005782A JPS58139275A (en) | 1982-02-10 | 1982-02-10 | Bar-code reader |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS58139275A JPS58139275A (en) | 1983-08-18 |
| JPH0357505B2 true JPH0357505B2 (en) | 1991-09-02 |
Family
ID=12016445
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2005782A Granted JPS58139275A (en) | 1982-02-10 | 1982-02-10 | Bar-code reader |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS58139275A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62279479A (en) * | 1986-05-29 | 1987-12-04 | Matsushita Electric Ind Co Ltd | Bar-code reader |
| JPH079643Y2 (en) * | 1987-03-09 | 1995-03-08 | 有限会社メープル | Printer with bar code reader |
-
1982
- 1982-02-10 JP JP2005782A patent/JPS58139275A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS58139275A (en) | 1983-08-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH05166029A (en) | Paper money discriminating unit | |
| US5014324A (en) | MICR character reader using magnetic peaks to update timing clocks | |
| JPH0357505B2 (en) | ||
| JPS5848956B2 (en) | Paper leaf identification device | |
| JPS6122347B2 (en) | ||
| JPS6036632B2 (en) | Image discrimination device | |
| JPS5939073B2 (en) | How to position the print line on a passbook | |
| JPS5949669A (en) | Data reader | |
| JPS60215294A (en) | Paper money discriminator | |
| KR970010372B1 (en) | Similar character reading system of barcode decoder | |
| JPS5936051A (en) | Bill hole detecting device | |
| KR930005567B1 (en) | Guard Bar Detection System of Barcode Decoder | |
| JPS6118087A (en) | Pattern reader for sheet paper | |
| JPS5826596B2 (en) | Injibaitai no Injikai Shigiyoukanrihoushiki | |
| JPH04217092A (en) | Device for discriminating true or fake of paper money | |
| JPS60123753A (en) | object inspection system | |
| JPH0237306B2 (en) | ||
| JPS5936313B2 (en) | Data processing control method | |
| JP2503954B2 (en) | Paper leaf discriminating device | |
| JP2918190B2 (en) | Magnetic writing device | |
| JPS59161772A (en) | Bankbook processor | |
| JP4480247B2 (en) | Media processing device | |
| JPH09265511A (en) | Optical character reader | |
| JPS5994181A (en) | Pattern recognizing device | |
| JP2645198B2 (en) | Pattern recognition device |