CN109348573A - A kind of the LED night-light control method and system of obedient discoloration - Google Patents
A kind of the LED night-light control method and system of obedient discoloration Download PDFInfo
- Publication number
- CN109348573A CN109348573A CN201811219875.5A CN201811219875A CN109348573A CN 109348573 A CN109348573 A CN 109348573A CN 201811219875 A CN201811219875 A CN 201811219875A CN 109348573 A CN109348573 A CN 109348573A
- Authority
- CN
- China
- Prior art keywords
- light
- color
- user
- voice command
- led
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/20—Controlling the colour of the light
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention discloses a kind of LED night-light control method of obedient discoloration and systems.This method comprises: the face image of acquisition user;According to the facial expression in the face image, the quality of user's mood is judged;Obtain the first time voice command of the user;When judging that the user feels blue, the LED night-light is controlled according to the first time voice command and is changed colour;When judging that the user is in a good humor, the light of the LED light sending and the first time voice command opposite color is controlled;When the LED light issues the light with the first time voice command opposite color, second of voice command of the user is obtained;The LED night-light discoloration is controlled according to second of voice command.The present invention can control the color of LED night-light by judging the quality of user's mood.
Description
Technical field
The present invention relates to lighting areas, more particularly to the LED night-light control method and system of a kind of obedient discoloration.
Background technique
Existing household LED night-light, although there are many its luminescent colors, once to pick certain color such as blue by consumer
The LED night-light of color, the color that when that LED night-light use can only issue this characteristic are such as blue.When user has used one section
Between after, be weary of blue, wanted that the light for allowing LED night-light to issue other colors is impossible.In addition, a LED night-light replacement makes
After user, new user may have different requirements to the luminescent color of LED night-light, and this requirement is obviously not achieved.Institute
It can seem very barren with the unalterable LED night-light of luminescent color, also cannot achieve interacting between user and LED night-light.
Summary of the invention
The object of the present invention is to provide a kind of LED night-light control method of obedient discoloration and systems, by identifying user
Mood, issue the light identical or opposite as its order color, embody the master status of user.
To achieve the above object, the present invention provides following schemes:
A kind of LED night-light control method of obedient discoloration, which comprises
Acquire the face image of user;
According to the facial expression in the face image, the quality of user's mood is judged;
Obtain the first time voice command of the user;
When judging that the user feels blue, the LED night-light is controlled according to the first time voice command and is changed colour;
When judging that the user is in a good humor, controls the LED light and issue face opposite with the first time voice command
The light of color;
When the LED light is issued with the light of the first time voice command opposite color, the of the user is obtained
Secondary voice command;
The LED night-light discoloration is controlled according to second of voice command.
Optionally, the facial expression according in the face image judges the quality of user's mood, specifically
Include:
Interference is carried out to the face image to handle;
The expressive features in face image after extraction process;
The quality of user's mood is judged according to the expressive features.
Optionally, described when judging that the user feels blue, according to first time voice command control
LED night-light discoloration, specifically includes:
The order color of the first time voice command is identified using pattern matching method;
Tricolor color matching proportionality coefficient is determined according to the order color;
LED light is controlled according to the proportionality coefficient to change colour.
Optionally, described when judging that the user is in a good humor, it controls the LED light and issues and the first time voice
The light of order opposite color, specifically includes:
Obtain the complementary color of the order color;The complementary color is opposite with the order color;
Tricolor color matching proportionality coefficient is determined according to the complementary color;
LED light is controlled according to the proportionality coefficient to change colour.
Optionally, described to determine tricolor color matching proportionality coefficient according to the order color, calculation formula is as follows:
L=C1R+C2G+C3B
Wherein L is order color, and R indicates red, C1For red color matching proportionality coefficient, G indicates green, C2It is green
Color matching proportionality coefficient, B indicate blue, C3For the color matching proportionality coefficient of blue.
A kind of LED night-light control system of obedient discoloration, the system comprises:
Acquisition module, for acquiring the face image of user;
Judgment module, for judging the quality of user's mood according to the facial expression in the face image;
First order obtains module, for obtaining the first time voice command of the user;
First control module, for when judging that the user feels blue, according to the first time voice command control
Make the LED night-light discoloration;
Second control module issues and described first for when judging that the user is in a good humor, controlling the LED light
The light of secondary voice command opposite color;
Second order obtains module, for issuing the light with the first time voice command opposite color when the LED light
When, obtain second of voice command of the user;
Third control module changes colour for controlling the LED night-light according to second of voice command.
Optionally, the judgment module specifically includes:
Processing unit is handled for carrying out interference to the face image;
Extraction unit, for the expressive features in the face image after extraction process;
Judging unit, for judging the quality of user's mood according to the expressive features.
Optionally, first control module specifically includes:
Recognition unit, for identifying the order color of the first time voice command using pattern matching method;
First proportionality coefficient determination unit, for determining tricolor color matching proportionality coefficient according to the order color;
First control unit changes colour for controlling LED light according to the proportionality coefficient.
Optionally, second control module specifically includes:
Complementary color acquiring unit, for obtaining the complementary color of the order color;The complementary color is opposite with the order color;
Second proportionality coefficient determination unit, for determining tricolor color matching proportionality coefficient according to the complementary color;
Second control unit changes colour for controlling LED light according to the proportionality coefficient.
Optionally, the calculation formula of the first proportionality coefficient determination unit is as follows:
L=C1R+C2G+C3B
Wherein L is order color, and R indicates red, C1For red color matching proportionality coefficient, G indicates green, C2It is green
Color matching proportionality coefficient, B indicate blue, C3For the color matching proportionality coefficient of blue.
Compared with prior art, the present invention has following technical effect that LED night-light is identified by face's exterior portion of user
The mood of user, when judging that user is in a good humor, LED night-light issues the lamp with order opposite color when first time order
Light, LED night-light just issues light identical with order color when the second subcommand;When judging that user feels blue, LED
Night-light issues the light of order defined color at once, realizes interacting between user and LED night-light, enables LED night-light
It watches the mood and guesses the thoughts, increases delight of life.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodiment
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is the LED night-light control method flow chart of the obedient discoloration of the embodiment of the present invention;
Fig. 2 is the structural block diagram of the LED night-light control system of the obedient discoloration of the embodiment of the present invention;
Fig. 3 is the circuit diagram of the LED night-light control system of the obedient discoloration of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The object of the present invention is to provide a kind of LED night-light control method of obedient discoloration and systems, by identifying user
Mood, issue the light identical or opposite as its order color, embody the master status of user.
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
As shown in Figure 1, a kind of LED night-light control method of obedient discoloration includes:
Step 101: acquiring the face image of user.When user is close goes out LED night-light, by being placed in LED light
The face of ight high-definition camera alignment user in head is repeatedly imaged.
Step 102: according to the facial expression in the face image, judging the quality of user's mood.To described
Face image carries out interference and handles;The expressive features in face image after extraction process;Judged according to the expressive features
The quality of user's mood.Mood judgement is carried out according to Facial expression recognition result, provides in a good humor and bad two kinds knots
Fruit.Mood judges to provide if meeting feeling blue as a result, providing the heart if otherwise mainly to feel blue as judgment basis
The good result of feelings.
Step 103: obtaining the first time voice command of the user.When user goes out LED night-light, expressed with language
The color of the LED night-light light of being issued, for example, it is red.
Step 104: when judging that the user feels blue, the LED being controlled according to the first time voice command
Night-light discoloration.If the mood states of user are bad, determining the color that LED night-light to be shone is the order face screened out
Color.The order color of the first time voice command is identified using pattern matching method;Three primary colours are determined according to the order color
Color matching proportionality coefficient;LED light is controlled according to the proportionality coefficient to change colour.Calculation formula is as follows:
L=C1R+C2G+C3B
Wherein L is order color, and R indicates red, C1For red color matching proportionality coefficient, G indicates green, C2It is green
Color matching proportionality coefficient, B indicate blue, C3For the color matching proportionality coefficient of blue.
Step 105: when judging that the user is in a good humor, controlling the LED light and issue and first time voice life
Enable the light of opposite color.If the mood states of user are good, it is determined that the LED night-light color to be shone is to screen out life
Enable the complementary color of color.Obtain the complementary color of the order color;The complementary color is opposite with the order color;It is true according to the complementary color
Determine tricolor color matching proportionality coefficient;LED light is controlled according to the proportionality coefficient to change colour.
Step 106: when the LED light issues the light with the first time voice command opposite color, making described in acquisition
Second of voice command of user.
Step 107: the LED night-light being controlled according to second of voice command and is changed colour.Voice built in LED night-light is known
Other software identifies that emphasis carries out related color vocabulary included in the second subcommand to the second subcommand of user
Identification.And the result of recognition result and first time are compared.The color vocabulary gone out to speech recognition is screened, if is
Light can issue color, until screening successfully.The color of second subcommand can be different from the color of first time order.
The specific embodiment provided according to the present invention, the invention discloses following technical effects: LED night-light passes through user
Face's exterior portion identification user mood, when judging that user is in a good humor, LED night-light is issued and life when first time order
Enable the light of opposite color, LED night-light just issues light identical with order color when the second subcommand;Judging user
When feeling blue, LED night-light issues the light of order defined color at once, realizes interacting between user and LED night-light,
LED night-light is watched the mood and guessed the thoughts, delight of life is increased.
As shown in Fig. 2, a kind of LED night-light control system of obedient discoloration includes:
Acquisition module 201, for acquiring the face image of user.
Judgment module 202, for judging the good of user's mood according to the facial expression in the face image
It is bad.
The judgment module 202 specifically includes:
Processing unit is handled for carrying out interference to the face image;
Extraction unit, for the expressive features in the face image after extraction process;
Judging unit, for judging the quality of user's mood according to the expressive features.
First order obtains module 203, for obtaining the first time voice command of the user.
First control module 204, for when judging that the user feels blue, according to the first time voice command
Control the LED night-light discoloration.
First control module 204 specifically includes:
Recognition unit, for identifying the order color of the first time voice command using pattern matching method;
First proportionality coefficient determination unit, for determining tricolor color matching proportionality coefficient according to the order color;First
The calculation formula of proportionality coefficient determination unit is as follows:
L=C1R+C2G+C3B
Wherein L is order color, and R indicates red, C1For red color matching proportionality coefficient, G indicates green, C2It is green
Color matching proportionality coefficient, B indicate blue, C3For the color matching proportionality coefficient of blue.
First control unit changes colour for controlling LED light according to the proportionality coefficient.
Second control module 205, for when judge that the user is in a good humor, control the LED light sending with it is described
The light of first time voice command opposite color.
Second control module 205 specifically includes:
Complementary color acquiring unit, for obtaining the complementary color of the order color;The complementary color is opposite with the order color;
Second proportionality coefficient determination unit, for determining tricolor color matching proportionality coefficient according to the complementary color;
Second control unit changes colour for controlling LED light according to the proportionality coefficient.
Second order obtains module 206, for issuing and the first time voice command opposite color when the LED light
Light time obtains second of voice command of the user.
Third control module 207 changes colour for controlling the LED night-light according to second of voice command.
Fig. 3 is the circuit diagram of the LED night-light control system of the obedient discoloration of the embodiment of the present invention.As shown in figure 3, control circuit
Using 32 ARM core controller STM32F103 chip U1It further include by U for core composition2The threeway that chip TM1803 is constituted
Road LED drive control special circuit.Specifically, camera carries out real time information acquisition to face image, color screens module
Corresponding information is obtained simultaneously with speech recognition module, chip STM32F103 is input to by USB interface and is handled.According to phase
It answers algorithm to export to chip TM1803 the color matching proportionality coefficient for obtaining each primary colours in LED three primary colours after information processing, works as LED
After receiving light modulation data-signal, TM1803 chip intercepts the dimming information of three bytes according to itself lamps and lanterns address, generates three tunnels
Pwm signal controls constant-current driven module.The range of one byte is 0-255, and the gray scale per LED of the same colour is 256 ranks, three primary colours
The combined colors of LED theoretically have 256*256*256 level grey scale, meet the full-color demand for control of light.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For system disclosed in embodiment
For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part
It is bright.
Used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are said
It is bright to be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, foundation
Thought of the invention, there will be changes in the specific implementation manner and application range.In conclusion the content of the present specification is not
It is interpreted as limitation of the present invention.
Claims (10)
1. a kind of LED night-light control method of obedient discoloration, which is characterized in that the described method includes:
Acquire the face image of user;
According to the facial expression in the face image, the quality of user's mood is judged;
Obtain the first time voice command of the user;
When judging that the user feels blue, the LED night-light is controlled according to the first time voice command and is changed colour;
When judging that the user is in a good humor, controls the LED light and issue and the first time voice command opposite color
Light;
When the LED light issues the light with the first time voice command opposite color, second of the user is obtained
Voice command;
The LED night-light discoloration is controlled according to second of voice command.
2. the LED night-light control method of obedient discoloration according to claim 1, which is characterized in that described according to the face
Facial expression in portion's image judges the quality of user's mood, specifically includes:
Interference is carried out to the face image to handle;
The expressive features in face image after extraction process;
The quality of user's mood is judged according to the expressive features.
3. the LED night-light control method of obedient discoloration according to claim 1, which is characterized in that described to work as described in judgement
When user feels blue, the LED night-light is controlled according to the first time voice command and is changed colour, is specifically included:
The order color of the first time voice command is identified using pattern matching method;
Tricolor color matching proportionality coefficient is determined according to the order color;
LED light is controlled according to the proportionality coefficient to change colour.
4. the LED night-light control method of obedient discoloration according to claim 3, which is characterized in that described to work as described in judgement
When user is in a good humor, the light of the LED light sending and the first time voice command opposite color is controlled, is specifically included:
Obtain the complementary color of the order color;The complementary color is opposite with the order color;
Tricolor color matching proportionality coefficient is determined according to the complementary color;
LED light is controlled according to the proportionality coefficient to change colour.
5. the LED night-light control method of obedient discoloration according to claim 3, which is characterized in that described according to the life
Color is enabled to determine tricolor color matching proportionality coefficient, calculation formula is as follows:
L=C1R+C2G+C3B
Wherein L is order color, and R indicates red, C1For red color matching proportionality coefficient, G indicates green, C2For the color matching of green
Proportionality coefficient, B indicate blue, C3For the color matching proportionality coefficient of blue.
6. a kind of LED night-light control system of obedient discoloration, which is characterized in that the system comprises:
Acquisition module, for acquiring the face image of user;
Judgment module, for judging the quality of user's mood according to the facial expression in the face image;
First order obtains module, for obtaining the first time voice command of the user;
First control module, for controlling institute according to the first time voice command when judging that the user feels blue
State LED night-light discoloration;
Second control module issues and the first time language for when judging that the user is in a good humor, controlling the LED light
The light of sound order opposite color;
Second order obtains module, when for issuing the light with the first time voice command opposite color when the LED light, obtains
Take second of voice command of the user;
Third control module changes colour for controlling the LED night-light according to second of voice command.
7. the LED night-light control system of obedient discoloration according to claim 6, which is characterized in that the judgment module tool
Body includes:
Processing unit is handled for carrying out interference to the face image;
Extraction unit, for the expressive features in the face image after extraction process;
Judging unit, for judging the quality of user's mood according to the expressive features.
8. the LED night-light control system of obedient discoloration according to claim 6, which is characterized in that the first control mould
Block specifically includes:
Recognition unit, for identifying the order color of the first time voice command using pattern matching method;
First proportionality coefficient determination unit, for determining tricolor color matching proportionality coefficient according to the order color;
First control unit changes colour for controlling LED light according to the proportionality coefficient.
9. the LED night-light control system of obedient discoloration according to claim 8, which is characterized in that the second control mould
Block specifically includes:
Complementary color acquiring unit, for obtaining the complementary color of the order color;The complementary color is opposite with the order color;
Second proportionality coefficient determination unit, for determining tricolor color matching proportionality coefficient according to the complementary color;
Second control unit changes colour for controlling LED light according to the proportionality coefficient.
10. the LED night-light control system of obedient discoloration according to claim 8, which is characterized in that first ratio system
The calculation formula of number determination unit is as follows:
L=C1R+C2G+C3B
Wherein L is order color, and R indicates red, C1For red color matching proportionality coefficient, G indicates green, C2For the color matching of green
Proportionality coefficient, B indicate blue, C3For the color matching proportionality coefficient of blue.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811219875.5A CN109348573B (en) | 2018-10-19 | 2018-10-19 | Method and system for controlling LED night lamp capable of changing color by listening to voice |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811219875.5A CN109348573B (en) | 2018-10-19 | 2018-10-19 | Method and system for controlling LED night lamp capable of changing color by listening to voice |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109348573A true CN109348573A (en) | 2019-02-15 |
CN109348573B CN109348573B (en) | 2020-06-23 |
Family
ID=65308850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811219875.5A Active CN109348573B (en) | 2018-10-19 | 2018-10-19 | Method and system for controlling LED night lamp capable of changing color by listening to voice |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109348573B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104853481A (en) * | 2015-04-01 | 2015-08-19 | 浙江农林大学 | LED mood presenting and adjusting device and method |
CN205584545U (en) * | 2016-03-09 | 2016-09-14 | 深圳市美格智能技术股份有限公司 | Along with automatic intelligent LED lamp that discolours of mood and bracelet that matches thereof |
CN106419336A (en) * | 2016-09-29 | 2017-02-22 | 浙江农林大学 | LED mood display and excitation intelligent mirror and use method thereof |
CN207460565U (en) * | 2017-07-20 | 2018-06-05 | 上海思依暄机器人科技股份有限公司 | A kind of light regulating device and robot |
-
2018
- 2018-10-19 CN CN201811219875.5A patent/CN109348573B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104853481A (en) * | 2015-04-01 | 2015-08-19 | 浙江农林大学 | LED mood presenting and adjusting device and method |
CN205584545U (en) * | 2016-03-09 | 2016-09-14 | 深圳市美格智能技术股份有限公司 | Along with automatic intelligent LED lamp that discolours of mood and bracelet that matches thereof |
CN106419336A (en) * | 2016-09-29 | 2017-02-22 | 浙江农林大学 | LED mood display and excitation intelligent mirror and use method thereof |
CN207460565U (en) * | 2017-07-20 | 2018-06-05 | 上海思依暄机器人科技股份有限公司 | A kind of light regulating device and robot |
Also Published As
Publication number | Publication date |
---|---|
CN109348573B (en) | 2020-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105848354B (en) | A kind of shading process being used in intelligent illuminating system and system | |
JP4495814B2 (en) | Dimmable LED lighting fixture | |
CN103796378B (en) | The control of light source operates | |
CN1053312C (en) | Image projection device and lamp control system for use therein | |
US10136498B2 (en) | Actuation of coloured luminaires for the brightness channel | |
RU2009116928A (en) | METHOD FOR COLOR TRANSITION FOR EXTERNAL OR GENERAL LIGHTING SYSTEM | |
CN105206228B (en) | The LED scanning arrays driving chip and adjusting method that brightness linear change is voluntarily adjusted | |
US20110282469A1 (en) | Variable effect light string | |
CN109152126A (en) | For controlling the method for the lamp being set on vehicle and for the lighting system of vehicle | |
CN205406067U (en) | Self -adaptation environment type projecting apparatus | |
CN101422080A (en) | Colour temperature and colour location control for a light | |
CN109359600A (en) | A kind of LED night-light control method and system to change colour according to face | |
CN109348573A (en) | A kind of the LED night-light control method and system of obedient discoloration | |
CN103875313B (en) | Color during light modulation is changed to the Dimmable light-emitting body of feature | |
CN203027529U (en) | Intelligent led lighting control system | |
US20070296345A1 (en) | Synchronous light emitting diode lamp string | |
CN101655637A (en) | Liquid crystal display apparatus and backlight source generation method | |
US20110103049A1 (en) | Universal color control matrix | |
CN207070394U (en) | The drive system and equipment of a kind of LED | |
CN115278979A (en) | Light color-adjusting control method and device, product and lamp | |
CN107006099B (en) | The synchronously control of the lighting apparatus of networking | |
CN104795022A (en) | Light intensity self-adaptive type LED display screen | |
CN109640455A (en) | A kind of LED desk lamp color temperature control method and system | |
CN106793426B (en) | A kind of method and system of intelligent control light | |
CN106255282B (en) | A kind of illumination control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |