JPS60169985A - Color extracting device - Google Patents

Color extracting device

Info

Publication number
JPS60169985A
JPS60169985A JP59024973A JP2497384A JPS60169985A JP S60169985 A JPS60169985 A JP S60169985A JP 59024973 A JP59024973 A JP 59024973A JP 2497384 A JP2497384 A JP 2497384A JP S60169985 A JPS60169985 A JP S60169985A
Authority
JP
Japan
Prior art keywords
color
gate
memory
specified
component
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.)
Granted
Application number
JP59024973A
Other languages
Japanese (ja)
Other versions
JPH0330187B2 (en
Inventor
Toshiro Asano
浅野 敏郎
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP59024973A priority Critical patent/JPS60169985A/en
Publication of JPS60169985A publication Critical patent/JPS60169985A/en
Publication of JPH0330187B2 publication Critical patent/JPH0330187B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Color Television Systems (AREA)
  • Processing Of Color Television Signals (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To extract a part indicating a specified color approximately simultaneously with image pickup operation by setting up a range corresponding to the specified color in each color component and detecting a part where the size of each color component is entered to the corresponding set range simultaneously. CONSTITUTION:Upper limit values (red) Rmax, (green) Gmax, (blue) Bmax and lower limit values Rmin, Gmin, Bmin are set up to prescribed values to specify a prescribed color to be extracted. An area turning the output of an AND gate 21 to the high level becomes a color part coinciding with the specified color of an object to be photographed by a color photographing device 1. Therefore, gates 7, 8, 9 extract the part indicating the specified colors of respective components R, G, B read out from a picture memory 6 and a color monitor 13 displayes the parts with the specified colors.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、色彩パターンの認識のための色彩抽出装置に
係わり、特に、画像中の指定された色彩に一致する色彩
部分を抽出するようにした色彩抽出装置に関する。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to a color extraction device for recognizing color patterns, and particularly to a color extraction device that extracts a color portion that matches a specified color in an image. This invention relates to a color extraction device.

〔発明の背景〕[Background of the invention]

色彩パターン認識の一応用例として、従来、プリント基
板上の電子部品の有無の検査がある。一般に、抵抗、コ
ンデンサなどの電子部品は、それらの種類や値などを表
示するために、夫々の電子部品に特定の色彩が付けられ
たり、複数の色彩が組み合わされて付けられている。こ
のような電子部品が多数塔載されるプリント基板は、品
質管理の一環として、塔載すべき電子部品の有無、正し
い電子部品が塔載されているか否かの検査などの電子部
品のチェックが行なわれる。
One example of the application of color pattern recognition is conventionally testing the presence or absence of electronic components on a printed circuit board. Generally, electronic components such as resistors and capacitors are colored with a specific color or with a combination of colors to indicate their type and value. As part of quality control, printed circuit boards on which a large number of such electronic components are mounted must be checked to see if there are any electronic components to be mounted on them, and whether the correct electronic components are mounted on them. It is done.

かかる電子部品のチェックは、電子部品に付けられてい
る色彩をもとに行なわれるが、プリント基板には多数の
電子部品が塔載されており、通常多くの人手を要してい
て、パターン認識技術を用いた自動化が望まれている。
Checking of such electronic components is performed based on the colors attached to the electronic components, but since a large number of electronic components are mounted on a printed circuit board, it usually requires a lot of manpower, and pattern recognition is difficult. Automation using technology is desired.

このようなパターン認識技術の利用形態は、色彩を指定
し、プリント基板のこの指定された色彩に一致する色彩
部分を抽出するものであり、このような利用形態は、プ
リント基板に限るものではなく、種々の対象物に対して
実行可能なものである。
This type of usage of pattern recognition technology involves specifying a color and extracting a colored part of a printed circuit board that matches the specified color, and this type of usage is not limited to printed circuit boards. , which can be implemented for various objects.

このように、対象物の指定色彩に一致した色彩部分を抽
出する装置、すなわち、色彩抽出装置は、かかる色彩部
分を抽出するために、一般には、対象物をカラー撮像装
置で撮像し、このカラー撮像装置から出力されるカラー
画像信号を利用している。
In this way, a device that extracts a color portion that matches a specified color of an object, that is, a color extraction device, generally images the object with a color imaging device and extracts this color. It uses color image signals output from an imaging device.

ところが、従来の色彩抽出装置は、かかるカラー画像信
号を赤(6)、緑(0,青ω)“の色成分に分解してメ
モリに記憶し、その後、これら色成分をコンピュータで
読み出して解析し、指定色彩ごこ一致した色彩部分を抽
出(すなわち、色彩抽出)するようにしており、各色成
分の解析を画面の全画素について行なっていることなど
から、処理時間が非常に長く、リアルタイムで色彩抽出
を行なうことができないという欠点があった。たとえば
、上記のプリント基板の品質管理においては、明らかに
、かかる色彩抽出装置の欠点がプリント基板のチェック
作業の迅速化を阻害することになる。
However, conventional color extraction devices separate such color image signals into color components of red (6) and green (0, blue ω) and store them in memory, and then read and analyze these color components with a computer. However, since the color part that closely matches the specified color is extracted (in other words, color extraction), and each color component is analyzed for all pixels on the screen, the processing time is extremely long, and it cannot be done in real time. There is a drawback that color extraction cannot be performed.For example, in the quality control of printed circuit boards mentioned above, the drawback of such a color extraction device obviously hinders speeding up of the checking work of printed circuit boards.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、上記従来技術の欠点を除き、迅速に色
彩抽出を行なうことができるようにした色彩抽出装置を
提供するにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a color extraction device that eliminates the drawbacks of the prior art described above and can quickly perform color extraction.

〔発明の概要〕[Summary of the invention]

この目的を達成するために、この発明は、カラー撮像装
置からのカラー画像信号を各色成分毎に画像メモリに記
憶し、また、該各色成分毎に指定色彩に応じた範囲を設
定し、該各色成分の大きさが対応する設定範囲に同時に
入る部分を検出してゲート信号を形成し、該ゲート信号
を抽出領域メモリに書き込むとともに繰り返し読み出し
て、前記画像メモリから繰り返し読み出される前記各色
成分をゲートし、前記カラー撮像装置の撮像動作とほぼ
同時に、前記カラー画像信号の前記指定色彩を表わす部
分を抽出することができるようにした点に特徴がある。
In order to achieve this object, the present invention stores color image signals from a color imaging device in an image memory for each color component, sets a range corresponding to a designated color for each color component, and sets a range for each color component according to a specified color. A gate signal is formed by detecting a portion where the magnitudes of the components simultaneously fall within a corresponding set range, and the gate signal is written to an extraction area memory and repeatedly read out, thereby gating each of the color components repeatedly read out from the image memory. The present invention is characterized in that a portion representing the designated color of the color image signal can be extracted almost simultaneously with the imaging operation of the color imaging device.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図面について説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明による色彩抽出装置の一実施例を示すブ
ロック図であって、1はカラー撮像装置、2.3.4は
アナログ−デジタル変換器、5はタイミング信号発生器
、6は画像メモリ、61は赤成分メモリ、62は緑成分
メモリ、63は青成分メモリ、7.8.9はアンドゲー
ト、10,11.12はデジタル−アナログ変換器、1
3はカラーモニタ、14R,14R’、14G、14G
’、14B、14Bは入力端子、15.16.17,1
8,19.20は比較器、21,22.23はアンドゲ
ート、24は抽出領域メモリ、24s 、 24zはメ
モリ、25゜26はアンドゲート、27はオア回路、2
8,29゜30 、、31は入力端子である。
FIG. 1 is a block diagram showing an embodiment of the color extraction device according to the present invention, in which 1 is a color imaging device, 2.3.4 is an analog-to-digital converter, 5 is a timing signal generator, and 6 is an image pickup device. Memory, 61 is a red component memory, 62 is a green component memory, 63 is a blue component memory, 7.8.9 is an AND gate, 10, 11.12 is a digital-to-analog converter, 1
3 is color monitor, 14R, 14R', 14G, 14G
', 14B, 14B are input terminals, 15.16.17, 1
8, 19, 20 are comparators, 21, 22, 23 are AND gates, 24 are extraction area memories, 24s, 24z are memories, 25° 26 are AND gates, 27 are OR circuits, 2
8, 29°30, , 31 are input terminals.

同図において、タイミング信号発生器5から同期信号S
が供給されてカラー撮像装置1は図示しない対象物を撮
像し、カラー画像信号の夫々赤、緑、青を表わす色成分
R,G、Bを出力する。これら色成分R,G、Bは、夫
々アナログ−デジタル変換器2,3・、4で、たとえば
8ビツトのデジタル信号に変換される。色成分凡のデジ
タル信号(単に色成分Rという。以下同様)は画像メモ
リ6の赤成分メモリ61に記憶され、また、アナログ−
デジタル変換器3,4からの色成分G、Bは、夫々同じ
く緑成分メモリ6z、青成分メモリ63に記憶される。
In the same figure, a synchronizing signal S is sent from a timing signal generator 5.
is supplied, the color imaging device 1 images an object (not shown), and outputs color components R, G, and B representing red, green, and blue, respectively, of the color image signal. These color components R, G, and B are converted into, for example, 8-bit digital signals by analog-to-digital converters 2, 3, and 4, respectively. A digital signal of each color component (simply referred to as color component R; hereinafter the same) is stored in the red component memory 61 of the image memory 6, and an analog signal is stored in the red component memory 61 of the image memory 6.
The color components G and B from the digital converters 3 and 4 are similarly stored in a green component memory 6z and a blue component memory 63, respectively.

画像メモリ6は一画面分(1フイールドあるいは1フレ
ーム)の色成分R,G、Bを書き込み、この書き込みが
終了すると直ちに繰り返しの読み出しを開始する。そし
て、赤成分メモリ61から読み出された色成分孔はアン
ドゲート7に供給され、また、緑成分メモリ62、青成
分メモリ68から読み出された色成分G、Bは夫々アン
ドゲート8,9に供給される。
The image memory 6 writes color components R, G, and B for one screen (one field or one frame), and immediately after this writing is completed, repeated reading starts. The color component hole read from the red component memory 61 is supplied to the AND gate 7, and the color components G and B read from the green component memory 62 and the blue component memory 68 are supplied to AND gates 8 and 9, respectively. supplied to

一方、アナログ−デジタル変換器2からの色成分孔は比
較器15.16に供給され、また、アナ四グーデジタル
変換器3からの色成分Gは比較器17.18に供給され
、さらに、アナログ−デジタル変換器4からの色成分B
は比較器19.20に供給される。比較器15は、色成
分Rを入力端子14Rからの赤土限値RWL6.m と
比較し、色成分Rが赤土限値〜。未満のときに高レベル
の出力を発生する。比較器16は、色成分Rを入力端子
14R′からの赤軍限値〜、と比較し、色成分Rが赤下
限鎖孔’m 4% を越えるときに高レベルの出力を発
生する。以下同様に、比較器17は色成分Gが入力端子
14Gからの縁上限値Gヶ1未満のとき、比較器18は
色成分Gが入力端子14G′からの縁下限値G11 を
越えるとき、比較器19は色成分Bが入力端子14Bか
らの背止限値Bよ。未満のとき、比較器20は色成分B
が入力端子14B′からの貴下限値B1□ を越えると
き、比較器17゜18.19.20の出力は高レベルと
なる。
On the other hand, the color component hole from the analog-to-digital converter 2 is supplied to a comparator 15.16, and the color component G from the analog-to-digital converter 3 is supplied to a comparator 17.18, - color component B from digital converter 4;
is fed to a comparator 19.20. The comparator 15 converts the color component R into a red earth limit value RWL6. from the input terminal 14R. Compared to m, the color component R is at the red clay limit value. Generates high level output when less than The comparator 16 compares the color component R with the red limit from the input terminal 14R', and produces a high level output when the color component R exceeds the red lower limit 'm4%. Similarly, when the color component G is less than the edge upper limit G11 from the input terminal 14G, the comparator 18 uses the comparator 17 to compare the color component G when it exceeds the edge lower limit G11 from the input terminal 14G'. The color component B of the device 19 is the back limit value B from the input terminal 14B. When less than, the comparator 20 selects color component B.
When the value exceeds the lower limit value B1□ from the input terminal 14B', the output of the comparator 17°18.19.20 becomes high level.

アンドゲート21の出力は、比較器15〜20の出力が
全て高レベルのときに高レベルであって、アンドゲート
22,23に一方の入力として供給される。アントゲ−
)22.23の他方の入力は、夫々入力端子28.30
から供給されるイネーブル信号El、 Ea が供給さ
れる。イネーブル信号El。
The output of the AND gate 21 is at a high level when the outputs of the comparators 15 to 20 are all at a high level, and is supplied as one input to the AND gates 22 and 23. anime game
) 22.23 are connected to input terminals 28.30, respectively.
Enable signals El and Ea are supplied from. enable signal El.

Ea は、画像メモリ乙に記憶される一画面の色成分R
,G、Bの期間に相当する期間高レベル信号であり、イ
ネーブル信号E1がアンドゲート22に供給されると、
アンドゲート22がオン状態となり、アンドゲート21
の出力はアンドゲート22を通して抽出領域24のメモ
リ241に記憶される。
Ea is the color component R of one screen stored in the image memory B
, G, B, and when the enable signal E1 is supplied to the AND gate 22,
AND gate 22 turns on, and AND gate 21
The output of is stored in the memory 241 of the extraction area 24 through the AND gate 22.

また、イネーブル信号18がアンドゲート26に供給さ
れると、アンドゲート26がオン状態となり、アンドゲ
ート21の出力がアンドゲート26を通して抽出領域メ
モリ24のメモリ242に記憶される。
Further, when the enable signal 18 is supplied to the AND gate 26, the AND gate 26 is turned on, and the output of the AND gate 21 is stored in the memory 242 of the extraction area memory 24 through the AND gate 26.

メモリ24x、242は、夫々一画面分の記憶8伍を有
し、アンドゲート21の出力を記憶すると、直ちに繰り
返しこれらを読み出す。メモリ241゜242から読み
出された信号は、夫々アンドゲート25.26に供給さ
れ、入力端子29.31からのイネーブル信号12 +
 E4でアンドゲート25,26がオン状態となると、
オア回路27を通してゲート信号としてアントゲ−)7
,8.9に供給される。
The memories 24x and 242 each have 8 memories for one screen, and as soon as the outputs of the AND gate 21 are stored, they are repeatedly read out. The signals read from the memories 241 and 242 are supplied to AND gates 25 and 26, respectively, and the enable signal 12 + from the input terminal 29 and 31
When AND gates 25 and 26 are turned on at E4,
Ant game) 7 as a gate signal through the OR circuit 27
, 8.9.

画像メモリ6および抽出領域メモリ24は、タイミング
信号発生器5から書き込みアドレス信号および読み出し
アドレス信号により、位相同期して書き込み、読み出し
を行なう。このために、アンドゲート21の出力が高レ
ベルになったことによるオア回路27からのゲート信号
の高レベル期間、アンドゲート7.8.9はオン状態と
なり、この期間画像メモリ6から読み出された各色成分
R,G、Bは、アンドゲート7.8.9を通してデジタ
ル−アナ四グ変換器10,11.12に供給される。
The image memory 6 and the extraction area memory 24 perform writing and reading in phase synchronization with a write address signal and a read address signal from the timing signal generator 5. For this reason, during the high level period of the gate signal from the OR circuit 27 due to the output of the AND gate 21 becoming high level, the AND gates 7, 8, and 9 are in the on state, and during this period, no data is read from the image memory 6. The respective color components R, G, and B are supplied to digital-to-analog converters 10, 11.12 through AND gates 7.8.9.

デジタル−アナリグ変換器10,11.12は、夫々供
給された色成分R,G、Bを元のアナログ信号に変換し
、カラーモニタ13に供給する。したがって、カラーモ
ニタ16では、アンドゲート21の出力が高レベルとな
った期間の色彩パターンが表示される。
The digital-to-analog converters 10, 11, and 12 convert the supplied color components R, G, and B into original analog signals and supply them to the color monitor 13. Therefore, the color monitor 16 displays the color pattern during the period in which the output of the AND gate 21 was at a high level.

かかる構成において、上限鎖孔’maea 、 ’wa
s 、 ”mat。
In such a configuration, the upper chain pores 'maea, 'wa
s, “mat.

および、下限値R1□、 Gfnin 、 Bm□を所
定値に設定することにより、抽出すべき所定の色彩が指
定される。上記夫々の上限値、下限値を設定することに
よって色彩が指定されると、アンドゲート21の出力が
高レベルとなる領域が、カラー撮像装置δ1で撮像され
る対象物の指定された色彩に一致する色彩部分であり、
したがって、ゲート7゜8.9は画像メモリ6から読み
出される各色成分孔、G、Eの上記指定された色彩を表
わす部分を抽出し、カラーモニタ13では、この部分を
指定された色彩で表示する。
By setting the lower limit values R1□, Gfnin, and Bm□ to predetermined values, a predetermined color to be extracted is designated. When a color is specified by setting each of the above upper and lower limit values, the area where the output of the AND gate 21 is at a high level matches the specified color of the object imaged by the color imaging device δ1. It is a colored part,
Therefore, the gate 7.8.9 extracts a portion representing the specified color of each color component hole G and E read from the image memory 6, and the color monitor 13 displays this portion in the specified color. .

抽出領域メモリ24のメモリ24s 、 242は、イ
ネーブル信号El * E3により、選択的に書き込み
を行ない、2つの異なる色彩を指定する場合、夫々の色
彩に対するアンドゲート21の出力を別々に記憶する。
The memories 24s and 242 of the extraction area memory 24 are selectively written to by the enable signal El*E3, and when two different colors are specified, the outputs of the AND gate 21 for each color are stored separately.

次に、この実施例の動作を第2図を用いて説明する。Next, the operation of this embodiment will be explained using FIG. 2.

いま、@2図(α)に示すように、カラー撮像装置1で
撮像する対象物が、黄色Y、の背景中管色部分Bと緑色
部分Gとがある色彩パターンを有しているものとし、抽
出すべき色彩を青色および緑色とする。
Now, as shown in Figure 2 (α), it is assumed that the object to be imaged by the color imaging device 1 has a color pattern with a yellow Y background, a middle tube color portion B, and a green portion G. , the colors to be extracted are blue and green.

そこで、指定する色彩は青色と緑色であるが、まず、青
色を指定すると、赤土限値−1.赤下限値几’tn4n
、縁上限値G1..緑下限値Gm 4 n を全て零に
設定し、管上限値B、。、管下限値−i、を夫々零では
ない所定の値に設定する。このように、各上限値および
下限値を設定することにより、カラー撮像装置1から第
2図(α)の対象物の青色部分Bを表わす色成分J G
、Bが比較器15〜2oに供給されたときのみ、比較器
15〜20の出力は高レベルとなり、したがフて、その
ときのみアンドゲート21の出力は高レベルとなる。
Therefore, the colors to be specified are blue and green, but if you specify blue first, the red earth limit value -1. Red lower limit value 几'tn4n
, edge upper limit value G1. .. The green lower limit value Gm 4 n is all set to zero, and the tube upper limit value B,. , lower limit value -i, are each set to a predetermined value other than zero. In this way, by setting each upper limit value and lower limit value, the color component J G representing the blue part B of the object in FIG.
, B are supplied to the comparators 15-2o, the outputs of the comparators 15-20 will be at high level, and therefore only then will the output of AND gate 21 be at high level.

このとき、イネーブル信号E1がアンドゲート22が供
給され、アンドゲート22はオン状態となってアンドゲ
ート21の出力がMItB領域24のメモリ241に記
憶される。1画面分のこの記憶が完了′すると、メモリ
241は読み出しを開始し、同時にアンドゲート25は
イネーブル信号B2が供給されてオン状態となる。した
がって、先の説明から明らかなように、カラーモニタ1
3では、第2図(b)に示すように、対象物P(第2図
(α))の黄色の背景部分Y6が黒色Blとなり、その
青色部分Bが青色領域Bとなった画像Qが表示される。
At this time, the enable signal E1 is supplied to the AND gate 22, the AND gate 22 is turned on, and the output of the AND gate 21 is stored in the memory 241 of the MItB area 24. When this storage for one screen is completed', the memory 241 starts reading, and at the same time, the AND gate 25 is supplied with the enable signal B2 and turns on. Therefore, as is clear from the above explanation, color monitor 1
3, as shown in FIG. 2(b), the image Q in which the yellow background portion Y6 of the object P (FIG. 2(α)) becomes black Bl and the blue portion B becomes the blue region B is created. Is displayed.

抽出領域メモリ24のメモリ241の上記記憶動作が終
了すると、次に、緑色を指定し、上限値R−aヨ、−a
、および下限値Rtn i m 、−□が全て零に設定
され、また、縁上限値Gtnaaa および縁下限値G
fr、、が夫々零ではない所定値に設定される。これら
上限値、下限値の設定により、アンドゲート21の出力
は、カラー撮像装置1から対象物P(第2図(a))の
緑色部分Gを表わす色成分R,G。
When the above storage operation in the memory 241 of the extraction area memory 24 is completed, next, specify green and set the upper limit value R-a, -a.
, and the lower limit value Rtn i m , -□ are all set to zero, and the edge upper limit value Gtnaaa and the edge lower limit value G
fr, , are each set to a predetermined value that is not zero. By setting these upper and lower limit values, the AND gate 21 outputs color components R and G representing the green portion G of the object P (FIG. 2(a)) from the color imaging device 1.

Bが比較器15〜20に供給されたときのみ高レベルと
なる。
It goes high only when B is supplied to comparators 15-20.

このとき、イネーブル信号E3によってアンドゲート2
6がオン状態となり、アンドゲート21の出力は抽出領
域メモリ24のメモリ242に記憶される。そこで、イ
ネーブル信号E4によってアンドゲート26をオン状態
にすると、先の説明から明らかなように、カラーモニタ
13には、t62Fl(d)に示すように、対象物P(
第2図(α))の黄色の背景部分Y、が黒色Elとなり
、その青色部分Bおよび緑色部分Gが夫々青色領域B1
緑色領域Gとなった画像Qが表示される。
At this time, the AND gate 2
6 is turned on, and the output of the AND gate 21 is stored in the memory 242 of the extraction area memory 24. Therefore, when the AND gate 26 is turned on by the enable signal E4, the color monitor 13 displays the object P(
The yellow background part Y in FIG.
An image Q with a green area G is displayed.

もちろん、アンドゲート25をオフ状態とし、アンドゲ
ート26のみをオン状態とすれば、第2図(C)に示す
ように、黒色Bl の背景に緑色領域Gのみが現われて
いる画像Qを表示することもできる。
Of course, if the AND gate 25 is turned off and only the AND gate 26 is turned on, an image Q in which only the green region G appears on the black background Bl is displayed, as shown in FIG. 2(C). You can also do that.

以上のように、カラー撮像装置1による対象物の撮像と
同時に、比較器15〜20によって各色成分の大きさが
指定色彩に応じて設定された範囲内に入るか否かの判定
を行ない、さらに、アンドゲート21によってこの指定
色彩に一致した色彩部分を検出するものであるから、色
彩抽出をリアルタイムで行なうことができる。もちろん
、画像メモリ6、抽出領域メモリ24は書き込み動作終
了後直ちに読み出し動作に移る必要がなく、任意の時刻
に読み出し動作を開始してもよい。この場合、画像メモ
リ6、Nll領領域メモリ24よびカラーモニタ16は
、タイミング信号発生器5からの読み出しアドレス信号
や同期信号Sなどにより、同期した動作をなすことはい
うまでもない。
As described above, at the same time as the color imaging device 1 images the object, the comparators 15 to 20 determine whether the size of each color component falls within the range set according to the designated color, and , and the AND gate 21 detects a color portion that matches this specified color, so that color extraction can be performed in real time. Of course, it is not necessary for the image memory 6 and the extraction area memory 24 to start the read operation immediately after the write operation is completed, and the read operation may be started at any arbitrary time. In this case, it goes without saying that the image memory 6, the Nll area memory 24, and the color monitor 16 operate in synchronization with the read address signal and synchronization signal S from the timing signal generator 5.

なお、上記実施例では、抽出領域メモリ24は2つのメ
モリ24r 、 242からなるものとしたが、これら
メモリの数は抽出すべき色彩の種類に応じて任意に定め
ることができる。また、上記実施例でば、抽出すべき色
彩を青色Bと緑色Gの原色でもって説明したが、抽出す
べき色彩に応じて各上限値”ma g 、 Gtntz
l、−1および下限値”mix、 Gm4m 。
In the above embodiment, the extraction area memory 24 is made up of two memories 24r and 242, but the number of these memories can be arbitrarily determined depending on the type of color to be extracted. Further, in the above embodiment, the colors to be extracted are explained using the primary colors of blue B and green G, but the upper limit values "ma g , Gtntz" are set according to the colors to be extracted.
l, -1 and the lower limit "mix, Gm4m.

Bmin を任意に定めることができるものであって、
抽出すべき色彩を任意に指定することができる。
Bmin can be arbitrarily determined,
Any color to be extracted can be specified.

また、上記実施例では、異なる指定色彩に対する色彩抽
出は、比較器15〜20およびアンドゲート21により
、異なった時刻に行なわれるが、前後する2つの色彩抽
出の時間差をカラー撮像装置1の1フイールドあるいは
1フレーム走査期間とすることができるから、各指定色
彩に対する色彩抽出に時間差があっても、夫々の色彩抽
出のときの画像信号にはほとんど差がなく、何ら支障が
ない。
Further, in the above embodiment, color extraction for different specified colors is performed at different times by the comparators 15 to 20 and the AND gate 21, but the time difference between two successive color extractions is calculated by one field of the color imaging device 1. Alternatively, since the scanning period can be set to one frame, even if there is a time difference in color extraction for each specified color, there is almost no difference in the image signals when each color is extracted, and there is no problem.

なお、この実施例では、アナレグ−デジタル変換器2,
3.4の色成分を比較器15〜20に供給して指定色彩
の抽出範囲を検出するようにしているが、画像メモリ6
から読み出される各色成分を比較器15〜20に供給し
て同様の動作を行なわせることもできる。
Note that in this embodiment, the analog-to-digital converter 2,
3.4 color components are supplied to the comparators 15 to 20 to detect the extraction range of the specified color, but the image memory 6
It is also possible to supply each color component read out from the comparators 15 to 20 to perform a similar operation.

さらにまた、アンドゲート7.8.9からの各色成分R
,G、Bをフンピユータに供給し、たとえば、プリント
基板の良否の判定など所望の処理を行なうようにするこ
ともできる。
Furthermore, each color component R from AND gate 7.8.9
, G, and B can be supplied to the computer to perform desired processing, such as determining the quality of the printed circuit board.

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

以上説明したように、本発明によれば、任意の指定色彩
について、対象物の色彩抽出を迅速に行なうことができ
、上記従来技術の欠点を除いて優れた機能の色彩抽出装
置を提供することができる。
As explained above, according to the present invention, it is possible to quickly extract the color of an object with respect to any specified color, and to provide a color extraction device with excellent functions while eliminating the drawbacks of the above-mentioned prior art. I can do it.

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

ff11図は本発明による色彩抽出装置の一実施例を示
すブロック図、第2図(α)〜(d)はその動作説明図
である。 1・・・カラー撮像装置、6・・・画像メモ+)、7.
8゜9・・・アンドゲート、15.16.17,18.
19゜20・・・比較器、21,22.23・・・アン
トゲ−F124・・・抽出領域メモリ、241,244
・・・メモリ、25゜26・・・アンドゲート、27・
・・オア回路。 第1図 第2図
ff11 is a block diagram showing an embodiment of the color extraction device according to the present invention, and FIGS. 2(α) to 2(d) are explanatory diagrams of its operation. 1... Color imaging device, 6... Image memo +), 7.
8゜9...and gate, 15.16.17,18.
19゜20... Comparator, 21, 22. 23... Ant game-F124... Extraction area memory, 241, 244
...Memory, 25°26...And gate, 27.
...OR circuit. Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] (1) 色彩を指定し、対象物の該指定色彩に一致した
色彩部分を検出するようにした色彩抽出装置において、
該対象物を撮像するカラー撮像装置と、該カラー撮像装
置からのカラー画像信号を色成分毎に記憶する画像メモ
リと、該色成分毎に設定された範囲内に該各色成分の大
きさが同時に入る部分を検出する検出回路と、該検出回
路の出力信号を記憶する抽出領域メモリと、該画像メモ
リから繰り返し読み出される各色成分が供給され該抽出
領域メモリから繰り返し読み出された信号をゲート信号
とするゲート回路とを具備し、前記検出回路は前記指定
色彩に応じて前記範囲が設定され、該ゲート回路で前記
画像信号の前記指定色彩を表わす部分を抽出することが
できるように構成したことを特徴とする色彩抽出装置。 ■ 特許請求の範囲第(1)項において、前記抽出領域
メモリは複数のメモリからなり、前記検出回路の前記色
成分毎に設定される範囲を異なる色彩を指定することに
よって異ならせ、該異なる範囲毎の前記検出回路の出力
信号を該メモリの各々に記憶することにより、前記ゲー
ト回路で前記画像メモリから繰り返し読み出される前記
画像信号の指定された前記各指定色彩部分を表わす部分
を抽出することができるように構成したことを特徴とす
る色彩抽出装置λ
(1) In a color extraction device that specifies a color and detects a colored part of an object that matches the specified color,
A color imaging device that images the object; an image memory that stores color image signals from the color imaging device for each color component; A detection circuit that detects the entering portion, an extraction area memory that stores the output signal of the detection circuit, each color component that is repeatedly read out from the image memory is supplied, and the signal that is repeatedly read out from the extraction area memory is used as a gate signal. and a gate circuit, wherein the detection circuit is configured such that the range is set according to the designated color, and the gate circuit is configured to extract a portion of the image signal representing the designated color. Characteristic color extraction device. (1) In claim (1), the extraction area memory includes a plurality of memories, and the range set for each color component of the detection circuit is made different by specifying a different color, and By storing the output signal of each of the detection circuits in each of the memories, the gate circuit can extract a portion representing each designated color portion of the image signal that is repeatedly read out from the image memory. A color extraction device λ characterized in that it is configured to be able to
JP59024973A 1984-02-15 1984-02-15 Color extracting device Granted JPS60169985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59024973A JPS60169985A (en) 1984-02-15 1984-02-15 Color extracting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59024973A JPS60169985A (en) 1984-02-15 1984-02-15 Color extracting device

Publications (2)

Publication Number Publication Date
JPS60169985A true JPS60169985A (en) 1985-09-03
JPH0330187B2 JPH0330187B2 (en) 1991-04-26

Family

ID=12152910

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59024973A Granted JPS60169985A (en) 1984-02-15 1984-02-15 Color extracting device

Country Status (1)

Country Link
JP (1) JPS60169985A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62180250A (en) * 1986-02-05 1987-08-07 Omron Tateisi Electronics Co Inspecting method for component package substrate
JPS62188946A (en) * 1986-02-05 1987-08-18 Omron Tateisi Electronics Co Inspection apparatus for part packing circuit board
JPS6398786A (en) * 1986-10-15 1988-04-30 Fujitsu Ltd Mask signal generation circuit
JPS63163681A (en) * 1986-12-26 1988-07-07 Matsushita Electric Ind Co Ltd Automatic supervisory equipment
JPH0198081A (en) * 1987-10-09 1989-04-17 Victor Co Of Japan Ltd Color information detecting device
JPH03132881A (en) * 1989-10-18 1991-06-06 Ee D S:Kk Image extracting device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57211662A (en) * 1981-06-22 1982-12-25 Shimadzu Corp Adapter for extracting the same hue
JPS58151669A (en) * 1982-03-03 1983-09-08 Hitachi Ltd Labeling processing circuit of picture processing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57211662A (en) * 1981-06-22 1982-12-25 Shimadzu Corp Adapter for extracting the same hue
JPS58151669A (en) * 1982-03-03 1983-09-08 Hitachi Ltd Labeling processing circuit of picture processing device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62180250A (en) * 1986-02-05 1987-08-07 Omron Tateisi Electronics Co Inspecting method for component package substrate
JPS62188946A (en) * 1986-02-05 1987-08-18 Omron Tateisi Electronics Co Inspection apparatus for part packing circuit board
JPS6398786A (en) * 1986-10-15 1988-04-30 Fujitsu Ltd Mask signal generation circuit
JPS63163681A (en) * 1986-12-26 1988-07-07 Matsushita Electric Ind Co Ltd Automatic supervisory equipment
JPH0198081A (en) * 1987-10-09 1989-04-17 Victor Co Of Japan Ltd Color information detecting device
JPH03132881A (en) * 1989-10-18 1991-06-06 Ee D S:Kk Image extracting device

Also Published As

Publication number Publication date
JPH0330187B2 (en) 1991-04-26

Similar Documents

Publication Publication Date Title
US5179642A (en) Image synthesizing apparatus for superposing a second image on a first image
JP2686274B2 (en) Cell image processing method and apparatus
KR920008075B1 (en) Inspection apparatus
JP2813348B2 (en) Cell image extraction storage processing device and method
JPH04115144A (en) Image processor and automatic optical inspection apparatus using same
GB2119198A (en) Image data masking apparatus
JPS60169985A (en) Color extracting device
EP0137481A2 (en) Image processing system
JPH0728996A (en) Method and equipment for correction of close whie color
US5307454A (en) Apparatus for extracting local image from original image
JPH05298443A (en) Color picture area extracting device
JPS6113381A (en) Image processor
JP3228956B2 (en) Testing equipment
JP2917161B2 (en) Color image processing equipment
KR100308302B1 (en) Apparatus for on screen display in a digital camera
JP2781924B2 (en) Superimpose device
JP2546653B2 (en) Position detection method of detected surface by image processing
JPS61223894A (en) Contrast conversion control system
JPH0683395B2 (en) Image synthesizer
JP3011297B2 (en) High-speed image processing device
JPS63182788A (en) Method for generating contour line of picture processor
KR100791476B1 (en) Method and Device for embodying OSD by employing preview memory
JPS59219072A (en) Picture storage device
JP3213939B2 (en) Document reader
JP2837887B2 (en) Color shift detection circuit