JPH09185670A - Medium processor - Google Patents

Medium processor

Info

Publication number
JPH09185670A
JPH09185670A JP34235595A JP34235595A JPH09185670A JP H09185670 A JPH09185670 A JP H09185670A JP 34235595 A JP34235595 A JP 34235595A JP 34235595 A JP34235595 A JP 34235595A JP H09185670 A JPH09185670 A JP H09185670A
Authority
JP
Japan
Prior art keywords
data
bar code
bar
black
line
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
JP34235595A
Other languages
Japanese (ja)
Inventor
Toru Sugiyama
徹 杉山
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP34235595A priority Critical patent/JPH09185670A/en
Publication of JPH09185670A publication Critical patent/JPH09185670A/en
Pending legal-status Critical Current

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

PROBLEM TO BE SOLVED: To minimize the setting frequency of parameter by recognizing automatically the direction and position of every bar at the side of a medium processor and then analyzing the number of pages. SOLUTION: A black/white decision part 21 performs the black/white decision of every pixel against the digital value data. A storage part 35 stores the position of every bar of a horizontal bar code, a storage part 36 stores the black/ white decision results, and a storage part 37 stores the digital value data equivalent to a prescribed number of lines based on the lines that are decided black by the part 21. Then a control part 16 stores the position of every bar of the horizontal bar code in the part 35 and also decides the direction of the bar based on the data stored in the part 37. When the vertical direction of the bar is decided, the number of pages is analyzed based on the data of the part 37. When the horizontal direction of the bar is decided, the data stored in the part 36 are compared with the data stored in the part 35 up to the final line where a bar should exist. Then the number of pages is analyzed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、バ−コ−ドが付さ
れた通帳等の媒体を処理する媒体処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a medium processing device for processing a medium such as a passbook provided with a bar code.

【0002】[0002]

【従来の技術】従来、金融機関等に設置される媒体処理
装置としての通帳記帳機に通帳が開かれた状態で挿入さ
れると、所定の頁が開かれた状態で通帳記帳機に挿入さ
れたか否かの確認が装置側で行われる。
2. Description of the Related Art Conventionally, when a passbook is inserted into a passbook entry machine as a medium processing device installed in a financial institution, etc., the page is inserted into the passbook entry machine with a predetermined page opened. Whether or not it is confirmed is performed on the device side.

【0003】この確認には、通帳の各頁に印刷されてい
る頁マ−クが使用され、この頁マ−クが光学的に読み取
られることにより、何頁目が開かれた状態となっている
のかが判定される。そして、所定の頁が開かれているこ
とが判定された場合には、その頁に印字が行われ、所定
の頁が開かれていない場合には、タ−ンペ−ジユニット
に通帳を搬送して改頁を行う。
[0003] For this confirmation, a page mark printed on each page of the passbook is used, and by reading this page mark optically, what page is opened. Is determined. When it is determined that a predetermined page is open, printing is performed on that page, and when the predetermined page is not open, the passbook is conveyed to the turn page unit. And page break.

【0004】頁マ−クはバ−コ−ドで示されており、こ
のバ−コ−ドには、通帳の搬送方向に対して直交する方
向に各バ−が印刷されている横バ−コ−ドと、通帳の搬
送方向に対して平行な方向に各バ−が印刷されている縦
バ−コ−ドとの2種類がある。また、バ−コ−ドの存在
する位置は、各銀行毎に異なっている。
The page mark is indicated by a bar code, and the bar code is a horizontal bar on which each bar is printed in a direction orthogonal to the carrying direction of the passbook. There are two types: a code and a vertical bar code in which each bar is printed in a direction parallel to the carrying direction of the passbook. Further, the position where the bar code exists is different for each bank.

【0005】このバ−コ−ドを読み取るために、装置に
は予めパラメ−タとして、装置の挿入される通帳が縦バ
−コ−ドか横バ−コ−ドかの別、各バ−が存在する位
置、頁解析を行うための閾値が装置起動時のシステムに
与えられており、これらの情報を電源投入時に制御基板
上のメモリにロ−ドする。なお、各銀行毎にシステムは
異なる。そして、上記パラメ−タに基づいて頁の解析が
行われる。
In order to read this bar code, the bar code is inserted into the device as a parameter in advance, and whether the passbook into which the device is inserted is a vertical bar code or a horizontal bar code. The position at which is present and the threshold for performing page analysis are given to the system at the time of starting the apparatus, and these information are loaded into the memory on the control board when the power is turned on. The system is different for each bank. Then, the page is analyzed based on the above parameters.

【0006】横バ−コ−ドは、バ−の数が同じで異なる
頁を示すことができるように、頁毎に存在するバ−の位
置を変える場合がある。すなわち、各バ−が同じ太さで
あって且つ各バ−の間隔が、2つのバ−コ−ドで同じで
あったとしても、バ−の存在する位置を変えることによ
り、異なる頁を示す。また、横バ−コ−ドにおいては、
バ−の本数を変えて異なる頁数を示す場合がある。それ
故、各バ−がどの位置に存在しているのかが判らない
と、頁の解析を行うことが不可能である。
The horizontal bar code may change the position of the existing bar for each page so that different pages can be shown with the same number of bars. That is, even if the bars have the same thickness and the intervals between the bars are the same in the two bar codes, different positions can be displayed by changing the positions of the bars. . In the horizontal bar code,
The number of bars may be changed to indicate different page numbers. Therefore, it is impossible to analyze the page without knowing the position of each bar.

【0007】一方、縦バ−コ−ドにおいては、バ−は太
いバ−と細いバ−の2種類あり、各頁のバ−は同じ位置
に印刷されている。そして、太いバ−の位置を頁毎に変
えることにより示す頁数を変えている。
On the other hand, in the vertical bar code, there are two kinds of bars, a thick bar and a thin bar, and the bars on each page are printed at the same position. The number of pages shown is changed by changing the position of the thick bar for each page.

【0008】[0008]

【発明が解決しようとする課題】上記従来の通帳記帳機
においては、頁の解析を行うために、予めパラメ−タと
して、装置に挿入される通帳が縦バ−コ−ドか横バ−コ
−ドかの別、各バ−が存在する位置、頁解析を行うため
の閾値の設定を行わなければならず、パラメ−タの設計
工数が多くかかってしまうという問題点があった。
In the above-mentioned conventional passbook entry machine, a passbook which is inserted into the device as a parameter in advance for page analysis is a vertical bar code or a horizontal bar code. There is a problem in that it takes a lot of man-hours for designing parameters, because it is necessary to set a position where each bar exists and a threshold value for page analysis.

【0009】[0009]

【課題を解決するための手段】上記課題を解決するため
に本発明で設けた解決手段は、横バ−コ−ドでは頁によ
り本数や位置を変えて印刷され、縦バ−コ−ドでは頁に
より異なる太さで印刷されている各バ−を、イメ−ジセ
ンサで横バ−コ−ドのバ−と平行な方向に1ライン毎に
光学的に読取り、読取り結果から媒体の開かれている頁
数を解析する媒体処理装置において、イメ−ジセンサで
読み取られたアナログ値の各画素のデ−タを、デジタル
値のデ−タに変換するA/Dコンバ−タと、デジタル値
のデ−タに対して各画素毎に白黒の判定を行う白黒判定
部と、横バ−コ−ドを構成する各バ−の存在位置を記憶
する第1の記憶部と、白黒判定部で白黒判定された結果
を1ライン毎に記憶する第2の記憶部と、白黒判定部が
黒の判定を行うと、そのラインから規定ライン分の各画
素のデジタル値のデ−タを1ライン毎に記憶する第3の
記憶部と、横バ−コ−ドを構成する各バ−の存在位置を
調べ第1の記憶部に記憶すると共に、白黒判定後のデ−
タを順次第2の記憶部に記憶し、第3の記憶部に規定ラ
イン分デジタル値のデ−タが記憶されると、該デ−タを
呼び出し、デ−タからバ−の向きを判定し、判定結果が
縦の場合は、第3の記憶部のデ−タから縦バ−コ−ドの
示す頁数を解析し、判定結果が横の場合は、バ−が存在
するはずの最終ラインまで第2の記憶部にデ−タが記憶
された後に、第2の記憶部からデ−タを呼び出して第1
の記憶部のデ−タと比較し、横バ−コ−ドの頁数を解析
する制御部とを設けたものである。
In order to solve the above-mentioned problems, the solution means provided by the present invention is such that the horizontal bar code is printed by changing the number and position of the pages, and the vertical bar code is printed. Each bar printed with a different thickness depending on the page is optically read line by line by the image sensor in the direction parallel to the bar of the horizontal bar code, and the medium is opened from the read result. In a medium processing device for analyzing the number of pages present, an A / D converter for converting the data of each pixel of an analog value read by an image sensor into a data of a digital value and a data of a digital value. -A black-and-white judging section for making a black-and-white judgment for each pixel with respect to the pixel, a first storage section for storing the existence position of each bar forming the horizontal bar code, and a black-and-white judging section for a black-and-white judging section. When the second storage unit that stores the obtained result for each line and the black-and-white determination unit performs black determination From the line, the third storage unit for storing the data of the digital value of each pixel for the specified line for each line, and the existence position of each bar forming the horizontal bar code are checked, and the first position is checked. The data is stored in the storage unit, and the
The data is sequentially stored in the second storage unit, and when the data of the digital value for the specified line is stored in the third storage unit, the data is called and the direction of the bar is determined from the data. If the determination result is vertical, the number of pages indicated by the vertical bar code is analyzed from the data in the third storage unit. If the determination result is horizontal, the final bar where the bar is supposed to exist is analyzed. After the data is stored in the second storage unit up to the line, the data is called from the second storage unit to the first line.
And a control unit for analyzing the number of pages of the horizontal bar code in comparison with the data in the storage unit.

【0010】まず、横バ−コ−ドの媒体を使用する装置
の場合、媒体の全てのバ−を含む横バ−コ−ドが印刷さ
れている頁を開き、その頁マ−クをイメ−ジセンサで読
み取らせる。すると、そのデ−タはA/Dコンバ−タを
介して白黒判定部に送信され、その後制御部が横バ−コ
−ドの各バ−が存在する位置を調べる。そして、制御部
は第1の記憶部に各バ−の存在位置を記憶する。
First, in the case of an apparatus using a medium of horizontal bar code, the page on which the horizontal bar code including all the bars of the medium is printed is opened, and the page mark is read. -Make the sensor read. Then, the data is transmitted to the black-and-white judging section through the A / D converter, and then the control section examines the position where each bar of the horizontal bar code exists. Then, the control unit stores the existence position of each bar in the first storage unit.

【0011】次に装置に媒体が挿入されると、イメ−ジ
センサで読み取ったデ−タに対して、A/Dコンバ−タ
により各画素毎にアナログ値からデジタル値に変換す
る。白黒判定部ではデジタル値に変換されたデ−タに対
して、各画素毎に白黒判定を行う。そして、白黒判定部
の判定結果を、1ライン毎に第2の記憶部に記憶してい
く。
Next, when the medium is inserted into the apparatus, the data read by the image sensor is converted from an analog value to a digital value for each pixel by the A / D converter. The black-and-white judging section makes a black-and-white judgment for each pixel with respect to the data converted into the digital value. Then, the determination result of the monochrome determination unit is stored in the second storage unit for each line.

【0012】白黒判定部があるラインの読取り時に黒の
判定を行うと、バ−がイメ−ジセンサに到達したとして
そのラインから規定ライン分、第3の記憶部にデジタル
値に変換されたデ−タを全画素分1ライン毎に記憶して
いく。
If the black / white judging section judges black when reading a certain line, it is determined that the bar has reached the image sensor, and the line corresponding to the specified line is converted into a digital value in the third storage section. Data for all pixels is stored for each line.

【0013】規定ライン分第3の記憶部にデ−タが記憶
されると、制御部は、第3の記憶部に記憶されたデ−タ
からバ−の向きを判定する。そして、判定結果が縦の場
合は、第3の記憶部のデ−タからバ−コ−ドの示す頁数
を解析する。
When data is stored in the third storage unit for the specified line, the control unit determines the direction of the bar from the data stored in the third storage unit. If the determination result is vertical, the number of pages indicated by the bar code is analyzed from the data in the third storage section.

【0014】一方、判定結果が横の場合は、媒体の媒体
搬送方向先端部からの距離が最も離れたバ−の位置まで
のデ−タが第2の記憶部に記憶されると、制御部は第2
の記憶部からデ−タを呼び出す。第1の記憶部に、横バ
−コ−ドの各バ−が存在する位置が記憶されているの
で、制御部は、第1の記憶部に記憶されている各バ−が
存在している位置と、第2の記憶部のデ−タのバ−が存
在している位置とを比較し、第2の記憶部に記憶されて
いるバ−の示す頁数の解析を行う。
On the other hand, when the determination result is horizontal, when the data up to the position of the bar having the longest distance from the front end of the medium in the medium transport direction is stored in the second storage unit, the control unit Is the second
Data is recalled from the storage section of. Since the position where each bar of the horizontal bar code exists is stored in the first storage unit, the control unit has each bar stored in the first storage unit. The position is compared with the position where the data bar of the second storage section is present, and the number of pages indicated by the bar stored in the second storage section is analyzed.

【0015】[0015]

【発明の実施の形態】本発明の発明の実施の形態につい
て図面を参照しながら説明する。なお、各図面に共通な
要素には同一の符号を付す。図1は発明の実施の形態に
おける通帳記帳機の制御系を示すブロック図、図2は発
明の実施の形態における通帳を示す斜視図、図3は発明
の実施の形態における縦バ−コ−ドを示す拡大図、図4
は発明の実施の形態における横バ−コ−ドを示す拡大
図、図5、図6は発明の実施の形態における通帳の一部
を示す説明図、図7は発明の実施の形態における通帳記
帳機の構造を示す説明図である。図2において、媒体で
ある通帳3には、磁気ストライプ2が設けられており、
通帳3の全ての中紙27には、頁数を示す頁マ−クがバ
−コ−ド28として印刷されている。
Embodiments of the present invention will be described with reference to the drawings. Elements common to the drawings are denoted by the same reference numerals. 1 is a block diagram showing a control system of a bankbook entry machine according to an embodiment of the invention, FIG. 2 is a perspective view showing a bankbook according to the embodiment of the invention, and FIG. 3 is a vertical bar code according to the embodiment of the invention. 4 is an enlarged view showing FIG.
Is an enlarged view showing a horizontal bar code in the embodiment of the invention, FIGS. 5 and 6 are explanatory views showing a part of a passbook in the embodiment of the invention, and FIG. 7 is a passbook entry book in the embodiment of the invention. It is explanatory drawing which shows the structure of a machine. In FIG. 2, a magnetic stripe 2 is provided on a passbook 3, which is a medium,
A page mark indicating the number of pages is printed as a bar code 28 on all the inside papers 27 of the passbook 3.

【0016】図3、図4に示すように、バ−コ−ド28
には、読取り方向と直交する方向にバ−が向いている縦
バ−コ−ド29と、読取り方向と平行な方向にバ−が向
いている横バ−コ−ド30とがある。縦バ−コ−ド29
の長さAは横バ−コ−ド30の1本の太さBに比べて十
分に長いものである。
As shown in FIGS. 3 and 4, a bar code 28
Includes a vertical bar code 29 in which the bar faces in a direction orthogonal to the reading direction and a horizontal bar code 30 in which the bar faces in a direction parallel to the reading direction. Vertical bar code 29
The length A is much longer than the thickness B of one of the horizontal bar cords 30.

【0017】縦バ−コ−ド29は通帳3の搬送方向先端
部3a(以下先端部3aとする)からの距離が、各頁で
同じであるが、横バ−コ−ドは、図5、図6に示すよう
に、バ−が印刷されている位置が頁により異なり、各バ
−の太さ及び間隔が同じであっても異なった頁数を示す
ことができるようになっている。
The vertical bar code 29 has the same distance from the leading end portion 3a (hereinafter referred to as the leading end portion 3a) of the passbook 3 in the conveying direction on each page, but the horizontal bar code is shown in FIG. As shown in FIG. 6, the position where the bar is printed differs depending on the page, and it is possible to indicate different page numbers even if the bar has the same thickness and interval.

【0018】以下に上記通帳3が挿入される通帳記帳機
1について説明する。図7において、通帳記帳機1に
は、通帳3を通帳記帳機1に挿入、及び排出する挿入排
出口4が設けられている。また、通帳記帳機1内には、
挿入排出口4に続けて通帳3が搬送される搬送路5が設
けられている。この搬送路5に沿って、通帳3を搬送す
る複数の搬送ロ−ラ対6と、通帳3の磁気ストライプ2
の読取り、及び磁気ストライプ2へのデ−タの書き込み
を行う磁気ヘッド7と、磁気ヘッド7に対向して磁気ス
トライププレス部26とが設けられており、上記挿入排
出口4と、磁気ヘッド7と、磁気ストライププレス部2
6とでインサ−タユニット27が構成されている。
The passbook entry machine 1 into which the passbook 3 is inserted will be described below. In FIG. 7, the passbook entry machine 1 is provided with an insertion and ejection port 4 for inserting and ejecting the passbook 3 into the passbook entry machine 1. Also, in the passbook entry machine 1,
A transport path 5 through which the passbook 3 is transported is provided subsequent to the insertion / ejection port 4. A plurality of transport roller pairs 6 for transporting the passbook 3 and the magnetic stripes 2 of the passbook 3 along the transport path 5.
A magnetic head 7 for reading data and writing data to the magnetic stripe 2, and a magnetic stripe press section 26 facing the magnetic head 7, and the insertion / ejection port 4 and the magnetic head 7 are provided. And the magnetic stripe press section 2
An inserter unit 27 is composed of 6 and 6.

【0019】通帳記帳機1にはまた、搬送路5に沿って
通帳3に印刷されたバ−コ−ド28及び印字済み行を読
み取る光学式頁・行読取りユニット8と、通帳3に印字
を行うプリンタユニット9とが設けられている。なお、
プリンタユニット9は、印字ヘッド10と、印字ヘッド
10に対向して配置されたプラテン11とから構成され
ている。
The bankbook entry machine 1 also has a bar code 28 printed on the bankbook 3 along the conveyance path 5 and an optical page / line reading unit 8 for reading the printed lines, and prints on the bankbook 3. And a printer unit 9 for performing the operation. In addition,
The printer unit 9 includes a print head 10 and a platen 11 arranged so as to face the print head 10.

【0020】通帳記帳機1には、搬送路5に沿って更
に、通帳3の頁めくりを自動的におこなうタ−ンペ−ジ
ユニット12と、取り引き終了後、挿入排出口4に排出
した通帳3を顧客が取り忘れた際に、通帳3を引き込ん
で保留する通帳取り込み部13と、通帳繰越が発生した
場合に新しい通帳3を発行する間、全ての頁に印字して
しまった通帳3を一時保留しておく通帳一時保留部14
と、新しく発行する通帳3が入っている通帳スタッカ1
5が設けられている。通帳スタッカ15には通帳3をス
タッカから繰り出す繰出しロ−ラ33、34が設けられ
ている。
The passbook entry machine 1 further includes a turnpage unit 12 for automatically turning pages of the passbook 3 along the conveying path 5, and a passbook discharged to the insertion / exit opening 4 after the completion of the transaction. When the customer forgets to pick up 3, the passbook importing unit 13 that pulls in and holds the passbook 3 and the passbook 3 that has been printed on all pages while a new passbook 3 is issued when a passbook carryover occurs Passbook temporary holding section 14 to hold temporarily
And the passbook stacker 1 containing the newly issued passbook 3
5 are provided. The passbook stacker 15 is provided with feeding rollers 33 and 34 for feeding the passbook 3 from the stacker.

【0021】また、搬送路5には、切換えゲ−ト31、
32が設けられており、切換えゲ−ト31、32を回動
することにより、通帳3の搬送方向が切換えられる。
The transfer path 5 has a switching gate 31,
32 is provided, and the conveying direction of the passbook 3 is switched by rotating the switching gates 31, 32.

【0022】通帳記帳機1内にはまた、通帳記帳機1を
制御する制御部16が設けられている。
A control unit 16 for controlling the passbook entry machine 1 is also provided in the passbook entry machine 1.

【0023】次に上記通帳記帳機1を制御する制御系、
特に、光学式頁・行読取りユニット8及び通帳3搬送の
制御系の構造について図1に基づいて説明する。なお、
図8、図9は発明の実施の形態における光学式頁・行読
取りユニットで頁マ−クを読み取った際の波形を示す説
明図、図10、図11は発明の実施の形態における第3
の記憶部を示す説明図である。
Next, a control system for controlling the passbook entry machine 1,
In particular, the structure of the optical page / line reading unit 8 and the control system of the transport of the passbook 3 will be described with reference to FIG. In addition,
8 and 9 are explanatory views showing waveforms when a page mark is read by the optical page / row reading unit in the embodiment of the invention, and FIGS. 10 and 11 are third views in the embodiment of the invention.
It is explanatory drawing which shows the memory | storage part.

【0024】光学式頁・行読取りユニット8は、図1に
示すように、光源17と、レンズ18と、通帳3の紙面
に反射した光源17の光の反射光量をレンズ18を介し
て結像するイメ−ジセンサ19と、イメ−ジセンサ19
の出力の増幅や、波形の整形を行う出力増幅部20とか
ら構成されている。なお、イメ−ジセンサ19は通帳3
搬送方向と直交する方向に、1ライン(0.1mm)毎
にバ−コ−ド28を読み取り、また、イメ−ジセンサ1
9は256画素から成る。
As shown in FIG. 1, the optical page / line reading unit 8 forms an image of the reflected light amount of the light source 17, the lens 18, and the light of the light source 17 reflected on the paper surface of the passbook 3 through the lens 18. Image sensor 19 and image sensor 19
And an output amplification section 20 that amplifies the output and shape the waveform. Note that the image sensor 19 is a passbook 3
The bar code 28 is read every line (0.1 mm) in the direction orthogonal to the transport direction, and the image sensor 1
9 consists of 256 pixels.

【0025】制御部16の内部には、イメ−ジセンサ1
9で読み取られたデ−タを各画素毎に、アナログ値から
デジタル値に変換して後述する白黒判定部21に送信す
るA/Dコンバ−タ25と、デジタル値のデ−タに対し
て各画素毎に白か黒かの判定を行い、判定結果を後述す
る第1の記憶部及び第2の記憶部36へ1ライン毎に送
信する白黒判定部21とが設けられている。
The image sensor 1 is provided inside the control unit 16.
For each pixel, the data read in step 9 is converted from an analog value to a digital value and transmitted to a black-and-white judging section 21 to be described later, and an A / D converter 25 and digital value data. A black-and-white determination unit 21 is provided that determines whether each pixel is white or black and transmits the determination result to a first storage unit and a second storage unit 36, which will be described later, for each line.

【0026】制御部16にはまた、モ−タコントロ−ル
部22が接続されている。このモ−タコントロ−ル部2
2は、制御部16の指示によりモ−タ24へのON/O
FF信号や、モ−タ24を回転するタイミング信号等を
生成し、モ−タドライバ23に信号を送る。モ−タドラ
イバ23は、モ−タコントロ−ル部22からの信号によ
りモ−タ24を回転させる。モ−タ24は通帳3を搬送
するモ−タであり、回転することで図7に示す搬送ロ−
ラ対6を回転させ、通帳3を搬送する。
A motor control section 22 is also connected to the control section 16. This motor control unit 2
2 is ON / O to the motor 24 according to the instruction of the control unit 16.
An FF signal, a timing signal for rotating the motor 24, and the like are generated, and the signal is sent to the motor driver 23. The motor driver 23 rotates the motor 24 according to a signal from the motor control unit 22. The motor 24 is a motor for carrying the passbook 3, and by rotating the motor 24, the carrying roller shown in FIG.
The bank pair 3 is rotated to convey the passbook 3.

【0027】また、モ−タコントロ−ル部22は、図示
せぬイメ−ジセンサ駆動タイミング生成部とも接続され
ており、これにより、モ−タコントロ−ル部22から出
力されるタイミング信号に同期して、イメ−ジセンサ1
9が1ライン読み取って得た出力レベルをあるスライス
レベルと比較して、出力値の大小により読み取った画素
毎に白黒の判定を行う。
The motor control unit 22 is also connected to an image sensor drive timing generation unit (not shown), so that the motor control unit 22 is synchronized with the timing signal output from the motor control unit 22. , Image sensor 1
The output level 9 obtained by reading one line is compared with a certain slice level, and black and white is determined for each pixel read according to the magnitude of the output value.

【0028】本実施の形態の制御においては、黒印刷の
行われている部分をイメ−ジセンサ19が読み取ると、
電圧値は低くなり、黒印刷の行われていない部分を読み
取ると、電圧値は高くなるようになっている。また、中
間調の濃度では、その間の電圧値となる。縦バ−コ−ド
29を構成するバ−は10本であるので、イメ−ジセン
サ19で縦バ−コ−ド29を1ライン読み取ると、デ−
タは図8に示すような10本の大きな波形となる。各バ
−は、印字とは異なり、一定以上の濃い印刷が施されて
いるので、電圧値が大きく10箇所下がると、縦バ−コ
−ド29の検出開始となる。横バ−コ−ド30を構成す
るバ−を読み取ると、印字には有り得ない長い黒を示す
電圧の落ち込みがあり、イメ−ジセンサ19で横バ−コ
−ド30を1ライン読み取ると、デ−タは図9に示すよ
うな波形となる。長い黒を示す電圧の落ち込みの定義と
しては印字1文字幅以上としておけば、印字はこのパタ
−ンには該当しないため印字をバ−と検知してしまうこ
とはない。
In the control of the present embodiment, when the image sensor 19 reads a portion where black printing is performed,
The voltage value is low, and the voltage value is high when the portion where black printing is not performed is read. In the case of halftone density, the voltage value is in the meantime. Since the vertical bar code 29 has ten bars, if the image sensor 19 reads one line of the vertical bar code 29, the bar code
The data has ten large waveforms as shown in FIG. Unlike the printing, each bar is printed darker than a certain level, so when the voltage value drops significantly at 10 points, the vertical bar code 29 starts to be detected. When the bar that constitutes the horizontal bar code 30 is read, there is a voltage drop indicating a long black color that is not possible in printing. When the image sensor 19 reads one line of the horizontal bar code 30, -Is the waveform as shown in FIG. If the voltage drop indicating long black is defined as one character width or more for printing, the printing does not correspond to this pattern and the printing is not detected as a bar.

【0029】制御部16にはまた、第1の記憶部35
と、第2の記憶部36と、第3の記憶部37とが接続さ
れている。第1の記憶部35には、横バ−コ−ド30を
構成する各バ−の存在位置(通帳3の先端部3aから何
ライン目に各バ−が位置しているか)が制御部16によ
り調べられ、記憶される。この場合、制御部16は白黒
判定部21の判定結果から各バ−の存在位置を判断す
る。
The control unit 16 also includes a first storage unit 35.
The second storage unit 36 and the third storage unit 37 are connected to each other. In the first storage unit 35, the control unit 16 stores the existence position of each bar forming the horizontal bar code 30 (on which line from the tip 3a of the passbook 3 each bar is located). Be checked and stored by. In this case, the control unit 16 determines the existence position of each bar based on the determination result of the monochrome determination unit 21.

【0030】第2の記憶部36には、各画素が白黒判定
部21で白か黒に判定された後、1ライン目から1ライ
ン毎に記憶される。なお、この第2の記憶部36に記憶
されるデ−タの最終ラインは、第1の記憶部35に記憶
された横バ−コ−ド30の最も通帳3の先端部3aから
離れた位置に存在するバ−のラインまでである。
The second storage unit 36 stores each pixel from the first line after each pixel is determined to be white or black by the monochrome determination unit 21. The final line of data stored in the second storage unit 36 is the position farthest from the leading end 3a of the passbook 3 of the horizontal bar code 30 stored in the first storage unit 35. Up to the line of the bar that exists in.

【0031】第3の記憶部37は図10、図11に示す
ように構成されており、白黒判定部21が黒の判定を行
うと、通帳3に印刷されているバ−コ−ド28がイメ−
ジセンサ19に到達したとしてそのラインから規定ライ
ン分、A/Dコンバ−タ25でデジタル変換されたデ−
タが記憶される。なお、図10には縦バ−コ−ド29の
デ−タが記憶されており、図11には横バ−コ−ド30
のデ−タが記憶されている。図10、図11に示すよう
に、縦バ−コ−ド29と横バ−コ−ド30とでは数値の
表れ方が大きく異なる。それ故、制御部16は、この数
値の違いにより、縦バ−コ−ド29と横バ−コ−ド30
との別を認識することが可能となる。なお、図10、図
11に示されている数値は、一例であり、印刷濃度や中
紙27の違い、バ−コ−ド28が示す頁の違いに応じて
変化する。
The third storage unit 37 is constructed as shown in FIGS. 10 and 11, and when the black-and-white determination unit 21 determines black, the bar code 28 printed on the passbook 3 is printed. Image
It is assumed that the line has reached the di-sensor 19 and the specified line from that line has been digitally converted by the A / D converter 25.
Data is stored. The data of the vertical bar code 29 is stored in FIG. 10, and the horizontal bar code 30 is stored in FIG.
Data is stored. As shown in FIGS. 10 and 11, the vertical bar code 29 and the horizontal bar code 30 are greatly different in how the numerical values appear. Therefore, due to the difference in the numerical values, the control unit 16 causes the vertical bar code 29 and the horizontal bar code 30.
It becomes possible to recognize different from. Note that the numerical values shown in FIGS. 10 and 11 are examples, and change depending on the print density, the difference in the inner paper 27, and the page indicated by the bar code 28.

【0032】また、上記規定ライン分とは、本実施の形
態においては5ライン分とする。すなわち、横バ−コ−
ドのバ−の1本の太さ0.5mm分であり、バ−の向き
の判定に最低限必要なライン分である。
Further, the specified line portion is 5 lines in the present embodiment. That is, the horizontal bar
The thickness of one bar of the cord is 0.5 mm, which is the minimum line for determining the direction of the bar.

【0033】上記第1の記憶部35、第2の記憶部36
には、白黒判定部21により白黒判定された結果が記憶
されるが、第3の記憶部37には、白黒判定部21を介
さないデジタル値のデ−タが画素毎にそのまま記憶され
る。
The first storage section 35 and the second storage section 36 described above.
The result of black-and-white determination by the black-and-white determination unit 21 is stored in, and the third storage unit 37 stores the digital value data for each pixel without passing through the black-and-white determination unit 21.

【0034】制御部16は横バ−コ−ド30の各バ−の
存在位置から、通帳3の先端部3aから最も近い位置に
存在するバ−が何ライン目に存在するのか調べ、また、
通帳3の先端部3aから最も離れた位置に存在するバ−
が何ライン目に存在するのか調べる。それと共に、通帳
3の先端部3aから最も近い位置に存在するバ−と、通
帳3の先端部3aから最も離れた位置に存在するバ−と
の間に存在するバ−の位置を調べる。そしてその結果を
第1の記憶部35に記憶する。制御部16はまた、第3
の記憶部37に記憶された5ライン分のデ−タからバ−
の向きを判定する。
The control unit 16 checks from which position of each bar of the horizontal bar code 30 the line at which the bar closest to the tip 3a of the passbook 3 exists is present.
The bar located at the farthest position from the tip 3a of the passbook 3
Check which line exists in. At the same time, the position of the bar existing between the bar located closest to the tip 3a of the passbook 3 and the bar located farthest from the tip 3a of the passbook 3 is checked. Then, the result is stored in the first storage unit 35. The control unit 16 is also the third
From the data of 5 lines stored in the storage unit 37 of
Determine the orientation of.

【0035】制御部16は更に、第1の記憶部35に記
憶された情報から、バ−が存在するはずの最終ラインが
判っている。それ故、横バ−コ−ド30を解析する場合
において、バ−が存在するはずの最終ラインまで第2の
記憶部36へデ−タを記憶した後、バ−コ−ド28の読
取り動作を終了とすればよい。
The control section 16 further knows from the information stored in the first storage section 35 the final line where the bar should exist. Therefore, when the horizontal bar code 30 is analyzed, the bar code 28 is read after the data is stored in the second memory 36 up to the final line where the bar should exist. Should be terminated.

【0036】一方、縦バ−コ−ド29は、イメ−ジセン
サ19に検知され、一定ラインイメ−ジセンサ19で読
み取られた後、イメ−ジセンサ19に検知されなくな
る。それ故、イメ−ジセンサ19がバ−を検知しなくな
ると、そこで縦バ−コ−ド29は終了したことを制御部
16が認識することが可能なので、縦バ−コ−ド29の
場合は、予め通帳記帳機1にバ−の存在する位置を教え
る必要はない。
On the other hand, the vertical bar code 29 is detected by the image sensor 19, is read by the constant line image sensor 19, and then is not detected by the image sensor 19. Therefore, when the image sensor 19 no longer detects the bar, the control section 16 can recognize that the vertical bar code 29 has ended. Therefore, in the case of the vertical bar code 29, It is not necessary to teach the passbook entry machine 1 in advance where the bar exists.

【0037】縦バ−コ−ド29の場合はイメ−ジセンサ
19がバ−を検知してからバ−を検知しなくなるまで、
図3に示すように、バ−とバ−との間隔C及びバ−の太
さBは変わらないので、制御部16は第3の記憶部37
に記憶されたデ−タからマ−クの値を判定することが可
能である。それ故、縦バ−コ−ド29の場合は第3の記
憶部37に記憶されたデ−タからマ−クの値を判定し、
判定結果に基づいて頁数を解析する。横バ−コ−ド30
の場合は、制御部16は第1の記憶部35の各バ−が存
在している位置と、第2の記憶部36の全デ−タの各バ
−が存在している位置とを比較し、バ−が存在するはず
の位置にバ−が存在しているか否かを判定し、判定結果
に基づいて頁数を解析する。
In the case of the vertical bar code 29, from when the image sensor 19 detects the bar until it stops detecting the bar,
As shown in FIG. 3, since the distance C between the bars and the thickness B of the bars do not change, the control unit 16 causes the third storage unit 37 to operate.
It is possible to determine the mark value from the data stored in. Therefore, in the case of the vertical bar code 29, the mark value is judged from the data stored in the third storage unit 37,
The number of pages is analyzed based on the judgment result. Horizontal bar code 30
In the case of, the control unit 16 compares the position where each bar of the first storage unit 35 exists with the position where each bar of all the data of the second storage unit 36 exists. Then, it is determined whether or not the bar is present at the position where the bar should be present, and the number of pages is analyzed based on the determination result.

【0038】次に上記構成における通帳3の開かれてい
る頁を検出する動作について図1、図2、図7、図8を
参照して図12のフロ−チャ−トに従って説明する。図
12は発明の実施の形態におけるバ−コ−ド読取り手順
を示すフロ−チャ−トである。なお、イメ−ジセンサ1
9からデ−タを取り込む最初のライン(1ライン目)は
図2に示す通帳3の先端部3aであり、通帳3が通帳記
帳機1に挿入されると、制御部16は光源17を発光さ
せる。
Next, the operation of detecting the opened page of the passbook 3 in the above configuration will be described with reference to FIGS. 1, 2, 7, and 8 according to the flowchart of FIG. FIG. 12 is a flowchart showing a bar code reading procedure in the embodiment of the invention. In addition, the image sensor 1
The first line (first line) to take in data from 9 is the tip 3a of the passbook 3 shown in FIG. 2, and when the passbook 3 is inserted into the passbook entry machine 1, the control unit 16 emits a light source 17. Let

【0039】ここで、通帳記帳機1で使用される通帳3
が、横バ−コ−ド30が印刷された通帳3である場合、
まず、オペレ−タがバ−の本数が一番多い頁(通帳3の
先端部3aからの距離が最も短いバ−と先端部3aから
の距離が最も長いバ−とその間に位置する全てのバ−を
含む)を開き、通帳記帳機1に挿入し、イメ−ジセンサ
19でバ−を読み取らせる。すると、そのデ−タはA/
Dコンバ−タ25を介してデジタル値に変換され、白黒
判定部21に送信される。白黒判定部21の判定結果に
より、制御部16は各バ−が存在する位置を調べる。
Here, the passbook 3 used in the passbook entry machine 1
Is the passbook 3 on which the horizontal bar code 30 is printed,
First, the page with the largest number of bars for the operator (the bar with the shortest distance from the tip 3a of the passbook 3, the bar with the longest distance from the tip 3a, and all the bars located between them). (Including-) is opened, the card is inserted into the passbook entry machine 1, and the bar is read by the image sensor 19. Then, the data is A /
It is converted into a digital value via the D converter 25 and transmitted to the black-and-white judging section 21. Based on the determination result of the black and white determination unit 21, the control unit 16 checks the position where each bar exists.

【0040】そして、制御部16は、第1の記憶部35
に横バ−コ−ド30を構成する各バ−の存在位置を記憶
する。
The control unit 16 then controls the first storage unit 35.
The position of each bar forming the horizontal bar code 30 is stored.

【0041】ステップS1で制御部16は、先端部3a
がイメ−ジセンサ19に到達するまで通帳3を搬送す
る。先端部3aがイメ−ジセンサ19に到達すると、光
源17の光が通帳3の紙面に反射し、レンズ18を介し
てイメ−ジセンサ19上に反射光量が結像される。イメ
−ジセンサ19の出力は出力増幅部20に入力され、出
力増幅部20でイメ−ジセンサ19の出力の増幅や、波
形の整形が行われる。そして、出力の増幅や波形の整形
等が行われると、制御部16へ送信され、A/Dコンバ
−タ25で、デ−タを各画素毎にアナログ値からデジタ
ル値に変換する。ステップS2で、制御部16は、モ−
タコントロ−ル部22から出力されるタイミング信号に
同期して、イメ−ジセンサ19がバ−コ−ド28を1ラ
イン読み取って得た出力レベルをあるスライスレベルと
比較して、出力値の大小により読み取ったデ−タを画素
毎に白黒判定部21で白黒の判定を行い、黒と判定され
た数によりそのラインを黒あるいは白と判定し、判定結
果を第2の記憶部36に1ライン毎に順次記憶してい
く。
In step S1, the control unit 16 controls the tip 3a.
Carry the passbook 3 until the image sensor 19 reaches the image sensor 19. When the tip portion 3a reaches the image sensor 19, the light of the light source 17 is reflected on the paper surface of the passbook 3, and the reflected light amount is imaged on the image sensor 19 via the lens 18. The output of the image sensor 19 is input to the output amplification section 20, and the output amplification section 20 amplifies the output of the image sensor 19 and shapes the waveform. When the output is amplified and the waveform is shaped, it is transmitted to the control unit 16 and the A / D converter 25 converts the data from an analog value to a digital value for each pixel. In step S2, the control unit 16 controls the mode.
The output level obtained by the image sensor 19 reading one line of the bar code 28 is compared with a certain slice level in synchronization with the timing signal output from the ta-control unit 22, and the output value is determined to be larger or smaller. The read / write data is judged for each pixel by the black / white judging section 21, and the line is judged as black or white according to the number judged as black, and the judgment result is stored in the second storage section 36 for each line. Will be stored in sequence.

【0042】ステップS3で制御部16は、白黒の判定
を行った際に、白黒判定部21が黒の判定を行うと、バ
−がイメ−ジセンサ19に到達したとしてステップS4
に進む。ステップS4で制御部16は、バ−がイメ−ジ
センサ19に到達してから規定ライン分(5ライン分)
のデジタル変換されたデ−タを第3の記憶部37に記憶
する。5ライン分記憶されると、ステップS5で制御部
16は、第3の記憶部37に記憶された5ライン分のデ
−タを呼び出す。
In step S3, when the black-and-white determination unit 21 determines black in the black-and-white determination, the control unit 16 determines that the bar has reached the image sensor 19 in step S4.
Proceed to. In step S4, the control unit 16 causes the bar to reach the image sensor 19 for the specified line (5 lines).
The digitally converted data is stored in the third storage unit 37. When five lines have been stored, the control unit 16 calls out the five lines of data stored in the third storage unit 37 in step S5.

【0043】ステップS6で制御部16は、5ライン分
のデ−タが縦バ−コ−ド29を示すものか否かを判断す
る。すなわち、図8に示すように、10本の大きな波形
を示すデ−タが第3の記憶部37に記憶されていたか否
かの判断をする。ここで、縦バ−コ−ド29を示すもの
であった場合は、ステップS7に進み、「否」の場合は
ステップS10に進む。
In step S6, the control unit 16 determines whether or not the data for five lines indicates the vertical bar code 29. That is, as shown in FIG. 8, it is determined whether or not the data showing ten large waveforms has been stored in the third storage unit 37. If the vertical bar code 29 is shown, the process proceeds to step S7, and if "no", the process proceeds to step S10.

【0044】ステップS7で制御部16は、頁解析に必
要な読取り動作は終了したとして第2の記憶部36への
判定結果の記憶を停止すると共に、白黒判定部21の諸
設定を解除して縦バ−コ−ド29の読取り動作を終了す
る。
In step S7, the control unit 16 stops storing the determination result in the second storage unit 36 because the reading operation necessary for page analysis is completed, and cancels various settings of the monochrome determination unit 21. The reading operation of the vertical bar code 29 is completed.

【0045】ステップS8で制御部16は、第3の記憶
部37に記憶されているデ−タを呼び出す。ステップS
9で制御部16は、縦バ−コ−ド解析モ−ドに切り替
え、縦バ−コ−ド29の並び形でマ−クの値を判断す
る。そして、マ−クの値により縦バ−コ−ド29が何頁
目を示しているか解析する。
In step S8, the control unit 16 calls the data stored in the third storage unit 37. Step S
At 9, the control unit 16 switches to the vertical bar code analysis mode and determines the mark value by the arrangement form of the vertical bar codes 29. Then, the page number of the vertical bar code 29 is analyzed based on the mark value.

【0046】一方、ステップS6からステップS10に
進んだ場合、制御部16は、通帳3の先端部3aからの
距離が最も離れたバ−が存在するはずの位置、すなわち
バ−が存在するはずの最終ラインが判っているので、ス
テップS10で制御部16は、バ−が存在するはずの最
終ラインまで第2の記憶部36にデ−タの記憶を続け、
バ−が存在するはずの最終ラインがイメ−ジセンサ19
を通過したならば、ステップS11に進む。ステップS
11で制御部16は、読取り動作は終了したとして第2
の記憶部36への判定結果の記憶を停止すると共に、白
黒判定部21の諸設定を解除して横バ−コ−ド30の読
取り動作を終了する。
On the other hand, when the process proceeds from step S6 to step S10, the control section 16 determines that there is a bar where the distance from the leading end 3a of the passbook 3 is the longest, that is, a bar. Since the final line is known, in step S10 the control unit 16 continues to store the data in the second storage unit 36 until the final line where the bar should exist,
The final line where the bar should be present is the image sensor 19
If it has passed, proceed to step S11. Step S
In step 11, the control unit 16 determines that the reading operation has been completed
The storage of the determination result in the storage unit 36 is stopped, the various settings of the monochrome determination unit 21 are canceled, and the reading operation of the horizontal bar code 30 is completed.

【0047】ステップS12で制御部16は、第2の記
憶部36からデ−タを呼び出す。ステップS13で制御
部16は、横バ−コ−ド解析モ−ドに切り替える。そし
て、第1の記憶部35の各バ−が存在している位置と、
第2の記憶部36のバ−が存在している位置とを比較
し、第2の記憶部36に記憶されている各バ−が、第1
の記憶部35に記憶されている位置にあるか否か判断
し、それにより何頁目を示しているか解析する。
In step S12, the control unit 16 calls the data from the second storage unit 36. In step S13, the control unit 16 switches to the horizontal bar code analysis mode. And the position where each bar of the first storage unit 35 exists,
The position of the bar in the second storage unit 36 is compared, and each bar stored in the second storage unit 36 is compared with the first position.
It is determined whether or not it is at the position stored in the storage unit 35, and the page number is analyzed accordingly.

【0048】頁数の解析が終了すると、印字済み行数の
検出を行い、上位コンピュ−タにそれらの情報を送信
し、正当性の確認等を行った後、上位コンピュ−タから
の指示により、印字済み行の次の行から取引内容等の印
字をプリンタユニット9で行う。取引内容の印字が終了
すると、通帳3を磁気ヘッド7まで戻し、磁気ストライ
プ2のデ−タを更新する。そして、挿入排出口4から顧
客に通帳3を返却する。
When the analysis of the number of pages is completed, the number of printed lines is detected, the information is transmitted to the upper computer, the correctness is confirmed, and the like, and then the instruction from the upper computer is issued. The printer unit 9 prints the transaction contents and the like from the line next to the printed line. When the printing of the transaction contents is completed, the passbook 3 is returned to the magnetic head 7 and the data of the magnetic stripe 2 is updated. Then, the passbook 3 is returned to the customer from the insertion / ejection port 4.

【0049】従って上記本発明の実施の形態によれば、
装置側でバ−の向き、バ−の存在位置を自動的に認識
し、頁数の解析を行うので、パラメ−タの設計工数、パ
ラメ−タ情報をロ−ドする基板上のメモリが少なくて済
む。
Therefore, according to the embodiment of the present invention described above,
The machine side automatically recognizes the direction of the bar and the position where the bar exists, and analyzes the number of pages, so the design man-hours of parameters and the memory on the board for loading parameter information are small. Complete.

【0050】また、第3の記憶部37の容量は、バ−の
向きを判定するのに最低限必要なライン分(本実施の形
態においては5ライン分)だけでいいので、容量が小さ
いもので済む。
Since the capacity of the third storage unit 37 is only the minimum required for determining the direction of the bar (5 lines in this embodiment), the capacity is small. It's done.

【0051】なお、本発明の実施の形態においては、通
帳3のバ−コ−ド28を読み取る装置について述べた
が、通帳3に限らず、バ−コ−ド28の向きが読取り方
向に対して混在している冊子状媒体のバ−コ−ド28を
読み取る装置に適用することができる。
In the embodiment of the present invention, the device for reading the bar code 28 of the passbook 3 has been described, but the direction of the bar code 28 is not limited to the passbook 3 and the direction of reading. The present invention can be applied to a device for reading the bar code 28 of a booklet-shaped medium that is mixed together.

【0052】また、バ−コ−ド28の示すところは、頁
マ−クに限らず、例えば、証書の表裏判定用マ−クや、
媒体種類を判別する目的で付与されたマ−クでもよい。
The bar code 28 is not limited to the page mark, but may be, for example, a mark for judging the front and back of a certificate,
A mark given for the purpose of determining the type of medium may be used.

【0053】[0053]

【発明の効果】本発明は、以上説明したように構成され
ているので以下に記載される効果を奏する。イメ−ジセ
ンサで読み取られたアナログ値の各画素のデ−タを、デ
ジタル値のデ−タに変換するA/Dコンバ−タと、デジ
タル値のデ−タに対して各画素毎に白黒の判定を行う白
黒判定部と、横バ−コ−ドを構成する各バ−の存在位置
を記憶する第1の記憶部と、白黒判定部で白黒判定され
た結果を1ライン毎に記憶する第2の記憶部と、白黒判
定部が黒の判定を行うと、そのラインから規定ライン分
の各画素のデジタル値のデ−タを1ライン毎に記憶する
第3の記憶部と、横バ−コ−ドを構成する各バ−の存在
位置を調べ第1の記憶部に記憶すると共に、白黒判定後
のデ−タを順次第2の記憶部に記憶し、第3の記憶部に
規定ライン分デジタル値のデ−タが記憶されると、該デ
−タを呼び出し、デ−タからバ−の向きを判定し、判定
結果が縦の場合は、第3の記憶部のデ−タから縦バ−コ
−ドの示す頁数を解析し、判定結果が横の場合は、バ−
が存在するはずの最終ラインまで第2の記憶部にデ−タ
が記憶された後に、第2の記憶部からデ−タを呼び出し
て第1の記憶部のデ−タと比較し、横バ−コ−ドの頁数
を解析する制御部とを設けたことにより、装置側でバ−
の向き、バ−の存在位置を自動的に認識し、頁数の解析
を行うので、パラメ−タの設計工数、パラメ−タ情報を
ロ−ドする基板上のメモリが少なくて済む。
Since the present invention is configured as described above, it has the following effects. A / D converter for converting the data of each pixel of analog value read by the image sensor into the data of digital value, and black and white for each pixel with respect to the data of digital value A black-and-white judging section for making a judgment, a first storage section for storing the existence position of each bar forming the horizontal bar code, and a result for storing the result of the black-and-white judgment by the black-and-white judging section for each line. When the black-and-white determination unit makes a black determination by the second storage unit, a third storage unit that stores the digital value data of each pixel for the specified line from that line for each line, and the horizontal bar. The existence position of each bar forming the code is checked and stored in the first storage unit, and the data after the black and white judgment are sequentially stored in the second storage unit, and the specified line is stored in the third storage unit. When the data of the minute digital value is stored, the data is called, the direction of the bar is judged from the data, and the judgment result is For the data of the third storage unit - Tateba from data - co - it analyzes the page number indicated by the de, if the determination result is horizontal, the bar -
After the data is stored in the second storage unit up to the last line which should exist, the data is called from the second storage unit and compared with the data in the first storage unit. -By providing a control unit for analyzing the number of pages of the code, the device side bar
Direction and the position of the bar are automatically recognized and the number of pages is analyzed, so that the man-hours for designing the parameters and the memory on the substrate for loading the parameter information can be reduced.

【0054】また、第3の記憶部の容量は、バ−の向き
を判定するのに最低限必要なライン分だけでいいので、
容量が小さいもので済む。
Since the capacity of the third storage unit is only the minimum necessary line for determining the direction of the bar,
Only a small capacity is needed.

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

【図1】発明の実施の形態における通帳記帳機の制御系
を示すブロック図である。
FIG. 1 is a block diagram showing a control system of a bankbook entry machine according to an embodiment of the invention.

【図2】発明の実施の形態における通帳を示す斜視図で
ある。
FIG. 2 is a perspective view showing a passbook according to the embodiment of the invention.

【図3】発明の実施の形態における縦バ−コ−ドを示す
拡大図である。
FIG. 3 is an enlarged view showing a vertical bar code in the embodiment of the invention.

【図4】発明の実施の形態における横バ−コ−ドを示す
拡大図である。
FIG. 4 is an enlarged view showing a horizontal bar code in the embodiment of the invention.

【図5】発明の実施の形態における通帳の一部を示す説
明図である。
FIG. 5 is an explanatory diagram showing a part of a passbook according to the embodiment of the invention.

【図6】発明の実施の形態における通帳の一部を示す説
明図である。
FIG. 6 is an explanatory diagram showing a part of a passbook according to the embodiment of the invention.

【図7】発明の実施の形態における通帳記帳機の構造を
示す説明図である。
FIG. 7 is an explanatory diagram showing the structure of the passbook entry machine according to the embodiment of the invention.

【図8】発明の実施の形態における光学式頁・行読取り
ユニットで頁マ−クを読み取った際の波形を示す説明図
である。
FIG. 8 is an explanatory diagram showing waveforms when a page mark is read by the optical page / row reading unit in the embodiment of the present invention.

【図9】発明の実施の形態における光学式頁・行読取り
ユニットで頁マ−クを読み取った際の波形を示す説明図
である。
FIG. 9 is an explanatory diagram showing waveforms when a page mark is read by the optical page / row reading unit in the embodiment of the present invention.

【図10】発明の実施の形態における第3の記憶部を示
す説明図である。
FIG. 10 is an explanatory diagram showing a third storage unit according to the embodiment of the invention.

【図11】発明の実施の形態における第3の記憶部を示
す説明図である。
FIG. 11 is an explanatory diagram showing a third storage unit according to the embodiment of the invention.

【図12】発明の実施の形態におけるバ−コ−ド読取り
手順を示すフロ−チャ−トである。
FIG. 12 is a flowchart showing a bar code reading procedure in the embodiment of the invention.

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

1 通帳記帳機 3 通帳 8 光学式頁・行読取りユニット 16 制御部 19 イメ−ジセンサ 21 白黒判定部 25 A/Dコンバ−タ 28 バ−コ−ド 29 縦バ−コ−ド 30 横バ−コ−ド 35 第1の記憶部 36 第2の記憶部 37 第3の記憶部 1 passbook entry machine 3 passbook 8 optical page / line reading unit 16 control unit 19 image sensor 21 black and white judgment unit 25 A / D converter 28 bar code 29 vertical bar code 30 horizontal bar code -D 35 first storage unit 36 second storage unit 37 third storage unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 横バ−コ−ドでは頁により本数や位置を
変えて印刷され、縦バ−コ−ドでは頁により異なる太さ
で印刷されている各バ−を、イメ−ジセンサで横バ−コ
−ドのバ−と平行な方向に1ライン毎に光学的に読取
り、読取り結果から媒体の開かれている頁数を解析する
媒体処理装置において、 イメ−ジセンサで読み取られたアナログ値の各画素のデ
−タを、デジタル値のデ−タに変換するA/Dコンバ−
タと、 デジタル値のデ−タに対して各画素毎に白黒の判定を行
う白黒判定部と、 横バ−コ−ドを構成する各バ−の存在位置を記憶する第
1の記憶部と、 白黒判定部で白黒判定された結果を1ライン毎に記憶す
る第2の記憶部と、 白黒判定部が黒の判定を行うと、そのラインから規定ラ
イン分の各画素のデジタル値のデ−タを1ライン毎に記
憶する第3の記憶部と、 横バ−コ−ドを構成する各バ−の存在位置を調べ第1の
記憶部に記憶すると共に、白黒判定後のデ−タを順次第
2の記憶部に記憶し、第3の記憶部に規定ライン分デジ
タル値のデ−タが記憶されると、該デ−タを呼び出し、
デ−タからバ−の向きを判定し、判定結果が縦の場合
は、第3の記憶部のデ−タから縦バ−コ−ドの示す頁数
を解析し、判定結果が横の場合は、バ−が存在するはず
の最終ラインまで第2の記憶部にデ−タが記憶された後
に、第2の記憶部からデ−タを呼び出して第1の記憶部
のデ−タと比較し、横バ−コ−ドの頁数を解析する制御
部とを設けたことを特徴とする媒体処理装置。
1. A horizontal bar code is printed by changing the number and position of the pages depending on the page, and a vertical bar code is printed by the image sensor for each bar printed with a different thickness depending on the page. An analog value read by an image sensor in a medium processing device that optically reads line by line in a direction parallel to the bar code bar and analyzes the number of open pages of the medium from the read result. A / D converter for converting the data of each pixel of the above into digital value data
A black-and-white judging section for judging the black-and-white for each pixel with respect to the digital value data, and a first storing section for storing the existence positions of the respective bars forming the horizontal bar code. The second storage unit that stores the result of black and white judgment by the black and white judgment unit for each line, and when the black and white judgment unit judges black, the digital value of each pixel for the specified line is The third storage unit for storing the data for each line and the existence positions of the respective bars forming the horizontal bar code are checked and stored in the first storage unit. When the data of the digital value for the specified line is sequentially stored in the second storage unit and the data of the specified line is stored in the third storage unit, the data is called,
If the direction of the bar is judged from the data and the judgment result is vertical, the number of pages indicated by the vertical bar code is analyzed from the data in the third storage section, and if the judgment result is horizontal. After the data is stored in the second memory until the last line where the bar should be present, the data is called from the second memory and compared with the data in the first memory. And a control unit for analyzing the number of pages of the horizontal bar code.
【請求項2】 上記媒体は通帳である請求項1記載の媒
体処理装置。
2. The medium processing apparatus according to claim 1, wherein the medium is a passbook.
JP34235595A 1995-12-28 1995-12-28 Medium processor Pending JPH09185670A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34235595A JPH09185670A (en) 1995-12-28 1995-12-28 Medium processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34235595A JPH09185670A (en) 1995-12-28 1995-12-28 Medium processor

Publications (1)

Publication Number Publication Date
JPH09185670A true JPH09185670A (en) 1997-07-15

Family

ID=18353089

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34235595A Pending JPH09185670A (en) 1995-12-28 1995-12-28 Medium processor

Country Status (1)

Country Link
JP (1) JPH09185670A (en)

Similar Documents

Publication Publication Date Title
US6781111B2 (en) Paper processing apparatus
JP2013151115A (en) Recording device, control device, method for controlling recording device and program
JPH09185670A (en) Medium processor
JP2009295218A (en) Recording density decision device, magnetic stripe analysis device, automatic cash dispenser, recording density decision program and magnetic stripe analysis program
JP2006332953A (en) Card image reader and its control method
JP2838040B2 (en) Media processing device
JP2014046459A (en) Electronic apparatus, and control method for the electronic device
JP2005175601A (en) Image reader, character reader, and image and character reading control method
JPH113402A (en) Image reader
JP2014120078A (en) Bar code image correction device, passbook processing device, and automatic teller machine
JPH07319997A (en) Method for detecting image and medium processor
JP2003091765A (en) Business form processor, business form processing method and automatic transaction device
JP2815019B2 (en) Character / mark detection device
JP2667271B2 (en) Printing line setting device for passbooks
CN116021887A (en) Image forming apparatus having a plurality of image forming units
JPH11138927A (en) Line sensing apparatus
JPS6037518B2 (en) Passbook handling device
JPS60714B2 (en) Form printing device
JP2006092105A (en) Forms processing device
JPH09267531A (en) Printer equipped with position correcting function
JP2006260146A (en) Medium processing device and method
JP2003312065A (en) Document processor and method of processing document
JPS6137676B2 (en)
JPH04343170A (en) Transfer ticket issuing device
JPS62264983A (en) Slip printer

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040511

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20041005