JP2940028B2 - Vision sensor - Google Patents

Vision sensor

Info

Publication number
JP2940028B2
JP2940028B2 JP1311797A JP31179789A JP2940028B2 JP 2940028 B2 JP2940028 B2 JP 2940028B2 JP 1311797 A JP1311797 A JP 1311797A JP 31179789 A JP31179789 A JP 31179789A JP 2940028 B2 JP2940028 B2 JP 2940028B2
Authority
JP
Japan
Prior art keywords
measurement
time
cpu
value
measuring
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
JP1311797A
Other languages
Japanese (ja)
Other versions
JPH03171264A (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.)
Omron Corp
Original Assignee
Omron Corp
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 Omron Corp filed Critical Omron Corp
Priority to JP1311797A priority Critical patent/JP2940028B2/en
Publication of JPH03171264A publication Critical patent/JPH03171264A/en
Application granted granted Critical
Publication of JP2940028B2 publication Critical patent/JP2940028B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 <産業上の利用分野> 個の発明は、対象物を撮像してその形状や位置などを
認識するための視覚センサに関する。
Description: TECHNICAL FIELD The present invention relates to a visual sensor for capturing an image of an object and recognizing the shape and position of the object.

<従来の技術> 従来、ファクトリオートメションの現場では、製品の
形状の良否などを判別するのに、画像処理技術を応用し
た視覚センサが導入されている。この視覚センサは、製
造ラインを流れてくる製品を撮像し、その画像を取り込
んで面積や周囲長などの特徴量を抽出することにより製
品の形状が適正か否かなどを判別するものである。この
場合に製造ラインを流れる単位時間当たりの製品の数量
には制限があるので、特徴量の計測に要する時間(以下
「計測時間」という)を把握することは製造ラインの能
率化をはかるうえで必要である。
<Prior Art> Conventionally, in the field of factory automation, a visual sensor to which image processing technology is applied has been introduced in order to determine the quality of a product. The visual sensor captures an image of a product flowing on a manufacturing line, captures the image, and extracts a characteristic amount such as an area or a perimeter to determine whether or not the shape of the product is appropriate. In this case, since the number of products per unit time flowing through the production line is limited, grasping the time required for measuring the characteristic amount (hereinafter referred to as “measurement time”) is effective in increasing the efficiency of the production line. is necessary.

<発明が解決しようとする問題点> しかしながら従来の視覚センサでは、作業者が特徴量
の計測時間を正確に把握することは不可能とされ、しか
も計測する特徴量の種類や項目数により計測時間が大き
く異なるため、計測時間を推測するものも容易でなく、
製造ラインの能率向上を実現するのは困難であった。
<Problems to be Solved by the Invention> However, with the conventional visual sensor, it is impossible for an operator to accurately grasp the measurement time of the feature quantity, and the measurement time is determined by the type of the feature quantity to be measured and the number of items. Is very different, so it is not easy to estimate the measurement time.
It has been difficult to improve the efficiency of the production line.

この発明は、上記問題に着目してなされたもので、特
徴量の計測時間を測定可能としてその測定結果を表示す
ることにより、作業者が特徴量の計測時間を常に正確に
把握できる視覚センサを提供することを目的とする。
The present invention has been made in view of the above-described problem, and a visual sensor that enables a worker to always accurately grasp the measurement time of the feature value by displaying the measurement result by measuring the measurement time of the feature value and displaying the measurement result. The purpose is to provide.

<問題点を解決するための手段> 上記目的を達成するため、この発明の視覚センサで
は、対象物を撮像して入力画像を生成する撮像手段と、
入力画像につき特徴量を計測して計測データを出力する
と共に、計測の開始と終了とに対応する信号を出力する
特徴量計測手段と、特徴量計測手段からの信号入力に基
づき特徴量の計測に要する時間を測定する計時手段と、
計時手段による測定結果を表示するための表示手段とを
具備させている。
<Means for Solving the Problems> In order to achieve the above object, in the visual sensor of the present invention, an imaging unit for imaging an object to generate an input image;
A feature amount measuring unit that measures a feature amount of an input image and outputs measurement data and outputs signals corresponding to the start and end of the measurement, and a feature amount measurement based on a signal input from the feature amount measuring unit. A timing means for measuring the time required;
Display means for displaying the measurement result by the time keeping means.

