CN202734965U - Color recognition system - Google Patents

Color recognition system Download PDF

Info

Publication number
CN202734965U
CN202734965U CN 201220313259 CN201220313259U CN202734965U CN 202734965 U CN202734965 U CN 202734965U CN 201220313259 CN201220313259 CN 201220313259 CN 201220313259 U CN201220313259 U CN 201220313259U CN 202734965 U CN202734965 U CN 202734965U
Authority
CN
China
Prior art keywords
color
chip microcomputer
recognition system
light source
value
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.)
Expired - Fee Related
Application number
CN 201220313259
Other languages
Chinese (zh)
Inventor
阮仕涛
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.)
Shenzhen Prafly Technology Co Ltd
Original Assignee
Shenzhen Prafly Technology Co 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 Shenzhen Prafly Technology Co Ltd filed Critical Shenzhen Prafly Technology Co Ltd
Priority to CN 201220313259 priority Critical patent/CN202734965U/en
Application granted granted Critical
Publication of CN202734965U publication Critical patent/CN202734965U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The utility model discloses a color recognition system. The system comprises a white light source module, a color acquisition module, a single chip microcomputer and an LCD display, wherein the white light source module comprises a white light source and a sealing channel connected with the white light source; light of the white light source penetrates through the sealing channel and then shines on a tested object; the color acquisition module comprises a color sensor and a collective lens; the collective lens is arranged in front of the color sensor; light reflected by the tested object is acquired by the color sensor through the collective lens; the color sensor converts the acquired light signals into digital signals, sends the digital signals to the single chip microcomputer for data processing to obtain HSI values and RGB values in different color modes, and sends the values to the LCD display for value display. The color recognition system disclosed by the utility model is simple in structure, low in realization cost, high in precision and is applicable to the use of an individual.

Description

A kind of Color Recognition System
Technical field
The utility model relates to color identification, relate in particular to a kind of simple in structure, cost is low, and is fit to the Color Recognition System that the individual uses.
Background technology
Along with the effect of color in commercial production control is increasing, also more and more higher to the requirement of color identification, require cost degradation, high practicability and high precision.In addition on the market product of color identification mainly for industrial, and expensive, the product of the portable color recognizer that the individual uses also seldom, and accuracy of identification is lower.
The utility model content
The product that the technical problems to be solved in the utility model is to identify for color in the prior art is mainly for industrial, and expensive defective, provide a kind of simple in structure, cost is low, and is fit to the higher Color Recognition System of accuracy of identification that the individual uses.
The technical scheme that its technical matters that solves the utility model adopts is:
A kind of Color Recognition System is provided, comprises white light source module, color acquisition module, single-chip microcomputer and LCD display, it is characterized in that,
Described white light source module comprises white light source and connected seal channel, and the light of described white light source shines on the testee after by the sealing passage;
Described color acquisition module comprises color sensor and collector lens, and before described collector lens was installed in described color sensor, the light of testee reflection was gathered by described color sensor by this collector lens;
Described color sensor is converted into digital signal with the light signal that gathers and sends to described single-chip microcomputer and carries out data and process, and obtains HSI value and the rgb value of different colours pattern, and sends to described LCD display and carry out the numerical value demonstration.
In the Color Recognition System of the present utility model, this system also comprises the hummer that carries out auditory tone cues after data are processed for finishing at described single-chip microcomputer, and this hummer is connected with single-chip microcomputer.
In the Color Recognition System of the present utility model, this system also comprises the three-color LED that is connected with described single-chip microcomputer, and described single-chip microcomputer sends to described three-color LED with rgb value, and described three-color LED is according to the color of described RGB reduction testee.
In the Color Recognition System of the present utility model, this Color Recognition System comprises that also the described LCD display of control shows the displayed value switching key of HSI value or rgb value, and described displayed value switching key is connected with described single-chip microcomputer.
In the Color Recognition System of the present utility model, this Color Recognition System also comprises the pattern switching key that switches by the described color acquisition module of described Single-chip Controlling between single acquisition pattern and continuous acquisition pattern, described pattern switching key is connected with described single-chip microcomputer.
Use the utlity model has following beneficial effect: the utility model shines the light of white light source on the testee after by seal channel, can all shine most white light on the testee, thereby can make sensor receive more light by the testee reflection, avoid to greatest extent the loss of light, thereby improved the degree of accuracy of system; The light of testee reflection is received by color sensor after by collector lens again, collector lens so that most reflected light received by color sensor, can make the distance between testee and the collector lens very short, extraneous mixed and disorderly light almost can not arrive sensor, thereby can guarantee that color sensor exports accurately frequency.Color sensor is converted into digital signal with the light signal that receives and sends to single-chip microcomputer and carries out data and process, and obtains HSI value and the rgb value of different colours pattern, and sends to described LCD display and carry out the numerical value demonstration.The utility model is simple in structure, realizes that cost is low, and precision is higher, is fit to the individual and uses.
Description of drawings
The utility model is described in further detail below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the structural representation of the utility model embodiment Color Recognition System;
Fig. 2 is the index path of the utility model embodiment Color Recognition System;
Fig. 3 is the method flow diagram of the utility model embodiment color identification;
Fig. 4 is the main program flow chart of the utility model embodiment Color Recognition System work.
Embodiment
In order to make the purpose of this utility model, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the utility model is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the utility model, and be not used in restriction the utility model.
In preferred embodiment of the present utility model, as shown in Figure 1, Color Recognition System comprises white light source module 30, color acquisition module 20, single-chip microcomputer 10 and LCD display 40, wherein, white light source module 30 comprises white light source and connected seal channel (referring to Fig. 2), and the light of white light source shines on the testee after by the total reflection of sealing passage.White light source can adopt near pure white high light LED.Utilize seal channel that the distance of color samples can not become, the energy of the decay of the light of the testee that namely collects reflection is the same, can be compensated the processing stage of the data of back, so do not consider the decay of the light intensity that receives.Be understandable that Color Recognition System also is included as the power supply (not shown) of its various piece power supply.
Among the embodiment of the present utility model, single-chip microcomputer 10 adopts STC12C5406AD, in the present embodiment mainly be that timer, counter, the serial ports of having used this single-chip microcomputer is current, PWM control, I the function such as O data transmission.
Color acquisition module 20 comprises color sensor and collector lens (referring to Fig. 2), and before collector lens was installed in color sensor, the light of testee reflection was gathered by color sensor by this collector lens.Collector lens can so that most reflected light received by color sensor, distance between testee and the collector lens can be arranged shorter in addition, extraneous mixed and disorderly light almost can not arrive sensor, thereby can guarantee that color sensor exports accurately frequency.
Color sensor adopts TCS320 among the embodiment of the present utility model, and it is very high to light source requirements, and the same color is measured frequency sample not in different measured distances, different lighting environment.Optical sensor for TCS320, it is not identical to the susceptibility of these three kinds of Essential colour, cause the RGB output of TCS320 also unequal, so must utilize white balance to regulate and compensate, TCS320 is equated to the three primary colors in " white " that detects.
Color sensor is converted into digital signal with the light signal that gathers and sends to single-chip microcomputer 10 and carries out data and process, and namely carries out color identification, obtains HSI value and the rgb value of different colours pattern, and sends to LCD display 40 and carry out the numerical value demonstration.Wherein the HIS value comprises respectively the value of tone H (Hue), saturation degree S (Saturation) and intensity I (Intensity), and rgb value comprises the intensity level of red R (Red), green G (Green) and blue B (Blue).What LCD display 40 was selected among the utility model embodiment is 1602 character type LCD display, can show two row, and 16 characters of every row can show the value of three variablees in each color mode of the required demonstration of the utility model.Carry out data when processing at single-chip microcomputer 10 among the utility model embodiment, can carry out data according to pre-stored white balance gene processes, white balance gene can obtain in advance by the learning functionality of single-chip microcomputer 10 one group of frequency reference value that represents white light, and then calculating 3 adjustment parameters is the scale factor (being white balance gene) of primary colours; The study of single-chip microcomputer 10 is divided into 1 time and repeatedly.Study is once left parameter white balance gene (this parameter is storing always), when identifying later at every turn, just calls this factor and carries out blank level adjustment.Study repeatedly is when carrying out color identification, all to carry out first white balance at every turn, obtains white balance gene (this white balance gene is for temporary, only for this color identification), then carries out color identification by single-chip microcomputer.Repeatedly carrying out white balance is to put forward high-precision a kind of method.
Among the utility model embodiment, the dutycycle of TCS320 output is the pulse of 50% different frequency, so can record with the counter of single-chip microcomputer 10 umber of pulse that arrives the T0 mouth.There are two kinds of methods to weigh three kinds of component values of RGB.The first: gating red diode array, allow the T0 rolling counters forward, timer begins timing simultaneously, when the number of T0 counter reaches 255, extract the time in the timer, in like manner can record the time of blueness, green component, again by the white balance adjusting factor, then can obtain the rgb value of the corresponding color of surveying.Second method: gating red diode array, allow the timer be a set time surely, counter begins counting, when timer overflows, extract the numerical value in the counter, obtain with red count value, in like manner can obtain the value of blueness, green component, by white balance adjusting, then can obtain the RGB actual value of the respective color of surveying again.Through experiment test, the accidental error of second method is less than the first, thus adopt the second method counting, and through repeatedly sampling, the error that is averaging rear rgb value can be very little.
White balance adjusting is to adapt to various different occasions, Color Recognition System of the present utility model has the autonomous learning function, namely before distinct color, first surrounding environment is learnt, obtain one group of frequency reference value that represents white light, then calculating 3 adjustment parameters is the scale factor of primary colours.The three primary colours umber of pulse that single-chip microcomputer 10 among the utility model embodiment records color sensor multiply by its corresponding scale factor again, obtains corresponding R, G and B frequency values, by the reducible color that goes out object under test of three-color LED.With this standard as color discrimination, thus the reliability of raising system.
As to establish scale factor be K, and the red color component value that records during white balance is R0, and the red color component value of testee practical measurement is r, and then the true R component after the correction of testee is:
R=K*r=255*(r/R0);
Blue component in like manner:
B=K*b=255*(b/B0);
Green component in like manner:
G=K*g=255*(g/G0)。
As shown in Figure 1, the Color Recognition System of the utility model embodiment also comprises hummer 50, is used for carrying out auditory tone cues after described single-chip microcomputer is finished color identification, and this hummer 50 is connected with single-chip microcomputer 10.
As shown in Figure 1, the Color Recognition System of the utility model embodiment also comprises the three-color LED 60 that is connected with single-chip microcomputer, and single-chip microcomputer 10 sends to three-color LED 60 with rgb value, and three-color LED 60 can reduce the color of testee according to RGB.
Further, the Color Recognition System of the utility model embodiment also comprises displayed value switching key 70, is used for control LCD display 40 and shows HSI value or rgb value, and displayed value switching key 70 is connected with single-chip microcomputer 10.
Further, the Color Recognition System of the utility model embodiment also comprises pattern switching key 80, be used for switching between single acquisition pattern and continuous acquisition pattern by single-chip microcomputer 10 control color acquisition modules 20, pattern switching key 80 is connected with single-chip microcomputer 10.
As shown in Figure 3, the utility model embodiment color identification method is applicable to above-mentioned Color Recognition System, mainly may further comprise the steps:
S301, by a seal channel with white light to testee;
The light that reflects on S302, the testee is behind collector lens, by the color sensor collection in the color acquisition module;
S303, color sensor are converted into digital signal with the light signal that gathers and send to single-chip microcomputer and carry out the data processing; Specifically carry out data by pre-stored white balance gene (being the scale factor of primary colours) and process, concrete processing procedure is above having a detailed description, is not repeated herein.
S304, single-chip microcomputer carry out obtaining HSI value and the rgb value of different colours pattern after data are processed, and send to LCD display and carry out the numerical value demonstration.
In an embodiment of the present utility model, when showing the numerical value of different colours pattern, LCD display carries out auditory tone cues.
When LCD display is carried out the numerical value demonstration, receive rgb value by three-color LED, the color of reduction testee.
Among the utility model embodiment, when LCD display shows, also can show HSI value or rgb value by displayed value switching key control LCD display.
When the color acquisition module was worked, the pattern by pattern switching key switching color acquisition module comprised single acquisition pattern and continuous acquisition pattern.
Among the utility model embodiment, the main program flow of Color Recognition System work may further comprise the steps as shown in Figure 4:
S401, Color Recognition System are carried out initialization, be mainly the initialization of port, comprise the initialization of 8 bit data I/O mouths of LCD display, the control port initialization of hummer, the output current that requires because of port is larger, draws so these several ports need to be recommended.
After S402, initialization are complete, judge whether system needs white balance;
If S403 need to carry out white balance, then gather white balance RGB component value, calculate the white balance adjusting factor; If do not need then directly change S405 over to;
S404, calculate the white balance adjusting factor after, can control hummer prompting;
S405, carry out color identification sampling;
After S406, color identification sampling is complete, point out by hummer;
S407, send rgb value and show to LCD display;
Whether S408, detection display value switching key are pressed, and the demonstration that namely whether needs to carry out color mode is switched;
If S409 displayed value switching key is pressed, then need switch to show the HSI value, if not, EOP (end of program) then.
Simultaneously but whether the detecting pattern switching key is pressed in addition, if by next continuous sampling, otherwise only carries out unitary sampling, if not, and EOP (end of program) then.
Should be understood that, for those of ordinary skills, can be improved according to the above description or conversion, and all these improvement and conversion all should belong to the protection domain of the utility model claims.

Claims (5)

1. a Color Recognition System comprises white light source module, color acquisition module, single-chip microcomputer and LCD display, it is characterized in that,
Described white light source module comprises white light source and connected seal channel, and the light of described white light source shines on the testee after by the sealing passage;
Described color acquisition module comprises color sensor and collector lens, and before described collector lens was installed in described color sensor, the light of testee reflection was gathered by described color sensor by this collector lens;
Described color sensor is converted into digital signal with the light signal that gathers and sends to described single-chip microcomputer and carries out data and process, and obtains HSI value and the rgb value of different colours pattern, and sends to described LCD display and carry out the numerical value demonstration.
2. Color Recognition System according to claim 1 is characterized in that, this system also comprises the hummer that carries out auditory tone cues after data are processed for finishing at described single-chip microcomputer, and this hummer is connected with single-chip microcomputer.
3. Color Recognition System according to claim 2, it is characterized in that, this system also comprises the three-color LED that is connected with described single-chip microcomputer, and described single-chip microcomputer sends to described three-color LED with rgb value, and described three-color LED is according to the color of described RGB reduction testee.
4. Color Recognition System according to claim 3 is characterized in that, this Color Recognition System comprises that also the described LCD display of control shows the displayed value switching key of HSI value or rgb value, and described displayed value switching key is connected with described single-chip microcomputer.
5. Color Recognition System according to claim 4, it is characterized in that, this Color Recognition System also comprises the pattern switching key that switches by the described color acquisition module of described Single-chip Controlling between single acquisition pattern and continuous acquisition pattern, described pattern switching key is connected with described single-chip microcomputer.
CN 201220313259 2012-06-29 2012-06-29 Color recognition system Expired - Fee Related CN202734965U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201220313259 CN202734965U (en) 2012-06-29 2012-06-29 Color recognition system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201220313259 CN202734965U (en) 2012-06-29 2012-06-29 Color recognition system

Publications (1)

Publication Number Publication Date
CN202734965U true CN202734965U (en) 2013-02-13

Family

ID=47660652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201220313259 Expired - Fee Related CN202734965U (en) 2012-06-29 2012-06-29 Color recognition system

Country Status (1)

Country Link
CN (1) CN202734965U (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103512658A (en) * 2012-06-29 2014-01-15 深圳市祈飞科技有限公司 Color identification system and method
CN105032789A (en) * 2015-08-17 2015-11-11 江苏瑞新科技股份有限公司 Color difference sorting device for silicon battery pieces and sorting method of color difference sorting device
CN105333958A (en) * 2014-06-11 2016-02-17 北京长城金点物联网科技有限公司 Electronic device
CN107436294A (en) * 2016-05-26 2017-12-05 镇江索乐电子科技有限公司 A kind of quick liquid sediment Color Detecting System and its detection method
CN107607204A (en) * 2017-09-05 2018-01-19 昆山博威泰克电子科技有限公司 Color analysis device and method
CN109540296A (en) * 2018-11-30 2019-03-29 哈尔滨理工大学 Optical fiber color based on STC89C51 single-chip microcontroller identifies portable unit

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103512658A (en) * 2012-06-29 2014-01-15 深圳市祈飞科技有限公司 Color identification system and method
CN105333958A (en) * 2014-06-11 2016-02-17 北京长城金点物联网科技有限公司 Electronic device
CN105032789A (en) * 2015-08-17 2015-11-11 江苏瑞新科技股份有限公司 Color difference sorting device for silicon battery pieces and sorting method of color difference sorting device
CN107436294A (en) * 2016-05-26 2017-12-05 镇江索乐电子科技有限公司 A kind of quick liquid sediment Color Detecting System and its detection method
CN107607204A (en) * 2017-09-05 2018-01-19 昆山博威泰克电子科技有限公司 Color analysis device and method
CN109540296A (en) * 2018-11-30 2019-03-29 哈尔滨理工大学 Optical fiber color based on STC89C51 single-chip microcontroller identifies portable unit

Similar Documents

Publication Publication Date Title
CN103512658A (en) Color identification system and method
CN202734965U (en) Color recognition system
CN201130057Y (en) Color detector and color recognition device
CN100549639C (en) Color recognition device and color identification method
CN101109659A (en) Device and method for color recognition
CN205246547U (en) Urine analysis detecting system based on color sensor
CN106238350A (en) A kind of solar battery sheet method for separating based on machine vision and system
CN103196559A (en) Electronic Lovibond color measurement method and detection system thereof
CN204304613U (en) II type electric energy efficiency office terminal and system
CN101403632A (en) Dynamic multipath synchronization detection apparatus and method for metering device
CN104637425A (en) Assembly-line LED (light emitting diode) display unit uniformity detection method, system and device
CN103971471B (en) Service plate automatic price method and its system based on colour recognition
CN201130428Y (en) Optic fiber gyroscope data acquisition model based on FPGA
CN110542450A (en) Automatic calibration system and method for temperature and humidity instrument
CN206609527U (en) A kind of color identification device
CN105032789B (en) The aberration sorting equipment and its method for sorting of a kind of silicon cell
CN205607423U (en) Automatic identification equipment of automobile instrument pointer indicated value
CN103749760B (en) Method and device for controlling moderate fermentation of instant black tea
CN102514963A (en) Correcting control method with function of automatically identifying colors
CN106409195B (en) LED display refresh rate detection system and method
CN202041284U (en) Portable color temperature and brightness meter with RGB (red, green and blue) analysis function
CN203178063U (en) LED color coordinate test system
CN103234975B (en) A kind of detection and location method of cotton foreign fiber
CN102279046A (en) Portable color temperature luminance meter with RGB (red, green, blue) analysis
CN113310920A (en) High accuracy integral type color sensor

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130213

Termination date: 20200629

CF01 Termination of patent right due to non-payment of annual fee