JPS62172226A - Color discrimination apparatus - Google Patents

Color discrimination apparatus

Info

Publication number
JPS62172226A
JPS62172226A JP1392586A JP1392586A JPS62172226A JP S62172226 A JPS62172226 A JP S62172226A JP 1392586 A JP1392586 A JP 1392586A JP 1392586 A JP1392586 A JP 1392586A JP S62172226 A JPS62172226 A JP S62172226A
Authority
JP
Japan
Prior art keywords
color
signals
circuit
signal
color 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.)
Pending
Application number
JP1392586A
Other languages
Japanese (ja)
Inventor
Fujio Hirose
廣瀬 不二夫
Noriyuki Tsukiyama
築山 則之
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP1392586A priority Critical patent/JPS62172226A/en
Publication of JPS62172226A publication Critical patent/JPS62172226A/en
Pending legal-status Critical Current

Links

Landscapes

  • Spectrometry And Color Measurement (AREA)

Abstract

PURPOSE:To enlarge an adaptation range by altering judge logic according to the color of an object, by outputting a plurality of binary signals from a color component signal processing circuit on the basis of color component signals read from the object and setting the states of a plurality of judge logic combination switches according to said binary signals. CONSTITUTION:The color component signals X, Y, Z from moving object Oj are detected by alight source integrated type color sensor 10 and processed along with an average value while the peak values of said signals and the average value are held to peak holding circuits 21-24. The outputs from said circuits 21-24 are called out to comparing circuits 31-36 on the basis of the signal of a timing signal generating circuit 46 to be compared with each other and signals a, -a-f, -f are inputted to a color discriminating circuit 39. Dip switches and AND circuits corresponding to the signals X, Y, Z are provided to the circuit 39 and a plurality of judge logic combination switches of binary outputs from the circuits 31-36 are set to accurately perform judgment according to the color of the object Oj.

Description

【発明の詳細な説明】 発明の要約 色センサから得られる色成分信号相互の比較等の結果を
出力する処理回路と、これらの結果に対応する状態を設
定するためのスイッチ群とが設けられている。色識別す
べき物体について実際に」1記処理回路の比較結果を得
、この比較結果に応じて上記スイッチ群の状態を設定す
ることにより。
[Detailed Description of the Invention] Summary of the Invention A processing circuit that outputs the results of mutual comparison of color component signals obtained from color sensors, and a group of switches for setting states corresponding to these results are provided. There is. By actually obtaining the comparison result of the processing circuit 1 for the object whose color is to be identified, and setting the states of the switch group according to the comparison result.

色識別すべき物体に則した色判定論理を設定することが
できる。
Color determination logic can be set in accordance with the object whose color is to be identified.

発明の背景 この発明は色識別装置に関する。Background of the invention This invention relates to a color identification device.

色識別装置は、被色識別物体それ自体の表面の色の識別
、または物体上に表わされた模様、記号、コード等の色
情報の読取り等に使用することができ、今後その用途は
ますます増大するものと期待されている。
Color identification devices can be used to identify the color on the surface of the object itself, or to read color information such as patterns, symbols, codes, etc. expressed on the object, and its uses will continue to expand in the future. It is expected that this number will continue to increase.

色識別装置は、物体の表面からの光を受光して、その光
の波長成分を表わす複数の色成分信号、たとえばR(赤
)、G(緑)およびB(青)の色成分信号を出力する色
センサを備えている。
The color identification device receives light from the surface of an object and outputs a plurality of color component signals representing wavelength components of the light, such as R (red), G (green), and B (blue) color component signals. Equipped with a color sensor to

これらの色成分信号の大きさを1色識別すべき色に応じ
てあらかじめ定められた判定論理にしたがって弁別する
ことにより色識別信号が生成される。
A color identification signal is generated by discriminating the magnitude of these color component signals according to a predetermined determination logic depending on the color to be identified.

したがって1色識別装置では」二足判定論理の良否が色
識別結果の精度に大きく影響する。理論的に明確に上記
判定論理を組立てることのできる色というのは皆無とい
ってよいから、実際には上記色成分信号の値を読取り、
この値を適当な論理にしたがって分析することにより判
定論理を作成していた。この作業は長い時間と多大な労
力を必要とするとともに、環境の変化、たとえば光源変
動、温度の変化、物体ごとの検知距離の変化等々によっ
て色成分信号値にばらつきが生じるので。
Therefore, in a one-color identification device, the quality of the two-leg decision logic greatly affects the accuracy of the color identification result. It can be said that there are no colors for which the above judgment logic can be clearly constructed theoretically, so in reality, the values of the above color component signals are read,
Decision logic was created by analyzing this value according to appropriate logic. This work requires a long time and a great deal of effort, and variations in the color component signal values occur due to changes in the environment, such as changes in the light source, changes in temperature, and changes in the detection distance for each object.

たとえ精緻な判定論理を組立てたとしても誤動作を生じ
ることがあった。
Even if sophisticated decision logic was constructed, malfunctions could occur.

発明の概要 この発明は、被色識別物体の実際の色、実際の環境に則
して上記判定論理を簡単に組立てることができるととも
に、環境の変化等にも容易に対処しうる色識別装置を提
供することを目的とする。
Summary of the Invention The present invention provides a color identification device that can easily assemble the above judgment logic in accordance with the actual color of the object to be colored and the actual environment, and can easily cope with changes in the environment. The purpose is to provide.

この発明による色識別装置は、被色識別物体の色をその
組合せによって表わす複数の色成分信号を出力する色セ
ンサ、色センサから出力される複数の色成分信号を処理
することによって得られる複数の2短信号であって、各
2短信号が少なくとも1つの色成分信号に対応しており
かつ複数の2短信号の組合せが被色識別物体の色を特定
するものである。そのような複数の2短信号を発生する
色成分信号処理回路1色成分信号処理回路の複数の2短
信号出力に対応して設けられ、それらの状態の組合せに
よって色識別すべき所定の色を指定するための複数のス
イッチ、および色成分信号処理回路の複数の2短信号と
複数のスイッチの状態との論理演算を行なうことによっ
て、1隻数の2短信号の組合せが複数のスイッチの状態
によって指定された色を表わすものであるかどうかを判
定して色識別信号を出力する論理回路を備えていること
を特徴とする。上記複数のスイッチおよび上記論理回路
は、識別すべき色ごとに設けられる。また、上記色成分
信号処理回路が出力する複数の2短信号の状態を表示す
る表示器を設けておくとよい。
A color identification device according to the present invention includes a color sensor that outputs a plurality of color component signals that represent the color of an object to be color identified by a combination thereof, and a plurality of color component signals that are obtained by processing the plurality of color component signals output from the color sensor. The two short signals each correspond to at least one color component signal, and the combination of the plurality of two short signals specifies the color of the object to be colored. A color component signal processing circuit that generates such a plurality of two short signals is provided corresponding to a plurality of two short signal outputs of the color component signal processing circuit, and a predetermined color to be identified is determined by a combination of their states. By performing a logical operation between the plurality of switches for specifying and the plurality of two-short signals of the color component signal processing circuit and the states of the plurality of switches, the combination of one number of two-short signals is determined by the states of the plurality of switches. It is characterized by comprising a logic circuit that determines whether the color represents a designated color and outputs a color identification signal. The plurality of switches and the logic circuit are provided for each color to be identified. Further, it is preferable to provide a display device for displaying the states of a plurality of two-short signals outputted from the color component signal processing circuit.

この発明によると1色識別すべき物体を色センサに読取
らせ、その色成分信号に基づく複数の2短信号を色成分
信号処理回路から出力させ、この出力2値信号に応じて
上記複数のスイッチの状態を設定すれば1色識別のだめ
の判定論理ができあがることになる。したがって2色識
別のだめの判定論理の設定および変更がきわめて容易と
なる。
According to this invention, an object to be identified by one color is read by a color sensor, a plurality of two short signals based on the color component signal are outputted from a color component signal processing circuit, and the plurality of short signals are output from the color component signal processing circuit according to the output binary signal. By setting the state of the switch, the decision logic for one-color discrimination is completed. Therefore, it is extremely easy to set and change the determination logic for two-color discrimination.

もちろん、任意の色の被色識別物体に適用することが可
能であるから1色識別の適用範囲が広がる。
Of course, since it is possible to apply the method to colored objects of any color, the scope of application of one-color identification is expanded.

上記スイッチとして2値の中間の値である中立を示す状
態をもつものを採用し、上記色成分信号処理回路の出力
2値信号のいずれが1または複数のものが環境の変化、
たとえば光源変動、検知距離変動、温度の変化等に応じ
て変動して不安定になる場合には、その不安定な2短信
号に対応するスイッチを中立状態としておき、この中立
状態のスイッチに対しては上記論理回路による論理演算
においてその対象から除外することによって、環境の変
化にかかわらず常に正確な色識別が可能となる。
A switch having a neutral state, which is an intermediate value between the two values, is adopted as the switch, and one or more of the output binary signals of the color component signal processing circuit is affected by changes in the environment.
For example, if it fluctuates and becomes unstable due to light source fluctuations, detection distance fluctuations, temperature changes, etc., set the switch corresponding to the unstable 2-short signal in a neutral state, and then By excluding these from the logical operations performed by the logic circuit, accurate color identification is always possible regardless of changes in the environment.

実施例の説明 以下8図面を参照してこの発明の実施例について詳述す
る。
DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments of the present invention will be described in detail with reference to eight drawings.

第1図は1色識別装置全体の電気的構成を示すものであ
る。第2図は、第1図におけるピーク・ホールド回路の
具体的(を成を、第3図は第1図における色判別回路の
具体的構成をそれぞれ示している。また、第4図はこの
色識別装置の動作を示すタイム・チャートである。
FIG. 1 shows the electrical configuration of the entire one-color identification device. Figure 2 shows the specific configuration of the peak hold circuit in Figure 1, and Figure 3 shows the specific configuration of the color discrimination circuit in Figure 1. 3 is a time chart showing the operation of the identification device.

第1図において5色センサ10は光源一体型のもので、
3つの受光素子11〜13.各受光素子11〜13の出
力信号(色成分信号)をそれぞれ増幅する増幅回路14
および光源15を含んでいる。受光素子11〜13の前
面には、それぞれ異なる特定の色を表わす波長帯域の光
を透過させるフィルタがそれぞれ設けられており、これ
らの受光素子11〜13は、それぞれ異なる色の光を検
知し、その光の強度に応じた出力信号を出力する。これ
らの出力信号は。
In FIG. 1, the five-color sensor 10 is of an integrated type with a light source.
Three light receiving elements 11-13. Amplification circuit 14 that amplifies the output signal (color component signal) of each light receiving element 11 to 13, respectively.
and a light source 15. A filter is provided on the front surface of each of the light receiving elements 11 to 13 to transmit light in a wavelength band representing a different specific color, and each of these light receiving elements 11 to 13 detects light of a different color, It outputs an output signal according to the intensity of the light. These output signals are:

たとえばR(赤)、G(緑)およびB(青)の色成分を
それぞれ表わす。第1図においては、増幅されたのちの
色成分信号がX、YおよびZで表わされている。光R1
5としては、好ましくは白色光を発生ずるものがよい。
For example, they represent the color components of R (red), G (green), and B (blue), respectively. In FIG. 1, the amplified color component signals are represented by X, Y and Z. light R1
5 is preferably one that generates white light.

図示は省略されているが、光源15および受光素子11
〜13の前面には、レンズ等からなる集光光学系が設け
られ、また必要ならば赤外線遮断フィルタ等も配備され
よう。受光素子11〜13はそれぞれ別体に形成された
ものでもよいし、1つの基板上にそれに対応するフィル
タとともにモノリシカリイに作製されたものを使用して
もよい。
Although not shown, the light source 15 and the light receiving element 11
A condensing optical system consisting of a lens or the like is provided on the front surface of 13, and an infrared cutoff filter or the like may be provided if necessary. The light receiving elements 11 to 13 may be formed separately, or may be monolithically fabricated on one substrate together with a corresponding filter.

ライン上を搬送される物体0.の色を識別するためにこ
の色識別装置が用いられた場合には、上記の色センサー
口は、物体O9が通過する場所を検知するように配置、
固定される。また2色センサー0の検知領域を通過する
物体O2を検出するために物体検出器16.たとえば光
電検出器が設けられている。この検出器IBの物体検知
信号Sdは、後述するところから分るように、ピーク・
ホールド回路のピーク・ホールド動作の期間を決定する
ために用いられる。
Object conveyed on the line 0. When this color identification device is used to identify the color of the object O9, the color sensor port is arranged to detect the location where the object O9 passes;
Fixed. In addition, an object detector 16. For example, a photoelectric detector is provided. As will be explained later, the object detection signal Sd of this detector IB has a peak
Used to determine the period of peak hold operation of the hold circuit.

色センサー0の各増幅回路14から出力された色成分信
号x、y、zはピーク・ホールド回路21〜23にそれ
ぞれ送られる。これらの色成分信号X。
Color component signals x, y, and z output from each amplifier circuit 14 of color sensor 0 are sent to peak hold circuits 21 to 23, respectively. These color component signals X.

Y、Zはまた演算回路25に人力し、その平均値S−(
X+Y+Z)/3が算出され、この平均値Sを表わす信
号はもう1つのピーク・ホールド回路24に送られる。
Y and Z are also input manually to the arithmetic circuit 25, and their average value S-(
X+Y+Z)/3 is calculated and a signal representing this average value S is sent to another peak hold circuit 24.

ピーク・ホールド回路21〜24は互いに全く同じ構成
であるので2色成分信号Xに対して設けられたピーク・
ホールド回路21について以下に詳述する。
Since the peak hold circuits 21 to 24 have exactly the same configuration, the peak hold circuits 21 to 24 provided for the two color component signals
The hold circuit 21 will be explained in detail below.

第4図を参照して、ピーク・ホールド回路21は、タイ
ミング信号発生回路46から発生して入力するピーク・
ホールト制御信号S かH(ハイ)レベルの間、入力色
成分信号Xのピーク値を検出してこれを保持するもので
ある。第1図に示されているように、上述の物体検出器
1Gの物体検知信号SdはOR回路48を経てタイミン
グ信号発生回路4Gに与えられている。外部トリガ入力
スイッチ47は、操作員がピーク・ホールドのタイミン
グを入力するために用いるもので、このスイッチ入力も
またOR回路48を経てタイミング信号発生回路46に
与えられる。ピーク・ホールド制御信号Spは、この物
体検知信号S、または外部トリガ信号の立上りで立上り
、これらの信号が立下ったのちある一定時間、たとえば
tooffls程度、か経過したときに立下るように、
タイミング信号発生回路4Gで生成されかつ出力される
Referring to FIG. 4, the peak hold circuit 21 receives the peak signal generated and inputted from the timing signal generation circuit 46.
While the halt control signal S is at H (high) level, the peak value of the input color component signal X is detected and held. As shown in FIG. 1, the object detection signal Sd from the object detector 1G described above is applied to the timing signal generation circuit 4G via an OR circuit 48. The external trigger input switch 47 is used by the operator to input the peak hold timing, and this switch input is also applied to the timing signal generation circuit 46 via the OR circuit 48. The peak hold control signal Sp rises at the rise of the object detection signal S or the external trigger signal, and falls when a certain period of time, for example, about tooffls, has elapsed after these signals fall.
It is generated and output by the timing signal generation circuit 4G.

ピーク・ホールド回路21の具体的構成の一例を示す第
2図を参照して、このピーク・ホールド回路2Iは演算
増幅器61を含んでいる。演算増幅器61の非反転入力
端子に色成分信号Xがアナログ・スイッチ71を介して
入力する。演算増幅器61の出力側には、ダイオード6
2およびFETG4のゲートがこの順序で接続され、F
ET64のソースは演算増幅器G1の非反転入力端子に
接続され、フィードハック・ループを形成している。ダ
イオード62とFET64の接続点とアースとの間にコ
ンデンサ63が設けられ、このコンデンサ63にもう1
つのアナログ・スイッチ72が抵抗68を介して並列に
接続されている。
Referring to FIG. 2 showing an example of a specific configuration of peak hold circuit 21, peak hold circuit 2I includes an operational amplifier 61. In FIG. A color component signal X is input to the non-inverting input terminal of the operational amplifier 61 via an analog switch 71. A diode 6 is connected to the output side of the operational amplifier 61.
2 and the gates of FETG4 are connected in this order, FET
The source of ET64 is connected to the non-inverting input terminal of operational amplifier G1, forming a feedhack loop. A capacitor 63 is provided between the connection point between the diode 62 and the FET 64 and the ground.
Two analog switches 72 are connected in parallel via a resistor 68.

アナログ・スイッチ71と72はともにピーク中ホール
ド制御信号S によって制御されるが、その制御の仕方
が正反対である。すなわち、制御信号S がHレベルの
ときアナログ−スイッチ71がオンとなり、アナログ・
スイッチ72には信号SpがNOT回路73で反転され
て与えられるのでこのスイッチ72はオフとなる。逆に
ピーク・ホールド制御信号S がL(ロウ)レベルのと
きアナログ・スイッチ71がオフ、同スイッチ72がオ
ンとなる。
Analog switches 71 and 72 are both controlled by the mid-peak hold control signal S, but in opposite ways. That is, when the control signal S is at H level, the analog switch 71 is turned on, and the analog switch 71 is turned on.
Since the signal Sp is inverted by the NOT circuit 73 and applied to the switch 72, the switch 72 is turned off. Conversely, when the peak hold control signal S is at L (low) level, the analog switch 71 is turned off and the analog switch 72 is turned on.

さて、スタンバイ状態、すなわち制御信号S。Now, the standby state, that is, the control signal S.

がLレベルのときには、アナログ・スイッチ71はオフ
、同スイッチ72はオンである。コンデンサB3の電荷
は抵抗B8およびスイッチ72の抵抗を通して放電され
る。演算増幅器61の非反転入力側は、スイッチ71が
オフのために、抵抗67を介して接地された状態となる
。したがって、演算増幅器61の非反転入力に加わる電
圧は、増幅器B1の入力バイアス電流と抵抗67とによ
るオフセット入力電圧のみである。このスタンバイ状態
で演算増幅器61の出力電圧がOvとなるように、この
演算増幅器61の零点調整があらかじめ行なわれている
。他方。
When the analog switch 71 is at L level, the analog switch 71 is off and the analog switch 72 is on. The charge on capacitor B3 is discharged through resistor B8 and the resistor of switch 72. The non-inverting input side of the operational amplifier 61 is grounded via the resistor 67 because the switch 71 is off. Therefore, the only voltage applied to the non-inverting input of operational amplifier 61 is the input bias current of amplifier B1 and the offset input voltage due to resistor 67. The zero point of the operational amplifier 61 is adjusted in advance so that the output voltage of the operational amplifier 61 becomes Ov in this standby state. On the other hand.

FET84はソース会フォロワとして働き、スタンバイ
時にはゲート/ソー2間電圧はほぼOVである。このと
き流れるドレイン電流(たとえば1 mA)による抵抗
65への電圧降下によって負の動作電圧(−V)が相殺
され、出力端子がoVになるように抵抗65の値が選定
されている。
The FET 84 works as a source follower, and the voltage between the gate and the source 2 is approximately OV during standby. The value of the resistor 65 is selected so that the negative operating voltage (-V) is canceled out by the voltage drop across the resistor 65 due to the drain current (for example, 1 mA) flowing at this time, and the output terminal becomes oV.

ピーク・ホールド動作状態、すなわち制御信号S がH
レベルになると、アナログ・スイッチ71がオンとなる
ので1色成分信号Xがこのスイッチ71の抵抗を介して
(この抵抗による電圧降下は無視できる)演算増幅器6
1の非反転入力端子に加えられる。また、アナログ・ス
イッチ72がオフとなる。入力する色成分信号Xが上昇
すると、演算増幅器61の出力も上昇し、ダイオード6
2を介してコンデンサ63が充電される。コンデンサ6
3の充電電圧はFET64を通して出力端子にX とし
て現われる。FET64のソースは演算増幅器61の反
転入力端子にブイ−ドパツクされているので、このソー
スの電位が演算増幅器61の非反転入力端子に加えられ
る入力電圧に等しくなるまでコンデンサ63への充電が
続く。したがって、出力電圧X は入力電圧のピーク値
に等しくなる。この後、入力電圧が低下しても、ダイオ
ード62が逆バイアスされ1.またFET64の入力抵
抗が非常に大きいので、コンデンサ63はピーク値を保
持する。
Peak hold operating state, that is, control signal S is H
When the level is reached, the analog switch 71 is turned on, and the one color component signal
1 non-inverting input terminal. Further, the analog switch 72 is turned off. When the input color component signal X increases, the output of the operational amplifier 61 also increases, and the diode 6
Capacitor 63 is charged via 2. capacitor 6
The charging voltage of 3 appears at the output terminal through FET 64 as X. Since the source of FET 64 is wave-packed to the inverting input terminal of operational amplifier 61, charging of capacitor 63 continues until the potential of this source becomes equal to the input voltage applied to the non-inverting input terminal of operational amplifier 61. Therefore, the output voltage X will be equal to the peak value of the input voltage. After this, even if the input voltage drops, the diode 62 is reverse biased and 1. Furthermore, since the input resistance of FET 64 is very large, capacitor 63 maintains its peak value.

第1図に戻って、ピーク値かホールドされた各回路21
〜24の出力信号(この信号も便宜的にX。
Returning to FIG. 1, each circuit 21 where the peak value is held
~24 output signal (this signal is also X for convenience.

y、z、sで表わす)は次に比較回路31〜36に送ら
れる。比較回路31は、ピーク・ホールドされた信号X
とYとを比較し、X>YのときにHレベルの出力信号a
とLレベルの出力信号aを発生する。X<Yのときには
、出力信号aはLレベル。
y, z, s) are then sent to comparison circuits 31-36. The comparison circuit 31 receives the peak-held signal X
and Y, and when X>Y, the H level output signal a
and generates an output signal a of L level. When X<Y, the output signal a is at L level.

aはHレベルになる。同じように、比較回路32はY>
ZのときにHレベルの出力信号すとLレベルの出力信号
すを、y<zのときにLレベルの出力信号すとHレベル
の出力信号すを発生する。比較回路33は信号ZとXを
比較し、比較回路34,35.36はそれぞれピーク・
ホールドされた平均値信号Sと信号x、y、zとをそれ
ぞれ比較し、比較結果に応じて出力信号c、d、e、f
とその反転信号c、d、e、fとを出力する。
a becomes H level. Similarly, the comparison circuit 32
When Z, an output signal of H level is generated and an output signal of L level is generated, and when y<z, an output signal of L level is generated and an output signal of H level is generated. The comparison circuit 33 compares the signals Z and X, and the comparison circuits 34, 35, and 36 each compare the peak
The held average value signal S is compared with the signals x, y, and z, and output signals c, d, e, and f are output according to the comparison results.
and its inverted signals c, d, e, f are output.

これらの12個の信号は、その詳細が第3図に示された
色判別回路39に入力する。この色判別回路39は一種
の論理回路であって2色識別すべき色に応じてあらかじ
め組立てられた論理にしたかって、入力する12個の信
号の論理処理をして、被色識別物体O1があらかじめ定
められた色のものであるかどうかの判定出力を発生する
。この実施例では、3つの異なる色の識別が可能であり
2ある色(Aとする)と判定された場合には、入出力端
子の出力(色判定信号Aとする)がHレベルとなる。同
じように、他の色すなわちB、C色と判定された場合に
は、Hレベルの色判定信号B、  Cを出力する。これ
らの色判定信号A、B、CがいずれもLレベルの場合に
は、物体O2の色は1色J A、B、Cのいずれでもないことを意味する。
These 12 signals are input to a color discrimination circuit 39 whose details are shown in FIG. This color discrimination circuit 39 is a kind of logic circuit, and performs logical processing on the 12 input signals according to pre-assembled logic according to the two colors to be discriminated, so that the colored object O1 can be identified. A judgment output is generated to determine whether the color is of a predetermined color. In this embodiment, three different colors can be distinguished, and when two colors (referred to as A) are determined, the output of the input/output terminal (referred to as color determination signal A) becomes H level. Similarly, when it is determined that it is another color, that is, B or C, H-level color determination signals B and C are output. When these color determination signals A, B, and C are all at the L level, it means that the color of the object O2 is not one of the colors JA, B, and C.

NAND回路45によってこれらの信号A、B、CのN
AND論理がとられることにより、NAND回路45か
らは色対象外判定信号(Hレベル)が出力される。
The NAND circuit 45 converts these signals A, B, and C into N
By performing the AND logic, the NAND circuit 45 outputs a color non-target determination signal (H level).

これらの色判定信号A、B、Cおよび色対象外判定信号
は、それぞれ対応するDTフリップフロップ41〜44
のデータ入力端子に入力する。これらのフリップフロッ
プ41〜44のクロック入力端子には、タイミング信号
発生回路46から出力されるクロック・パルスSsが人
力する。このクロック・パルスSsは、第4図に示され
るように、物体検知信号S、または外部トリガ信号の立
下りの時点で出力される。すなわち、移動する物体0.
が検知領域から出るときに(このときには既に色成分信
号のピーク値のホールドは終了している)。
These color determination signals A, B, and C and color non-target determination signals are sent to corresponding DT flip-flops 41 to 44, respectively.
input to the data input terminal. A clock pulse Ss output from the timing signal generation circuit 46 is input to the clock input terminals of these flip-flops 41 to 44. This clock pulse Ss is output at the falling edge of the object detection signal S or the external trigger signal, as shown in FIG. That is, a moving object 0.
when it leaves the detection area (at this time, the peak value of the color component signal has already been held).

または操作員が色識別に必要な色センシングを終了した
(すなわち1包成分信号のピーク値のホールドは既に終
了した)と判断してスイッチ47をオフとしたときに2
色判定信号等の状態がDTフリップフロップ41〜44
に捕捉される。これらのDTフリップフロップ41〜4
4の出力信号は、各色A、B、Cおよび色対象外(リジ
ェクト)の識別結果を表示するための表示灯51〜54
にそれぞれ送られ、対応する表示灯が点灯する。
Alternatively, when the operator judges that the color sensing necessary for color identification has been completed (that is, the holding of the peak value of the 1-packet component signal has already been completed) and turns off the switch 47, 2
The state of color judgment signals etc. is determined by the DT flip-flops 41 to 44.
captured by These DT flip-flops 41-4
The output signals of No. 4 are output from indicator lights 51 to 54 for displaying the identification results of each color A, B, C and non-targeted colors (rejects).
and the corresponding indicator lights will light up.

たとえば1色判定信号AがHレベルの場合(他の信号B
、C等はLレベル)には表示灯51が点灯する。また1
色識別信号A、B、CのいずれもがLレベルの場合には
2表示灯54が点灯する。
For example, when one color determination signal A is at H level (other signal B
, C, etc. are at L level), the indicator light 51 lights up. Also 1
When all of the color identification signals A, B, and C are at L level, the 2 indicator light 54 lights up.

ピーク・ホールド制御信号S が立下ったときニ、クリ
ア・パルス信号S がタイミング信号発「 主回路46から出力され、これらのフリップフロップ4
1〜44が強制的にリセットされる。このため。
When the peak hold control signal S falls, a clear pulse signal S is outputted from the main circuit 46 as a timing signal, and these flip-flops 4
1 to 44 are forcibly reset. For this reason.

点灯していた表示灯も滅灯する。表示灯51〜54の点
灯状態を、より長く保持したい場合には、遅延回路49
によってクリア・パルス信号S を遅らせればよい。
The indicator light that was on also goes out. When it is desired to maintain the lighting state of the indicator lights 51 to 54 for a longer time, the delay circuit 49
It is sufficient to delay the clear pulse signal S by .

動作タイミング表示灯55は、クロック・パルス信号S
8のタイミングで瞬間的に点灯する。
The operation timing indicator 55 receives the clock pulse signal S.
Lights up momentarily at timing 8.

第3図を参照して1色判別回路39は、識別すべき3つ
の色のそれぞれに対して全く同じ論理回路を備えている
ので8色Aについてその論理回路を説明する。
Referring to FIG. 3, since the one-color discrimination circuit 39 has exactly the same logic circuit for each of the three colors to be discriminated, the logic circuit will be explained for eight colors A.

この論理回路は、6つの比較回路31〜36の出力信号
対a、a−f、fに対応して、6つディップ・スイッチ
(単極双投スイッチ) 81〜8Bを備えている。スイ
ッチ81についてみると、このスイッチ8[は3つの端
子(Q) 、 (1) 、 (2)を有し、端子(0)
が端子(1)または(2)のいずれか一方に接続される
ように手動で切替えられる。このスイッチ81はまた。
This logic circuit includes six dip switches (single-pole double-throw switches) 81-8B corresponding to the output signal pairs a, a-f, f of the six comparison circuits 31-36. Looking at the switch 81, this switch 8[ has three terminals (Q), (1), (2), and a terminal (0).
is manually switched to be connected to either terminal (1) or (2). This switch 81 is also.

端子(0)が端子(1)、(2)のいずれとも接続され
ない中立状態もとることができる。第3図ではすべての
スイッチが中立状態で図示されている。
A neutral state in which terminal (0) is not connected to either terminal (1) or (2) can also be taken. In FIG. 3, all switches are shown in a neutral state.

他のスイッチ82〜86も全く同じ構成である。The other switches 82 to 86 have exactly the same configuration.

スイッチ81の端子(1)は比較回路31の一方の出力
aの出力端子に、同端子(2)は他方の出力、すなわち
反転出力aの出力端子に接続されており。
The terminal (1) of the switch 81 is connected to the output terminal of one output a of the comparison circuit 31, and the terminal (2) is connected to the other output, that is, the output terminal of the inverted output a.

スイッチ81の端子(0)は6人力AND回路91の1
つの入力側に接続され、かつ抵抗94を介してHレベル
の電圧が印加されるようになっている。他のスイッチ8
2〜86もまた。それらの端子(1) 、 (2)は比
較回路32〜36の出力端子に対して同じように。
Terminal (0) of switch 81 is 1 of 6-man power AND circuit 91
The two input terminals are connected to one input side, and an H level voltage is applied via a resistor 94. Other switch 8
2-86 also. Those terminals (1) and (2) are the same for the output terminals of the comparator circuits 32-36.

端子(0)はAND回路9■および抵抗94に対して同
じように接続されている。
Terminal (0) is connected to AND circuit 9 and resistor 94 in the same way.

さらに、Hレベルの信号a−fによってそれぞれ点灯す
る表示灯101〜106が設けられている。
Further, indicator lights 101 to 106 are provided which are turned on by H level signals a to f, respectively.

ディップ・スイッチ81〜86の設定は次のように行な
われる。まず、A色の物体を色センサ10の検知範囲に
おく。すると、このA色に対応して、比較回路31〜3
6の出力が得られ、その状態が表示灯101〜106に
点灯される。たとえば表示灯101.102,105.
io[i(a 、  b 、  e 、  f )が点
灯したとする。これは、信号a、b、e、fがHレベル
で、他の信号c、dがLレベルであることを意味する。
DIP switches 81-86 are set as follows. First, an object of color A is placed within the detection range of the color sensor 10. Then, corresponding to this color A, comparison circuits 31 to 3
6 is obtained, and the indicator lights 101 to 106 are lit to indicate this state. For example, indicator lights 101, 102, 105.
Suppose that io[i(a, b, e, f) lights up. This means that the signals a, b, e, and f are at H level, and the other signals c and d are at L level.

すなわち、Hレベルの信号はa、b、c。That is, the H level signals are a, b, and c.

d、e、fである。d, e, f.

そこで、ディップ・スイッチ81,82,85.IIG
を端子(1)側に接続するように切替え、ディップ・ス
イッチ83.84を端子(2)側に接続するように切替
える。
Therefore, dip switches 81, 82, 85 . IIG
switch to connect to the terminal (1) side, and switch to connect the dip switches 83 and 84 to the terminal (2) side.

このようにディップ・スイッチ81〜8Bを設定してお
けば、A色の物体が色センサ10によって検出されたと
きには、比較回路31〜36の出力のうちa、b、c、
d、e、fがHレベルになるから。
By setting the DIP switches 81 to 8B in this manner, when an object of color A is detected by the color sensor 10, the outputs of the comparison circuits 31 to 36, a, b, c,
Because d, e, and f become H level.

これらのHレベルの信号はスイッチ81〜86を経てA
ND回路91に人力し、AND回路91からはHレベル
の色判定信号Aが得られることになる。他の色の物体が
搬送されたことによって、信号a。
These H level signals pass through switches 81 to 86 to A
The ND circuit 91 is manually operated, and the AND circuit 91 obtains the H level color determination signal A. The signal a is caused by the conveyance of objects of other colors.

b、c、d、e、fのうちのいずれか1つでもLレベル
になれば、AND回路91の出力はLレベルになる。
If any one of b, c, d, e, and f becomes L level, the output of the AND circuit 91 becomes L level.

ディップ・スイッチ81〜86の設定作業において、A
色のサンプル物体の置き方または通過のさせ方によって
比較回路31〜36の出力に変動が生じることもあろう
。たとえば、信号aがHレベルになったり、Lレベルに
なったりして安定しなかったとする。このようなときに
は、それに対応するディップ・スイッチ(信号aに対し
てはスイッチ81)を中立状態としておく。スイッチ8
■の端子(0)は抵抗94を介してHレベルに引き上げ
られているので、スイッチ81からは常にHレベルの信
号がAND回路9Iに入力していることになる。したが
って、不安定な信号があってもそれを除いた他の比較回
路の出力信号によって、常に正確な色識別が達成される
In setting the dip switches 81 to 86,
Variations in the outputs of comparator circuits 31-36 may occur depending on how the color sample object is placed or passed. For example, assume that the signal a becomes H level or L level and becomes unstable. In such a case, the corresponding DIP switch (switch 81 for signal a) is kept in a neutral state. switch 8
Since the terminal (0) of (2) is pulled up to the H level via the resistor 94, an H level signal is always input from the switch 81 to the AND circuit 9I. Therefore, even if there is an unstable signal, accurate color identification can always be achieved using the output signals of the other comparison circuits excluding the unstable signal.

他の色B、Cについても全く同じようにして。Do the same thing for the other colors B and C.

AND回路92.93からその色判定信号が得られるの
はいうまでもない。
Needless to say, the color determination signal can be obtained from the AND circuits 92 and 93.

上述した比較回路31〜36における比較演算およびこ
れに接続された色判別回路39の論理は、もちろん1つ
の例であって2色識別のために別の比較、たとえばスレ
シホールド値との比較や別の論理を用いることもできる
のはいうまでもない。
The comparison calculations in the comparison circuits 31 to 36 and the logic of the color discrimination circuit 39 connected thereto are, of course, just one example, and other comparisons, such as comparison with a threshold value or a comparison with a threshold value, are necessary for two-color discrimination. It goes without saying that other logics can also be used.

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

第1図は1色識別装置全体の電気的構成を示すブロック
図、第2図はピーク・ホールド回路の具体的構成の一例
を示す回路図、第3図は色判別回路の具体的構成の一例
を示す回路図、第4図は色識別装置の動作を示すタイム
・チャートである。 10・・・色センサ。 21〜24・・・ピーク・ホールド回路。 31〜3ト・・比較回路。 39・・・色判別回路。 46・・・タイミング信号発生回路。 81〜8B・・・ディップψスイッチ。 91〜93・・・AND回路。 以    」二
Figure 1 is a block diagram showing the electrical configuration of the entire one-color discrimination device, Figure 2 is a circuit diagram showing an example of a specific configuration of a peak hold circuit, and Figure 3 is an example of a specific configuration of a color discrimination circuit. FIG. 4 is a time chart showing the operation of the color identification device. 10...Color sensor. 21-24...Peak hold circuit. 31-3... Comparison circuit. 39...color discrimination circuit. 46...Timing signal generation circuit. 81~8B...Dip ψ switch. 91-93...AND circuit. ``2''

Claims (4)

【特許請求の範囲】[Claims] (1)被色識別物体の色をその組合せによって表わす複
数の色成分信号を出力する色センサ、 色センサから出力される複数の色成分信号を処理するこ
とによって得られる複数の2値信号であって、各2値信
号が少なくとも1つの色成分信号に対応しておりかつ複
数の2値信号の組合せが被色識別物体の色を特定するも
のである、そのような複数の2値信号を発生する色成分
信号処理回路、 色成分信号処理回路の複数の2値信号出力に対応して設
けられ、それらの状態の組合せによって色識別すべき所
定の色を指定するための複数のスイッチ、および 色成分信号処理回路の複数の2値信号と複数のスイッチ
の状態との論理演算を行なうことによって、複数の2値
信号の組合せが複数のスイッチの状態によって指定され
た色を表わすものであるかどうかを判定して色識別信号
を出力する論理回路、 を備えている色識別装置。
(1) A color sensor that outputs a plurality of color component signals whose combination represents the color of an object to be colored, and a plurality of binary signals obtained by processing the plurality of color component signals output from the color sensor. generating a plurality of binary signals, each binary signal corresponding to at least one color component signal, and a combination of the plurality of binary signals specifying the color of the object to be colored; a color component signal processing circuit, a plurality of switches provided corresponding to the plurality of binary signal outputs of the color component signal processing circuit, and for specifying a predetermined color to be identified by a combination of the states; By performing logical operations on the plurality of binary signals of the component signal processing circuit and the states of the plurality of switches, it is determined whether the combination of the plurality of binary signals represents the color specified by the states of the plurality of switches. A color identification device comprising: a logic circuit that determines a color identification signal and outputs a color identification signal.
(2)上記複数のスイッチおよび上記論理回路が、識別
すべき色ごとに設けられていることを特徴とする特許請
求の範囲第(1)項に記載の色識別装置。
(2) The color identification device according to claim (1), wherein the plurality of switches and the logic circuit are provided for each color to be identified.
(3)上記色成分信号処理回路が出力する複数の2値信
号の状態を表示する表示器が設けられている、特許請求
の範囲第(1)項に記載の色識別装置。
(3) The color identification device according to claim (1), further comprising a display that displays the states of a plurality of binary signals output from the color component signal processing circuit.
(4)上記スイッチの状態として2値の中間の値である
中立を示す状態があり、この中立状態は上記論理回路に
よる論理演算ではその対象から除外される、特許請求の
範囲第(1)項に記載の色識別装置。
(4) As the state of the switch, there is a neutral state that is an intermediate value between the two values, and this neutral state is excluded from the object of the logical operation by the logic circuit, as claimed in claim (1). The color identification device described in .
JP1392586A 1986-01-27 1986-01-27 Color discrimination apparatus Pending JPS62172226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1392586A JPS62172226A (en) 1986-01-27 1986-01-27 Color discrimination apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1392586A JPS62172226A (en) 1986-01-27 1986-01-27 Color discrimination apparatus

Publications (1)

Publication Number Publication Date
JPS62172226A true JPS62172226A (en) 1987-07-29

Family

ID=11846761

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1392586A Pending JPS62172226A (en) 1986-01-27 1986-01-27 Color discrimination apparatus

Country Status (1)

Country Link
JP (1) JPS62172226A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02103426A (en) * 1988-10-12 1990-04-16 Kuraray Co Ltd Color sensor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6010133A (en) * 1983-06-30 1985-01-19 Toshiba Corp Color discriminating apparatus of article

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6010133A (en) * 1983-06-30 1985-01-19 Toshiba Corp Color discriminating apparatus of article

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02103426A (en) * 1988-10-12 1990-04-16 Kuraray Co Ltd Color sensor

Similar Documents

Publication Publication Date Title
US6084658A (en) Distance measuring apparatus
JPH02293606A (en) Optical input detector
JPH0754335B2 (en) Peak value detection circuit
JPH11355115A (en) Multiple optical axis photoelectric switch enabling multiple projecting detection
JPS62172226A (en) Color discrimination apparatus
JPS6082915A (en) Distance measuring device
EP2700910A1 (en) Photoelectric sensor
JP3157463B2 (en) Photoelectric sensor and color sensor
JPS62172225A (en) Color discrimination apparatus
JPH11132846A (en) Photoelectric sensor and color sensor
JPS62278418A (en) Color discriminating instrument
KR200207963Y1 (en) Apparatus for Output Processing in Microprocessor
JPS62278417A (en) Color discriminating instrument
JPS60186722A (en) Simple color discriminating device
JPS63260318A (en) Photoelectric switch
US20030011425A1 (en) Injection current test circuit
JPS62172227A (en) Color discrimination apparatus
JP3264089B2 (en) Human body detection device
JPH0814889A (en) Photoelectric switch
SU883722A1 (en) Method and device for detecting flaws
JPH02195203A (en) Distance detecting apparatus
JPH09145360A (en) Vehicle identification system
SU1177749A1 (en) Device for detecting object
JP3440675B2 (en) Amplifier
JP2001209897A (en) Road monitoring device