JP2000293347A - Print presence/absence deciding method for medium - Google Patents

Print presence/absence deciding method for medium

Info

Publication number
JP2000293347A
JP2000293347A JP11097769A JP9776999A JP2000293347A JP 2000293347 A JP2000293347 A JP 2000293347A JP 11097769 A JP11097769 A JP 11097769A JP 9776999 A JP9776999 A JP 9776999A JP 2000293347 A JP2000293347 A JP 2000293347A
Authority
JP
Japan
Prior art keywords
value
print
byte
line
pattern
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.)
Granted
Application number
JP11097769A
Other languages
Japanese (ja)
Other versions
JP3746393B2 (en
Inventor
Masaki Fujiwara
正木 藤原
Yoshio Nagahora
義夫 長洞
Yuji Urushida
裕治 漆田
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.)
Shinko Seisakusho KK
Original Assignee
Shinko Seisakusho KK
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 Shinko Seisakusho KK filed Critical Shinko Seisakusho KK
Priority to JP09776999A priority Critical patent/JP3746393B2/en
Publication of JP2000293347A publication Critical patent/JP2000293347A/en
Application granted granted Critical
Publication of JP3746393B2 publication Critical patent/JP3746393B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Handling Of Cut Paper (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve print presence/absence decision making by comparing a generated comparison print pattern with reference print patterns which are generated for a case wherein there is actually a print and stored, and deciding a line as a print line when there is a matching pattern. SOLUTION: Each time a scan is made, the numbers of pixel data of '1' by bytes are added and accumulated by multiple byte pixel counters 331 to 3328 and when one line is all scanned, the comparison print pattern of the line is generated on the basis of the contents of the counters 331 to 3328. The generated comparison print pattern is compared by a comparison part 39 with reference print patterns which are generated for a case wherein there is actually a print and stored in a 2nd table 38 and when there is a matching pattern, the line is decided as a print line.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、通帳などの印字媒
体(以下、通帳という)の印字が予定されている行に文
字、数字、記号など(以下、代表的に文字という)を印
字するプリンタにおいて、前記行にすでに印字されてい
るか否かを判定するための印字有無判定方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer for printing characters, numbers, symbols, and the like (hereinafter, typically referred to as characters) on a line on which a printing medium such as a passbook (hereinafter, referred to as a passbook) is to be printed. The present invention relates to a printing presence / absence determining method for determining whether or not printing has already been performed on the line.

【0002】[0002]

【従来の技術】従来は、通帳を搬送しながらラインセン
サ(CCD)を用いて特定のエリア(通常は日付欄)を
走査して、印字有無判断用画素情報を取込み、印字有無
判断用情報は1回の走査の受光量の少ない部分、すなわ
ち黒の画素の数を計数し、その計数値が一定値を越えた
ものを印字あり走査として記憶し、これを1行分繰り返
し行い、1行中の印字あり走査の数が所定値以上の場合
に、その行を印字あり行と判定していた。
2. Description of the Related Art Conventionally, a specific area (usually a date column) is scanned using a line sensor (CCD) while a passbook is being conveyed, and pixel information for determining the presence or absence of printing is acquired. The portion where the amount of light received in one scan is small, that is, the number of black pixels is counted, and the count exceeding a certain value is stored as a scan with printing, and this is repeated for one line. When the number of scans with print is equal to or greater than a predetermined value, the line was determined to be a print line.

【0003】[0003]

【発明が解決しようとする課題】上記従来方法による
と、印字の濃度が低くなった場合は、1回の走査で得ら
れる印字有無判断用画素情報が減少し、一定値を越えな
くなってしまう場合があり、印字有無判断が困難にな
る。これについて、以下に具体的に説明する。
According to the above-mentioned conventional method, when the density of the print is reduced, the pixel information for determining the presence or absence of the print obtained by one scan is reduced and does not exceed a predetermined value. This makes it difficult to determine the presence or absence of printing. This will be specifically described below.

【0004】図22は、見開き状態の通帳の平面図であ
る。プリンタにより印字される通帳には、一般的に、図
22に示すような印字フォーマットが設定されている。
すなわち、見開き状態の通帳Aの上頁P1の先端(帳票
基準辺)から一定範囲を上端印字禁止帯Z1とし、その
上端印字禁止帯に続いて所定数の印字行を設け、綴じ目
Mを境としてその前後にそれぞれ1印字行(計2印字
行)相当の範囲を中央印字禁止帯Z2とし、下頁P2に
は上頁P1と同数の印字行を設け、その最終行に続く下
頁P2の終端までの一定範囲を下端印字禁止帯Z3とし
ている。
FIG. 22 is a plan view of a passbook in a double-page spread state. A passbook printed by a printer generally has a print format as shown in FIG.
That is, a predetermined range from the top end (form reference side) of the upper page P1 of the passbook A in the spread state is defined as an upper end print inhibition zone Z1, a predetermined number of print lines are provided following the upper end print inhibition zone Z1, and the binding line M is bounded. The area corresponding to one print line (total of two print lines) before and after that is defined as a central print prohibited zone Z2, the same number of print lines as the upper page P1 are provided on the lower page P2, and the lower page P2 following the last line is provided. A certain range up to the end is defined as a lower end printing prohibited zone Z3.

【0005】通帳に取引内容を印字する際には、各行に
ついて印字の有無を判定し、印字のない行(未印字行)
の最初の行に印字を行う必要がある。このため、プリン
タは、見開き状態で挿入された通帳の先端を検出した時
点から上端禁止帯Z1に相当する所定送り量だけ通帳を
搬送した位置を読取り開始位置とし、上頁の第1行から
下頁の最終行に至るまでの所定読取り範囲を帳票基準辺
と平行な方向に長いラインセンサで通帳Aを図22にお
いてF方向に1ステップ搬送するたびに横方向に読取り
(主走査)、その主走査により得られるアナログ信号を
1ビット単位で“1”又は“0”の2値画素データに変
換し、通帳を1印字行に対応する所定ステップの搬送
(副走査)の間に得られた2値データを所定の解析方法
により解析することにより、印字の有無を判断してい
る。
When printing the details of a transaction on a passbook, the presence or absence of printing is determined for each line, and the line without printing (unprinted line)
Must be printed on the first line of the. For this reason, the printer sets the position where the passbook has been conveyed by a predetermined feed amount corresponding to the upper end prohibition zone Z1 from the time when the leading end of the passbook inserted in the double-page spread state is detected, as the reading start position, Each time the bankbook A is conveyed one step in the direction F in FIG. 22 with a line sensor long in a direction parallel to the form reference side, the predetermined reading range up to the last line of the page is read in the horizontal direction (main scanning). The analog signal obtained by the scanning is converted into binary pixel data of “1” or “0” in 1-bit units, and the passbook is obtained during the transport (sub-scanning) of a predetermined step corresponding to one print line. The presence or absence of printing is determined by analyzing the value data by a predetermined analysis method.

【0006】従来の印字有無判定方法の一例を説明す
る。図23は、通帳処理機のプリンタの主として機構部
分の構成を示す概略図で、図24は、同プリンタの制御
部分の構成を示すブロック図である。プリンタ1は、通
帳Aに対して1行づつ印字動作を行うものである。プリ
ンタ1は、通帳Aが挿入排出口2に挿入されたことを検
知するための挿入検知器2aと、搬送路Lを挟んで対設
された複数の送りローラ3及び押えローラ4と、送りロ
ーラ3を正逆回転するモータ5と、挿入された通帳Aの
先端を検知するための先端検知器6と、通帳Aの所定領
域を走査して文字を読取るCCD群からなるラインセン
サ7と、印字行に沿って往復移動しながら印字を行う印
字ヘッド8と、印字ヘッド8に対向して設けられている
プラテン9と、搬送路Lの終端部に設けられて通帳Aの
頁をめくるための頁めくり部10とを有している。
An example of a conventional print presence / absence determination method will be described. FIG. 23 is a schematic diagram mainly showing a configuration of a mechanical portion of a printer of the passbook processor, and FIG. 24 is a block diagram showing a configuration of a control portion of the printer. The printer 1 performs a printing operation on the passbook A line by line. The printer 1 includes an insertion detector 2a for detecting that the passbook A has been inserted into the insertion / ejection port 2, a plurality of feed rollers 3 and a press roller 4 provided opposite to each other across the transport path L, and a feed roller. Motor 5 for rotating the bankbook 3 forward and backward, a leading edge detector 6 for detecting the leading edge of the inserted bankbook A, a line sensor 7 composed of a CCD group for scanning a predetermined area of the bankbook A and reading characters, and printing A print head 8 for performing printing while reciprocating along a row, a platen 9 provided opposite the print head 8, and a page provided at the end of the transport path L for turning pages of the passbook A It has a turning part 10.

【0007】プリンタ1は、図24に示すように、各部
を制御するCPU20と、その制御プログラム等を格納
しているROM21と、ワークエリア等を提供するRA
M22、モータ5を制御して通帳Aの搬送を行うための
搬送部23と、印字ヘッド8及びプラテン9等を制御し
て通帳Aに対する印字を行うための印字部24と、ライ
ンセンサ7の読取り動作を制御してスキャンデータ(画
素情報)を取得するためのセンサ制御部25と、ホスト
装置(コンピュータ等)から印字データを受信するため
のインタフェース部(I/F部)26とを有している。
また、CPU20は、先端検知器6からの検知信号を入
力して通帳Aが先端検知器6の位置に到達したことを検
知するようになっている。ラインセンサ7の読取り領域
Zrは、各行において印字が必ずなされる位置、例え
ば、取引年月日が印字される日付欄に設定されている。
As shown in FIG. 24, the printer 1 has a CPU 20 for controlling each section, a ROM 21 for storing a control program and the like, and an RA for providing a work area and the like.
M22, a transport unit 23 for controlling the motor 5 to transport the passbook A, a printing unit 24 for controlling the print head 8 and the platen 9 to perform printing on the passbook A, and reading the line sensor 7 It has a sensor control unit 25 for controlling operations and acquiring scan data (pixel information), and an interface unit (I / F unit) 26 for receiving print data from a host device (computer or the like). I have.
Further, the CPU 20 receives a detection signal from the leading edge detector 6 and detects that the passbook A has reached the position of the leading edge detector 6. The reading area Zr of the line sensor 7 is set in a position where printing is necessarily performed in each line, for example, a date column where a transaction date is printed.

【0008】図25に示すように、センサ制御部25に
よる制御により、ラインセンサ7は、搬送部3が通帳A
を1ステップ搬送するたびに搬送方向と直角方向に主走
査を行う。そして、各主走査において受光量の少ない場
合は論理値“1”に、受光量が多い場合は論理値“0”
に、すなわち、2値の画素データからなるスキャンデー
タに変換して出力する。図X4のSdは、ラインセンサ
7の走査ラインLbにおける印字ドットパターンであ
り、白丸はラインセンサの受光量が多い部分、すなわ
ち、印字されていない部分を示し、黒丸は受光量の少な
い部分、すなわち印字されている部分を示している。
As shown in FIG. 25, under the control of the sensor control section 25, the line sensor 7 controls
The main scanning is performed in the direction perpendicular to the transport direction every time the is transported by one step. When the amount of received light is small in each main scan, the logical value is “1”. When the amount of received light is large, the logical value is “0”.
That is, the data is converted into scan data composed of binary pixel data and output. Xd in FIG. X4 is a print dot pattern on the scanning line Lb of the line sensor 7, where a white circle indicates a portion where the amount of light received by the line sensor is large, that is, a portion where printing is not performed, and a black circle indicates a portion where the amount of light received is small, that is, The printed portion is shown.

【0009】より詳細に説明すると、図26(イ)に示
すように、数字「1」が十分な濃度で印字されている場
合の主走査によりラインセンサ7のCCDが出力するア
ナログ信号は、検出器により所定レベルVsで検出され
(同図a)、所定レベルVsを越えた場合の検出出力
(同図b)によりゲートが開放される間にクロック発生
回路の出力するクロック信号(同図c)が前記ゲートを
通過するようにしてある。ゲートの出力はカウンタに入
力されて(同図d)、計数される(同図e)。通帳の日
付欄のラインセンサ7による読取り範囲は、1走査で2
8バイト、すなわち224ビットとされている。そし
て、図26(ロ)に示すように、印字文字の1ドットに
対してゲートは4個のクロックパルスを通過させる。す
なわち、ラインセンサ7は、文字部分の1ドットの読取
りタイミングにおいて、4ビットの“1”データを出力
する。
More specifically, as shown in FIG. 26A, when the numeral "1" is printed at a sufficient density, the analog signal output from the CCD of the line sensor 7 by the main scanning is detected. The signal is detected at a predetermined level Vs by the detector (a in the figure), and a clock signal output from the clock generation circuit (c in the figure) while the gate is opened by a detection output when the level exceeds the predetermined level Vs (b in the figure) Pass through the gate. The output of the gate is input to the counter (d in the figure) and counted (e in the figure). The reading range of the passbook date column by the line sensor 7 is 2 per scan.
8 bytes, that is, 224 bits. Then, as shown in FIG. 26 (b), the gate passes four clock pulses for one dot of the print character. That is, the line sensor 7 outputs 4-bit "1" data at the timing of reading one dot of the character portion.

【0010】搬送部3が通帳Aを1行分搬送(副走査)
するのに例えば24ステップ必要な場合は、上記主走査
が24回行われる。そして、各主走査において得られた
2値データの中に、“1”が所定値、例えば12以上の
場合は、当該走査は印字有り走査と判定し、12未満の
場合は、当該走査は印字なし走査と判定し、さらに、1
行分の走査(24回)のうち、印字有り走査と判定され
たものが8以上の場合は、当該行を印字有り行と判定
し、8未満の場合は、当該行を印字なし行と判定するよ
うにしている。主走査におけるスキャンデータから印字
有無判定の基準値を12以上とする理由は、図25に示
すように、年月日の数字構成要素のうち、スキャンデー
タの最少数は図25の例えば走査ラインLaにおける走
査時のスキャンデータであり、そのときのスキャンデー
タのビット数は、印字文字の縦成分が1ドットであると
すると、1ドット×4ビット×3か所=12ビットとな
るからである。
The transport section 3 transports the passbook A by one line (sub-scan).
If, for example, 24 steps are required to perform the scanning, the main scanning is performed 24 times. Then, in the binary data obtained in each main scan, if “1” is a predetermined value, for example, 12 or more, the scan is determined to be a scan with print, and if less than 12, the scan is a print scan. Judgment as scanning without
If the number of scans for the line (24 times) is determined to be scanning with printing is 8 or more, the line is determined to be a line with printing, and if less than 8, the line is determined to be a line without printing. I am trying to do it. The reason why the reference value of the print presence / absence determination is set to 12 or more based on the scan data in the main scanning is that, as shown in FIG. This is because the number of bits of the scan data at that time is 1 dot × 4 bits × 3 places = 12 bits if the vertical component of the print character is 1 dot.

【0011】上記1走査におけるスキャンデータの中の
“1”ビット(以下、黒ビットという場合がある)の数
を基準値と比較して印字有無判定をする方法は、印字文
字の濃度が適正な場合には、問題がない。問題は、印字
濃度が薄い場合に発生する。すなわち、印字濃度が薄い
場合は、図27に示すように、ラインセンサ7からの出
力レベルが所定レベルVsよりも総体的に低くなり(同
図a)、例えば、数字1の印字濃度が正常の場合は、図
26(イ)のように、スキャンデータは、数字1の印字
パターンに忠実なものが得られるのに対し、印字濃度が
薄い場合は、図27(イ)のように、スキャンデータが
朽ちた形態になり、印字パターンに対する忠実度が低下
するため、1走査により得られるスキャンデータの中の
論理値“1”のビット数が忠実度が高い場合に比して減
少し、前記基準値(12)よりも低下することとなる。
このように、PCS値が低くなるに従い、ラインセンサ
からの印字有無判断用画素情報量が少なくなり、当該行
に印字があるか否かの判定が困難になる。また、1印字
行において得られる“1”ビットの数も基準値を下回
り、実際は印字が有るのに、印字なしと誤判定する場合
がある。
A method of comparing the number of "1" bits (hereinafter sometimes referred to as "black bits") in the scan data in one scan with a reference value to determine the presence or absence of printing is based on the fact that the density of the printed characters is appropriate. In that case, there is no problem. The problem occurs when the print density is low. That is, when the print density is low, the output level from the line sensor 7 is generally lower than the predetermined level Vs as shown in FIG. 27 (a in FIG. 27). In this case, as shown in FIG. 26 (a), scan data faithful to the print pattern of numeral 1 can be obtained, whereas when the print density is low, the scan data can be obtained as shown in FIG. 27 (a). Is deteriorated, and the fidelity to the print pattern is reduced. Therefore, the number of bits of the logical value “1” in the scan data obtained by one scan decreases as compared with the case where the fidelity is high, and It will be lower than the value (12).
As described above, as the PCS value decreases, the amount of pixel information for determining the presence or absence of printing from the line sensor decreases, and it becomes difficult to determine whether or not there is printing on the line. Further, the number of “1” bits obtained in one print line is also lower than the reference value, and there may be a case where there is an actual print but an erroneous determination that there is no print.

【0012】そこで、本発明は、印字濃度が低下した場
合、1回の走査で得られる印字有無判断用画素情報量が
減少しても、これに左右されること無く、確実に印字の
有無を判定することができる印字有無判定方法を提供す
ることにある。
In view of the above, according to the present invention, when the print density is reduced, even if the amount of pixel information for print presence determination obtained by one scan decreases, the presence or absence of printing can be reliably determined without being influenced by the decrease. An object of the present invention is to provide a printing presence / absence determination method capable of determining.

【0013】[0013]

【課題を解決するための手段】上記課題を解決する本発
明の原理は、次の通りである。すなわち、日付欄に印字
される英数字(主にANKの数字)は縦長に構成されて
いて、かつ、縦方向の成分が多く含まれている。PCS
値が低くなり、スキャンデータの中の黒ビット数が減少
しても、縦方向成分の残る割合は大きいので、日付欄を
主走査方向の一定範囲ごとに縦に区分し、各縦区分から
縦方向成分を抽出し、印字位置の有無判定に使用する。
すなわち、走査により得られる画素情報の黒の画素数を
1バイト単位に副走査方向(縦方向)に加算し、これに
より文字の縦方向成分を量として表す。そして、得られ
た各バイト列ごとの加算累積データをパターン化し、そ
のパターンを印字ありパターンと比較し、一致するか否
かにより、印字有り行又は印字無し行と判定する。
The principle of the present invention for solving the above-mentioned problems is as follows. That is, alphanumeric characters (mainly ANK numbers) printed in the date column are vertically long and include many components in the vertical direction. PCS
Even if the value decreases and the number of black bits in the scan data decreases, the proportion of the vertical component remaining is large, so the date column is vertically divided into certain ranges in the main scanning direction, and the vertical The direction component is extracted and used to determine the presence or absence of a print position.
That is, the number of black pixels of the pixel information obtained by scanning is added in the sub-scanning direction (vertical direction) in units of 1 byte, thereby expressing the vertical component of the character as an amount. Then, the obtained accumulated data for each byte sequence is patterned, the pattern is compared with a pattern with printing, and it is determined as a line with printing or a line without printing based on whether they match.

【0014】上記の原理に着目して、本発明による印字
有無判定方法は、(a)1走査分のスキャンデータに対
して1バイトごとの“1”の画素データを計数するバイ
ト画素カウンタを備え、(b)走査を行うたびに、各1
バイトごとの“1”の画素データ数を前記バイト画素カ
ウンタのそれぞれに加算累積し、(c)1行分の全走査
を終了した時点で前記各バイト画素カウンタの内容を元
に、その行の比較印字パターンを作成し、(d)作成さ
れた前記比較印字パターンを、実際に印字がある場合に
ついて作成され、記憶されている基準印字パターンと比
較し、一致するものがある場合にその行を印字あり行と
判定することを特徴としている。上記各バイト画素カウ
ンタは、印字される領域の複数の縦区分のそれぞれにつ
いて黒画素の数を計数するので、その計数値には文字構
成要素の縦成分が反映される。従って、PCSが低下し
た文字の場合も、可及的に多くの印字有無判断用画素情
報が取得され、正確な印字有無判定を行うことができ
る。しかし、比較印字パターンは、それぞれ1バイト単
位で作成されるため、印字ではなく、汚点に対しても作
成されうる。
Focusing on the above principle, the print presence / absence determination method according to the present invention includes (a) a byte pixel counter for counting pixel data of "1" for each byte of scan data for one scan. , (B) each time a scan is performed
The number of pixel data of "1" for each byte is added and accumulated in each of the byte pixel counters. (C) When all the scans for one row are completed, based on the contents of each byte pixel counter, A comparative print pattern is created, and (d) the created comparative print pattern is compared with a reference print pattern created and stored when there is actually printing, and if there is a match, the line is replaced. It is characterized in that it is determined that the line has a print. Since each byte pixel counter counts the number of black pixels for each of the plurality of vertical sections of the area to be printed, the counted value reflects the vertical component of the character component. Therefore, even in the case of a character having a lowered PCS, as much pixel information as possible to determine the presence or absence of printing can be obtained, and the presence or absence of printing can be accurately determined. However, since the comparison print pattern is created in units of one byte, it can be created not for printing but also for a stain.

【0015】比較印字パターンと基準印字パターンの種
類は、判定の精度により次の2通りがありうる。すなわ
ち、第1の種類は、日付欄の1行ごとを走査して得られ
るスキャンデータの中の“1”の画素数を1バイト単位
に副走査方向に加算し、各バイトの中の“1”の画素の
計数値が複数段階の値のいずれに該当するかを分類し、
分類結果に対して予め定めてある項タイプを割付けし、
その4項ごとの項タイプにより比較印字パターンを生成
し、また、基準印字パターンはそれぞれ単一の文字に対
応して作成される。そして、比較印字パターンを複数の
印字からなる印字パターンに対応する予め作成された基
準印字パターンと照合し、少なくとも一つの比較印字パ
ターンが基準印字パターンと一致するとき、当該行は印
字あり行と判定する方法である。上記方法の場合は、比
較印字パターンは、複数個の文字に対応するものである
ので、1文字単位ではなく、一定長の書式単位で比較す
るから、汚点を排除することができる。
The types of the comparison print pattern and the reference print pattern can be the following two types depending on the accuracy of the judgment. That is, in the first type, the number of pixels of "1" in scan data obtained by scanning each row of the date column is added in the sub-scanning direction in byte units, and "1" in each byte is added. Classify which of the multi-level values the pixel count value of “
Assign a predetermined term type to the classification result,
A comparison print pattern is generated based on each of the four item types, and a reference print pattern is created corresponding to each single character. Then, the comparison print pattern is compared with a pre-created reference print pattern corresponding to a print pattern composed of a plurality of prints, and if at least one of the comparison print patterns matches the reference print pattern, the line is determined to be a printed line. How to In the case of the above method, since the comparative print pattern corresponds to a plurality of characters, the comparison is performed not in units of one character but in units of a fixed-length format, so that a stain can be eliminated.

【0016】また、日付欄の1行ごとを走査して得られ
るスキャンデータの中の“1”の画素数を1バイト単位
に副走査方向に加算し、各バイトの中の“1”の画素の
計数値が複数段階の値のいずれに該当するかを分類し、
分類結果に対して予め定めてある項タイプを割付けし、
その4項ごとの項タイプにより第1の比較印字パターン
を生成して、その第1の比較印字パターンを第1の基準
印字パターンと照合し、全ての4項の照合結果により第
2の比較印字パターンを生成し、その第2の比較印字パ
ターンを第2の基準印字パターンと照合し、一致するも
のがある場合は、当該行が印字あり行と判定することを
特徴としている。上記構成により、1行単位で書式の比
較を行うので、一層、高い精度で印字の有無を判定する
ことができる。
The number of "1" pixels in scan data obtained by scanning each row of the date column is added in the sub-scanning direction in units of one byte, and the "1" pixels in each byte are added. Classify which of the multi-level values corresponds to
Assign a predetermined term type to the classification result,
A first comparative print pattern is generated according to the item type of each of the four items, the first comparative print pattern is collated with the first reference print pattern, and a second comparative print pattern is produced based on the collation results of all four items. A pattern is generated, the second comparative print pattern is compared with a second reference print pattern, and if there is a match, the line is determined to be a line with print. According to the above configuration, the format is compared on a line-by-line basis, so that the presence / absence of printing can be determined with higher accuracy.

【0017】上記印字パターンは、各バイト画素カウ
ンタの値X1を2つの一定値a,b(a<b)と比較
し、X1≦aのときは“0”をセットし、b≦X1のと
きは“1”をセットし、a<X1<bのときは前記値X
1に次のバイト画素カウンタの値を足して、その値X2
が一定値c以上のときは“1”をセットし、前記値X2
が一定値c未満のときは前記値X2に順に次のバイト画
素カウンタの値を足して、その値X3が一定値(c+n
d:nは加算したバイト画素カウンタの数に従う値)以
上のときは“1”をセットし、加算しようとするバイト
画素カウンタの値Xiがa未満になったときは、“0”
をセットして、“1”又は“0”の組合せからなる1次
印字パターンを構成し、前記1次印字パターンの
“1”と“0”を圧縮して2次印字パターンを構成し、
前記2次印字パターンを基本印字パターンと比較し、
一致するものがある場合に、その行を印字あり行と判定
することを特徴としている。すなわち、1バイト単位の
黒ビット計数値X1が、“1”又は“0”と判定できる
一定値a以上でも、一定値b以下でもない、a<X1<
bのときは、すなわち、計数値が印字有無判断のグレイ
ゾーンにあるとき、当該バイトの次のバイトの黒ビット
数を加算し、その加算結果を一定値cと比較することに
より、当該バイトに文字成分があるか否かを判断し易く
なる。
In the printing pattern, the value X1 of each byte pixel counter is compared with two constant values a and b (a <b). When X1 ≦ a, “0” is set, and when b ≦ X1, Is set to "1", and when a <X1 <b, the value X is set.
1 is added to the value of the next byte pixel counter, and the value X2
Is greater than or equal to a constant value c, "1" is set, and the value X2
Is smaller than the fixed value c, the value of the next byte pixel counter is added to the value X2 in order, and the value X3 is set to a fixed value (c + n).
d: n is a value according to the number of byte pixel counters added). If the value is greater than or equal to “1”, “1” is set. If the value Xi of the byte pixel counter to be added becomes less than a, “0”
Is set to form a primary print pattern consisting of a combination of “1” or “0”, and the primary print pattern “1” and “0” are compressed to form a secondary print pattern,
Comparing the secondary print pattern with a basic print pattern,
When there is a match, the line is determined to be a line with printing. That is, the black bit count value X1 in 1-byte units is neither equal to or greater than a constant value a that can be determined to be “1” or “0”, and not less than a constant value b.
In the case of b, that is, when the count value is in the gray zone of the print presence / absence determination, the number of black bits of the byte next to the byte is added, and the addition result is compared with a constant value c, so that It is easy to determine whether or not there is a character component.

【0018】[0018]

【発明の実施の形態】次に、本発明の実施の形態につい
て、図1ないし図21を参照して説明する。図1は、本
発明方法を実施するために使用される主要構成を示すブ
ロック図、図2は日付欄の縦区分と各区分の走査の関係
をイメージ的に示す概念図、図3は1行分の走査により
得られるスキャンデータの格納を説明する模式図、図4
は1バイトごとの黒ビット数を24走査分(縦に)加算
して格納する動作を説明する模式図、図5は各縦区分の
黒ビット数のパターン化を説明する模式図、図6は本発
明方法の基本的動作を説明するフローチャートである。
プリンタの基本的構成自体は、従来と変わらないので、
プリンタの構成に関わる説明においては、図23を参照
する。
Next, an embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a block diagram showing a main configuration used to carry out the method of the present invention, FIG. 2 is a conceptual diagram schematically showing a relationship between a vertical section of a date column and scanning of each section, and FIG. FIG. 4 is a schematic diagram for explaining storage of scan data obtained by scanning for minutes.
Is a schematic diagram for explaining the operation of adding the number of black bits for each byte for 24 scans (vertically) and storing it, FIG. 5 is a schematic diagram for explaining the patterning of the number of black bits in each vertical section, and FIG. 5 is a flowchart illustrating a basic operation of the method of the present invention.
Since the basic configuration of the printer itself is the same as before,
FIG. 23 is referred to in the description related to the configuration of the printer.

【0019】本発明方法を実施するため、図1に示すよ
うに、図23のプリンタ1のOSU(ラインセンサ7及
びセンサ制御部25)に、OSUにより日付欄の読取り
範囲に対応して出力されるスキャンデータを格納するた
めのバッファメモリ31と、1行分の走査(24回)を
終了した後に、バッファメモリに格納されたスャンデー
タを各走査分ごとに1バイト単位で、1〜28バイトま
で順次読出し、28バイトに個々に対応して設けられた
出力端子から出力する読出し部32と、読出し部の各出
力端子に接続され、その出力端子に出力される1バイト
のスキャンデータに含まれる黒ビットを計数し、加算累
積する28個のバイト画素カウンタ331 ,332 ,〜
3328と、各バイト画素カウンタの計数値を取り込んで
格納する項値バッファ34と、格納された各縦区分の黒
ビット総数が予め設定されている範囲のビット数からな
る複数段階の分類のいずれに該当するかにより、当該分
類について予め定めてある4ビット2進数で構成された
項タイプに変換する変換部35と、前記複数段階の分類
とこれに対応する前記4ビット構成の項タイプを記憶し
ている第1テーブル36と、前記変換部から出力された
項タイプ(パターン)を前記縦区分の数(28)に対応
して記憶する項タイプバッファ37と、各区分に実際に
印字がある場合のパターンを基準印字パターンとして格
納している第2テーブル38と、前記項タイプバッファ
に格納された各縦区分に対応する項タイプ(パターン)
を読出して前記第2テーブル38に記憶されている基準
印字パターンと照合し、一致するものがあるか否かによ
り、印字あり行と判定し又は印字なし行と判定して判定
結果を出力する比較部39とを有している。
In order to carry out the method of the present invention, as shown in FIG. 1, the OSU (line sensor 7 and sensor control unit 25) of the printer 1 shown in FIG. After the scan (24 times) for one row is completed, the scan data stored in the buffer memory is stored in the buffer memory 31 for storing 1-28 bytes in units of 1 byte for each scan. A read section 32 for sequentially reading and outputting from output terminals provided corresponding to 28 bytes individually, and black included in 1-byte scan data connected to each output terminal of the read section and output to the output terminal. 28 byte pixel counters 33 1 , 33 2 ,.
33 28, and Kochi buffer 34 for storing capture the count value of each byte pixel counter, any class of a plurality of stages consisting of the number of bits ranges black total number of bits of each vertical segment stored is set in advance The conversion unit 35 converts the classification into a predetermined term type composed of a 4-bit binary number, and stores the multi-stage classification and the corresponding 4-bit term type according to A first table 36, a term type buffer 37 for storing the term type (pattern) output from the conversion unit in correspondence with the number (28) of the vertical sections, and each section is actually printed. A second table 38 storing the pattern of the case as a reference print pattern, and a term type (pattern) corresponding to each vertical section stored in the term type buffer
And compares it with the reference print pattern stored in the second table 38, and determines whether or not there is a match, and determines whether it is a line with printing or a line without printing and outputs a determination result. And a portion 39.

