JPH01278364A - Method for measuring wire stroke in wire dot printer - Google Patents

Method for measuring wire stroke in wire dot printer

Info

Publication number
JPH01278364A
JPH01278364A JP63107554A JP10755488A JPH01278364A JP H01278364 A JPH01278364 A JP H01278364A JP 63107554 A JP63107554 A JP 63107554A JP 10755488 A JP10755488 A JP 10755488A JP H01278364 A JPH01278364 A JP H01278364A
Authority
JP
Japan
Prior art keywords
pin
noise
wire
areas
stroke
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.)
Pending
Application number
JP63107554A
Other languages
Japanese (ja)
Inventor
Shinji Kanda
真司 神田
Tsuguhito Maruyama
次人 丸山
Masahiko Sato
雅彦 佐藤
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 JP63107554A priority Critical patent/JPH01278364A/en
Publication of JPH01278364A publication Critical patent/JPH01278364A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Dot-Matrix Printers And Others (AREA)

Abstract

PURPOSE:To eliminate the adverse influence of noise to prevent an erroneous detection caused by noise, by a method wherein, data is sorted by labelling into a plurality of common areas, a horizontal projection distribution is applied to upper two areas with respect to the number of pixels, and the upper end and the lower ends of a pin are detected. CONSTITUTION:Because noises N1-N3 are caused by the application of dust generated from a wire etc. to a separator etc., the area of the noise is normally smaller than that of an upper end E1 or a lower end E2. With respect to image data which has been already vertically differentiated, a common area made of continuous pixels is detected and labeled with the same label, e.g. a label number. Then, the data is sorted by every area. Next, upper two areas with respect to the number of pixels included therein are selected from among the labeled areas, and a horizontal projection distribution is applied to the two areas. In this manner, since noise caused by the dust of a separator can be eliminated, the possibility of the stroke calculation using a noise as an end point is eliminated, and the reliability can be enhanced.

Description

【発明の詳細な説明】 概要 ワイヤドツトプリンタのワイヤストローク計測方法に関
し、 ピン撮影時に取り込んでしまったノイズによって、スト
ローク長を誤って測定してしまうことのないワイヤドツ
トプリンタのワイヤストローク計測方法を提供すること
を目的とし、 ピン突出時と、ピン退避時の撮影画像データの差分をと
り、2値化・垂直方向微分処理した後、水平方向投影分
布をとることにより、ピンの上端点と下端点を検出し、
該ピンのストロークを計測するようにしたワイヤドツト
プリンタのワイヤストローク計測方法において、垂直方
向微分処理の後に、データを゛ラベリング処理して複数
の同一領域に分類し、画素数の多い上位2つの領域に対
して水平方向投影分布をとることによりノイズを排除し
、ノイズによる誤検出を防止するように構成する。
[Detailed Description of the Invention] Summary: To provide a wire stroke measuring method for a wire dot printer that prevents erroneous stroke length measurement due to noise introduced during pin photography. For this purpose, the upper and lower end points of the pin are detected by taking the difference between the captured image data when the pin is protruding and when the pin is retracting, binarizing and performing vertical differentiation processing, and then taking the horizontal projection distribution. death,
In the wire stroke measurement method of a wire dot printer that measures the stroke of the pin, after vertical differentiation processing, the data is subjected to labeling processing to be classified into multiple identical regions, and the top two regions with the highest number of pixels are On the other hand, by taking a horizontal projection distribution, noise is eliminated and erroneous detection due to noise is prevented.

産業上の利用分野 本発明はワイヤドツトプリンタのワイヤストローク計測
方法に関する。
FIELD OF THE INVENTION The present invention relates to a wire stroke measuring method for a wire dot printer.

ワイヤドツトプリンタは複数の細いワイヤを有するプリ
ンタヘッドで印字用紙とインクリボンを介してプラテン
を打撃し、印字用紙上に魚群で文字・図形を形成するも
のである。同時複写が可能であると共に、印字用紙の種
類を選ばないためにランニングコストが安く、OA機器
やパソコンの出力装置として広く用いられている。ワイ
ヤドツトプリンタの印字品質は、ワイヤのストローク(
ワイヤの引き込み位置と突出位置との間の距離)に大き
く依存するため、プリンタヘッドの組立時においてワイ
ヤが所定の許容ストローク内まで伸びているか否かを計
測する必要がある。
A wire dot printer uses a printer head having a plurality of thin wires to strike a platen through printing paper and an ink ribbon to form characters and figures on the printing paper using schools of fish. Simultaneous copying is possible, and running costs are low because it does not require any type of printing paper, so it is widely used as an output device for office automation equipment and personal computers. The print quality of a wire dot printer is determined by the stroke of the wire (
Since the distance between the retracted position and the protruded position of the wire greatly depends on the distance between the retracted position and the protruded position of the wire, it is necessary to measure whether the wire extends within a predetermined allowable stroke when assembling the printer head.

このようなワイヤストローク計測方法には、ワイヤ突出
時と、退避時の画像をカメラで撮影し、これらを画像処
理して、そのストロークを計測するようにしたものがあ
るが、ワイヤ撮影時にワイヤに付着している汚れ等の影
響により、画像データの中にノイズが混入し、誤計測し
てしまうことがあり、ノイズの有効な除去方法が望まれ
ている。
Some wire stroke measurement methods use a camera to take images of the wire when it is protruding and when it is being retracted, and these images are processed to measure the stroke. Due to the influence of attached dirt and the like, noise may be mixed into the image data, resulting in erroneous measurements, and an effective noise removal method is desired.

一方、画像処理の分野においては、画像平面に分布した
画像データの固まり、あるいは連続性を検出して、それ
ら画像パターンの固まり毎に番号付け(ラベリング)を
行って、原画像データの固まりをパターン化し、画像デ
ータの検査等を有効かつ迅速に行うようにするラベリン
グ処理が用いられている。
On the other hand, in the field of image processing, clusters or continuity of image data distributed on an image plane are detected, and each cluster of image patterns is numbered (labeled) to form a cluster of original image data. A labeling process is used to enable image data to be inspected effectively and quickly.

従来の技術 プリンタヘッドの構成については、従来は9ピンのプリ
ンタヘッドが主に使用されていたが、印字品質の向上の
ために現在は24ピンのプリンタヘッドが採用さ・れて
きている。これにともなって、ワイヤストローク計測装
置も従来の9ピン用のものをそのまま適用することがで
きないため、本発明者等によって以下に述べるような2
4ビン用のワイヤストローク計測装置が提案されている
Conventional Technology Regarding the configuration of printer heads, 9-pin printer heads have been mainly used in the past, but 24-pin printer heads are now being adopted to improve printing quality. Along with this, the conventional 9-pin wire stroke measuring device cannot be applied as is, so the inventors have developed a wire stroke measuring device as described below.
A wire stroke measuring device for 4 bins has been proposed.

プリンタヘッドは12個のピンから構成される1&目ピ
ン列及び同じく12個のピンから構成される2段目ピン
列とを有し、治具(ヘッド取付台)に取付られている。
The printer head has a first & second pin row made up of 12 pins and a second pin row made up of 12 pins, and is attached to a jig (head mounting base).

1段目ピン列と2段目ピン列との間には白色プラスチッ
ク薄板等のセパレータが治具を使用して設けられてあり
、セパレークの一方の側には、第1照明装置と1段目ピ
ン列を撮影する第1カメラが設けられ、セパレータの他
方の側::は第2照明装置と2段目ピン列を撮影する第
2カメラが設けられている。
A separator such as a thin white plastic plate is provided between the first row of pins and the second row of pins using a jig. A first camera is provided to photograph the pin row, and on the other side of the separator, a second illumination device and a second camera are provided to photograph the second row of pins.

第9図及び第10図はカメラによる撮影画像の処理手順
を示す図であり、第9図はフローチャート、第10図は
模式図である。まず、ステップ202においてピン出し
画像Aが取り込まれ、ステップ204においてピン退避
画像Bが取り込まれる。次いでピン出し画像Aとピン退
避画像Bとの差分A−Bが取られて伸びたピンの部分が
切り出される(ステップ205)。これが2値化・垂直
方向微分処理され(ステップ206)、水平方向投影分
布(ヒストグラム)がとられ(ステップ207)、抽出
点が読み出される(ステップ208)。次いでステップ
209において、上端点H1、及び下端点H2が検出さ
れ、その差に1画素当たりの長さを掛けることにより、
ワイヤストロークを計測するようにしている。ここで、
ステップ209において上端点H1及び下端点H2の算
出に関して、例えばHl の場合、第8図に示すように
、端点付近はインパルス状のピークを取っているので、
一定のしきい値を設け、このしきい値がインパルスを切
断する座標Pl、  P2 を検出し、このP+ 、 
 P2 の中点を端点H1とする。端点H2についても
同様にする。以上の処理を次々と24ピン行いくステッ
プ210) 、その結果をもとに良否判定を行い(ステ
ップ211)、不良の場合にはステップ212において
、適宜ピンの位置を調整する。
FIGS. 9 and 10 are diagrams showing the processing procedure for images taken by the camera, with FIG. 9 being a flowchart and FIG. 10 being a schematic diagram. First, in step 202, pinned image A is captured, and in step 204, pinned image B is captured. Next, the difference A-B between the pinned image A and the pin saved image B is taken, and the extended pin portion is cut out (step 205). This is binarized and vertically differentiated (step 206), a horizontal projection distribution (histogram) is taken (step 207), and extraction points are read out (step 208). Next, in step 209, the upper end point H1 and the lower end point H2 are detected, and by multiplying the difference by the length per pixel,
I am trying to measure the wire stroke. here,
Regarding the calculation of the upper end point H1 and the lower end point H2 in step 209, for example, in the case of Hl, as shown in FIG. 8, the vicinity of the end point has an impulse-like peak, so
A certain threshold is set, the coordinates Pl, P2 where this threshold cuts the impulse are detected, and this P+,
Let the midpoint of P2 be the end point H1. The same applies to the end point H2. The above process is performed one after another for 24 pins (step 210), and based on the results, a pass/fail judgment is made (step 211). If the pin is defective, the position of the pin is adjusted as appropriate in step 212.

発明が解決しようとする課題 このように、従来はセパレータを第1ピン列と第2ピン
列の間に挿入し、ピン画像と背景部のコントラストを明
瞭にするとともに、撮影画像を2値化後、垂直方向に微
分処理して、その端部を検出するようにしていた。しか
し、この薄板はワイヤに付着しているゴミ等の影響によ
り汚れ易く、これにより、垂直方向微分処理した後の画
像が第11図に示すように、ノイズを含んだ画像となっ
てしまうことがあり、これの水平方向投影分布をとると
第12図のようになり、ノイズの部分を端点として検出
し、誤った計測結果を出してしまうという問題があった
。尚、しきい値を高く設定するのは、必要な部分をも検
出できない恐れがあるから、これによりノイズの影響を
回避するのは良い方法ではない。
Problems to be Solved by the Invention In this way, in the past, a separator was inserted between the first pin row and the second pin row to make the contrast between the pin image and the background clearer, and to make the contrast between the captured image and the background part clearer. , the edge was detected by differential processing in the vertical direction. However, this thin plate is easily contaminated due to the influence of dust attached to the wire, and as a result, the image after vertical differential processing may end up containing noise, as shown in Figure 11. When the horizontal projection distribution is taken, it becomes as shown in FIG. 12, and there is a problem in that the noise portion is detected as an end point and an erroneous measurement result is produced. Note that setting a high threshold value may not be able to detect a necessary portion, so it is not a good way to avoid the influence of noise.

本発明はこのような点に鑑みてなされたものであり、そ
の目的とするところは、ピン撮影時に取り込んでしまっ
たノイズによって、ストローク長を誤って測定してしま
うことのないワイヤドツトプリンタのワイヤストローク
計測方法を提供することである。
The present invention has been made in view of these points, and its purpose is to provide a wire stroke for a wire dot printer that does not cause erroneous stroke length measurements due to noise introduced during pin photography. The objective is to provide a measurement method.

課題を解決するための手段 ピン突出時と、ピン退避時の撮影画像データの差分をと
り、2値化・垂直方向微分処理した後、データをラベリ
ング処理して複数の同一領域に分類し、画素数の多い上
位2つの領域に対して水平方向投影分布をとり、ピンの
上端点と下端点を検出する。これにより、ノイズの影響
を排除し、ノイズによる誤検出を防止して、上述した問
題点を解決する。
Measures to solve the problem After taking the difference between the captured image data when the pin is protruding and when the pin is retracting, and performing binarization and vertical differentiation processing, the data is subjected to labeling processing to classify it into multiple identical regions, and the pixel The horizontal projection distribution is taken for the top two areas with the largest numbers, and the top and bottom points of the pins are detected. This eliminates the influence of noise, prevents false detection due to noise, and solves the above-mentioned problems.

作   用 第1図を参照して説明すると、ノイズNI 〜N、はワ
イヤ等から出るゴミがセパレータ等に付着したことによ
り生じるものなので、通常は上端点E1 及び下端点E
2 と比較して、その面積は小さい。これに着目し、垂
直方向微分処理後の画像データに対して、連続した画素
による同一領域を検出して同一ラベルを付すラベリング
処理を行い、例えば図示のようなラベル番号を付して各
領域毎に分類する。次いでラベル付けした各領域のうち
、その包含する画素数の多い方から上位2つを選択し、
この2つの領域に対して水平方向投影分布をとる(第2
図参照)。これにより、セパレータの汚れ等によるノイ
ズを排除することができるから、従来のようにノイズを
端点としてストロークを計算してしまうことがなくなり
、その信頼性を向上することができる。
Function To explain with reference to Fig. 1, the noises NI to N are caused by dust from wires etc. adhering to the separator etc., so normally the noises NI to N are generated at the upper end point E1 and the lower end point E.
Its area is small compared to 2. Focusing on this, we perform a labeling process on the image data after vertical differential processing, which detects the same area of consecutive pixels and attaches the same label to it. Classify into. Next, among the labeled regions, the top two that contain the largest number of pixels are selected,
A horizontal projection distribution is taken for these two regions (second
(see figure). This makes it possible to eliminate noise caused by dirt on the separator, etc., so that the stroke is no longer calculated using noise as an end point, as in the past, and its reliability can be improved.

実  施  例 以下本発明を図面に示す実施例に基づいて詳細に説明す
る。
Embodiments The present invention will be explained in detail below based on embodiments shown in the drawings.

第4図は本発明を適用してなる24ピン測定システムの
構成図、第5図は第4図の要部構成図、第6図は第5図
のA矢視図である。プリンタヘッド20は治具(ヘッド
取付台)26に取付られている。プリンタヘッド20は
12個のピンから構成される1段目ピン列22及び同じ
く12個のピンから構成される2段目ピン列2′4とを
有している(第6図参照)。1段目ピン列22と2段目
ピン列24との間には白色プラスチック薄板等からなる
セパレータ28が治具27を使用して設けられている。
FIG. 4 is a block diagram of a 24-pin measurement system to which the present invention is applied, FIG. 5 is a block diagram of the main parts of FIG. 4, and FIG. 6 is a view taken in the direction of arrow A in FIG. The printer head 20 is attached to a jig (head mount) 26. The printer head 20 has a first pin row 22 made up of 12 pins and a second pin row 2'4 made up of 12 pins (see FIG. 6). A separator 28 made of a white plastic thin plate or the like is provided between the first row of pins 22 and the second row of pins 24 using a jig 27.

セパレータ28の一方の側には、第1照明装置30と1
段目ピン列22を撮影する第1カメラ32が設けられて
おり、セパレータ28の他方の側には第2照明装置34
と2段目ピン列24を撮影する第2カメラ36が設けら
れている。
On one side of the separator 28, a first lighting device 30 and a first lighting device 30 are provided.
A first camera 32 is provided to photograph the stage pin row 22, and a second illumination device 34 is provided on the other side of the separator 28.
A second camera 36 for photographing the second row of pins 24 is provided.

カメラ32.36の映像信号は濃淡画像プロセッサ40
に入力され、画像処理がなされる。カメラ32.36の
カメラ画像はモニタ42によりモニタすることができる
。44はパソコンであり、バス46を介しrcRT48
、キーボー)’50゜フロッピーディスク52に接続さ
れている。さらにパソコン44のバス46には、濃淡画
像プロセッサ40が接続されている。濃淡画像プロセッ
サ40はパソコン・44により制御され、さらにパソコ
ン44との間でデータの読み書きを行うことができるよ
うになっている。カメラ32.36の切り替えは、濃淡
画像プロセッサ40を介してパソコン44により制御さ
れる。さらにパソコン44のバス46にはPf056を
介してピンドライバ58及び照明装置30.34が接続
されている。
The video signals of the cameras 32 and 36 are processed by the grayscale image processor 40.
and image processing is performed. Camera images of cameras 32, 36 can be monitored by monitor 42. 44 is a personal computer, which connects the rcRT 48 via a bus 46.
, keyboard) is connected to a 50° floppy disk 52. Furthermore, a grayscale image processor 40 is connected to the bus 46 of the personal computer 44 . The grayscale image processor 40 is controlled by a personal computer 44, and can read and write data to and from the personal computer 44. Switching of cameras 32 , 36 is controlled by personal computer 44 via grayscale image processor 40 . Further, a pin driver 58 and lighting devices 30 and 34 are connected to the bus 46 of the personal computer 44 via Pf056.

この構成により、照明装置30.34の点灯及びプリン
タヘッド20のビンの出し入れは、パソコン44により
PIO56を介して制御できるようになっている。尚、
第1及び第2照明装置30.34は照明を均一にするた
めそれぞれ主照明装置30a、34a及び下照明装置3
0b、34bに別れている(第5図参照)。
With this configuration, lighting of the lighting devices 30 and 34 and loading and unloading of the printer head 20 can be controlled by the personal computer 44 via the PIO 56. still,
The first and second lighting devices 30 and 34 are the main lighting devices 30a and 34a and the lower lighting device 3, respectively, to make illumination uniform.
It is divided into 0b and 34b (see Figure 5).

第3図は上述のように構成した装置の計測処理のフロー
チャートである。まず、パソコン44のビンドライブ信
号によりピンドライバ58を介してビンが突き出され(
ステップ101) 、ステップ102においてピン出し
画(RAが取り込まれる。
FIG. 3 is a flowchart of measurement processing performed by the apparatus configured as described above. First, the bottle is ejected via the pin driver 58 by a bottle drive signal from the personal computer 44 (
Step 101), a pinned image (RA) is captured in step 102.

同様にピンが退避され(ステップ103)、ステップ1
04においてピン退避画像Bが取り込まれる。次いでピ
ン出し画像Aとピン退避画像Bとの差分A−Bが取られ
て伸びたビンの部分が切り出される(ステップ105)
。ステップ106において、第7図に示すように、ピン
出し画像Aとピン退避画像Bとの差分A−Bが2値化さ
れ、孤立点く画像データ中に生じているノイズのうち孤
立した画素に対応するもの)の除去が行われ、その後垂
直方向の微分処理がなされてビンの上端部及び下端部の
画像が抽出される。これが再度2値化され、孤立点除去
された後、第3図のステップ107へ進む。
Similarly, the pin is retracted (step 103), and step 1
At 04, the pin evacuation image B is captured. Next, the difference A-B between the pinned image A and the pinned image B is taken, and the extended bin portion is cut out (step 105).
. In step 106, as shown in FIG. 7, the difference A-B between the pinned image A and the pinned image B is binarized, and isolated pixels of the noise occurring in the image data are divided into isolated pixels. (corresponding ones) is performed, and then vertical differentiation is performed to extract images of the top and bottom ends of the bins. After this is binarized again and isolated points are removed, the process proceeds to step 107 in FIG.

ステップ107では画像データが連続する領域毎にラベ
リング(分類)され、ステップ108において、ラベリ
ングされた領域のうち画素数の多い方から上位2つが選
択され、他の領域は切り揄てられる。
In step 107, the image data is labeled (classified) for each continuous region, and in step 108, the top two labeled regions with the largest number of pixels are selected, and the other regions are cropped.

次いで、画素数の多い2つの領域について水平方向投影
分布(ヒストグラム)がとられ(ステップ109)、抽
出点が読み出され(ステップ110)、ステップ・11
1で上端点Hr 及び下端点H2が検出され、ピンのス
トロークが計算される。
Next, a horizontal projection distribution (histogram) is taken for the two areas with a large number of pixels (step 109), extraction points are read out (step 110), and step 11
1, the upper end point Hr and the lower end point H2 are detected, and the stroke of the pin is calculated.

ステップ111において、上端点H1及び下端点H2の
算出に関して、例えばHlの場合第8図に示すように端
点付近はインパルス状のピークを取るので、一定のしき
い値を設けこのしきい値がインパルスを切断する座標P
3、Pz を検出し、このP、及びP2の中点を端点H
+  とする。端点H2についても同様にして求められ
る。
In step 111, regarding the calculation of the upper end point H1 and the lower end point H2, for example, in the case of Hl, as shown in FIG. Coordinates P to cut
3. Detect Pz and set the midpoint of this P and P2 as the end point H
+. The end point H2 is also obtained in the same manner.

