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
JPH0831132B2 - Print position measurement method - Google Patents
[go: Go Back, main page]

JPH0831132B2 - Print position measurement method - Google Patents

Print position measurement method

Info

Publication number
JPH0831132B2
JPH0831132B2 JP62179499A JP17949987A JPH0831132B2 JP H0831132 B2 JPH0831132 B2 JP H0831132B2 JP 62179499 A JP62179499 A JP 62179499A JP 17949987 A JP17949987 A JP 17949987A JP H0831132 B2 JPH0831132 B2 JP H0831132B2
Authority
JP
Japan
Prior art keywords
character
medium
projection
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
JP62179499A
Other languages
Japanese (ja)
Other versions
JPS6421675A (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 JP62179499A priority Critical patent/JPH0831132B2/en
Publication of JPS6421675A publication Critical patent/JPS6421675A/en
Publication of JPH0831132B2 publication Critical patent/JPH0831132B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔概要〕 媒体上の印字文字の位置測定方式であって、読取手段
によって読み取ったイメージデータの文字行及び文字列
毎に文字単位に投影処理を行う文字投影処理手段,投影
処理された文字の投影データの中心位置間のビット数を
計数する計数手段,計数されたビット数を寸法に換算す
ると共に、文字の投影データの各中心位置間の寸法の差
を演出する演算手段を備えることにより、印字文字の位
置を自動的に測定することができる。
DETAILED DESCRIPTION OF THE INVENTION [Outline] A method for measuring the position of a printed character on a medium, wherein character projection processing means performs projection processing in character units for each character line and character string of image data read by a reading means, Counting means for counting the number of bits between the center positions of the projection data of the projected characters, calculation for converting the counted number of bits into a dimension, and producing a difference in the dimension between the center positions of the character projection data By providing the means, the position of the printed character can be automatically measured.

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

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

プリンタによる印字文字の打出し位置,文字の傾き,
及び文字ズレ等を正確に,且つ容易に求めることができ
る方法が望まれている。
Printing position of characters printed by printer, inclination of characters,
There is a demand for a method capable of accurately and easily obtaining the character shift and the like.

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

プリンタ等によって媒体に印字された文字の打出し位
置,文字の傾き,及び文字ズレ等を測定する方法として
は、媒体の縁から印字開始文字までの距離,印字ライン
の斜行等をスケールによって測定しており、時には拡大
鏡を併用して測定する方法が行われている。
As a method of measuring the printing position of characters printed on the medium by a printer, the inclination of the characters, and the character deviation, the distance from the edge of the medium to the printing start character, the skew of the printing line, etc. are measured by a scale. Sometimes, a method of measuring with a magnifying glass is used.

以上の従来方法によると、測定が面倒で時間が掛かる
ばかりでなく、測定精度が得られないという問題点があ
り、これらの測定を自動化して作用能率,及び測定精度
を高める方法が要請されている。
According to the above conventional method, there is a problem that not only the measurement is troublesome and time-consuming, but also the measurement accuracy cannot be obtained. Therefore, a method for automating these measurements to improve the working efficiency and the measurement accuracy is demanded. There is.

本発明は、媒体から読み取られた印字のイメージデー
タを用いて印字位置を測定することができる文字位置測
定方式を提供することを目的としている。
An object of the present invention is to provide a character position measuring method capable of measuring a print position by using print image data read from a medium.

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

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

図において、 7は媒体から読み取ったイメージデータの文字行,及
び文字列毎に文字単位に投影処理を行う文字投影処理手
段、 8は文字投影処理手段7によって投影処理された文字
の投影データの各中心位置間のビット数と媒体上の基準
位置,及び基準位置に最も近い文字の投影データの中心
位置間のビット数を計数する計数手段、 9は計数手段8によって計数されたビット数を寸法に
換算すると共に、中心位置間の寸法の差を演算する演算
手段である。
In the figure, 7 is a character line of image data read from a medium, and character projection processing means for performing a projection process for each character string on a character string basis. Counting means for counting the number of bits between the center positions, the reference position on the medium, and the number of bits between the center positions of the projection data of the characters closest to the reference position, and 9 is the dimension of the number of bits counted by the counting means 8. It is a calculating unit that calculates and calculates the difference in size between the center positions.

〔作用〕[Action]

文字投影処理手段7により媒体から読み取ったイメー
ジデータを文字行,及び文字列毎に文字単位に投影処理
を行い、各文字の中心位置を求める。
The image data read from the medium by the character projection processing unit 7 is subjected to a projection process for each character line and each character string to obtain the center position of each character.

次に計数手段8は各中心位置間のビット数と、媒体上
の基準位置,及び基準位置に最も近い文字の投影データ
の中心位置間のビット数を計数する。
Next, the counting means 8 counts the number of bits between each center position, the reference position on the medium, and the number of bits between the center positions of the projection data of the characters closest to the reference position.

そこで計数されたビット数を演算手段9により寸法に
換算すると共に、中心位置間の寸法の差を演算して出力
する。このようにして媒体上の印字文字の位置を精度良
く自動的に測定することができる。
Then, the counted number of bits is converted into a dimension by the computing means 9, and the dimension difference between the center positions is computed and output. In this way, it is possible to accurately and automatically measure the position of the printed character on the medium.

〔実施例〕〔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は、文字の投影データの中心位置間のビ
ット数と、媒体1の基準位置,例えば位置決め搬送機構
3に位置決めされた端面,及び端面に最も近い文字,即
ち、行の最初の打出し文字の投影データの中心位置間の
ビット数を計数する。
The pixel counting unit 8a detects the number of bits between the center positions of the character projection data, the reference position of the medium 1, for example, the end face positioned by the positioning and transporting mechanism 3 and the character closest to the end face, that is, the first embossing of the line. Then, the number of bits between the center positions of the projection data of the character is counted.

演算部9aは、換算データメモリ10に記憶された換算計
数に基いて画素計数部8aが計数したビット数をmmに換算
すると共に、文字の投影データの中心位置間の距離の差
を演算する。
The calculation unit 9a converts the number of bits counted by the pixel counting unit 8a into mm based on the conversion count stored in the conversion data memory 10 and calculates the difference in distance between the center positions of the character projection data.

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

このような構成及び機能を有するので、第3図に示す
ように、媒体1には文字Hが行,及び列に印字されてお
り、この文字Hの上下左右端打出し位置a1〜d1,a2
d2,文字間隔e,行間隔f,文字上下のズレg,印字行の傾き
iを測定する場合の作用を第4図のフローチャートによ
り説明する。
With such a configuration and function, as shown in FIG. 3, characters H are printed on the medium 1 in rows and columns, and the upper, lower, left, and right end ejection positions a 1 to d 1 of this character H are printed. , A 2 ~
d 2, character spacing e, line spacing f, character vertical deviation g, will be described with reference to the flowchart of FIG. 4 the effect of the case of measuring the inclination i of the print line.

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

文字投影処理部7aにより、第5図(a)に示す投影
範囲Xs,Ysの投影処理を行い、投影データより横/縦方
向の文字中心位置を夫々求める。第5図(b)に投影範
囲Xsの投影データを例示している。
The character projection processing unit 7a performs the projection processing of the projection ranges Xs and Ys shown in FIG. 5 (a) to obtain the horizontal / vertical character center positions from the projection data. FIG. 5 (b) shows an example of projection data of the projection range Xs.

そこで画素計数8aは投影範囲Xsの文字中心位置より
文字間隔eを求め、演算部9aで寸法に換算する。
Therefore, the pixel count 8a obtains the character interval e from the character center position of the projection range Xs, and converts it into the dimension by the calculation unit 9a.

また上段の左右端打出し位置a1,b1を夫々投影範囲
Xsの左端文字中心位置と媒体1の左端面,及び右端文字
中心位置と媒体1の右端面より求め、寸法に換算する。
In addition, the projection positions a 1 and b 1 on the right and left edges of the upper row are projected ranges, respectively.
It is calculated from the left end character center position of Xs and the left end surface of medium 1, and the right end character center position and the right end surface of medium 1, and converted into dimensions.

また左端の上下端打出し位置c1,d1を夫々投影範囲
Ysの上端文字中心位置の媒体1の上端面,及び下端文字
中心位置と媒体1の下端面より求め、寸法に換算する。
In addition, the projection positions c 1 and d 1 at the upper and lower ends of the left end are projected ranges, respectively.
The size is calculated from the upper end surface of the medium 1 at the upper end character center position of Ys, the lower end character center position and the lower end surface of the medium 1, and converted into dimensions.

次に投影範囲Xsの最終文字中心位置より投影範囲Ye
の投影処理を行い、文字中心位置を求める。
Next, the projection range Ye from the center position of the last character of the projection range Xs
Is performed to obtain the character center position.

更に投影範囲Ysの第2文字中心位置より投影範囲X2
の投影を行い、中心位置を求める。
Furthermore, from the center position of the second character in the projection range Ys, the projection range X 2
Is projected to find the center position.

続いて投影範囲Ysの最終文字中心位置より投影範囲
Xeの投影処理を行い、中心位置を求める。
Next, the projection range from the last character center position of the projection range Ys
Perform the Xe projection process to find the center position.

そこで画素係数部8aは下段の左右端打出し位置a2
b2を夫々投影範囲Xeの左端文字中心位置と媒体1の左端
面,及び右端文字中心位置と媒体1の右端面より求め、
演算部9aで寸法に換算する。
Therefore, the pixel coefficient part 8a is the lower right and left end ejection positions a 2 ,
b 2 is calculated from the left end character center position of the projection range Xe and the left end face of the medium 1, and the right end character center position and the right end face of the medium 1, respectively.
The calculation unit 9a converts the dimensions.

また右端の上下端打出し位置c2,d2を夫々投影範囲
Yeの上端文字中心位置と媒体1の上端面,及び下端文字
中心位置と媒体1の下端面より求め、寸法に換算する。
In addition, the projection positions c 2 and d 2 at the upper and lower ends of the right end are projected ranges, respectively.
It is calculated from the upper end character center position of Ye and the upper end surface of the medium 1, and the lower end character center position and the lower end surface of the medium 1, and converted into dimensions.

投影範囲Ysの文字中心位置より行間隔fを求め、寸
法に換算する。
The line spacing f is obtained from the character center position of the projection range Ys and converted into dimensions.

演算部9aは文字列の傾きiを投影範囲Ys,Yeの夫々
の文字中心位置の差より求める。
The calculator 9a obtains the inclination i of the character string from the difference between the character center positions of the projection ranges Ys and Ye.

また文字桁のズレgを投影範囲Xs,X2の夫々の文字
中心位置の差より求める。
The projection of the character digit shift g range Xs, obtained from the difference between the character center position of each of X 2.

上下左右の打出し位置a1〜d1,a2〜d2,文字間隔e,
行間隔f,印字の傾きi,及び文字上下ズレgは順次CRT11
及びプリンタ12に出力される。
Up / down / left / right embossing positions a 1 to d 1 , a 2 to d 2 , character spacing e,
Line spacing f, print inclination i, and character up / down deviation g
And output to the printer 12.

また第6図(a)及び(b)に異なる実施例を示して
おり、上記実施例と異なるのは媒体1に基準線,例えば
印字範囲枠を印刷し、この枠を基準として文字位置を測
定する方法としたことである。
6 (a) and 6 (b) show different embodiments. The difference from the above embodiments is that a reference line, for example, a print range frame is printed on the medium 1 and the character position is measured with this frame as a reference. That is the way to do it.

即ち、画素計数部8aは印字範囲枠から文字中心位置ま
での距離を計数するように制御される。
That is, the pixel counting unit 8a is controlled to count the distance from the print range frame to the character center position.

従って媒体1の端面認識を必要とせずに文字位置等を
測定することができる。
Therefore, the character position and the like can be measured without the need to recognize the end surface of the medium 1.

このようにして、媒体1の印字位置等を自動的に正確
に測定することができる。
In this way, the printing position and the like of the medium 1 can be automatically and accurately measured.

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

以上説明したように本発明によれば、媒体上の印字の
文字位置を自動的,且つ正確に測定することができると
いう効果がある。
As described above, according to the present invention, there is an effect that the character position of printing on the medium can be automatically and accurately measured.

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

第1図は本発明の原理ブロック図、 第2図は本発明による実施例を示すブロック図、 第3図は実施例の説明図、 第4図は実施例のフローチャート、 第5図は実施例の説明図、 第6図は異なる実施例の測定方法を示す説明図である。 図において、 1は媒体、2は読取部、7は文字投影処理手段、7aは文
字投影処理部、8は計数手段、8aは画素計数部、9は演
算手段、9aは演算部、10は換算データメモリを示す。
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, FIG. 4 is a flowchart of the embodiment, and FIG. FIG. 6 is an explanatory view showing a measuring method of a different 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 counting unit, 8a is a pixel counting unit, 9 is a computing unit, 9a is a computing unit, and 10 is a conversion unit. Indicates a data memory.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】媒体に印字された文字を読取手段によって
読み取り、該読み取ったイメージデータの文字行及び文
字列毎に文字単位に投影処理を行う文字投影処理手段
(7)と、 該文字投影処理手段(7)によって投影処理された文字
の投影データの各中心位置間のビット数と該媒体上の基
準位置及び該基準位置に最も近い文字の投影データの中
心位置間のビット数を計数する計数手段(8)と、 該計数手段(8)によって計数されたビット数を寸法に
換算すると共に、該中心位置間の寸法の差を演算する演
算手段(9)とを備えることを特徴とする印字位置測定
方式。
1. A character projection processing means (7) for reading characters printed on a medium by a reading means and projecting character lines and character strings of the read image data on a character-by-character basis, and the character projection processing. A count for counting the number of bits between the central positions of the projection data of the characters projected by the means (7), the reference position on the medium, and the number of bits between the central positions of the projection data of the characters closest to the reference position. Printing comprising means (8) and operation means (9) for converting the number of bits counted by the counting means (8) into a size and calculating a size difference between the center positions Position measurement method.
JP62179499A 1987-07-17 1987-07-17 Print position measurement method Expired - Lifetime JPH0831132B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62179499A JPH0831132B2 (en) 1987-07-17 1987-07-17 Print position measurement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62179499A JPH0831132B2 (en) 1987-07-17 1987-07-17 Print position measurement method

Publications (2)

Publication Number Publication Date
JPS6421675A JPS6421675A (en) 1989-01-25
JPH0831132B2 true JPH0831132B2 (en) 1996-03-27

Family

ID=16066887

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62179499A Expired - Lifetime JPH0831132B2 (en) 1987-07-17 1987-07-17 Print position measurement method

Country Status (1)

Country Link
JP (1) JPH0831132B2 (en)

Also Published As

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

Similar Documents

Publication Publication Date Title
EP0178090A1 (en) Volume determination process
CN111161339B (en) A distance measurement method, apparatus, device and computer readable medium
US20040120603A1 (en) Enhancing the resolution of measurement systems employing image capturing systems to measure lengths
JPH0831132B2 (en) Print position measurement method
CN114821589A (en) Vehicle VIN code detection method and device
JP2005037341A (en) Electronic length / angle measuring instrument
JPH0799566A (en) Calibration method of moving stage in image input device
JP2001004345A (en) Image measuring device
JPH0831133B2 (en) Print interval judgment method
CN117746452B (en) Traditional table data reading method based on image recognition
JPS5914782B2 (en) Binary pattern digitization processing method
JP2548692B2 (en) Density value determination method for multiple-stage print management scale
CN109631765A (en) Blurring sensor and its measurement method
JPS6230471B2 (en)
JP4102741B2 (en) Optical information reader and image data analysis method
JP3464736B2 (en) Pixel position error measuring device
JP2749946B2 (en) Character recognition method
JPH11301077A (en) Apparatus and method for evaluating dot code
CN118287387A (en) A method and system for sorting chips with poor appearance
CN117073623A (en) A digital level barcode ruler encoding method and measuring instrument
CN119211429A (en) A method for detecting the origin of a drawing by a scanner
JPH0679329B2 (en) Image sensor read gradation inspection method
JP2748207B2 (en) How to read barcodes on voting tickets
CN121855357A (en) Visual dimension conversion method
CN121033124A (en) Paper size detection methods, computer systems, computer-readable storage media, and computer program products