【0020】本発明方法は、図1に示された上記構成要
素を用いて、図6に示すような基本的動作を行う。すな
わち、ラインセンサにより走査して得られるスキャンデ
ータを一時格納する工程(R1)と、得られたスキャン
データの1バイトごとに黒ビットを計数し、スキャンデ
ータの1バイトごとの黒ビットの計数値を24走査分
(1行分)加算して、横1バイト、縦24走査を単位と
する各縦区分の黒ビットの計数値を得る工程(R2)
と、得られた計数値を予め設定した複数の分類基準に従
って分類する工程(R3)と、分類結果に応じてパター
ン化する工程(R4)と、得られた印字パターンを印字
あり行の場合の基準印字パターンと比較し、比較の結果
に基づいて印字の有無を判定する工程(R5)とをこの
順序で行う。以下に、各工程を順次、詳細に説明する。
The method of the present invention performs the basic operation as shown in FIG. 6 using the above-mentioned components shown in FIG. That is, a step (R1) of temporarily storing scan data obtained by scanning with a line sensor, counting the number of black bits for each byte of the obtained scan data, and counting the number of black bits for each byte of the scan data. Is added for 24 scans (for one row) to obtain a count value of black bits in each vertical section in units of 1 horizontal byte and 24 vertical scans (R2)
A step (R3) of classifying the obtained count values according to a plurality of preset classification criteria, a step (R4) of patterning according to the classification result, and a step of The step (R5) of comparing with the reference print pattern and determining the presence or absence of printing based on the result of the comparison is performed in this order. Hereinafter, each step will be sequentially described in detail.

【0021】[スキャンデータの取込み(図6のR
1)]OSUがラインセンサ7の1走査において出力す
る1024ビットのうち、日付欄に対応する範囲のみか
ら224ビット(28バイト)分のスキャンデータが取
込まれ、1バイトごとに対応してバッファメモリ31の
所定番地の記憶エリアに格納されることは、従来と同様
である。そして、1行の日付欄は24回走査されるの
で、バッファメモリ31には、図3に示すように、第1
走査目から第24走査目までのスキャンデータ(d10〜
d127 ,d20〜d227 ,……,d240 〜d2427)が格納
される。バッファメモリ31には、図4に例示するよう
に、ラインセンサ7から入力する8ビット(1バイト)
の受光量の多少に応じて“1”又は“0”で表される2
値画素データで格納されている。
[Capture of scan data (R in FIG. 6)
1)] Of the 1024 bits output by the OSU in one scan of the line sensor 7, scan data of 224 bits (28 bytes) is fetched only from the range corresponding to the date column and buffered for each byte. It is stored in the storage area at a predetermined address of the memory 31 as in the conventional case. Since the date column of one line is scanned 24 times, the first line is stored in the buffer memory 31 as shown in FIG.
Scan data from the scan to the 24th scan (d10 to
d127, d20 to d227,..., d240 to d2427) are stored. As illustrated in FIG. 4, the buffer memory 31 has 8 bits (1 byte) input from the line sensor 7.
2 represented by “1” or “0” depending on the amount of received light
It is stored as value pixel data.

【0022】[1バイトごとの黒ビットの加算(図6の
R2)]スキャンデータの取込みを終了すると、読出し
部32がバッファメモリ31から第1走査によるスキャ
ンデータを第1バイトから第28バイトまで、1バイト
ごと順次読出し、各1バイトのスキャンデータに含まれ
る黒ビットをそれぞれ第1バイト画素カウンタ331
ら第28バイト画素カウンタ3328により計数する。第
1走査によるスキャンデータに対する黒ビットの計数が
終了すると、続いて、第2走査によるスキャンデータの
各バイトに含まれる黒ビットを、それぞれ前記第1バイ
ト画素カウンタ331 から第28バイト画素カウンタ3
28により計数し、加算する。以下、同様にして、第2
4走査によるスキャンデータまで、第1バイトから第2
8バイトについて1バイトごとに黒ビットの数を、第1
バイト画素カウンタ331 から第28バイト画素カウン
タ3328により計数・加算を行い、1行分の第1バイト
から第28バイトまでのそれぞれの黒ビットの総数が、
項値バッファ34に、そのポインタにより指定される番
地(28) 〜(1) の記憶エリアに格納される。項値バッフ
ァ34の各記憶エリアに格納された黒ビットの数を項値
という場合がある。すなわち、日付欄の各縦区分の黒ビ
ット数が、項値バッファ34に、図4に例示するよう
に、0,5,20,30〜55,15と格納される。
[Addition of Black Bit for Each Byte (R2 in FIG. 6)] When the fetching of the scan data is completed, the reading unit 32 transfers the scan data by the first scan from the buffer memory 31 to the first to 28th bytes. It is counted by the read sequentially by one byte, the first byte pixel counter 33 respectively 1 black bits included in the scan data for each 1 byte 28 byte pixel counter 33 28. When the count of the black bits for scan data according to the first scan ends, followed by the black bits contained in each byte of the scan data according to the second scan, each of the first byte pixel counter 33 1 from the first 28 bytes pixel counter 3
3. Count and add according to 28 . Hereinafter, similarly, the second
From the first byte to the second
For 8 bytes, the number of black bits per byte
Counts the number-add bytes pixel counter 33 1 by the 28 byte pixel counter 33 28, the total number of the respective black bits from the first byte of one row to the 28th byte,
The item value buffer 34 stores the data in the storage areas at addresses (28) to (1) specified by the pointer. The number of black bits stored in each storage area of the term value buffer 34 may be referred to as a term value. That is, the number of black bits in each vertical section of the date column is stored in the term value buffer 34 as 0, 5, 20, 30 to 55, 15 as illustrated in FIG.

【0023】縦区分ごとの黒ビットの計数は、次のよう
に行うこともできる。すなわち、スキャンデータ取込み
の終了後、読出し部32がバッファメモリ31から第1
走査におけるスキャンデータ(224ビット)の中の第
1バイトのデータ(d10)を第1バイト画素カウンタ3
1 に入力して黒ビットを計数し、次に、第2走査にお
けるスキャンデータの第1バイトのデータ(d20)を第
1バイト画素カウンタ331 に入力して黒ビットを計数
累積し、以下同様に、第24走査における第1バイトの
データ(d240 )を第1カウンタ331 に加算・累積し
て、1行分の第1バイトの黒ビットの総数を計数して、
その計数値を項値バッファ34に、そのポインタにより
指定される番地(28)の記憶エリアに格納する。図4の
例では、最初の縦区分の黒ビットの数(項値)は0であ
る。続いて、読出し部32がバッファメモリ31から第
1走査におけるスキャンデータの中の第2バイトのデー
タ(d11)を第2バイト画素カウンタ331 に入力して
黒ビットを計数し、次に、第1バイトのデータについて
行ったのと同様にして、1行分の第2バイトのデータ
(d11,d21,…d241 )の黒ビットの総数を計数し
て、その計数値を項値バッファ34に、そのポインタに
より指定される番地(27)の記憶エリアに格納する。図
4の例では、2番目の縦区分の黒ビットの数(項値)は
5である。以下、同様に、バッファメモリ31に格納さ
れている各走査におけるスキャンデータの中の第3バイ
トから第28バイトまで(d12,d22,d242 ;〜d12
7,d227 〜d2427)のそれぞれ1行分の黒ビットを計
数し、その計数値をそれぞれ項値バッファ34に、その
ポインタにより指定された番地の記憶エリアに格納す
る。このようにして、項値バッファ34に、日付欄の各
縦区分の黒ビット数が、図4に例示するように、0,
5,20,30〜55,15と格納される。
The counting of black bits for each vertical section can also be performed as follows. That is, after the end of the scan data capture, the read unit 32 reads the first data from the buffer memory 31.
The first byte data (d10) of the scan data (224 bits) in the scan is used as the first byte pixel counter 3
3 counts the black bits are input to 1, then the black bits counted cumulative enter the first byte of data in the scan data in the second scan (d20) to the first byte pixel counter 33 1, below Similarly, the first byte of data (D240) in the 24 scan addition and cumulatively to the first counter 33 1, by counting the total number of black bits of the first byte of one line,
The count value is stored in the term value buffer 34 in the storage area of the address (28) designated by the pointer. In the example of FIG. 4, the number (term value) of black bits in the first vertical section is zero. Subsequently, by counting the black bits by input from the reading unit 32 is a buffer memory 31 the data of the second byte in the scan data in the first scanning (d11) to the second byte pixel counter 33 1, then the In the same way as for one byte of data, the total number of black bits of the second byte data (d11, d21,... D241) for one row is counted, and the counted value is stored in the term value buffer 34. The data is stored in the storage area at the address (27) specified by the pointer. In the example of FIG. 4, the number (term value) of black bits in the second vertical section is 5. Hereinafter, similarly, from the third byte to the 28th byte of the scan data in each scan stored in the buffer memory 31, (d12, d22, d242; to d12)
7, d227 to d2427) are counted for one row, and the counted values are respectively stored in the term value buffer 34 in the storage area of the address designated by the pointer. In this way, in the term value buffer 34, the number of black bits in each vertical section of the date column is set to 0, 0, as illustrated in FIG.
5, 20, 30 to 55, 15 are stored.

【0024】上記スキャンデータの取込み(R1)及び
黒ビットの縦加算(R2)は、上述のように、ハードウ
ェアにより実現される。続いて、そのハードウェアの別
の実施例を、図7及び図8の図面を参照して説明する。
図7は判定装置のブロック構成図、図8は同判定装置の
動作タイミングを示すタイミングチャートである。
The capture of scan data (R1) and the vertical addition of black bits (R2) are realized by hardware as described above. Subsequently, another embodiment of the hardware will be described with reference to the drawings of FIGS.
FIG. 7 is a block diagram of the determination device, and FIG. 8 is a timing chart showing operation timing of the determination device.

【0025】図7において、OSUは例えば1024ビ
ットの読取り能力を有するCCD群で構成されたライン
センサ7を用いる光学読取装置であり、図24における
挿入検知器2aからの通帳挿入検知信号に基づき、搬送
部23に搬送を開始させ、これにより先端検知器6が通
帳の先端を検知した時点から所定ステップ数搬送された
時に、CPUはOSUに対して走査を開始させるための
信号(OSU ON) を出力するとともに、同信号を第1カウ
ンタCTUに出力するようになっている。
In FIG. 7, an OSU is an optical reading device using a line sensor 7 constituted by a CCD group having a reading capability of, for example, 1024 bits. Based on a passbook insertion detection signal from an insertion detector 2a in FIG. When the conveyance unit 23 starts conveyance, and when the front end detector 6 detects the front end of the passbook and is conveyed by a predetermined number of steps, the CPU sends a signal (OSU ON) to the OSU to start scanning. And outputs the same signal to the first counter CTU.

【0026】第1カウンタCT1は、OSUが出力する
1024ビットのスキャンデータ(IMG )の中から、日
付欄に対応する224ビットの一走査分の有効スキャン
データのみを切出すためのものであり、CPUから与え
られる基本クロック(SCLK)を計数し、その計数値がCP
UからバスB1を介して設定されている取込開始指定値
と一致した時から取込停止指定値と一致する時までの
間、Q1出力信号を出力して、アンドゲート&Gを開放
させる。そして、アンドゲート&Gは、開放している間
にOSUが出力するスキャンデータをシリアルパラレル
変換回路SPCに入力する。シリアルパラレル変換回路
SPCは、8ビットのシリアルデータを入力するたびに
これをパラレルデータに変換して出力する。タイミング
生成回路TGは、Q1出力信号を入力してから8ビット
のデータがアンドゲート&Gを通過するに必要なクロッ
クパルスを入力した時点に、第1ラッチ回路L1にラッ
チ信号(LAT1)を与えるため、シリアルパラレル変換回
路SPが出力する8ビットのパラレルデータを、次の8
ビットのシリアルデータがシリアルパラレル変換回路S
PCに入力されるまでの一定時間(例えば8μS)、保
持するようになっている。
The first counter CT1 is for extracting only 224 bits of effective scan data corresponding to a date column from 1024 bits of scan data (IMG) output from the OSU. The basic clock (SCLK) supplied from the CPU is counted, and the counted value is CP.
From the time when the signal U matches the designated value of the start of capture set via the bus B1, the time when the value coincides with the value of the designated capture stop, the Q1 output signal is output to open the AND gate & G. Then, the AND gate & G inputs the scan data output by the OSU to the serial / parallel conversion circuit SPC while the gate is open. The serial-to-parallel conversion circuit SPC converts 8-bit serial data into parallel data each time it is input and outputs the parallel data. The timing generation circuit TG supplies a latch signal (LAT1) to the first latch circuit L1 when a clock pulse necessary for 8-bit data to pass through the AND gate & G is input after inputting the Q1 output signal. The 8-bit parallel data output from the serial / parallel conversion circuit SP is converted into the next 8 bits.
Bit serial data is converted to a serial-parallel converter S
The data is held for a certain period of time (for example, 8 μS) until it is input to the PC.

【0027】タイミング生成回路TGは、CPUから与
えられる基本クロック(SCLK) に基づいて、各回路の動
作タイミングを設定するものであり、所定タイミングに
おいて第1ラッチ回路L1へのラッチ信号(LAT1)のほ
か、第2ラッチ回路L2へのラッチ信号(LAT2)、第1
ゲートG1への制御信号(DIR )、RAM22への読出
し/書込み切替信号(R/W) 、セレクタSEへの選択指令
信号(SEL )をそれぞれ生成して与え、また、アドレス
生成回路AGにそのアドレスの更新(−1)又はクリア
をさせる制御信号(UP-CLR)(CLR)を与えるものである。
The timing generation circuit TG sets the operation timing of each circuit based on the basic clock (SCLK) given from the CPU, and outputs the latch signal (LAT1) to the first latch circuit L1 at a predetermined timing. In addition, the latch signal (LAT2) to the second latch circuit L2, the first
A control signal (DIR) to the gate G1, a read / write switching signal (R / W) to the RAM 22, and a selection command signal (SEL) to the selector SE are generated and given, respectively. Control signal (UP-CLR) (CLR) for updating (-1) or clearing the data.

【0028】第2カウンタCT2は、第1ラッチ回路L
1に保持された8ビットのスキャンデータの中の黒ビッ
トを計数するカウンタであり、その計数値を8ビット2
進数の形式でバスB2に出力する。バスB2には、第2
カウンタCT2が出力する8ビットの計数値と8ビット
の数値拡張のためのダミデータとを合わせた16ビット
の計数値の加算ができるように、4ビット4個の加算器
ADD1 〜ADD4 の第1入力側が接続されている。ま
た、各加算器ADD1 〜ADD4 の第2入力側には、第
2ラッチ回路L2を介して第1ゲートG1の読出側が接
続されている。各加算器ADD1 〜ADD4 の出力側は
バスB3を介して第1ゲートG1の入力側に接続されて
いる。第1ゲートG1は双方向性のゲートであり、バス
B4を介してRAM22接続され、出力側は第2ラッチ
回路L2を介してバスB1に、入力側はバスB3に接続
されている。
The second counter CT2 includes a first latch circuit L
This is a counter that counts the number of black bits in the 8-bit scan data held at 1.
Output to the bus B2 in the form of a decimal number. The bus B2 has the second
First inputs of four 4-bit adders ADD1 to ADD4 so that a 16-bit count value obtained by adding an 8-bit count value output from the counter CT2 and 8-bit numerical data for numerical extension can be added. Side is connected. The second input side of each of the adders ADD1 to ADD4 is connected to the read side of the first gate G1 via the second latch circuit L2. The output side of each of the adders ADD1 to ADD4 is connected to the input side of the first gate G1 via a bus B3. The first gate G1 is a bidirectional gate, and is connected to the RAM 22 via the bus B4, the output side is connected to the bus B1 via the second latch circuit L2, and the input side is connected to the bus B3.

【0029】RAM22は、1バイトのスキャンデータ
の中の黒ビットの計数値を16ビット2進数の形式で1
走査分(28バイト)格納し得る記憶エリアを有してい
る。第2カウンタCT2が出力する新しい黒ビット計数
値と、RAMの所定番地の記憶エリアから読出した黒ビ
ット計数値とが、それぞれ加算器ADD1 〜ADD4に
おいて加算されて、新しい黒ビット累積計数値として、
同じ記憶エリアに格納されるように構成してある。黒ビ
ット計数値の累積加算とその結果の格納のため、タイミ
ング生成回路TGからRAMに読出し/書込み切替信号
(R/W) が与えられ、また、RAMから読出したデータが
バスB1方向に出力されるように第1ゲートG1を制御
したり、バスB3からRAM方向にデータが入力するよ
うに切り換えるための入出力方向制御信号(DIR )が与
えられるように構成されている。
The RAM 22 stores the count value of black bits in the 1-byte scan data in the form of a 16-bit binary number.
It has a storage area capable of storing scan data (28 bytes). The new black bit count value output from the second counter CT2 and the black bit count value read from the storage area at the predetermined address of the RAM are added in the adders ADD1 to ADD4, respectively, to obtain a new black bit cumulative count value.
It is configured to be stored in the same storage area. A read / write switching signal from the timing generation circuit TG to the RAM for cumulative addition of the black bit count value and storage of the result.
(R / W) for controlling the first gate G1 so that data read from the RAM is output in the direction of the bus B1 and for switching data to be input in the direction of the RAM from the bus B3. The input / output direction control signal (DIR) is provided.

【0030】また、RAMは、セレクタSEを介してア
ドレス生成回路AGと、CPUとに接続されている。ア
ドレス生成回路AGは、RAMに対してデータの書込み
又は読出しを行う際の記憶エリアを指定するためのもの
である。セレクタSEは、タイミング生成回路TGから
受ける選択指令信号(SEL) により、RAMとセレクタS
Eの間のアドレスバスB5をアドレスバスB6又はアド
レスバスB7に接続して、RAMにアドレス生成回路A
Gからのアドレスを与えたり、CPUからのアドレスを
与えたりするようになっている。
The RAM is connected to an address generation circuit AG and a CPU via a selector SE. The address generation circuit AG is for designating a storage area when writing or reading data to or from the RAM. The selector SE uses the selection command signal (SEL) received from the timing generation circuit TG to select the RAM and the selector S.
E, the address bus B5 is connected to the address bus B6 or the address bus B7, and the address generation circuit A is connected to the RAM.
An address from G or an address from CPU is provided.

【0031】第2ラッチ回路L2に保持されたデータ
は、第2ゲートG2が挿入されたデータバスB1を介し
てCPUに取込まれるようになっている。すなわち、第
2ゲートG2は、CPUからの読出指令信号により開放
され、CPUがセレクタSEを介してRAMに与えるア
ドレスにより指定された番地から黒ビット累積計数値を
読出し、これを第1ゲートG1及び第2ラッチ回路L2
を経てCPUに取込むことができる。
The data held in the second latch circuit L2 is taken into the CPU via the data bus B1 into which the second gate G2 has been inserted. That is, the second gate G2 is opened by a read command signal from the CPU, and the CPU reads the cumulative black bit count value from the address specified by the address given to the RAM via the selector SE, and reads this from the first gate G1 and the first gate G1. Second latch circuit L2
Through the CPU.

【0032】上記構成による作用を、図8の各構成要件
の動作を説明するタイミングチャートに基づいて説明す
る。CPUからの基本クロック (SCLK) は、一定の周期
(例えば1μs)をもって出力され、第1カウンタCT
1とタイミング生成回路TGに与えられる。第1カウン
タCT1からのQ1出力によりアンドゲート&Gが開放
されている間に、OSUが出力する1走査分のスキャン
データがシリアルパラレル変換回路SPCに入力され
る。そして、最初の1バイト(8ビット)のデータがシ
リアルパラレル変換回路SPCによりパラレルデータに
変換して出力され、その8ビット目がシリアルパラレル
変換回路SPCに入力し終わった時点にタイミング生成
回路TGが出力するラッチ信号LAT1が第1ラッチ回路L
1に与えられて、シリアルパラレル変換回路SPCから
のパラレルデータが所定時間保持され、その間に第2カ
ウンタCT2により、その8ビットのデータに含まれる
黒ビットが計数され、その計数値が8ビット2進数の形
式でバスB2に出力され、4個の4ビット加算器ADD
1 〜ADD4 に数値拡張のためのダミデータの“0”の
8ビットを付加した16ビットで入力される。
The operation of the above configuration will be described with reference to the timing chart of FIG. The basic clock (SCLK) from the CPU is output at a constant cycle (for example, 1 μs), and the first counter CT
1 and to the timing generation circuit TG. While the AND gate & G is opened by the Q1 output from the first counter CT1, scan data for one scan output from the OSU is input to the serial-parallel conversion circuit SPC. Then, the first 1-byte (8-bit) data is converted into parallel data by the serial / parallel conversion circuit SPC and output. When the eighth bit has been input to the serial / parallel conversion circuit SPC, the timing generation circuit TG outputs the data. The output latch signal LAT1 is the first latch circuit L
1, the parallel data from the serial / parallel conversion circuit SPC is held for a predetermined time, during which the second counter CT2 counts the number of black bits contained in the 8-bit data, and the counted value is 8 bits 2 Output to the bus B2 in hexadecimal notation and four 4-bit adders ADD
It is input as 16 bits by adding 8 bits of "0" of dummy data for numerical value extension to 1 to ADD4.

【0033】最初の8ビット目のスャンデータのシリア
ルパラレル変換回路SPCへの入力と同期して、タイミ
ング生成回路TGからアドレス生成回路AGにクリア信
号(CLR )が与えられて、RAMに対するアドレスが初
期化される。そして、その時点ではタイミング生成回路
TGがRAMに読出し/書込み切替信号(R/W) のうち、
読出し指令信号を与え、第1ゲートG1には出力側ゲー
トを能動化する制御信号(DIR)を与えているので、RA
Mのアドレス生成回路AGが出力するアドレスにより指
定された記憶エリアから、これに記憶されている累積計
数値(この時点では累積計数値は0である。)を読出し
て、第2ラッチ回路L2に出力する。今、第2ラッチ回
路L2には第2ラッチ信号(LAT2)が与えられているた
め、RAMから読出された累積計数値がバスB1を介し
て、加算器ADD1 〜ADD4 に入力される。この場
合、CPUのアドレスは、RAMのアドレス生成回路A
Gが出力するアドレスと符合している。
In synchronization with the input of the first 8-bit scan data to the serial / parallel conversion circuit SPC, a clear signal (CLR) is given from the timing generation circuit TG to the address generation circuit AG, and the address for the RAM is initialized. Is done. At that time, the timing generation circuit TG outputs the read / write switching signal (R / W) to the RAM.
Since a read command signal is given and a control signal (DIR) for activating the output side gate is given to the first gate G1, RA
The accumulated count value (the accumulated count value is 0 at this time) stored in the storage area designated by the address output from the M address generation circuit AG is read out to the second latch circuit L2. Output. Now, since the second latch signal (LAT2) is given to the second latch circuit L2, the accumulated count value read from the RAM is input to the adders ADD1 to ADD4 via the bus B1. In this case, the address of the CPU is the address generation circuit A of the RAM.
This matches the address output by G.

【0034】従って、加算器ADD1 〜ADD4 は、今
OSUから入力した最初の8ビット(第一8ビット)の
スキャンデータから得た拡張された16ビットの黒ビッ
ト計数値と、RAMから先の走査において得られ、格納
された第一8ビットのスキャンデータから得た黒ビット
計数値(16ビットのデータ)とを累積して、新しい累
積計数値を算出し、これをバスB3に出力する。この時
点になると、タイミング生成回路TGは読出し/書込み
切替信号(R/W) のうち、書込み指令信号をRAMに与
え、アドレス生成回路AGは、まだ同一のアドレスを出
力し、また、タイミング生成回路TGは第1ゲートG1
に入力側ゲートを能動化する制御信号(DIR)を与えてい
るので、加算器ADD1 〜ADD4 の新しい累積計数値
がRAMの所定番地の記憶エリアに格納される。
Therefore, the adders ADD1 to ADD4 provide the expanded 16-bit black bit count value obtained from the first 8 bits (first 8 bits) of the scan data input from the OSU and the previous scan data from the RAM. And a black bit count value (16-bit data) obtained from the stored first 8-bit scan data to calculate a new cumulative count value, which is output to the bus B3. At this time, the timing generation circuit TG gives the write command signal of the read / write switching signal (R / W) to the RAM, and the address generation circuit AG still outputs the same address. TG is the first gate G1
Is supplied with a control signal (DIR) for activating the input side gate, the new accumulated count value of the adders ADD1 to ADD4 is stored in the storage area at a predetermined address of the RAM.

【0035】この間には、OSUから第二8ビットのス
キャンデータが引き続きアンドゲート&Gを経てシリア
ルパラレル変換回路SPCに入力されており、その入力
を終了した時に、前回と同様に、第1ラッチ信号(LAT
1)によりそのパラレルデータがラッチされて、その中
に含まれる黒ビットが第2カウンタCT2により計数さ
れ、バスB2に出力されて、加算器ADD1 〜ADD4
に入力される。続いて、第一8ビットの場合と同様に、
RAMのアドレス生成回路AGが今出力しているアドレ
ス(更新されている)により指定された記憶エリアか
ら、これに記憶されている累積計数値(この時点では累
積計数値は0である。)を読出して、第2ラッチ回路L
2に出力する。今、第2ラッチ回路L2には第2ラッチ
信号(LAT2)が与えられているため、RAMから読出され
た累積計数値がバスB3を介して、加算器ADD1 〜A
DD4 に入力される。従って、加算器ADD1 〜ADD
4 は、今OSUから入力した第二8ビットのスキャンデ
ータから得た黒ビット計数値と、RAMから先の走査に
おいて得られ、格納された第一8ビットのスキャンデー
タから得た黒ビット計数値(16ビットのデータ)とを
累積して、新しい累積計数値を算出し、これをバスB3
に出力する。この時点になると、タイミング生成回路T
Gは読出し/書込み切替信号(R/W) のうち、書込み指令
信号をRAMに与え、アドレス生成回路AGは、まだ同
一のアドレスを出力し、また、タイミング生成回路TG
は第2ゲートG2に入力側ゲートを能動化する制御信号
を与えているので、加算器ADD1 〜ADD4 の新しい
累積計数値がRAMの所定番地の記憶エリアに格納され
る。
In the meantime, the second 8-bit scan data is continuously input from the OSU to the serial / parallel conversion circuit SPC via the AND gate & G, and when the input is completed, the first latch signal is output as in the previous case. (LAT
The parallel data is latched by 1), and the black bits contained therein are counted by the second counter CT2, output to the bus B2, and added to the adders ADD1 to ADD4.
Is input to Then, as in the case of the first 8 bits,
From the storage area specified by the address (updated) currently output by the address generation circuit AG of the RAM, the accumulated count value stored in this area (the accumulated count value is 0 at this time). Read out the second latch circuit L
Output to 2. Since the second latch signal (LAT2) is given to the second latch circuit L2, the cumulative count value read from the RAM is added to the adders ADD1 to ADD1 through the bus B3.
DD4. Therefore, the adders ADD1 to ADD
4 is a black bit count value obtained from the second 8-bit scan data input from the OSU, and a black bit count value obtained from the stored first 8-bit scan data obtained in the previous scan from the RAM. (16-bit data), and a new cumulative count value is calculated.
Output to At this point, the timing generation circuit T
G supplies a write command signal of the read / write switching signal (R / W) to the RAM, the address generation circuit AG still outputs the same address, and the timing generation circuit TG
Supplies a control signal for activating the input side gate to the second gate G2, so that the new accumulated count value of the adders ADD1 to ADD4 is stored in the storage area of the RAM at the predetermined address.

【0036】以後、OSUから入力する第三及び第四8
ビットのスキャンデータに対しても、前回と同様に、黒
ビットの計数値と、先の走査により取得されRAMに格
納されている累積計数値とを、加算器ADD1 〜ADD
4 により累積して、新しい累積計数値をRAMの所定番
地に格納する。
Thereafter, the third and fourth data input from the OSU 8
Similarly to the bit scan data, the black bit count value and the cumulative count value obtained by the previous scan and stored in the RAM are added to the adders ADD1 to ADD as in the previous case.
The new accumulated count value is stored in a predetermined address of the RAM by accumulating the data in step (4).

【0037】第1走査分の28バイト分の黒ビットの計
数及び計数値の格納を終了すると、第2走査分のスキャ
ンデータについても、前述と同様に、8ビットごとに黒
ビットが計数され、これが先の走査において得られた各
バイトの黒ビット数と加算記録され、24走査(1行
分)まで、同様に、各バイトごとの黒ビットの計数・累
積が行われる。
When the counting of the 28-bit black bits for the first scan and the storage of the count value are completed, the black bits of the scan data for the second scan are counted every 8 bits in the same manner as described above. This is added and recorded with the number of black bits of each byte obtained in the previous scan, and similarly, up to 24 scans (for one row), the counting and accumulation of black bits for each byte are similarly performed.

【0038】1行分の走査を終了した時は、タイミング
生成回路TGからセレクタSEに選択指令信号(SEL) が
与えられ、RAMとバスB7が結合されるので、CPU
はバスB6を介して、RAMに所定のアドレスを与え、
1行分の第1バイトから第28バイトまでのそれぞれの
黒ビット数、すなわち、日付欄の各縦区分に対応する黒
ビットの計数値を第1ゲートG1、第2ラッチ回路L2
及びバスB1を介してを図4の項値バッファ34に取込
む。項値バッファ34は、各1バイトのスキヤンデータ
の中の黒ビットの計数値が、項値賭して格納する28個
の記憶エリアを有し、記憶エリアの一端から他端までの
各エリアに当該エリアを指定する項数を有している。そ
の後は、CPUは、取込んだ黒ビットの計数値に対し
て、ソフトウェアにより、図6の値の分類処理(R
3)、パターン化(R4)、及び判定処理(R5)を行
う。引き続き、これらについて説明する。
When the scanning for one row is completed, a selection command signal (SEL) is given from the timing generation circuit TG to the selector SE, and the RAM and the bus B7 are connected.
Gives a predetermined address to the RAM via the bus B6,
The number of black bits from the first byte to the twenty-eighth byte of one row, that is, the count value of the black bits corresponding to each vertical section of the date column is stored in the first gate G1 and the second latch circuit L2.
And via the bus B1 to the term value buffer 34 of FIG. The term value buffer 34 has 28 storage areas in which the count value of black bits in each 1-byte scan data is stored by term-betting, and is stored in each area from one end to the other end of the storage area. It has the number of terms to specify the area. After that, the CPU performs the value classification processing (R
3), patterning (R4), and determination processing (R5). Subsequently, these will be described.

【0039】[項値の分類(図6のR3)]上記日付欄
の各縦区分における黒ビットの計数・格納を終了したな
らば、次に、項値バッファ34の各データ項目の値、す
なわち、項値の分類(上記各計数値の分類)が実行され
る。項値の分類とは、図9に例示するように、一定単位
量、例えば1バイト、のスキャンデータの中に含まれる
黒ビットの数が、多い、少ないに応じて予め段階的に設
定した複数の範囲のいずれに該当するかにより、該当す
る範囲について予め定めた、相互に識別できる項タイプ
を付して分類することである。本実施例においては、図
9に示すように、予め段階的に設定した複数の範囲を黒
ビット数が0〜2、3〜9,10〜25,26〜31,
32〜79,80以上の6段階に設定し、それぞれに対
応する項タイプを「0」「3」「6」「7」「E」
「F」と定めている。そして、それぞれの項タイプは演
算処理上は、4ビット2進数、すなわち、0000,0011,
0110,0111,1110,1111で表される。黒ピット数が32
未満のときは最上位ビットが“0”、32以上のときは
最上位ビットが“1”となるように、項タイプを決定し
てある。印字される文字が普通の英数字の書体である場
合は、32が文字成分の有無判定の基準とすることがで
きると思われるからである。しかし、「−」(ハイフ
ン)と「.」(ピリオド)の場合は、32未満が文字成
分の有無判定の基準になる。図1の第1テーブル36に
は、上記6段階の黒ビット数と、それぞれに対応する項
タイプとが記憶されている。
[Classification of Item Value (R3 in FIG. 6)] After counting and storing the black bits in each vertical section of the date column, the value of each data item in the item value buffer 34, that is, , And the classification of the term values (the classification of the respective count values) is executed. As shown in FIG. 9, the term value classification refers to a plurality of black values included in scan data of a fixed unit amount, for example, 1 byte, which are set in advance stepwise according to whether the number of black bits is large or small. Is classified by attaching a mutually identifiable item type predetermined for the corresponding range according to which of the ranges falls. In the present embodiment, as shown in FIG. 9, a plurality of ranges set in advance in a stepwise manner have black bit numbers of 0 to 2, 3 to 9, 10 to 25, 26 to 31,
32 to 79,80 or more are set in 6 stages, and the corresponding item types are “0”, “3”, “6”, “7”, “E”
"F". Then, each term type is a 4-bit binary number, that is, 0000, 0011,
It is represented by 0110, 0111, 1110, 1111. 32 black pits
The term type is determined so that the most significant bit is "0" when the value is less than 32, and "1" when the value is 32 or more. This is because if the character to be printed is a normal alphanumeric typeface, it is considered that 32 can be used as a reference for determining the presence or absence of a character component. However, in the case of "-" (hyphen) and "." (Period), a value less than 32 is a criterion for determining the presence or absence of a character component. The first table 36 in FIG. 1 stores the above-described six-stage black bit numbers and the corresponding item types.

【0040】次に、項値の分類の処理手順を、図10,
図11のフローチャートに基づいて説明する。図10は
項値の分類の処理手順の一部を示し、図11はその残部
を示す。項値の分類のルーチン(R3)を実行するに
は、CPU20により、図1の項値バッファ34、変換
部35、第1テーブル36及び項タイプバッファ37が
用いられる。項値の分類をする際は、まず、項値バッフ
ァ34から読出すべき記憶エリアの位置を特定するた
め、項値バッファ34の先頭ポインタが設定され(p
1)、続いて、項タイプバッファ37のデータを格納す
べき記憶エリアの位置を特定するため、項タイプバッフ
ァ37の先頭ポインタが設定される(p2)。そして、
分類処理回数をカウントするための、ソフトウェアのダ
ウンカウンタで構成されている項数カウンタ(不図示)
に両バッファの項数を設定する(p3)。本実施例では
各バッファは通帳の日付欄の1行分の28個の縦区分に
対応する28項分の記憶エリアを用い、また、1項に対
する分類処理が終了するたびに項数カウンタがダウンカ
ウントするので、最初は、項数は最大値である「28」
と設定される。
Next, the processing procedure of the classification of the term values will be described with reference to FIG.
This will be described with reference to the flowchart of FIG. FIG. 10 shows a part of the processing procedure for classifying the item values, and FIG. 11 shows the rest. To execute the term value classification routine (R3), the CPU 20 uses the term value buffer 34, the conversion unit 35, the first table 36, and the term type buffer 37 in FIG. When classifying the term values, first, the head pointer of the term value buffer 34 is set to specify the position of the storage area to be read from the term value buffer 34 (p
1) Subsequently, the head pointer of the term type buffer 37 is set to specify the position of the storage area where the data of the term type buffer 37 is to be stored (p2). And
A term counter (not shown) composed of a software down counter for counting the number of classification processes
Is set to the number of terms in both buffers (p3). In this embodiment, each buffer uses a storage area for 28 items corresponding to 28 vertical sections of one line in the date column of the passbook, and the item number counter is decremented every time the classification process for one item is completed. At first, the number of terms is the maximum value "28"
Is set.

【0041】次に、分類を終了したか否かを、前記項数
カウンタの値(項数)が0か否かにより判断する(p
4)。今は、分類を開始した直後であるので、判断結果
は否定(No)となり、項値バッファ34の先に設定さ
れた先頭ポインタに対応する記憶エリアから項値を取得
する(p5)。そして、その項値が0か否かを判定し
(p6)、肯定(YES)の場合は、変換部35により
第1テーブル36を参照して、項値0に対応する項タイ
プ「0」に変換されて、格納の準備がされる(p7)。
続いて、その項タイプが項タイプバッファ37の先に設
定された先頭ポインタに対応する記憶エリアに格納され
る(p8)。これにより、項値バッファの先頭ポインタ
に対する分類が終了する。
Next, it is determined whether or not the classification is completed based on whether or not the value (number of items) of the item number counter is 0 (p
4). Since the classification has just started, the determination result is negative (No), and the term value is obtained from the storage area corresponding to the head pointer set earlier in the term value buffer 34 (p5). Then, it is determined whether or not the item value is 0 (p6), and in the case of affirmative (YES), the conversion unit 35 refers to the first table 36 to change the item type to “0” corresponding to the item value 0. It is converted and prepared for storage (p7).
Subsequently, the item type is stored in the storage area corresponding to the head pointer set earlier in the item type buffer 37 (p8). This completes the classification for the head pointer of the term value buffer.

【0042】先頭ポインタに対する分類を終了すると、
次に、項値バッファのポインタが更新(−1)され(p
9)、同様に、項タイプバッファのポインタも更新され
る(p10)とともに、項数カウンタの項数も更新(−
1)されて(p11)、ステップp4に移行する。
When the classification for the head pointer is completed,
Next, the pointer of the term value buffer is updated (−1) (p
9) Similarly, the pointer of the term type buffer is also updated (p10), and the number of terms of the term number counter is also updated (−).
1) Performed (p11), and proceed to step p4.

【0043】ステップp6において項値が0でない場合
は、ステップp12に移行して、その項値が80以上か
否かが判定される。肯定(Y)の場合は、変換部35に
より第1テーブル36を参照して、項値80以上に対応
する項タイプ「F」に変換され(p13)、続いて、ス
テップ8に移行し、その項タイプが項タイプバッファ3
7の先に設定されたポインタに対応する記憶エリアに格
納された後、前述と同様に、ステップ9,10,11に
おいて項値バッファ34及び項タイプバッファ37のポ
インタの更新(p9,p10)、並びに項数カウンタの
項数の更新(p11)がされた後、ステップp4に戻
る。
If the term value is not 0 at step p6, the process proceeds to step p12, and it is determined whether the term value is 80 or more. If the determination is affirmative (Y), the conversion unit 35 refers to the first table 36 and converts the term type to “F” corresponding to a term value of 80 or more (p13). Term type is term type buffer 3
7, the pointers in the term value buffer 34 and the term type buffer 37 are updated (p9, p10) in steps 9, 10, and 11, as described above. After the number of items of the item number counter is updated (p11), the process returns to step p4.

【0044】また、ステップp12における判定結果が
否定(N)の場合はステップp14に移行して、項値バ
ッファ34から取得した項値が32以上か否かが判定さ
れる。肯定(Y)の場合は、項値32以上に対応する項
タイプ「E」に変換され(p15)、ステップp8に移
行し、その後は前述と同様の処理がなされる。ステップ
p14における判定結果が否定(N)の場合はステップ
p16(図11)に移行して、項値が26以上か否かが
判定され、肯定(Y)の場合は、項値26以上に対応す
る項タイプ「7」に変換され(p17)た後、ステップ
p8に移行する。ステップp16における判定結果が否
定(N)の場合はステップp18に移行して、項値が1
0以上か否かが判定され、肯定(Y)の場合は、項値1
0以上に対応する項タイプ「6」に変換され(p1
9)、ステップp8に移行する。ステップp18におけ
る判定結果が否定(N)の場合はステップp20に移行
して、項値が3以上か否かが判定され、肯定(Y)の場
合は、項値3以上に対応する項タイプ「3」に変換され
(p21)、ステップp8に移行する。否定(N)の場
合は、項タイプ「0」に変換され(p22)、ステップ
p8に移行する。
On the other hand, if the decision result in the step p12 is negative (N), the process shifts to a step p14 to decide whether or not the term value acquired from the term value buffer 34 is 32 or more. In the case of affirmative (Y), it is converted to the term type "E" corresponding to the term value of 32 or more (p15), the process proceeds to step p8, and thereafter, the same processing as described above is performed. If the determination result in step p14 is negative (N), the process proceeds to step p16 (FIG. 11), and it is determined whether the term value is 26 or more, and if affirmative (Y), it corresponds to the term value 26 or more. After being converted to the term type “7” (p17), the process proceeds to step p8. If the determination result in step p16 is negative (N), the process proceeds to step p18, where the term value is 1
It is determined whether it is 0 or more, and if affirmative (Y), the item value 1
Is converted to the term type “6” corresponding to 0 or more (p1
9) The process proceeds to Step p8. If the determination result in step p18 is negative (N), the process proceeds to step p20, where it is determined whether the term value is 3 or more. If affirmative (Y), the term type corresponding to the term value 3 or more “ 3 "(p21), and the routine goes to Step p8. If not (N), it is converted to the term type "0" (p22), and the routine goes to Step p8.

【0045】ステップp11における項数カウンタの項
数の更新の結果、項数が0となった時は、ステップ4に
おいて分類終了と判定されて、図6のメインフローに戻
る。
When the number of terms in the term number counter is updated to 0 in step p11, the classification is determined to be completed in step 4, and the process returns to the main flow of FIG.

【0046】以上のようにして、図5に例示するよう
に、項値バッファ34に格納された1行分の28個の縦
区分における黒ビット数が、数の大小に応じて6段階に
分類され、それぞれの段階について予め設定された項タ
イプに変換され、各項タイプが4ビット2進数に表され
て、項タイプバッファ37に格納される。
As described above, as shown in FIG. 5, the number of black bits in 28 vertical sections for one row stored in the term value buffer 34 is classified into six levels according to the magnitude of the number. Then, each term is converted to a preset term type, and each term type is represented as a 4-bit binary number and stored in the term type buffer 37.

【0047】項タイプバッファ37に格納された1〜2
8項分の項タイプは、それ自身、個々に又は全体で、通
帳の日付欄の28個の縦区分における印字位置を表す一
種の印字パターンを構成している。従って、実際に印字
がある場合の各種の4ビット2進数又はその組合わせか
らなる印字パターンを基準印字パターンとして、第2テ
ーブル38に用意しておき、1行の走査が終了するたび
に、そのスキャンデータに対応する比較印字パターンを
前記基準印字パターンと照合し、一致する時に、その行
は印字あり行と判定することが可能である。しかし、項
タイプバッファ37には、黒ビット数(項値)を6段階
に分類した場合の該当分類を各項に4ビット2進数で、
全部で28項分記憶されている。そして、該当分類の段
階が雑多に表されているので、パターン同士の照合判定
が繁雑である。また、一つの項タイプごとに、すなわ
ち、1文字単位で基準印字パターンと照合する方法は、
媒体の印字がなく、汚点を読取った場合も、印字ありと
誤判定する恐れがある。そこで、本発明の好ましい実施
例では、項値の分類(R3)に引き続いて、項タイプバ
ッファ37に格納された項タイプを照合判定を単純化で
きる構成の第2の比較印字パターンに変換するパターン
化処理(R4)を行っている。
1 and 2 stored in the term type buffer 37
The eight item types, individually or as a whole, constitute a kind of print pattern representing the print positions in the 28 vertical sections of the date column of the passbook. Therefore, a print pattern consisting of various 4-bit binary numbers or a combination thereof when there is actually printing is prepared in the second table 38 as a reference print pattern, and every time scanning of one line is completed, the print pattern is prepared. The comparison print pattern corresponding to the scan data is compared with the reference print pattern, and when they match, the line can be determined as a line with print. However, in the term type buffer 37, when the number of black bits (term value) is classified into six levels, the corresponding classification is represented by a 4-bit binary number for each term.
A total of 28 items are stored. Since the stages of the corresponding classification are variously represented, the collation determination between the patterns is complicated. In addition, the method of matching the reference print pattern for each item type, that is, for each character, is as follows.
Even when the medium is not printed and a blot is read, there is a possibility that the medium is erroneously determined to be printed. Therefore, in the preferred embodiment of the present invention, following the term value classification (R3), the term type stored in the term type buffer 37 is converted into a second comparative print pattern having a configuration capable of simplifying collation determination. (R4).

【0048】[パターン化処理(図6のR4)]続い
て、パターン化処理について、図12及び図13〜17
を参照しながら説明する。図12はパターン化の概念
図、図13〜17は、一つのフローチャートの部分図で
ある。パターン化処理を行う場合は、RAM22の中
に、図1のバッファメモリ31、項値バッファ34及び
項タイプバッファ37のほかに、図12に示すように、
パターン化要素バッファ40が設けられる。パターン化
要素バッファ40は7バイト分の格納エリア(*1〜*
7)を有している。そして、日付欄の各縦区分に対して
4ビット構成のデータ(項タイプ)を記憶している項タ
イプバッファ37の4項分(16ビット、すなわち、2
バイト)ごとに一つのパターン化要素に変換して、バッ
ファ40の各格納エリアに記憶するようにしてある。パ
ターン化要素とは、印字ありの場合の4ビットの基準印
字パターンに該当するか否かにより“1”“0”の2値
で表す場合の“1”又は“0”である。また、第2テー
ブル38には、このパターン化処理を行う場合に、印字
ありの場合の各種の第2の基準印字パターンが予め格納
されている。第2の基準印字パターンは、上記図7及び
図8に示した実施例により、ANK英数字が実際に印字
された場合の日付欄を走査した場合に得られた黒ビット
の計数値に基づいて、パターン化して得られた印字あり
の場合のパターンであり、図18,19に示すようなも
のがある。なお、第2テーブル38の各項に対応する記
憶エリアの中のパターンのデータは、4ビット2進数で
構成されているが、図18,19には、解り易くするた
め、10進数で表されている。また、第2の基準印字パ
ターンは、日付の印字に用いられる文字の書体により多
少異なる。
[Patterning Process (R4 in FIG. 6)] Next, the patterning process will be described with reference to FIGS.
This will be described with reference to FIG. FIG. 12 is a conceptual diagram of patterning, and FIGS. 13 to 17 are partial views of one flowchart. When the patterning process is performed, in addition to the buffer memory 31, the term value buffer 34, and the term type buffer 37 of FIG.
A patterning element buffer 40 is provided. The patterning element buffer 40 has a storage area of 7 bytes (* 1 to *
7). Then, for each vertical section of the date column, four items (16 bits, that is, 2 bits) of the item type buffer 37 storing 4-bit data (item type) are stored.
Each byte is converted into one patterning element and stored in each storage area of the buffer 40. The patterning element is "1" or "0" when represented by binary "1" or "0" depending on whether or not the pattern corresponds to a 4-bit reference print pattern when printing is performed. Further, when performing the patterning process, various second reference print patterns when printing is performed are stored in the second table 38 in advance. The second reference print pattern is based on the black bit count value obtained by scanning the date field when ANK alphanumeric characters are actually printed according to the embodiment shown in FIGS. 18 and 19 are patterns obtained with pattern printing and include patterns as shown in FIGS. The data of the pattern in the storage area corresponding to each item of the second table 38 is constituted by a 4-bit binary number. However, in FIGS. 18 and 19, the data is represented by a decimal number for easy understanding. ing. Further, the second reference print pattern is slightly different depending on the typeface of characters used for printing the date.

【0049】パターン化処理においては、まず、前記パ
ターン化要素バッファ40の格納エリアがクリアされ
(p23)、次に項タイプバッファ37から読み出すべ
き格納エリアを指定するため、項タイプバッファ37の
ポインタが先頭ポインタに設定される(p24)。そし
て、パターン化処理のための項タイプのチェック回数を
カウントするための、ソフトウェアのダウンカウンタで
構成されている項数カウンタ(不図示)に両バッファの
項数を設定する(p25)。本実施例では項タイプバッ
ファ37は28項分の記憶エリアを用いるので、項数は
最大値である「28」と設定される。
In the patterning process, first, the storage area of the patterning element buffer 40 is cleared (p23). Then, in order to specify the storage area to be read from the term type buffer 37, the pointer of the term type buffer 37 is set. It is set to the head pointer (p24). Then, the number of items in both buffers is set to an item number counter (not shown) configured by a software down counter for counting the number of checks of the item type for the patterning process (p25). In this embodiment, since the term type buffer 37 uses a storage area for 28 terms, the number of terms is set to the maximum value “28”.

【0050】次に、項数カウンタの項数が0か否かによ
り、項タイプのチェックを終了したか否かを判定する
(p26)。判定結果が否定(N)の場合は、項タイプ
バッファ37の先に設定されたポインタ(先頭ポイン
タ)の格納エリアから項タイプを取得する(p27)。
そして、その項タイプは0か否かを調べる(p28)。
肯定(Y)の場合は、項タイプバッファ37のポインタ
を更新(−1)する(p29)とともに、項数カウンタ
の項数を更新(−1)して(p30)、ステップp26
に戻る。
Next, whether or not the item type check has been completed is determined based on whether or not the number of items in the item number counter is 0 (p26). If the determination result is negative (N), the item type is obtained from the storage area of the pointer (head pointer) set earlier in the item type buffer 37 (p27).
Then, it is checked whether the item type is 0 (p28).
If affirmative (Y), the pointer of the term type buffer 37 is updated (-1) (p29), and the number of terms in the term counter is updated (-1) (p30), and step p26 is executed.
Return to

【0051】ステップ28における判定結果が否定
(N)の場合は、ステップ31(図14)に移行し、項
タイプバッファから4項のタイプ、すなわち、例えば図
5の第28項から第25項までの16ビット(2バイ
ト)のデータを取得する。そして、取得した各項タイプ
の最上位のビットを取得して、各項を4ビットで表した
第2の比較印字パターンを生成する(p32)。すなわ
ち、図5の例では、最上位の0に1000をアンドして得ら
れる0000,0000,0000,0000の第2の比較印字パターン
(図18,19に合わせて10進数で表すと、「0,
0,0,0」の比較印字パターン)を生成する。
If the decision result in the step 28 is negative (N), the process moves to a step 31 (FIG. 14), and the type of the four items from the item type buffer, that is, for example, from the 28th item to the 25th item in FIG. 16-bit (2 bytes) data is obtained. Then, the most significant bit of each of the obtained item types is obtained, and a second comparative print pattern in which each item is represented by 4 bits is generated (p32). That is, in the example of FIG. 5, the second comparative print pattern of 0000, 0000, 0000, 0000 obtained by ANDing 1000 to the highest order 0 (in decimal notation according to FIGS. 18 and 19, “0 ,
0,0,0 ").

【0052】次に、第2テーブル38の先頭アドレスを
指定し(p33)、引き続き、第2の基準印字パターン
の中の、図18に例示するような一次基準印字パターン
を順次取得して、取得した一次基準印字パターンと先に
生成した項タイプバッファの4項に対応する第2の比較
印字パターンとを照合するパターンマッチング、すなわ
ち、パターン照合ルーチン(R6)を実行する。そし
て、取得した一次基準印字パターンの中に、項タイプバ
ッファの最初の4項に対応する第2の比較印字パター
ン、すなわち、通帳の日付欄の1〜4番目の縦区分に対
応するパターンと一致するものがあるか否かを判断する
(p34)。
Next, the head address of the second table 38 is designated (p33), and subsequently, the primary reference print patterns as illustrated in FIG. A pattern matching for matching the primary reference print pattern with the second comparison print pattern corresponding to the four items of the item type buffer generated earlier, that is, a pattern matching routine (R6) is executed. Then, in the acquired primary reference print pattern, the second comparative print pattern corresponding to the first four items of the item type buffer, that is, the pattern corresponding to the first to fourth vertical sections of the date column of the passbook is matched. It is determined whether or not there is something to do (p34).

【0053】一致した場合(P34において肯定の場
合)は、パターン化要素設定ルーチンを実行する(R
7)。ここで、パターン化要素設定ルーチン(R7)に
ついて、図17に基づいて説明する。図13〜図16の
メインフローのそれぞれの第1の比較印字パターンと第
1の基準印字パターンの照合ステップにおいて一致する
ものがあった場合に、パターン化要素設定ルーチン(R
7)が起動される。まず、項タイプバッファ37の現在
チェックしている項の数を取得する(p71)。次に項
数が28〜25か否か、すなわち、最初の4項か否かを
調べ(p72)、肯定(Y)ならば、パターン化要素バ
ッファ40の第1記憶エリア(*1)にパターン化要素
“1”を記憶する(p73)。ステップp72において
否定(N)ならば、項数が24〜21か否か、すなわ
ち、二番目の4項か否かを調べ(p74)、肯定(Y)
ならば、パターン化要素バッファ40の第2記憶エリア
(*2)にパターン化要素“1”を記憶する(p7
5)。また、ステップp74において否定(N)なら
ば、項数が20〜17か否か、すなわち、三番目の4項
か否かを調べ(p76)、肯定(Y)ならば、パターン
化要素バッファ40の第3記憶エリア(*3)にパター
ン化要素“1”を記憶する(p77)。以下、同様に、
項数が16〜13か否か(p78)、12〜9か否か
(p80)、8〜5か否かを調べ(p82)、それぞれ
肯定の場合に、パターン化要素バッファ40の第4記憶
エリア(*4)、第5記憶エリア(*5)又は第6記憶
エリア(*6)に記憶し(p79,p81,p83)、
ステップp82において否定(N)の場合は、第7記憶
エリア(*7)にパターン化要素“1”を記憶する(p
84)するようになっている。いずれかの記憶エリアへ
のパターン化要素“1”の記憶を終了すると、パターン
化要素設定ルーチンからメインフローに戻る。
If they match (if affirmative in P34), a patterning element setting routine is executed (R
7). Here, the patterning element setting routine (R7) will be described with reference to FIG. If there is a match in the first comparison print pattern and the first reference print pattern matching step in the main flow of FIGS. 13 to 16, the patterning element setting routine (R
7) is activated. First, the number of items currently checked in the item type buffer 37 is obtained (p71). Next, it is checked whether the number of items is 28 to 25, that is, whether it is the first four items (p72). If affirmative (Y), the pattern is stored in the first storage area (* 1) of the patterning element buffer 40. The storage element "1" is stored (p73). If negative (N) in step p72, it is checked whether the number of terms is 24 to 21, that is, whether it is the second four terms (p74), and affirmative (Y)
Then, the patterning element "1" is stored in the second storage area (* 2) of the patterning element buffer 40 (p7).
5). If negative (N) in step p74, it is checked whether the number of terms is 20 to 17, ie, whether it is the third fourth term (p76). If positive (Y), the patterning element buffer 40 The patterning element "1" is stored in the third storage area (* 3) (p77). Hereinafter, similarly,
It is checked whether the number of terms is 16 to 13 (p78), 12 to 9 (p80), or 8 to 5 (p82). If the result is affirmative, the fourth storage of the patterning element buffer 40 is performed. Stored in the area (* 4), the fifth storage area (* 5) or the sixth storage area (* 6) (p79, p81, p83),
If negative (N) in step p82, the patterning element “1” is stored in the seventh storage area (* 7) (p
84). When the storage of the patterning element “1” in any of the storage areas is completed, the processing returns to the main flow from the patterning element setting routine.

【0054】図14のステップp35の後のパターン化
要素設定ルーチン(R7)を終了すると、ステップp3
6において、項タイプバッファ37のポインタを更新
(+4)し、次に項タイプバッファ37から取得すべき
データの記憶エリアを指定し、次に、項数を更新(−
4)して、残りの項数を設定する(p37)。続いて、
項タイプバッファ37から次の4項分の項タイプを取得
し(p38)、その項タイプがE(1110)以上か否か、
すなわち、黒ビット数が一定値(実施例では32)以上
に多いか否かを判定する(p39)。通帳の日付欄に印
字されるものには、0〜9の英数字と「−」(ハイフ
ン)と「.」(ピリオド)の記号とがあり、英数字と記
号はその黒ビット数の大小により識別可能である。この
見地に基づき、本実施例では、両者を識別する目的で、
項タイプの識別基準として上記Eを用いている。
When the patterning element setting routine (R7) after step p35 in FIG. 14 is completed, step p3
In 6, the pointer of the term type buffer 37 is updated (+4), the storage area of the data to be acquired from the term type buffer 37 is specified, and then the number of terms is updated (−
4) Then, the number of remaining terms is set (p37). continue,
The next four item types are obtained from the item type buffer 37 (p38), and whether the item type is E (1110) or more is determined.
That is, it is determined whether the number of black bits is larger than a certain value (32 in the embodiment) or more (p39). What is printed in the passbook date column includes alphanumeric characters 0-9, "-" (hyphen) and "." (Period), and the alphanumeric characters and symbols depend on the size of the number of black bits. It is identifiable. Based on this viewpoint, in this embodiment, for the purpose of distinguishing both,
The above E is used as a term type identification criterion.

【0055】ステップp39の判定結果が肯定の場合
は、項の位置を示す項タイプバッファの項数が5以上か
否かを判定する(p40)。ステップp40の判定結果
が否定の場合、すなわち、印字項数が4以下の場合は、
次のステップp41において、上述されたパターン化要
素設定ルーチン(R7)が実行され、パターン化要素バ
ッフア40の第6記憶エリア*6にパターン化要素を
“1”に設定する。
If the decision result in the step p39 is affirmative, it is determined whether or not the number of terms in the term type buffer indicating the position of the term is 5 or more (p40). If the determination result of step p40 is negative, that is, if the number of print items is 4 or less,
In the next step p41, the above-described patterning element setting routine (R7) is executed, and the patterning element is set to "1" in the sixth storage area * 6 of the patterning element buffer 40.

【0056】ステップp41のパターン化要素設定ルー
チン(R7)が終了すると、項タイプバッファ37のポ
インタが更新(−1)される(p42)とともに、項数
カウンタが更新(+1)される(p43)。続いて、項
数を更新(−1)した(p44)の後、項数カウンタの
値が0か否かにより、項タイプのチェックが終了したか
否かを判定する(p45)。判定結果が否定の場合は、
ステップp38に戻り、項タイプバッファ37から次の
項のタイプを取得して、前述の場合と同様にステップ3
9に移行する。これに対して、ステップp45の判定結
果が肯定の場合は、図6の基本フローに戻る。
When the patterning element setting routine (R7) in step p41 ends, the pointer of the term type buffer 37 is updated (-1) (p42) and the term number counter is updated (+1) (p43). . Subsequently, after the number of terms is updated (−1) (p44), it is determined whether or not the term type check has been completed based on whether the value of the term number counter is 0 (p45). If the judgment result is negative,
Returning to step p38, the type of the next item is obtained from the item type buffer 37, and step 3 is performed in the same manner as described above.
Move to 9. On the other hand, if the determination result in step p45 is affirmative, the process returns to the basic flow in FIG.

【0057】図14のステップp40における判定結果
が肯定の場合は、図15のステップ46に移行して、項
数が9以上か否かが判定される。そして、否定の場合
は、次のステップp47において、パターン化要素設定
ルーチン(R7)が実行され、パターン化要素バッファ
40の第5記憶エリア*5にパターン化要素が“1”に
設定される。その後は、図14のステップp42に移行
する。また、ステップp46において肯定の判定結果と
なった場合は、項数が13以上か否かが判定される(p
48)。否定の場合は、次のステップp49において、
パターン化要素設定ルーチン(R7)が実行され、パタ
ーン化要素バッファ40の第4記憶エリア*5にパター
ン化要素が“1”に設定される。その後は、図14のス
テップp42に移行する。ステップp48において肯定
の判定結果となった場合は、次は項数が17以上か否か
が判定される(p50)。否定の場合は、次のステップ
p51において、パターン化要素設定ルーチン(R7)
が実行され、パターン化要素バッファ40の第3記憶エ
リア*5にパターン化要素が“1”に設定される。その
後は、同様に図14のステップp42に移行する。ステ
ップp50において肯定の判定結果となった場合は、次
は項数が21以上か否かが判定される(p52)。否定
の場合は、次のステップp53において、同様にパター
ン化要素設定ルーチン(R7)が実行され、パターン化
要素バッファ40の第2記憶エリア*2にパターン化要
素が“1”に設定される。その後は、同様に図14のス
テップp42に移行する。さらに、ステップp52にお
いて肯定の判定結果となった場合は、次は項数が25以
上か否かが判定される(p54)。否定の場合は、次の
ステップp55において、同様にパターン化要素設定ル
ーチン(R7)が実行され、パターン化要素バッファ4
0の第1記憶エリア*1にパターン化要素が“1”に設
定される。その後は、同様に図14のステップp42に
移行する。ステップp54の判定結果が肯定の場合は、
そのまま図12のステップp42に移行する。
If the decision result in the step p40 in FIG. 14 is affirmative, the process shifts to a step 46 in FIG. 15 to determine whether or not the number of terms is 9 or more. If not, in the next step p47, a patterning element setting routine (R7) is executed, and the patterning element is set to "1" in the fifth storage area * 5 of the patterning element buffer 40. Thereafter, the process proceeds to step p42 in FIG. If the determination result in step p46 is affirmative, it is determined whether the number of terms is 13 or more (p
48). If not, in the next step p49,
The patterning element setting routine (R7) is executed, and the patterning element is set to "1" in the fourth storage area * 5 of the patterning element buffer 40. Thereafter, the process proceeds to step p42 in FIG. If a positive determination result is obtained in step p48, it is next determined whether the number of terms is 17 or more (p50). If not, in the next step p51, a patterning element setting routine (R7)
Is executed, and the patterning element is set to "1" in the third storage area * 5 of the patterning element buffer 40. Thereafter, the process similarly proceeds to step p42 in FIG. If a positive determination result is obtained in step p50, it is next determined whether or not the number of terms is 21 or more (p52). If not, in the next step p53, the patterning element setting routine (R7) is similarly executed, and the patterning element is set to "1" in the second storage area * 2 of the patterning element buffer 40. Thereafter, the process similarly proceeds to step p42 in FIG. Further, if a positive determination result is obtained in step p52, it is next determined whether the number of terms is 25 or more (p54). If not, in the next step p55, the patterning element setting routine (R7) is similarly executed, and the patterning element buffer 4
The patterning element is set to "1" in the first storage area * 1 of 0. Thereafter, the process similarly proceeds to step p42 in FIG. If the decision result in the step p54 is affirmative,
The process directly proceeds to step p42 in FIG.

【0058】図14のステップp34において比較印字
パターンが図18に例示する一次基準印字パターンと一
致しない場合は、図16のステップ57に移行し、ま
た、図14のステップp39において項タイプがE未満
である場合も、図16のステップp56に移行する。ス
テップp56においては、項タイプバッファ37から次
の4項のタイブを取得され、ステップ57に移行する。
ステップ57においては、第2の基準印字パターンの中
から図19に例示するようなセパレータ文字の1種であ
るハイフンの二次基準印字パターン(「−」パターン)
の先頭アドレスが取得され、次いで、取得された二次基
準印字パターンと第2の比較印字パターンの照合処理
(R6)が実行され、一致したか否かが判断される(p
59)。
If the comparison print pattern does not match the primary reference print pattern illustrated in FIG. 18 at step p34 in FIG. 14, the process proceeds to step 57 in FIG. 16, and the item type is less than E in step p39 in FIG. Also, the process proceeds to step p56 in FIG. In step p56, the following four types of ties are obtained from the item type buffer 37, and the routine goes to step 57.
In step 57, a secondary reference print pattern ("-" pattern) of a hyphen, which is one type of a separator character as illustrated in FIG. 19, is selected from the second reference print patterns.
Of the acquired secondary reference print pattern and the second comparison print pattern (R6), and it is determined whether they match (p).
59).

【0059】一致した場合は、パターン化要素設定ルー
チン(R7)が実行され(p60)、そのときの項数に
対応する記憶エリアにパターン化要素が“1”に設定さ
れて、そのパターンが記憶される。引き続き、項タイプ
バッファのポインタが更新(+4)される(p61)と
ともに、項数が更新(−4)された(p62)後は、図
13のステップp26に移行する。
If they match, the patterning element setting routine (R7) is executed (p60), the patterning element is set to "1" in the storage area corresponding to the number of items at that time, and the pattern is stored. Is done. Subsequently, after the pointer of the term type buffer is updated (+4) (p61) and the number of terms is updated (-4) (p62), the process proceeds to step p26 in FIG.

【0060】また、ステップp59において、否定の判
定結果となった場合は、セパレータ文字のもう1種であ
るピリオドの二次基準印字パターン(「.」パターン)
の先頭アドレスが取得され、取得された二次基準印字パ
ターンと第2の比較印字パターンの照合処理(R6)が
実行され(p64)、一致したか否かが判断される(p
65)。一致した場合は、パターン化要素設定ルーチン
(R7)が実行され(p66)、そのときの項数に対応
する記憶エリアにパターン化要素が“1”に設定され
て、そのパターンが記憶される。引き続き、項タイプバ
ッファのポインタが更新(+4)される(p67)とと
もに、項数が更新(−4)された(p68)後は、図1
3のステップp26に移行する。これに反し、ステップ
p65において一致しない場合は、図13のステップp
29に移行する。
If a negative determination result is obtained in step p59, a secondary reference printing pattern ("." Pattern) of a period, which is another type of separator character, is used.
Of the obtained secondary reference print pattern and the second comparison print pattern (R64) are executed (p64), and it is determined whether or not they match (p64).
65). If they match, the patterning element setting routine (R7) is executed (p66), the patterning element is set to "1" in the storage area corresponding to the number of terms at that time, and the pattern is stored. Subsequently, the pointer of the term type buffer is updated (+4) (p67) and the number of terms is updated (-4) (p68).
The process proceeds to Step p26 of Step 3. On the other hand, if they do not match in step p65,
Move to 29.

【0061】要約すると、パターン化要素バッファ40
には、項値バッファの項数と項値に基づき、次のよう
に、パターン化要素“1”又は“0”が格納される。す
なわち、項数1〜4に文字あり(項値が32以上の場
合)又は文字なし(項値が31以下の場合)と判定した
場合は、第1記憶エリア*1に、“1”又は“0”が格
納される。項数5〜8に文字あり又は文字なしと判定し
た場合は、第2記憶エリア*1に、“1”又は“0”が
格納される。項数9〜12に文字あり又は文字なしと判
定した場合は、第3記憶エリア*1に、“1”又は
“0”が格納される。項数13〜16に文字あり又は文
字なしと判定した場合は、第4記憶エリア*1に、
“1”又は“0”が格納される。項数17〜20に文字
あり又は文字なしと判定した場合は、第5記憶エリア*
1に、“1”又は“0”が格納される。項数21〜24
に文字あり又は文字なしと判定した場合は、第6記憶エ
リア*1に、“1”又は“0”が格納される。項数25
〜28に文字あり又は文字なしと判定した場合は、第7
記憶エリア*1に、“1”又は“0”が格納される。
In summary, the patterning element buffer 40
Stores the patterning element “1” or “0” based on the number of terms and the term value in the term value buffer as follows. That is, when it is determined that the number of items 1 to 4 has a character (when the item value is 32 or more) or no character (when the item value is 31 or less), "1" or "1" is stored in the first storage area * 1. 0 "is stored. If it is determined that there are characters or no characters in the item numbers 5 to 8, “1” or “0” is stored in the second storage area * 1. When it is determined that there is a character or no character in the number of items 9 to 12, "1" or "0" is stored in the third storage area * 1. If it is determined that the number of items 13 to 16 has a character or no character, the fourth storage area * 1 stores
“1” or “0” is stored. If it is determined that the number of items 17 to 20 has a character or no character, the fifth storage area *
1 stores “1” or “0”. Number of terms 21 to 24
Is determined to have a character or no character, "1" or "0" is stored in the sixth storage area * 1. 25 terms
When it is determined that there is a character or no character in
"1" or "0" is stored in the storage area * 1.

【0062】上記実施例では、1バイトのスキャンデー
タ中に文字成分があるか否かの判定基準として、黒ビッ
ト数が32以上か否かを用いた。しかしながら、文字の
形態すなわち書体あるいは通常文字かセパレータ文字か
により、印字文字がある場合にも1バイト中の黒ビット
数がある幅をもって変動する。そして、媒体には印字文
字でなく、何らかの汚点がある場合にも、黒画素が検出
される。このような状況の基で、一の判定基準のみで高
精度の印字有無判定を行うことは困難である。
In the above embodiment, whether or not the number of black bits is 32 or more is used as a criterion for determining whether or not there is a character component in 1-byte scan data. However, depending on the form of the character, that is, the typeface, the normal character or the separator character, even if there is a print character, the number of black bits in one byte varies with a certain width. Then, even when the medium has not only print characters but also some stains, black pixels are detected. Under such circumstances, it is difficult to make a highly accurate print presence / absence determination using only one determination criterion.

【0063】本発明は、上記の事情に鑑み、印字有無判
定基準に次のように二つの境界値を用いることを試み
た。すなわち、二つの一定値a,b(但し、a>b)を
判定境界値として設定し、バイト画素カウンタの計数値
(すなわち、1バイト中の黒ビット数)xが、x≦bの
場合は印字なしを意味する“0”、x≧aの場合は印字
ありを意味する“1”をレジスタにセットする。このよ
うな二つの境界値を用いる場合は、文字と汚点を区別し
て、明快に印字有無の判定をすることができ反面
にこれに止どまる時は、xが両境界値の間のグレイゾー
ンに属する場合は、判定不可能になり、判定精度を損な
うことになる。例えば、図20に例示するように、数字
「0」の印字範囲を縦方向に3等分割した場合、第1縦
区画a1と第3縦区画a3の黒ビット数x1,x3は、
判定境界値aよりも多いので“1”とセットされるのに
対し、第2縦区画a2の黒ビット数x2は、判定境界値
aとbの間に入るため、実際は印字があるにもかかわら
ず、判定不可能である。
In view of the above circumstances, the present invention has attempted to use two boundary values as the printing presence / absence criterion as follows. That is, two constant values a and b (where a> b) are set as the determination boundary values, and when the count value of the byte pixel counter (that is, the number of black bits in one byte) x is x ≦ b, "0", which means no printing, is set in the register if x≥a, "1", which means that there is printing. When using such a two boundary values, distinguishes characters and blemishes, clarity although that can be determined indium, when circle simply etc. stop thereto, x is from between the two boundary values If it belongs to the gray zone, it becomes impossible to make a determination, and the determination accuracy is impaired. For example, as illustrated in FIG. 20, when the print range of the number “0” is divided into three equal parts in the vertical direction, the black bit numbers x1 and x3 of the first vertical section a1 and the third vertical section a3 are:
Since it is larger than the determination boundary value a, it is set to “1”. On the other hand, the number of black bits x2 of the second vertical section a2 falls between the determination boundary values a and b. And cannot be determined.

【0064】このような不具合を解消するため、本発明
方法においては、一つのバイト画素カウンタの計数値x
1が、二つの境界値の間に入る場合は、当該バイト画素
カウンタの計数値x1に順に次のバイト画素カウンタの
計数値x2を加算して、その加算結果(x1+x2)が
もう一つの一定値c(但し、c=a+d、dは微差)以
上のときは、“1”をセットし、前記加算値(x1+x
2)が一定値c未満のときはこれに順に次のバイト画素
カウンタの値(x3)を足して、その加算値が一定値
(c+nd:nは加算したバイト画素カウンタの数に従
う値)以上のときは“1”をセットし、加算しようとす
るバイト画素カウンタの値xmがa未満になったとき
は、“0”をセットして、“1”又は“0”の組合せか
らなる1次比較印字パターンを構成するようにした。
In order to solve such a problem, in the method of the present invention, the count value x of one byte pixel counter
When 1 falls between two boundary values, the count value x2 of the next byte pixel counter is sequentially added to the count value x1 of the byte pixel counter, and the addition result (x1 + x2) becomes another constant value. If it is equal to or more than c (where c = a + d, d is a small difference), “1” is set and the added value (x1 + x
If 2) is less than the fixed value c, the value (x3) of the next byte pixel counter is added to the value in order, and the added value is equal to or more than a fixed value (c + nd: n is a value according to the number of added byte pixel counters). Is set to “1”, and when the value xm of the byte pixel counter to be added becomes smaller than “a”, “0” is set and the primary comparison consisting of a combination of “1” or “0” is performed. A print pattern is configured.

【0065】図21に例示するように、同図(イ)のバ
ッファメモリ又は項値バッファBFに格納された各バイ
トのスキャンデータに含まれる黒ビット数が、同図
(ロ)に示すようにx1〜x8…であり、それぞれの二
つの境界値a,bに対する関係が同図(ハ)に示すよう
なものであると仮定すると、第1及び第2バイトについ
ては“0”がセットされ、第3バイトは境界地位a,b
の中間であるので、第3バイトのバイト画素カウンタの
数x3に次の第4バイトのバイト画素カウンタの数x4
が加算され、その加算結果がc以上であるので、結局、
第3バイトについては、“1”とセットされる。従っ
て、図20に例示するように、本来「0」が印字されて
いる場合に、印字濃度不足等のために中間部における黒
ビット数が二つの境界値の間に属する場合にも、上記加
算処理により、その中間部も“1”とセットされるの
で、実際の印字パターンに沿った判定に修正され、信頼
度の高い判定が行われる。
As illustrated in FIG. 21, the number of black bits included in the scan data of each byte stored in the buffer memory or the term value buffer BF of FIG. .., and assuming that the relationship with respect to the two boundary values a and b is as shown in FIG. 3C, “0” is set for the first and second bytes. The third byte is the boundary status a, b
, The number x3 of the byte pixel counter of the third byte is added to the number x4 of the byte pixel counter of the next fourth byte.
Is added, and the addition result is equal to or more than c.
The third byte is set to "1". Therefore, as illustrated in FIG. 20, even when the number of black bits in the intermediate portion belongs to between two boundary values due to insufficient print density or the like when “0” is originally printed, the above-described addition is performed. Since the intermediate portion is also set to "1" by the processing, the determination is corrected to the determination according to the actual print pattern, and the determination with high reliability is performed.

【0066】このようにして、図21(イ)の各バイト
に対して、レジスタに“0”“0”“1”“1”“1”
“0”“0”“0”“1”…がセットされ、一次比較印
字パターンが生成される。全てのバイトに個々に対応す
る“0”又は“1”の28個のデータ集合体を一次比較
印字パターンとして、一次基準印字パターンと照合し
て、一致するか否かにより、最終的な印字有無判定を行
うことも可能である。しかし、処理対象データ量は、C
PUの負担軽減のために、可及的に少ないことが望まし
い。そこで、本発明の好ましい実施例では、図21
(ハ)(ニ)に示すように、前記レジスタの前記一次比
較印字パターンの“1”又は“0”のいずれか同一の論
理値が複数個連続する場合は1個に圧縮して二次比較印
字パターンを構成し、前記二次比較印字パターンを印字
がある場合の圧縮された論理値からなる二次基準印字パ
ターンと比較し、一致するものがある場合に、その行を
印字あり行と判定するようにした。
In this way, for each byte shown in FIG. 21A, "0", "0", "1", "1" and "1" are stored in the register.
"0", "0", "0", "1",... Are set, and a primary comparison print pattern is generated. 28 sets of data "0" or "1" individually corresponding to all bytes are used as a primary comparison print pattern, compared with the primary reference print pattern, and the final print presence / absence is determined based on whether they match. It is also possible to make a determination. However, the amount of data to be processed is C
In order to reduce the burden on the PU, it is desirable that the number be as small as possible. Therefore, in a preferred embodiment of the present invention, FIG.
(C) As shown in (d), when a plurality of the same logical values of “1” or “0” of the primary comparison print pattern in the register are consecutive, the number is compressed to one and the secondary comparison is performed. Composes a print pattern, compares the secondary comparison print pattern with a secondary reference print pattern consisting of compressed logical values when there is a print, and if there is a match, determines that line as a print line I did it.

【0067】上記実施例においては、所定位置の所定の
文字又は記号の種類ごとの有無の判定を行うことができ
る。また、1文字単位でなく、1行の文字により構成さ
れる書式単位で、印字の有無を判定することが可能であ
るので、日付欄などの、印字される内容が一定の範囲で
予め定まっているような場合には、その印字内容に応じ
た二次基準印字パターンを作成しておくことにより、高
精度の印字有無判定が可能である。
In the above embodiment, it is possible to determine the presence or absence of each type of a predetermined character or symbol at a predetermined position. In addition, since the presence or absence of printing can be determined not in units of one character but in units of format composed of one line of characters, the content to be printed such as a date column is determined in advance within a certain range. In such a case, it is possible to determine the presence / absence of printing with high accuracy by creating a secondary reference printing pattern corresponding to the printing content.

【0068】[0068]

【発明の効果】以上に説明したように、本発明方法によ
れば、1走査分のスキャンデータに対して1バイトごと
の“1”の画素データを計数するバイト画素カウンタを
備え、走査を行うたびに各1バイトごとの“1”の画素
データ数を前記バイト画素カウンタのそれぞれに加算累
積し、1行分の全走査を終了した時点で前記各バイト画
素カウンタの内容を元に、その行の比較印字パターンを
作成し、作成された前記比較印字パターンを、実際に印
字がある場合について作成され、記憶されている基準印
字パターンと比較し、一致するものがある場合にその行
を印字あり行と判定するようにしたので、縦長文字は、
PCS値が低くなってスキャンデータの中の黒ビット数
が減少しても、縦方向成分の残る割合が大きいという特
性を活用して、印字有無の判定を高い信頼性をもって行
うことができる。
As described above, according to the method of the present invention, a scan is performed by providing a byte pixel counter for counting "1" pixel data for each byte for scan data for one scan. Each time one byte of pixel data of "1" is added and accumulated in each of the byte pixel counters, and when all the scans for one row are completed, the row is read out based on the contents of each byte pixel counter. A comparison print pattern is created, and the created comparison print pattern is compared with a reference print pattern created and stored when there is actually printing, and if there is a match, the line is printed. Because it was decided to be a line, vertical characters,
Even if the PCS value decreases and the number of black bits in the scan data decreases, it is possible to determine the presence or absence of printing with high reliability by utilizing the characteristic that the ratio of remaining vertical components is large.

【0069】また、請求項3の発明によれば、一文字単
位でなく、1行の文字により構成される書式単位で、印
字の有無を判定することが可能であるので、日付欄など
の、印字される内容が一定の範囲で予め定まっているよ
うな場合には、その印字内容に応じた二次印字パターン
を作成しておくことにより、高精度の印字有無判定が可
能である。
According to the third aspect of the present invention, it is possible to determine the presence or absence of printing not in units of one character but in units of format composed of one line of characters. If the contents to be printed are predetermined in a certain range, it is possible to determine the presence / absence of printing with high accuracy by creating a secondary printing pattern according to the printing contents.

【0070】さらに、請求項4の発明によれば、印字行
のバイト数が多い場合にも、判定用データを圧縮して判
定するので、CPUに対する処理負担が軽減され、一定
範囲の文字の集合又は書式単位での印字有無の判定を行
うことができる。
Further, according to the fourth aspect of the present invention, even when the number of bytes in a print line is large, the determination data is compressed and determined, so that the processing load on the CPU is reduced, and the set of characters in a certain range is reduced. Alternatively, it is possible to determine the presence or absence of printing for each format.

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

【図1】本発明方法を実施するために使用される主要構
成を示すブロック図。
FIG. 1 is a block diagram showing a main configuration used to carry out a method of the present invention.

【図2】日付欄の縦区分と各区分の走査の関係をイメー
ジ的に示す概念図。
FIG. 2 is a conceptual diagram conceptually showing a relationship between a vertical section of a date column and scanning of each section.

【図3】1行分の走査により得られるスキャンデータの
格納を説明する模式図。
FIG. 3 is a schematic diagram illustrating storage of scan data obtained by scanning one row.

【図4】1バイトごとの黒ビット数を24走査分(縦
に)加算して格納する動作を説明する模式図。
FIG. 4 is a schematic diagram illustrating an operation of adding the number of black bits per byte for 24 scans (vertically) and storing the sum.

【図5】各縦区分の黒ビット数のパターン化を説明する
模式図。
FIG. 5 is a schematic diagram illustrating patterning of the number of black bits in each vertical section.

【図6】本発明方法の基本的動作を説明するフローチャ
ートである。
FIG. 6 is a flowchart illustrating a basic operation of the method of the present invention.

【図7】判定装置のブロック構成図。FIG. 7 is a block diagram of a determination device.

【図8】同判定装置の動作タイミングを示すタイミング
チャートである。
FIG. 8 is a timing chart showing the operation timing of the determination device.

【図9】項値の分類における黒ビット数と項タイプの関
係を示す概念図。
FIG. 9 is a conceptual diagram showing the relationship between the number of black bits and the term type in term value classification.

【図10】項値の分類の処理手順の一部を示すフローチ
ャート。
FIG. 10 is a flowchart showing a part of the processing procedure for term value classification.

【図11】その残部を示すフローチャート。FIG. 11 is a flowchart showing the rest.

【図12】パターン化の概念図。FIG. 12 is a conceptual diagram of patterning.

【図13】パターン化処理の一部を示すフローチャー
ト。
FIG. 13 is a flowchart showing a part of a patterning process.

【図14】パターン化処理の他の一部を示すフローチャ
ート。
FIG. 14 is a flowchart showing another part of the patterning process.

【図15】パターン化処理のさらに他の一部を示すフロ
ーチャート。
FIG. 15 is a flowchart showing still another part of the patterning process.

【図16】パターン化処理の残部を示すフローチャー
ト。
FIG. 16 is a flowchart showing the rest of the patterning process.

【図17】パターン化要素設定のサプルーチンを示すフ
ローチャート。
FIG. 17 is a flowchart showing a subroutine for setting a patterning element.

【図18】印字ありと判定する場合の基準印字パターン
の例を示す概念図。
FIG. 18 is a conceptual diagram illustrating an example of a reference print pattern when it is determined that printing is performed.

【図19】印字ありと判定できない場合の二次基準印字
パターンの例を示す概念図。
FIG. 19 is a conceptual diagram showing an example of a secondary reference print pattern when it cannot be determined that printing is performed.

【図20】文字形態と黒ビット数の変動と判定基準の関
係を説明する模式図。
FIG. 20 is a schematic diagram illustrating a relationship between a character form, a change in the number of black bits, and a determination criterion.

【図21】本発明の他の実施例を示す説明図。FIG. 21 is an explanatory view showing another embodiment of the present invention.

【図22】一般的に使用されている通帳の印字フォーマ
ットを示す正面図。
FIG. 22 is a front view showing a print format of a generally used passbook.

【図23】プリンタの概略構成図。FIG. 23 is a schematic configuration diagram of a printer.

【図24】プリンタのブロック構成図。FIG. 24 is a block diagram of a printer.

【図25】日付欄の走査原理を説明する概念図。FIG. 25 is a conceptual diagram illustrating a scanning principle of a date column.

【図26】適正濃度で印字された「1」を走査した時の
スキャンデータを示す説明図。
FIG. 26 is an explanatory diagram showing scan data when scanning “1” printed at an appropriate density.

【図27】不適正濃度で印字された「1」を走査した時
のスキャンデータを示す説明図。
FIG. 27 is an explanatory view showing scan data when scanning “1” printed at an inappropriate density.

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

OSU 光学的読取装置 31 バッファメモリ 32 読出し部 331 〜3328 バイト画素カウンタ 34 項値バッファ 35 変換部 36 第1テーブル 37 項タイプバッファ 38 第2テーブル 39 比較部OSU optical reader 31 buffer memory 32 readout unit 33 1 to 33 28- byte pixel counter 34 term value buffer 35 conversion unit 36 first table 37 term type buffer 38 second table 39 comparison unit

フロントページの続き (72)発明者 漆田 裕治 岩手県花巻市城内4番3号 株式会社新興 製作所内 Fターム(参考) 2C059 FF03 FF07 5B021 AA01 BB02 CC06 DD01 EE01 GG03 9A001 HH21 JJ35 KK58 Continuation of front page (72) Inventor Yuji Urushida 4-3, Jonai, Hanamaki-shi, Iwate F-term in Shinko Seisakusho (reference) 2C059 FF03 FF07 5B021 AA01 BB02 CC06 DD01 EE01 GG03 9A001 HH21 JJ35 KK58

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ラインセンサが印字媒体の印字が予定さ
れている行を走査する際に、黒画素と白画素に対応して
出力する“1”“0”の2値画素データからなるスキャ
ンデータを取込み、そのスキャンデータに対して所定の
解析を行って、当該行に印字がされているか否かを判定
する印字有無判定方法において、(a)1走査分のスキ
ャンデータに対して1バイトごとの“1”の画素データ
を計数するバイト画素カウンタを備え、(b)走査を行
うたびに、1バイトごとの“1”の画素データの数を前
記バイト画素カウンタのそれぞれに加算累積し、(c)
1行分の全走査を終了した時点で前記各バイト画素カウ
ンタの計数値を元に、その行の比較印字パターンを作成
し、(d)作成された前記比較印字パターンを、実際に
印字がある場合について作成され、記憶されている基準
印字パターンと比較し、一致するものがある場合にその
行を印字あり行と判定すること、を特徴とする印字有無
判定方法
1. A scan data comprising binary pixel data of "1" and "0" outputted corresponding to a black pixel and a white pixel when a line sensor scans a line of a print medium on which printing is to be performed. In the print presence / absence determination method of determining whether or not printing has been performed on the line by performing a predetermined analysis on the scan data, (a) scanning data for one scan every one byte (B) Each time scanning is performed, the number of “1” pixel data for each byte is added to and accumulated in each of the byte pixel counters. c)
At the time when the scanning of one row is completed, a comparative print pattern of the row is created based on the count value of each byte pixel counter, and (d) the created comparative print pattern is actually printed. Comparing with a reference print pattern created and stored for each case, and if there is a match, determine the line as a line with printing
【請求項2】(c1)印字媒体の日付欄の1行ごとを走
査して得られるスキャンデータの1バイトごとの中の
“1”の画素データの数を1バイト単位に副走査方向に
加算し、各バイトの中の“1”の画素データの計数値が
複数段階の値のいずれに該当するかを分類し、分類結果
に対して予め定めてある項タイプを割付けし、その4項
ごとの項タイプにより比較印字パターンを生成し、(d
1)前記比較印字パターンを基準印字パターンと照合
し、少なくとも一つの比較印字パターンが基準印字パタ
ーンと一致するとき、当該行は印字あり行と判定するこ
とを特徴とする請求項1に記載された印字有無判定方
法。
(C1) The number of pixel data of "1" in each byte of scan data obtained by scanning each line of a date column of a print medium is added in the sub-scanning direction in byte units. Then, it classifies whether the count value of the pixel data of “1” in each byte corresponds to a value of a plurality of levels, assigns a predetermined item type to the classification result, and assigns each of the four items. A comparative print pattern is generated by the term type of
1) The comparison printing pattern is compared with a reference printing pattern, and when at least one comparison printing pattern matches the reference printing pattern, the line is determined to be a printed line. Printing presence / absence determination method.
【請求項3】(c21)印字媒体の日付欄の1行ごとを
走査して得られるスキャンデータの1バイトごとの中の
“1”の画素データの数を1バイト単位に副走査方向に
加算し、各バイトの中の“1”の画素データの計数値が
複数段階の値のいずれに該当するかを分類し、分類結果
に対して予め定めてある項タイプを割付けし、その4項
ごとの項タイプにより第1の比較印字パターンを生成
し、(d21)前記第1の印字比較パターンを第1の基
準印字パターンと照合し、(c22)全ての4項ごとの
照合結果により第2の比較印字パターンを生成し、(d
22)前記第2の比較印字パターンを1行分の各種印字
列に対応して作成してある第2の基準印字パターンと照
合し、一致するものがある場合は、当該行が印字あり行
と判定すること、を特徴する請求項1に記載された印字
有無判定方法。
(C21) The number of "1" pixel data in each byte of scan data obtained by scanning each line of the date column of the print medium is added in the sub-scanning direction in byte units. Then, it classifies whether the count value of the pixel data of “1” in each byte corresponds to a value of a plurality of levels, assigns a predetermined item type to the classification result, and assigns each of the four items. (D21) collating the first print comparison pattern with the first reference print pattern, and (c22) comparing the second print pattern with the first reference print pattern by using the collation result for every four terms. Generate a comparative print pattern and (d
22) The second comparative print pattern is compared with a second reference print pattern created corresponding to one line of various print columns, and if there is a match, the line is regarded as a printed line. The method according to claim 1, wherein the determination is made.
【請求項4】(c31)印字パターンは、各バイト画素
カウンタの値x1を2つの一定値a,b(a>b)と比
較し、x1≦bのときは“0”を、a≦x1のときは
“1”をそれぞれセットし、a>x1>bのときは前記
値x1に次のバイト画素カウンタの値を足して、その値
x2が一定値c(c=b+d)以上のときは、“1”を
セットし、前記値x2が一定値c未満のときは前記値x
2に順に次のバイト画素カウンタの値を足して、その値
xkが一定値(c+nd:nは加算したバイト画素カウ
ンタの数に従う値)以上のときは“1”をセットし、加
算しようとするバイト画素カウンタの値xmがa未満に
なったときは、“0”をセットして、“1”又は“0”
の組合せからなる1次比較印字パターンを構成し、(c
32)前記1次比較印字パターンの“1”と“0”がそ
れぞれ複数個連続する場合は1個に圧縮して2次比較印
字パターンを構成し、(d31)前記2次比較印字パタ
ーンを基準印字パターンと比較し、一致するものがある
場合に、その行を印字あり行と判定すること、を特徴と
する請求項1に記載された印字有無判定方法。
(C31) The print pattern compares the value x1 of each byte pixel counter with two constant values a and b (a> b), and when x1 ≦ b, “0” is set, and a ≦ x1 When a>x1> b, a value of the next byte pixel counter is added to the value x1 when a>x1> b, and when the value x2 is equal to or more than a fixed value c (c = b + d), , "1", and when the value x2 is less than the constant value c, the value x
2, the value of the next byte pixel counter is added in order, and when the value xk is equal to or greater than a fixed value (c + nd: n is a value according to the number of added byte pixel counters), "1" is set and the addition is attempted. When the value xm of the byte pixel counter becomes smaller than a, “0” is set and “1” or “0” is set.
To form a primary comparison printing pattern composed of
32) When a plurality of “1” and “0” of the primary comparative print pattern are respectively continuous, they are compressed into one to form a secondary comparative print pattern, and (d31) the secondary comparative print pattern is used as a reference. 2. The print presence / absence determination method according to claim 1, wherein the print pattern is compared with a print pattern, and if there is a match, the line is determined as a print line.
JP09776999A 1999-04-05 1999-04-05 Method for determining whether media is printed Expired - Fee Related JP3746393B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09776999A JP3746393B2 (en) 1999-04-05 1999-04-05 Method for determining whether media is printed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP09776999A JP3746393B2 (en) 1999-04-05 1999-04-05 Method for determining whether media is printed

Publications (2)

Publication Number Publication Date
JP2000293347A true JP2000293347A (en) 2000-10-20
JP3746393B2 JP3746393B2 (en) 2006-02-15

Family

ID=14201076

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09776999A Expired - Fee Related JP3746393B2 (en) 1999-04-05 1999-04-05 Method for determining whether media is printed

Country Status (1)

Country Link
JP (1) JP3746393B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014144581A (en) * 2013-01-29 2014-08-14 Fujitsu Frontech Ltd Passbook printing device, ink ribbon replacement notification method, and ink ribbon replacement notification program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014144581A (en) * 2013-01-29 2014-08-14 Fujitsu Frontech Ltd Passbook printing device, ink ribbon replacement notification method, and ink ribbon replacement notification program

Also Published As

Publication number Publication date
JP3746393B2 (en) 2006-02-15

Similar Documents

Publication Publication Date Title
EP0113410B1 (en) Image processors
US5103489A (en) Label, method and device for locating addresses on articles to be sorted
US5077811A (en) Character and picture image data processing system
JPH07120385B2 (en) Optical reading method
EP0217655B1 (en) Method for reading a document and a document reading apparatus utilizing an image buffer
EP0938066B1 (en) Address recognizing method and mail processing apparatus
US4737923A (en) Type arrangement data editing apparatus
JPH0731714B2 (en) Character component cutting method
EP0077892B1 (en) Word processing system having a formatting bidirectional printer
JP2000293347A (en) Print presence/absence deciding method for medium
EP0264872B1 (en) Image input processor
JP2647271B2 (en) How to identify and correct reading errors
JP2859619B2 (en) Color identification circuit
JP3756012B2 (en) Printing presence / absence judgment method
JPH07171505A (en) Mail address code reader
JPS6041396B2 (en) Address detection device
JP2616995B2 (en) Character recognition device
JP2572048B2 (en) Word processing method
JPH08272884A (en) Form classifying and processing method and system
GB2278705A (en) Facsimile machine
JPS62257582A (en) Character reader
JPS6394385A (en) Printed character pitch detection device
JPH01271276A (en) Printing apparatus
JP2002109468A (en) Device for character recognition and method of character recognition
JPS6154581A (en) Character recognizer

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050329

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050516

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050517

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20051115

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051122

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081202

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081202

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091202

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101202

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101202

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111202

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121202

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121202

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121202

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131202

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees