A kind of ceiling light illuminates autocontrol method
Technical field
The present invention relates to a kind of ceiling light illuminates autocontrol method, belong to light source technical field of automatic control.
Background technology
Lamp is a kind of common illuminations, with the continuous development of technology and the continuous improvement of living standard, lamp
There is earth-shaking change, whether outer shape, or function, the design of lamp is all being constantly modified, continuous quilt
Innovation, to meet people to use, to requirement attractive in appearance, and the continuous improvement that this trend requires with people is also continuing
, such as the patent No.:201220177191.5, disclose a kind of ceiling lighting, including ceiling lighting body and ceiling frame, described
Ceiling sets up the installation portion being equipped with for being installed on described installation site, and the side bending to described ceiling lighting body, and
For the kink being connected with described ceiling lighting body;The ceiling lighting of technique scheme design, will be inhaled by installation portion
Upper frame is installed on installation site, then connects the kink of ceiling lighting body and ceiling frame, that is, achieves the peace of ceiling lighting
Dress, compared with prior art, need not remove the light fixture cover of ceiling lighting in the installation process of ceiling lighting, simplify lamp affixed to the ceiling
The installation of tool;Meanwhile, this ceiling lighting need not arrange mounting flange, and that is, the profile of ceiling lighting body need not change so that inhaling
The transport of washer luminaire is more convenient, and above prior art is directed to transport and the installation just Curve guide impeller of ceiling lighting, allows reality to answer
With convenient.
Also has number of patent application:201210217170.6, disclose a kind of ceiling lamp attachment structure, for hanging ceiling lamp
It is contained on attachment, the periphery of ceiling lamp is provided with flange, and ceiling lamp attachment structure includes at least two fixtures, is evenly spaced in
The surrounding of ceiling lamp;Backing pin, along itself being in axial sliding connection in fixture, its one end is away from attachment one for gear in flange
The screens end of side, and end face is inclined-plane;And elastic component, it is arranged between fixture and backing pin, for limiting backing pin to away from hanging
Slide in the direction of ceiling light;First fixture is fixed on attachment, then by ceiling lamp upwardly, using the edge of ceiling lamp
With the cooperation on inclined-plane, backing pin is made to move to the direction away from ceiling lamp;When flange moves to the top of backing pin, in elastic component
Under elastic force effect, screens end moves to the lower section of flange, completes the installation of ceiling lamp;When pulling down ceiling lamp, make backing pin to away from
The direction of ceiling lamp is moved, and staggering flange in screens end, can take off ceiling lamp, easy installation and removal is quick.Technique scheme
Installation for pendent lamp proposes specific attachment structure, for improving the installation of existing pendent lamp, allows actual installation process more
Convenient.
Moreover, the patent No.:201210253729.0, disclose a kind of LED lamp affixed to the ceiling, including lamp affixed to the ceiling light fixture, inhale
Ceiling light light fixture includes ceiling lamp pedestal and radiator, and ceiling lamp pedestal is provided with bulb installation interface, and bulb installation interface sets
There is radiator;The centrally disposed installation interface of bottom radiator (AZM) is fixedly mounting LED bulb;This LED lamp affixed to the ceiling heat-sinking capability
By force, structure is simple, low cost, installation, use, safeguard and quickly cheaply facilitate it is achieved that the bulb of LED lamp affixed to the ceiling, light fixture and photograph
Bright control independence in production and use for the product, significantly reduces production link, achieves the mass of production, is conducive to
The application of LED energy-saving illumination product and industrial scale;Above technical scheme is the peace of the radiating by light source and overall lamp affixed to the ceiling
It is filled with handss, improve design so that light source heat radiation ability is higher, overall structure is easier for installation.
Make a general survey of above prior art it can be seen that the improvement that prior art is directed to lamp really covers each face of each side of lamp,
But during actual use, still can find some problems, the design of some impersonalities, update with lamp
With design, the brightness of light source can be conditioned in real work, controls the change of its brightness, but for this function, existing
There is the lamp on market mostly also to rest on the artificial manual work stage, that is, need artificially to be gone by rotation according to the subjective demand of oneself
The brightness that button etc. is directed to light source is adjusted, and is not carried out automatization, and, in actual use, the brightness of light source be mostly with
The higher the better for brightness, and brightness height can improve illumination efficiency, but for some situations, with regard to impersonalityization design, such as pushes up
Lamp, for being illuminated from the top down, with the size in space, people select the light source of different capacity, to adapt to the photograph in space
Bright, but in actual applications, if someone comes back, strong light-source brightness will cause to the eyes of people to stimulate, and allows people to feel
To discomfort, but in this case, existing ceiling light but can not solve, the automatically controlling of impersonality.
Content of the invention
For above-mentioned technical problem, the technical problem to be solved is to provide a kind of work for existing ceiling light
Mode is redesigned, and can realize Intelligent Measurement for below ceiling light, and can be directed to ceiling light realization according to testing result
The ceiling light illumination autocontrol method of Based Intelligent Control.
The present invention employs the following technical solutions to solve above-mentioned technical problem:The present invention devises a kind of ceiling light illumination certainly
Flowing control method, wherein, ceiling light include light source and coupled connect electric control switch, light source is luminance adjustable light source, described
The action that method connects electric control switch for each manual operation carries out following steps:
The action that step 001. connects electric control switch for manual operation is judged, if manual operation connects electric control switch
Control light source works, then enter step 002, if manual operation connects electric control switch and closes light source, terminate;
Step 002. carries out image capturing straight down by light source position, obtains detection image, enters step 003;
Step 003. detection judges to whether there is facial image in detection image, is then to enter step 004, otherwise enters step
Rapid 011;
Step 004. extracts each facial image in this detection image, and calculates each facial image upper eyelid of acquisition respectively
Cover the ratio of pupil, enter step 005;
Step 005. covers the ratio of pupil according to each facial image upper eyelid, calculates and obtains eyelid in this detection image
Cover pupil average proportions a, enter step 006;
Step 006. judges that in this detection image, eyelid covers whether pupil average proportions a are equal to 0, is then to enter step
011, otherwise enter step 007;
Step 007. judges that in this detection image, eyelid covers whether pupil average proportions a are equal to 100%, is then to enter step
Rapid 008;Otherwise enter step 009;
Step 008. detection judges whether light source works, and is then to control to close light source, and return to step 002, otherwise keeps
Light source closed mode, and return to step 002;
Step 009. detection judges whether light source works, and is then to keep light source works, and enters step 010, otherwise controls
Light source works, and enter step 010;
It is average that step 010. detection judges whether the brightness percentage ratio of light source is equal to eyelid covering pupil in this detection image
Ratio a, is to control light source to keep this brightness, and return to step 002, otherwise covers pupil according to eyelid in this detection image and puts down
All ratios a, the brightness percentage ratio adjusting light source is equal to eyelid covering pupil average proportions a in this detection image, and return to step
002;
Step 011. detection judges whether light source works, and is then to keep light source works, and enters step 012, otherwise controls
Light source works, and enter step 012;
Step 012. detection judges whether the brightness percentage ratio of light source is equal to 100%, is the brightness percentage then keeping light source
Ratio is equal to 100%, and return to step 002, and the brightness percentage ratio otherwise adjusting light source is equal to 100%, and return to step 002.
As a preferred technical solution of the present invention:In described step 002, for the detection image of described acquisition, first
Image denoising process is carried out to detection image, subsequently into described step 003.
As a preferred technical solution of the present invention:Described image denoising is image wavelet domain filter method.
As a preferred technical solution of the present invention:In described step 002, by being arranged on the image of ceiling light lower surface
Acquisition equipment, carries out image capturing straight down, obtains detection image.
As a preferred technical solution of the present invention:Described image acquisition equipment is KF-007AV micro-camera device.
A kind of ceiling light illumination autocontrol method of the present invention adopts above technical scheme compared with prior art, has
Following technique effect:
(1) the ceiling light illumination autocontrol method of present invention design, the control mode for existing ceiling light is set again
Meter it is achieved that Intelligent Measurement and Based Intelligent Control, by realizing Intelligent Measurement for below ceiling light, judge whether people face upward to
On, and continue to detect the ratio that eyelid covers pupil, the work being thus directed towards light source is realized real-time intelligent and adjusted so that ceiling light
Brightness of illumination can automatically adjust with the impression of human eye, and whole control method has fully taken into account use in the design process
The eye comfort of person, embodies the design concept of hommization;
(2), in the ceiling light illumination autocontrol method of present invention design, for the detection image obtaining, first figure is carried out to it
As denoising, then it is carried out with other process again, can greatly improve the later stage is treated in journey for detection image
Discrimination and work efficiency;
(3), in the ceiling light illumination autocontrol method of present invention design, for the acquisition of detection image, it is designed with arranging
Carry out image capturing straight down in the image capture apparatus of ceiling light lower surface, realize convenient, and be directed to image capturing
Device is designed with micro-camera device, the volume of effective control design device, realizing Intelligent Measurement, before Based Intelligent Control
Put, effectively maintain the surface structure of original ceiling light.
Specific embodiment
Specific embodiment below for the present invention is described in further detail.
A kind of ceiling light illumination autocontrol method of present invention design, wherein, ceiling light includes light source and coupled connecing
Electric control switch, light source is luminance adjustable light source, and the action that methods described connects electric control switch for each manual operation is carried out
Following steps:
The action that step 001. connects electric control switch for manual operation is judged, if manual operation connects electric control switch
Control light source works, then enter step 002, if manual operation connects electric control switch and closes light source, terminate;
Step 002. carries out image capturing straight down by light source position, obtains detection image, enters step 003;
Step 003. detection judges to whether there is facial image in detection image, is then to enter step 004, otherwise enters step
Rapid 011;
Step 004. extracts each facial image in this detection image, and calculates each facial image upper eyelid of acquisition respectively
Cover the ratio of pupil, enter step 005;
Step 005. covers the ratio of pupil according to each facial image upper eyelid, calculates and obtains eyelid in this detection image
Cover pupil average proportions a, enter step 006;
Step 006. judges that in this detection image, eyelid covers whether pupil average proportions a are equal to 0, is then to enter step
011, otherwise enter step 007;
Step 007. judges that in this detection image, eyelid covers whether pupil average proportions a are equal to 100%, is then to enter step
Rapid 008;Otherwise enter step 009;
Step 008. detection judges whether light source works, and is then to control to close light source, and return to step 002, otherwise keeps
Light source closed mode, and return to step 002;
Step 009. detection judges whether light source works, and is then to keep light source works, and enters step 010, otherwise controls
Light source works, and enter step 010;
It is average that step 010. detection judges whether the brightness percentage ratio of light source is equal to eyelid covering pupil in this detection image
Ratio a, is to control light source to keep this brightness, and return to step 002, otherwise covers pupil according to eyelid in this detection image and puts down
All ratios a, the brightness percentage ratio adjusting light source is equal to eyelid covering pupil average proportions a in this detection image, and return to step
002;
Step 011. detection judges whether light source works, and is then to keep light source works, and enters step 012, otherwise controls
Light source works, and enter step 012;
Step 012. detection judges whether the brightness percentage ratio of light source is equal to 100%, is the brightness percentage then keeping light source
Ratio is equal to 100%, and return to step 002, and the brightness percentage ratio otherwise adjusting light source is equal to 100%, and return to step 002.
The ceiling light illumination autocontrol method of technique scheme design, the control mode for existing ceiling light is carried out again
Design, it is achieved that Intelligent Measurement and Based Intelligent Control, by realizing Intelligent Measurement for below ceiling light, judges whether that people faces upward
Upwards, and continue to detect the ratio that eyelid covers pupil, the work being thus directed towards light source is realized real-time intelligent and is adjusted so that ceiling light
Brightness of illumination can automatically adjust with the impression of human eye, whole control method has fully taken into account in the design process and has made
The eye comfort of user, embodies the design concept of hommization.
Illuminate on the basis of autocontrol method technical scheme in above-mentioned design ceiling light, the present invention also devises further
Following optimal technical scheme:In described step 002, for the detection image of described acquisition, first image is carried out to detection image and go
Make an uproar process, subsequently into described step 003, for the detection image obtaining, first image denoising process is carried out to it, then right again
It carries out other process, can greatly improve discrimination and the work efficiency that the later stage is treated in journey for detection image,
And in practical application, image denoising processes and can be designed with image wavelet domain filter method;Moreover, described step 002
In, by being arranged on the image capture apparatus of ceiling light lower surface, carry out image capturing straight down, obtain detection image, realize
Convenient, and be designed with micro-camera device for image capture apparatus, the effective control volume of design device,
Realize Intelligent Measurement, on the premise of Based Intelligent Control, effectively maintain the surface structure of original ceiling light, in practical application, image is caught
Obtain device and be designed with KF-007AV micro-camera device.
In actual applications, ceiling light includes light source and coupled connecing to present invention design ceiling light illumination autocontrol method
Electric control switch, light source is luminance adjustable light source, and the action that methods described connects electric control switch for each manual operation is carried out
Following operating process, that is, manual operation connects electric control switch and all can trigger operation performed below every time, specifically includes following steps:
The action that step 001. connects electric control switch for manual operation is judged, if manual operation connects electric control switch
Control light source works, then enter step 002, if manual operation connects electric control switch and closes light source, terminate;
Step 002. by being arranged on the KF-007AV micro-camera device of ceiling light lower surface, by light source position straight down
Carry out image capturing, obtain detection image, first image denoising process is carried out to detection image using image wavelet domain filter method, so
After enter described step 003;
Step 003. detection judges to whether there is facial image in detection image, is then to enter step 004, otherwise enters step
Rapid 011;
Step 004. extracts each facial image in this detection image, and calculates each facial image upper eyelid of acquisition respectively
Cover the ratio of pupil, enter step 005;
Step 005. covers the ratio of pupil according to each facial image upper eyelid, calculates and obtains eyelid in this detection image
Cover pupil average proportions a, enter step 006;
Step 006. judges that in this detection image, eyelid covers whether pupil average proportions a are equal to 0, is then to enter step
011, otherwise enter step 007;
Step 007. judges that in this detection image, eyelid covers whether pupil average proportions a are equal to 100%, is then to enter step
Rapid 008;Otherwise enter step 009;
Step 008. detection judges whether light source works, and is then to control to close light source, and return to step 002, otherwise keeps
Light source closed mode, and return to step 002;
Step 009. detection judges whether light source works, and is then to keep light source works, and enters step 010, otherwise controls
Light source works, and enter step 010;
It is average that step 010. detection judges whether the brightness percentage ratio of light source is equal to eyelid covering pupil in this detection image
Ratio a, is to control light source to keep this brightness, and return to step 002, otherwise covers pupil according to eyelid in this detection image and puts down
All ratios a, the brightness percentage ratio adjusting light source is equal to eyelid covering pupil average proportions a in this detection image, and return to step
002;
Step 011. detection judges whether light source works, and is then to keep light source works, and enters step 012, otherwise controls
Light source works, and enter step 012;
Step 012. detection judges whether the brightness percentage ratio of light source is equal to 100%, is the brightness percentage then keeping light source
Ratio is equal to 100%, and return to step 002, and the brightness percentage ratio otherwise adjusting light source is equal to 100%, and return to step 002.
In above-mentioned execution step, when eyelid covers pupil average proportions a equal to 0 in this detection image, represent and face upward upwards
The eyelid of people be not covered with pupil, the brightness for now ceiling light light source can accept, then do not need to turn down light-source brightness,
Do not need to close light source;When eyelid covers pupil average proportions a equal to 100% in this detection image, represent the people facing upward upwards
All eyes are closed, the brightness for now ceiling light light source can not accept completely, then needed to close light source;When this detection image
When middle eyelid covering pupil average proportions a are more than 0 and are less than 100%, represent that the people facing upward upwards has the feelings slightly closed one's eyes
Condition, the brightness for now ceiling light light source does not slightly feel well, then need to be adjusted for the brightness of light source, in order to adapt to people
The impression of eye.
Above-mentioned be explained in detail for embodiments of the present invention, but the present invention is not limited to above-mentioned embodiment,
In the ken that those of ordinary skill in the art possess, can also make each on the premise of without departing from present inventive concept
Plant change.