JPH04184107A - Visual inspection device - Google Patents

Visual inspection device

Info

Publication number
JPH04184107A
JPH04184107A JP2311346A JP31134690A JPH04184107A JP H04184107 A JPH04184107 A JP H04184107A JP 2311346 A JP2311346 A JP 2311346A JP 31134690 A JP31134690 A JP 31134690A JP H04184107 A JPH04184107 A JP H04184107A
Authority
JP
Japan
Prior art keywords
coordinate
value
point
change point
change
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
JP2311346A
Other languages
Japanese (ja)
Inventor
Tatsuo Yamamura
山村 辰男
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2311346A priority Critical patent/JPH04184107A/en
Publication of JPH04184107A publication Critical patent/JPH04184107A/en
Pending legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To dispense with the need of a picture-image memory, and to enable high- speed processing by detecting the start point of an object, and in the respective scannings thereafter, by providing this start point with an offset value for producing an inspection area, and on the basis of this, by performing characteristic detection. CONSTITUTION:The picture-image signal from a television camera 1 is converted into binary digits by an A/D converting part 2, and the change point of this binary- digitized image from 0 to 1, or from 1 to 0 is detected by a change-point detecting part 3. The coordinate values of respective change points are successively added, and the total integrated value is latched by a coordinate latch part 8. The data in the latch part 8 are given to a coordinate shift part 9, and the average value of the middle points of all the coordinates of change points is obtained. To a X-offset setting part 10, start-point coordinates are given from the shift part 9, while an offset value is set, and this is added to the coordinate values. When the coordinate values reach a prescribed value, a start signal is produced in an area producing part 12. A Y- directional offset value is added by a Y counting part 15, and when the coordinates reach a prescribed value, a start signal is output to the producing part 12. A characteristic extraction part 13 extracts a characteristic value within the inspection area.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、テレビカメラ等を用いて対象物像を電気信
号として取り出し、その信号から対象物の外形を検出し
、撮像信号に合わせて所定の領域を発生して特徴量を抽
出し、対象物の外観検査を行なう外観検査装置に関する
[Detailed Description of the Invention] [Industrial Application Field] This invention uses a television camera or the like to extract an image of an object as an electrical signal, detects the external shape of the object from the signal, and detects a predetermined shape according to the imaging signal. The present invention relates to an appearance inspection apparatus that generates a region, extracts feature quantities, and performs an appearance inspection of an object.

〔従来の技術〕[Conventional technology]

従来、テレビカメラ等からの撮像信号に対し、対象物の
外形に従って所定の検査領域を設定し、この領域内で対
象物の特徴を抽出するに当たり、特に対象物の位置変動
にも対処し得るようにするためには、対象物画像を一旦
メモリに記憶してその外形を検出し、しかる後にメモリ
から画像を取り出しつつ検出された対象物外形位置に対
応する検査領域(検査エリア)を発生して、その領域内
で特徴抽出を行なうようにしているのが一般的である(
例えば、特公昭63−12310号公報参照)。
Conventionally, a predetermined inspection area is set according to the external shape of the object for the imaging signal from a television camera, etc., and when extracting the characteristics of the object within this area, a method is used to specifically deal with changes in the position of the object. In order to do this, the object image is temporarily stored in memory, its outline is detected, and then the image is retrieved from the memory and an inspection area corresponding to the detected object outline position is generated. , it is common to extract features within that region (
For example, see Japanese Patent Publication No. 63-12310).

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記の如き方式では、画像を記憶するためのメモリが必
要になるだけでなく、画像のメモリへの入力、メモリか
らの画像データの出力および処理という2段階の処理が
必要となり、時間が掛かるという問題もある。
The above method not only requires memory to store the image, but also requires two steps of processing: inputting the image to memory, outputting the image data from memory, and processing, which is time consuming. There are also problems.

したがって、この発明の解決しようとする課題は高速な
処理が可能な外観検査装置を提供することにある。
Therefore, the problem to be solved by the present invention is to provide an appearance inspection apparatus capable of high-speed processing.

〔課題を解決するための手段〕[Means to solve the problem]

かかる課題を解決するために、この発明では、対象物を
撮像して得られる撮像信号をラスタ走査しながら2値化
する2値化手段と、その2値化信号の0−1変化点およ
び1−0変化点の各座標位置を検出する位置検出手段と
、各変化点座標値を順次加算しその結果を所定ビット数
だけシフトさせて全変化点の平均化された中点を検出す
る検出手段とを設け、予め設定した数の変化点座標値か
ら平均化された中点を求め、以後の各走査においてこの
中点を起点とする予め設定された位置に所定の検査領域
を発生し、この領域内にて検査対象物に関する特徴抽出
を行なうことを特徴としている。
In order to solve such problems, the present invention provides a binarization means that binarizes an imaging signal obtained by imaging an object while performing raster scanning, and a 0-1 change point and a 1 change point of the binarized signal. -Position detection means for detecting each coordinate position of the 0 change point; and detection means for detecting the averaged midpoint of all change points by sequentially adding the coordinate values of each change point and shifting the result by a predetermined number of bits. and calculate the averaged midpoint from a preset number of change point coordinate values, generate a predetermined inspection area at a preset position starting from this midpoint in each subsequent scan, and It is characterized by extracting features related to the object to be inspected within the area.

〔作用〕[Effect]

対象物の先端近傍位置(起点)をはじめの数回の走査に
て検出し、以後の各走査においてこの検出された起点に
対し一定の位置関係を持つ位置に所定の検査領域を発生
させ、その領域内で特徴抽出を実行することで、画像メ
モリを不要とし高速な処理を可能にする。
The position near the tip of the object (starting point) is detected in the first few scans, and in each subsequent scan, a predetermined inspection area is generated at a position that has a certain positional relationship with the detected starting point. Executing feature extraction within a region eliminates the need for image memory and enables high-speed processing.

〔実施例〕〔Example〕

第1図はこの発明の実施例を示すブロック図、第2図は
この発明による処理を具体的に説明するための説明図で
ある。
FIG. 1 is a block diagram showing an embodiment of the invention, and FIG. 2 is an explanatory diagram for specifically explaining the processing according to the invention.

第1図において、1は撮像装置としてのテレビカメラ、
2はアナログ/ディジタル(A/D)変換部、3は変化
点検出部(DET) 、4は変化点計数部(CNT) 
、5はX(水平)座標発生部(XGE) 、6はY(垂
直)座標発生部(YGE)、7はX座標加算部(ADD
) 、8は座標ラッチ部(LCH) 、9は座標シフト
部(SFT) 、10はXオフセット設定部(ADJ)
 、11はXアドレス比較部(XCMP) 、12はエ
リア発生部(AGE)、13は特徴抽出部(FET) 
、14はマイクロプロセッサ(MP)、15はΔY計数
部(ΔYCNT) 、16はバスである。
In FIG. 1, 1 is a television camera as an imaging device;
2 is an analog/digital (A/D) converter, 3 is a change point detector (DET), and 4 is a change point counter (CNT).
, 5 is the X (horizontal) coordinate generator (XGE), 6 is the Y (vertical) coordinate generator (YGE), and 7 is the X coordinate adder (ADD).
), 8 is the coordinate latch section (LCH), 9 is the coordinate shift section (SFT), 10 is the X offset setting section (ADJ)
, 11 is the X address comparison unit (XCMP), 12 is the area generation unit (AGE), and 13 is the feature extraction unit (FET).
, 14 is a microprocessor (MP), 15 is a ΔY counter (ΔYCNT), and 16 is a bus.

以下、第2図も参照してその動作につき説明する。The operation will be explained below with reference also to FIG.

まず、テレビカメラ1からの画像信号はA/D変換部2
において2億化され、この2値化された画像の0→1,
1→0への変化点が変化点検出部3により検出される。
First, the image signal from the television camera 1 is sent to the A/D converter 2.
200 million, and this binarized image's 0 → 1,
The change point from 1 to 0 is detected by the change point detection section 3.

変化点計数部4はこの各変化点の数を計数し、予め設定
された走査線数分(2”)、すなわち2 X 2” (
2”’)に達したら終了信号を出力する。X座標発生部
5゛は画面走査に従ってX走査方向における座標値を出
力するが、座標ラッチ部8には変化点検出部3からの信
号が与えられているので、先ず最初の変化点(第2図の
XLI参照)に対応するX座標がX座標加算部7を介し
て座標ラッチ部8にラッチされ、以後変化点検出部3か
ら変化点検出信号が座標ラッチ部8に与えられる毎に、
そのときのX座標に対し以前にラッチされていたX座標
がX座標加算部7にて加算されて座標ラッチ部8にラッ
チされる動作が繰り返され、変化点計数部4から終了信
号を受信した時点では2n+1個の変化点座標の全積算
値が座標ラッチ部8にラッチされることになる。変化点
計数部4から終了信号を受信すると、座標ラッチ部8の
データは座標シフト部9に与えられ、これを(n+1)
ビットだけシフトさせることにより、予め設定された個
数の全変化点座標の中点の平均値を求める。
The changing point counting unit 4 counts the number of each changing point, and calculates the number of changing points for the preset number of scanning lines (2"), that is, 2 x 2" (
2"'), it outputs a termination signal. The X coordinate generating section 5' outputs the coordinate value in the X scanning direction according to the screen scan, but the coordinate latch section 8 receives the signal from the change point detecting section 3. Therefore, first, the X coordinate corresponding to the first change point (see XLI in FIG. 2) is latched by the coordinate latch unit 8 via the Every time a signal is given to the coordinate latch section 8,
The operation of adding the previously latched X coordinate to the current X coordinate in the X coordinate adding unit 7 and latching it in the coordinate latch unit 8 is repeated, and an end signal is received from the change point counting unit 4. At this point, the total integrated values of 2n+1 change point coordinates are latched in the coordinate latch unit 8. Upon receiving the end signal from the change point counting section 4, the data of the coordinate latch section 8 is given to the coordinate shift section 9, which converts the data to (n+1).
By shifting by bits, the average value of the midpoints of all the change point coordinates of a preset number is determined.

第2図は第1回の走査で変化点XLI、XRIを検出し
、第2回の走査で変化点XL2.XR2を検出してその
中点の平均値(XS、YS)を起点Pとして求めた例を
示している。なお、Mlは変化点XL1.XRIの中点
を示す、また、座標XSに対するY座標ysはY座標発
生部6により検出される。
In FIG. 2, change points XLI and XRI are detected in the first scan, and change points XL2 and XL2 are detected in the second scan. An example is shown in which XR2 is detected and the average value (XS, YS) of the midpoint is determined as the starting point P. Note that Ml is the change point XL1. The Y coordinate ys, which indicates the midpoint of XRI, and the coordinate XS is detected by the Y coordinate generator 6.

起点(XS、YS)はマイクロプロセッサ14にて読み
取られる。Xオフセット設定部10には座標シフト部9
からの起点座標が与えられる一方、マイクロプロセッサ
14からは予め定められた量(オフセット量ΔX)がセ
ットされるので、Xオフセント設定部10からはXS+
ΔXなる量が出力され、Xアドレス比較部11に与えら
れる。ただし、このオフセット量ΔXは符号付きとし、
XSより右にあるときは正、左にあるときは負とし、予
め適宜な方法にて求めておくものとする。Xアドレス比
較部11はX方向走査に伴いX座標発生部5から出力さ
れる座標が、 XS+ΔX=XO となったところで、エリア発生部12にX方向でのエリ
ア発生のための起動信号を出力する。
The starting point (XS, YS) is read by the microprocessor 14. The X offset setting section 10 includes a coordinate shift section 9.
While the starting point coordinates are given from the microprocessor 14, a predetermined amount (offset amount ΔX) is set, so the
The amount ΔX is output and given to the X address comparator 11. However, this offset amount ΔX is signed,
When it is to the right of XS, it is positive, and when it is to the left, it is negative, and it is determined in advance by an appropriate method. The X address comparison unit 11 outputs a start signal for area generation in the X direction to the area generation unit 12 when the coordinates output from the X coordinate generation unit 5 during X direction scanning become XS+ΔX=XO. .

一方、ΔY計数部15は変化点検出部4からの終了信号
を受けた後の走査量が、Y方向オフセント量をΔYとし
て、 YS+ΔY=Y O に達したら、エリア発生部12にY方向でのエリア発生
のための起動信号を出力する。エリア発生部12ではこ
れらの信号を受けて、以後の画面走査に合わせて検査領
域(検査エリア)を発生する。
On the other hand, when the scanning amount after receiving the end signal from the change point detecting section 4 reaches YS+ΔY=Y O, where the Y direction offset amount is ΔY, the ΔY counting section 15 instructs the area generating section 12 in the Y direction. Outputs a start signal for area generation. The area generating section 12 receives these signals and generates an inspection area (inspection area) in accordance with subsequent screen scanning.

検査エリアを第2図に符号Aにて示す。なお、このオフ
セット量ΔYや検査エリアAも適宜な方法にて予め求め
ておくものとする。
The inspection area is indicated by the symbol A in FIG. Note that the offset amount ΔY and the inspection area A are also determined in advance by an appropriate method.

特徴抽出部13はこの検査エリアA内にて面積を含む対
象物画像の特徴量を抽出し、マイクロプロセッサ14は
これを読み取り、所定の基準値と比較するなどしてその
良否判定を行なう。
The feature extraction unit 13 extracts the feature amount of the object image including the area within the inspection area A, and the microprocessor 14 reads this and compares it with a predetermined reference value to determine its quality.

こうすることにより、対象物位置が変動してもこれに合
わせた検査領域を発生させることができ、その領域内で
所望の特徴抽出を行なうことが可能となる。
By doing this, even if the object position changes, an inspection area can be generated that matches this, and desired features can be extracted within that area.

〔発明の効果〕〔Effect of the invention〕

この発明によれば、画像の走査に対応して対象物の先端
近傍の起点位置を検出し、以後の走査でこの起点位置に
オフセット値を与えて検査エリアを発生し、これにもと
づき特徴抽出を行なうようにしたので、検査対象物の画
像を一旦記憶する必要がなく、したがって画像走査と同
時にかつ対象物の位置変動に関わらず、安定かつ正確な
検査が可能となる利点が得られる。
According to this invention, a starting point position near the tip of the object is detected in response to image scanning, an offset value is given to this starting point position in subsequent scanning to generate an inspection area, and feature extraction is performed based on this. Since this is done, it is not necessary to temporarily store the image of the object to be inspected, and therefore, there is an advantage that stable and accurate inspection can be performed simultaneously with image scanning and regardless of changes in the position of the object.

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

第1図はこの発明の実施例を示すブロック図、第2図は
この発明による処理を具体的に説明するための説明図で
ある。 1・・・撮像装置(テレビカメラ)、2・・・アナログ
/ディジタル(A/D)変換部、3・・・変化点検出部
(DET) 、4・・・変化点計数部(CNT) 、5
・・・X座標発生部(XGE) 、6・・・Y座標発生
部(YGE) 、7・・・X座標加算部(ADD) 、
8・・・座標ラッチ部(LCH) 、9・・・座標シフ
ト部(SFT)、10・・・Xオフセット設定部(AD
J) 、11・・・Xアドレス比較部(XCMP) 、
12・・・エリア発生部(AGE) 、13・・・特徴
抽出部(F ET)、14・・・マイクロプロセッサ(
MP)、15・・・ΔY計数部(ΔYCNT) 、16
・・・バス、A・・・検査エリア。
FIG. 1 is a block diagram showing an embodiment of the invention, and FIG. 2 is an explanatory diagram for specifically explaining the processing according to the invention. 1... Imaging device (television camera), 2... Analog/digital (A/D) conversion section, 3... Change point detection section (DET), 4... Change point counting section (CNT), 5
...X coordinate generation section (XGE), 6.. Y coordinate generation section (YGE), 7.. X coordinate addition section (ADD),
8...Coordinate latch section (LCH), 9...Coordinate shift section (SFT), 10...X offset setting section (AD
J), 11...X address comparison unit (XCMP),
12...Area generation unit (AGE), 13...Feature extraction unit (FET), 14...Microprocessor (
MP), 15...ΔY counting section (ΔYCNT), 16
...Bus, A...Inspection area.

Claims (1)

【特許請求の範囲】 1)対象物を撮像して得られる撮像信号をラスタ走査し
ながら2値化する2値化手段と、 その2値化信号の0→1変化点および1→0変化点の各
座標位置を検出する位置検出手段と、各変化点座標値を
順次加算しその結果を所定ビット数だけシフトさせて全
変化点の平均化された中点を検出する検出手段と、 を設け、予め設定した数の変化点座標値から平均化され
た中点を求め、以後の各走査においてこの中点を起点と
する予め設定された位置に所定の検査領域を発生し、こ
の領域内にて検査対象物に関する特徴抽出を行なうこと
を特徴とする外観検査装置。
[Claims] 1) Binarization means that binarizes an imaging signal obtained by imaging an object while raster scanning it, and a 0→1 change point and a 1→0 change point of the binarized signal. position detection means for detecting each coordinate position of the change point, and detection means for sequentially adding the coordinate values of each change point and shifting the result by a predetermined number of bits to detect the averaged midpoint of all change points. , find the averaged midpoint from a preset number of change point coordinate values, generate a predetermined inspection area at a preset position starting from this midpoint in each subsequent scan, and An appearance inspection device characterized by extracting features regarding an object to be inspected.
JP2311346A 1990-11-19 1990-11-19 Visual inspection device Pending JPH04184107A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2311346A JPH04184107A (en) 1990-11-19 1990-11-19 Visual inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2311346A JPH04184107A (en) 1990-11-19 1990-11-19 Visual inspection device

Publications (1)

Publication Number Publication Date
JPH04184107A true JPH04184107A (en) 1992-07-01

Family

ID=18016043

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2311346A Pending JPH04184107A (en) 1990-11-19 1990-11-19 Visual inspection device

Country Status (1)

Country Link
JP (1) JPH04184107A (en)

Similar Documents

Publication Publication Date Title
JPH07220026A (en) Method and device for picture processing
JPH04184107A (en) Visual inspection device
JP2554102B2 (en) Slit optical detector
JPH08292017A (en) Sectional form sorting device
JPS58129888A (en) Position detector
JP3882427B2 (en) Image processing apparatus and image processing method
JP2959017B2 (en) Circular image discrimination method
Stojanovic et al. A measuring method for laser-based profilometry and its applications in nondestructive testing and quality control
JP2000125196A (en) Input image processing method, input image processor, and recording medium recording input image processing program
JP2762724B2 (en) Appearance inspection device
JPH05126545A (en) Shape measuring instrument
JPS58158761A (en) Pattern position detecting method
JPH0556329A (en) Image blur amount detector
JPH07230549A (en) Image processor and its method
JPH03237571A (en) Device for calculating binarizing threshold of image
JPH10143607A (en) Image processor
JP2841782B2 (en) Pattern recognition device
JPH10143673A (en) Picture processor
JPS6156554B2 (en)
JPS6361375A (en) Binarization method for image processing
JPH0660184A (en) Picture processing unit
JPS62115973A (en) Picture processing method and its device
JPH04259081A (en) Wire rod recognizing method and its device
JPH03149676A (en) Method for recognizing image
JPH056424A (en) Image processor