JPS639421B2 - - Google Patents

Info

Publication number
JPS639421B2
JPS639421B2 JP59030660A JP3066084A JPS639421B2 JP S639421 B2 JPS639421 B2 JP S639421B2 JP 59030660 A JP59030660 A JP 59030660A JP 3066084 A JP3066084 A JP 3066084A JP S639421 B2 JPS639421 B2 JP S639421B2
Authority
JP
Japan
Prior art keywords
data
passbook
printed
scanning
signal
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
Application number
JP59030660A
Other languages
Japanese (ja)
Other versions
JPS59167176A (en
Inventor
Hiroshi Hayashi
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP59030660A priority Critical patent/JPS59167176A/en
Publication of JPS59167176A publication Critical patent/JPS59167176A/en
Publication of JPS639421B2 publication Critical patent/JPS639421B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof

Description

【発明の詳細な説明】 この発明は、画像信号処理装置、たとえば印字
された数字、文字、記号等を撮像装置で読取つて
得られる画像信号から読取りデータ・パターンを
作成するための処理を行なう装置に関し、さらに
詳しくは、読取りデータ・パターンをあらかじめ
設定されたモデル・パターンと比較して判別する
システムにおいて好適に利用される画像信号処理
装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an image signal processing device, for example, a device that performs processing to create a read data pattern from an image signal obtained by reading printed numbers, characters, symbols, etc. with an imaging device. More specifically, the present invention relates to an image signal processing device suitably used in a system that compares and discriminates a read data pattern with a preset model pattern.

プリンタによつて印字された文字、数字、記号
にはつぶれ、切れなどが発生しやすく、手でこす
つたような場合にはかすれが生じることもある。
このような不完全な文字、数字等については、そ
れを撮像装置で読取り、この読取りデータにもと
づいて作成されたデータ・パターンとあらかじめ
設定されたモデル・パターンとを比較することに
より判別するような場合に誤判定を生じるおそれ
がある。
Letters, numbers, and symbols printed by a printer are likely to be crushed or cut, and may also become blurred if rubbed by hand.
Such incomplete characters, numbers, etc. can be determined by reading them with an imaging device and comparing the data pattern created based on this read data with a preset model pattern. There is a risk of misjudgment in some cases.

この発明は、文字、数字等の画像におけるつぶ
れ、かすれ、切れなどを修正して端正のとれた画
像データを作成する画像信号処理装置を提供する
ことを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide an image signal processing device that creates neat image data by correcting blurring, blurring, cutting, etc. in images of characters, numbers, etc.

この発明による画像信号処理装置は、数字、文
字、記号等のキヤラクタが記録された紙面上を走
査してこれらのキヤラクタの画像信号を出力する
撮像装置、撮像装置から出力される画像信号をレ
ベル弁別して2値化された読取りデータを出力す
るレベル弁別回路、2値化された読取りデータを
主走査線の所定範囲にわたつてそれぞれ記憶する
複数の記憶領域を備え、これら複数の記憶領域に
読取りデータを副走査方向に複数の主走査線にわ
たつて記憶する記憶回路、および記憶回路の各記
憶領域から出力される上記複数の主走査線の読取
りデータのAND論理を副走査方向に対応する各
ビツトごとに演算する演算手段を備え、記憶回路
における記憶データが一主走査線のデータ分ずつ
順次副走査方向に更新され、記憶データの更新ご
とに演算手段によるAND論理演算が行なわれる
ことを特徴とする。ここで、主走査とは走査線
(一般には水平走査線)にそう方向の走査を、副
走査とはこれに直交する方向の走査を指す。
An image signal processing device according to the present invention includes an imaging device that scans a paper surface on which characters such as numbers, letters, and symbols are recorded and outputs image signals of these characters, and a level valve that controls the image signals output from the imaging device. A level discrimination circuit separately outputs binarized read data, a plurality of storage areas each storing the binarized read data over a predetermined range of the main scanning line, and the read data is stored in the plurality of storage areas. A memory circuit that stores the data across a plurality of main scanning lines in the sub-scanning direction, and an AND logic of the read data of the plurality of main scanning lines output from each storage area of the memory circuit for each bit corresponding to the sub-scanning direction. The data stored in the memory circuit is updated sequentially in the sub-scanning direction by data of one main scanning line, and the calculation means performs an AND logical operation each time the stored data is updated. do. Here, main scanning refers to scanning in a direction parallel to a scanning line (generally a horizontal scanning line), and sub-scanning refers to scanning in a direction perpendicular to this.

以上の構成により、この発明によると印字され
た数字等の主走査線に直交する方向の端縁が整え
られ、印字の端縁に発生したつぶれ、かすれ、ま
たは切れなどが修正された端正な画像データを得
ることができる。このため、モデル・パターンと
の比較等による判別処理も正確に行なえるように
なる。
With the above configuration, according to the present invention, the edges of printed numbers, etc. in the direction perpendicular to the main scanning line are adjusted, and a neat image in which crushed, blurred, cut, etc. occurring at the edge of the printed characters is corrected. data can be obtained. Therefore, it becomes possible to accurately perform discrimination processing by comparison with a model pattern.

以下、この発明の実施例について詳述する。 Examples of the present invention will be described in detail below.

この実施例は、現金自動預金機、支払機その他
の記帳機において用いられる通帳の印字行位置決
めに関するものである。
This embodiment relates to positioning of printed lines in a passbook used in an automatic teller machine, a payment machine, and other bookkeeping machines.

第1図に示されているように、この種の通帳5
1は、おもておよびうら表紙52a,52bの内
がわに印字用紙53が綴じられてなる。印字用紙
53には、日付、払戻し金額、預り金額、および
差引残高を印字すべき欄が設けられている。ま
た、所定の余白部分にはページ数をあらわすバ
ー・コード54が印刷されている。
As shown in Figure 1, this type of passbook 5
1 has printing paper 53 bound inside the front and back covers 52a and 52b. The printing paper 53 is provided with columns for printing the date, refund amount, deposit amount, and balance. Furthermore, a bar code 54 representing the number of pages is printed in a predetermined margin.

ところで、この通帳51の所定ページを開いて
現金自動預金機、支払機その他の記帳機に挿入す
ると、記帳機は印字すべき行を検知してその行が
印字ヘツドに対向する位置にくるように通帳51
を位置決めする。この印字すべき行の検知には、
従来は、通帳の所定領域、たとえば日付欄あるい
は残高欄に光を照射し光電素子などでその反射光
を検出してレベル弁別していた。既に印字されて
いる行は相対的に黒く、未だ印字されていない行
は相対的に白いから、反射光のレベル差により次
に印字すべき行を検知することができる。ところ
が、通帳51を綴じたときに印字された数字など
が対面する印字用紙面に転写されたり(Aで示
す)、うら面に印字された数字などが印字面にあ
らわれたりする(これを、うら移りという、Bで
示す)ことがあり、これらは相対的に黒い部分と
なるから印字されている行と同じ程度のレベルの
検出信号が出力される。また、うら面に印字され
た「51−8−12」などの日付のうちバー「−」の
印字は印字面に凸条に突出するので乱反射の原因
となり、紙面雑音として検知される。したがつ
て、従来の印字行検知方法ではしばしば誤検知を
起こし、印字行の位置決めが不正確になる問題が
あつた。
By the way, when a predetermined page of this passbook 51 is opened and inserted into an automatic teller machine, payment machine, or other bookkeeping machine, the bookkeeping machine detects the line to be printed and places the line opposite the print head. Passbook 51
position. To detect this line to be printed,
Conventionally, light was irradiated onto a predetermined area of a bankbook, such as the date column or balance column, and the reflected light was detected using a photoelectric element to discriminate the level. Since lines that have already been printed are relatively black and lines that have not yet been printed are relatively white, it is possible to detect the next line to be printed based on the difference in the level of reflected light. However, when the passbook 51 is bound, the numbers printed on it may be transferred to the facing printing paper side (indicated by A), or the numbers printed on the back side may appear on the printed side (this is caused by Since these areas are relatively black, a detection signal of the same level as the printed line is output. Furthermore, a bar "-" in a date such as "51-8-12" printed on the back surface protrudes like a convex line on the printed surface, causing diffused reflection, which is detected as paper surface noise. Therefore, the conventional print line detection method often causes false detection, resulting in inaccurate positioning of the print line.

そこでこの実施例では、通帳の搬送過程で通帳
の所定領域を撮像素子で走査して画像信号を得、
この画像信号を符号化して読取りデータを作成
し、この読取りデータによるデータ・パターンと
あらかじめ設定されているモデル・パターンとを
比較して判別することにより前回印字行を検知
し、この検知した前回印字行にもとづいて通帳の
位置決めを行なうようにしている。
Therefore, in this embodiment, an image signal is obtained by scanning a predetermined area of the passbook with an image sensor during the process of transporting the passbook.
This image signal is encoded to create read data, and the previously printed line is detected by comparing and determining the data pattern of this read data with a preset model pattern. The bankbook is positioned based on the line.

この実施例においては、第1図に示す通帳51
をそのまま使用することができるが、第2図に示
すように、ページ数をあらわすバー・コード54
に変えて、ページ数をアラビヤ数字55であらわ
した通帳50も好適に使用することができる。以
下に示す装置によつてページ数を示すアラビア数
字55もまた認識されることがあきらかになろ
う。
In this embodiment, the passbook 51 shown in FIG.
can be used as is, but as shown in Figure 2, a bar code 54 indicating the number of pages can be used.
Instead, a bankbook 50 in which the page number is expressed with 55 Arabic numerals can also be suitably used. It will become clear that the Arabic numeral 55 indicating the page number is also recognized by the device described below.

第3図は、現金自動預金機、支払機その他の記
帳機内に設けられている通帳搬送路60を示して
いる。ここでは搬送路60は上下方向にのびてい
るものとする。搬送路60は、ローラ61と、ロ
ーラ61に掛けられたベルト62とから構成さ
れ、通帳50はベルト62間に挟まれた状態で矢
印C方向(下方とする)に搬送される。この搬送
路60にのぞんで搬入口から搬送方向に向つて、
撮像素子としての電荷結合素子(以下、CCDと
いう)63,64、および通帳位置検出スイツチ
65,66が順次配置され、かつ適当な高さ位置
に印字ヘツド67が設けられている。CCD63
はページ数をあらわす数字55を読取るものであ
つて、通帳50の搬送にともない数字55が通過
する巾方向位置に設けられている(第4b図参
照)。CCD64は日付欄に印字されている数字な
どを読取るものであつて、日付欄にそう巾方向位
置に設けられている。検出スイツチ65は、搬送
されてきた通帳50の印字用紙の最下行の最下位
部分がCCD64と対向したときに通帳50の最
下端を検出する高さ位置にあり(第4a図参照)、
このスイツチ65の検出信号が出力された時点か
らCCD64による読取りが開始される。検出ス
イツチ66は同印字用紙の最上行の最上位部分が
CCD64と対向したときに通帳50の最下端を
検出する位置にあり(第4c図参照)、このスイ
ツチ66の検出信号が出力されるまでCCD64
による読取りが続行していればこの検出信号によ
つて上記読取りが停止される。CD64は、この
実施例では256ビツト1列の一次元素子であるが、
256ビツト×4などの二次元素子を用いることも
可能である。さらに、撮像素子としてはバケツ
ト・ブリゲード素子(BBD)やフオトダイオー
ドを用いてもよく、さらにこれらがマトリクス状
に配列されてなりかつ水平走査および垂直走査回
路によつて駆動され、通帳50の印字面を水平、
垂直方向に順次読出す二次元撮像素子を用いるこ
ともできる。通帳位置検出スイツチ65,66と
しては光電スイツチ、マイクロ・スイツチなどを
採用しうる。
FIG. 3 shows a passbook transport path 60 provided in an automatic teller machine, payment machine, or other bookkeeping machine. Here, it is assumed that the conveyance path 60 extends in the vertical direction. The conveyance path 60 is constituted by a roller 61 and a belt 62 placed around the roller 61, and the passbook 50 is conveyed in the direction of arrow C (downward) while being sandwiched between the belts 62. Looking into this conveyance path 60 from the import entrance toward the conveyance direction,
Charge-coupled devices (hereinafter referred to as CCDs) 63 and 64 as image pickup devices and passbook position detection switches 65 and 66 are arranged in sequence, and a print head 67 is provided at an appropriate height position. CCD63
is for reading the number 55 representing the page number, and is provided at a position in the width direction where the number 55 passes as the passbook 50 is conveyed (see Fig. 4b). The CCD 64 is for reading numbers printed in the date column, and is provided at a position across the width of the date column. The detection switch 65 is located at a height position that detects the lowest end of the passbook 50 when the lowest part of the bottom line of the printing paper of the passed passbook 50 faces the CCD 64 (see FIG. 4a).
Reading by the CCD 64 starts from the moment the detection signal of the switch 65 is output. The detection switch 66 detects that the top part of the top line of the printing paper is
It is located at the position where it detects the bottom edge of the passbook 50 when facing the CCD 64 (see Figure 4c), and until the detection signal of this switch 66 is output, the CCD 64
If the reading is continuing, this detection signal stops the reading. In this example, CD64 is a primary element with one row of 256 bits.
It is also possible to use secondary elements such as 256 bits x 4. Furthermore, a bucket brigade device (BBD) or a photodiode may be used as the image sensor, and these are arranged in a matrix and driven by horizontal scanning and vertical scanning circuits, so that the printed surface of the passbook 50 is horizontal,
It is also possible to use a two-dimensional image sensor that sequentially reads out data in the vertical direction. As the passbook position detection switches 65 and 66, photoelectric switches, micro switches, etc. can be adopted.

さて、通帳の日付欄には、「52−10−10」、「52
−10−11」、「52−11−23」などのように、年、
月、日をあらわす数字とこれらの数字をつなぐバ
ーとが各行ごとに必ず印字されているが(第1
図、第7図参照)、この実施例では便宜的に年と
月およびこれらをつなぐバーのみをCCD64で
読取るものとする。第5図に「52−11」をCCD
64で読取つた場合のモデルが示されている。方
形の鎖線Eで示される範囲が「52−11」を認識す
るために必要な検知領域である。領域Eの横L方
向が256に分割されその各分割点がCCD64の1
ビツトに相当する。L=10mmとすれば1ビツト当
り0.04mmの解像度が得られる。これはレンズ71
(第7図参照)を用いることにより充分達成し得
る。縦D方向には30〜60回程度走査される。この
走査回数は通帳50の搬送速度と、横方向への走
査速度によつて適宜に定めるとよい。CCD64
による印字面の1走査は、第6図に示すように時
間T3の周期で行なわれる。走査周期T3内には
走査期間T1と休止期間T2とがあり、走査期間
T1内でたとえば走査線S1の走査が完了し、休
止期間T2経過後次の走査期間T1で次の走査線
S2にそう走査を行ない、通帳50の搬送にとも
ない順次各走査線にそつて走査していく。
Now, in the date column of the passbook, "52-10-10" and "52
-10-11", "52-11-23", etc., the year,
Numbers representing the month and day and a bar connecting these numbers are always printed on each line (the first
For convenience, in this embodiment, only the year and month and the bar connecting them are read by the CCD 64. CCD "52-11" in Figure 5
64 is shown. The range indicated by the rectangular chain line E is the detection area necessary to recognize "52-11". The horizontal L direction of area E is divided into 256 parts, and each dividing point corresponds to 1 of the CCD64.
Equivalent to bits. If L=10 mm, a resolution of 0.04 mm per bit can be obtained. This is lens 71
(See FIG. 7) can sufficiently achieve this. The image is scanned approximately 30 to 60 times in the vertical D direction. The number of scans may be appropriately determined depending on the conveyance speed of the bankbook 50 and the scanning speed in the horizontal direction. CCD64
One scan of the printed surface is performed at a period of time T3 as shown in FIG. The scanning period T3 includes a scanning period T1 and a pause period T2. For example, scanning of the scanning line S1 is completed within the scanning period T1, and after the pause period T2 has elapsed, scanning is performed on the next scanning line S2 in the next scanning period T1. As the passbook 50 is conveyed, it is sequentially scanned along each scanning line.

第7図において、通帳挿入検出器74は搬送路
60の通帳挿入口付近に設けられた光電スイツチ
などからなるものであり、その検出信号は中央演
算処理装置(以下CPUという)70および通帳
搬送信号78に送られる。通帳搬送装置78は通
帳挿入検出信号が入力すると、ローラ61を駆動
して通帳50を搬送路60上を搬送する。搬送開
始後においては搬送装置78はCPU70によつ
て制御される。送り量計数装置75は、ローラ6
1の軸に設けられた回転トランスデユーサからな
るもので、たとえば通帳50の搬送速度に比例し
た周波数の一連のパルスを発生する。このパルス
はCPU70に送られる。通帳位置検出器76は
上述の検出スイツチ65,66を含み、これらの
位置検出信号はCPU70および駆動回路77に
送られる。駆動回路77は三相クロツク・パルス
と第6図に示す走査サイクル信号とを出力し、
CCD64を駆動する。CCD64からは駆動回路
77の三相クロツク・パルス毎に各ビツトのデー
タが取出され、各走査期間T1毎に各走査線(主
走査線)S1………Sn………にそう画像の時系
列信号が出力される。この時系列信号は画像増巾
器72で増巾されたのち画像信号VOSとして処
理回路73に送られる。処理回路73は画像信号
VOSに対して後に詳述する処理を行なう。この
処理のために、駆動回路77から三相クロツク・
パルスに同期した基準タイミング信号STR、お
よび走査サイクルに同期した画像入力信号INT
が処理回路73に送られている。メモリ80に
は、データ・パターン・エリヤとモデル・パター
ン・エリヤとがある。データ・パターン・エリヤ
には第8図に示すように、開始フラグF1として
使用する記憶場所、連続走査回数計数用カウンタ
F2として使用する記憶場所、および後述するよ
うに4段階のレベルに分離された各データCMD
1,CMD2,CMD3,CMD4を記憶するデー
タ・エリCMA1,CMA2,CMA3,CMA4が
設けられている。これらの各データ・エリヤ
CMA1〜CMA4は、1つの検知領域Eの全デー
タを記憶しうる容量256ビツト×(30〜60)を有し
ている。モデル・パターン・エリヤには、判定の
基準となる日付欄に印字される数字のモデル・パ
ターンがあらかじめ設定されている。メモリ80
としては、コアメモリ、リード・オンリ・メモリ
ROM、ランダム・アクセス・メモリRAMなど
が用いられ、モデル・パターンはコアメモリまた
はROMに、データ・パターンはコアメモリまた
はRAMにそれぞれストアするとよい。表示装置
79はパターン判別結果を表示するのに用いら
れ、詳細は後述する。
In FIG. 7, the passbook insertion detector 74 is composed of a photoelectric switch or the like installed near the passbook insertion slot on the conveyance path 60, and its detection signal is transmitted from a central processing unit (hereinafter referred to as CPU) 70 and a passbook conveyance signal. Sent to 78. When the passbook insertion detection signal is input, the passbook conveyance device 78 drives the rollers 61 to convey the passbook 50 on the conveyance path 60 . After the start of transport, the transport device 78 is controlled by the CPU 70. The feed amount counting device 75 is connected to the roller 6
It consists of a rotating transducer mounted on one axis and generates a series of pulses at a frequency proportional to the transport speed of the passbook 50, for example. This pulse is sent to the CPU 70. The bankbook position detector 76 includes the above-mentioned detection switches 65 and 66, and these position detection signals are sent to the CPU 70 and the drive circuit 77. Drive circuit 77 outputs three phase clock pulses and a scan cycle signal as shown in FIG.
Drives CCD64. Each bit of data is taken out from the CCD 64 for each three-phase clock pulse of the drive circuit 77, and the time series of the image is displayed on each scanning line (main scanning line) S1...Sn...... for each scanning period T1. A signal is output. This time-series signal is amplified by an image amplification device 72 and then sent to a processing circuit 73 as an image signal VOS. The processing circuit 73 is an image signal
Performs the processing described in detail later on the VOS. For this process, a three-phase clock is supplied from the drive circuit 77.
Reference timing signal STR synchronized with the pulse and image input signal INT synchronized with the scan cycle
is sent to the processing circuit 73. Memory 80 has a data pattern area and a model pattern area. As shown in Figure 8, the data pattern area includes a memory location used as a start flag F1, a memory location used as a counter F2 for counting the number of consecutive scans, and a memory location separated into four levels as described later. Each data CMD
Data areas CMA1, CMA2, CMA3, and CMA4 are provided for storing CMD1, CMD2, CMD3, and CMD4. Each of these data areas
CMA1 to CMA4 have a capacity of 256 bits (30 to 60) that can store all data of one detection area E. In the model pattern area, a model pattern of numbers to be printed in the date field that serves as a criterion for determination is set in advance. memory 80
as core memory, read-only memory
ROM, random access memory RAM, etc. may be used, and model patterns may be stored in core memory or ROM, and data patterns may be stored in core memory or RAM. The display device 79 is used to display the pattern discrimination results, and the details will be described later.

第9図には、処理回路73の具体的構成が示さ
れている。タイミング・パルス発生回路90は駆
動回路77からの画像入力信号INTおよび基準
タイミング信号STRにもとづいて、3種類のタ
イミング・パルスTP1,TP2,TPを発生する。
第10図に示すようにタイミング・パルスTP1
は信号STRに同期した信号であり、タイミン
グ・パルスTP2はパルスTP1よりも半周期だけ
位相が遅れた信号である。またタイミング・パル
スTP3はパルスTP2の8個毎にパルスTP1と
同期して出力される。これらのタイミング・パル
スTP1〜TP3はいずれも入力信号INTがHレ
ベルにある間(走査期間T1)だけ出力される。
FIG. 9 shows a specific configuration of the processing circuit 73. The timing pulse generation circuit 90 generates three types of timing pulses TP1, TP2, and TP based on the image input signal INT from the drive circuit 77 and the reference timing signal STR.
Timing pulse TP1 as shown in Figure 10
is a signal synchronized with the signal STR, and the timing pulse TP2 is a signal whose phase is delayed by half a cycle from the pulse TP1. Further, timing pulse TP3 is outputted every eight pulses TP2 in synchronization with pulse TP1. These timing pulses TP1 to TP3 are all output only while the input signal INT is at H level (scanning period T1).

さて、画像増巾器72からの画像信号VOSは
レベル多重分離用のレベル弁別器101,10
2,103,104に送られる。各レベル弁別器
101〜104はそれぞれ異なる基準レベルVT
1,VT2,VT3,VT4をそれぞれ有し、画像
信号VOSをこれらの基準レベルVT1〜VT4で
レベル弁別して符号化し、かつ反転してレベル分
離信号CMV1,CMV2,CMV3,CMV4とし
て出力する。第10図には、第5図の走査線S1
にそう画像信号VOS1と走査線Snにそう画像信
号VOSnとが示されている。画像信号VOSは白い
部分に対してはそのレベルが高く、黒い部分の濃
度が濃くなるほどレベルが低くなる。走査線S1
にそう部分には黒い部分はなくすべて白いから、
画像信号VOS1は均一に高いレベルの信号とな
つている。画像信号VOSnのレベルは印字の濃度
に応じて変動している。画像信号VOSnの低いレ
ベルの部分のうちZ1で示す部分は急激にレベル
が低下し黒レベルに近づいているから、はつきり
と印字されている部分を示している。これに対し
て、Z2で示す部分は信号VOSnのレベルが緩慢
に変化している。この部分Z2は印字が不明確で
あることを示しており、たとえば印字リボンが薄
くなつてその印字能力が減退していたり、印字さ
れた部分を指などで擦つた結果印字の輪郭が不明
確になつてしまつた場合などにあらわれる。レベ
ル弁別器101〜104の各基準レベルVT1〜
VT4はVT4>VT3>VT2>VT1の関係に
あり、かつ基準レベルVT4は画像信号VOSの白
レベルよりも低い。基準レベルVT1によつてレ
ベル弁別されたレベル分離信号CMV1は最も濃
度の高い分割点による画像を表わし、信号CMV
2は基準レベルVT2に対応する濃度よりも高い
濃度の分割点による画像を表わしている。同様
に、他の信号CMV3,CMV4は、基準レベル
VT3,VT4に対応する濃度よりも濃い分割点
による画像をそれぞれ表わしている。基準レベル
VT3は印字された数字などを目視して判読可能
な濃度に対応するレベルに設定され、基準レベル
VT3に対応する濃度よりも濃い画像のみが印字
識別の対象となるから、その意味でレベル分離信
号CMV3は臨界的な信号として利用される。各
レベル弁別器101〜104からのレベル分離信
号CMV1〜CMV4はANDゲート105に送ら
れる。ANDゲート105は画像入力信号INTに
よつて制御されており、信号INTがHレベルの
場合にそのゲートが開かれるので、この間に各レ
ベル分離信号CMV1〜CMV4はANDゲート1
05を経て、次段の端縁修正回路にそれぞれ送ら
れる。
Now, the image signal VOS from the image intensifier 72 is sent to level discriminators 101 and 10 for level demultiplexing.
Sent to 2,103,104. Each level discriminator 101 to 104 has a different reference level VT.
1, VT2, VT3, and VT4, respectively, and the image signal VOS is level-discriminated and encoded using these reference levels VT1 to VT4, and then inverted and output as level-separated signals CMV1, CMV2, CMV3, and CMV4. FIG. 10 shows the scanning line S1 of FIG.
An image signal VOS1 is shown in FIG. 1, and an image signal VOSn is shown in scanning line Sn. The level of the image signal VOS is high for white parts, and the level becomes lower as the density of black parts becomes higher. Scanning line S1
There is no black part in the niso part, it is all white,
The image signal VOS1 is a uniformly high level signal. The level of the image signal VOSn varies depending on the density of the print. Among the low-level portions of the image signal VOSn, the portion indicated by Z1 has a sharply lowered level and is approaching the black level, so it indicates a portion that is printed clearly. On the other hand, in the portion indicated by Z2, the level of the signal VOSn changes slowly. This part Z2 indicates that the printing is unclear. For example, the printing ribbon has become thin and its printing ability has decreased, or the outline of the printing is unclear as a result of rubbing the printed area with your finger. It appears when you are old. Each reference level VT1~ of the level discriminators 101~104
VT4 has a relationship of VT4>VT3>VT2>VT1, and the reference level VT4 is lower than the white level of the image signal VOS. The level separation signal CMV1 whose level is discriminated by the reference level VT1 represents the image at the division point with the highest density, and the signal CMV
2 represents an image formed by division points having a higher density than the density corresponding to the reference level VT2. Similarly, the other signals CMV3 and CMV4 are at the reference level.
The images each represent an image formed by division points having a density higher than that corresponding to VT3 and VT4. reference level
VT3 is set to a level that corresponds to the density that can be visually read from printed numbers, etc., and is set at a reference level.
Only images darker than the density corresponding to VT3 are subject to print identification, and in that sense the level separation signal CMV3 is used as a critical signal. Level separation signals CMV1-CMV4 from each level discriminator 101-104 are sent to AND gate 105. The AND gate 105 is controlled by the image input signal INT, and the gate is opened when the signal INT is at H level, so during this time each level separation signal CMV1 to CMV4 is
05, and then sent to the next stage edge correction circuit.

端縁修正回路は、直列入力直列出力形式の256
ビツト・シフト・レジスタが4列に並べられたシ
フト・レジスタ111,112,113,114
と、これらのシフト・レジスタ群111〜114
に含まれる4つのシフト・レジスタの各出力の
AND論理をとるAND回路115とから構成され
ている。各シフト・レジスタ群111〜114に
おいて、第1シフト・レジスタの出力端子OUT
1は第2シフト・レジスタの入力端子IN2に、
第2シフト・レジスタの出力端子OUT2は第3
シフト・レジスタの入力端子IN3に、第3シフ
ト・レジスタの出力端子OUT3は第4シフト・
レジスタの入力端子IN4にそれぞれ接続されて
いる。シフト・レジスタ群111〜114の各シ
フト・レジスタのシフト・パルス入力端子Tには
タイミング・パルスTP1が入力しており、この
タイミング・パルスTP1毎に各シフト・レジス
タはその入力を読込むとともにそれらの内容を1
ビツトずつシフトする。最初の走査期間T1にお
いて、ANDゲート105を経て送られてくる走
査線S1にそうレベル分離信号CMV1は、まず
シフト・レジスタ群111の入力端子IN1から
第1シフト・レジスタに入り、タイミング・パル
スTP1毎に順次シフトされて丁度走査期間T1
経過した時点で、走査線S1にそう256ビツトの
データが第1シフト・レジスタに満たされる。次
に走査期間T1では、第2番目の走査線S2にそ
うレベル分離信号CMV1が入力端子IN1から第
1シフト・レジスタに入るとともに、第1シフ
ト・レジスタの出力端子OUT1から走査線S1
にそうデータが出力してAND回路115に送ら
れかつ入力端子IN2から第2シフト・レジスタ
に入る。そして、第2番目の走査期間T1が経過
した時点で、走査線S1,S2にそう各256ビツ
トずつのデータが第1、第2シフト・レジスタに
満たされる。以下、同様して各走査期間T1毎に
入力するレベル分離信号が第1シフト・レジスタ
に、第1シフト・レジスタの内容が第2シフト・
レジスタに、第2シフト・レジスタの内容が第3
シフト・レジスタに、第3シフト・レジスタのの
内容が第4シフト・レジスタにそれぞれ入れら
れ、かつ各シフト・レジスタの内容が各出力端子
OUT1〜OUT4からAND回路115に送られ
る。いま、第11図および第12図を参照して第
5図に鎖線F1〜F4で囲まれた部分を考えてみ
る。第11図は第5図の一部分の拡大図であり、
第12図は第11図に示す画像を走査して得られ
るレベル分離信号CMV1を「0」、「1」の符号
で表わしたものである。第(m+4)番目の走査
期間T1経過した時点では走査線S(m+4)〜
S(m+1)にそうデータがシフト・レジスタ群
111の第1〜第4レジスタに入つていることに
なる。そして、第(m+5)番目の走査期間T1
において、これらの内容が各シフト・レジスタか
ら出力されたAND回路115に送られる。走査
線S(m+1)のデータは(i2)〜(j2)ビツト
目が「1」であり、走査線S(m+2)のデータ
は(i3)〜(j0)ビツト目が「1」であり、走査
線S(m+3)のデータは(i4)〜(j0)ビツト
目が「1」であり、走査線S(m+4)のデータ
は(i3)〜(j0)ビツト目が「1」である。しか
し、AND回路115の出力はこれらのデータの
AND論理となるから、第(m+5)番目の走査
期間T1におけるAND回路115の出力は、第
12図に鎖線G1で示すように(i4)〜(j0)ビ
ツト目のデータのみが「1」となる。同様にし
て、第(m+6)番目の走査期間T1における
AND回路115の出力は走査線S(m+2)〜S
(m+5)のデータのAND論理(G2で示す)と
なるから(i4)〜(j0)ビツト目のみが「1」と
なり、さらに第(m+7)、(m+8)番目の走査
期間においてもAND回路115の出力は(i4)
〜(j0)、(i5)〜(J0)ビツト目がそれぞれ
「1」となる(G3,G4で示す)。このようにし
て鎖線Hで囲まれているような1走査線において
のみあらわれる特殊なデータ「1」が排除され、
印字された数字などの走査線を直交する方向の端
縁が整えられる。他のレベル分離信号CMV2〜
CMV4を処理する端縁修正回路も全く同様の機
能を果たし、印字の端縁に発生したつぶれ、かす
れ、または切れなどが修正される。なお、隣接す
る4つの走査線のデータにおいて、同一ビツト目
がともに「1」でないとAND回路115を通過
しないから、印字された数字などの上端または下
端付近のデータは多少圧縮されるが特に支障は生
じない。
The edge correction circuit is a series input series output format 256
Shift registers 111, 112, 113, 114 in which bit shift registers are arranged in four columns
and these shift register groups 111 to 114
The output of each of the four shift registers included in
It is composed of an AND circuit 115 that takes AND logic. In each shift register group 111 to 114, the output terminal OUT of the first shift register
1 is input to the input terminal IN2 of the second shift register,
The output terminal OUT2 of the second shift register is the third
The output terminal OUT3 of the third shift register is connected to the input terminal IN3 of the shift register, and the output terminal OUT3 of the third shift register is connected to the fourth shift register.
Each is connected to the input terminal IN4 of the register. A timing pulse TP1 is input to the shift pulse input terminal T of each shift register in the shift register group 111 to 114, and each shift register reads its input and changes its input at each timing pulse TP1. Contents 1
Shift bit by bit. In the first scanning period T1, the level separation signal CMV1 sent to the scanning line S1 via the AND gate 105 first enters the first shift register from the input terminal IN1 of the shift register group 111, and is output by the timing pulse TP1. The scanning period T1 is shifted sequentially every time.
At this point, the first shift register is filled with 256 bits of data for scan line S1. Next, in the scanning period T1, the level separation signal CMV1 enters the first shift register from the input terminal IN1 to the second scanning line S2, and the scanning line S1 enters the first shift register from the output terminal OUT1 of the first shift register.
Then, the data is outputted and sent to the AND circuit 115 and entered into the second shift register from the input terminal IN2. Then, when the second scanning period T1 has elapsed, the first and second shift registers are filled with data of 256 bits each for the scanning lines S1 and S2. Thereafter, similarly, the level separation signal input every scanning period T1 is input to the first shift register, and the contents of the first shift register are input to the second shift register.
The contents of the second shift register are transferred to the third shift register.
The contents of the third shift register are respectively put into the fourth shift register, and the contents of each shift register are input to each output terminal.
It is sent to the AND circuit 115 from OUT1 to OUT4. Now, with reference to FIGS. 11 and 12, consider the portion surrounded by chain lines F1 to F4 in FIG. 5. Figure 11 is an enlarged view of a portion of Figure 5;
FIG. 12 shows the level separation signal CMV1 obtained by scanning the image shown in FIG. 11, expressed by the symbols "0" and "1". At the time when the (m+4)th scanning period T1 has elapsed, the scanning line S(m+4)~
This means that the data is stored in the first to fourth registers of the shift register group 111 at S(m+1). Then, the (m+5)th scanning period T1
Then, these contents are sent to the AND circuit 115 output from each shift register. The data of scanning line S(m+1) has bits (i2) to (j2) as "1", and the data of scanning line S(m+2) has bits (i3) to (j0) as "1", The data of the scanning line S(m+3) has bits (i4) to (j0) set to "1", and the data of the scanning line S(m+4) has bits (i3) to (j0) set to "1". However, the output of the AND circuit 115 is
Since it is an AND logic, the output of the AND circuit 115 in the (m+5)th scanning period T1 is that only the data of the (i4) to (j0)th bits are "1" as shown by the chain line G1 in FIG. Become. Similarly, in the (m+6)th scanning period T1
The output of the AND circuit 115 is the scanning line S(m+2) to S
Since it is an AND logic (indicated by G2) for (m+5) data, only the (i4) to (j0)th bits are "1", and furthermore, in the (m+7) and (m+8)th scanning periods, the AND circuit 115 The output is (i4)
The bits of ~(j0) and (i5) ~(J0) each become "1" (indicated by G3 and G4). In this way, the special data "1" that appears only in one scanning line, such as the one surrounded by the chain line H, is eliminated.
The edges of printed numbers, etc. in the direction perpendicular to the scanning lines are trimmed. Other level separation signals CMV2~
The edge correction circuit that processes CMV4 performs exactly the same function, correcting any smudges, smudges, or cuts that occur at the edges of the print. Note that data in four adjacent scanning lines will not pass through the AND circuit 115 unless the same bit is "1", so data near the top or bottom of printed numbers will be compressed to some extent, but this will not cause any problems. does not occur.

各AND回路115からの修正されたレベル分
離信号は直列入力並列出力形式の8ビツト・シフ
ト・レジスタ116の入力端子にそれぞれ送られ
る。これらのシフト・レジスタ116のシフト・
パルス入力端子CKにはタイミング・パルスTP2
が送られており、シフト・レジスタ116はこの
パルスTP2毎に入力信号を読込みかつ読込んだ
各データをシフトし、8ビツトずつの並列データ
に変換する。そして、シフト・レジスタ116の
内容は8ビツトずつFIFO(First−In−Firsh−
Out)バツフア・レジスタ121,122,12
3,124に送られる。このFIFOバツフア・レ
ジスタ121〜124は、送られてくるデータを
順にメモリしながら先着順に送り出すレジスタで
あつて、1つの走査線にそうすべてのデータをス
トアしうる容量を有し、8ビツト32段で構成され
ている。FIFOレジスタ121〜124のシフ
ト・パルス入力端子CKには、タイミング・パル
スTP2の8個毎に出力されるタイミング・パル
スTP3が入力しており、タイミング・パルスTP
3毎にシフト・レジスタ116からのデータを8
ビツトずつ読込み、かつ読込んだ内容を前段にシ
フトする。
The modified level separated signals from each AND circuit 115 are respectively sent to the input terminals of an 8-bit shift register 116 of serial input parallel output format. These shift registers 116 shift
Timing pulse TP2 is connected to pulse input terminal CK.
is sent, and the shift register 116 reads the input signal every pulse TP2, shifts each read data, and converts it into parallel data of 8 bits each. The contents of the shift register 116 are stored in a FIFO (First-In-Firsh-File) in 8-bit increments.
Out) buffer registers 121, 122, 12
Sent to 3,124. These FIFO buffer registers 121 to 124 are registers that sequentially store incoming data and send it out on a first-come, first-served basis.They have a capacity to store all the data in one scanning line, and have 32 stages of 8 bits. It consists of Timing pulse TP3, which is output every eight timing pulses TP2, is input to the shift pulse input terminal CK of FIFO registers 121 to 124.
Data from shift register 116 every 8
Read bit by bit and shift the read contents to the previous stage.

第13図を参照して、FIFOレジスタ121〜
124は丁度1走査分のデータをストアしうる容
量を有しているから、走査期間T1の最後のタイ
ミング・パルスTP3が送られたときにFIFOレジ
スタ121〜124には容量一杯のデータが入れ
られたことになり、このときFIFOレジスタ12
1から信号FULLが割込信号としてCPU70に
送られる。すると、CPU70においこの割込が
受付けられ、FIFOレジスタ121〜124から
のデータ入力処理が実行される。この処理はIN
命令により行なわれ、まずFIFOレジスタ121
を指定する選択信号SS1がチツプ・セレクト端
子CSに送られ、FIFOレジスタ121の最前段の
8ビツト・データがデータ・バス118を通つて
CPU70内のアキユムレータ転送され、このア
キユムレータからメモリ80内のデータ・エリヤ
CMA1に転送される。次にFIFO122を指定す
る選択信号SS2が出力され、同様にしてFIFOレ
ジスタ121の最前段の8ビツト・データがデー
タ・バス118、CPU70を経てデータ・エリ
ヤCMA2送られる。同様にして、順次FIFOレジ
スタ123,124を指定する選択信号SS3,
SS4)が送られ、各FIFOレジスタ123,12
4の最前段のデータが各データ・エリヤCMA3,
CMA4にストアされる。FIFOレジスタ121の
最前段のデータが出力されれば、FIFOレジスタ
121は一杯ではなくなるから信号FULLは消滅
する。また、各FIFOレジスタ121〜124の
最前段のデータが送出されると、最前段が空にな
るからストアされている全データが1段だけ前方
にシフトされ、最後段(入力がわ)が空となつて
次の走査線のデータの入力に備える。このように
して、FIFOレジスタ121〜124内のデータ
が8ビツトずつ順次各データ・エリヤCMA1〜
CMA4に転送される。そして、休止期間T2の
間に、各FIFOレジスタ121〜124内の256ビ
ツトのすべてのデータをメモリ80内にストアす
る。なお、休止期間T2においてFIFOレジスタ
121〜124の最前段のデータのみの転送を行
なうようにしてもよい。この場合には、休止期間
T2は1回のデータ入力時間T4よりもやや長け
ればよいから非常に短い時間とすることができ
る。また、直接メモリ・アクセス・チヤンネル装
置を設け、信号FULLがあつたときに上記装置に
データ・エリヤCMA1〜CMA4の先頭番地を指
定して、CPU70の動作とは独立にFIFOレジス
タ121〜124のデータを順次データ・エリヤ
CMA1〜CMA4に入力させるようにすることも
できる。この場合にも休止期間T2が1回のデー
タ入力時間T4よりも長ければ、次の走査期間T
1の開始時点にはFIFOレジスタ121〜124
内に空が生ずるから次の走査線のデータをFIFO
レジスタ121〜124にストアさせることがで
きる。このように、FIFOレジスタ121〜12
4は、データの入力に関し、FIFOレジスタ12
1〜124の前段の回路とCPU70の動作を分
離して能率的な処理を保障する。
With reference to FIG. 13, FIFO registers 121 to
124 has a capacity that can store exactly one scan's worth of data, so when the last timing pulse TP3 of the scan period T1 is sent, the FIFO registers 121 to 124 are filled with data to the full capacity. Therefore, at this time, FIFO register 12
1, the signal FULL is sent to the CPU 70 as an interrupt signal. Then, this interrupt is accepted by the CPU 70, and data input processing from the FIFO registers 121 to 124 is executed. This process is IN
This is done by a command, and first the FIFO register 121
A selection signal SS1 specifying the chip select terminal CS is sent to the chip select terminal CS, and the first 8-bit data of the FIFO register 121 is sent through the data bus 118.
The data is transferred to the accumulator in the CPU 70, and the data area in the memory 80 is transferred from this accumulator to the data area in the memory 80.
Transferred to CMA1. Next, a selection signal SS2 designating the FIFO 122 is output, and in the same way, the 8-bit data at the forefront of the FIFO register 121 is sent to the data area CMA2 via the data bus 118 and the CPU 70. Similarly, selection signals SS3, which sequentially designate FIFO registers 123 and 124,
SS4) is sent, and each FIFO register 123, 12
The first stage data of 4 is in each data area CMA3,
Stored in CMA4. When the data in the first stage of the FIFO register 121 is output, the signal FULL disappears because the FIFO register 121 is no longer full. Also, when the data in the first stage of each FIFO register 121 to 124 is sent out, the first stage becomes empty, so all stored data is shifted forward by one stage, and the last stage (input row) becomes empty. It then prepares for inputting data for the next scanning line. In this way, the data in the FIFO registers 121-124 are sequentially transferred 8 bits at a time to each data area CMA1-CMA1-124.
Transferred to CMA4. Then, during the pause period T2, all 256-bit data in each FIFO register 121-124 is stored in the memory 80. Note that during the pause period T2, only the data in the first stage of the FIFO registers 121 to 124 may be transferred. In this case, the pause period T2 only needs to be slightly longer than the one-time data input time T4, so it can be made very short. In addition, a direct memory access channel device is provided, and when the signal FULL is received, the first address of the data areas CMA1 to CMA4 is specified to the device, and the data in the FIFO registers 121 to 124 is accessed independently of the operation of the CPU 70. sequential data area
It is also possible to input the information to CMA1 to CMA4. In this case as well, if the pause period T2 is longer than one data input time T4, the next scanning period T
At the start of 1, FIFO registers 121 to 124
Since there is an empty space in
It can be stored in registers 121-124. In this way, FIFO registers 121-12
4 is FIFO register 12 regarding data input.
The operations of the preceding stage circuits 1 to 124 and the CPU 70 are separated to ensure efficient processing.

さらに第9図において、カウンタ117は、レ
ジスタ群113の出力がわに接続されたAND回
路115の出力のHレベルのデータ数を計数す
る。このAND回路115の出力はレベル分離信
号CMV3の端縁修正された信号であるから、カ
ウンタ117は、基準レベルVT3に相当する濃
度よりも濃い分割点の数を計数することになる。
このカウンタ117は信号FULLによつて次の走
査期間T1が開始されるときにリセツトされる。
信号FULLは各走査線の走査終了毎に出力される
から、カウンタ117は各走査毎に上記分割点の
数を計数する。カウンタ117、および上述した
通帳位置検出スイツチ65,66の各出力は
FIFOレジスタ121〜124と同じようにIN命
令によつてCPU70に読込まれる。カウンタ1
17、スイツチ65,66はそれぞれ選択信号
SS5,SS6,SS7によつて指定される。
Furthermore, in FIG. 9, a counter 117 counts the number of H level data output from an AND circuit 115 connected to the output side of the register group 113. Since the output of the AND circuit 115 is an edge-corrected signal of the level separation signal CMV3, the counter 117 counts the number of division points whose density is higher than the density corresponding to the reference level VT3.
This counter 117 is reset by the signal FULL when the next scanning period T1 is started.
Since the signal FULL is output every time the scanning of each scanning line ends, the counter 117 counts the number of division points for each scanning. Each output of the counter 117 and the above-mentioned passbook position detection switches 65 and 66 is
Like the FIFO registers 121 to 124, they are read into the CPU 70 by the IN instruction. counter 1
17, switches 65 and 66 are selection signals, respectively.
Specified by SS5, SS6, and SS7.

次に第14図を参照して、通帳50の日付欄の
前回印字行に印字された数字などを読取り、かつ
パターン判別することによつて、通帳50の次に
印字すべき行が印字ヘツド67と対向するように
位置決めする動作について述べる。まず、通帳5
0の所定ページを開いて記帳機の挿入口に差込む
(ステツプ1)と、これが通帳挿入検出器74に
よつて検出された通帳搬送装置78が駆動される
ので、通帳50は搬送路60にそつて下方に搬送
されていく(ステツプ2)。そして、選択信号SS
6により通帳位置検出スイツチ65を指定して、
このスイツチ65の出力状態を読取る(ステツプ
3)。通帳50の再下端がスイツチ65によつて
検出され、スイツチ65から検出信号が出力され
ていれば、通帳50はその日付欄の最下位部分が
CCD64と対向する位置に至つたのであるから、
この位置を基準として送り量計数装置75による
送り量計数が開始される(ステツプ4)ととも
に、CCD64による通帳50の日付欄の走査を
開始する(ステツプ5)。
Next, referring to FIG. 14, by reading the numbers etc. printed on the previous printing line in the date column of the bankbook 50 and identifying the pattern, the next line to be printed on the bankbook 50 is determined from the printing head 67. The operation of positioning the object so that it faces the object will be described below. First, passbook 5
When a predetermined page of 0 is opened and inserted into the insertion slot of the bookkeeping machine (step 1), this is detected by the passbook insertion detector 74 and the passbook transport device 78 is driven, so the passbook 50 is inserted into the transport path 60. Then, it is conveyed downward (step 2). And the selection signal SS
6 to specify the passbook position detection switch 65,
The output state of this switch 65 is read (step 3). If the lower end of the passbook 50 is detected by the switch 65 and a detection signal is output from the switch 65, the lower end of the date column of the passbook 50 is detected.
Since it has reached the position facing the CCD64,
Based on this position, the feed amount counting device 75 starts counting the feed amount (step 4), and at the same time, the CCD 64 starts scanning the date column of the passbook 50 (step 5).

CCD64によつてまず第1番目の走査線にそ
う256ビツトのデータを読取ると、信号FULLに
よる割込みにもとづいてこれらのデータをメモリ
80のデータ・エリヤにストアする(ステツプ
6)。次に、選択信号SS5によりカウンタ117
を指定してカウンタ117の計数値を読取り、計
数値が10以上であるか否かを判断する(ステツプ
7)。カウンタ117の計数値は、上述のように
1つの走査線における基準レベルVT3に対応す
る濃度よりも濃い分割点の数を示している。各走
査線において、何らかの印字された数字などが存
在するか、または紙面雑音であるかの判定基準を
10とし、上記分割点が10以上存在すれば印字され
た数字などによるものとし、10未満であれば雑音
であるとみなす。日付欄走査の初期においては印
字されていない白い部分を走査しているから、通
常カウンタ117の計数値は10よりも小さくステ
ツプ7における判断はNOであつてステツプ8に
移る。ステツプ8では開始フラグF1が既にセツ
トされているかを判断する。開始フラグF1につ
いては後述するが、走査初期では未だフラグF1
はセツトされていないからステツプ15に移つて、
ステツプ6でストアしたメモリ80内のデータを
クリヤする。そして選択信号SS7により通帳位
置検出スイツチ66を指定してこのスイツチ66
の出力状態を読取り(ステツプ16)、未だスイツ
チ66から検出信号が出力されていなければ、ス
テツプ6に戻る。
When 256 bits of data are first read in the first scanning line by the CCD 64, these data are stored in the data area of the memory 80 based on an interrupt caused by the signal FULL (step 6). Next, the counter 117 is activated by the selection signal SS5.
is specified, the count value of the counter 117 is read, and it is determined whether the count value is 10 or more (step 7). As described above, the count value of the counter 117 indicates the number of dividing points in one scanning line whose density is higher than the density corresponding to the reference level VT3. For each scanning line, determine whether there is some kind of printed number, etc., or whether it is paper noise.
10, and if there are 10 or more division points, it is determined by printed numbers, etc., and if it is less than 10, it is considered to be noise. At the beginning of the date field scanning, the unprinted white part is being scanned, so the count value of the counter 117 is usually smaller than 10, and the judgment in step 7 is NO, and the process moves to step 8. In step 8, it is determined whether the start flag F1 has already been set. The start flag F1 will be described later, but at the beginning of scanning, the flag F1 is still
is not set, so move on to step 15.
The data stored in the memory 80 in step 6 is cleared. Then, the passbook position detection switch 66 is designated by the selection signal SS7, and this switch 66 is activated.
The output state of the switch 66 is read (step 16), and if the detection signal has not yet been output from the switch 66, the process returns to step 6.

通帳50の搬送にともない同様にしてステツプ
6、7、8、15、16を繰返していき、CCD64
が印字されている部分に至ると、カウンタ117
の計数値が10以上になるからステツプ7からステ
ツプ17に移つてフラグF1をセツトする。そし
て、フラグF1セツト後の連続走査回数を計数す
るためにカウンタF2の内容に+1する。この
後、再びステツプ6に戻り、CCD64が印字さ
れている部分を走査している間、ステツプ6、
7、17、18を繰返す。
As the passbook 50 is transported, steps 6, 7, 8, 15, and 16 are repeated in the same manner, and the CCD 64
When it reaches the part where is printed, the counter 117
Since the count value becomes 10 or more, the process moves from step 7 to step 17 and flag F1 is set. Then, in order to count the number of consecutive scans after the flag F1 is set, the content of the counter F2 is incremented by one. After this, the process returns to step 6, and while the CCD 64 is scanning the printed area, the steps 6,
Repeat steps 7, 17, and 18.

印字されている部分の走査が完了すると、
CCD64は再び白い部分を走査することになる
から、ステツプ7における判断はNOとなつてス
テツプ8に移り、フラグF1は既にセツトされて
いるのでステツプ8からステツプ9に移行する。
ステツプ9ではカウンタF2の計数値が20以上で
あるか否かを判断する。カウンタ117の計数値
が10以上である走査線に対してカウンタF2の内
容はこのような走査線が何本継続して存在するか
を表わしている。ステツプ9では、カウンタ11
7の計数値が10以上である走査線が20本以上連続
して存在している場合に、走査した部分に数字な
どが印字されているとみなしてステツプ10に移
る。カウンタF2の内容が20未満の場合には、数
字などが印字されているのではなくて何らかの汚
れなどがあるものとみなしてステツプ15に移りス
トアしたデータをクリアする。このとき、フラグ
F1およびカウンタF2もクリアし、ステツプ6
に戻つて上記同様な処理を繰返す。
When scanning of the printed area is completed,
Since the CCD 64 will scan the white area again, the determination at step 7 is NO and the process moves to step 8. Since the flag F1 has already been set, the process moves from step 8 to step 9.
In step 9, it is determined whether the count value of the counter F2 is 20 or more. For scanning lines for which the count value of the counter 117 is 10 or more, the contents of the counter F2 represent how many such scanning lines continuously exist. In step 9, counter 11
If there are 20 or more consecutive scanning lines in which the count value of 7 is 10 or more, it is assumed that numbers or the like are printed in the scanned area, and the process moves to step 10. If the content of the counter F2 is less than 20, it is assumed that there is some kind of dirt or the like rather than numbers being printed, and the process goes to step 15 to clear the stored data. At this time, flag F1 and counter F2 are also cleared, and step 6
Return to and repeat the same process as above.

ステツプ9で数字などが印字されていると判断
した場合に、この判断された印字行は通帳50の
下端から上端に向つてみた場合にはじめてあらわ
れる印字行、すなわち通帳50の前回印字行であ
るから、次に印字すべき行はこの判断された印字
行の下端から上端に向つてみた前の行である。こ
の次に印字すべき行の位置決めの準備としてステ
ツプ10で、通帳50の最下行から上記数字などが
印字されていると判断された行までの送り量を計
数装置75から読取り、ストアしておく。
When it is determined in step 9 that numbers etc. are printed, the determined printed line is the printed line that appears for the first time when looking from the bottom to the top of the passbook 50, that is, the previous printed line of the passbook 50. , the next line to be printed is the previous line viewed from the bottom to the top of this determined print line. In preparation for positioning the next line to be printed, in step 10, the amount of feed from the bottom line of the passbook 50 to the line where it is determined that the above numbers are printed is read from the counting device 75 and stored. .

次にステツプ11において、読取つたデータによ
るパターンとあらかじめモデル・パターン・エリ
ヤに設定されているモデ・パターンとを比較し、
パターン判別を実行する。メモリ80のデータ・
エリヤCMA1〜CMA4には、レベル分離された
4種のデータCMD1〜CMD4がステツプ6、
7、17、18の繰返しにより既にストアされてい
る。他方、メモリ80のモデル・パターン・エリ
ヤには日付欄に印字される数字の標準となるモデ
ル・パターンがあらかじめストアされているか
ら、データ・パターンのうちいずれか1つたとえ
ばデータCMD3からなるデータ・パターンと多
数のモデル・パターンとを順次比較し、一致する
ものがあるかどうかを調べる。両パターンの比較
は、たとえば両パターンを構成するデータを1ビ
ツトずつ取出し、これらの各データが一致するか
どうかを判定して総データ数に対する一致したデ
ータの数の割合を求め、このこの割合が所定値以
上である場合に両パターンが一致したとみなす。
データを1ビツトずつ比較せずに数ビツトずつ比
較してもよい。なお、年と月の組み合わせの数字
は種類が多いので、年あるいは月の一方、または
年あるいは月のうちの1桁の数字について比較し
ても本発明の目的を達成できる。後者の場合に
は、モデル・パターンとして0〜9の数字を記憶
していおけばよい。このようにして、データ
CMD3からなるデータ・パターンが多数のモデ
ル・パターンのいずれか1つと一致すれば可
(OK)であり、データ・パターンがどのモデ
ル・パターンとも一致しない場合には不可
(NG)である。
Next, in step 11, the pattern based on the read data is compared with the model pattern previously set in the model pattern area.
Execute pattern discrimination. Memory 80 data
In the areas CMA1 to CMA4, four types of level-separated data CMD1 to CMD4 are stored in step 6.
It has already been stored by repeating steps 7, 17, and 18. On the other hand, since the model pattern area of the memory 80 stores in advance standard model patterns for numbers printed in the date column, any one of the data patterns, for example, the data CMD3, can be stored in the model pattern area. The pattern is sequentially compared with a large number of model patterns to see if there is a match. To compare both patterns, for example, extract each bit of data that makes up both patterns, determine whether each piece of data matches, find the ratio of the number of matching data to the total number of data, and calculate this ratio by If the value is greater than or equal to a predetermined value, it is assumed that both patterns match.
Instead of comparing data bit by bit, it is also possible to compare data bit by bit. Note that, since there are many types of numeric combinations of year and month, the object of the present invention can be achieved even by comparing either the year or the month, or one digit of the year or month. In the latter case, numbers 0 to 9 may be stored as model patterns. In this way, the data
If the data pattern consisting of CMD3 matches any one of the many model patterns, it is OK (OK), and if the data pattern does not match any model pattern, it is unacceptable (NG).

ステツプ11において可(OK)であれば、ステ
ツプ10でストアした送り量にもとづいて、次に印
字すべき行が印字ヘツド67に対向する位置に通
帳50を位置決めし(ステツプ12)、この後通帳
50の印字すべき行に所定の印字を行なつて(ス
テツプ13)、メモリ80のデータ・パターンをク
リアしたのち(ステツプ14)、通帳50を返却す
る(ステツプ20)。
If it is OK in step 11, the bankbook 50 is positioned at a position where the next line to be printed faces the printing head 67 based on the feed amount stored in step 10 (step 12), and then the bankbook is printed. After performing predetermined printing on the line 50 to be printed (step 13) and clearing the data pattern in the memory 80 (step 14), the passbook 50 is returned (step 20).

通帳50の印字面に転写A、うら移りBなどが
あつた場合に、仮にステツプ9でYESとなり何
らかの数字などが印字されていると判断されたと
しても、転写A、うら移りBなどのデータ・パタ
ーンは正しい数字のパターンではないので、いず
れのモデル・パターンとも一致せず、ステツプ11
のパターン判別において不可(NG)と判断され
る。この場合には印字すべき行を決定することは
不可能であるから、表示装置79に「取扱不能」
などの表示をして(ステツプ19)、通帳を返却す
る(ステツプ20)。
If there is transfer A, back transfer B, etc. on the printed surface of the passbook 50, even if the answer in step 9 is YES and it is determined that some number etc. is printed, the data such as transfer A and back transfer B, etc. The pattern is not a valid pattern of numbers, so it does not match any model pattern, and step 11
It is determined that the pattern is not acceptable (NG). In this case, it is impossible to determine the line to be printed, so the display device 79 displays an "unavailable" message.
(Step 19) and return the passbook (Step 20).

通帳50の開いたページが誤つており全く印字
されていない面を開いて記帳機内に挿入した場合
には、通帳50の下端がスイツチ66によつて検
出されたときにステツプ16でYESと判断され、
通帳50が返却される(ステツプ20)。このとき
には、ステツプ10以降に移行することはないか
ら、パターン判別はもちろん行なわれない。
If the bankbook 50 is opened on the wrong page and is inserted into the bookkeeping machine with the side completely unprinted open, when the bottom edge of the bankbook 50 is detected by the switch 66, it will be judged as YES in step 16. ,
The passbook 50 is returned (step 20). At this time, since there is no transition to step 10 or later, pattern discrimination is of course not performed.

パターン判別(ステツプ11)において、データ
CMD3からなるデータ・パターンとモデル・パ
ターンとを比較しているが、これに代えてまたは
加えてデータCMD1および/またたはCMD2か
らなるデータ・パターンを用いることができるの
は言うまでもない。この場合、データCMD1〜
CMD3からなるデータ・パターンのすべてがモ
デル・パターンのいずれかと一致した場合に可
(OK)とすることもできる。また各データCMD
1〜CMD3のそれぞれ対してモデル・パターン
を用意しておいてもよい。さらに、より簡単化し
た方式では、画像信号をひとつの基準レベルで弁
別して符号化し、この符号化したひとつのデー
タ・パターンをモデル・パターンと比較してもよ
い。
In pattern discrimination (step 11), data
Although the data pattern consisting of CMD3 and the model pattern are compared, it goes without saying that a data pattern consisting of data CMD1 and/or CMD2 can be used instead of or in addition to this. In this case, data CMD1~
It is also possible to determine OK if all of the data patterns consisting of CMD3 match any of the model patterns. Also each data CMD
Model patterns may be prepared for each of CMD1 to CMD3. Furthermore, in a simpler scheme, the image signal may be discriminated and encoded at one reference level, and this encoded single data pattern may be compared with a model pattern.

第14図のフロー・チヤートでは、ステツプ7
およびステツプ9で用紙面の汚れその他の雑音を
排除しているから、印字された数字とみなされる
画像からのデータについてのみパターン判別が可
能であり、パターン判別が1回ですむとともに正
確なパターン判別ができる。また、ステツプ7、
9でNOと判断された場合にはステツプ15でメモ
リ80にストアされたデータをクリアしているか
ら、メモリ80でデータ・エリヤの容量は、1検
知領域Eのデータをストアしうるだけもので足
り、メモリ容量を節約することができる。
In the flow chart of Figure 14, step 7
Since stains and other noises on the paper surface are eliminated in step 9, pattern discrimination is possible only for data from images that are considered to be printed numbers. can. Also, step 7,
If NO is determined in step 9, the data stored in the memory 80 is cleared in step 15, so the capacity of the data area in the memory 80 is only large enough to store the data of one detection area E. It is possible to save memory capacity.

さらに、CCD63からの画像信号を上記と全
く同様に処理しかつパターン判別すれば、通帳5
0ページ数がアラビヤ数字55であらわされてい
ても、開かれたページ数を認識することが可能で
あることは容易に理解されよう。ページ数をアラ
ビヤ数字であらわすことにより、バー・コード5
4であらわした場合に利用者が感ずる異和感をと
りのぞくことができる。また、通常は残高も通帳
の各行に印字されるので、日付の代わりにこの残
高印字を通帳の位置決めに利用してもよい。この
場合、残高の最下位桁(1円の位)の数字でパタ
ーン判別すると好適である。さらに、数字の代わ
りにアルフアベツトなどの記号をパターン判別に
用いてもよい。
Furthermore, if the image signal from the CCD 63 is processed in exactly the same way as above and the pattern is determined, the passbook 5
It will be easily understood that even if the zero page number is represented by the Arabic numeral 55, it is possible to recognize the number of opened pages. By expressing the page number in Arabic numerals, bar code 5
It is possible to eliminate the sense of strangeness that the user feels when it is expressed as 4. Further, since the balance is usually printed on each line of the passbook, this balance print may be used for positioning the passbook instead of the date. In this case, it is preferable to identify the pattern using the lowest digit (1 yen digit) of the balance. Furthermore, symbols such as alphanumeric characters may be used for pattern discrimination instead of numbers.

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

第1図は通帳を示す斜視図、第2図は他の通帳
の一部を示す斜視図、第3図は通帳搬送路を示す
側面図、第4図は通帳搬送路を示す正面図、第5
図は印字をCCDで読取つた場合のモデルを示す
説明図、第6図は走査サイクルを示すタイム・チ
ヤート、第7図は通帳の印字行位置決め装置の全
体を示すブロツク図、第8図はメモリの内容を示
す図、第9図は処理回路の具体的構成を示すブロ
ツク図、第10図は処理回路の動作を示すタイ
ム・チヤート、第11図は第5図の一部の拡大
図、第12図は第11図のモデルを符号で表した
説明図、第13図はCPUへのデータ入力のタイ
ミングを示すタイム・チヤート、第14図は
CPUによる処理を示すフロー・チヤートである。 50,51……通帳、53……印字用紙、6
3,64……CCD(撮像装置)、70……中央演
算処理装置(CPU)、80……メモリ、101〜
104……レベル弁別器、111〜114……端
縁修正用シフト・レジスタ群、115……同
AND回路。
Fig. 1 is a perspective view showing the passbook, Fig. 2 is a perspective view showing part of another passbook, Fig. 3 is a side view showing the passbook transport path, Fig. 4 is a front view showing the passbook transport path, and Fig. 4 is a front view showing the passbook transport path. 5
The figure is an explanatory diagram showing a model when printing is read with a CCD, Figure 6 is a time chart showing the scanning cycle, Figure 7 is a block diagram showing the entire print line positioning device for a passbook, and Figure 8 is a memory 9 is a block diagram showing the specific configuration of the processing circuit, FIG. 10 is a time chart showing the operation of the processing circuit, FIG. 11 is an enlarged view of a part of FIG. Figure 12 is an explanatory diagram representing the model in Figure 11 with symbols, Figure 13 is a time chart showing the timing of data input to the CPU, and Figure 14 is a diagram showing the timing of data input to the CPU.
This is a flow chart showing processing by the CPU. 50, 51...Passbook, 53...Printing paper, 6
3, 64...CCD (imaging device), 70...Central processing unit (CPU), 80...Memory, 101~
104... Level discriminator, 111-114... Edge correction shift register group, 115... Same
AND circuit.

Claims (1)

【特許請求の範囲】 1 数字、文字、記号等のキヤラクタが記録され
た紙面上を走査してこれらのキヤラクタの画像信
号を出力する撮像装置、 撮像装置から出力される画像信号をレベル弁別
して2値化された読取りデータを出力するレベル
弁別回路、 2値化された読取りデータを主走査線の所定範
囲にわたつてそれぞれ記憶する複数の記憶領域を
備え、これら複数の記憶領域に読取りデータを副
走査方向に複数の主走査線にわたつて記憶する記
憶回路、および 記憶回路の各記憶領域から出力される上記複数
の主走査線の読取りデータのAND論理を副走査
方向に対応する各ビツトごとに演算する演算手段
を備え、 記憶回路における記憶データが一主走査線のデ
ータ分ずつ順次副走査方向に更新され、記憶デー
タの更新ごとに演算手段によるAND論理演算が
行なわれる、 画像信号処理装置。
[Scope of Claims] 1. An imaging device that scans a paper surface on which characters such as numbers, letters, symbols, etc. are recorded and outputs image signals of these characters; It includes a level discrimination circuit that outputs digitized read data, a plurality of storage areas that respectively store binarized read data over a predetermined range of main scanning lines, and sub-loads the read data to these multiple storage areas. A memory circuit that stores data across a plurality of main scanning lines in the scanning direction, and an AND logic of the read data of the plurality of main scanning lines output from each storage area of the memory circuit for each bit corresponding to the sub-scanning direction. An image signal processing device comprising a calculation means for calculating, wherein stored data in a memory circuit is updated sequentially in the sub-scanning direction by data of one main scanning line, and an AND logical operation is performed by the calculation means each time the stored data is updated.
JP59030660A 1984-02-20 1984-02-20 Method for forming picture data Granted JPS59167176A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59030660A JPS59167176A (en) 1984-02-20 1984-02-20 Method for forming picture data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59030660A JPS59167176A (en) 1984-02-20 1984-02-20 Method for forming picture data

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP53085545A Division JPS5939073B2 (en) 1978-07-12 1978-07-12 How to position the print line on a passbook

Publications (2)

Publication Number Publication Date
JPS59167176A JPS59167176A (en) 1984-09-20
JPS639421B2 true JPS639421B2 (en) 1988-02-29

Family

ID=12309906

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59030660A Granted JPS59167176A (en) 1984-02-20 1984-02-20 Method for forming picture data

Country Status (1)

Country Link
JP (1) JPS59167176A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03225044A (en) * 1990-01-31 1991-10-04 Toyota Motor Corp Control device for internal combustion engine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03225044A (en) * 1990-01-31 1991-10-04 Toyota Motor Corp Control device for internal combustion engine

Also Published As

Publication number Publication date
JPS59167176A (en) 1984-09-20

Similar Documents

Publication Publication Date Title
EP0531229B1 (en) System for orienting documents in the automated processing of bulk mail and the like
US4748317A (en) Optical reader
EP0369761A2 (en) Character segmentation method
EP0164012A1 (en) Apparatus and method for reading a two-dimensional bar code
US5126540A (en) Image recording apparatus for selective recording of originals
EP0113086A2 (en) Image data processing system
US4797940A (en) Optical character reader
EP0085749B1 (en) Machine readable record
JPS5939073B2 (en) How to position the print line on a passbook
JPS5843787B2 (en) Printing condition inspection device
JPS639421B2 (en)
US5054104A (en) Optical character reader
EP0144202B1 (en) Optical reader
JPS6033778A (en) Method for detecting original
JPS6382774A (en) Printing line detecting method
JPH0831117B2 (en) Reader
JP2849781B2 (en) Method of determining the last printed line in the media processing device
JPS5830270A (en) Facsimile receiver
JP2815019B2 (en) Character / mark detection device
JP2591678B2 (en) Information follow-up device
JP2777048B2 (en) How to read barcodes
JPS58211280A (en) Character reader
CA2412619C (en) Separator card
JPS6223911B2 (en)
JP2881762B2 (en) Optical character reading device