CN112153780A - Method and system for eliminating lighting shadow based on user picture - Google Patents

Method and system for eliminating lighting shadow based on user picture Download PDF

Info

Publication number
CN112153780A
CN112153780A CN201910570672.9A CN201910570672A CN112153780A CN 112153780 A CN112153780 A CN 112153780A CN 201910570672 A CN201910570672 A CN 201910570672A CN 112153780 A CN112153780 A CN 112153780A
Authority
CN
China
Prior art keywords
user
light source
auxiliary light
picture
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910570672.9A
Other languages
Chinese (zh)
Other versions
CN112153780B (en
Inventor
徐杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201910570672.9A priority Critical patent/CN112153780B/en
Publication of CN112153780A publication Critical patent/CN112153780A/en
Application granted granted Critical
Publication of CN112153780B publication Critical patent/CN112153780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21VFUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
    • F21V21/00Supporting, suspending, or attaching arrangements for lighting devices; Hand grips
    • F21V21/14Adjustable mountings
    • F21V21/15Adjustable mountings specially adapted for power operation, e.g. by remote control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention provides a method and a system for eliminating lighting shadows based on user pictures, wherein the method comprises the following steps: acquiring a starting instruction, and starting a main lamp source according to the starting instruction; after a main light source is started, obtaining a user picture; when the shadow exists in the user picture, identifying the user direction according to the user picture; adjusting the auxiliary light source direction of the auxiliary light source according to the user direction; calculating the shadow angle of the shadow according to the user picture, and calculating the position and the brightness level of an auxiliary light source of the auxiliary light source according to the shadow angle; and adjusting the auxiliary light source according to the position of the auxiliary light source and the brightness level. The method analyzes the shadow area based on the user picture, and then utilizes the auxiliary light source to supplement light for the area with the shadow, thereby eliminating the lighting shadow.

Description

Method and system for eliminating lighting shadow based on user picture
Technical Field
The invention relates to the field of intelligent devices, in particular to a method and a system for eliminating lighting shadows based on user pictures.
Background
The desk lamp is a necessity of a user in a learning scene, but due to the fact that the body of the user or other objects are shielded, the problem that shadows exist more or less when the desk lamp is used is caused, and therefore the user often tends to lie low to see, and the eyesight of the user is affected.
The current solution is to detect the brightness information of the environment and then adjust the brightness information, such as enhancing the illumination intensity, to reduce the existence of the shadow to some extent. On one hand, increasing the light intensity can also adversely affect the eyesight of the user, and on the other hand, the non-targeted supplementary lighting of the shadow area is not good for reducing the shadow effect.
Therefore, a method and a system for eliminating the illumination shadow based on the user picture are needed, which aim to fill light into the shadow area so as to eliminate the illumination shadow.
Disclosure of Invention
The invention aims to provide a method and a system for eliminating lighting shadows based on user pictures, which are used for analyzing shadow areas based on the user pictures and then supplementing light to the areas with the shadows by using auxiliary light sources so as to eliminate the lighting shadows.
The technical scheme provided by the invention is as follows:
the invention provides a method for eliminating lighting shadows based on user pictures, which comprises the following steps:
acquiring a starting instruction, and starting a main lamp source according to the starting instruction;
after a main light source is started, obtaining a user picture;
when the shadow exists in the user picture, identifying the user direction according to the user picture;
adjusting the auxiliary light source direction of the auxiliary light source according to the user direction;
calculating the shadow angle of the shadow according to the user picture, and calculating the position and the brightness level of an auxiliary light source of the auxiliary light source according to the shadow angle;
and adjusting the auxiliary light source according to the position of the auxiliary light source and the brightness level.
Further, obtaining a turn-on command, before turning on the main light source according to the turn-on command, includes:
acquiring ambient brightness information;
when the ambient brightness information is less than or equal to the preset brightness information, acquiring human body induction information;
analyzing the human body induction information;
and when the distance between the user and the intelligent device is analyzed to be smaller than or equal to the preset distance, sending a starting instruction.
Further, adjusting the auxiliary light source direction of the auxiliary light source according to the user direction specifically includes:
acquiring the initial direction of the auxiliary light source;
if the initial direction is the same as the user direction, keeping the direction of the auxiliary light source unchanged;
and if the initial direction is different from the user direction, adjusting the auxiliary light source to the user direction.
Further, adjusting the auxiliary light source according to the position of the auxiliary light source and the brightness level specifically includes:
determining a target position on a connecting rod according to the position of the auxiliary lamp source, and marking and displaying the target position on the connecting rod, wherein the intelligent device comprises a base, the connecting rod and a lighting device, the auxiliary lamp source is arranged on the connecting rod, and the lighting device comprises the main lamp source;
adjusting the auxiliary light source to the target position, and sending a preset prompt signal;
and turning on the auxiliary light source, and adjusting the auxiliary light source to the brightness level.
Further, adjusting the auxiliary light source according to the position of the auxiliary light source and the brightness level comprises:
re-acquiring the updated user picture after the preset period;
comparing the updated user picture with the user picture obtained last time;
when the updated user picture is not different from the user picture, keeping the position and the brightness level of an auxiliary light source corresponding to the auxiliary light source;
and when the updated user picture is different from the user picture, readjusting the position and the brightness level of the auxiliary lamp source corresponding to the auxiliary lamp source according to the updated user picture.
The invention also provides a system for eliminating lighting shadows based on user pictures, which comprises:
the starting module is used for obtaining a starting instruction and starting the main lamp source according to the starting instruction;
the picture acquisition module acquires a user picture after the starting module starts the main light source;
the identification module is used for identifying the direction of a user according to the user picture when the shadow exists in the user picture acquired by the picture acquisition module;
the adjusting module is used for adjusting the auxiliary light source direction of the auxiliary light source according to the user direction identified by the identification module;
the calculating module is used for calculating the shadow angle of the shadow according to the user picture acquired by the picture acquiring module and calculating the position and the brightness level of the auxiliary lamp source according to the shadow angle;
and the adjusting module is used for adjusting the auxiliary lamp source according to the auxiliary lamp source position and the brightness level determined by the calculating module.
Further, the method also comprises the following steps:
the brightness acquisition module acquires ambient brightness information;
the information acquisition module is used for acquiring human body induction information when the ambient brightness information acquired by the brightness acquisition module is less than or equal to preset brightness information;
the analysis module is used for analyzing the human body induction information acquired by the information acquisition module;
and the sending module is used for sending a starting instruction when the analysis module analyzes that the distance between the user and the intelligent device is smaller than or equal to a preset distance.
Further, the adjusting module specifically includes:
the direction acquisition unit is used for acquiring the initial direction of the auxiliary lamp source;
the processing unit is used for keeping the direction of the auxiliary lamp source unchanged if the initial direction acquired by the direction acquisition unit is the same as the user direction identified by the identification module;
and the processing unit is used for adjusting the auxiliary light source to the user direction if the initial direction acquired by the direction acquisition unit is different from the user direction identified by the identification module.
Further, the adjusting module further comprises:
the display unit is used for determining a target position on the connecting rod according to the position of the auxiliary lamp source determined by the calculation module and marking and displaying the target position on the connecting rod, the intelligent device comprises a base, the connecting rod and a lighting device, the auxiliary lamp source is arranged on the connecting rod, and the lighting device comprises the main lamp source;
an adjusting unit that adjusts the auxiliary light source to the target position displayed by the display unit;
the adjusting unit adjusts the auxiliary lamp source to the target position and then sends out a preset prompt signal;
and the adjusting unit is used for starting the auxiliary light source after sending out a preset prompt signal and adjusting the auxiliary light source to the brightness level determined by the calculating module.
Further, the method also comprises the following steps:
the picture acquisition module acquires the updated user picture again after presetting a period;
the comparison module is used for comparing the updated user picture acquired by the picture acquisition module with the user picture acquired last time;
the processing module is used for keeping the position and the brightness level of an auxiliary lamp source corresponding to the auxiliary lamp source when the updated user picture acquired by the picture acquisition module is not different from the user picture;
and the processing module is used for readjusting the position and the brightness level of the auxiliary lamp source corresponding to the auxiliary lamp source according to the updated user picture when the updated user picture acquired by the picture acquisition module is different from the user picture.
The method and the system for eliminating the lighting shadow based on the user picture can bring at least one of the following beneficial effects:
1. in the invention, the auxiliary light source is arranged on the connecting rod of the intelligent device, and the auxiliary light source is pertinently adjusted by analyzing the obtained user picture and determining the light supplement scheme according to the user picture, thereby achieving the purpose of eliminating the shadow.
2. According to the intelligent device and the control method thereof, whether the intelligent device needs to be started or not is analyzed by detecting the ambient brightness information of the current environment and the human body induction information, so that the intelligent device is intelligently started, a user can conveniently use the intelligent device under the condition that hands are inconvenient, and the convenience of the user in using the intelligent device is improved.
3. According to the auxiliary lamp source control method and device, the direction of the auxiliary lamp source can be automatically adjusted according to the direction of a user, so that the follow-up light supplement is guaranteed to be more targeted, and the light supplement effect is better. Secondly, the direction can be adjusted in a flexible way to supplementary lighting that makes intelligent device be applicable to bigger angle range to the supplementary lighting.
Drawings
The foregoing features, technical features, advantages and implementations of a method and system for eliminating lighting shadows based on user pictures will be further described in the following detailed description of preferred embodiments in a clearly understandable manner in conjunction with the accompanying drawings.
FIG. 1 is a flow diagram of one embodiment of a method of eliminating lighting shadows based on a picture of a user of the present invention;
FIG. 2 is a schematic diagram of a smart device smart table lamp;
FIG. 3 is a flow chart of another embodiment of a method of the present invention for eliminating lighting shadows based on a picture of a user;
FIG. 4 is a flow diagram of another embodiment of a method of the present invention for eliminating lighting shadows based on a picture of a user;
FIG. 5 is a flow diagram of another embodiment of a method of the present invention for eliminating lighting shadows based on a picture of a user;
FIG. 6 is a flow chart of another embodiment of a method of the present invention for eliminating lighting shadows based on a picture of a user;
FIG. 7 is a schematic diagram of another embodiment of a system for eliminating illumination shadows based on a picture of a user according to the present invention;
fig. 8 is a schematic structural diagram of another embodiment of the system for eliminating the illumination shadow based on the user picture.
The reference numbers illustrate:
1 lighting device 2 connecting rod 3 base
100 System for eliminating illumination shadows based on user pictures
010 brightness acquisition module 020 information acquisition module
030 analysis Module 040 sending Module
110 starting module 120 picture obtaining module
130 identification module
140 adjustment module 141 direction acquisition unit 142 processing unit 143 display unit 144 adjustment unit 145 presentation unit
150 calculation module
160 compare module 170 processing module
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically depicted, or only one of them is labeled. In this document, "one" means not only "only one" but also a case of "more than one".
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
In particular implementations, the terminal devices described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, family computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments the terminal device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a terminal device that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal device may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a network creation application, a word processing application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a digital video camera application, a Web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal device may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
In addition, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
One embodiment of the present invention, as shown in fig. 1, is a method for eliminating lighting shadows based on a user picture, comprising:
s100, acquiring a starting instruction, and starting a main lamp source according to the starting instruction;
specifically, when the user learns that the ambient light is darker, or when the user needs to open the intelligent device and throw light on, send the opening instruction to the intelligent device. After the intelligent device obtains the starting instruction, the main lamp source of the intelligent device is started, and a light source is provided for the user to learn. The main light source of the intelligent device is a light source arranged in a lampshade above the intelligent device.
The intelligent device is a device which is similar to an intelligent desk lamp and is used for providing illumination for a user, and comprises a base, a connecting rod and an illuminating device, wherein the connecting rod is connected with the base and the illuminating device, and the illuminating device comprises an auxiliary lamp source. As shown in fig. 2, a schematic diagram of an intelligent desk lamp (an auxiliary light source is not shown) of one of the intelligent devices includes a lighting device 1, a connecting rod 2 and a base 3, which are only used for facilitating understanding of the structure of the intelligent device, but in practice, the intelligent desk lamp is not limited to the one shown in the schematic diagram.
The intelligent device obtains the mode of opening the instruction diversified, and comparatively traditional mode has the mechanical device that the control was opened and is closed main lamp source on for the intelligent device body, can be the form of button, also can be the form of touch. Secondly, a voice control mode may also be adopted, for example, when the user says "turn on the desk lamp", and when the intelligent device detects keywords such as "turn on", "desk lamp", etc., it is equivalent to acquiring a turn-on instruction. In addition, the intelligent device can be in an induction control mode, similar to a faucet capable of automatically discharging water in an induction mode, and when a user places a handle or other objects in a preset induction area and the intelligent device senses the existence of the user, the main light source is turned on. Or when the intelligent device detects that the learning environment is low in brightness and detects that a user is learning, the intelligent device is required to provide illumination. The light source light bulb is turned on, for example, a sensor senses that a user is continuously present near the smart device for a certain period of time.
In addition, because the current light intensity of the learning environment where the external user is located is different, the corresponding light intensity levels required for turning on the main light source are also different. The intelligent device externally arranged on the body and used for controlling the mechanical device for turning on and off the main lamp source can be used for setting light intensity levels of different gears corresponding to different main lamp sources, and a user can manually adjust the intelligent device. Also can dispose light intensity inductor by intelligent device, according to the external environment light intensity that senses, combine external environment light intensity and the corresponding mapping table of lamp source light intensity, select suitable lamp source light intensity.
S200, after the main lamp source is turned on, obtaining a user picture;
specifically, after a main light source of the intelligent device is started, a camera is synchronously started to obtain a user picture, the user picture comprises a user and the surrounding environment of the user, the user direction in the user picture is convenient to identify subsequently, all positions which possibly generate shadows in a learning area of the user are also included, and the shadow in the user picture is convenient to identify subsequently and the shadow angle is convenient to analyze. Therefore, the number and the obtaining mode of the user pictures are not limited, and the positions and the number of the cameras arranged on the intelligent device are also not specifically limited.
The camera can be set up in the optional part of intelligent device, can be close with the position of main lamp source, for example, place the camera near main lamp source. Or the camera is placed at any position of the connecting rod of the intelligent device, or the camera is arranged on a flexible support with an extensible adjustable position, and the position of the camera can be automatically adjusted by the intelligent device or manually adjusted by a user.
S300, when the shadow exists in the user picture, identifying the user direction according to the user picture;
specifically, when the shadow exists in the obtained user picture, it is indicated that the region is shielded by the user or other objects, and enough light is not provided for the user to check and learn, so that the user may need to adjust the sitting posture to look down, and therefore, on one hand, the sitting posture of the user is incorrect, the spine and the like are affected, and on the other hand, the eyes are too close to the desktop, and the influence on the eyesight is bad. Therefore, light needs to be supplemented to the shadow area.
However, in order to reduce unnecessary calculation processes, before analyzing the light supplement adjustment scheme, it is determined whether the shadow in the user picture affects the learning of the user, if so, the shadow is defined as an effective shadow, and then the subsequent calculation of the light supplement scheme is continued. If the study of the user cannot be influenced, light supplement is not needed.
For example, a part of books are stacked far away from the learning area of the user, and the books form a shadow under the irradiation of the light beads of the main light source, but the analysis of the picture of the user can lead the shadow to be completely irrelevant to the learning area of the user and not to influence the learning of the user, so the shadow is not an effective shadow area, and the shadow is not required to be supplemented with light.
If the effective shadow needs to be supplemented with light, the user direction needs to be identified firstly. Because the learning habits of each user are different, the relative positions of the user and the intelligent device are possibly different during each learning, and particularly, when the learning area is large and the number of the intelligent devices is small, if an auxiliary light source arranged on the connecting rod is required to supplement light for the learning area of the user, the direction of the user needs to be determined.
And identifying the user direction according to the acquired user picture, wherein the user direction is the direction of the user relative to the intelligent device, the user picture comprises the user and the surrounding environment thereof, and the user direction is analyzed and obtained by combining the acquired direction of the surrounding environment relative to the intelligent device.
S400, adjusting the auxiliary light source direction of the auxiliary light source according to the user direction;
specifically, the auxiliary light source direction of the auxiliary light source is determined according to the user direction, and the auxiliary light source is adjusted to the auxiliary light source direction. That is, the irradiation direction of the auxiliary light source is adjusted to face the user direction, so that the light of the auxiliary light source can be directly irradiated to the user direction.
The auxiliary light source is arranged on the connecting rod of the intelligent device, can freely slide up and down along the direction of the connecting rod, can freely rotate by taking the connecting rod as a center, and can stably stand at any position of the connecting rod for light supplement.
For example, the user's picture is analyzed, and the user is studying on the left half of the desk by using the desk as a reference, so that if the auxiliary light source needs to supplement light, the auxiliary light source needs to be adjusted to face the left half of the desk.
S500, calculating a shadow angle of the shadow according to the user picture, and calculating an auxiliary light source position and a brightness level of the auxiliary light source according to the shadow angle;
specifically, the shadow angle of the shadow in the user picture is calculated according to the obtained user picture, and then the position and the brightness level of the auxiliary light source are calculated according to the shadow angle. The position of the auxiliary light source is the position of the auxiliary light source on the connecting rod when the auxiliary light source is needed to supplement light, and the position is determined by the position of the learning plane of a user. For example, when a user draws on a desk, the learning plane is the desk top, but when the user browses materials such as dictionary, the learning plane is the material paper, and due to the thickness of the materials themselves, if the materials are all learned on the desk, the learning plane of the latter is higher than the learning plane of the former, and the corresponding auxiliary light source position should be higher than the former.
For the brightness levels, even if all the shadow areas are shaded, the shading depth degree between the shadow areas has influence on light supplement, the brightness level of the area with the darker shade needing light supplement is higher, and the brightness level of the area with the lighter shade needing light supplement is lower.
Therefore, the user picture is used for analyzing the shielding object causing the shadow, and then the shadow angle of the shadow in the user picture is calculated by combining the position relation of the main lamp source, the camera and the shielding object, so that the light intensity of the shielded part is judged, and the corresponding brightness level needing light supplement is analyzed. In the same user picture, the farther the shadow area is from the edge of the obstruction, the smaller the shadow angle is, and the weaker the light intensity is.
For example, when the main light source is above the head of the user, the head of the user can block part of light emitted by the main light source, and the rest of the light which is not blocked and irradiated into the user is less, so that a shadow area is formed, and the user is a blocking object at this time. And judging a shadow angle formed by combining the position of each point in the shadow area with the position of the camera and the edge of the shielding object according to the position of the main lamp source and the light irradiation direction and combining the edge of the shielding object.
S600, adjusting the auxiliary light source according to the position of the auxiliary light source and the brightness level.
Specifically, the auxiliary light source is adjusted to the auxiliary light source position obtained through analysis, the auxiliary light source is started, and the brightness of the auxiliary light source is adjusted to the brightness level determined through calculation.
In this embodiment, the auxiliary light source is arranged on the connecting rod of the intelligent device, and the auxiliary light source is specifically adjusted by analyzing the acquired user picture and determining the light supplement scheme according to the user picture, so that the purpose of eliminating the shadow is achieved.
Another embodiment of the present invention is a preferable embodiment of the above-mentioned embodiment, as shown in fig. 3, including:
s010 obtains environment brightness information;
s020 obtaining human body induction information when the environment brightness information is less than or equal to the preset brightness information;
specifically, the intelligent device acquires the ambient brightness information of the current ambient environment, compares the ambient brightness information with the preset brightness, and when the ambient brightness information is less than or equal to the preset brightness, it indicates that the current ambient environment is too dark, and if the user continues to learn under such a condition, adverse effects are caused to the eyesight. However, it is necessary to further analyze whether a user is learning in the current environment, and if so, the smart device needs to be turned on. Thus, the human body sensing information is acquired.
The preset brightness is obtained based on analysis statistics, and the user learns in an environment lower than the preset brightness, which results in the pupils of the eyes. The abnormal contraction of ciliary muscle and other parts can cause eye fatigue and myopia and other adverse consequences. In addition, the intelligent device does not acquire the ambient brightness information of the current surrounding environment all the time, and the ambient brightness information can be acquired at regular intervals in consideration of energy saving and other factors.
S030 analyzing the human body induction information;
s040 sends a starting instruction when the distance between the user and the intelligent device is analyzed to be smaller than or equal to a preset distance;
specifically, the acquired human body sensing information is analyzed, the intelligent device can sense whether a user exists through an infrared sensor, a human body sensor and the like, if so, the distance between the existing user and the intelligent device and the stay time of the user are further judged, and only if the distance between the user and the intelligent device is smaller than or equal to a preset distance, the situation that the user is near the intelligent device currently is shown, and the situation that the user stays in the range for a preset time length, the situation that the user is learning or working currently is shown, and then an opening instruction is sent. Therefore, the situation that the intelligent device is started to waste resources when the user only stops for a short time or is not near the intelligent device is avoided.
S100, acquiring a starting instruction, and starting a main lamp source according to the starting instruction;
s200, after the main lamp source is turned on, obtaining a user picture;
s300, when the shadow exists in the user picture, identifying the user direction according to the user picture;
s400, adjusting the auxiliary light source direction of the auxiliary light source according to the user direction;
s500, calculating a shadow angle of the shadow according to the user picture, and calculating an auxiliary light source position and a brightness level of the auxiliary light source according to the shadow angle;
s600, adjusting the auxiliary light source according to the position of the auxiliary light source and the brightness level.
In this embodiment, whether the intelligent device needs to be opened through the ambient brightness information and the human response information analysis that detect current environment, thereby intelligent device is opened to the intelligence more, and the user of being convenient for uses intelligent device under the inconvenient condition of hand, thereby increases the convenience that the user used intelligent device.
Another embodiment of the present invention is a preferable embodiment of the above-mentioned embodiment, as shown in fig. 4, including:
s100, acquiring a starting instruction, and starting a main lamp source according to the starting instruction;
s200, after the main lamp source is turned on, obtaining a user picture;
s300, when the shadow exists in the user picture, identifying the user direction according to the user picture;
s400, adjusting the auxiliary light source direction of the auxiliary light source according to the user direction;
s410, acquiring the initial direction of the auxiliary lamp source;
specifically, an initial direction of the auxiliary light source is obtained, and the initial direction is the irradiation direction of the light of the current auxiliary light source. An initial position can be set for the auxiliary light source of the intelligent device, the initial position is automatically returned after the auxiliary light source is turned off every time, and then the initial direction of the auxiliary light source is related to the initial position and is fixed. Or the auxiliary light source of the intelligent device does not set the initial position, and the auxiliary light source keeps the current position unchanged after the auxiliary light source is turned off every time and is used as the initial position when the auxiliary light source is turned on next time, so that the initial direction is obtained.
S420, if the initial direction is the same as the user direction, keeping the direction of the auxiliary lamp source unchanged;
specifically, if the initial direction of the auxiliary light source is the same as the direction of the user, the direction of the light beam after turning on the auxiliary light source faces the user, so that the direction of the auxiliary light source is kept unchanged.
S430, if the initial direction is different from the user direction, adjusting the auxiliary light source to the user direction;
specifically, if the initial direction of the auxiliary light source is different from the user direction, it indicates that the irradiation direction of the light after turning on the auxiliary light source does not face the user, so the auxiliary light source is adjusted to the user direction. For example, the user a learns at the left half of the desk first, and the auxiliary light source is facing the left half of the desk when performing light supplement. After the user a leaves, the user B learns on the right half of the desk, if the user B needs to supplement light by using the auxiliary light source, the initial direction of the front auxiliary light source is toward the left half of the desk, and the user direction is the right half of the desk, so the direction of the auxiliary light source needs to be adjusted to the right half of the desk.
S500, calculating a shadow angle of the shadow according to the user picture, and calculating an auxiliary light source position and a brightness level of the auxiliary light source according to the shadow angle;
s600, adjusting the auxiliary light source according to the position of the auxiliary light source and the brightness level.
In this embodiment, can adjust the direction of assisting the lamp source according to user's direction is automatic to it is corresponding more to have when guaranteeing follow-up light filling, and the light filling effect is better. Secondly, the direction can be adjusted in a flexible way to supplementary lighting that makes intelligent device be applicable to bigger angle range to the supplementary lighting.
Another embodiment of the present invention is a preferable embodiment of the above-mentioned embodiment, as shown in fig. 5, including:
s100, acquiring a starting instruction, and starting a main lamp source according to the starting instruction;
s200, after the main lamp source is turned on, obtaining a user picture;
s300, when the shadow exists in the user picture, identifying the user direction according to the user picture;
s400, adjusting the auxiliary light source direction of the auxiliary light source according to the user direction;
s500, calculating a shadow angle of the shadow according to the user picture, and calculating an auxiliary light source position and a brightness level of the auxiliary light source according to the shadow angle;
s600, adjusting the auxiliary light source according to the position of the auxiliary light source and the brightness level;
s610, determining a target position on a connecting rod according to the position of the auxiliary lamp source, and marking and displaying the target position on the connecting rod, wherein the intelligent device comprises a base, the connecting rod and a lighting device, the auxiliary lamp source is arranged on the connecting rod, and the lighting device comprises the main lamp source;
specifically, the corresponding target position on the connecting rod is determined according to the position of the auxiliary lamp source, the target position is marked and displayed on the connecting rod, the subsequent adjustment of the position of the auxiliary lamp source can be automatically adjusted by an intelligent device or manually adjusted by a user, and the target position is displayed on the connecting rod, so that the user can quickly determine the position to be adjusted of the auxiliary lamp source.
The display mode of the target position on the connecting rod can be displayed through light, or can be displayed through scale marks, or is displayed by arranging a protruding mechanism, and the purpose is to enable a user to visually check the position to be adjusted of the auxiliary light source, and the display mode is not limited specifically herein.
S620, adjusting the auxiliary light source to the target position, and sending a preset prompt signal;
specifically, the auxiliary light source is adjusted to the target position displayed on the connecting rod, and a preset prompt signal is sent out to prompt a user that the auxiliary light source is adjusted in place. The preset prompting signal can be a prompting sound or a light prompting.
S630 turns on the auxiliary light source, and adjusts the auxiliary light source to the brightness level.
Specifically, after the auxiliary light source is adjusted to the calculated position, the auxiliary light source is turned on, and the auxiliary light source is adjusted to the calculated brightness level for light supplement. And then, acquiring a new user picture, identifying whether the shadow in the user picture is eliminated, and if not, continuously optimizing the adjustment scheme to eliminate the shadow as much as possible.
In this embodiment, the target position corresponding to the position of the auxiliary lamp source is marked and displayed on the link, and is visually displayed to the user. And when the auxiliary light source is adjusted to the target position, prompting is also carried out, so that the user can clearly determine whether the adjustment is in place.
Another embodiment of the present invention is a preferable embodiment of the above-mentioned embodiment, as shown in fig. 6, including:
s100, acquiring a starting instruction, and starting a main lamp source according to the starting instruction;
s200, after the main lamp source is turned on, obtaining a user picture;
s300, when the shadow exists in the user picture, identifying the user direction according to the user picture;
s400, adjusting the auxiliary light source direction of the auxiliary light source according to the user direction;
s500, calculating a shadow angle of the shadow according to the user picture, and calculating an auxiliary light source position and a brightness level of the auxiliary light source according to the shadow angle;
s600, adjusting the auxiliary light source according to the position of the auxiliary light source and the brightness level;
s700, acquiring the updated user picture again after the period is preset;
specifically, since the user may adjust his or her learning posture during the learning process and the object in the external environment changes, the shadow region may change, and therefore a new updated user picture needs to be obtained again to determine whether the light supplement scheme of the auxiliary light source needs to be adjusted again. And secondly, considering factors such as energy conservation and the like, and acquiring the updated user picture again after every preset period.
S750, comparing the updated user picture with the user picture obtained last time;
specifically, the newly acquired updated user picture is compared with the user picture acquired last time nearby, and since the cameras all shoot from the same view angle, whether the shadow areas of the two are changed or not is mainly compared.
S800, when the updated user picture is not different from the user picture, keeping the position and the brightness level of an auxiliary light source corresponding to the auxiliary light source;
specifically, if the updated user picture is not different from the shadow area of the user picture, it indicates that the user himself or the surrounding environment does not change within the preset period, so that the position and the brightness level of the auxiliary light source adjusted before are maintained.
And S850, when the updated user picture is different from the user picture, readjusting the position and the brightness level of the auxiliary lamp source corresponding to the auxiliary lamp source according to the updated user picture.
Specifically, if the updated user picture is different from the shadow area of the user picture, it indicates that the user himself or the surrounding environment has changed in the preset period, and therefore, the updated user picture is used as the analysis object, and the position and the brightness level of the auxiliary light source corresponding to the auxiliary light source are readjusted according to the above scheme.
In the embodiment, the fact that the user and the surrounding environment may change is considered, the updated user picture is obtained at intervals of a preset period, if the shadow area of the user picture obtained last time changes, the auxiliary light source adjusting scheme is analyzed again, adjustment is carried out according to actual conditions, and the use experience of the user is enhanced.
One embodiment of the present invention, as shown in fig. 7, is a system 100 for eliminating illumination shadows based on user pictures, comprising:
the starting module 110 is used for obtaining a starting instruction and starting the main lamp source according to the starting instruction;
the picture obtaining module 120, which obtains the user picture after the starting module 110 starts the main light source;
an identifying module 130, configured to identify a user direction according to the user picture when the shadow exists in the user picture acquired by the picture acquiring module 120;
an adjusting module 140, which adjusts the auxiliary light source direction of the auxiliary light source according to the user direction identified by the identifying module 130;
a calculating module 150, configured to calculate a shadow angle of the shadow according to the user picture acquired by the picture acquiring module 120, and calculate an auxiliary light source position and a brightness level of the auxiliary light source according to the shadow angle;
the adjusting module 140 adjusts the auxiliary light source according to the position of the auxiliary light source and the brightness level determined by the calculating module 150.
The specific operation modes of the modules in this embodiment have been described in detail in the corresponding method embodiments, and thus are not described in detail again.
Another embodiment of the present invention is a preferable embodiment of the above-mentioned embodiment, as shown in fig. 8, including:
the brightness acquisition module 010 acquires ambient brightness information;
the information acquisition module 020 is used for acquiring human body induction information when the environment brightness information acquired by the brightness acquisition module 010 is less than or equal to preset brightness information;
the analysis module 030 is used for analyzing the human body induction information acquired by the information acquisition module 020;
the sending module 040, configured to send a start instruction when the analysis module 030 analyzes that the distance between the user and the intelligent device is smaller than or equal to a preset distance;
the starting module 110 is configured to obtain the start instruction sent by the sending module 040, and start the main lamp source according to the start instruction;
the picture obtaining module 120, which obtains the user picture after the starting module 110 starts the main light source;
an identifying module 130, configured to identify a user direction according to the user picture when the shadow exists in the user picture acquired by the picture acquiring module 120;
an adjusting module 140, which adjusts the auxiliary light source direction of the auxiliary light source according to the user direction identified by the identifying module 130;
the adjusting module 140 specifically includes:
a direction obtaining unit 141 that obtains an initial direction of the auxiliary light source;
a processing unit 142, configured to keep the direction of the auxiliary light source unchanged if the initial direction acquired by the direction acquiring unit 141 is the same as the user direction identified by the identifying module 130;
the processing unit 142, if the initial direction obtained by the direction obtaining unit 141 is not the same as the user direction identified by the identifying module 130, adjusting the auxiliary light source to the user direction;
a calculating module 150, configured to calculate a shadow angle of the shadow according to the user picture acquired by the picture acquiring module 120, and calculate an auxiliary light source position and a brightness level of the auxiliary light source according to the shadow angle;
the adjusting module 140 adjusts the auxiliary light source according to the position of the auxiliary light source and the brightness level determined by the calculating module 150;
the adjusting module 140 further comprises:
the display unit 143 determines a target position on the connecting rod according to the position of the auxiliary light source determined by the calculating module 150, and marks and displays the target position on the connecting rod, the intelligent device includes a base, the connecting rod and a lighting device, the auxiliary light source is disposed on the connecting rod, and the lighting device includes the main light source;
an adjusting unit 144 that adjusts the auxiliary light source to the target position displayed by the display unit 143;
the prompting unit 145, after the adjusting unit 144 adjusts the auxiliary light source to the target position, sends out a preset prompting signal;
the adjusting unit 144, after sending the preset prompt signal, turns on the auxiliary light source, and adjusts the auxiliary light source to the brightness level determined by the calculating module 150;
further comprising:
the picture obtaining module 120 obtains the updated user picture again after a preset period;
a comparison module 160, configured to compare the updated user picture obtained by the picture obtaining module 120 with the user picture obtained last time;
a processing module 170, configured to keep an auxiliary light source position and a brightness level corresponding to the auxiliary light source when the updated user picture obtained by the picture obtaining module 120 is not different from the user picture;
the processing module 170, when the updated user picture obtained by the picture obtaining module 120 is different from the user picture, readjusts an auxiliary light source position and a brightness level corresponding to the auxiliary light source according to the updated user picture.
The specific operation modes of the modules in this embodiment have been described in detail in the corresponding method embodiments, and thus are not described in detail again.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for eliminating lighting shadows based on a user picture, comprising:
acquiring a starting instruction, and starting a main lamp source according to the starting instruction;
after a main light source is started, obtaining a user picture;
when the shadow exists in the user picture, identifying the user direction according to the user picture;
adjusting the auxiliary light source direction of the auxiliary light source according to the user direction;
calculating the shadow angle of the shadow according to the user picture, and calculating the position and the brightness level of an auxiliary light source of the auxiliary light source according to the shadow angle;
and adjusting the auxiliary light source according to the position of the auxiliary light source and the brightness level.
2. The method for eliminating the lighting shadow based on the user picture as claimed in claim 1, wherein obtaining a turn-on command, before turning on the main light source according to the turn-on command, comprises:
acquiring ambient brightness information;
when the ambient brightness information is less than or equal to the preset brightness information, acquiring human body induction information;
analyzing the human body induction information;
and when the distance between the user and the intelligent device is analyzed to be smaller than or equal to the preset distance, sending a starting instruction.
3. The method according to claim 1, wherein adjusting the direction of the auxiliary light source according to the user direction specifically comprises:
acquiring the initial direction of the auxiliary light source;
if the initial direction is the same as the user direction, keeping the direction of the auxiliary light source unchanged;
and if the initial direction is different from the user direction, adjusting the auxiliary light source to the user direction.
4. The method according to claim 1, wherein adjusting the auxiliary light source according to the auxiliary light source position and the brightness level specifically comprises:
determining a target position on a connecting rod according to the position of the auxiliary lamp source, and marking and displaying the target position on the connecting rod, wherein the intelligent device comprises a base, the connecting rod and a lighting device, the auxiliary lamp source is arranged on the connecting rod, and the lighting device comprises the main lamp source;
adjusting the auxiliary light source to the target position, and sending a preset prompt signal;
and turning on the auxiliary light source, and adjusting the auxiliary light source to the brightness level.
5. The method for eliminating lighting shadows based on user pictures according to claim 1, wherein adjusting the secondary light source according to the secondary light source position and the brightness level comprises:
re-acquiring the updated user picture after the preset period;
comparing the updated user picture with the user picture obtained last time;
when the updated user picture is not different from the user picture, keeping the position and the brightness level of an auxiliary light source corresponding to the auxiliary light source;
and when the updated user picture is different from the user picture, readjusting the position and the brightness level of the auxiliary lamp source corresponding to the auxiliary lamp source according to the updated user picture.
6. A system for eliminating lighting shadows based on user pictures, comprising:
the starting module is used for obtaining a starting instruction and starting the main lamp source according to the starting instruction;
the picture acquisition module acquires a user picture after the starting module starts the main light source;
the identification module is used for identifying the direction of a user according to the user picture when the shadow exists in the user picture acquired by the picture acquisition module;
the adjusting module is used for adjusting the auxiliary light source direction of the auxiliary light source according to the user direction identified by the identification module;
the calculating module is used for calculating the shadow angle of the shadow according to the user picture acquired by the picture acquiring module and calculating the position and the brightness level of the auxiliary lamp source according to the shadow angle;
and the adjusting module is used for adjusting the auxiliary lamp source according to the auxiliary lamp source position and the brightness level determined by the calculating module.
7. The system for eliminating lighting shadows based on user pictures, according to claim 6, further comprising:
the brightness acquisition module acquires ambient brightness information;
the information acquisition module is used for acquiring human body induction information when the ambient brightness information acquired by the brightness acquisition module is less than or equal to preset brightness information;
the analysis module is used for analyzing the human body induction information acquired by the information acquisition module;
and the sending module is used for sending a starting instruction when the analysis module analyzes that the distance between the user and the intelligent device is smaller than or equal to a preset distance.
8. The system for eliminating lighting shadows based on user pictures according to claim 6, wherein the adjusting module specifically comprises:
the direction acquisition unit is used for acquiring the initial direction of the auxiliary lamp source;
the processing unit is used for keeping the direction of the auxiliary lamp source unchanged if the initial direction acquired by the direction acquisition unit is the same as the user direction identified by the identification module;
and the processing unit is used for adjusting the auxiliary light source to the user direction if the initial direction acquired by the direction acquisition unit is different from the user direction identified by the identification module.
9. The system for eliminating lighting shadows based on user pictures according to claim 6, wherein the adjusting module further comprises:
the display unit is used for determining a target position on the connecting rod according to the position of the auxiliary lamp source determined by the calculation module and marking and displaying the target position on the connecting rod, the intelligent device comprises a base, the connecting rod and a lighting device, the auxiliary lamp source is arranged on the connecting rod, and the lighting device comprises the main lamp source;
an adjusting unit that adjusts the auxiliary light source to the target position displayed by the display unit;
the adjusting unit adjusts the auxiliary lamp source to the target position and then sends out a preset prompt signal;
and the adjusting unit is used for starting the auxiliary light source after sending out a preset prompt signal and adjusting the auxiliary light source to the brightness level determined by the calculating module.
10. The system for eliminating lighting shadows based on user pictures, according to claim 6, further comprising:
the picture acquisition module acquires the updated user picture again after presetting a period;
the comparison module is used for comparing the updated user picture acquired by the picture acquisition module with the user picture acquired last time;
the processing module is used for keeping the position and the brightness level of an auxiliary lamp source corresponding to the auxiliary lamp source when the updated user picture acquired by the picture acquisition module is not different from the user picture;
and the processing module is used for readjusting the position and the brightness level of the auxiliary lamp source corresponding to the auxiliary lamp source according to the updated user picture when the updated user picture acquired by the picture acquisition module is different from the user picture.
CN201910570672.9A 2019-06-28 2019-06-28 Method and system for eliminating lighting shadow based on user picture Active CN112153780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910570672.9A CN112153780B (en) 2019-06-28 2019-06-28 Method and system for eliminating lighting shadow based on user picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910570672.9A CN112153780B (en) 2019-06-28 2019-06-28 Method and system for eliminating lighting shadow based on user picture

Publications (2)

Publication Number Publication Date
CN112153780A true CN112153780A (en) 2020-12-29
CN112153780B CN112153780B (en) 2022-12-30

Family

ID=73868926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910570672.9A Active CN112153780B (en) 2019-06-28 2019-06-28 Method and system for eliminating lighting shadow based on user picture

Country Status (1)

Country Link
CN (1) CN112153780B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745834A (en) * 2022-05-10 2022-07-12 江苏灵敏智控科技有限公司 Wisdom street lamp subregion lighting control management system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102168829A (en) * 2011-03-19 2011-08-31 深圳市尚荣医疗股份有限公司 LED (Light Emitting Diode) surgery shadowless lamp with multiple lens light source arrays and method for revising shadowless rate
CN105554981A (en) * 2015-12-31 2016-05-04 深圳还是威健康科技有限公司 Table lamp adjusting method and device
CN108235521A (en) * 2018-02-09 2018-06-29 闵泳鑫 Intelligent lamp and its control method
CN108596972A (en) * 2018-04-28 2018-09-28 上海与德科技有限公司 A kind of light adjusting method, device, intelligent desk lamp and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102168829A (en) * 2011-03-19 2011-08-31 深圳市尚荣医疗股份有限公司 LED (Light Emitting Diode) surgery shadowless lamp with multiple lens light source arrays and method for revising shadowless rate
CN105554981A (en) * 2015-12-31 2016-05-04 深圳还是威健康科技有限公司 Table lamp adjusting method and device
CN108235521A (en) * 2018-02-09 2018-06-29 闵泳鑫 Intelligent lamp and its control method
CN108596972A (en) * 2018-04-28 2018-09-28 上海与德科技有限公司 A kind of light adjusting method, device, intelligent desk lamp and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745834A (en) * 2022-05-10 2022-07-12 江苏灵敏智控科技有限公司 Wisdom street lamp subregion lighting control management system
CN114745834B (en) * 2022-05-10 2022-12-09 江苏灵敏智控科技有限公司 Wisdom street lamp subregion lighting control management system

Also Published As

Publication number Publication date
CN112153780B (en) 2022-12-30

Similar Documents

Publication Publication Date Title
CN112118659B (en) Light adjusting method and intelligent device
US8670632B2 (en) System for reducing effects of undesired signals in an infrared imaging system
TWI682689B (en) Smart lighting device and control method thereof
US10845511B2 (en) Smart mirror
TWI545947B (en) Display device with image capture and analysis module
US10783835B2 (en) Automatic control of display brightness
CN104571474B (en) A kind of method and apparatus adaptively adjusted to terminal screen display content
WO2016085212A1 (en) Electronic device and method for controlling display
WO2017166530A1 (en) Screen brightness adjustment method and device, and display device comprising device
CN103428568A (en) Electronic mirror device, electronic mirror display method, and electronic mirror program
CN106257581A (en) User terminal apparatus and the method being used for adjusting brightness thereof
CN110211549A (en) A kind of screen brightness regulation method, device, terminal and storage medium
CN105679253B (en) A kind of terminal backlight adjusting method and device
CN112153788A (en) Illumination adjusting method and system
CN111857484B (en) Screen brightness adjusting method and device, electronic equipment and readable storage medium
WO2023098175A1 (en) Screen brightness adjustment method and apparatus for head-mounted display device, and head-mounted display device
CN112087845A (en) Light supplementing method and system based on detection lamp source
CN105895057B (en) A kind of backlight adjusting method, device and terminal device
CN112446017A (en) Light supplement control method, system, storage medium and computer equipment
CN105554981B (en) desk lamp adjusting method and device
CN112153780B (en) Method and system for eliminating lighting shadow based on user picture
WO2018219290A1 (en) Information terminal
CN112333900B (en) Intelligent light supplementing and shadow eliminating method and system
CN112235912B (en) Illumination adjusting method and system based on user picture
CN112235922B (en) Method and system for eliminating lighting shadows based on auxiliary light source

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant