JPH03139776A - Object identifying method - Google Patents

Object identifying method

Info

Publication number
JPH03139776A
JPH03139776A JP1279385A JP27938589A JPH03139776A JP H03139776 A JPH03139776 A JP H03139776A JP 1279385 A JP1279385 A JP 1279385A JP 27938589 A JP27938589 A JP 27938589A JP H03139776 A JPH03139776 A JP H03139776A
Authority
JP
Japan
Prior art keywords
color
identification
signal
signals
binary image
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
JP1279385A
Other languages
Japanese (ja)
Inventor
Akihiko Kanamori
金森 彰彦
Shuichi Sunahara
秀一 砂原
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.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP1279385A priority Critical patent/JPH03139776A/en
Publication of JPH03139776A publication Critical patent/JPH03139776A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To shorten the signal processing time of high identification information while maintaining the information by identifying and judging the object by using a binary image of a brightness signal in a 1st identifying process and identifying and judging the object by using a binary image of chromatic components in a 2nd identifying process when the object can not be identified in the 1st identifying process. CONSTITUTION:An external equipment I/F 36 is connected to a CPU 18 through a data balance line 28 and signals indicating the decision result of kind identification, the result of a position measurement, etc., are outputted from its external equipment I/F 36 to a classifying device,n automatic working machine, etc., through a parallel I/F 38 and a serial I/F 40. When a visual device identifies the kind of a component 10, the identification processing is performed by using the binary image of the brightness signal SY. Then the binary image of chromatic components SR, SG, and SB is used when necessary. Consequently, while high identification accuracy is maintained, its signal processing time is shortened as compared with a case wherein signal processing is performed by using the chromatic components SR, SG, and SB from the beginning.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、カラー画像信号に基づいて物体の種類を識別
する物体識別方法の改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an improvement in an object identification method for identifying the type of object based on a color image signal.

従来の技術 自動加工機などにおいては、TVカメラ等の撮像装置を
用いて物体の種類を識別し、その種類に対応する加工等
を自動的に施すことが行われている。例えば、特開昭6
3−142791号公報に記載されている装置はその一
例で、明るさのみを基準とした2値画像に基づいて物体
の種類を識別するようになっている。かかる処理装置に
よれば、信号処理時間が速いとともに装置が簡単かつ安
価に構成され得る利点があるが、反面、形状が同じか類
似しているものについては識別し得ないという欠点があ
った。
2. Description of the Related Art In conventional automatic processing machines, the type of object is identified using an imaging device such as a TV camera, and a process corresponding to the type is automatically performed. For example, JP-A-6
The device described in Japanese Patent No. 3-142791 is an example of such a device, which identifies the type of object based on a binary image based only on brightness. Such a processing device has the advantage that the signal processing time is fast and the device can be constructed simply and inexpensively, but on the other hand, it has the disadvantage that it is not possible to distinguish between objects that have the same or similar shapes.

これに対し、カラーカメラ等のカラー撮像装置から出力
されたカラー画像信号に基づいて、物体の種類を識別す
るようにした装置が提案されている。これによれば、形
状のみならず色についても判断されるため、形状が同じ
であっても色の相違から物体の種類を高い精度で識別で
きるようになる。
In response to this, a device has been proposed that identifies the type of object based on a color image signal output from a color imaging device such as a color camera. According to this method, not only the shape but also the color is determined, so that even if the shapes are the same, the type of object can be identified with high accuracy based on the difference in color.

発明が解決しようとする課題 しかしながら、このようなカラー撮像装置を用いた画像
処理装置は、従来、R(赤)、G(緑)。
Problems to be Solved by the Invention However, conventional image processing apparatuses using such a color imaging device have been used for R (red) and G (green).

B(青)の3原色の色データを用いて、それ等を例えば
8ビット:256階調に分割してディジタル化し、各デ
ータをフレームメモリに記憶するとともに、そのデータ
を読み出して判別処理を行うようになっていたため、処
理すべきデータ量が極めて多く、大容量の記憶装置が必
要で装置が高価になるとともに、処理時間が長くなると
いう問題があった。
Using the color data of the three primary colors of B (blue), divide it into, for example, 8 bits: 256 gradations and digitize it, store each data in a frame memory, and read out the data for discrimination processing. As a result, the amount of data to be processed is extremely large, requiring a large-capacity storage device, making the device expensive and prolonging the processing time.

本発明は以上の事情を背景として為されたもので、その
目的とするところは、カラー画像信号を用いて高速且つ
高精度に物体の種類を識別できるようにすることにある
The present invention has been made against the background of the above circumstances, and its purpose is to enable the type of object to be identified at high speed and with high precision using color image signals.

課題を解決するための手段 かかる目的を達成するためには、カラー画像信号のうち
先ず輝度信号に基づいて識別処理を行い、輝度信号のみ
では識別できない場合に色信号に茫づいて識別処理を行
うようにすれば良く、本発明は、カラー撮像装置によっ
て撮像された物体が予め定められた複数種類の対象物の
何れであるかを、そのカラー撮像装置から出力されたカ
ラー画像信号に基づいて識別する物体識別方法であって
、(a)前記カラー画像信号のうち光強度に関する輝度
信号に基づいて得られた2値画像を用いて前記物体の種
類を識別する第1の識別工程き、(b)その第1の識別
工程において前記物体の種類を識別し得なかった場合に
、前記カラー画像信号のうち複数の色相に関する色信号
に基づいて得られた前記物体の色に関する2値画像を用
いてその物体の種類を識別する第2の識別工程とを有す
ることを特徴とする。
Means for Solving the Problems In order to achieve this objective, identification processing is first performed based on the luminance signal of the color image signals, and when identification cannot be performed using only the luminance signal, identification processing is performed based on the color signal. The present invention can identify which of a plurality of predetermined types of objects an object imaged by a color imaging device is based on a color image signal output from the color imaging device. An object identification method comprising: (a) a first identification step of identifying the type of the object using a binary image obtained based on a luminance signal related to light intensity among the color image signals; ) When the type of the object cannot be identified in the first identification step, using a binary image regarding the color of the object obtained based on color signals regarding a plurality of hues among the color image signals. A second identification step for identifying the type of the object.

なお、上記第2の識別工程においては、必ずしも全ての
種類の対象物に関する識別判断を行う必要はなく、例え
ば第1の識別工程において可能性が高いと判断された1
乃至は数種類の対象物についてのみ、その色に関する2
値画像に基づいて識別判断を行うようにしても良い。
In addition, in the second identification step, it is not necessary to make identification judgments regarding all types of objects; for example, it is not necessary to make identification judgments regarding all types of objects.
Or, for only a few types of objects, there are two
The identification judgment may be made based on the value image.

作用および発明の効果 このような物体識別方法においては、先ず、第1の識別
工程で輝度信号による2値画像を用いて物体の識別判断
が行われ、その第1の識別工程において識別し得なかっ
た場合に、第2の識別工程で色信号による2値画像を用
いて物体の識別判断が行われるため、例えば形状に特徴
を有する物体については第1の識別工程のみで識別が終
了する一方、形状が同じか類似する複数種類の対象物が
存在する場合には、第2の識別工程が実施されてその物
体の色を考慮した識別が行われることとなり、高い識別
精度を維持しつつその信号処理時間が短縮される。
Operation and Effects of the Invention In such an object identification method, first, in a first identification step, a binary image based on a luminance signal is used to identify an object. In this case, the object is identified in the second identification step using a binary image based on color signals, so for example, for an object with a characteristic shape, identification is completed only in the first identification step; When there are multiple types of objects with the same or similar shapes, a second identification step is performed to perform identification that takes into account the color of the object, and the signal is processed while maintaining high identification accuracy. Processing time is reduced.

特に、上記第1および第2の識別工程は、何れも2値画
像に基づいて識別判断を行うようになっているため、デ
ィジタル信号による濃淡画像やカラー画像を用いる場合
に比較して処理すべきデータ量が極めて少量で済み、前
記信号処理時間が大幅に短縮される七ともに、大容量の
フレームメモリ等が不要となって装置が安価に構成され
得るのである。
In particular, in both the first and second identification steps, identification judgments are made based on binary images. The amount of data can be extremely small, the signal processing time can be significantly shortened, and a large-capacity frame memory or the like can be eliminated, making it possible to construct the apparatus at low cost.

また、このように第1および第2の識別工程が何れも2
値画像を用いて行われるところから、2値画像について
識別処理を行うためのハードウェアやソフトウェアを共
用することが可能で、装置を一層簡単かつ安価に構成す
ることができる。
In addition, in this way, both the first and second identification steps are performed twice.
Since the identification process is performed using value images, it is possible to share the hardware and software for performing identification processing on binary images, and the apparatus can be configured more simply and at low cost.

実施例 以下、本発明の一実施例を図面に基づいて詳細に説明す
る。
EXAMPLE Hereinafter, an example of the present invention will be described in detail based on the drawings.

第1図は、本発明方法に従って物体の種類を識別する視
覚装置の構成を説明するブロック線図である。かかる第
1図において、10は分類装置や自動加工機等に供給さ
れた物体としての部品であり、色や形状が異なる複数種
類の対象物の中の1つである。部品10の上方にはカラ
ー撮像装置としてのカラーカメラ12が設置されており
、部品10で反射された光を受光してその光強度を表す
輝度信号SYと、その光の色をR(赤)、G(緑)、B
(青)の3原色で表す色信号SR,SG。
FIG. 1 is a block diagram illustrating the configuration of a visual device for identifying object types according to the method of the present invention. In FIG. 1, reference numeral 10 is a part as an object supplied to a sorting device, an automatic processing machine, etc., and is one of a plurality of types of objects having different colors and shapes. A color camera 12 as a color imaging device is installed above the component 10, and receives the light reflected by the component 10 and outputs a luminance signal SY representing the light intensity and the color of the light R (red). , G (green), B
Color signals SR and SG are represented by three primary colors (blue).

SBとを合成したカラー画像信号SPを出力する。A color image signal SP synthesized with SB is output.

上記カラー画像信号SPは分離回路14に供給され、上
記輝度信号syと、色信号SR,5O3Bとに分離され
る。これ等の信号は何れもアナログ信号で、輝度信号S
Yは2値化コンパレーク16に供給される。2値化コン
パレータ16にば、CPU18から出力された2値化レ
ベルを表ずレベル信号SLがD/Aコンバータ2oを介
して供給されるようになっており、2値化コンパレータ
16は、上記輝度信号SYとアナログ化されたレベル信
号SLとを比較して、その輝度信号SYをレベル信号S
Lの上か下かによって2つの値で表した2値信号SY“
に変換する。上記レベル信号SLは、輝度信号SYが部
品10で反射したものとそうでないものとに分けられる
ように、照明照度等を考慮して設定される。
The color image signal SP is supplied to a separation circuit 14, where it is separated into the luminance signal sy and color signals SR, 5O3B. All these signals are analog signals, and the luminance signal S
Y is supplied to a binarization comparator 16. The binarization comparator 16 is supplied with a level signal SL output from the CPU 18, which does not represent the binarization level, via the D/A converter 2o. The signal SY is compared with the analog level signal SL, and the luminance signal SY is converted into the level signal S.
A binary signal SY” expressed by two values depending on whether it is above or below L.
Convert to The level signal SL is set in consideration of illuminance and the like so that the luminance signal SY can be divided into those reflected by the component 10 and those not reflected.

一方、上記色信号SR,SG、SBは複数の色相に関す
るアナログ信号であり、それぞれ抽出回路22R,22
G、22Bに供給される。これ等の抽出回路22R,2
2G、22[1にはまた、CPU18から予め設定され
た色データに対応するデータ信号SDR,SDG 、S
Dl]がD/Aコンバータ24R,24c、24nを介
してそれぞれ供給されるようになっており、抽出回路2
2R122G、22++は、画素毎に供給される色信号
SR,SG、SBとアナログ化されたデータ信号SDR
、S Dc 、  S DRとをそれぞれ比較して、そ
のデータ信号SDR,SD、、SD、の範囲内の信号成
分のみを出力する。データ信号SDR,SDc 、SD
eはそれぞれ一定の幅を有しており、抽出回路22R,
22G、22Bは、例えばその幅の上限よりも低い信号
成分を通過させるコンパレータと、下限よりも高い信号
成分を通過させるコンパレータとを含んで構成される。
On the other hand, the color signals SR, SG, and SB are analog signals related to a plurality of hues, and the extraction circuits 22R and 22 respectively
G, 22B. These extraction circuits 22R, 2
2G, 22[1 also have data signals SDR, SDG, S corresponding to color data set in advance from the CPU 18.
Dl] are supplied via D/A converters 24R, 24c, and 24n, respectively, and the extraction circuit 2
2R122G, 22++ are the color signals SR, SG, SB supplied to each pixel and the analog data signal SDR.
, S Dc , and S DR, respectively, and output only signal components within the range of the data signals SDR, SD, , SD. Data signals SDR, SDc, SD
e each have a certain width, and the extraction circuits 22R,
22G and 22B are configured to include, for example, a comparator that passes a signal component whose width is lower than the upper limit thereof, and a comparator that passes a signal component whose width is higher than the lower limit.

上記抽出回路22R,22,,22Ilを通過した色信
号SR,SG、SBは、色画像検出器26に供給される
。色画像検出器26は、全ての色信号SR,SGおよび
SBが供給されたか否かによって各画素を2つの値で表
した2値信号SCを出力する。かかる色画像検出器26
は、例えば色信号SR,SGおよびSBが全て供給され
た場合にのみ信号を出力するAND回路等を含んで構成
される。
The color signals SR, SG, and SB that have passed through the extraction circuits 22R, 22, and 22Il are supplied to a color image detector 26. The color image detector 26 outputs a binary signal SC representing each pixel with two values depending on whether all the color signals SR, SG and SB are supplied. Such a color image detector 26
is configured to include, for example, an AND circuit that outputs a signal only when all of the color signals SR, SG, and SB are supplied.

前記CPU1Bは、データパスライン28を介して接続
されたROM30.RAM32  およびビデオRAM
34と共にマイクロコンピュータを構成しており、RA
M32およびビデオRAM34の一時記憶機能を利用し
つつROM30に予め記憶されたプログラムに従って信
号処理を行い、前記レベル信号SLおよびデータ信号S
D、  SDc、SDRを出力するとともに、2(+!
信号sy’およびSCをデータバスライン28を介して
読み込む。上記レベル信号SLが表す2値化レベルは、
図示しない設定器若しくは接続端子を介して接続サレタ
パソコン等の外部機器などにより、予めROM30に記
憶されている。また、データ信号SDR,SD、、SD
、が表す色データは、対象物の種類毎に、その対象物の
面積、穴数2周囲長等の特徴データと共に設定器若しく
は外部機器などにより予めROM30に記憶されている
。この色データは、対象物の色を前記色信号SR,5G
SBによって表した場合における各信号値のデータで、
更に具体的には、赤、緑、青の3原色を混合してその対
象物の色を作り出す場合における各色の濃淡すなわち混
合割合を表すものであり、照明の変化や対象物の個体差
等による僅かな色の相違等を考慮して一定の幅をもって
設定されている。
The CPU 1B is connected to a ROM 30 . RAM32 and video RAM
34 constitutes a microcomputer, and RA
Signal processing is performed according to a program stored in advance in the ROM 30 while utilizing the temporary storage function of the M32 and the video RAM 34, and the level signal SL and data signal S are
In addition to outputting D, SDc, and SDR, 2(+!
Signals sy' and SC are read in via data bus line 28. The binarization level represented by the level signal SL is:
The information is stored in advance in the ROM 30 by an external device such as a personal computer connected via a setting device or connection terminal (not shown). In addition, data signals SDR, SD, , SD
The color data represented by , is stored in advance in the ROM 30 by a setting device or an external device, along with characteristic data such as the area of the object, the number of holes, the circumference length, etc., for each type of object. This color data represents the color of the object using the color signals SR and 5G.
Data of each signal value when expressed by SB,
More specifically, it represents the shading, or mixing ratio, of each color when mixing the three primary colors of red, green, and blue to create the color of the object, and it varies depending on changes in lighting, individual differences in the object, etc. A certain width is set in consideration of slight differences in color, etc.

また、上記2植体号SY“およびSCはそれぞれ部品1
0の形状を表すもので、2稙画像としてビデオRAM3
4に一時記憶される一方、cpu18により読み出され
てその種類の識別や位置計測等が行われる。位置計測は
、例えば上記2植体号SY“による2値画像に基づいて
行われ、種類の識別は、前記ROM30に記憶された特
徴データと上記2値画像とを比較することにより、例え
ば第2図に示されているフローチャー1・に従って行わ
れる。
In addition, the above two plant numbers SY" and SC are each part 1.
It represents the shape of 0 and is stored in video RAM3 as a 2-line image
4 and read out by the CPU 18 to identify its type, measure its position, etc. Position measurement is performed, for example, based on a binary image based on the above-mentioned 2 plant type SY", and type identification is performed, for example, by comparing the feature data stored in the ROM 30 with the above-mentioned binary image. This is carried out according to the flowchart 1 shown in the figure.

すなわち、先ず、ステップS1においては輝度信号SY
に基づいて得られた2値信号SY°による2値画像が読
み出され、ステップS2において、0 その2値画像と予め記憶された全ての対象物の特徴デー
タとを比較することにより部品10の種類が識別される
。具体的には、予め記憶されている複数種類の対象物の
各特徴データと上記2値画像との一致の度合を、SRI
アルゴリズムに従って統計的距離としてそれぞれ算出す
る。この統計的距離は、対象物の特徴データと2値画像
との一致の度合が高い程その値が零に近くなる。
That is, first, in step S1, the luminance signal SY
A binary image based on the binary signal SY° obtained based on The type is identified. Specifically, the degree of coincidence between each feature data of a plurality of types of objects stored in advance and the binary image is calculated using SRI.
Each is calculated as a statistical distance according to an algorithm. The value of this statistical distance becomes closer to zero as the degree of coincidence between the feature data of the object and the binary image increases.

そして、ステップS3においては、部品10の種類が正
常に識別されたか否か、すなわちその識別結果により部
品10の種類が1つに特定されるか否かが判定され、1
つに特定される場合には一連の種類識別に関する信号処
理は終了する。このステップS3における判定手法は、
前記統計的距離の値が小さい3種類の対象物を抽出し、
先ず、その値が最も小さい第1位の統計的距離が予め定
められた一定値より小さいか否かによって第1のチエツ
クを行い、次に、その第1位の統計的距離と第2位、第
3位の統計的距離との偏差が予め定められた一定の偏差
値より大きいか否かによって第2のチエツクを行うこと
により、最終的に判定する。具体的には、第1位の統計
的距離が上記−定値より小さく、且つ第2位、第3位の
統計的距離との偏差が上記一定の偏差値より大きい場合
には、部品10はその第1位の統計的距離が算出された
対象物であると判定され、一連の信号処理は終了する。
Then, in step S3, it is determined whether or not the type of the component 10 has been correctly identified, that is, whether or not the type of the component 10 is identified as one based on the identification result.
If it is specified, the series of signal processing related to type identification ends. The determination method in step S3 is as follows:
Extract three types of objects with small statistical distance values,
First, a first check is performed depending on whether the first statistical distance with the smallest value is smaller than a predetermined constant value, and then the first statistical distance and the second statistical distance are compared. A final determination is made by performing a second check depending on whether the deviation from the third-rank statistical distance is larger than a predetermined constant deviation value. Specifically, if the first statistical distance is smaller than the above-described - constant value, and the deviation from the second and third statistical distances is larger than the above-described certain deviation value, the component 10 It is determined that the object is the object for which the first statistical distance has been calculated, and the series of signal processing ends.

しかし、第1位の統計的距離が上記−定値より大きい場
合や、一定値より小さくても第2位、第3位の統計的距
離との偏差が上記一定の偏差値より小さい場合には、部
品10の種類を特定することなくステップ34以下が実
行される。
However, if the first statistical distance is larger than the above-mentioned constant value, or if the deviation from the second and third place statistical distances is smaller than the above-mentioned fixed deviation value even if it is smaller than the certain value, Step 34 and subsequent steps are executed without specifying the type of component 10.

ステップS4においては、複数種類の対象物に関する色
データのデータ信号SD、、SDGおよびSD、がそれ
ぞれ出力され、各々の色に関する2植体号SCが読み込
まれてビデオRAM30に一時記憶される。このデータ
信号SD、、SD。
In step S4, data signals SD, , SDG, and SD of color data regarding a plurality of types of objects are output, and two system codes SC regarding each color are read and temporarily stored in the video RAM 30. This data signal SD,,SD.

およびSD、の出力および2植体号SCの読込みは、必
ずしも全ての対象物について行う必要はなく、本実施例
では前記ステップS3において抽出された統計的距離が
小さい3種類の対象物、若し1 2 くは前記一定の偏差値範囲内にある第1位および第2位
の対象物のみについて行われる。
The output of and SD and the reading of the two plant numbers SC do not necessarily need to be performed for all objects, and in this example, the three types of objects with small statistical distances extracted in step S3, 1 2 or only for the first and second ranked objects within the predetermined deviation value range.

ここで、部品10の色とデータ信号SD、、SDr、お
よびS D nが表す色とが一致する場合には、前記色
信号SR,SGおよびSBの信号値は何れもデータ信号
SDR,SDGおよびSDRの範囲内にあり、部品10
の形状に対応する2植信号SCが色画像検出器26から
出力されるが、部品10の色とデータ信号SDR,SD
GおよびSD。
Here, when the color of the component 10 and the color represented by the data signals SD, SDr, and SD n match, the signal values of the color signals SR, SG, and SB are the same as those of the data signals SDR, SDG, and Within the range of SDR, part 10
A two-set signal SC corresponding to the shape of is output from the color image detector 26, but the color of the part 10 and the data signals SDR, SD
G and S.D.

が表す色とが異なる場合には、3つの色信号SR。If the color represented by is different from the color represented by SR, three color signals SR are used.

SGおよびSBの信号値のうち少なくとも一つはデータ
信号SD、l、SD、およびSD、の範囲外となり、色
画像検出器26からは2つの値の1つだけから成る2植
体号SCが出力されることとなり、部品10の形状に対
応する2値画像は得られない。
At least one of the signal values SG and SB falls outside the range of the data signals SD, l, SD, and SD, and the color image detector 26 outputs a two-signal signal SC consisting of only one of the two values. Therefore, a binary image corresponding to the shape of the component 10 cannot be obtained.

そして、ステップS5において上記ビデオRAM30に
記憶された2植体号SCによる2値画像が読み出される
とともに、ステップS6において、その2値画像を得る
際に出力されたデータ信号SDア、SDcおよびSDR
に関する対象物の特徴データとその2値画像とが比較さ
れ、前記ステ・ンプS2と同様にして2値画像と特徴デ
ータとの一致の度合がSRIアルゴリズムに従って統計
的距離として算出される。この統計的距離の算出は、ビ
デオRAM30に一時記憶された全ての2(U信号SC
に関する2値画像について、それぞれその色データに関
する対象物の特徴データと比較して行われるが、この場
合には、色および形状に基づいて部品10の種類が識別
されるため、前記ステップS2による識別に比較して精
度が高い。
Then, in step S5, the binary image based on the two system codes SC stored in the video RAM 30 is read out, and in step S6, the data signals SDa, SDc and SDR output when obtaining the binary image are read out.
The feature data of the object and its binary image are compared, and the degree of coincidence between the binary image and the feature data is calculated as a statistical distance in accordance with the SRI algorithm in the same way as in step S2. This statistical distance calculation is performed for all 2 (U signal SC) temporarily stored in the video RAM 30.
This is performed by comparing each binary image with the feature data of the object related to the color data, but in this case, since the type of the part 10 is identified based on the color and shape, the identification in step S2 is performed. It has high accuracy compared to .

その後、ステップS7において、前記ステ・ンプS3と
同様な識別結果についての判定が為され、部品10の種
類が1つに特定された場合、すなわち第1位の統計的距
離が前記一定値より小さく、且つ第2位、第3位の統計
的距離との偏差が前記一定の偏差値より大きくて、部品
10がその第1位の統計的距離が算出された対象物であ
ると判定された場合には、一連の種類識別に関する信号
処理は終了する。また、第1位の統計的距離が前記3 4 一定値より大きい場合や、一定値より小さくても第2位
、第3位の統計的距離との偏差が前記一定の偏差値より
小さい場合には、ステップS8において識別不能の判定
が為されて一連の信号処理は終了する。
Thereafter, in step S7, the same identification result as in step S3 is made, and if the type of component 10 is identified as one, that is, the statistical distance of the first place is smaller than the certain value. , and the deviation from the second and third statistical distances is larger than the certain deviation value, and it is determined that the component 10 is the object for which the first statistical distance was calculated. At this point, a series of signal processing related to type identification is completed. In addition, if the statistical distance of the first place is larger than the above-mentioned 3 4 constant value, or if the deviation from the statistical distance of the second or third place is smaller than the above-mentioned certain deviation value even if it is smaller than the certain value, In step S8, it is determined that the signal cannot be identified, and the series of signal processing ends.

本実施例では、上記ステップSL、S2.およびS3が
第1の識別工程に相当し、ステップ34゜35、S6.
およびS7が第2の識別工程に相当する。
In this embodiment, steps SL, S2. and S3 correspond to the first identification step, steps 34, 35, S6 .
and S7 correspond to the second identification step.

第1図に戻って、前記CPU18にはまた、外部機器I
/F36がデータバスライン28を介して接続されてお
り、上記種類識別の判定結果や位置計測の結果等を表す
信号が、その外部機器I/F36からパラレルI/F3
8およびシリアル■/F40を介して前述した分類装置
や自動加工機等に出力される。そして、例えば分類装置
においては、その部品10をその種類に応じた分類位置
へ送り出す一方、自動加工機においては、部品10が載
置された位置や種類に応じて所定の加工を行うように作
動させられる。
Returning to FIG. 1, the CPU 18 also includes an external device I
/F36 is connected via the data bus line 28, and signals representing the above-mentioned type identification determination results, position measurement results, etc. are transmitted from the external device I/F36 to the parallel I/F3.
8 and serial number /F40 to the aforementioned sorting device, automatic processing machine, etc. For example, in a sorting device, the part 10 is sent to a sorting position according to its type, while in an automatic processing machine, the part 10 is operated to perform a predetermined processing depending on the position and type of the part 10. I am made to do so.

ここで、本実施例の視覚装置は、部品10の種類を識別
する際に、先ず、輝度信号SYによる2色画像を用いて
識別処理が行われ、必要に応じて色信号SR,SG、S
Bによる2色画像が用いられるため、始めから色信号S
R,SG、SBを用いて信号処理する場合に比較して、
高い識別精度を維持しつつその信号処理時間が短縮され
るのである。特に、上記色信号SR,SG、SBによる
識別は、輝度信号SYによる識別における上位2乃至3
種類の対象物についてのみ行われるため、処理時間が一
層短縮される利点がある。
Here, when identifying the type of the component 10, the visual device of this embodiment first performs identification processing using a two-color image based on the luminance signal SY, and then uses color signals SR, SG, and S as needed.
Since a two-color image based on B is used, the color signal S
Compared to signal processing using R, SG, and SB,
The signal processing time is reduced while maintaining high identification accuracy. In particular, the identification using the color signals SR, SG, and SB is one of the top two or three in the identification based on the luminance signal SY.
Since the processing is performed only on different types of objects, there is an advantage that the processing time is further shortened.

また、輝度信号SYおよび色信号SR,SG。Also, a luminance signal SY and color signals SR, SG.

SBを用いて部品10の種類を識別する際に、それ等の
信号をアナログ信号のまま信号処理して2値化するよう
になっているため、ディジタル信号による濃淡画像やカ
ラー画像を用いて識別判断する場合に比較して処理すべ
きデータ量が極めて少量で済み、前記信号処理時間が大
幅に短縮されるとともに、大容量のフレームメモリ等が
不要となって装置が安価に構成され得るのである。
When identifying the type of component 10 using SB, the signals are processed and binarized as analog signals, so it is difficult to identify them using gray scale images or color images based on digital signals. The amount of data to be processed is extremely small compared to the case of judgment, the signal processing time is significantly shortened, and a large capacity frame memory etc. is not required, so the device can be configured at low cost. .

5 6 また、このように輝度信号SYおよび色信号SR,SG
、SBによる識別処理が何れも2色画像に基づいて行わ
れるところから、2色画像で識別処理を行うためのハー
ドウェアやソフトウェアが共用でき、例えば前記ステッ
プS6およびS7の実施に際してステップS2およびS
3のプログラムを利用できるなど、装置が一層簡単かつ
安価に構成され得る利点がある。
5 6 In addition, in this way, the luminance signal SY and the color signals SR, SG
, SB are all performed based on two-color images, so the hardware and software for performing the identification process on two-color images can be shared. For example, when performing steps S6 and S7, steps S2 and S
There is an advantage that the device can be configured more simply and at a lower cost, such as by being able to use 3 programs.

以上、本発明の一実施例を図面に基づいて詳細に説明し
たが、本発明は他の態様で実施することもできる。
Although one embodiment of the present invention has been described above in detail based on the drawings, the present invention can also be implemented in other embodiments.

例えば、前記実施例では赤、緑、青の3原色の色信号S
R,SG、SBを取り出して信号処理するようになって
いるが、対象物の色の種類によってはそれ等の中の2色
に関する色信号のみを用いたり、他の色相に関する色信
号を採用したりすることも可能である。
For example, in the above embodiment, the color signal S of the three primary colors red, green, and blue is
R, SG, and SB are extracted and signal processed, but depending on the type of color of the object, only color signals related to two of these colors may be used, or color signals related to other hues may be used. It is also possible to

また、前記実施例では色画像検出器26によって所定の
色に関する2植体号SCが取り出されるようになってい
るが、同様の機能をマイクロコンピュータにて行わせる
ことも可能である。
Further, in the embodiment described above, the color image detector 26 extracts two system numbers SC for a predetermined color, but it is also possible to have a microcomputer perform the same function.

また、前記実施例では対象物の特徴データと2色画像と
を比較して種類を識別する場合について説明したが、予
め複数種類の対象物に関する正常な2色画像を記憶させ
ておいて、実際に得られた2色画像とをマツチングさせ
、その相違度を判定するパターンマツチング法など、良
く知られた他の識別法を採用しても良いことは勿論であ
る。識別結果の判定手法についても、識別法等により適
宜変更される。
Furthermore, in the above embodiment, the case where the type of object is identified by comparing the characteristic data of the object and the two-color image was explained, but normal two-color images of multiple types of objects are stored in advance, and in actual use. It goes without saying that other well-known identification methods may be used, such as a pattern matching method in which the two-color images obtained are matched and the degree of difference is determined. The method for determining the identification result is also changed as appropriate depending on the identification method and the like.

また、前記実施例では色信号SR,SG、SBによる識
別が輝度信号SYによる識別における上位2乃至3種類
の対象物についてのみ行われるが、色信号SR,SG、
SBによる識別を全ての対象物について行うようにして
も良い。
Furthermore, in the embodiment described above, identification using the color signals SR, SG, and SB is performed only for the top two or three types of objects identified using the luminance signal SY; however, the color signals SR, SG, and
All objects may be identified by SB.

また、前記実施例では輝度信号SYによる識別では部品
10の種類を特定できない場合に、データ信号SDR,
SD、、SD、を出力して色信号SR,SG、SBに関
する2植体号SCを読み込むようになっているが、予め
全ての対象物に関す7 8 る2植体号SCをビデオRAM34に記憶しておき、必
要に応じてそのビデオRAM34からその2植体号SC
による2値画像を読み出して識別処理を行うようにして
も良い。
Further, in the above embodiment, when the type of component 10 cannot be identified by identification using the luminance signal SY, the data signal SDR,
SD, , SD, are output to read the two system numbers SC regarding the color signals SR, SG, and SB, but the two system numbers SC regarding all objects are stored in the video RAM 34 in advance. Store the two plant numbers SC from the video RAM 34 as needed.
Alternatively, the identification process may be performed by reading out a binary image according to the method.

また、前記実施例では輝度信号SYによる識別によって
部品10の種類が特定できた場合には、色信号SR,S
G、SBによる識別が行われないが、確認の意味で特定
された対象物について色信号SR,SG、SBによる識
別を実施する確認工程等を設けるようにしても差支えな
い。
Further, in the embodiment, when the type of component 10 can be identified by identification using the luminance signal SY, the color signals SR, S
Although identification using G and SB is not performed, a confirmation process or the like may be provided in which a specified object is identified using color signals SR, SG, and SB for confirmation.

その他−々例示はしないが、本発明は当業者の知識に基
づいて種々の変更、改良を加えた態様で実施することが
できる。
Although other examples are not provided, the present invention can be implemented with various modifications and improvements based on the knowledge of those skilled in the art.

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

第1図は本発明方法に従って物体の識別処理が行われる
視覚装置の一例を説明するブロック線図である。第2図
は第1図の装置において物体の識別処理を行う際の作動
を説明するフローチャートである。 10 : 12 : SP : R 3l。 S4゜ 部品(物体) カラーカメラ(カラー撮像装置) カラー画像信号 SY:輝度信号 SG、SB:色信号 S2.S3:第1の識別工程 S5.S6.S7:第2の識別工程
FIG. 1 is a block diagram illustrating an example of a visual device in which object identification processing is performed according to the method of the present invention. FIG. 2 is a flowchart illustrating the operation of the apparatus shown in FIG. 1 when performing object identification processing. 10: 12: SP: R 3l. S4゜Part (object) Color camera (color imaging device) Color image signal SY: Brightness signal SG, SB: Color signal S2. S3: First identification step S5. S6. S7: Second identification step

Claims (1)

【特許請求の範囲】 カラー撮像装置によって撮像された物体が予め定められ
た複数種類の対象物の何れであるかを、該カラー撮像装
置から出力されたカラー画像信号に基づいて自動的に識
別する物体識別方法であって、 前記カラー画像信号のうち光強度に関する輝度信号に基
づいて得られた2値画像を用いて前記物体の種類を識別
する第1の識別工程と、 該第1の識別工程において前記物体の種類を識別し得な
かった場合に、前記カラー画像信号のうち複数の色相に
関する色信号に基づいて得られた前記物体の色に関する
2値画像を用いて該物体の種類を識別する第2の識別工
程と を有することを特徴とする物体識別方法。
[Claims] Automatically identifies which of a plurality of predetermined types of objects an object imaged by a color imaging device is based on a color image signal output from the color imaging device. An object identification method, comprising: a first identification step of identifying the type of the object using a binary image obtained based on a luminance signal related to light intensity among the color image signals; and the first identification step. identifying the type of the object using a binary image regarding the color of the object obtained based on color signals regarding a plurality of hues among the color image signals; An object identification method comprising: a second identification step.
JP1279385A 1989-10-26 1989-10-26 Object identifying method Pending JPH03139776A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1279385A JPH03139776A (en) 1989-10-26 1989-10-26 Object identifying method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1279385A JPH03139776A (en) 1989-10-26 1989-10-26 Object identifying method

Publications (1)

Publication Number Publication Date
JPH03139776A true JPH03139776A (en) 1991-06-13

Family

ID=17610405

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1279385A Pending JPH03139776A (en) 1989-10-26 1989-10-26 Object identifying method

Country Status (1)

Country Link
JP (1) JPH03139776A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007259107A (en) * 2006-03-23 2007-10-04 Pentax Corp Pattern matching system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007259107A (en) * 2006-03-23 2007-10-04 Pentax Corp Pattern matching system
JP4662873B2 (en) * 2006-03-23 2011-03-30 Hoya株式会社 Pattern matching system

Similar Documents

Publication Publication Date Title
EP0186874A2 (en) Method of and apparatus for checking geometry of multi-layer patterns for IC structures
US6774909B1 (en) Method and apparatus for transforming color image into monochromatic image
CN114648594B (en) Textile color detection method and system based on image recognition
US6269182B1 (en) Color measuring system using multispectral image data
CN112446864A (en) Flaw detection method, flaw detection device, flaw detection equipment and storage medium
US6259813B1 (en) Method and apparatus for image processing using a signal of multiple scale values
KR102286470B1 (en) LED Digital Signage Defect Detection system through Similarity Analysis of Original Image Information and Displayed Image Information
Kampel et al. Color classification of archaeological fragments
US6675120B2 (en) Color optical inspection system
CN114926661B (en) Textile surface color data processing and identifying method and system
JPH03139776A (en) Object identifying method
US7812862B2 (en) White balance adjustment method for a digital image capturing device
US5319720A (en) Appearance inspecting method
JPH0520426A (en) Fruit hue judgement device using neural network
KR20050005862A (en) Method of aligning wafer and Apparatus of the same
JPH0771939A (en) Visual inspection device
US4607387A (en) Pattern check device
JPH02132565A (en) Binarization processor for color image
CN112419431A (en) Method and system for detecting product color
KR100230446B1 (en) Determination method for color of light from color image
Li et al. A new color-to-gray conversion method based on edge detection
JP2587433B2 (en) Banknote recognition device
CN115063605B (en) Method for identifying color printing package by using electronic equipment
CN111798442B (en) Whiteness measuring method and parameter calibration method in whiteness measurement
JP2001143075A (en) Template-matching method