JP3895845B2 - Image processing method and apparatus for sheet metal processing - Google Patents

Image processing method and apparatus for sheet metal processing Download PDF

Info

Publication number
JP3895845B2
JP3895845B2 JP27463597A JP27463597A JP3895845B2 JP 3895845 B2 JP3895845 B2 JP 3895845B2 JP 27463597 A JP27463597 A JP 27463597A JP 27463597 A JP27463597 A JP 27463597A JP 3895845 B2 JP3895845 B2 JP 3895845B2
Authority
JP
Japan
Prior art keywords
sheet metal
image
processing
image data
line
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 - Fee Related
Application number
JP27463597A
Other languages
Japanese (ja)
Other versions
JPH11108617A (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.)
Amada Co Ltd
Original Assignee
Amada Co 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 Amada Co Ltd filed Critical Amada Co Ltd
Priority to JP27463597A priority Critical patent/JP3895845B2/en
Publication of JPH11108617A publication Critical patent/JPH11108617A/en
Application granted granted Critical
Publication of JP3895845B2 publication Critical patent/JP3895845B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Machine Tool Sensing Apparatuses (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は板金加工における画像処理方法およびその装置に係り、さらに詳しくは、広範囲の画像処理を行う場合の板金加工における画像処理方法およびその装置に関するものである。
【0002】
【従来の技術】
従来の板金加工における画像処理では、カメラ(例えばCCDカメラ等)で撮像し、この撮像データをデジタル信号化してソフト的あるいはハード的な画像処理技術により処理することにより、板金に加工した穴の大きさや位置を求めるのが一般的である。
【0003】
この場合、カメラの必要な視野の大きさとして、例えばIC等を撮像する場合は数mm程度、箱の識別の場合には数百mm程度が要求される。このため、カメラの分解能と視野の関係から、一台のカメラで処理するか、あるいは必要な部分にカメラを移動して一部分のみ撮像したりしている。
【0004】
また、取込んだ画像をピクセル(画素)ごとにデータ化してメモリに記憶しておき、後にデータ処理したりしている。
【0005】
一方、ファクシミリ(FAX)では、画像を一方向のみで走査して、これに直交する方向は紙を送って読取るようにしている。この場合には、読取り時に従来より一般的なランレングス法圧縮によりリアルタイムでデータを圧縮しながら読取っている。
【0006】
【発明が解決しようとする課題】
しかしながら板金素材全体を画像として取込んで精度測定や加工の検証等を行う場合、必要な分解能(例えば0.01mm)と、視野(例えば1800mm)を考え合わせると、カメラで取込む場合に、現存するカメラの分解能(130万ピクセル/画、5000ピクセル/線)から、以下のような問題が生じる。
【0007】
(1)複数のカメラで視野を分割してデータを合成する必要があるため、装置の高額化、処理の複雑化、調整の困難さが生じる。
【0008】
(2)取込んだ画像をピクセルごとに記憶するため大きなメモリが必要となり、装置の大型化を招く。
【0009】
(3)画像処理に時間がかかる。例えば、1500mm×3000mmの素材を分解能0.01mmで読込むと、(1500/0.01)×(3000/0.01)=4.5×1010bit =5.6Gbyteという大きなデータ量となる。
【0010】
(4)前述のファクシミリの場合のようにしてデータを圧縮すると、一方向の輪郭データは抽出できるが、一般にこれに直交する方向(紙送り方向)の輪郭データは抽出できないため、角形状の紙送り方向の一辺の輪郭データが抽出できないことになる。
【0011】
この発明の目的は、以上のような従来の技術に着目してなされたものであり、大ききな外形寸法の板金等を細かい分解能で画像処理を行うことのできる板金加工における画像処理方法およびその装置を提供することにある。
【0012】
【課題を解決するための手段】
上記の目的を達成するために、請求項1による発明の板金加工における画像処理方法は、一方向へ送られる板金の一方の側から照明光を当て、板金を透過してくる照明光を前記一方向に直交する他方向へスキャンするカメラで取込んで加工された穴の寸法や位置を測定する板金加工における画像処理方法において、前記カメラで取込まれたスキャンラインの画像データをリアルタイムで圧縮して記憶し、この記憶された画像データと後で取込まれた画像データからスキャン方向と直交する画線の輪郭を抽出すること、を特徴とするものである。
【0013】
従って、板金を一方向へ送ると共に、カメラを前記一方向と直交する他方向へスキャンさせることにより、板金に加工された穴等の画像を透過してきた照明光が取込まれる。この際に、カメラで取込まれた画像データをリアルタイムで圧縮して記憶することにより、必要な記憶容量を減少させる。カメラのスキャン方向と直交する方向である前記一方向の画線の輪郭は、前記記憶されている画像データと後で取込まれた画像データから抽出される。
【0014】
請求項2による発明の板金加工における画像処理方法は、請求項1の板金加工における画像処理方法において前記スキャン方向と直交する画線の輪郭を抽出する際に、前記スキャンラインを適宜の間隔に間引いてY方向の画線の輪郭を抽出すること、を特徴とするものである。
【0015】
従って、カメラのスキャン方向と直交する方向の画線の輪郭は、すべてのスキャンラインの画像データを使用するのではなく、適宜な間隔に間引かれたスキャンラインの画像データを用いて抽出される。
【0016】
請求項3による発明の板金加工における画像処理装置は、Y方向へ送られる板金の一方の側から照明光を当て、板金を透過してくる照明光をY方向に直交するX方向のスキャンラインに沿ってスキャンするカメラで取込んで加工された穴の寸法や位置を測定する板金加工における画像処理装置であって、前記カメラで取込まれたスキャンラインの画像データをリアルタイムで圧縮するX方向処理手段と、このX方向処理手段からの信号を記憶する画像データメモリ手段と、この画像データメモリ手段に記憶された画像データと後で取込まれた画像データからY方向の画線の輪郭を抽出するY方向処理手段と、を備えてなることを特徴とするものである。
【0017】
従って、板金をY方向へ送ると共に、カメラをY方向に直交するX方向へスキャンさせることにより、板金に加工された穴等の画像を透過してきた照明光が取込まれる。この際に、X方向処理手段がカメラで取込まれた画像データをリアルタイムで圧縮して記憶することにより、必要な画像データメモリの記憶容量を減少させる。また、カメラのスキャン方向と直交する方向であるY方向の画線の輪郭は、Y方向処理手段により前記記憶されている画像データと後で取込まれた画像データから抽出される。
【0018】
請求項4による発明の板金加工における画像処理装置は、請求項3の板金加工における画像処理装置において前記Y方向処理手段が、前記スキャンラインを適宜の間隔に間引いてY方向の画線の輪郭を抽出すること、を特徴とするものである。
【0019】
従って、カメラのスキャン方向と直交する方向であるY方向の画線の輪郭は、すべてのスキャンラインの画像データを使用するのではなく、適宜な間隔に間引かれたスキャンラインの画像データを用いて抽出される。
【0020】
【発明の実施の形態】
以下、この発明の実施の形態を図面に基づいて詳細に説明する。
【0021】
図1には、この発明に係る板金加工における画像処理装置1が示されている。この画像処理装置1では、例えば送りローラ3により一方向(ここではY方向)に送られる板金Wの一方の側(ここでは下側)から照明光Lを当てて加工された穴5、7等を透過してきた光を取込むカメラ9が設けられており、このカメラ9には二値化回路11が接続されている。
【0022】
図2をあわせて参照するに、二値化回路11は、「明」と「暗」を区別する閾値信号を出力するスレッショルド13と、このスレッショルド13からの信号に基づいてカメラ9からのビデオ信号を「明」→「1」、「暗」→「0」に変換する変換器15を有している。
【0023】
この二値化回路11には黒白カウンタ制御回路17が接続されており、この黒白カウンタ制御回路17は直接あるいはカウンタ19、21を介して制御装置23に接続されている。前記黒白カウンタ制御回路17とカウンタ19、21によりX方向処理手段としてのX方向処理部25が形成されている。
【0024】
前記二値化回路11は直接あるいは画像データメモリ手段であるバッファ27を介して黒白変化点検出制御回路29に接続され、さらに制御装置23に接続されている。前記黒白変化点検出制御回路29からの信号を加算して、後述するY出力抑制手段としてのY出力抑制回路31に信号を送る加算器33が設けられている。前記バッファ27、黒白変化点検出制御回路29およびY出力抑制回路31からY方向処理手段としてのY方向処理部35が形成されている。
【0025】
前記カメラ9には、発振器37により信号を受けるクロック制御回路39が接続されている。また、このクロック制御回路39は、直接あるいはY出力抑制回路31を介して前記黒白変化点検出制御回路29に接続され、あるいは黒白カウンタ制御回路17にも接続されている。更に、クロック制御回路はカウンタ41、43を介して制御装置23に接続されている。
【0026】
前記制御装置23は中央処理装置であるCPU45を有しており、このCPU45には画像データメモリ手段でもあるデータメモリ47、画像処理プログラムを格納してあるプログラムメモリ49、画像処理結果を出力するCRTのごとき出力手段51等が接続されている。
【0027】
上記構成により、板金Wの下方から照射された照明光Lのうち板金Wに加工された穴5、7等を透過してきた光をカメラ9により取込んで、穴=「明」、板金=「暗」のビデオ信号を出す。このカメラ9からのビデオ信号を二値化回路11が、ビデオ信号のスレッショルド(閾値)より大の場合を「明」=データ「1」、小さい場合を「暗」=データ「0」のデジタル信号に変換する。
【0028】
発振器37およびクロック制御回路39はカメラ9に対するビデオ信号の基準となるクロック信号を生成し、X、Y方向の同期信号とそれに伴うX方向処理部25およびY方向処理部35にX、Yリセット信号を生成する。
【0029】
黒白カウンタ制御回路17は、X方向スキャン中の黒ピクセル、白ピクセルの数をそれぞれカウンタ19、21でカウントし、その連続ピクセル長をその変化ごとにデータメモリ47に格納する。図1 中Xa,Xbの記録タイミングでXc,Xdの値を記録するが、これは図3に示されているように板金Wの送り方向位置を示すカウンタ43のY座標と対応させて記録する。
【0030】
このようなデータ形式では、Xをインクレメント、Yをアブソリュート座標とみなすので、図1に示されている板金Wの加工を画像処理すると、実際には図4に示されているような図形に置き換えられている。前述した特徴から、FAXの場合にはこのデータに基づいて黒白を印刷すると、図4に示されているようにもとの図形に復元される。
【0031】
しかしながら、前記データによると、スキャン方向であるX方向の座標しか得られないため図5に示されているように、X方向の輪郭座標が抽出できない。このため、円形の穴7はほぼ認識できるものの矩形の穴5はベクトル化の段階等で認識されないこととなる。
【0032】
この問題を解決すべく、バッファ27を設けて1スキャン分のデータを格納し、次の1ラインデータ取込みと同時に黒白変化点検出制御回路29に「S」と「St-1」を送出する。すなわち、このバッファ27はスキャン1ライン分のピクセル数のシフトレジスタ機能を果たす。
【0033】
この黒白変化点検出制御回路29は、前述の信号「S」および「St-1」を取込み、各Xn座標のピクセル間での1→0、0→1の変化を検出し、このときのカウンタ19、21の値をデータメモリ47に格納する(図6 参照)。このデータを座標としてとらえたイメージが図7に示されている。
【0034】
以上で求めた変化点の座標を統合し、X、Yの両方のデータで同一点が検出される場合には重複した座標を削除すると、図8に示されているように元の図形の輪郭すべてが取込まれて、図形処理のためのベクトル化が容易になる。
【0035】
次に、図9および図10を参照して、前述のシフトレジスタとY方向輪郭抽出について説明する。図9には図形のイメージが示されている。図中1桝が1ピクセルである。また、ハッチング部分はワークWがある部分を示し、暗の部分である。図10(A)を参照するに、ラインaをバッファ27に取込んだ後の状態が示されている。すなわち、バッファ27に取込まれたラインaのデータと、スキャンされたラインbのデータ(図10(B))からNOT(A).AND.Bで立ち上がりを検出してYデータの変化点を検出する(図10(C))ので、Y方向輪郭を抽出することができる。
【0036】
ここで、データのデータメモリ47への転送時間について説明する。X方向のピクセル読み出し時間はクロックで10MHz程度であり、0.1μs/ピクセルである。現実的には0.01μmの分解能で白黒が交互に現れることはないと考えてよいので、一般的なCPU45のメモリ転送速度で十分対応できる。
【0037】
例えば、SCSI−IIバスインターフェースの転送レートは10Mbyte/s であり、X、Yの座標を各々4バイトで送出する場合に、1秒の転送可能回数は1.25×106 以下ならば可能である。従って、カメラ9のピクセル転送クロックを10MHzとした場合、8ピクセル以上の粗さで白黒データが交互に転送可能となる。
【0038】
また、現在のパソコンの標準のPCIバスの転送レートは120〜200Mbyte/s で10倍〜20倍の速さであることを考えると、X方向のみでは1ピクセル単位での転送も可能であるといえる。これに対し、Y方向の転送すべきデータは、図1に示されている矩形の穴5の一辺のような場合には毎ピクセル発生することがある。
【0039】
しかしながら、本発明においては、X、Y両方向で検出されたデータを記録する必要があり、現在のパソコンの仕様では無理があるためY出力抑制回路31を設けてある。すなわち、Y方向輪郭検出後一定時間(規定ピクセル読出し時間)以内に変化点があってもYデータを抑制してこれを無視する。
【0040】
例えば、前述の定数であれば、10〜20ピクセルの読出し時間を抑制することによりデータの転送が可能となる。また、このときの輪郭データ粗さは、0.01×20=0.2mmとなり図形を形成するには十分な細かさであり、実用性に問題はない。
【0041】
以上の結果から、長い寸法を高分解能で取込み、リアルタイムで画像データの圧縮を行うので、小さなメモリで画像データを取込むことができると共に、1ライン取込み後並行してCPU45により処理を行うので迅速な処理が可能になる。
【0042】
また、Y方向の輪郭が抽出できない点をY方向処理部35を付加することによりデータ圧縮をしながらあらゆる形状の輪郭データを得ることができる。
【0043】
なお、この発明は前述の実施の形態に限定されることなく、適宜な変更を行うことにより、その他の態様で実施し得るものである。すなわち、前述の実施の形態においては、1ライン分の画像データをバッファ27に格納する場合について説明したが、バッファ27の代わりにデータメモリ47に一旦格納するようにしてもよい。
【0044】
また、1ラインのバッファ27ではなく複数ラインのバッファ27を設けるようにしてもよい。また、前述の実施の形態においては種々の回路により処理を行うようにしたが、これに変わってソフト的に処理するようにすることもできる。
【0045】
【発明の効果】
以上説明したように、請求項1の発明による板金加工における画像処理方法は、板金を一方向へ送ると共に、カメラを前記一方向と直交する他方向へスキャンさせることにより、板金に加工された穴等の画像を透過してきた照明光が取込まれる。この際に、カメラで取込まれた画像データをリアルタイムで圧縮して記憶することにより、必要な記憶容量を減少させることができるので、広い範囲を細かく分解して画像処理することができる。カメラのスキャン方向と直交する方向である前記一方向の画線の輪郭は、前記記憶されている画像データと後で取込まれた画像データから抽出されるので、スキャン方向に直交する方向の画線の処理が可能になる。
【0046】
請求項2の発明による板金加工における画像処理方法は、カメラのスキャン方向と直交する方向の画線の輪郭は、すべてのスキャンラインの画像データを使用するのではなく、適宜な間隔に間引かれたスキャンラインの画像データを用いて抽出されるので、現在あるパソコンのデータ転送速度で画像処理を行うことが可能になる。
【0047】
請求項3の発明による板金加工における画像処理装置は、板金をY方向へ送ると共に、カメラをY方向に直交するX方向へスキャンさせることにより、板金に加工された穴等の画像を透過してきた照明光が取込まれる。この際に、X方向処理手段がカメラで取込まれた画像データをリアルタイムで圧縮して記憶することにより、必要な画像データメモリの記憶容量を減少させることができるので、広い範囲を細かく分解して画像処理することができる。また、カメラのスキャン方向と直交する方向であるY方向の画線の輪郭は、Y方向処理手段により先に記憶されている画像データと後で取込まれた画像データから抽出されるので、スキャン方向に直交する方向の画線の処理が可能になる。
【0048】
請求項4の発明による板金加工における画像処理装置は、カメラのスキャン方向と直交する方向であるY方向の画線の輪郭は、すべてのスキャンラインの画像データを使用するのではなく、適宜の間隔に間引かれたスキャンラインの画像データを用いて抽出されるので、現在あるパソコンのデータ転送速度で画像処理を行うことが可能になる。
【図面の簡単な説明】
【図1】この発明にかかる板金加工における画像処理装置を示すブロック構成図である。
【図2】「明」と「暗」に区別するスレッショルドレベルを示すグラフである。
【図3】黒白カウンタ制御回路によりメモリされるデータの例である。
【図4】図3で示されるデータを図形に置き換えたイメージを示す説明図である。
【図5】図3で示されるデータを座標として置き換えたイメージを示す説明図である。
【図6】メモリデータの例を示す表である。
【図7】図6のメモリデータを座標としてとらえたイメージを示す説明図である。
【図8】図5と図7を統合したイメージを示す説明図である。
【図9】撮像した図形のイメージを示す説明図である。
【図10】(A),(B)は、取込まれた画像データを、(C)はY方向画線の立上がりを検出する状態を示す説明図である。
【符号の説明】
1 画像処理装置
5、7 穴
9 カメラ
25 X方向処理部(X方向処理手段)
27 バッファ(画像データメモリ手段)
31 Y出力抑制回路(Y出力抑制手段)
35 Y方向処理部(Y方向処理手段)
47 データメモリ(画像データメモリ手段)
W 板金
L 照明光
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing method and apparatus for sheet metal processing, and more particularly to an image processing method and apparatus for sheet metal processing when performing a wide range of image processing.
[0002]
[Prior art]
In conventional image processing in sheet metal processing, the size of a hole processed in a sheet metal is obtained by taking an image with a camera (for example, a CCD camera), converting the imaged data into a digital signal, and processing the image using software or hardware image processing technology. It is common to find the sheath position.
[0003]
In this case, the required field of view of the camera is required to be, for example, about several mm when imaging an IC or the like, and about several hundred mm when identifying a box. For this reason, from the relationship between the resolution of the camera and the field of view, processing is performed with one camera, or the camera is moved to a necessary part and only a part is imaged.
[0004]
The captured image is converted into data for each pixel and stored in a memory, and data processing is performed later.
[0005]
On the other hand, in facsimile (FAX), an image is scanned only in one direction, and a direction orthogonal to this is sent by paper and read. In this case, at the time of reading, the data is read while being compressed in real time by the conventional run length compression.
[0006]
[Problems to be solved by the invention]
However, when taking the entire sheet metal material as an image and performing accuracy measurement, verification of processing, etc., considering the necessary resolution (for example, 0.01 mm) and the field of view (for example, 1800 mm), existing images are captured. The following problems arise from the resolution of the camera (1.3 million pixels / image, 5000 pixels / line).
[0007]
(1) Since it is necessary to divide the field of view with a plurality of cameras and synthesize data, the apparatus is expensive, the process is complicated, and adjustment is difficult.
[0008]
(2) A large memory is required to store the captured image for each pixel, resulting in an increase in the size of the apparatus.
[0009]
(3) Time is required for image processing. For example, if a material of 1500 mm × 3000 mm is read with a resolution of 0.01 mm, a large data amount of (1500 / 0.01) × (3000 / 0.01) = 4.5 × 10 10 bits = 5.6 Gbyte is obtained.
[0010]
(4) When data is compressed as in the case of the facsimile described above, contour data in one direction can be extracted, but generally contour data in a direction orthogonal to this (paper feeding direction) cannot be extracted. The contour data of one side in the feed direction cannot be extracted.
[0011]
An object of the present invention is made by paying attention to the conventional techniques as described above, and an image processing method in sheet metal processing capable of performing image processing with a fine resolution on a sheet metal having a large outer dimension, and the like. To provide an apparatus.
[0012]
[Means for Solving the Problems]
In order to achieve the above object, an image processing method in sheet metal processing according to the first aspect of the present invention is directed to applying illumination light from one side of a sheet metal sent in one direction, and irradiating the illumination light transmitted through the sheet metal. In an image processing method in sheet metal processing for measuring the size and position of holes processed by a camera that scans in another direction orthogonal to the direction, image data of the scan line captured by the camera is compressed in real time. And the contour of the image line perpendicular to the scanning direction is extracted from the stored image data and the image data captured later.
[0013]
Therefore, by sending the sheet metal in one direction and causing the camera to scan in the other direction orthogonal to the one direction, the illumination light transmitted through the image of the hole or the like processed in the sheet metal is captured. At this time, the necessary storage capacity is reduced by compressing and storing the image data captured by the camera in real time. The outline of the image line in one direction, which is a direction orthogonal to the scanning direction of the camera, is extracted from the stored image data and the image data captured later.
[0014]
According to a second aspect of the present invention, there is provided an image processing method for sheet metal processing, wherein the scan line is thinned out at an appropriate interval when the contour of an image line perpendicular to the scan direction is extracted in the image processing method for sheet metal processing according to the first aspect. And extracting the outline of the image line in the Y direction.
[0015]
Therefore, the outline of the image line in the direction orthogonal to the scan direction of the camera is extracted not using image data of all scan lines but using image data of scan lines thinned at appropriate intervals. .
[0016]
According to a third aspect of the present invention, there is provided an image processing apparatus for processing a sheet metal, wherein illumination light is applied from one side of the sheet metal sent in the Y direction, and the illumination light transmitted through the sheet metal is applied to a scan line in the X direction orthogonal to the Y direction. An image processing apparatus for sheet metal processing that measures the size and position of a hole that has been captured and processed by a camera that scans along the X direction, and that compresses image data of the scan line captured by the camera in real time Means, image data memory means for storing signals from the X direction processing means, image data stored in the image data memory means, and image line contours in the Y direction are extracted later from the image data Y-direction processing means.
[0017]
Therefore, by sending the sheet metal in the Y direction and causing the camera to scan in the X direction orthogonal to the Y direction, the illumination light transmitted through the image of the hole or the like processed in the sheet metal is taken in. At this time, the X direction processing means compresses and stores the image data captured by the camera in real time, thereby reducing the necessary storage capacity of the image data memory. Further, the outline of the image line in the Y direction, which is a direction orthogonal to the scanning direction of the camera, is extracted from the stored image data and the image data captured later by the Y direction processing means.
[0018]
An image processing apparatus for sheet metal processing according to a fourth aspect of the present invention is the image processing apparatus for sheet metal processing according to claim 3, wherein the Y-direction processing means thins the scan lines at an appropriate interval to obtain an outline of the image line in the Y-direction. Extracting.
[0019]
Therefore, the contour of the image line in the Y direction, which is a direction orthogonal to the scan direction of the camera, does not use image data of all scan lines, but uses image data of scan lines thinned at appropriate intervals. Extracted.
[0020]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0021]
FIG. 1 shows an image processing apparatus 1 in sheet metal processing according to the present invention. In this image processing apparatus 1, for example, holes 5, 7 processed by applying illumination light L from one side (here, the lower side) of the sheet metal W fed in one direction (here, the Y direction) by the feed roller 3. A camera 9 that captures the light that has passed through is provided, and a binarization circuit 11 is connected to the camera 9.
[0022]
Referring also to FIG. 2, the binarization circuit 11 includes a threshold 13 for outputting a threshold signal for distinguishing between “bright” and “dark”, and a video signal from the camera 9 based on the signal from the threshold 13. Is converted to “bright” → “1” and “dark” → “0”.
[0023]
A black and white counter control circuit 17 is connected to the binarization circuit 11, and the black and white counter control circuit 17 is connected to the control device 23 directly or via counters 19 and 21. The black and white counter control circuit 17 and the counters 19 and 21 form an X direction processing unit 25 as X direction processing means.
[0024]
The binarization circuit 11 is connected to a black-and-white change point detection control circuit 29 directly or via a buffer 27 which is an image data memory means, and further connected to a control device 23. An adder 33 is provided for adding signals from the black / white change point detection control circuit 29 and sending the signal to a Y output suppression circuit 31 as Y output suppression means described later. The buffer 27, the black-and-white changing point detection control circuit 29, and the Y output suppression circuit 31 form a Y-direction processing unit 35 as Y-direction processing means.
[0025]
A clock control circuit 39 that receives a signal from an oscillator 37 is connected to the camera 9. The clock control circuit 39 is connected to the black / white change point detection control circuit 29 directly or via the Y output suppression circuit 31 or to the black / white counter control circuit 17. Further, the clock control circuit is connected to the control device 23 via counters 41 and 43.
[0026]
The control device 23 has a CPU 45 which is a central processing unit. The CPU 45 has a data memory 47 which is also an image data memory means, a program memory 49 which stores an image processing program, and a CRT which outputs an image processing result. The output means 51 etc. are connected.
[0027]
With the above configuration, the light transmitted through the holes 5, 7, etc. processed in the sheet metal W out of the illumination light L irradiated from below the sheet metal W is captured by the camera 9, and the hole = “bright”, the sheet metal = “ "Dark" video signal. When the binarization circuit 11 of the video signal from the camera 9 is larger than the threshold (threshold value) of the video signal, a digital signal of “bright” = data “1”, and when it is smaller, “dark” = data “0”. Convert to
[0028]
The oscillator 37 and the clock control circuit 39 generate a clock signal that is a reference of the video signal for the camera 9, and the X and Y reset signals are transmitted to the X and Y direction synchronization signals and the accompanying X direction processing unit 25 and Y direction processing unit 35. Is generated.
[0029]
The black and white counter control circuit 17 counts the number of black pixels and white pixels during X-direction scanning by the counters 19 and 21, respectively, and stores the continuous pixel length in the data memory 47 for each change. In FIG. 1, the values of Xc and Xd are recorded at the recording timings of Xa and Xb, and this is recorded in correspondence with the Y coordinate of the counter 43 indicating the feed direction position of the sheet metal W as shown in FIG. .
[0030]
In such a data format, X is regarded as an increment, and Y is regarded as an absolute coordinate. Therefore, when the processing of the sheet metal W shown in FIG. 1 is image-processed, the figure actually shown in FIG. 4 is obtained. Has been replaced. In the case of FAX, when black and white is printed based on this data, the original figure is restored as shown in FIG.
[0031]
However, according to the data, only the coordinates in the X direction, which is the scanning direction, can be obtained, so that the contour coordinates in the X direction cannot be extracted as shown in FIG. For this reason, although the circular hole 7 can be substantially recognized, the rectangular hole 5 is not recognized at the stage of vectorization or the like.
[0032]
In order to solve this problem, a buffer 27 is provided to store data for one scan, and “S” and “St −1 ” are sent to the black-and-white change point detection control circuit 29 simultaneously with the next one-line data fetch. That is, the buffer 27 performs a shift register function of the number of pixels for one scan line.
[0033]
The black-and-white change point detection control circuit 29 takes in the signals “S” and “St −1 ” described above, detects changes of 1 → 0, 0 → 1 between pixels of each Xn coordinate, and counters at this time The values 19 and 21 are stored in the data memory 47 (see FIG. 6). An image of this data as coordinates is shown in FIG.
[0034]
If the coordinates of the change points obtained above are integrated and the same point is detected in both X and Y data, the duplicated coordinates are deleted, and the contour of the original figure as shown in FIG. Everything is captured and vectorization for graphic processing becomes easy.
[0035]
Next, the shift register and the Y-direction contour extraction will be described with reference to FIGS. FIG. 9 shows a graphic image. In the figure, 1 桝 is one pixel. A hatched portion indicates a portion where the workpiece W is present, and is a dark portion. Referring to FIG. 10A, the state after the line a is taken into the buffer 27 is shown. That is, from the data of the line a fetched into the buffer 27 and the data of the scanned line b (FIG. 10B), NOT (A). AND. Since the rising edge is detected at B and the change point of the Y data is detected (FIG. 10C), the Y-direction contour can be extracted.
[0036]
Here, the transfer time of data to the data memory 47 will be described. The pixel readout time in the X direction is about 10 MHz with a clock and is 0.1 μs / pixel. In reality, it may be considered that black and white do not appear alternately at a resolution of 0.01 μm, so that the memory transfer speed of a general CPU 45 can sufficiently cope with it.
[0037]
For example, the transfer rate of the SCSI-II bus interface is 10 Mbyte / s, and when the X and Y coordinates are sent in 4 bytes each, the transferable number of times per second is 1.25 × 10 6 or less. is there. Therefore, when the pixel transfer clock of the camera 9 is 10 MHz, monochrome data can be transferred alternately with a roughness of 8 pixels or more.
[0038]
Also, considering that the standard PCI bus transfer rate of current personal computers is 120 to 200 Mbyte / s, which is 10 to 20 times faster, it is possible to transfer in units of one pixel only in the X direction. I can say that. On the other hand, data to be transferred in the Y direction may be generated every pixel in the case of one side of the rectangular hole 5 shown in FIG.
[0039]
However, in the present invention, it is necessary to record data detected in both the X and Y directions, and the Y output suppression circuit 31 is provided because it is impossible with the current personal computer specifications. That is, even if there is a change point within a certain time (specified pixel readout time) after the detection of the Y-direction contour, the Y data is suppressed and ignored.
[0040]
For example, with the above-described constants, data can be transferred by suppressing the reading time of 10 to 20 pixels. Further, the contour data roughness at this time is 0.01 × 20 = 0.2 mm, which is fine enough to form a figure, and there is no problem in practicality.
[0041]
From the above results, it is possible to capture a long dimension with high resolution and compress image data in real time, so that it is possible to capture image data with a small memory, and since processing is performed by the CPU 45 in parallel after capturing one line, it is quick. Processing becomes possible.
[0042]
Further, by adding a Y-direction processing unit 35 to a point where a Y-direction contour cannot be extracted, contour data of any shape can be obtained while data compression is performed.
[0043]
In addition, this invention is not limited to the above-mentioned embodiment, It can implement in another aspect by making an appropriate change. That is, in the above-described embodiment, the case where the image data for one line is stored in the buffer 27 has been described. However, the image data may be temporarily stored in the data memory 47 instead of the buffer 27.
[0044]
In addition, a buffer 27 of a plurality of lines may be provided instead of the buffer 27 of one line. In the above-described embodiment, the processing is performed by various circuits. However, instead of this, the processing can be performed by software.
[0045]
【The invention's effect】
As described above, in the image processing method in the sheet metal working according to the invention of claim 1, the hole formed in the sheet metal by feeding the sheet metal in one direction and scanning the camera in the other direction orthogonal to the one direction. The illumination light that has passed through the image is taken in. At this time, since the necessary storage capacity can be reduced by compressing and storing the image data captured by the camera in real time, it is possible to perform image processing by finely decomposing a wide range. The outline of the image line in one direction, which is a direction orthogonal to the scan direction of the camera, is extracted from the stored image data and the image data captured later, so that the image in the direction orthogonal to the scan direction is extracted. Line processing becomes possible.
[0046]
In the image processing method in the sheet metal working according to the second aspect of the present invention, the outline of the image line in the direction orthogonal to the scan direction of the camera is not used for all the scan line image data, but is thinned out at an appropriate interval. Therefore, it is possible to perform image processing at the data transfer speed of the existing personal computer.
[0047]
The image processing apparatus in the sheet metal working according to the invention of claim 3 has transmitted the image of the hole or the like processed in the sheet metal by feeding the sheet metal in the Y direction and scanning the camera in the X direction orthogonal to the Y direction. Illumination light is captured. At this time, since the X direction processing means compresses and stores the image data captured by the camera in real time, the required storage capacity of the image data memory can be reduced. Image processing. Also, the contour of the image line in the Y direction, which is the direction orthogonal to the scan direction of the camera, is extracted from the image data previously stored by the Y direction processing means and the image data captured later. It is possible to process an image line in a direction orthogonal to the direction.
[0048]
In the image processing apparatus for sheet metal processing according to the invention of claim 4, the contour of the image line in the Y direction, which is a direction orthogonal to the scan direction of the camera, does not use the image data of all the scan lines but has an appropriate interval. Therefore, it is possible to perform image processing at a data transfer speed of a current personal computer.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an image processing apparatus in sheet metal processing according to the present invention.
FIG. 2 is a graph showing threshold levels for distinguishing between “bright” and “dark”.
FIG. 3 is an example of data stored by a black and white counter control circuit.
4 is an explanatory diagram showing an image obtained by replacing the data shown in FIG. 3 with a figure.
FIG. 5 is an explanatory diagram showing an image obtained by replacing the data shown in FIG. 3 with coordinates.
FIG. 6 is a table showing an example of memory data.
7 is an explanatory diagram illustrating an image obtained by capturing the memory data of FIG. 6 as coordinates.
8 is an explanatory diagram showing an image obtained by integrating FIGS. 5 and 7. FIG.
FIG. 9 is an explanatory diagram showing an image of a captured figure.
FIGS. 10A and 10B are diagrams illustrating captured image data, and FIG. 10C is an explanatory diagram illustrating a state in which the rise of a Y-direction image line is detected.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 Image processing apparatus 5, 7 Hole 9 Camera 25 X direction processing part (X direction processing means)
27 Buffer (image data memory means)
31 Y output suppression circuit (Y output suppression means)
35 Y direction processing section (Y direction processing means)
47 Data memory (image data memory means)
W Sheet metal L Illumination light

Claims (4)

一方向へ送られる板金の一方の側から照明光を当て、板金を透過してくる照明光を前記一方向に直交する他方向へスキャンするカメラで取込んで加工された穴の寸法や位置を測定する板金加工における画像処理方法において、
前記カメラで取込まれ二値化されたスキャンラインの画像データを変化ごとに記憶し、この記憶された画像データと後で取込まれた画像データからスキャン方向と直交する画線の輪郭を抽出する、ことを特徴とする板金加工における画像処理方法。
Apply the illumination light from one side of the sheet metal sent in one direction and capture the dimension and position of the hole processed by taking the illumination light transmitted through the sheet metal in the other direction orthogonal to the one direction. In the image processing method in sheet metal processing to be measured,
The image data of the scan line captured by the camera and binarized is stored for each change, and the contour of the line perpendicular to the scan direction is extracted from the stored image data and the image data captured later. An image processing method in sheet metal processing, characterized by:
前記スキャン方向と直交する画線の輪郭を抽出する際に、前記スキャンラインを適宜の間隔に間引いてY方向の画線の輪郭を抽出すること、を特徴とする請求項1記載の板金加工における画像処理方法。  2. The sheet metal processing according to claim 1, wherein when extracting an outline of an image line orthogonal to the scan direction, the image line outline in the Y direction is extracted by thinning the scan line at an appropriate interval. Image processing method. Y方向へ送られる板金の一方の側から照明光を当て、板金を透過してくる照明光をY方向に直交するX方向のスキャンラインに沿ってスキャンするカメラで取込んで加工された穴の寸法や位置を測定する板金加工における画像処理装置であって、
前記カメラで取込まれたスキャンラインの二値化された画像データの各ピクセル数をカウントするX方向処理手段と、
前記X方向処理手段からの信号を連続ピクセル長の変化ごとに記憶する画像データメモリ手段と、
前記画像データメモリ手段に記憶された画像データと後で取込まれた画像データからY方向の画線の輪郭を抽出するY方向処理手段と、
を備えてなることを特徴とする板金加工における画像処理装置。
A hole formed by applying illumination light from one side of the sheet metal sent in the Y direction and capturing the illumination light transmitted through the sheet metal along a scan line in the X direction perpendicular to the Y direction. An image processing apparatus in sheet metal processing for measuring dimensions and positions,
And X-direction processing means for counting the number of each pixel of the binarized image data of the scan was captured by the camera line,
An image data memory means for storing a signal from the X-direction processing unit for each successive pixel length change,
And Y-direction processing means for extracting the contour of the Y-direction streaks from the image data captured and later stored image data in the image data memory means,
An image processing apparatus in sheet metal processing, comprising:
前記Y方向処理手段が、前記スキャンラインを適宜の間隔に間引いてY方向の画線の輪郭を抽出すること、を特徴とする請求項3記載の板金加工における画像処理装置。  4. The image processing apparatus for sheet metal processing according to claim 3, wherein the Y direction processing means extracts the contour of the image line in the Y direction by thinning out the scan lines at an appropriate interval.
JP27463597A 1997-10-07 1997-10-07 Image processing method and apparatus for sheet metal processing Expired - Fee Related JP3895845B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27463597A JP3895845B2 (en) 1997-10-07 1997-10-07 Image processing method and apparatus for sheet metal processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27463597A JP3895845B2 (en) 1997-10-07 1997-10-07 Image processing method and apparatus for sheet metal processing

Publications (2)

Publication Number Publication Date
JPH11108617A JPH11108617A (en) 1999-04-23
JP3895845B2 true JP3895845B2 (en) 2007-03-22

Family

ID=17544460

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27463597A Expired - Fee Related JP3895845B2 (en) 1997-10-07 1997-10-07 Image processing method and apparatus for sheet metal processing

Country Status (1)

Country Link
JP (1) JP3895845B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021040145A1 (en) * 2019-08-26 2021-03-04 (주)프로템 Impact head control system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7408142B2 (en) * 2020-02-26 2024-01-05 株式会社ナガセインテグレックス Surface roughness prediction method and surface roughness prediction device of workpiece by machining with rotary cutting tool

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021040145A1 (en) * 2019-08-26 2021-03-04 (주)프로템 Impact head control system

Also Published As

Publication number Publication date
JPH11108617A (en) 1999-04-23

Similar Documents

Publication Publication Date Title
JP3895845B2 (en) Image processing method and apparatus for sheet metal processing
JPH0146910B2 (en)
JP3244850B2 (en) License plate reader
JP2002204342A (en) Image input apparatus and recording medium, and image compositing method
JP3039704B2 (en) Printing evaluation method and printing evaluation device
US20050265600A1 (en) Systems and methods for adjusting pixel classification using background detection
JP2003060894A (en) Device and system for compositing image, camera with image compositing function and image compositing service method
JPH0129643Y2 (en)
JP3119376B2 (en) Printing evaluation method and printing evaluation device
JP2956151B2 (en) Image processing method and apparatus
JP3412732B2 (en) Defect inspection method and apparatus
GB2159622A (en) Print inspecting method
JPH0766413B2 (en) Document character direction detector
JPS61231678A (en) Defect extracting data recording system
JPH07120393B2 (en) Character recognition / graphic processing device
JP3119375B2 (en) Printing evaluation method and printing evaluation device
JP2937603B2 (en) Binary discrimination method of image data in image data reading device
JP2009027350A (en) Image processing device and image processing method
JP2853140B2 (en) Image area identification device
JP2797655B2 (en) Image processing method and apparatus
JP2003281538A (en) Image processor, image inspecting method and printing failure detecting method
JP2670074B2 (en) Vehicle number recognition device
CN117412157A (en) Labview-based high-speed image acquisition method
JP6362075B2 (en) Image reading apparatus, image processing apparatus, and image processing method therefor
JPH04238256A (en) Defect section image detecting method for continuously running sheet-shaped body

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041006

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060428

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060606

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060803

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: 20061212

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061215

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: 20091222

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20101222

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees