JPS59114407A - Area measurement system of object - Google Patents

Area measurement system of object

Info

Publication number
JPS59114407A
JPS59114407A JP22417682A JP22417682A JPS59114407A JP S59114407 A JPS59114407 A JP S59114407A JP 22417682 A JP22417682 A JP 22417682A JP 22417682 A JP22417682 A JP 22417682A JP S59114407 A JPS59114407 A JP S59114407A
Authority
JP
Japan
Prior art keywords
area
memory
screen memory
contents
identification register
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
JP22417682A
Other languages
Japanese (ja)
Inventor
Mitsuo Hiraizumi
平泉 満男
Hiroshi Sugimura
杉村 洋
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP22417682A priority Critical patent/JPS59114407A/en
Publication of JPS59114407A publication Critical patent/JPS59114407A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/28Measuring arrangements characterised by the use of optical techniques for measuring areas
    • G01B11/285Measuring arrangements characterised by the use of optical techniques for measuring areas using photoelectric detection means

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

PURPOSE:To enable the measurement of area quickly by counting pixels of an object to measure the area thereof after the identification of the object. CONSTITUTION:An image read out from a video camera PDD is binary coded with a binary coding circuit 7 and written into a picture memory 2 with a memory controller 8. Processor 1 executes a pretreatment according to an image processing program of a program memory 3. Then, the processor 1 executes the process of measuring area under the control of the image processing program. Then, the area of the desired object is received beforehand with the processor 1 through an interface circuit 5 and a bus 6 from an external robot controller and compared with the areas of objects stored in a storage area 4b of a data memory 4 to identify the object of the area matching it or most similar thereto.

Description

【発明の詳細な説明】 本発明は、物体の識別のために用いられる物体の面積測
定方式に関し、特に撮像手段で得た画像から物体の面積
を得る物体の面積測定方式に関する0 近年の産業用ロボットの発展は目覚しく、各種のセンサ
ーが設けられ、センサーの出力を利用して種々の制御を
実行している。特に視覚機能を備えた産業用ロボットで
は、物体を認識して選択的に物体に作業を行なうことが
出来、ロボットの機能を大幅に高めることができる。第
1図は係る視覚機能を持つ産業用ロボットの構成図を示
し、ビデオカメラPDDの撮像範囲内の物体A1、A2
にロボットのハンドHDが作業を行う図を示している。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method for measuring the area of an object used for object identification, and particularly relates to a method for measuring the area of an object for determining the area of the object from an image obtained by an imaging means. The development of robots has been remarkable, and they are equipped with various sensors, and the outputs of the sensors are used to perform various controls. In particular, industrial robots equipped with visual functions can recognize objects and selectively perform work on them, greatly increasing the functionality of the robot. FIG. 1 shows a configuration diagram of an industrial robot having such a visual function, and objects A1 and A2 within the imaging range of the video camera PDD.
2 shows a diagram in which the robot's hand HD performs a task.

ビデオカメラPDDからの画像を処理し、物体A1、A
2を認識し、物体の位置を識別し、ロボットのノ・ンド
HDを選択された物体A1又はA2に位置決めし、当該
物体を取上げる又は他の物体を嵌め込む等の作業を行う
。この様にビデオカメラPDDの画像から物体を識別す
るには、形状の認識や面積の認識の組合せによって行な
っている。物体の面積の識別には、第2図に示す様にビ
デオカメラPDDによって撮像範囲内の画像を撮像し、
2値化して画面メモリに格納する。この時2値化によシ
背景色の画素は10#、物体のある部分の画素は1”が
格納され、次に画面メモリを読出し走査し、各走査線上
での画素@1”の個数を計数することによ多面積が測定
され、この面積によって物体A1とA2を識別する。こ
のとき、第2図に示す如く、物体A1とA2が分離され
ておシ、同一走査線上に両物体が存在しない場合には、
個々の物体の面積の測定は容易である。
The images from the video camera PDD are processed and the objects A1 and A are
2, identifies the position of the object, positions the robot's node HD on the selected object A1 or A2, and performs work such as picking up the object or fitting it with another object. In this way, objects are identified from the image of the video camera PDD by a combination of shape recognition and area recognition. To identify the area of the object, as shown in Figure 2, an image within the imaging range is captured using a video camera PDD.
Binarize and store in screen memory. At this time, during binarization, 10# pixels are stored for the background color, and 1" are stored for pixels in the part of the object. Next, the screen memory is read and scanned to calculate the number of pixels @1" on each scanning line. By counting, multiple areas are measured, and the objects A1 and A2 are identified by this area. At this time, as shown in FIG. 2, if objects A1 and A2 are separated and both objects do not exist on the same scanning line,
Measuring the area of individual objects is easy.

しかしながら、第6図に示す如く同一走査線上に複数の
物体AI、A2が存在する場合や物体A3内に穴A3N
が存在する場合には、一走査線上の画素パ1#の数を単
純に計数する訳にはいかず、単に画像メモリに格納した
データを走査するだけでは面積の測定ができないという
問題が生じていた。即ち、一走査線上の画素“1#が物
体A1のものなのかA2のものなのか、又はA6のもの
なのかA3Nのものなのかを検出することが必要となり
極めて複雑な制御を必要とする欠点があった。
However, as shown in FIG. 6, if there are multiple objects AI and A2 on the same scanning line, or if there is a hole A3N
exists, the number of pixels P1# on one scanning line cannot be simply counted, and the problem arises that the area cannot be measured simply by scanning the data stored in the image memory. . That is, it is necessary to detect whether pixel "1#" on one scanning line belongs to object A1 or A2, or object A6 or A3N, which requires extremely complicated control. was there.

従って、本発明の目的は、−画面内に複数の物体が混在
した場合や穴部を有する物体の面積を容易に測定しうる
物体の面積測定方式を提供するにある。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an object area measuring method that can easily measure the area of an object having holes or when a plurality of objects coexist within a screen.

以下、本発明を実施例によシ詳細に説明する。Hereinafter, the present invention will be explained in detail using examples.

第4図、第5図、第6図は本発明の動作説明図であシ、
第4図(8)は走査線1からSn −dlでの間2物体
A1、A2が存在している図を示し物体A1、A2の各
々の面積を求めるものである。
FIG. 4, FIG. 5, and FIG. 6 are explanatory diagrams of the operation of the present invention.
FIG. 4(8) shows a diagram in which two objects A1 and A2 exist between scanning line 1 and Sn -dl, and the area of each of objects A1 and A2 is determined.

この第4図囚の様な物体をビデオカメラPDDが撮像し
、得られた画像信号を2値化して画面メモリに収容する
と第4図(ロ)の如くなる。即ち、物体部分A1、A2
のみが「1」であシ、それ以外は「0」となっている。
When the video camera PDD images an object like the one shown in FIG. 4, and the obtained image signal is binarized and stored in the screen memory, it becomes as shown in FIG. 4 (b). That is, object parts A1, A2
Only one is set to "1", and the others are set to "0".

ここで画面メモリでは1画素に対しn(例えば8)ピッ
トが割当てられているから、物体部分の画素は’ooo
ooooi″、それ以外の画素は“oooooooo”
となっている。
Here, in the screen memory, n (for example, 8) pits are assigned to one pixel, so the pixels of the object part are 'ooo
oooooi”, other pixels are “ooooooooo”
It becomes.

次に画像処理部は画面メモリの内容を読取り、輪郭線検
出し、物体番号を指定する。即ち、画像処理部は画面メ
モリを走査して各走査線Sβ〜Sαの各画素の記憶内容
を順次読取シ、隣シ合う画素の内容を比較して変化点を
検出する。そして検出された変化点を輪郭として、その
画素の記憶内容を「1」から物体番号に書き換える。こ
の例では、物体番号は「2」以上であシ、従って、第5
図に示す様に物体A1の輪郭画素は「2」(”0000
001.0’)に、物体A2の輪郭画素はl’−3J 
(”00.000011”)に書換えられる。以上が前
処理工程であシ、これによシ画素の物体の識別が可能と
なる。
Next, the image processing section reads the contents of the screen memory, detects the outline, and designates the object number. That is, the image processing section scans the screen memory, sequentially reads the stored contents of each pixel of each scanning line Sβ to Sα, and compares the contents of adjacent pixels to detect a change point. Then, using the detected change point as a contour, the stored content of that pixel is rewritten from "1" to the object number. In this example, the object number must be "2" or higher, so the fifth
As shown in the figure, the contour pixels of object A1 are "2"("0000
001.0'), the contour pixel of object A2 is l'-3J
("00.000011"). The above is a pre-processing step, which makes it possible to identify objects in pixels.

次に、面積測定工程を行なう。このためには、画面メモ
リ上の各走査線Sβ〜Sα上の11」及び物体番号の数
を計数する。即ち、画像処理部は画面メモリの各画素を
読出し、その記憶内容を判断する。記憶内容が10」で
あれば背景色であるから計数しない。記憶内容が10」
、「1」以外であれば物体番号であるから次の様に処理
する。先づ画像処理部は予じめ各物体番号毎に計数値格
納エリアa1〜anを用意しておき、又第6図の物体識
別レジスタを用意しておく。例えば画像処理部が画面メ
モリ第Sm番目を走査して物体番号をX4の位置で識別
すると、物体識別レジスタを「0」から物体番号「2」
に置き代える(第6図@)。これとともに、物体A1に
対応する格納エリアa1の内容に゛1″加算する。画像
処理部は次に画面メモリのx5の位置で「1」を読取る
が、この「1」の対応物体を検知するため物体識別レジ
スタを参照し、物体A1のものであることを検知して、
格納エリアa1の内容に“1#加算する。この様にして
画面メモリから1#を読取る毎に順次物体識別レジスタ
に対応する格納エリでの内容に“1″加算する。画面メ
七りのX9の位置の内容を読出すと、物体番号「2」で
sb物体A1の輪郭であるから、物体識別レジスタの内
容を「0」としく第6図(C1)、格納エリアa1の内
容に@1# 加算する。更に画面メモリの各位置x10
〜X17 の内容を順次読取るが、これらは全て「0」
であるから、画像処理部は物体識別レジスタ、格納エリ
アには何の動作もしない。次に画面メモリのxlBの位
置では物体番号性6」が読取られるから、物体識別レジ
スタの内容は物体番号「6」に置代えられ(第6図り、
物体A2に対応する格納エリアa2の内容に“1”加算
する。以後画面メモリの位tX19からX27までの「
1」は物体識別レジスタの物体番号を参照して、格納エ
リアa2の内容に順次“1″加算する。画面メモリの位
置X28では物体番号「ろ」が読出されるから、物体識
別レジスタの内容をroJとするとともに格納エリアa
2 の内容に゛1#加算する。以降画面メモリの位置χ
αまで全て「Ω」であるから物体識別レジスタの内容は
0の1まで、格納エリアの内容に変化は生じない。
Next, an area measurement step is performed. To do this, count the number of 11'' and object numbers on each scan line Sβ to Sα on the screen memory. That is, the image processing section reads each pixel of the screen memory and determines the stored contents. If the stored content is 10'', it is the background color and is not counted. Memory contents are 10.”
, if it is other than "1", it is an object number and is processed as follows. First, the image processing section prepares count value storage areas a1 to an for each object number in advance, and also prepares the object identification register shown in FIG. 6. For example, when the image processing unit scans the Smth screen memory and identifies the object number at position X4, the object identification register is changed from "0" to object number "2".
(Figure 6 @). At the same time, "1" is added to the contents of the storage area a1 corresponding to the object A1.The image processing unit then reads "1" at the position x5 in the screen memory, and detects the object corresponding to this "1". Therefore, it refers to the object identification register and detects that it belongs to object A1,
Add "1#" to the contents of the storage area a1. In this way, each time 1# is read from the screen memory, "1" is added to the contents of the storage area corresponding to the object identification register. When the content of the position of is read out, the object number is "2" and it is the outline of the sb object A1, so the content of the object identification register is set to "0" and the content of the storage area a1 is set to @1 in Fig. 6 (C1). # to add. Furthermore, each location of screen memory x10
The contents of ~X17 are read sequentially, but they are all "0"
Therefore, the image processing section does not perform any operation on the object identification register or storage area. Next, the object number "6" is read at the xlB location in the screen memory, so the contents of the object identification register are replaced with the object number "6" (see Figure 6).
Add "1" to the contents of storage area a2 corresponding to object A2. From then on, screen memory positions tX19 to X27 "
"1" refers to the object number in the object identification register and sequentially adds "1" to the contents of the storage area a2. Since the object number "ro" is read out at position X28 of the screen memory, the contents of the object identification register are set to roJ and the storage area a
Add ``1#'' to the contents of 2. After that, the screen memory location χ
Since all values up to α are "Ω", the contents of the object identification register range from 0 to 1, and no change occurs in the contents of the storage area.

この様にして一走査線Smでの面積測定(物体部分の画
素の計数)が完了すると、次の走査線Sm十1について
も同様にして面積測定が行なわれる。
When the area measurement (counting of pixels in the object portion) for one scanning line Sm is completed in this manner, area measurement is performed for the next scanning line Sm11 in the same manner.

全ての走査、@si〜Sαまで同様の面積測定が行なわ
れると、各計数値格納エリアa1〜anには対応する物
体の画素数(即ち面積)が格納されることになる。
When similar area measurements are performed for all scans @si to Sα, the number of pixels (i.e., area) of the corresponding object is stored in each count storage area a1 to an.

次に、第6図に示した穴部A3−N&有する物体A乙に
ついて適用した例について第7図及び第8図によシ説明
する。ビデオカメラPDD で物体A3を撮像し、画面
メモリに格納した後、前述の前処理を施すと第7図の如
くなシ、物体A乙の輪郭には物体A3の物体番号1−2
」が、穴部A3Nの輪郭に穴部A3Nの物体番号「−6
」が設定される。ある走査線Sαでの動作は、前述と同
様に、位置X4で物体番号「2」が読取られ、物体識別
レジスタに「2」が書込まれ(第8図@)、物体A6の
格納工+)アa6の内容に”1”加算され、以降画面メ
モリから1−1」が読出される毎に物体識別レジスタの
内容を参照し格納エリアa3に″′1″′加算される。
Next, an example applied to the object A3 having the hole A3-N & shown in FIG. 6 will be described with reference to FIGS. 7 and 8. After capturing an image of object A3 with the video camera PDD and storing it in the screen memory, after performing the above-mentioned preprocessing, the image shown in Fig.
" is the object number "-6" of hole A3N on the outline of hole A3N.
" is set. The operation at a certain scanning line Sα is similar to that described above: object number "2" is read at position ) "1" is added to the contents of a6, and thereafter, each time "1-1" is read from the screen memory, "1" is added to the storage area a3 with reference to the contents of the object identification register.

画面メモリの位置X10の内容が読取られると、物体番
号1−3」であるから、第8図(Qの如く物体識別レジ
スタに)  は更に「3」が書込まれ物体A3Nの格納
エリアa4の内容にパ1”加算する。次に画面メモリの
位置X11からX15までは「o」が読出されるが、物
体識別レジスタの内容がrOJ でないので、最新に書
込まれた物体番号1−6」の画素であると判別して、物
体(穴部)’A3Nの格納エリアa4の内容に゛′1″
加算する。画面メモリの位置X16では物体番号「3」
が読出されるから、物体識別レジスタの「6」を「0」
(置き代え(第8図0)、格納エリアa4の内容に゛′
1#加算する。次に画面メモリの位置X17において「
1」が読出されると、物体識別レジスタの内容を参照し
、格納エリアa6の内容に°’i”加算する。以後同様
にして一走査線Sαについて物体識別レジスタの参照、
対応格納エリアの内容へのII I IP加算を繰返し
、位置X22で物体番号「2」が読出され、物体識別レ
ジスタの「2」が「0」に置き代えられる。前述の例と
同様にこれを各走査線82〜Snについて繰返せば、格
納エリアaろには物体A3の面積が、格納エリアa4に
は物体(穴部) A3Nの面積が格納されること顛なる
When the contents of location X10 of the screen memory are read, it is "object number 1-3", so in FIG. 1" is added to the contents. Next, "o" is read from screen memory locations X11 to X15, but since the contents of the object identification register are not rOJ, the latest written object numbers 1-6" are read. The content of storage area a4 of object (hole) 'A3N' is determined as ''1''.
to add. Object number "3" at position X16 in screen memory
is read out, so set "6" in the object identification register to "0".
(Replacement (Fig. 8 0), contents of storage area a4
1# Add. Next, at location X17 in the screen memory,
When "1" is read out, the contents of the object identification register are referenced and °'i" is added to the contents of the storage area a6. Thereafter, the object identification register is referenced for one scanning line Sα in the same manner.
II I IP addition to the contents of the corresponding storage area is repeated, object number "2" is read out at position X22, and "2" in the object identification register is replaced with "0". If this is repeated for each scanning line 82 to Sn in the same way as in the previous example, the area of object A3 will be stored in storage area a and the area of object (hole) A3N will be stored in storage area a4. Become.

この様にして物体識別レジスタの内容によって容易に面
積の測定が可能となる。
In this way, the area can be easily measured based on the contents of the object identification register.

第7図の例において、穴部A3Nの内部「O」を前処理
で11」に書き代えておいても良い。
In the example of FIG. 7, the "O" inside the hole A3N may be replaced with "11" by preprocessing.

第9図は本発明の実現のだめの一実施例ブロック図であ
り、図中、1はプロセッサ(処理装置)であり、後述す
る画像処理プログラムに従い画像処理演算を実行するも
の、2は画面メモリであ凱1画素に8ビツトが割尚てら
れているもの、6はプログラムメモリであり、リードオ
ンリーメモリ(ROM)で構成され、画像処理プログラ
ムを格納するもの、4はデータメモリであり、ランダム
アクセスメモリ(RAM)で構成され、計数値格納エリ
ア4b、物体識別レジスタ4aを含むもの、5はインタ
ーフェイス回路であシ、外部との交信を行うだめのもの
、6はデータ・アドレスバスであり、これらを接続する
もの、7は2値化回路であシ、ビデオカメラPDDの撮
像信号を2値化(”1N又は0”)するもの、8はメモ
リコントローラであシ、2値化回路7の出力を8ビツト
に変化し、画面メモリ2に書込むものである。
FIG. 9 is a block diagram of one embodiment of the present invention, in which 1 is a processor (processing device) that executes image processing operations according to an image processing program to be described later, and 2 is a screen memory. 8 bits are allocated to each pixel. 6 is a program memory, which is composed of read-only memory (ROM) and stores the image processing program, and 4 is a data memory, which can be accessed randomly. It consists of a memory (RAM) and includes a count value storage area 4b and an object identification register 4a, 5 is an interface circuit, which is used for communicating with the outside, and 6 is a data/address bus. 7 is a binarization circuit, which binarizes the image signal of the video camera PDD ("1N or 0"), 8 is a memory controller, and the output of the binarization circuit 7 is changed to 8 bits and written to the screen memory 2.

次に第9図実施例構成の動作について説明すると、−ビ
デオカメラPDDから読取られた画像は2値化回路7で
2値化され、メモリコントローラ8によシ画面メモリ2
に第4図(B)の如く書込まれる。
Next, the operation of the configuration of the embodiment shown in FIG.
is written as shown in FIG. 4(B).

プロセッサ1はプログラムメモリ乙の画像処理プログラ
ムに従い先づ前処理を実行する。即ち、画面メモリ2を
走査し、走査線上の各画素をバス6を介し順次読出し、
隣シ合う画素を比較して輪郭を抽出し、画面メモリ2上
の輪郭部の画素を物体番号に書き代える。この様にして
画面メモリ2の内容は第5図(又は第7図)の如くなる
。そしてプロセッサ1はデータメモリ4の格納エリア4
bに物体番号に対応する格納エリアa1〜anを設定す
る。
Processor 1 first executes preprocessing according to the image processing program in program memory B. That is, the screen memory 2 is scanned, each pixel on the scanning line is sequentially read out via the bus 6,
The contour is extracted by comparing adjacent pixels, and the pixels of the contour portion on the screen memory 2 are replaced with object numbers. In this way, the contents of the screen memory 2 become as shown in FIG. 5 (or FIG. 7). The processor 1 then stores the storage area 4 of the data memory 4.
Storage areas a1 to an corresponding to the object numbers are set in b.

前処理工程が終了すると、プロセッサ1は画像処理プロ
グラムの制御の元に面積測定工程を実行する。即ち、画
面メモリ2の各走査線上の各画素をバス6を介し読出し
、読出した記憶内容が「0」か「0」以外かを判別する
。読出した記憶内容が「0」であれば、次の画素を読出
し、同様の判別を行う。
When the preprocessing step is completed, the processor 1 executes an area measurement step under the control of the image processing program. That is, each pixel on each scanning line of the screen memory 2 is read out via the bus 6, and it is determined whether the read memory content is "0" or other than "0". If the read memory content is "0", the next pixel is read and the same determination is made.

読出した画素が「0」でなければ、物体番号か否かを判
別する。この実施例では、「2」以上を物体番号として
いるので、「1」以外であれば物体番号としてバス6を
介し物体識別レジスタ4aに書込む。
If the read pixel is not "0", it is determined whether it is an object number or not. In this embodiment, since "2" or more is used as the object number, if it is other than "1", it is written into the object identification register 4a via the bus 6 as the object number.

これとともに物体番号に対応する格納エリア4bの内容
に”1”加算する。読出した画素が「1」であれば、既
に物体識別レジスタ4aに物体番号が書込まれているか
ら、プロセッサ1はバス6を介しデータメモリ4の物体
識別レジスタ4aの内容を読取シ、物体番号を認識して
対応する格納エリア4bの内容に“1”加算する。再度
同一の物体番号が読取°られると、プロセッサ1はデー
タメモリ4の物体識別レジスタ4aの内容を見て、一度
書込まれたものであるから、このζ体番号を10」に置
き代え消去し、対応する格納エリア4bの内容に“1″
加算する。
At the same time, "1" is added to the contents of the storage area 4b corresponding to the object number. If the read pixel is "1", the object number has already been written in the object identification register 4a, so the processor 1 reads the contents of the object identification register 4a of the data memory 4 via the bus 6 and sets the object number. is recognized and "1" is added to the contents of the corresponding storage area 4b. When the same object number is read again, the processor 1 looks at the contents of the object identification register 4a in the data memory 4 and erases it by replacing this ζ body number with 10, since it has been written once. , the content of the corresponding storage area 4b is “1”
to add.

この様にして、プロセッサ1は画面メモリ2の全ての走
査線に対しこの工程を施せば、データメモリ4の格納エ
リア4bには各物体の画素数(即ち面積が得られること
になる。
In this way, if the processor 1 performs this process on all the scanning lines of the screen memory 2, the number of pixels (ie, the area) of each object will be obtained in the storage area 4b of the data memory 4.

この面積を用いて所望の物体を識別するには、所望の物
体の面積を予じめ、外部のロボット制御装置からインタ
ーフェイス回路5、バス6を介しプロセッサ1が受けて
おき、データメモリ4の格納エリア4bに格納されてい
る各物体の面積と比較しミ一致又は最も近い面積の物体
を検出すれば良い。更に、この物体の座標を得るには、
画面メモリでの検出された物体の中心座標をプロセッサ
1が演算し、更に物体の置かれた平面での実座標に変換
し、バス6、インターフェイス回路5を介し、ロボット
制御装置へ送る。これによプロボット制御装置はハンド
HD(第1図)をこの座標位置に位置決め制御すること
によシ、物体に対しノ・ンド即による作゛業を行なう。
In order to identify a desired object using this area, the area of the desired object is received in advance by the processor 1 from an external robot control device via the interface circuit 5 and the bus 6, and is then stored in the data memory 4. It is sufficient to compare the area of each object stored in the area 4b and detect the object that matches or has the closest area. Furthermore, to obtain the coordinates of this object,
The processor 1 calculates the center coordinates of the detected object in the screen memory, converts it into real coordinates on the plane on which the object is placed, and sends the coordinates to the robot control device via the bus 6 and interface circuit 5. As a result, the probot control device performs operations on the object by controlling the positioning of the hand HD (FIG. 1) at this coordinate position.

以上説明した様に、本発明によれば、撮像手段からの画
像信号を画面メモリに格納した後、制御部が格納された
記憶内容から物体の画素を計数して物体の面積を測定す
る面積測定方式において、物体の輪郭に対応する画素に
物体番号を与えて画面メモリを書替え、画素計数時には
物体番号を読出した時に物体識別レジスタにセットし、
物体の画素を物体識別レジスタの内容を参照して対応す
る物体の画素計数値に加算しているので、複数の物体が
読出し走査線上に存在しても容易に区別して画素計数が
可能となるという効果を奏し、特に物体の輪郭位置アド
レスを別途格納しておかなくても単に画面メモリを読出
すのみで物体の識別が可能となり、画素の読出し毎のア
ドレス比較が必要としないという効礫・を奏し、それだ
けメモリ容量を少なくできるとともに複雑な画像処理プ
ログラムを簡素化でき、短時間で面積測定が可能となる
という実用上優れた効果も奏する。
As explained above, according to the present invention, after storing the image signal from the imaging means in the screen memory, the control section measures the area of the object by counting the pixels of the object from the stored memory contents. In this method, the screen memory is rewritten by giving an object number to the pixel corresponding to the outline of the object, and when counting pixels, when the object number is read out, it is set in the object identification register.
Since the pixels of an object are added to the pixel count value of the corresponding object by referring to the contents of the object identification register, even if multiple objects are present on the readout scanning line, it is possible to easily distinguish them and count the pixels. This has the advantage that objects can be identified simply by reading out the screen memory without having to separately store the object's outline position address, and there is no need to compare addresses each time a pixel is read. This has excellent practical effects in that the memory capacity can be reduced accordingly, complex image processing programs can be simplified, and area measurement can be performed in a short time.

尚、本発明を一実施例により説明したが、本発明は上述
の実施例に限定されることなく、本発明の主旨に従い種
々の変形が可能であり、これらを本発明の範囲から排除
するものではない。
Although the present invention has been explained using one example, the present invention is not limited to the above-mentioned example, and various modifications can be made in accordance with the gist of the present invention, and these are excluded from the scope of the present invention. isn't it.

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

第1図は、視覚機能を持つ産業用、ロボット構成図、第
21、第3図は物体の面積測定の原理説明第8図は本発
明の他の実施例説明図、第9図は本発明の一実施例ブロ
ック図である。 図中、PDD・・・・・・ビデ′オカメラ(撮像手段)
、A1、A2、A3・・・・・・物体、1・・・処理装
置、2・・・二・・画面メモリ、4・・・・・・データ
メモリ、4a・・・・・・物体識別レジスタ、4b・・
・・・・計数値格納エリア。 代理人  弁理士 辻   實 外2名v l 図 第3 図 第 2 図 第 4 図 (,4) 「 91□− (B)
Fig. 1 is a configuration diagram of an industrial robot with a visual function, Figs. 21 and 3 are explanations of the principle of measuring the area of an object, Fig. 8 is an illustration of another embodiment of the present invention, and Fig. 9 is a diagram of the invention. FIG. 1 is a block diagram of an embodiment of the present invention. In the figure, PDD...video camera (imaging means)
, A1, A2, A3...Object, 1...Processing device, 2...2...Screen memory, 4...Data memory, 4a...Object identification Register, 4b...
... Count value storage area. Agent Patent attorney Minoru Tsuji and 2 others v l Figure 3 Figure 2 Figure 4 (,4) "91□- (B)

Claims (1)

【特許請求の範囲】[Claims] 物体を撮像する撮像手段と、該撮像手段からの画像信号
を記憶する画面メモリと、該画面メモリを読出し走査し
記憶された物体の画素を計数する制御部とを有し、該物
体の画素の数によって該物体の面積を測定する物体の面
積測定方式において、該制御部は該画面メモリの内容か
ら物体の輪郭を抽出し、該画面メモリの該輪郭に対応す
る画素に物体番号を格納せしめるとともに該読出し走査
により該物体番号を読出しだ時に該物体番号を物体識別
レジスタにセットし、該制御部がii!ii累を読出す
毎に該物体識別レジスタを参照して対応する物体の画素
計数値に加算することを特徴とする物体の面積測定方式
It has an imaging means for taking an image of an object, a screen memory for storing an image signal from the imaging means, and a control section for reading and scanning the screen memory and counting the stored pixels of the object. In an object area measurement method in which the area of the object is measured by a number, the control unit extracts the outline of the object from the contents of the screen memory, stores an object number in a pixel corresponding to the outline of the screen memory, and When the object number is read out by the readout scan, the object number is set in the object identification register, and the control unit ii! 2. A method for measuring the area of an object, characterized in that each time the accumulated data is read out, the object identification register is referred to and added to the pixel count value of the corresponding object.
JP22417682A 1982-12-21 1982-12-21 Area measurement system of object Pending JPS59114407A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22417682A JPS59114407A (en) 1982-12-21 1982-12-21 Area measurement system of object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22417682A JPS59114407A (en) 1982-12-21 1982-12-21 Area measurement system of object

Publications (1)

Publication Number Publication Date
JPS59114407A true JPS59114407A (en) 1984-07-02

Family

ID=16809712

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22417682A Pending JPS59114407A (en) 1982-12-21 1982-12-21 Area measurement system of object

Country Status (1)

Country Link
JP (1) JPS59114407A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01305303A (en) * 1988-06-03 1989-12-08 Yamatake Honeywell Co Ltd Method and apparatus for visual measurement
JPH0210104A (en) * 1988-06-28 1990-01-12 Sumitomo Heavy Ind Ltd Area measuring device
JP2004508572A (en) * 2000-09-11 2004-03-18 ライカ ゲオシステムズ アー ゲー Method of identifying measurement points in an optical measurement system
JP2006000427A (en) * 2004-06-18 2006-01-05 Secom Co Ltd Meal support apparatus
US7539563B2 (en) * 2004-11-03 2009-05-26 Samsung Electronics Co., Ltd. System and method for identifying objects in a space

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01305303A (en) * 1988-06-03 1989-12-08 Yamatake Honeywell Co Ltd Method and apparatus for visual measurement
JPH0210104A (en) * 1988-06-28 1990-01-12 Sumitomo Heavy Ind Ltd Area measuring device
JP2004508572A (en) * 2000-09-11 2004-03-18 ライカ ゲオシステムズ アー ゲー Method of identifying measurement points in an optical measurement system
JP2006000427A (en) * 2004-06-18 2006-01-05 Secom Co Ltd Meal support apparatus
US7539563B2 (en) * 2004-11-03 2009-05-26 Samsung Electronics Co., Ltd. System and method for identifying objects in a space

Similar Documents

Publication Publication Date Title
US4272756A (en) Method of pattern recognition and apparatus thereof
CN102393397B (en) System and method for detecting surface defects of magnetic shoe
CN107016348B (en) Face detection method and device combined with depth information and electronic device
JP3265595B2 (en) Image processing method and apparatus
CN112802017B (en) Method and device for detecting product external qualification based on workbench
JPS59114407A (en) Area measurement system of object
EP0599335B1 (en) Cylindrical container inner surface tester
JP3627249B2 (en) Image processing device
JP3427230B2 (en) Image processing device
JP4299908B2 (en) Object boundary determination method and apparatus
JP3362191B2 (en) Method and apparatus for indicating coordinates of circular inspection target area and inspection apparatus using the apparatus
JP3087788B2 (en) Component position detection method and device
JPS61182509A (en) Spiral spring shape tester
JP2897612B2 (en) Work detection method
JP2959017B2 (en) Circular image discrimination method
JPH09251538A (en) Device and method for judging presence or absence of object
JPH0352015B2 (en)
JPS62154076A (en) Picture processing method
JP3552419B2 (en) Object recognition method
JPH0560147B2 (en)
JP2642185B2 (en) Angle detector
JP2024032411A (en) Feature generation method
JPH02179401A (en) Measuring method of object
JP2757228B2 (en) Image data processing method for image sensor
JPH08152315A (en) Image recognition unit