Energy-saving-based desk lamp starting system
Technical Field
The invention relates to the technical field of table lamps, in particular to an energy-saving table lamp starting system.
Background
At present, desk lamps are necessary daily necessities for thousands of households, and commonly used desk lamps comprise incandescent lamps, fluorescent lamps and LED lamps. Especially to work and student crowd, can place the desk lamp at the table usually, in actual life, often the user can appear sometimes in work or study process because the user lies prone on the table and sleeps and forget to close the desk lamp, and the desk lamp still is in luminous state to the electric power resource has been wasted. Namely, a technical means capable of automatically turning off the light of the desk lamp when a user falls asleep is lacked in the prior art.
Therefore, the present inventors have felt the necessity of improvement of the above problems, and have actively studied and improved a method for turning on a desk lamp based on energy saving and a system thereof based on many years of creative design and professional manufacturing experience in the related art, and finally developed the present invention in consideration of each condition.
Disclosure of Invention
In view of the above situation, in order to overcome the shortcomings in the prior art, embodiments of the present invention provide a method and a system for turning on a desk lamp based on energy saving, which can effectively solve the problems related to the background art.
The embodiment of the invention adopts the following technical scheme:
the utility model provides a desk lamp opening method based on energy-conservation, includes desk lamp and with the glasses that the desk lamp wireless connection is used for wearing on user's eyes, the desk lamp includes lighting control module, be provided with camera module on the glasses, the method includes the step:
through camera module monitoring user state specifically is: the method comprises the steps of taking a real-time image of eyes of a user, comparing the real-time image with a preset image library stored in a database, wherein the preset image library comprises at least one picture with closed eyes of the user, and determining that the user is in a sleep state when the real-time image is compared with the preset image library;
when the user is in the sleep state, the camera module generates corresponding sleep state information and transmits the sleep state information to the illumination control module of the desk lamp;
and the lighting control module controls the light to be turned off according to the sleep state information.
As a preferred mode of the present invention, after comparing that the real-time image matches the preset gallery, the method further includes:
and judging whether the real-time eye image of the user is continuously and stably matched with the preset image library within preset time, and if so, continuing to execute the steps.
As a preferred aspect of the present invention, the table lamp further includes a light sensor, and the method further includes:
when the real-time image is not matched with the preset image library through comparison, determining that the user is in a clear state;
when the user is determined to be in a waking state, the camera module generates corresponding waking state information and transmits the waking state information to the light sensor of the desk lamp;
the light sensor detects whether the nearby environment is a dark environment, and if so, starting information is transmitted to the illumination control module;
and the lighting control module controls the light to be turned on according to the starting information.
The utility model provides a system is opened to desk lamp based on energy-conservation, including the desk lamp and with desk lamp wireless connection's the glasses that are used for wearing in user's eyes, the desk lamp includes lighting control module, be provided with camera module on the glasses, camera module is used for monitoring user's state, specifically is: the method comprises the steps of taking a real-time image of eyes of a user, comparing the real-time image with a preset image library stored in a database, determining that the user is in a sleep state when the real-time image is matched with the preset image library through comparison, and generating corresponding sleep state information by a camera module and transmitting the sleep state information to a lighting control module of the desk lamp when the sleep state of the user is determined; the illumination control module is used for controlling the light to be turned off according to the sleep state information.
As a preferable mode of the present invention, the camera module is further configured to determine whether the real-time image of the eyes of the user is continuously and stably matched with the preset image library within a preset time.
As a preferred mode of the present invention, the desk lamp further includes a light sensor, the camera module is further configured to determine that the user is in a waking state when the real-time image is compared to be inconsistent with the preset gallery, and when the user is determined to be in the waking state, the camera module generates corresponding waking state information and transmits the waking state information to the light sensor of the desk lamp; the light sensor is used for detecting whether the nearby environment is a dark environment or not, and if so, transmitting starting information to the illumination control module; the lighting control module is also used for controlling the light to be turned on according to the starting information.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: the user's accessible is worn glasses so that the camera module monitoring user state that sets up on the glasses, control desk lamp light and close when monitoring out that the user is in sleep state, when monitoring out that the user is in waking state, if the environment of locating is the dark surrounds, then close desk lamp light, so can effectively close the desk lamp when the user is asleep, when being the dark surrounds in user waking and the environment, control desk lamp light is opened, thereby make opening of desk lamp light accord with user's actual demand more, and saved power resources.
Drawings
While the drawings for illustrating the embodiments of the present invention will be described briefly in order to make the above and other objects, features and advantages of the present invention comprehensible, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained by those skilled in the art without any loss of inventive faculty.
Fig. 1 is a schematic flow chart of a table lamp turning-on method based on energy saving provided by the present invention.
Fig. 2 is a schematic diagram of a table lamp turning-on system module based on energy saving provided by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, belong to the scope of the present invention.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart of a table lamp turning-on method based on energy saving according to the present invention. Specifically, the present embodiment provides a method for turning on a desk lamp based on energy saving, including: the desk lamp comprises a lighting control module, and the glasses are wirelessly connected with the desk lamp and used for being worn on the eyes of a user, wherein a camera module is arranged on the glasses, and the method comprises the following steps:
101: through camera module monitoring user state specifically is: the method comprises the steps of taking a real-time image of eyes of a user, comparing the real-time image with a preset image library stored in a database, wherein the preset image library comprises at least one picture with closed eyes of the user, and determining that the user is in a sleep state when the real-time image is compared with the preset image library;
102: when the user is in the sleep state, the camera module generates corresponding sleep state information and transmits the sleep state information to the illumination control module of the desk lamp;
103: and the lighting control module controls the light to be turned off according to the sleep state information.
Wherein, after the real-time image is compared to be in accordance with the preset gallery, the method further comprises:
and judging whether the real-time eye image of the user is continuously and stably matched with the preset image library within preset time, and if so, continuing to execute the steps.
The desk lamp further comprises a light sensor, and the method further comprises:
when the real-time image is not matched with the preset image library through comparison, determining that the user is in a clear state;
when the user is determined to be in a waking state, the camera module generates corresponding waking state information and transmits the waking state information to the light sensor of the desk lamp;
the light sensor detects whether the nearby environment is a dark environment, and if so, starting information is transmitted to the illumination control module;
and the lighting control module controls the light to be turned on according to the starting information.
Wherein the desk lamp further comprises a light sensor, the method further comprising:
when the real-time image is not matched with the preset image library through comparison, determining that the user is in a clear state;
when the user is determined to be in a waking state, the camera module generates corresponding waking state information and transmits the waking state information to the light sensor of the desk lamp;
the light sensor detects whether the nearby environment is a dark environment, and if so, starting information is transmitted to the illumination control module;
and the lighting control module controls the light to be turned on according to the starting information.
Example II
Referring to fig. 2, fig. 2 is a schematic diagram of a table lamp turning-on system module based on energy saving provided by the present invention. Specifically, this embodiment provides a system is opened to desk lamp based on energy-conservation, including desk lamp 1 and with 1 wireless connection's of desk lamp is used for wearing glasses 2 on user's eyes, desk lamp 1 includes lighting control module 3, be provided with camera module 4 on glasses 2, camera module 4 is used for monitoring user's state, specifically is: the method comprises the steps of taking a real-time image of eyes of a user, comparing the real-time image with a preset image library stored in a database, determining that the user is in a sleep state when the real-time image is compared with the preset image library, and generating corresponding sleep state information by a camera module 4 and transmitting the sleep state information to an illumination control module 3 of a desk lamp 1 when the sleep state of the user is determined; and the illumination control module 3 is used for controlling the light to be turned off according to the sleep state information.
The camera module 4 is further configured to determine whether the real-time eye image of the user is continuously and stably combined with the preset image library within a preset time.
The desk lamp further comprises a light sensor 5, the camera module 4 is further used for determining that the user is in a waking state when the real-time image is compared to be inconsistent with the preset image library, and when the user is determined to be in the waking state, the camera module 4 generates corresponding waking state information and transmits the waking state information to the light sensor 5 of the desk lamp 1; the light sensor 5 is configured to detect whether a nearby environment is a dark environment, and transmit enabling information to the lighting control module 3 if the nearby environment is the dark environment; the lighting control module 3 is also used for controlling the light to be turned on according to the enabling information.
It should be understood that, in the second embodiment, the specific implementation process of each module described above may correspond to the description of the above method embodiment (the first embodiment), and is not described in detail here.
The system provided in the second embodiment is only illustrated by dividing the functional modules, and in practical applications, the above-mentioned functions may be distributed by different functional modules according to needs, that is, the internal structure of the system is divided into different functional modules to complete all or part of the above-described functions.
The invention can realize the following advantages:
by means of the invention, a user can wear the glasses to enable the camera module arranged on the glasses to monitor the state of the user, when the user is monitored to be in a sleep state, the lamp light of the desk lamp is controlled to be turned off, when the user is monitored to be in a waking state, if the environment is a dark environment, the lamp light of the desk lamp is controlled to be turned off, so that the desk lamp can be effectively turned off when the user is asleep, and when the user is waking and the environment is a dark environment, the lamp light of the desk lamp is controlled to be turned on, so that the turning-on of the lamp light of the desk lamp can better meet the actual requirements.