また、別の方法としては、インパルスを切断する座標P
l、Px の間について、以下の式で示す様な荷重平均
を取ることで、端点H2を求める。
Also, as another method, the coordinate P at which the impulse is cut is
The end point H2 is determined by taking a weighted average between l and Px as shown in the following formula.

P。P.

pニアドレス(水平分布の座標位置) G、:pアドレスにおける画素数 端点H2も同様に求める。p near address (horizontal distribution coordinate position) G,: Number of pixels at p address The end point H2 is found in the same way.

このようにして求められた端点H1とH2との差に1画
素当たりの長さを掛けることによりワイヤストロークを
計測することができる。
The wire stroke can be measured by multiplying the difference between the end points H1 and H2 thus obtained by the length per pixel.

以上の処理を次々と24ピン行い(ステップ112)、
その結果をもとに良否判定を行い(ステップ113)、
不良の場合にはステップ114において、適宜ピンの位
置を調整する。
The above processing is performed one after another for 24 pins (step 112),
Based on the results, a pass/fail judgment is made (step 113),
If the pin is defective, the position of the pin is adjusted appropriately in step 114.

ステップ107で行うラベリング処理は、画像中の連続
した画素による同一領域を検出して同一ラベルを付すも
のであり、例えば、本発明者等が先に出願したi像デー
タのラベリング方式(特願昭62−!50298号)の
アルゴリズムを同出願で示したハードウェア化の方法を
用いて構成し、これを濃淡画像プロセッサ4oに付加し
て実現する。これにより、リアルタイムに高速処理でき
、処理手順の増加による計測時間の増加を防ぎ、且つ安
定な結果を得ることができる。
The labeling process performed in step 107 is to detect the same area of consecutive pixels in the image and attach the same label to it. For example, the i-image data labeling method (patent application The algorithm of No. 62-!50298) is configured using the hardware method shown in the same application, and is realized by adding this to the grayscale image processor 4o. Thereby, high-speed processing can be performed in real time, an increase in measurement time due to an increase in processing procedures can be prevented, and stable results can be obtained.

発明の効果 本発明は以上詳述したように、ワイヤの汚れ等により画
像データ中にノイズが生じても、これをラベリング処理
して、画素数の多い方から上位2つを選択して、これを
基にワイヤストロークを求めるようにしたから、ノイズ
の影響のない正確な結果を得ることができるという効果
を奏する。
Effects of the Invention As described in detail above, even if noise occurs in image data due to wire dirt, etc., this invention is processed by labeling, and the top two with the largest number of pixels are selected. Since the wire stroke is determined based on , it is possible to obtain accurate results without the influence of noise.

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

第1図及び第2図は本発明の詳細な説明するための図で
あり、第1図はラベリング処理を行った画像の説明図、
第2図は画素数の多い上位2つの領域に対する水平方向
投影分布を示す図である。 第3図は本発明一実施例の処理手順を示すフローチャー
ト、 第4図は本発明を実行するのに敵した24ピンワイヤス
トローク計測装置の構成図、 第5図は第4図の要部構成図、 第6図は第5図のA矢視図、 第7図は第3図におけるステップ106の詳細フローチ
ャート、 第8図は水平方向投影分布からの端点の検出を説明する
ための図、 第9図及び第10図は従来技術の処理手順を示すフロー
チャート及び模式図、 第11図及び第12図は従来技術の問題点を説明するた
めの図である。 20・・・プリンタヘッド、 22・・・1段目ピン列、  24・・・2段目ピン列
、28・・・セパレータ、  30・・・第1照明装置
、32・・・第1カメラ、  34川第2照明装置、3
6・・・第2カメラ、 40・・・濃淡画像プロセッサ、 44・・・パソコン。
FIG. 1 and FIG. 2 are diagrams for explaining the present invention in detail, and FIG. 1 is an explanatory diagram of an image subjected to labeling processing,
FIG. 2 is a diagram showing the horizontal projection distribution for the top two areas with the largest number of pixels. FIG. 3 is a flowchart showing the processing procedure of an embodiment of the present invention, FIG. 4 is a configuration diagram of a 24-pin wire stroke measuring device suitable for carrying out the present invention, and FIG. 5 is the main part configuration of FIG. 4. 6 is a view taken in the direction of arrow A in FIG. 5, FIG. 7 is a detailed flowchart of step 106 in FIG. 9 and 10 are flowcharts and schematic diagrams showing the processing procedure of the prior art, and FIGS. 11 and 12 are diagrams for explaining the problems of the prior art. 20... Printer head, 22... First stage pin row, 24... Second stage pin row, 28... Separator, 30... First lighting device, 32... First camera, 34 River 2nd lighting device, 3
6... Second camera, 40... Grayscale image processor, 44... Personal computer.

