CN103712693A - Color recognition method and device - Google Patents
Color recognition method and device Download PDFInfo
- Publication number
- CN103712693A CN103712693A CN201210370482.0A CN201210370482A CN103712693A CN 103712693 A CN103712693 A CN 103712693A CN 201210370482 A CN201210370482 A CN 201210370482A CN 103712693 A CN103712693 A CN 103712693A
- Authority
- CN
- China
- Prior art keywords
- light sensing
- sensing unit
- light
- color
- processing unit
- 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
Links
Images
Landscapes
- Spectrometry And Color Measurement (AREA)
Abstract
The invention provides a color recognition method and a color recognition device. The method comprises the following steps that: a color signal of a light source is obtained through a light sensing unit; after receiving the color signal, a processing unit converts the color signal into a chromaticity coordinate; and the chromaticity coordinate is compared with a color gamut range, such that a color corresponding to the light source can be obtained.
Description
Technical field
The invention relates to a kind of proving installation, and particularly relevant for a kind of color identification method and device.
Background technology
Along with the development of electronic industry, electronic product miscellaneous is out manufactured in large quantities, such as: computer equipment, Netcom's equipment etc.These electronic products can have the pilot lamp that can be used to show current Product Status conventionally, for example light emitting diode (Light Emitting Diode).On production line, these pilot lamp can be used to the whether situation of normal operation or fault etc. of interpretation product.Therefore, whether the normal work of pilot lamp, the quality of the product that concerning.
The checkout procedure of General Production Lines, all checks with manual type mostly.For example, whether luminous etc. the pilot lamp brightness, color by identification product,, judge whether product is defective products.Yet always people's absorbed power can be longer with the working time, absorbed power is more not easy to concentrate, and then may cause defective products not detect probability increase, or brightness cannot directly be judged by human eye.If there are many group pilot lamp to need to detect on device to be measured, the time that measures also can increase.Artificial detection mode is not only consuming time, also easily because artificial erroneous judgement factor produces error, and then has reduced product quality.
In addition, traditionally, though can use detecting instrument (as: camera, oscillograph, avometer, illuminometer etc.) to test, still, the speed of these detecting instruments slowly, the quantity of connectivity port is few and unit price is high.If check point is more and more, on production line, also can increase detection time, do not meet very much the principle of efficiency.In addition, for example, use camera to measure, also can the easily erroneous judgement because of test environment.
Summary of the invention
The invention provides a kind of color identification method and device, accurate light source detection result can be provided, can also save human cost and guarantee product quality.
The present invention proposes a kind of color identification method, is applicable to utilize electronic installation to identify the color of light source.This method of testing comprises: by the first light sensing unit, obtain the first chrominance signal of the first light source, and receive the first chrominance signal by processing unit, and carry out converse routine.Above-mentioned converse routine comprises: according to colour gamut algorithm, change the first chrominance signal into the first chromaticity coordinate, afterwards, comparison the first chromaticity coordinate and gamut range and obtain corresponding the first color of the first light source.
In one embodiment of this invention, the above-mentioned step that obtains the first chrominance signal of the first light source by the first light sensing unit comprises: by the first light sensing unit, detect respectively a plurality of color of light in the first light source, produce according to this these color of light corresponding frequency signal separately, wherein the first chrominance signal comprises said frequencies signal.In addition, according to control signal, the position of control pin of adjusting the first light sensing unit is accurate, makes the first light sensing unit detect respectively at least one of them or its combination of blue light, red light and green light in the first light source.
In one embodiment of this invention, above-mentioned electronic installation also comprises the second light sensing unit, and above-mentioned color identification method also comprises: by the second light sensing unit obtain secondary light source the second chrominance signal; And receive the second chrominance signal and carry out converse routine by processing unit.Above-mentioned converse routine comprises: according to colour gamut algorithm, change the second chrominance signal into the second chromaticity coordinate; And comparison the second chromaticity coordinate and gamut range and obtain corresponding the second color of secondary light source.
In one embodiment of this invention, above-mentioned the first light sensing unit and above-mentioned the second light sensing unit control pin are separately coupled to one of them common pin of a plurality of input and output pins of processing unit.Accordingly, can, by common pin difference transfer control signal to the first light sensing unit and the second light sensing unit, use and control the first light sensing unit and the second light sensing unit.
In one embodiment of this invention, above-mentioned by processing unit, carry out converse routine after, also can transmit the first color to far end device; Or after judging whether the first color meets default color, the result after transmission judgement is to far end device.
In addition, the present invention proposes a kind of color identification device, comprises a plurality of light sensing units and processing unit.Processing unit is coupled to above-mentioned light sensing unit.Each light sensing unit is in order to detection light source, and produces corresponding chrominance signal.Processing unit receives chrominance signal from above-mentioned light sensing unit, and carries out converse routine by processing unit.Above-mentioned converse routine comprises: according to colour gamut algorithm, change each chrominance signal into chromaticity coordinate; And chrominance coordinate and gamut range and obtain the corresponding color of each light source.
In one embodiment of this invention, above-mentioned each light sensing unit, according to control signal, is adjusted its position of controlling pin accurate, makes each light sensing unit detect respectively a plurality of color of light in corresponding light source, produces according to this chrominance signal.For example, above-mentioned color of light comprises blue light, red light and green light.
In one embodiment of this invention, above-mentioned light sensing unit at least comprises the first light sensing unit and the second light sensing unit, and the first light sensing unit and the second light sensing unit control pin be separately coupled to processing unit a common pin (for a plurality of input and output pins of processing unit one of them).And processing unit is by common pin difference transfer control signal to the first light sensing unit and the second light sensing unit, uses and control the first light sensing unit and the second light sensing unit.
Based on above-mentioned, after the present invention is converted to chromaticity coordinate by chrominance signal, then remove to compare gamut range, to obtain the color that light source is corresponding, can shorten by this proving time of production line and the error problem that reduces human factor.
For above-mentioned feature and advantage of the present invention can be become apparent, special embodiment below, and coordinate appended graphic being described in detail below.
Accompanying drawing explanation
Fig. 1 is the calcspar of the shown color identification device of one embodiment of the invention;
Fig. 2 is the calcspar of the shown light sensing unit of one embodiment of the invention;
Fig. 3 is the process flow diagram of the shown color identification method of one embodiment of the invention;
Fig. 4 is the schematic diagram of the shown test macro of one embodiment of the invention.
Description of reference numerals:
100,400: color identification device;
110,410-1~410-n: light sensing unit;
120,420: processing unit;
210: photodiode array;
220: current frequency converter;
421: storage unit;
430: device to be measured;
440: far end device;
L1~Ln: light source;
S305~S320: each step of color identification method of the present invention.
Embodiment
Classic method is used the checkout procedure on production line, mostly all with manual type, identifies the defective products of product, however manual type except proving time long, also likely because human factor produces error problem.For this reason, the present invention proposes a kind of color identification method and device, can automatically identify the color of light source, makes production line can reduce the error problem of proving time and human factor, and can complete fast detection in the utmost point short time.In order to make content of the present invention more clear, below the example that really can implement according to this as the present invention especially exemplified by embodiment.
Fig. 1 is the calcspar of the shown color identification device of one embodiment of the invention.Please refer to Fig. 1, color identification device 100 is at least comprising the electronic installation of light sensing unit 110 and processing unit 120.Wherein, processing unit 120 is coupled to light sensing unit 110.
Please refer to Fig. 2, light sensing unit 110 comprises photodiode array (Photodiode Array) 210 and current frequency converter (Current To Frequency Converter) 220.Wherein, in order to the activation that determines light filter whether pin S2 and pin S3, namely select the type of light filter.For example, photodiode array 210 comprises three kinds of light filters, i.e. red (red) light filter, green (green) light filter, blueness (blue) light filter.Pin S0 and pin S1 are in order to determine the ratio (scaling) of output frequency.Pin OE is in order to control the output state of pin O.Pin O is the output connecting pin of frequency.
When color identification device 100 detects light source, color identification device 100 can produce chrominance signal through light sensing unit 110, at processing unit 120, receives after chrominance signal, by just learning the color that this light source is corresponding after sequential operation.The above-mentioned color identification device 100 of arranging in pairs or groups, illustrates each step of color identification method below again for an embodiment.
Fig. 3 is the process flow diagram of the shown color identification method of one embodiment of the invention.Referring to Fig. 1 and Fig. 3, in step S305, by light sensing unit 110, obtain the chrominance signal of light source.
For example, according to control signal, adjust the position standard of the control pin of light sensing unit 110, make a plurality of color of light in light sensing unit 110 difference detection light source, produce according to this these color of light corresponding frequency signal separately.That is to say, above-mentioned chrominance signal comprises the frequency signal of each color of light.Above-mentioned color of light comprises blue light, red light and green light.
From three primary colors principle of induction, if know the trichromatic value that forms color, just can know the color of light source to be tested.For light sensing unit 110, for for TCS3200, when a selected color filter, it only allows certain specific primary colors to pass through, and stops other primary colors to pass through.For example: when selecting green filter, only have green light to pass through in light source, blue light and red light all can be prevented from, and so just can obtain the light intensity of green light.In like manner, select blue filter just can obtain the light intensity of blue light, ruddiness wave filter just can obtain the light intensity of red light.And obtain these three values of red, green, blue, just can analyze the color that is incident upon TCS3200 glazing.
For instance, take Fig. 2 as example, utilize pin S2 and pin S3 to adjust photodiode array 210 for any color filter, receive respectively by this blue light, red light or the green light of light source L.For example, when pin S2 and pin S3 are all low pin position, selected ruddiness wave filter; When pin S2 and pin S3 are all high pin position, selected green glow wave filter; When pin S2 is high pin position for low pin position pin S3, selected blue filter.By this, select successively red filter, green filter and blue electric-wave filter, and record respectively redness, green and blue three frequency signals (that is, above-mentioned chrominance signal comprises redness, green and blue three frequency signals).
Then,, in step S310, by processing unit 120, receive chrominance signal.Afterwards, processing unit 120 just can be carried out converse routine to chrominance signal, i.e. step S315 and step S320.
In step S315, processing unit 120 is chromaticity coordinate according to colour gamut algorithm by color coordinate conversion.With CIE1931 color space, can redness (R), green (G) and blue (B) be converted to three valuess (tristimulus value) according to following formula, be respectively X, Y and Z:
X=0.49×R+0.31×G+0.2×B;
Y=0.17697×R+0.8124×G+0.01063×B;
Z=0×R+0.01×G+0.99×B。
Afterwards, then according to following formula three valuess (X, Y and Z) are converted to chromaticity coordinate (x, y, z), wherein x+y+z=1:
x=X/(X+Y+Z);
y=Y/(X+Y+Z);
z=Z/(X+Y+Z)。
After being converted to chromaticity coordinate, in step S320, processing unit 120 is compared chromaticity coordinate and a gamut range, uses and obtains color corresponding to light source.For example, according to the chromatic diagram of CIE1931 color space, can obtain versicolor gamut range, gamut range is pre-recorded in a storage unit (not shown) of processing unit 120.By this, processing unit 120 just can be inquired about gamut range stored in storage unit and learn that chromaticity coordinate is the gamut range that is positioned at which color.Accordingly, by the computing of processing unit 120, can improve the accuracy of color identification.
In addition, if device to be measured has a plurality of light sources, also can utilize the mode of common pin position to make processing unit be coupled to a plurality of light sensing units.Below lift again an example explanation.
Fig. 4 is the schematic diagram of the shown test macro of one embodiment of the invention.Please refer to Fig. 4, test macro comprises color identification device 400, device to be measured 430 and far end device 440.Wherein, color identification device 400 is for example the place ahead that is seated in the light source L1~Ln of device 430 to be measured, and color identification device 400 is coupled to far end device 440.In addition, color identification device 400 also can and be linked up with far end device 440 by Internet.
In the present embodiment, light sensing unit 410-1~light sensing unit 410-n is coupled to respectively processing unit 420.At this, can utilize common pin position mode to couple, use and couple a plurality of light sensing unit 410-1~light sensing unit 410-n simultaneously, to detect multiple sets of light sources L1-Ln.
For instance, suppose that the quantity that each root input and output pin that processing unit 420 can come for light sensing unit 410-1~light sensing unit 410-n can be shared is 4.At this only for illustrating, not as limit.
Take light sensing unit 410-1~light sensing unit 410-n as TCS3200 be example, wherein pin S0, pin S1, pin S2, pin S3 and pin OE be for controlling pin, above-mentioned 5 to control pins be can be total to pin position mode to couple; And pin O is output connecting pin, therefore cannot couple in common pin position mode.
According to above-mentioned setting, there is 4 light sensing units (being for example light sensing unit 410-1~light sensing unit 401-4) pin S0 separately can be coupled to same input and output pin of processing unit 420 simultaneously, pin S1 separately can be coupled to another root input and output pin of processing unit 420 simultaneously, by that analogy.Accordingly, the quantity of the input and output pin that 4 light sensing units use is 9, and wherein 5 input and output pins are to couple in common pin position mode, and other 4 input and output pins are coupled to respectively the output connecting pin of 4 light sensing units.
Utilize said method, available if processing unit 420 has 36 input and output pins, just processing unit 420 can couple with 16 light sensing units (being light sensing unit 410-1~light sensing unit 410-16).
And processing unit 420 can for example,, by common pin 4 light sensing units that transfer control signal extremely couples respectively (being light sensing unit 410-1~light sensing unit 401-4), being used and control these light sensing units.In addition, in processing unit 420, include storage unit 421, in storage unit 421, store a gamut range, with the use of comparing.
At this, processing unit 420, after comparing out a color, can further judge whether obtained color meets default color, uses to learn whether light source has extremely.Again judged result is sent to afterwards to far end device 440.Or processing unit 420, after comparing out a color, just can be sent to color far end device 440.Afterwards, by far end device 440, judge whether received color meets default color.
In sum, in the above-described embodiments, after chrominance signal is converted to chromaticity coordinate, then remove to compare gamut range, can significantly improve the accuracy rate of color identification.In addition, utilize pin position mode altogether that a plurality of light sensing units are coupled to processing unit, once many groups detect, and can reduce than traditional approach many detection time.Accordingly, except saving the time that manpower rechecks, also can guarantee quality and production capacity on production line, with the quality of guaranteeing product to improve product competitiveness in the market.
Finally it should be noted that: each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit above; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.
Claims (11)
1. a color identification method, is applicable to utilize an electronic installation to identify the color of light source, it is characterized in that, this method of testing comprises:
By one first light sensing unit, obtain the first chrominance signal of one first light source; And
By a processing unit, receive this first chrominance signal, and carry out a converse routine, this converse routine comprises:
According to a colour gamut algorithm, change this first chrominance signal into one first chromaticity coordinate; And
Compare this first chromaticity coordinate and a gamut range and obtain corresponding the first color of this first light source.
2. color identification method according to claim 1, is characterized in that, the step that obtains this first chrominance signal of this first light source by this first light sensing unit comprises:
By this first light sensing unit, detect respectively a plurality of color of light in this first light source, produce according to this those color of light corresponding frequency signal separately, wherein this first chrominance signal comprises those frequency signals.
3. color identification method according to claim 2, is characterized in that, the step that detects respectively those color of light in this first light source by this first light sensing unit comprises:
According to a control signal, the position of control pin of adjusting this first light sensing unit is accurate, makes this first light sensing unit detect respectively one of them or its combination of blue light, red light and green light in this first light source.
4. color identification method according to claim 1, is characterized in that, this electronic installation also comprises one second light sensing unit, and this color identification method also comprises:
By this second light sensing unit obtain a secondary light source the second chrominance signal; And
By this processing unit, receive this second chrominance signal, and carry out this converse routine, this converse routine comprises:
According to this colour gamut algorithm, change this second chrominance signal into one second chromaticity coordinate; And
Compare this second chromaticity coordinate and this gamut range and obtain corresponding the second color of this secondary light source.
5. color identification method according to claim 4, it is characterized in that, this first light sensing unit and this second light sensing unit control pin are separately coupled to one of them common pin of a plurality of input and output pins of this processing unit, and this color identification method also comprises:
By this common pin, transmit respectively one and control signal to this first light sensing unit and this second light sensing unit, use and control this first light sensing unit and this second light sensing unit.
6. color identification method according to claim 1, is characterized in that, after carrying out the step of this converse routine, also comprises by this processing unit:
Transmit this first color to far end device.
7. color identification method according to claim 1, is characterized in that, after carrying out the step of this converse routine, also comprises by this processing unit:
Judge whether this first color meets a default color; And
Transmit result to far end device after judgement.
8. a color identification device, is characterized in that, comprising:
A plurality of light sensing units, detect respectively a plurality of light sources, and produce a plurality of chrominance signals; And
One processing unit, is coupled to those light sensing units, to receive those chrominance signals from those light sensing units, and carries out a converse routine by this processing unit, and this converse routine comprises:
According to a colour gamut algorithm, changing each those chrominance signal is chromaticity coordinate; And
Compare this chromaticity coordinate and a gamut range and obtain the corresponding color of each those light source.
9. color identification device according to claim 8, it is characterized in that, each those light sensing unit is according to a control signal, adjust the position standard of the control pin of each those light sensing unit, make each those light sensing unit detect respectively one of them or its combination of blue light, red light and green light in corresponding light source, produce according to this this chrominance signal.
10. color identification device according to claim 8, it is characterized in that, those light sensing units at least comprise one first light sensing unit and one second light sensing unit, and this first light sensing unit and this second light sensing unit control pin are separately coupled to one of them common pin of a plurality of input and output pins of this processing unit.
11. color identification devices according to claim 10, it is characterized in that, this processing unit transmits respectively one by this common pin and controls signal to this first light sensing unit and this second light sensing unit, uses and controls this first light sensing unit and this second light sensing unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210370482.0A CN103712693A (en) | 2012-09-28 | 2012-09-28 | Color recognition method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210370482.0A CN103712693A (en) | 2012-09-28 | 2012-09-28 | Color recognition method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103712693A true CN103712693A (en) | 2014-04-09 |
Family
ID=50405850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210370482.0A Pending CN103712693A (en) | 2012-09-28 | 2012-09-28 | Color recognition method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103712693A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106885630A (en) * | 2017-02-17 | 2017-06-23 | 安徽工业大学 | A kind of method and device that spectral measurement is carried out based on color |
CN109709324A (en) * | 2017-10-26 | 2019-05-03 | 台达电子工业股份有限公司 | Detection method and detection device with compensation function |
-
2012
- 2012-09-28 CN CN201210370482.0A patent/CN103712693A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106885630A (en) * | 2017-02-17 | 2017-06-23 | 安徽工业大学 | A kind of method and device that spectral measurement is carried out based on color |
CN109709324A (en) * | 2017-10-26 | 2019-05-03 | 台达电子工业股份有限公司 | Detection method and detection device with compensation function |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100392367C (en) | System for measuring chromaticity coordinates | |
CN100592095C (en) | LED parameter test method | |
CN102820018B (en) | Color coordinate regulating method and device thereof | |
CN204086505U (en) | A kind of LED lamp intelligence aging testing system | |
CN104751756A (en) | Display device and method and device for optical adjustment of display panel | |
CN109949726B (en) | Automatic white balance debugging system and method for LED display screen module | |
CN107589568B (en) | Automatic learning and detecting device and method for LED lamp string | |
CN210690739U (en) | LED light source characteristic inspection device | |
CN106531065B (en) | A kind of parallel regulating system of one-to-many gamma curve and method | |
CN104637425A (en) | Assembly-line LED (light emitting diode) display unit uniformity detection method, system and device | |
CN103093737B (en) | Device and method for adjusting color white balance of display equipment | |
CN103712693A (en) | Color recognition method and device | |
CN103983921A (en) | Power strip detection method and device | |
CN108414949A (en) | High-voltage LED lamp failure diagnostic method and medium based on illumination feature | |
CN203323994U (en) | Optical performance detection device of liquid crystal projector | |
CN101931822A (en) | Automatic white balance system and method thereof | |
CN104511437B (en) | A kind of LED component light-splitting method and system | |
WO2017117875A1 (en) | Light source state detection system and method | |
CN110531240A (en) | A kind of LED light source characteristic verifying attachment and method | |
CN107179514B (en) | Lamps and lanterns flash test method and system | |
CN105954688B (en) | Lighting detecting device and illumination detection case | |
CN210928076U (en) | LED standard light source color matching device | |
CN201845039U (en) | Voltage detecting device | |
CN209356838U (en) | A kind of system that projection light machine automatically configures optimization white balance | |
CN204842260U (en) | Solar wafer's colour difference sorting unit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140409 |