<作用> 入力画像につき特徴量の計測時間が測定されてその測
定結果が表示されるので、計測する特徴量の種類や項目
数が変わっても作業者は表示を見て特徴量の計測時間を
常に正確に把握でき、製造ラインの能率向上を実現する
のが可能となる。
<Operation> The measurement time of the feature amount is measured for the input image and the measurement result is displayed. Therefore, even if the type of the feature amount to be measured or the number of items is changed, the operator can see the display and adjust the measurement time of the feature amount. It is always possible to grasp accurately and it is possible to improve the efficiency of the production line.

<実施例> 第1図は、この発明の一実施例にかかる視覚センサの
外観を示しており、カメラ1,コントローラ2,ビデオモニ
タ3などを構成として含んでいる。
FIG. 1 shows the appearance of a visual sensor according to an embodiment of the present invention, and includes a camera 1, a controller 2, a video monitor 3, and the like.

カメラ1は対象物4を撮像して濃淡画像を生成する。
この濃淡画像はコントローラ2に取り込まれて2値化さ
れた後、その2値画像につき面積,周囲長などの特徴量
が計測される。この計測データは図示しないプログラマ
ブルコントローラなどへ出力されてファクトリオートメ
ーションにおける製造ラインの制御が行われる。
The camera 1 captures an image of the object 4 and generates a grayscale image.
After the grayscale image is taken into the controller 2 and binarized, the feature amount such as the area and the perimeter of the binary image is measured. The measurement data is output to a programmable controller (not shown) or the like to control a production line in factory automation.

またコントローラー2では、特徴量の計測時間が測定
され、その測定結果はビデオモニタ3へ出力される。
In the controller 2, the measurement time of the feature amount is measured, and the measurement result is output to the video monitor 3.

ビデオモニタ3は対象物の濃淡画像や2値画像を表示
する他に、コントローラ2による測定結果を表示するた
めのもので、第2図にモニタ画面の表示例が示してあ
る。
The video monitor 3 displays a grayscale image and a binary image of the object, and also displays a measurement result by the controller 2, and FIG. 2 shows a display example of a monitor screen.

同図において、5は濃淡画像や2値画像を表示するた
めの画像表示領域、6は測定結果を表示するためのデー
タ表示領域であって、データ表示領域6には前記計測時
間についての毎回の測定値と、計測時間の平均値,最大
値および,最小値とが表示される。
In the figure, 5 is an image display area for displaying a grayscale image or a binary image, 6 is a data display area for displaying a measurement result, and a data display area 6 is provided for each measurement time. The measured value and the average, maximum, and minimum values of the measurement time are displayed.

またこの実施例では、特徴量の計測データを出力する
のに要する時間(以下「データ出力時間」という)も前
記コントローラ2で計測し、このデータ出力時間につい
ての毎回の測定値や、その平均値,最大値および,最小
値も前記データ表示領域6に表示される。
Further, in this embodiment, the time required to output the measurement data of the characteristic amount (hereinafter, referred to as “data output time”) is also measured by the controller 2, and the measured value of the data output time and the average value thereof are measured each time. , Maximum value, and minimum value are also displayed in the data display area 6.

第3図は、上記コントローラ2の回路構成例を示して
いる。
FIG. 3 shows a circuit configuration example of the controller 2.

図中、A/D変換部7は濃淡画像のビデオ信号をディジ
タル信号に変換し、2値化処理部8は前記ディジタル信
号を所定のしきい値で2値化処理して2値画像を生成す
る。
In the figure, an A / D converter 7 converts a grayscale image video signal into a digital signal, and a binarization processor 8 binarizes the digital signal with a predetermined threshold to generate a binary image. I do.

計測部9は前記2値画像を格納する画像メモリを含
み、2値画像につき黒画素部分の面積や周囲長さなどの
特徴量を計測してその計測データをデータバッファ(図
示せず)へ書き込んだ後、プログラマブルコントローラ
へ出力する。また計測部9は特徴量の計測開始時に計測
開始信号を、特徴量の計測終了時に計測終了信号を、計
測データバッファへの書込終了時に書込終了信号を、そ
れぞれ出力する。
The measuring unit 9 includes an image memory for storing the binary image, measures a characteristic amount such as an area of a black pixel portion and a peripheral length of the binary image, and writes the measured data to a data buffer (not shown). Then, output to the programmable controller. The measurement unit 9 outputs a measurement start signal at the time of starting the measurement of the characteristic amount, a measurement end signal at the end of the measurement of the characteristic amount, and a write end signal at the end of the writing to the measurement data buffer.

CPU10は、計測部9による特徴量の計測処理に関し
て、前記計測開始信号,計測終了信号および,書込終了
信号に基づき、計測時間やデータ処理時間を測定すると
共に、それぞれの測定値の平均値,最大値および,最小
値を算出する。この実施例の場合、計時処理はソフトウ
ェアタイマにて行っているが、これに限らず、ハード構
成をもって行うことも勿論可能である。
The CPU 10 measures the measurement time and the data processing time based on the measurement start signal, the measurement end signal, and the write end signal with respect to the characteristic amount measurement processing by the measurement unit 9, and also calculates the average value of each measurement value, Calculate the maximum and minimum values. In the case of this embodiment, the clocking process is performed by a software timer. However, the present invention is not limited to this.

第4図は、CPU10による計測時間の測定処理手順を示
している。
FIG. 4 shows a procedure for measuring the measurement time by the CPU 10.

いま計測部9に2値画像が取り込まれて特徴量の計測
が開始されると、計測部9は計測開始信号をCPU10へ出
力する。これにより同図のステップ1(図中「ST1」で
示す)の判定が“YES"となり、CPU10は内部のタイマカ
ウンタをスタートさせ、クロックの計数動作を開始する
(ステップ2)。このクロックの発生周期は例えば10ms
であり、この単位時間が経過する毎にステップ3の判定
が“YES"となってタイマカウンタがカウントアップする
(ステップ4)。
When the binary image is captured by the measuring unit 9 and the measurement of the feature is started, the measuring unit 9 outputs a measurement start signal to the CPU 10. As a result, the determination in step 1 (shown as “ST1” in the figure) of the figure becomes “YES”, and the CPU 10 starts the internal timer counter and starts the clock counting operation (step 2). The generation period of this clock is, for example, 10 ms
Every time the unit time elapses, the determination in step 3 becomes "YES" and the timer counter counts up (step 4).

かくして計測部9が決められた特徴量の計測を完了す
ると、計測部9は計測完了信号をCPU10へ出力する。こ
れによりステップ5の判定が“YES"となり、CPU10はタ
イマカウンタをストップさせ、クロックの計数動作を停
止させた後、タイマカウンタの内容を計測時間の測定値
として出力するのである(ステップ6,7)。
When the measurement unit 9 completes the measurement of the determined feature amount, the measurement unit 9 outputs a measurement completion signal to the CPU 10. As a result, the determination in step 5 becomes “YES”, the CPU 10 stops the timer counter, stops the counting operation of the clock, and then outputs the contents of the timer counter as a measured value of the measured time (steps 6 and 7). ).

なお同図は、計測時間の測定手順のみを示している
が、データ出力時間の測定手順もこれと同様であり、タ
イマカウンタは計測終了信号の発生時点から書込信号の
発生時点までの時間を計数することになる。
Although the figure shows only the measurement time measurement procedure, the data output time measurement procedure is the same, and the timer counter measures the time from the measurement end signal generation time to the write signal generation time. Will be counted.

第5図は、CPU10による計測時間の平均値,最大値お
よび,最小値の算出手順を示している。
FIG. 5 shows a procedure for calculating the average value, the maximum value, and the minimum value of the measurement time by the CPU 10.

同図のステップ1でCPU10は内部カウンタNをクリア
した後、ステップ2で計測時間の測定を行い、ステップ
3で計測時間の測定値Tを取得する。つぎにCPU10はカ
ウンタNをインクリメントした後、計測時間の測定値を
ビデオモニタ3のデータ表示領域6に表示させる(ステ
ップ4,5)。
After the CPU 10 clears the internal counter N in step 1 of the figure, the CPU 10 measures the measurement time in step 2 and acquires the measurement value T of the measurement time in step 3. Next, after incrementing the counter N, the CPU 10 displays the measured value of the measurement time on the data display area 6 of the video monitor 3 (steps 4 and 5).

つぎのステップ6はカウンタNの内容が1かどうかを
判定しており、この場合、その判定は“YES"であるか
ら、CPU10は内部の記憶領域MAZ,MIN,SUMに前記測定値T
をそれぞれセットする。これらデータ記憶部のうちMAX
は測定値の最大値を記憶するための最大値記憶部、MIN
は測定値の最小値を記憶するための最小値記憶部、SUM
は測定値の合計値を記憶するための合計値記憶部であ
る。
In the next step 6, it is determined whether or not the content of the counter N is 1. In this case, since the determination is "YES", the CPU 10 stores the measured value T in the internal storage area MAZ, MIN, SUM.
Set each. Among these data storage units, MAX
Is the maximum value storage unit for storing the maximum value of the measured value, MIN
Is the minimum value storage unit for storing the minimum value of the measured value, SUM
Is a total value storage unit for storing the total value of the measured values.

つぎに第2回目の計測時間の測定が行われてつぎの測
定値Tが得られると(ステップ2,3)、CPU10はカウンタ
Nをインクリメントした後、計測時間の測定値Tをビデ
オモニタ3に表示させる(ステップ4,5)。
Next, when the second measurement time is measured and the next measurement value T is obtained (steps 2 and 3), the CPU 10 increments the counter N and then transmits the measurement value T of the measurement time to the video monitor 3. It is displayed (steps 4 and 5).

この段階ではカウンタNの内容は2であるから、つぎ
のステップ6の判定は“NO"であり、つぎにCPU10はステ
ップ8で今回の測定値Tが最大値記憶部MAXの内容より
大きいか否かを判定する。もしステップ8の判定が“YE
S"であれば、ステップ9へ進んで最大値記憶部MAXの内
容を今回の測定値Tに置き換える。
At this stage, since the content of the counter N is 2, the determination in the next step 6 is “NO”, and the CPU 10 determines in step 8 whether the current measured value T is larger than the content of the maximum value storage MAX. Is determined. If the judgment in step 8 is "YE
If "S", the process proceeds to step 9 where the contents of the maximum value storage unit MAX are replaced with the current measured value T.

もしステップ8が“NO"であれば、つぎにCPU10はステ
ップ10で今回の測定値Tが最小値記憶部MINの内容より
小さいか否かを判定する。もしステップ10の判定が“YE
S"であれば、ステップ11へ進んで最小値記憶部MINの内
容を今回の計測値に置き換える。
If step 8 is “NO”, then the CPU 10 determines in step 10 whether the current measured value T is smaller than the contents of the minimum value storage unit MIN. If the judgment in step 10 is “YE
If "S", the process proceeds to step 11, and the content of the minimum value storage unit MIN is replaced with the current measured value.

つぎにCPU10は合計値記憶部SUMの内容に今回の計測値
Tを加算した後、この加算値をカウンタNの現在値で割
って平均値を求め、その値をCPU10の内部の平均値記憶
部Hへ格納する(ステップ12,13)。つぎのステップ14
でCPU10は、この平均値記憶部H,最大値記憶部MAXおよ
び,最小値記憶部MINの各内容をビデオモニタ3のデー
タ表示領域6に表示させた後、ステップ15で引き続き測
定を継続することを確認した上で同様の手順を実行す
る。
Next, the CPU 10 adds the current measurement value T to the contents of the total value storage unit SUM, divides the added value by the current value of the counter N to obtain an average value, and calculates the average value in the average value storage unit inside the CPU 10. Stored in H (steps 12 and 13). Next Step 14
After displaying the contents of the average value storage unit H, the maximum value storage unit MAX, and the minimum value storage unit MIN in the data display area 6 of the video monitor 3, the CPU 10 continues the measurement in step 15. And then perform the same procedure.

なお同図は、計測時間についての演算処理を示してい
るが、データ出力時間の演算処理もこれと同様であり、
ここでは図示並びにその説明は省略する。
Although the figure shows the calculation process for the measurement time, the calculation process for the data output time is also the same,
Here, illustration and description thereof are omitted.

<発明の効果> この発明は上記の如く、入力画像につき特徴量の計測
時間を測定してその測定結果を表示するから、作業者は
この表示を見て特徴量の計測時間を常に正確に把握で
き、これにより製造ラインの能率向上をはかることが可
能であるなど、発明目的を達成した顕著な効果を奏す
る。
<Effect of the Invention> As described above, the present invention measures the measurement time of the characteristic amount for the input image and displays the measurement result. Therefore, the operator always accurately grasps the measurement time of the characteristic amount by looking at this display. As a result, it is possible to improve the efficiency of the production line, thereby achieving a remarkable effect of attaining the object of the invention.

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

