A kind of light adjusting method, device, terminal and storage medium
Technical field
The present embodiments relate to smart home technology more particularly to a kind of light adjusting method, device, terminal and storages
Medium.
Background technique
Intelligent home control system is using house as platform, and household electric appliances and household appliance are main control object, are utilized
Comprehensive wiring technology, network communication technology, security precautions technology, automatic control technology, audio and video technology are related by home life
Facility efficiently integrated, construct the Control management system of efficient housing facilities and family's schedule affairs, promote household intelligence
Can, it is safe and convenient, comfortable, and realize the comprehensive intelligent household network control system platform of environmental protection and energy saving.Intelligent housing system
System is smart home core, is the basis that Intelligent housing function is realized.
And subsystem of the Intelligent household light system as smart home, critically important ground is occupied in smart home system
Position, lighting system in the prior art only focus on the illumination functions of light, and light is not utilized rationally, cause resource unrestrained
Take.
Summary of the invention
The embodiment of the present invention provides a kind of light adjusting method, device, terminal and storage medium, solves in the prior art only
The problem of illumination functions of concern light, light is not rationally utilized, leads to the wasting of resources.
In a first aspect, the embodiment of the invention provides a kind of light adjusting methods, this method comprises:
When room personnel characteristics meet preset condition out, starting detects the personnel characteristics that enter the room;
When the personnel characteristics that enter the room are default Family characteristics, control light is first kind light;
When the personnel characteristics that enter the room are strange feature, control light is the second class light;Wherein, the room personnel out
Feature is the feature of the personnel to withdraw from a room, and the personnel characteristics that enter the room are the feature into the personnel in room.
Wherein, the room personnel characteristics out include at least: going out room personnel characteristics of image or out room personnel information of mobile terminal;
The personnel characteristics that enter the room include at least: entering the room personnel's characteristics of image or enters out room personnel's information of mobile terminal.
Further, described when room personnel characteristics meet preset condition out, starting detects the personnel characteristics that enter the room, comprising:
Room personnel characteristics of image out is matched with owner's characteristics of image in default family's characteristics of image;
When successful match, starting detects personnel's characteristics of image of entering the room.
Further, described when room personnel characteristics meet preset condition out, starting detects the personnel characteristics that enter the room, comprising:
It detects room personnel's information of mobile terminal, is default owner's letter in the corresponding owner's information of the information of mobile terminal
When breath, starting detects personnel's information of mobile terminal of entering the room.
Further, described when room personnel characteristics meet preset condition out, starting detects the personnel characteristics that enter the room, comprising:
The information of mobile terminal for detecting room personnel is default owner in the corresponding owner's information of the information of mobile terminal
When information, starting detects personnel's characteristics of image of entering the room.
Further, described when room personnel characteristics meet preset condition out, starting detects the personnel characteristics that enter the room, comprising:
Room personnel characteristics of image out is matched with owner's characteristics of image in default family's characteristics of image;
When successful match, starting detects personnel's information of mobile terminal of entering the room.
It is further, described that when the personnel characteristics that enter the room are default Family characteristics, control light is first kind light,
Include:
When personnel's characteristics of image of entering the room is the child image feature in default family's characteristics of image, control light is the first kind
Cheerful and light-hearted light in light;
When personnel's characteristics of image of entering the room is adult image's feature in default family's characteristics of image, control light is the
Warm light in a kind of light.
Second aspect, the embodiment of the invention also provides a kind of light regulating device, which includes:
It enters the room personnel characteristics' detection module, for when room personnel characteristics meet preset condition out, starting detection is entered the room people
Member's feature;
First kind lighting control module, for when the personnel characteristics that enter the room are default Family characteristics, control light to be
First kind light;
Second class lighting control module possesses when the personnel characteristics that enter the room are strange feature, and control light is second
Class light;Wherein, the room personnel characteristics out are the feature of the personnel to withdraw from a room, and the personnel characteristics that enter the room are into room
Personnel feature.
The third aspect, the embodiment of the invention also provides a kind of terminal, which includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realize any embodiment of that present invention provide it is any as described in light adjusting method.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer
Program, when which is executed by processor realize any embodiment of that present invention provide it is any as described in light adjusting method.
For the embodiment of the present invention when room personnel characteristics meet preset condition out, starting detects the personnel characteristics that enter the room, and is entering the room
When personnel characteristics are default Family characteristics, control light is first kind light, when the personnel characteristics that enter the room are strange feature, control
Light is the second class light, and light is different with the difference for the personnel for entering room, is realized when household enters room with light
It reminds, other people in room is facilitated to know that household goes home, light can also illuminate the road that household enters room, improve household and enter
The comfort level in room;And it realizes that stranger enters the light early warning in room, gives stranger using light to deter, guarantee house
Front yard safety.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing does one and simply introduces, it should be apparent that, drawings in the following description are some embodiments of the invention, for this
For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others
Attached drawing.
Fig. 1 is a kind of flow diagram for light adjusting method that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram of light regulating device provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for terminal that the embodiment of the present invention three provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention
Figure, clearly and completely describes technical solution of the present invention by embodiment, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is a kind of flow chart for light adjusting method that the embodiment of the present invention one provides.The technical solution of the present embodiment
It can be adapted for the case where indoor light is adjusted.This method can by a kind of light regulating device provided in an embodiment of the present invention Lai
It executes, which can be realized by the way of software and/or hardware, and be configured at intelligent terminal, such as mobile phone, tablet computer
Or it is applied in computer.This method specifically includes following operation:
S110, when room personnel characteristics meet preset condition out, starting detection is entered the room personnel characteristics.
Wherein, the room personnel characteristics out include at least: going out room personnel characteristics of image or out room personnel information of mobile terminal;
The personnel characteristics that enter the room include at least: entering the room personnel's characteristics of image or enters out room personnel's information of mobile terminal.Room personnel are special out
Levying can be identical with the personnel characteristics that enter the room, can not also be identical, improves detection flexibility ratio.
For going out room personnel characteristics and the personnel characteristics that enter the room are characteristics of image: going out room personnel is the personnel to withdraw from a room,
Specifically judge whether personnel are to withdraw from a room to determine according to the image at the room door that camera obtains, camera shooting
Angle can be towards room door, and detecting personage in the image got is to withdraw from a room, then further detects the character image
It whether is owner's image, when being, starting detection enters the feature of the personnel in room.Specifically, characteristics of image can be face
Image.
Further, described when room personnel characteristics meet preset condition out, starting detects the personnel characteristics that enter the room, comprising:
Room personnel characteristics of image out is matched with owner's characteristics of image in default family's characteristics of image;When matching at
When function, starting detects personnel's characteristics of image of entering the room.
Default family's characteristics of image is house person image gathered in advance, and all house person images are added and are marked
Label, are set as owner's image for male owner and/or the hostess, child are added and is labeled as household children, old man is added label
For family old man, the classification to house person image is realized by addition label, to guarantee the corresponding kinsfolk of owner's image
When staying out, the entrance of strange personnel can be deterred by adjusting light, improve household safe coefficient.
Illustratively, camera may be mounted at room door, and shooting angle is adjustable, detect room personnel characteristics
When, shooting angle is towards in room;When personnel characteristics are entered the room in detection, shooting angle is towards outside room, in order to shoot
To the front face image of room personnel out and the personnel that enter the room.Therefore, the course of work of camera may is that camera is shot always
Room personnel facial image out, detect room personnel's facial image whether based on everybody face image, and when being, camera adjustment is clapped
It takes the photograph angle shot and enters the room and personnel's facial image and the personnel facial image of entering the room is detected.
For going out room personnel characteristics and the personnel characteristics that enter the room are information of mobile terminal: obtaining all mobile terminals in room
Information, the information of mobile terminal for example can be the device model or Bluetooth signal of mobile terminal, can by information of mobile terminal
Uniquely to distinguish each mobile terminal.Each mobile terminal is corresponding with owner's information, adds label to all owner's information,
It is default master message by owner's information setting of male owner and/or the hostess, male owner is the father in family, and the hostess is
Mother in family, owner's information of other kinsfolks can add label according to family status, and family status for example can be with
It is child, grandfather and grandmother.
Further, described when room personnel characteristics meet preset condition out, starting detects the personnel characteristics that enter the room, comprising:
It detects room personnel's information of mobile terminal, is default owner's letter in the corresponding owner's information of the information of mobile terminal
When breath, starting detects personnel's information of mobile terminal of entering the room.
All information of mobile terminal in room are obtained, when detecting some information of mobile terminal not in the room, really
The fixed information of mobile terminal is room personnel information of mobile terminal, and the corresponding owner's letter of room personnel information of mobile terminal should be gone out by determining
Whether breath is that default master message is opened when the corresponding owner's information of room personnel information of mobile terminal is default master message out
Dynamic to detect personnel's information of mobile terminal of entering the room, determining information of mobile terminal as personnel's information of mobile terminal of entering the room can be lasting inspection
Information of mobile terminal increased in room is determined as personnel's information of mobile terminal of entering the room by the information of mobile terminal between ell.
It is described to go out for the personnel characteristics that enter the room are information of mobile terminal to go out room personnel characteristics as information of mobile terminal
When room personnel characteristics meet preset condition, starting detects the personnel characteristics that enter the room, comprising:
The information of mobile terminal for detecting room personnel is default owner in the corresponding owner's information of the information of mobile terminal
When information, starting detects personnel's characteristics of image of entering the room.
With go out room personnel characteristics be room personnel characteristics of image, the personnel characteristics that enter the room be information of mobile terminal for, it is described
When room personnel characteristics meet preset condition out, starting detects the personnel characteristics that enter the room, comprising:
Room personnel characteristics of image out is matched with owner's characteristics of image in default family's characteristics of image;When matching at
When function, starting detects personnel's information of mobile terminal of entering the room.
S120, when the personnel characteristics that enter the room are default Family characteristics, control light is first kind light.
When the personnel characteristics that enter the room are default Family characteristics, it is shown to be the case where household goes home, can control light at this time
For first kind light, first kind light can be warm, cheerful and light-hearted and sweet light, and this kind of light can be mobile light,
It follows the step for the personnel of entering the room to move, can also be on the road for entering room along light source is laid on both sides of the road, help house
People illuminates the road into room, the case where to prevent light from secretly colliding very much.It is alternatively possible to according to the people for entering room
The specific age of member, control show different light.Further, described when the personnel characteristics that enter the room are default Family characteristics
When, control light is first kind light, comprising:
When personnel's characteristics of image of entering the room is the child image feature in default family's characteristics of image, control light is the first kind
Cheerful and light-hearted light in light;When personnel's characteristics of image of entering the room is adult image's feature in default family's characteristics of image, control
Light processed is the warm light in first kind light.The corresponding light of kinsfolk for being achieved in all ages and classes is different, improves
User experience.
S130, when it is described enter the room personnel characteristics be strange feature when, control light be the second class light;Wherein, it is described go out
Room personnel characteristics are the feature of the personnel to withdraw from a room, and the personnel characteristics that enter the room are the feature into the personnel in room.
It determines and can be enter the room personnel characteristics and the default family spy that will test when the personnel characteristics that enter the room are strange feature
Sign is matched, and presetting in Family characteristics may include house person feature, can also include friend's feature, and relative's feature etc. is pre-
If acquaintance's feature can determine that the personnel characteristics that enter the room are strange when the personnel characteristics that enter the room are not present in default Family characteristics
Feature, controlling light at this time is the second class light, and the second class light can be the incandescent lamp that brightness is greater than preset luminance threshold
Light, and the light is to gather light, and gather round, to realize the effect of the deterrence to the personnel of entering the room, mentions with the personnel of entering the room
High household safe coefficient.
For the embodiment of the present invention when room personnel characteristics meet preset condition out, starting detects the personnel characteristics that enter the room, and is entering the room
When personnel characteristics are default Family characteristics, control light is first kind light, when the personnel characteristics that enter the room are strange feature, control
Light is the second class light, and light is different with the difference for the personnel for entering room, is realized when household enters room with light
It reminds, other people in room is facilitated to know that household goes home, light can also illuminate the road that household enters room, improve household and enter
The comfort level in room;And it realizes that stranger enters the light early warning in room, gives stranger using light to deter, guarantee house
Front yard safety.
Embodiment two
Fig. 2 is a kind of structural block diagram of light regulating device provided by Embodiment 2 of the present invention.The device is for executing
State a kind of light adjusting method provided by any embodiment.The device includes:
It enters the room personnel characteristics' detection module 210, for when room personnel characteristics meet preset condition out, starting detection to be entered the room
Personnel characteristics;
First kind lighting control module 220, for controlling light when the personnel characteristics that enter the room are default Family characteristics
For first kind light;
Second class lighting control module 230 possesses when the personnel characteristics that enter the room are strange feature, and control light is the
Two class light;Wherein, the room personnel characteristics out are the feature of the personnel to withdraw from a room, and the personnel characteristics that enter the room are into room
Between personnel feature.
For the embodiment of the present invention when room personnel characteristics meet preset condition out, starting detects the personnel characteristics that enter the room, and is entering the room
When personnel characteristics are default Family characteristics, control light is first kind light, when the personnel characteristics that enter the room are strange feature, control
Light is the second class light, and light is different with the difference for the personnel for entering room, is realized when household enters room with light
It reminds, other people in room is facilitated to know that household goes home, light can also illuminate the road that household enters room, improve household and enter
The comfort level in room;And it realizes that stranger enters the light early warning in room, gives stranger using light to deter, guarantee house
Front yard safety.
Wherein, the room personnel characteristics out include at least: going out room personnel characteristics of image or out room personnel information of mobile terminal;
The personnel characteristics that enter the room include at least: entering the room personnel's characteristics of image or enters out room personnel's information of mobile terminal.
Further, personnel characteristics' detection module 210 of entering the room, is specifically used for:
Room personnel characteristics of image out is matched with owner's characteristics of image in default family's characteristics of image;
When successful match, starting detects personnel's characteristics of image of entering the room.
Further, personnel characteristics' detection module 210 of entering the room, is specifically also used to:
It detects room personnel's information of mobile terminal, is default owner's letter in the corresponding owner's information of the information of mobile terminal
When breath, starting detects personnel's information of mobile terminal of entering the room.
Further, personnel characteristics' detection module 210 of entering the room, is specifically also used to:
The information of mobile terminal for detecting room personnel is default owner in the corresponding owner's information of the information of mobile terminal
When information, starting detects personnel's characteristics of image of entering the room.
Further, personnel characteristics' detection module 210 of entering the room, is specifically also used to:
Room personnel characteristics of image out is matched with owner's characteristics of image in default family's characteristics of image;
When successful match, starting detects personnel's information of mobile terminal of entering the room.
Further, the first kind lighting control module 220, is specifically used for:
When personnel's characteristics of image of entering the room is the child image feature in default family's characteristics of image, control light is the first kind
Cheerful and light-hearted light in light;
When personnel's characteristics of image of entering the room is adult image's feature in default family's characteristics of image, control light is the
Warm light in a kind of light.
Light regulating device provided by Embodiment 2 of the present invention improves the comfort level that household enters room, realizes stranger
Into the light early warning in room, guarantee household safe.
Light tune provided by any embodiment of the invention can be performed in light regulating device provided by the embodiment of the present invention
Section method has the corresponding functional module of execution method and beneficial effect.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for terminal that the embodiment of the present invention three provides, as shown in figure 3, the terminal includes place
Manage device 30, memory 31, input unit 32 and output device 33;The quantity of processor 30 can be one or more in terminal,
In Fig. 3 by taking a processor 30 as an example;Processor 30, memory 31, input unit 32 and output device 33 in terminal can be with
It is connected by bus or other modes, in Fig. 3 for being connected by bus.
Memory 31 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, if the corresponding program instruction/module of the light adjusting method in the embodiment of the present invention is (for example, the personnel spy that enters the room
Levy detection module 210, first kind lighting control module 220 and the second class lighting control module 230).Processor 30 passes through operation
Software program, instruction and the module being stored in memory 31, at the various function application and data of equipment
Reason, that is, realize above-mentioned light adjusting method.
Memory 31 mainly include storing program area and storage data area, wherein storing program area can storage program area,
Application program needed at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.In addition,
Memory 31 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a disk
Memory device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 31 can be wrapped further
The memory remotely located relative to processor 30 is included, these remote memories can pass through network connection to equipment.Above-mentioned net
The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 32 can be used for receiving the number or character information of input, and generate with the user setting of equipment and
The related key signals input of function control.Output device 33 may include that display screen etc. shows equipment.
Example IV
The embodiment of the present invention four also provides a kind of storage medium comprising computer executable instructions, and the computer can be held
Row instruction is used to execute a kind of light adjusting method when being executed by computer processor, this method comprises:
When room personnel characteristics meet preset condition out, starting detects the personnel characteristics that enter the room;
When the personnel characteristics that enter the room are default Family characteristics, control light is first kind light;
When the personnel characteristics that enter the room are strange feature, control light is the second class light;Wherein, the room personnel out
Feature is the feature of the personnel to withdraw from a room, and the personnel characteristics that enter the room are the feature into the personnel in room.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above, can also be performed light provided by any embodiment of the invention and adjusts
Relevant operation in method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.