Claims (1)

【特許請求の範囲】  ピン突出時と、ピン退避時の撮影画像データの差分を
とり(105)、2値化・垂直方向微分処理(106)
した後、水平方向投影分布をとる(109)ことにより
、ピンの上端点と下端点を検出し(111)、該ピンの
ストロークを計測するようにしたワイヤドットプリンタ
のワイヤストローク計測方法において、 垂直方向微分処理(106)の後に、データをラベリン
グ処理して複数の同一領域に分類し(107)、画素数
の多い上位2つの領域に対して水平方向投影分布をとる
(108、109)ことによりノイズを排除し、 ノイズによる誤検出を防止するようにしたことを特徴と
するワイヤドットプリンタのワイヤストローク計測方法
[Claims] Difference between captured image data when the pin is protruded and when the pin is retracted is taken (105), and binarization and vertical differentiation processing is performed (106).
In the wire stroke measuring method for a wire dot printer, the vertical projection distribution is then taken (109) to detect the upper and lower end points of the pin (111) and the stroke of the pin is measured. After the directional differentiation process (106), the data is labeled and classified into multiple identical areas (107), and the horizontal projection distribution is taken for the top two areas with the largest number of pixels (108, 109). A wire stroke measurement method for a wire dot printer characterized by eliminating noise and preventing false detection due to noise.
JP63107554A 1988-05-02 1988-05-02 Method for measuring wire stroke in wire dot printer Pending JPH01278364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63107554A JPH01278364A (en) 1988-05-02 1988-05-02 Method for measuring wire stroke in wire dot printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63107554A JPH01278364A (en) 1988-05-02 1988-05-02 Method for measuring wire stroke in wire dot printer

Publications (1)

Publication Number Publication Date
JPH01278364A true JPH01278364A (en) 1989-11-08

Family

ID=14462128

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63107554A Pending JPH01278364A (en) 1988-05-02 1988-05-02 Method for measuring wire stroke in wire dot printer

Country Status (1)

Country Link
JP (1) JPH01278364A (en)

Similar Documents

Publication Publication Date Title
US5652804A (en) Automatic inspection of printing plates or cylinders
US5600732A (en) Document image analysis method
US4758782A (en) Method and apparatus for inspecting printed circuit board
JP6692052B2 (en) Image loss detection device and image loss detection method
JPH0869534A (en) Method and equipment for detection of image quality
JPH06103165B2 (en) How to measure the height of circuit elements on a board
EP0311991B1 (en) Method and apparatus for detecting significant difference of sheet material
US5033101A (en) Method for character-and/or-object recognition
KR100636236B1 (en) Method and apparatus for detecting missing nozzle
CA1316605C (en) Method of searching binary images to find search regions in which straight lines may be found
US11752775B2 (en) Method for determining print defects in a printing operation carried out on an inkjet printing machine for processing a print job
US5553162A (en) Method for detecting ink jet or dot matrix printing
CN1898555A (en) Substrate inspection device
JPH01278364A (en) Method for measuring wire stroke in wire dot printer
KR20230126163A (en) Training data generation apparatus, training data generation method, and program recorded on recording medium
JP2982287B2 (en) Character string detection method, character string detection device, character string reading method, and character string reading device
JP2745763B2 (en) Wiring pattern inspection equipment
Okun et al. Robust text detection from binarized document images
JP2639165B2 (en) Character extraction device
JPH07121582B2 (en) Defect detection method and defect detection circuit in printed matter inspection apparatus
JPH085193B2 (en) Wire stroke measuring device for wire dot printer
EP0446630A2 (en) Method and apparatus for segmenting characters in an amount field on a financial document
KR20230138869A (en) Inspection system, training data generation apparatus, training data generation method, and program recorded on recording medium
JPH0199174A (en) Shape recognizing device
JPS5973758A (en) Method and apparatus for inspecting picture pattern of printed matter