第1図はこの発明の一実施例にかかる視覚センサの外観
図、第2図はモニタ画面の一例を示す説明図、第3図は
コントローラの回路構成例を示すブロック図、第4図は
CPUによる計測時間の測定手順を示すフローチャート、
第5図はCPUによる計測時間の処理手順を示すフローチ
ャートである。 1……カメラ、2……コントローラ 3……ビデオモニタ、9……計測部 10……CPU
FIG. 1 is an external view of a visual sensor according to an embodiment of the present invention, FIG. 2 is an explanatory diagram showing an example of a monitor screen, FIG. 3 is a block diagram showing an example of a circuit configuration of a controller, and FIG.
Flow chart showing the measurement time measurement procedure by the CPU,
FIG. 5 is a flowchart showing a processing procedure of the measurement time by the CPU. 1 ... camera 2 ... controller 3 ... video monitor 9 ... measuring unit 10 ... CPU

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】対象物を撮像してその形状や位置などを認
識するための視覚センサにおいて、 対象物を撮像して入力画像を生成する撮像手段と、 入力画像につき特徴量を計測して計測データを出力する
と共に、計測の開始と終了とに対応する信号を出力する
特徴量計測手段と、 特徴量計測手段からの信号入力に基づき特徴量の計測に
要する時間を測定する計時手段と、 計時手段による測定結果を表示するための表示手段とを
備えて成る視覚センサ。
1. A visual sensor for imaging an object and recognizing its shape, position, and the like, an imaging means for imaging the object to generate an input image, and measuring and measuring a feature amount of the input image. A feature quantity measuring means for outputting data and a signal corresponding to the start and end of the measurement; a time measuring means for measuring a time required for measuring the feature quantity based on a signal input from the feature quantity measuring means; Display means for displaying a measurement result by the means.
JP1311797A 1989-11-29 1989-11-29 Vision sensor Expired - Lifetime JP2940028B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1311797A JP2940028B2 (en) 1989-11-29 1989-11-29 Vision sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1311797A JP2940028B2 (en) 1989-11-29 1989-11-29 Vision sensor

Publications (2)

Publication Number Publication Date
JPH03171264A JPH03171264A (en) 1991-07-24
JP2940028B2 true JP2940028B2 (en) 1999-08-25

Family

ID=18021561

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1311797A Expired - Lifetime JP2940028B2 (en) 1989-11-29 1989-11-29 Vision sensor

Country Status (1)

Country Link
JP (1) JP2940028B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160234464A1 (en) * 2015-02-06 2016-08-11 Xerox Corporation Computer-vision based process recognition

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160234464A1 (en) * 2015-02-06 2016-08-11 Xerox Corporation Computer-vision based process recognition

Also Published As

Publication number Publication date
JPH03171264A (en) 1991-07-24

Similar Documents

Publication Publication Date Title
JPH0736001B2 (en) Bottle defect inspection method
JPS628072B2 (en)
JP2940028B2 (en) Vision sensor
JPH0135295B2 (en)
JPH02164789A (en) Automatic control device for diameter of single crystal
EP0247627A3 (en) Misconvergence amount measuring apparatus
JPS617406A (en) Defect detecting method of body shape
CN111369613A (en) Target size detection system and method based on FPGA
JPH0749569Y2 (en) Egg counting device
JPS5822026A (en) Pupil meter
JPH0552520A (en) Device for measuring perimenter length of digital image
JPH02285780A (en) Discrimination circuit
JPS6175691A (en) Invasion monitor by picture processing
JP3245975B2 (en) Image processing device
JP2638074B2 (en) Intersection position detection device
JPH01298479A (en) Inclination angle detector
KR100190696B1 (en) Linear array processor
JPH04216179A (en) Picture processor
JPS59176605A (en) Automatic measuring device of fine size
JPS6130697B2 (en)
JPH02203384A (en) Image input device with synchronous window
JP2853396B2 (en) Image processing device
JPS60200691A (en) Binarization system
JPH04136719A (en) Luminance measuring device
JPH01126060A (en) Scanning speed inspection device for picture input device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080618

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090618

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090618

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100618

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100618

Year of fee payment: 11