Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0814836B2 - Print medium discrimination device - Google Patents
[go: Go Back, main page]

JPH0814836B2 - Print medium discrimination device - Google Patents

Print medium discrimination device

Info

Publication number
JPH0814836B2
JPH0814836B2 JP62179516A JP17951687A JPH0814836B2 JP H0814836 B2 JPH0814836 B2 JP H0814836B2 JP 62179516 A JP62179516 A JP 62179516A JP 17951687 A JP17951687 A JP 17951687A JP H0814836 B2 JPH0814836 B2 JP H0814836B2
Authority
JP
Japan
Prior art keywords
character
medium
print
bits
characters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62179516A
Other languages
Japanese (ja)
Other versions
JPS6421677A (en
Inventor
隆志 小田桐
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62179516A priority Critical patent/JPH0814836B2/en
Publication of JPS6421677A publication Critical patent/JPS6421677A/en
Publication of JPH0814836B2 publication Critical patent/JPH0814836B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 〔概要〕 印字された媒体の媒体種類判別方式であって、文字投
影処理手段により媒体から読み取ったイメージデータを
文字行,及び文字列の文字単位に投影処理を行い、夫々
両端文字の中心位置を求め、次に計数手段により行,及
び列の両端文字の中心位置間のビット数を計数し、記憶
手段に記憶された複数種類の媒体の印字範囲のビット数
を順次読み出して、計数手段で計数したビット数と順次
照合手段12で照合し、一致した時にその印字範囲に対応
する媒体であると判別することにより、印字媒体の種類
を自動的に判別することができる。
DETAILED DESCRIPTION OF THE INVENTION [Outline] A method of determining a medium type of a printed medium, in which image data read from a medium by a character projection processing unit is subjected to projection processing in character units of character lines and character strings, The center positions of the double-ended characters are obtained respectively, and then the number of bits between the center positions of the double-ended characters of the rows and columns is counted by the counting means, and the number of bits of the printing range of the plurality of types of media stored in the storage means is sequentially calculated. The type of the print medium can be automatically determined by reading out the number of bits counted by the counting means and sequentially collating by the collating means 12 and determining that the medium corresponds to the print range when they match. .

〔産業上の利用分野〕[Industrial applications]

本発明はテスト用文字が印字された媒体の印字媒体判
別装置に係り、特に媒体から読み取られた印字のイメー
ジデータを用いて媒体の種類を判別することができる印
字媒体判別装置に関するものである。
The present invention relates to a print medium discriminating apparatus for a medium on which a test character is printed, and more particularly to a print medium discriminating apparatus capable of discriminating a medium type by using image data of a print read from the medium.

〔従来の技術と発明が解決しようとする問題点〕[Problems to be solved by conventional technology and invention]

プリンタ等の装置の製造時に、印字媒体の印字可能範
囲全面に印字された文字の印字品質検査が行われてお
り、自動化される方向にある。この検査では、印字位
置、印字間隔等のアライメントの合否判定が行われる
が、装置に使用される複数種類の印字媒体、例えば、各
種サイズの単票(伝票、A4サイズのカットシート等)及
び通帳等の媒体(媒体の大きさが異なるので、印字可能
範囲が異なる)に対して異なるアライメント許容誤差が
適用される。
At the time of manufacturing a device such as a printer, a print quality inspection of a character printed on the entire printable range of a print medium is performed, and it tends to be automated. In this inspection, whether or not alignment such as print position and print interval is judged is performed. However, multiple types of print media used in the device, such as cut sheets of various sizes (such as slips and A4 size cut sheets) and passbooks. Different alignment tolerances are applied to different media (such as different printable areas because of different media sizes).

そこで、検査の自動化と合わせて、印字媒体の種類を
自動的に、正しく、且つ容易に判別する方法が必要にな
ってきたという問題がある。
Therefore, in addition to the automation of the inspection, there is a need for a method of automatically, correctly and easily determining the type of print medium.

本発明は、テスト用文字が印字された媒体の種類を判
別することができる印字媒体判別装置を提供することを
目的としている。
It is an object of the present invention to provide a print medium discriminating apparatus capable of discriminating the type of medium on which test characters are printed.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の原理ブロック図である。 FIG. 1 is a block diagram of the principle of the present invention.

図において、 7はテスト用文字が印字可能範囲全面に印字された媒
体の文字を読取手段によって読み取り、読み取ったイメ
ージデータの文字行及び文字列の文字単位に投影処理を
行う文字投影処理手段、 8は文字投影処理手段7によって投影処理された文字
の投影データの行,及び列の両端文字の中心位置間のビ
ット数を夫々計数する計数手段、 9は印字範囲が異なる複数種類の媒体の印字範囲がビ
ット数で記憶された記憶手段、 10は計数手段8によって計数された行,及び列の両端
文字の中心位置間のビット数と、記憶手段9に記憶され
た複数の印字範囲のビット数を順次照合する照合手段で
ある。
In the figure, 7 is a character projection processing means for reading characters of a medium on which test characters are printed on the entire printable range by a reading means and performing projection processing for each character line and character string of the read image data. Is a counting means for respectively counting the number of bits between the center positions of the characters on both sides of the rows and columns of the character projection data projected by the character projection processing means 7, and 9 is the print range of a plurality of types of media having different print ranges. Is a storage means in which the number of bits is stored as a bit number, and 10 is the number of bits between the center positions of the characters at both ends of the rows and columns counted by the counting means 8 and the number of bits of a plurality of printing ranges stored in the storage means 9. It is a collating means for sequentially collating.

従って照合手段10の照合により一致した時に、印字範
囲に対応する媒体種類であると判別するように構成され
ている。
Therefore, when the collation by the collating means 10 results in a match, it is determined that the medium type corresponds to the print range.

〔作用〕[Action]

印字品質検査時に、文字投影処理手段7により媒体か
ら読み取ったテスト用文字のイメージデータを文字行,
及び文字列の文字単位に投影処理を行い、夫々両端文字
の中心位置を求める。次に計数手段8は行,及び列の両
端文字の中心位置間のビット数を計数し、記憶手段9に
記憶された複数種類の媒体の印字範囲がビット数を順次
読み出して、計数手段8で計数したビット数と記憶手段
9から読み出したビット数が順次照合手段10で照合す
る。照合によって一致した時にその印字範囲に対応する
媒体であると判別することにより、自動的に媒体種類を
判別することができる。
At the time of the print quality inspection, the image data of the test character read from the medium by the character projection processing means 7 is used as a character line,
Also, the projection process is performed for each character of the character string, and the center position of each character is obtained. Next, the counting means 8 counts the number of bits between the center positions of the characters at both ends of the row and column, and the printing ranges of the plurality of types of media stored in the storage means 9 are sequentially read out, and the counting means 8 The counted number of bits and the number of bits read from the storage means 9 are sequentially collated by the collation means 10. By determining that the medium corresponds to the print range when they are matched by collation, it is possible to automatically determine the medium type.

〔実施例〕〔Example〕

以下本発明の一実施例を第2図〜第4図を参照して説
明する。全図を通じて同一符号は同一対象物を示す。第
2図で第1図に対応するものは1点鎖線で囲んで示して
いる。
An embodiment of the present invention will be described below with reference to FIGS. The same reference numerals denote the same objects throughout the drawings. In FIG. 2, the ones corresponding to those in FIG. 1 are shown surrounded by a one-dot chain line.

第2図において、読取部2は、媒体1がセットされて
搬送される位置決め搬送機構3,イメージセンサS,及びア
ナログ/ディジタル(以下A/Dという)変換部4を備
え、媒体1に印字された文字のイメージデータを読み取
ってA/D変換する。
In FIG. 2, the reading unit 2 includes a positioning / conveying mechanism 3 for setting and conveying the medium 1, an image sensor S, and an analog / digital (hereinafter referred to as A / D) conversion unit 4, and the medium 1 is printed. Read the image data of the characters and convert it to A / D.

2値化回路5は、読取部2から送られた多階調のイメ
ージデータを2値化し、媒体面と印字部を切り分け、図
示省略したメディアンフィルタによりノイズ除去を行
う。
The binarization circuit 5 binarizes the multi-tone image data sent from the reading unit 2, separates the medium surface from the printing unit, and removes noise by a median filter (not shown).

イメージバッファ6は、2値化されたイメージデータ
が格納される。
The image buffer 6 stores binarized image data.

文字投影処理部7aは、イメージデータの文字行及び文
字列毎に文字単位に投影処理を行い、各文字の投影デー
タの中心位置を求める。
The character projection processing unit 7a performs a projection process on a character-by-character basis for each character line and character string of the image data, and obtains the center position of the projection data of each character.

画素計数部8aは、行,及び列の両端文字の投影データ
の中心位置間のビット数を夫々計数する。
The pixel counting unit 8a counts the number of bits between the center positions of the projection data of the characters on both ends of the row and the column.

媒体印字範囲メモリ9aは、印字範囲が異なる複数種類
の媒体1の行及び列方向の印字範囲が、媒体種類を示す
データと対応させてビット数で記憶されている。即ち、
第3図に媒体1の種類として通帳A、伝票B及びA4判カ
ットシートCを示しており、夫々異なる印字範囲が対応
している。
In the medium print range memory 9a, the print ranges in the row and column directions of a plurality of types of media 1 having different print ranges are stored in the number of bits corresponding to the data indicating the medium type. That is,
FIG. 3 shows a passbook A, a slip B, and an A4 size cut sheet C as types of the medium 1, and different printing ranges correspond to each other.

比較判別部10aは、画素計数部8aによって計数された
行,及び列方向の印字範囲のビット数と、媒体印字範囲
メモリ9aより読み出された行,及び列方向の印字範囲の
ビット数を夫々一致するまで順次比較して、一致した時
にその印字範囲に対応する媒体種類であると判別する。
The comparison / determination unit 10a determines the number of bits of the printing range in the row and column directions counted by the pixel counting unit 8a, and the number of bits of the printing range in the rows and columns read from the medium printing range memory 9a. Sequential comparison is performed until they match, and when they match, it is determined that the medium type corresponds to the print range.

また11はディスプレイ(以下CRTという),12はプリン
タ,13は制御部を示す。
Further, 11 is a display (hereinafter referred to as CRT), 12 is a printer, and 13 is a control unit.

このような構成及び機能を有するので、第4図のフロ
ーチャートにより作用を説明する。
Having such a configuration and function, the operation will be described with reference to the flowchart of FIG.

印字可能範囲全面にテスト印字された媒体1から読取
部2によって読み取って2値化したイメージデータをイ
メージバッファ6に格納する。
Image data read from the medium 1 test-printed on the entire printable range by the reading unit 2 and binarized is stored in the image buffer 6.

文字投影処理部7aにより、第5図(a)に示す投影範
囲Xs,Ysの投影処理を行う。第5図(b)投影範囲Xsの
投影データを示している。
The character projection processing unit 7a performs projection processing of the projection ranges Xs and Ys shown in FIG. 5 (a). FIG. 5 (b) shows the projection data of the projection range Xs.

投影データより両端文字の文字中心位置を求める。The character center positions of the double-ended characters are obtained from the projection data.

画素計数部8aは投影範囲Xs,Ysの両端文字中心位置間
のビット数Bx,Byを計数する。
The pixel counting unit 8a counts the number of bits Bx, By between the character center positions on both ends of the projection range Xs, Ys.

ビット数Bx,Byは比較判別部10aへ送られる。The number of bits Bx, By is sent to the comparison / determination unit 10a.

すると媒体印字範囲メモリ9aから媒体種類Aの行及び
列方向の印字範囲ビット数が読み出されて比較判別部10
aへ送られる。
Then, the number of print range bits in the row and column directions of the medium type A is read out from the medium print range memory 9a, and the comparison / determination unit 10
sent to a.

比較判別部10aはビット数Bx,Byと媒体種類A行及び列
方向の印字範囲ビット数を夫々比較する。
The comparison / determination unit 10a compares the number of bits Bx, By with the number of print range bits in the medium type A row and column directions, respectively.

一致した時は媒体種類Aと判別する。When they match, the medium type A is determined.

不一致の時は、以降のフローと同様にして媒体印字
範囲メモリ9aから次の媒体種類Bの行及び列方向の印字
範囲ビット数が読み出されて比較判別部10aへ送られて
比較判別する。以下順次繰り返すことにより判別を行
う。
If they do not match, the number of print range bits in the row and column directions of the next medium type B is read from the medium print range memory 9a and sent to the comparison / determination unit 10a for comparison and determination, as in the subsequent flow. The determination is performed by sequentially repeating the following.

判別結果の媒体種類A,B,CはCRT11及びプリンタ12に出
力される。
The medium types A, B, and C as the determination result are output to the CRT 11 and the printer 12.

このようにして、媒体1の種類を自動的に判別するこ
とができる。
In this way, the type of medium 1 can be automatically determined.

従って、媒体1の種類に応じた異なる印字品質の許容
誤差を適用して、自動的に合否判定する検査の自動化に
寄与することができる。
Therefore, it is possible to apply different tolerances of print quality depending on the type of the medium 1 to contribute to the automation of the inspection for automatically making a pass / fail judgment.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明によれば、媒体の種類を自
動的に判定することができるという効果がある。
As described above, according to the present invention, it is possible to automatically determine the type of medium.

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

第1図は本発明の原理ブロック図、 第2図は本発明による実施例を示すブロック図、 第3図は印字媒体の種類を例示する説明図、 第4図は実施例のフローチャート、 第5図は実施例の印字媒体の印字及び投影データを示す
説明図である。 図において、 7は文字投影処理手段、7aは文字投影処理部、8は計数
手段、8aは画素計数部、9は記憶手段、9aは媒体印字範
囲メモリ、10は照合手段、10aは比較判別部を示す。
FIG. 1 is a block diagram showing the principle of the present invention, FIG. 2 is a block diagram showing an embodiment according to the present invention, FIG. 3 is an explanatory view illustrating the types of print media, FIG. 4 is a flowchart of the embodiment, and FIG. The drawing is an explanatory view showing the printing and projection data of the printing medium of the embodiment. In the figure, 7 is a character projection processing unit, 7a is a character projection processing unit, 8 is a counting unit, 8a is a pixel counting unit, 9 is a storage unit, 9a is a medium print range memory, 10 is a collating unit, and 10a is a comparison / discrimination unit. Indicates.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】テスト用文字が印字可能範囲全面に印字さ
れた媒体の該文字を読取手段によって読み取り、該読み
取ったイメージデータの文字行及び文字列の文字単位に
投影処理を行う文字投影処理手段と、 該文字投影処理手段によって投影処理された文字の投影
データの行及び列の両端文字の中心位置間のビット数を
夫々計数する計数手段と、 印字範囲が異なる複数種類の媒体の該印字範囲がビット
数で記憶された記憶手段と、 該計数手段によって計数された行及び列の両端文字の中
心位置間のビット数及び該記憶手段に記憶された複数の
印字範囲のビット数を順次照合する照合手段とを備え、 該照合手段の照合により一致した時に該印字範囲に対応
する媒体種類と判定することを特徴とする印字媒体判別
装置。
1. A character projection processing means for reading the character of a medium on which a test character is printed on the entire printable range by a reading means and performing a projection process for each character line and character string of the read image data. And counting means for respectively counting the number of bits between the center positions of the characters on both ends of the rows and columns of the projection data of the characters projected by the character projection processing means, and the printing ranges of a plurality of types of media having different printing ranges. And the number of bits of the plurality of print ranges stored in the storage means are sequentially collated with the number of bits stored between the storage means and the center position of the characters at both ends of the row and column counted by the counting means. A print medium discriminating apparatus comprising: a collating unit, wherein when the collation by the collating unit results in a match, it is determined that the medium type corresponds to the print range.
JP62179516A 1987-07-17 1987-07-17 Print medium discrimination device Expired - Lifetime JPH0814836B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62179516A JPH0814836B2 (en) 1987-07-17 1987-07-17 Print medium discrimination device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62179516A JPH0814836B2 (en) 1987-07-17 1987-07-17 Print medium discrimination device

Publications (2)

Publication Number Publication Date
JPS6421677A JPS6421677A (en) 1989-01-25
JPH0814836B2 true JPH0814836B2 (en) 1996-02-14

Family

ID=16067153

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62179516A Expired - Lifetime JPH0814836B2 (en) 1987-07-17 1987-07-17 Print medium discrimination device

Country Status (1)

Country Link
JP (1) JPH0814836B2 (en)

Also Published As

Publication number Publication date
JPS6421677A (en) 1989-01-25

Similar Documents

Publication Publication Date Title
JP2575539B2 (en) How to locate and identify money fields on documents
US4319331A (en) Curve follower
JPH0814836B2 (en) Print medium discrimination device
JPH04502526A (en) image recognition
JPH0831133B2 (en) Print interval judgment method
JP3116622B2 (en) Printed line detection method
JPS6041396B2 (en) Address detection device
JPS6156657B2 (en)
JPS6010671B2 (en) pattern reading device
JP2570703B2 (en) Character reader
JPS6043556B2 (en) character reading device
JPH0721814B2 (en) Character / mark reader
JP2705354B2 (en) Printing device with print density detection function
JPS6115478B2 (en)
JPH0461782B2 (en)
JPS6227435B2 (en)
JP2875330B2 (en) Character recognition method
JPH0596811A (en) Printing method
JPS62295192A (en) Optical character image reader
JPH04139593A (en) Postal code number recognition device
JP3009325B2 (en) How to analyze Karla code
JP3747602B2 (en) Image processing method and image processing apparatus
JP2748207B2 (en) How to read barcodes on voting tickets
JPS61214078A (en) image input device
JPH03282895A (en) Optical character reader