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
JPH0831133B2 - Print interval judgment method - Google Patents
[go: Go Back, main page]

JPH0831133B2 - Print interval judgment method - Google Patents

Print interval judgment method

Info

Publication number
JPH0831133B2
JPH0831133B2 JP62179515A JP17951587A JPH0831133B2 JP H0831133 B2 JPH0831133 B2 JP H0831133B2 JP 62179515 A JP62179515 A JP 62179515A JP 17951587 A JP17951587 A JP 17951587A JP H0831133 B2 JPH0831133 B2 JP H0831133B2
Authority
JP
Japan
Prior art keywords
character
characters
counting
bits
projection
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
JP62179515A
Other languages
Japanese (ja)
Other versions
JPS6421676A (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 JP62179515A priority Critical patent/JPH0831133B2/en
Publication of JPS6421676A publication Critical patent/JPS6421676A/en
Publication of JPH0831133B2 publication Critical patent/JPH0831133B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 〔概要〕 媒体上の印字の文字間隔判定方式であって、文字投影
処理手段により媒体から読み取ったイメージデータを文
字行の文字単位に投影処理し、両端文字の中心位置を求
め、第2の計数手段で両端文字の中心位置間のビット数
を計数し、記憶手段に記憶された複数種類の文字間隔値
のビット数に基いて、演算手段によって文字行の文字数
が順次演算され、第1の計数手段によって計数された文
字数と順次照合手段で照合して、一致した文字数の文字
間隔値を求めることにより、正確且つ容易に印字文字間
隔が判定できる。
DETAILED DESCRIPTION [Overview] A character spacing determination method for printing on a medium, in which image data read from the medium by a character projection processing unit is subjected to projection processing in character units of character lines, and the center positions of characters on both ends are projected. Then, the second counting means counts the number of bits between the center positions of the characters at both ends, and the number of characters in the character line is sequentially calculated by the calculation means based on the number of bits of the character spacing values stored in the storage means. The printed character spacing can be accurately and easily determined by sequentially comparing the calculated number of characters counted by the first counting means with the matching means and obtaining the character spacing value of the matched number of characters.

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

本発明は媒体上の印字の文字間隔判定方式に係り、特
に媒体から読み取られた印字のイメージデータを用いて
印字間隔を判定することができる文字間隔判定方式に関
するものである。
The present invention relates to a character spacing determination method for printing on a medium, and more particularly to a character spacing determination method capable of determining a printing spacing using image data of printing read from a medium.

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

プリンタ等によって媒体に印字された文字の印字品質
検査において、印字文字間隔の判定を正しく、且つ容易
に判別する方法が必要であり、従来スケールによって文
字間隔を測定しているが、この方法によると、例えば1/
10インチピッチか1/12インチピッチかの文字間隔を判定する場
合、 1/10インチピッチの規格は、2.54mm±0.5mmで、2.04mm〜
3.04mmとなり、また 1/12インチピッチの規格は、2.12mm±0.5mmで、1.62mm〜
2.62mmとなる。
In the print quality inspection of characters printed on a medium by a printer or the like, a method for correctly and easily determining the character spacing for printing is required. Conventionally, the character spacing is measured by a scale. , For example 1 /
When judging the character spacing of 10 inch pitch or 1/12 inch pitch, the standard of 1/10 inch pitch is 2.54 mm ± 0.5 mm, 2.04 mm ~
3.04mm, and the standard for 1/12 inch pitch is 2.12mm ± 0.5mm, 1.62mm ~
It will be 2.62 mm.

従って許容寸法範囲に重なる部分,即ち、2.04mm〜2.
62mmがあり、単純に文字間隔を測定して判定することが
できない場合があり、また手作業で面倒であるため、測
定の自動化が要請されているという問題点がある。
Therefore, the part that overlaps the allowable size range, that is, 2.04 mm to 2.
Since it is 62 mm, it may not be possible to simply determine the character spacing for determination, and since it is troublesome by hand, there is a problem that automation of measurement is required.

本発明は、媒体から読み取られた印字のイメージデー
タを用いて印字間隔を判定することができる文字間隔判
定方式の提供を目的としている。
It is an object of the present invention to provide a character spacing determination method capable of determining a printing spacing using image data of printing read from a medium.

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

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

図において、 7は媒体上に印字された文字を読取手段によって読み
取り、読み取ったイメージデータの文字行の文字単位に
投影処理を行う文字投影処理手段、 8は文字行の文字数を計数する第1の計数手段、 9は文字投影処理手段7によって投影処理された文字
の投影データの両端文字の中心位置間のビット数を計数
する第2の計数手段、 10は印字される複数種類の文字間隔値がビット数で記
憶された記憶手段、 11は第2の計数手段9によって計数された投影データ
の両端文字の中心位置間のビット数,及び記憶手段10に
記憶された複数種類の文字間隔値のビット数に基いて文
字行の文字数を順次演算する演算手段、 12は第1の計数手段8によって計数された文字数,及
び演算手段11によって演算された文字数を順次照合する
照合手段である。
In the figure, 7 is a character projection processing means for reading characters printed on a medium by a reading means and performing a projection process for each character line of the read image data, and 8 is a first character count processing for counting the number of characters in the character line. A counting means, 9 is a second counting means for counting the number of bits between the center positions of the characters on both ends of the projection data of the character projected by the character projection processing means, and 10 is a plurality of types of character spacing values to be printed. Storage means stored by the number of bits, 11 is the number of bits between the center positions of the characters on both ends of the projection data counted by the second counting means 9, and bits of a plurality of types of character interval values stored in the storage means 10. A calculating means for sequentially calculating the number of characters in the character line based on the number, 12 is a matching means for sequentially matching the number of characters counted by the first counting means 8 and the number of characters calculated by the calculating means 11. .

従って照合手段12の照合により一致した時に、演算さ
れた文字数に対応する文字間隔値であると判定するよう
に構成されている。
Therefore, when they are matched by the matching of the matching means 12, it is determined that the character spacing value corresponds to the calculated number of characters.

〔作用〕[Action]

文字投影処理手段7により媒体から読み取ったイメー
ジデータを文字行の文字単位に投影処理を行い、両端文
字の中心位置を求める。
The image data read from the medium is projected by the character projection processing means 7 for each character of a character line to obtain the center positions of the characters at both ends.

次に第2の計数手段9は両端文字の中心位置間のビッ
ト数を計数し、記憶手段10に記憶された複数種類の文字
間隔値のビット数が読み出されて、演算手段11によって
文字行の文字数が順次演算されて、第1の計数手段8に
よって計数された文字数と順次照合手段12で照合され
る。かくて照合によって一致した時に文字数に対応する
文字間隔値と判定することにより、自動的に文字間隔を
正確に判定することができる。
Next, the second counting means 9 counts the number of bits between the center positions of the characters at both ends, the number of bits of the character spacing values of a plurality of types stored in the storage means 10 is read out, and the calculating means 11 performs the character line processing. Is sequentially calculated, and the number of characters counted by the first counting means 8 is sequentially collated by the collating means 12. Thus, the character spacing can be automatically and accurately determined by determining the character spacing value corresponding to the number of characters when they match by collation.

〔実施例〕〔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 for each character of a character line of image data, and obtains the center position of the projection data of each character.

文字計数部8aは、各文字の投影データの中心位置に基
いて行の文字数を計数する。
The character counting unit 8a counts the number of characters in a line based on the center position of the projection data of each character.

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

文字間隔値メモリ10aは、印字される複数種類の文字
間隔値がビット数で記憶されている。例えば1/nインチピッ
チ,1/mインチピッチ等のビット数n0,m0等が記憶されてい
る。
The character spacing value memory 10a stores a plurality of types of character spacing values to be printed in bit numbers. For example, the bit numbers n 0 and m 0 of 1 / n inch pitch and 1 / m inch pitch are stored.

演算部11aは、投影データの両端文字の中心位置間の
ビット数と文字間隔値メモリ10aに記憶された複数種類
の文字間隔値のビット数から行の文字数を順次演算す
る。
The calculation unit 11a sequentially calculates the number of characters in the line from the number of bits between the center positions of the characters on both ends of the projection data and the number of bits of a plurality of types of character interval values stored in the character interval value memory 10a.

比較判定部12aは、文字計数部8aによって計数された
文字数と演算種類11によって演算された文字数を順次一
致するまで比較し、一致した時にその文字数に対応する
文字間隔であると判定する。
The comparison determination unit 12a sequentially compares the number of characters counted by the character counting unit 8a and the number of characters calculated by the calculation type 11 until they match, and when they match, determines that the character interval corresponds to the number of characters.

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

このような構成及び機能を有するので、第3図に示す
ように、媒体1には文字Hが行,及び列に印字されてお
り、この文字Hの文字間隔dを求める場合の作用を第4
図のフローチャートにより説明する。
With such a configuration and function, the character H is printed in rows and columns on the medium 1 as shown in FIG. 3, and the operation when the character spacing d of the character H is obtained is the fourth.
This will be described with reference to the flowchart in the figure.

媒体1から読み取られて2値化されたイメージデー
タがイメージバッファ6に格納される。
The image data read from the medium 1 and binarized is stored in the image buffer 6.

文字投影処理部7aにより、第3図に示す投影範囲X
の投影処理を行い、投影データより両端の文字中心位置
を求める。図の下部に投影データを示している。
By the character projection processing unit 7a, the projection range X shown in FIG.
Is performed, and the character center positions at both ends are obtained from the projection data. Projection data is shown at the bottom of the figure.

文字計数部8aは文字中心位置に基いて行の文字数N
を求める。
The character counting unit 8a determines the number of characters in the line N based on the character center position.
Ask for.

画素計数部9aは両端文字の文字中心位置間のビット
数Bを計数する。
The pixel counting unit 9a counts the number of bits B between the character center positions of both characters.

演算部9aは文字間隔値メモリ10aから読み出された1
/nインチピッチのビット数bnで文字中心位置間のビット数
Bを割って文字数Nnを求める。
The calculation unit 9a reads 1 from the character interval value memory 10a.
The number of characters Nn is obtained by dividing the number of bits B between the character center positions by the number of bits bn of / n inch pitch.

比較判定部12aで文字数N,Nnを比較し、N=Nnであ
れば、文字間隔dは1/nインチピッチであると判定する。
The comparison / determination unit 12a compares the numbers of characters N and Nn, and if N = Nn, the character spacing d is determined to be 1 / n inch pitch.

N≠Nnであれば、のフローと同様にして1/mインチピ
ッチのビット数bmで文字中心位置間のビット数Bを割っ
て文字数Nmを求める。
If N ≠ Nn, the number of characters Nm is obtained by dividing the number of bits B between the character center positions by the number of bits bm of 1 / m inch pitch in the same manner as the flow of.

比較判定部12aで文字数N,Nmを比較し、N=Nmであ
れば、文字間隔dは1/mインチピッチであると判定する。
The comparison / determination unit 12a compares the numbers of characters N and Nm, and if N = Nm, the character spacing d is determined to be 1 / m inch pitch.

もしN≠Nmであれば、更に異なる文字間隔のビット
数を文字間隔値メモリ10aから読み出して演算して一致
するまで比較判定が繰り返される。
If N ≠ Nm, the number of bits with a different character interval is read from the character interval value memory 10a, calculated, and the comparison determination is repeated until they match.

判定結果はCRT13及びプリンタ14に出力される。 The determination result is output to the CRT 13 and the printer 14.

このようにして、媒体1の印字文字間隔を自動的に正
確に判定することができる。
In this way, the print character spacing on the medium 1 can be automatically and accurately determined.

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

以上説明したように本発明によれば、媒体上の印字の
文字間隔を自動的に判定することができるという効果が
ある。
As described above, according to the present invention, there is an effect that the character spacing for printing on the medium can be automatically determined.

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

第1図は本発明の原理ブロック図、 第2図は本発明による実施例を示すブロック図、 第3図は実施例の説明図、 第4図は実施例のフローチャートである。 図において、 1は媒体、2は読取部、7は文字投影処理手段、7aは文
字投影処理部、8は第1の計数手段、8aは文字計数部、
9は第2の計数手段、9aは画素計数部、10は記憶手段、
10aは文字間隔値メモリ、11は演算手段、11aは演算部、
12は照合手段、12aは比較判定部を示す。
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 of the embodiment, and FIG. 4 is a flowchart of the embodiment. In the figure, 1 is a medium, 2 is a reading unit, 7 is a character projection processing unit, 7a is a character projection processing unit, 8 is a first counting unit, 8a is a character counting unit,
9 is a second counting means, 9a is a pixel counting section, 10 is a storage means,
10a is a character spacing value memory, 11 is a calculation means, 11a is a calculation unit,
Reference numeral 12 represents a collating means, and 12a represents a comparison and determination unit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】媒体上に印字された文字を読取手段によっ
て読み取り、該読み取ったイメージデータの文字行の文
字単位に投影処理を行う文字投影処理手段(7)と、 該文字行の文字数を計数する第1の計数手段(8)と、 該文字投影処理手段(7)によって投影処理された文字
の投影データの両端文字の中心位置間のビット数を計数
する第2の計数手段(9)と、 該印字される複数種類の文字間隔値がビット数で記憶さ
れた記憶手段(10)と、 該第2の計数手段(9)によって計数された投影データ
の両端文字の中心位置間のビット数及び該記憶手段(1
0)に記憶された複数種類の文字間隔値のビット数に基
いて文字行の文字数を順次演算する演算手段(11)と、 該第1の計数手段(8)によって計数された文字数及び
該演算手段(11)によって演算された文字数を順次照合
する照合手段(12)とを備え、 該照合手段(12)の照合により一致した時に該演算され
た文字数に対応する文字間隔値であると判定することを
特徴とする印字間隔判定方式。
1. A character projection processing means (7) for reading a character printed on a medium by a reading means and performing a projection process for each character line of the read image data, and counting the number of characters in the character line. First counting means (8), and second counting means (9) for counting the number of bits between the central positions of the characters on both ends of the projection data of the character projected by the character projection processing means (7). A storage means (10) in which the plurality of types of character spacing values to be printed are stored in the number of bits, and a number of bits between the center positions of the double-ended characters of the projection data counted by the second counting means (9) And the storage means (1
Calculation means (11) for sequentially calculating the number of characters of a character line based on the number of bits of the character spacing values stored in 0), the number of characters counted by the first counting means (8) and the calculation A collating means (12) for sequentially collating the number of characters calculated by the means (11), and determining that the character spacing value corresponds to the calculated number of characters when they are matched by the collation of the collating means (12). A printing interval determination method characterized in that
JP62179515A 1987-07-17 1987-07-17 Print interval judgment method Expired - Lifetime JPH0831133B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62179515A JPH0831133B2 (en) 1987-07-17 1987-07-17 Print interval judgment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62179515A JPH0831133B2 (en) 1987-07-17 1987-07-17 Print interval judgment method

Publications (2)

Publication Number Publication Date
JPS6421676A JPS6421676A (en) 1989-01-25
JPH0831133B2 true JPH0831133B2 (en) 1996-03-27

Family

ID=16067137

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62179515A Expired - Lifetime JPH0831133B2 (en) 1987-07-17 1987-07-17 Print interval judgment method

Country Status (1)

Country Link
JP (1) JPH0831133B2 (en)

Also Published As

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

Similar Documents

Publication Publication Date Title
US5577774A (en) Method of recording/reproducing data of mesh pattern, and apparatus therefor
US4608489A (en) Method and apparatus for dynamically segmenting a bar code
EP0379546B1 (en) Method and apparatus for reading characters
US5591957A (en) Apparatus for reading mesh pattern image data having bars along upper and lower sides of mesh pattern and a boundary line between horizontally adjacent dark and light area of mesh pattern
JPH0831133B2 (en) Print interval judgment method
JPS62553B2 (en)
US6327378B1 (en) Character recognition method
JPH02272471A (en) System for calculating amount of used developer
JPH0325585A (en) Erroneous reading prevention device in bar code reader
JPH0814836B2 (en) Print medium discrimination device
JPH0831132B2 (en) Print position measurement method
JP3842992B2 (en) Character string reading apparatus and character string reading method
JP2548692B2 (en) Density value determination method for multiple-stage print management scale
JP2900714B2 (en) Barcode detection method
JP2705354B2 (en) Printing device with print density detection function
JPH0679329B2 (en) Image sensor read gradation inspection method
JP2784502B2 (en) Method and apparatus for recording and reading two-dimensional data on digital data recording paper.
JP3116622B2 (en) Printed line detection method
JPS6230471B2 (en)
JPS6043556B2 (en) character reading device
JP3008145B2 (en) Character extraction method and character recognition method
JP2748207B2 (en) How to read barcodes on voting tickets
JPH07134758A (en) Display with two-dimensional code and two-dimensional code reader
JPS6041396B2 (en) Address detection device
JPS6227435B2 (en)