CN109359600A - A kind of LED night-light control method and system to change colour according to face - Google Patents
A kind of LED night-light control method and system to change colour according to face Download PDFInfo
- Publication number
- CN109359600A CN109359600A CN201811220845.6A CN201811220845A CN109359600A CN 109359600 A CN109359600 A CN 109359600A CN 201811220845 A CN201811220845 A CN 201811220845A CN 109359600 A CN109359600 A CN 109359600A
- Authority
- CN
- China
- Prior art keywords
- face
- color
- image
- age
- gender
- 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
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000001815 facial effect Effects 0.000 claims description 17
- 238000000605 extraction Methods 0.000 claims description 10
- 230000009647 facial growth Effects 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 5
- 239000003086 colorant Substances 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000002845 discoloration Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 241001465382 Physalis alkekengi Species 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 210000003128 head Anatomy 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
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]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/172—Classification, e.g. identification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/178—Human faces, e.g. facial parts, sketches or expressions estimating age from face image; using age information for improving recognition
Abstract
The invention discloses a kind of LED night-light control methods and system to change colour according to face.This method comprises: the face-image of acquisition user;Gender and the age of the user are identified according to the face-image;According to the gender and the age, hobby color is determined in color database;Color in shown color database is corresponding with gender and age;Tricolor color matching proportionality coefficient is determined according to the hobby color;LED light is controlled according to the proportionality coefficient to change colour.The present invention judges its gender and age by carrying out camera shooting to user face, and then the color of its hobby is issued according to gender and age control LED night-light, and user is enabled to be in a cheerful frame of mind.
Description
Technical field
The present invention relates to lighting areas, more particularly to a kind of LED night-light control method and system to change colour according to face.
Background technique
Existing its luminescent color of household LED night-light be it is fixed, different home member is using can issue same color
Light.Kinsfolks its gender, age are different, and different gender, age generate different preferences to color.According to the color heart
The male and female of Neo-Confucianism, different age group have a universal law to the preference of color.Gender, age can be used by LED night-light
The face image of person and obtain.According to this logic, a kind of LED night that its hobby color of light is issued for user is devised
Lamp.
Summary of the invention
The object of the present invention is to provide a kind of LED night-light control methods and system to change colour according to face, by user's face
Portion carries out camera shooting and judges its gender and age, and then the color of its hobby is issued according to gender and age control LED night-light, and order makes
User is in a cheerful frame of mind.
To achieve the above object, the present invention provides following schemes:
A kind of LED night-light control method to change colour according to face, which comprises
Acquire the face-image of user;
Gender and the age of the user are identified according to the face-image;
According to the gender and the age, hobby color is determined in color database;In shown color database
Color it is corresponding with gender and age;
Tricolor color matching proportionality coefficient is determined according to the hobby color;
LED light is controlled according to the proportionality coefficient to change colour.
Optionally, it gender and the age that the user is identified according to the face-image, specifically includes:
The face-image is handled;
The facial characteristics of face-image after extraction process;The facial characteristics includes global feature and local feature;
According to the facial characteristics, it is based on cranium face Growth Model, identifies gender and the age of the user.
Optionally, described that the face-image is handled, it specifically includes:
Remove the background in the face-image;
The face-image is normalized;
The face-image is divided into six sub-regions.
Optionally, described to determine tricolor color matching proportionality coefficient according to the hobby color, calculation formula is as follows:
L=C1R+C2G+C3B
Wherein L is hobby 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 to change colour according to face, the system comprises:
Acquisition module, for acquiring the face-image of user;
Identification module, for identifying gender and the age of the user according to the face-image;
Color determination module, for determining hobby color in color database according to the gender and the age;
Color in shown color database is corresponding with gender and age;
Proportionality coefficient determining module, for determining tricolor color matching proportionality coefficient according to the hobby color;
Control module changes colour for controlling LED light according to the proportionality coefficient.
Optionally, the identification module specifically includes:
Processing unit, for handling the face-image;
Extraction unit, the facial characteristics for the face-image after extraction process;The facial characteristics includes global feature
And local feature;
Recognition unit, for being based on cranium face Growth Model according to the facial characteristics, identify the gender of the user with
And the age.
Optionally, the processing unit specifically includes:
Subelement is removed, for removing the background in the face-image;
Subelement is normalized, for the face-image to be normalized;
Divide subelement, for the face-image to be divided into six sub-regions.
Optionally, the calculation formula of the proportionality coefficient determining module is as follows:
L=C1R+C2G+C3B
Wherein L is hobby 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 have following technical effect that LED night-light can automatic identification user gender and
Age, and then the light for issuing the liked color of user increases delight of life so that LED night-light is intelligent, becomes life
It is finer, enable user happy.
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 flow chart for the LED night-light control method that the embodiment of the present invention changes colour according to face;
Fig. 2 is the structural block diagram for the LED night-light control system that the embodiment of the present invention changes colour according to face;
Fig. 3 is the circuit diagram for the LED night-light control system that the embodiment of the present invention changes colour according to face.
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 methods and system to change colour according to face, by user's face
Portion carries out camera shooting and judges its gender and age, and then the color of its hobby is issued according to gender and age control LED night-light, and order makes
User is in a cheerful frame of mind.
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 according to face 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 images.
Step 102: gender and the age of the user are identified according to the face-image.
The face-image is handled;Background interference is removed, to the position of face, size and image normalizing in image
Change, improves the picture quality of face, and then face image is cut into six sub-regions: under face area, face upper half area, face
Half region, mouth, nose and left eye region.Due to the symmetry of people's eyes, the subregion that left eye is eye portion is only chosen.
Extraction and gender and age-dependent facial characteristics on face image after treatment, including with Luminance Distribution information
Global feature for representative and the location and shape profile information using face is the local features of representative.
According to the facial characteristics of extraction, the identification of user's gender is realized based on the fusion of face's sub-district characteristic of field;Base
Estimate in age of the cranium face Growth Model to user.Cranium face Growth Model shows variation face before 18 years old of face
Characteristic point and ratio variation are main embodiments, and mainly embody the age in face by the variation of face texture after 18 years old
The variation in portion.
Step 103: according to the gender and the age, hobby color is determined in color database;Shown color
Color in database is corresponding with gender and age.Its corresponding color is found in age-sex-hobby color libraries
L.Table 1 is age-sex of the present invention-hobby color chart, gives different age group male and female are liked one
Kind color, wherein not repartitioned for 70 years old or more with 10 years old for an age bracket within 70 years old.
1 age-sex of table-hobby color chart
Step 104: tricolor color matching proportionality coefficient is determined according to the hobby color.The color L of aforementioned determination is pressed
Formula L=C1R+C2G+C3B carries out tricolor color matching, and wherein R indicates red, C1For red color matching proportionality coefficient, G indicates green
Color, C2For the color matching proportionality coefficient of green, B indicates blue, C3For the color matching proportionality coefficient of blue, each base in three primary colours is determined
The color matching proportionality coefficient of color.
Step 105: LED light being controlled according to the proportionality coefficient and is changed colour.
The specific embodiment provided according to the present invention, the invention discloses following technical effects: LED night-light can automatic identification
The gender of user and age, and then the light for issuing the liked color of user increases life so that LED night-light is intelligent
Temperament and interest makes life become finer, enables user happy.
As shown in Fig. 2, a kind of LED night-light control system according to face discoloration includes:
Acquisition module 201, for acquiring the face-image of user.
Identification module 202, for identifying gender and the age of the user according to the face-image.
The identification module 202 specifically includes:
Processing unit, for handling the face-image;The processing unit specifically includes: removal subelement,
For removing the background in the face-image;Subelement is normalized, for the face-image to be normalized;Point
Subelement is cut, for the face-image to be divided into six sub-regions.
Extraction unit, the facial characteristics for the face-image after extraction process;The facial characteristics includes global feature
And local feature;
Recognition unit, for being based on cranium face Growth Model according to the facial characteristics, identify the gender of the user with
And the age.
Color determination module 203, for determining hobby face in color database according to the gender and the age
Color;Color in shown color database is corresponding with gender and age.
Proportionality coefficient determining module 204, for determining tricolor color matching proportionality coefficient according to the hobby color.
The calculation formula of the proportionality coefficient determining module 204 is as follows:
L=C1R+C2G+C3B
Wherein L is hobby 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.
Control module 205 changes colour for controlling LED light according to the proportionality coefficient.
Fig. 3 is the circuit diagram of the LED night-light control system to change colour according to face.As shown in figure 3, control circuit uses 32 ARM
Core controller STM32F103 chip U1 is core composition, further includes the triple channel LED driving control being made of U2 chip TM1803
The memory module that special circuit and U5 chip AT24C16 processed is constituted.Specifically, camera carries out real time information to face image
It obtains, chip STM32F103 is input to by USB interface and is handled, according to respective algorithms to being used after information processing
The information such as person's gender and age, then by being extracted in age-sex-hobby color libraries for being stored in AT24C16 chip
Corresponding color determines that the color matching proportionality coefficient of each primary colours in LED three primary colours is exported to chip TM1803, when LED receives light modulation
After data-signal, TM1803 chip intercepts the dimming information of three bytes according to itself lamps and lanterns address, generates three road pwm signals
Control 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, the group of three-primary color LED
Closing in color theory has 256*256*256 level grey scale, meets 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 (8)
1. a kind of LED night-light control method to change colour according to face, which is characterized in that the described method includes:
Acquire the face-image of user;
Gender and the age of the user are identified according to the face-image;
According to the gender and the age, hobby color is determined in color database;Face in shown color database
Color is corresponding with gender and age;
Tricolor color matching proportionality coefficient is determined according to the hobby color;
LED light is controlled according to the proportionality coefficient to change colour.
2. the LED night-light control method according to claim 1 to change colour according to face, which is characterized in that described according to the face
It the gender of user described in portion's image recognition and age, specifically includes:
The face-image is handled;
The facial characteristics of face-image after extraction process;The facial characteristics includes global feature and local feature;
According to the facial characteristics, it is based on cranium face Growth Model, identifies gender and the age of the user.
3. the LED night-light control method according to claim 2 to change colour according to face, which is characterized in that described to the face
Image is handled, and is specifically included:
Remove the background in the face-image;
The face-image is normalized;
The face-image is divided into six sub-regions.
4. the LED night-light control method according to claim 1 to change colour according to face, which is characterized in that described according to the happiness
Good color determines tricolor color matching proportionality coefficient, and calculation formula is as follows:
L=C1R+C2G+C3B
Wherein L is hobby 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.
5. a kind of LED night-light control system to change colour according to face, which is characterized in that the system comprises:
Acquisition module, for acquiring the face-image of user;
Identification module, for identifying gender and the age of the user according to the face-image;
Color determination module, for determining hobby color in color database according to the gender and the age;It is shown
Color in color database is corresponding with gender and age;
Proportionality coefficient determining module, for determining tricolor color matching proportionality coefficient according to the hobby color;
Control module changes colour for controlling LED light according to the proportionality coefficient.
6. the LED night-light control system according to claim 1 to change colour according to face, which is characterized in that the identification module tool
Body includes:
Processing unit, for handling the face-image;
Extraction unit, the facial characteristics for the face-image after extraction process;The facial characteristics include global feature and
Local feature;
Recognition unit, for being based on cranium face Growth Model, identifying gender and the year of the user according to the facial characteristics
Age.
7. the LED night-light control system according to claim 6 to change colour according to face, which is characterized in that the processing unit tool
Body includes:
Subelement is removed, for removing the background in the face-image;
Subelement is normalized, for the face-image to be normalized;
Divide subelement, for the face-image to be divided into six sub-regions.
8. the LED night-light control system according to claim 1 to change colour according to face, which is characterized in that the proportionality coefficient is true
The calculation formula of cover half block is as follows:
L=C1R+C2G+C3B
Wherein L is hobby 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 |
---|---|---|---|
CN201811220845.6A CN109359600A (en) | 2018-10-19 | 2018-10-19 | A kind of LED night-light control method and system to change colour according to face |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811220845.6A CN109359600A (en) | 2018-10-19 | 2018-10-19 | A kind of LED night-light control method and system to change colour according to face |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109359600A true CN109359600A (en) | 2019-02-19 |
Family
ID=65345954
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811220845.6A Pending CN109359600A (en) | 2018-10-19 | 2018-10-19 | A kind of LED night-light control method and system to change colour according to face |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109359600A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111246638A (en) * | 2020-01-23 | 2020-06-05 | 深圳市大拿科技有限公司 | Intelligent lamp control method and related device |
CN111315071A (en) * | 2020-02-28 | 2020-06-19 | 广东精装照明有限公司 | LED intelligent control method and system |
CN111629495A (en) * | 2020-05-26 | 2020-09-04 | 顾晓东 | Digital multifunctional exhibition hall intelligent control system based on big data |
CN112566304A (en) * | 2019-09-25 | 2021-03-26 | 伊塔瑞士钟表制造股份有限公司 | System and method for managing the illumination of a region of interest comprising at least one object susceptible to being manipulated by a user |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104582187A (en) * | 2015-01-14 | 2015-04-29 | 山东大学 | Recording and lamplight control system and method based on face recognition and facial expression recognition |
CN106594610A (en) * | 2016-12-15 | 2017-04-26 | 上海亚明照明有限公司 | Intelligent light with image identification function and street light |
CN107423696A (en) * | 2017-07-13 | 2017-12-01 | 重庆凯泽科技股份有限公司 | Face identification method and system |
-
2018
- 2018-10-19 CN CN201811220845.6A patent/CN109359600A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104582187A (en) * | 2015-01-14 | 2015-04-29 | 山东大学 | Recording and lamplight control system and method based on face recognition and facial expression recognition |
CN106594610A (en) * | 2016-12-15 | 2017-04-26 | 上海亚明照明有限公司 | Intelligent light with image identification function and street light |
CN107423696A (en) * | 2017-07-13 | 2017-12-01 | 重庆凯泽科技股份有限公司 | Face identification method and system |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112566304A (en) * | 2019-09-25 | 2021-03-26 | 伊塔瑞士钟表制造股份有限公司 | System and method for managing the illumination of a region of interest comprising at least one object susceptible to being manipulated by a user |
CN112566304B (en) * | 2019-09-25 | 2024-01-12 | 伊塔瑞士钟表制造股份有限公司 | System and method for managing illumination of a region of interest comprising at least one object susceptible to manipulation by a user |
CN111246638A (en) * | 2020-01-23 | 2020-06-05 | 深圳市大拿科技有限公司 | Intelligent lamp control method and related device |
CN111315071A (en) * | 2020-02-28 | 2020-06-19 | 广东精装照明有限公司 | LED intelligent control method and system |
CN111315071B (en) * | 2020-02-28 | 2021-04-27 | 广东精装照明有限公司 | LED intelligent control method and system |
CN111629495A (en) * | 2020-05-26 | 2020-09-04 | 顾晓东 | Digital multifunctional exhibition hall intelligent control system based on big data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109359600A (en) | A kind of LED night-light control method and system to change colour according to face | |
CN102693532B (en) | The automatic local directed complete set of image shadow and highlight | |
US11323676B2 (en) | Image white balance processing system and method | |
CN103310187B (en) | Face-image based on facial quality analysis is prioritized | |
CN104360796B (en) | The method, apparatus and electronic equipment of color are applied on an electronic device | |
CN109587895A (en) | A kind of LED desk lamp colour temperature and automatic brightness adjustment method, system and device | |
CN104768309A (en) | Method and device for regulating lamplight according to emotion of user | |
CN105848354B (en) | A kind of shading process being used in intelligent illuminating system and system | |
CN104486862B (en) | Illumination control method, apparatus and system | |
CN103344563A (en) | Vision light source detection apparatus for self-adaptive dimming color-adjusting machine and method | |
TWI551150B (en) | Devices and methods for automated self-training of auto white balance in electronic cameras | |
CN111612839B (en) | Color lamp position identification method, system, device and storage medium | |
CN109460715A (en) | A kind of traffic lights automatic identification implementation method based on machine learning | |
CN106782385B (en) | A kind of light-dimming method and its device for wearing display equipment | |
CN101383912B (en) | Color intelligent automatic regulating method for television video taking | |
CN104113690A (en) | Method for photo-taking correction based on intelligent lamp | |
CN115529697A (en) | Intelligent lighting control system based on distributed management | |
CN105030200A (en) | Traditional Chinese medicine tongue body and tongue coating separation method based on green monochromatic source | |
CN106782367B (en) | Liquid crystal-spliced screen shows method and system | |
CN105979236A (en) | Image quality adjustment method and device | |
CN111402409A (en) | Exhibition hall design illumination condition model system | |
CN108391356A (en) | A kind of Intelligent House Light control system | |
CN202979356U (en) | Store lighting control system | |
CN105471500B (en) | A kind of LED array using colour temperature modulation is imaged positioning system | |
CN116647960A (en) | Stage lighting regulation and control system based on thing networking |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190219 |
|
RJ01 | Rejection of invention patent application after publication |