CN115734436A - Intelligent control method and device suitable for intelligent desk lamp, desk lamp and medium - Google Patents

Intelligent control method and device suitable for intelligent desk lamp, desk lamp and medium Download PDF

Info

Publication number
CN115734436A
CN115734436A CN202211392194.5A CN202211392194A CN115734436A CN 115734436 A CN115734436 A CN 115734436A CN 202211392194 A CN202211392194 A CN 202211392194A CN 115734436 A CN115734436 A CN 115734436A
Authority
CN
China
Prior art keywords
user
desk lamp
dimensional position
ambient light
intelligent
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
CN202211392194.5A
Other languages
Chinese (zh)
Other versions
CN115734436B (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.)
Shenzhen Deled Led Co ltd
Original Assignee
Shenzhen Deled Led 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 Shenzhen Deled Led Co ltd filed Critical Shenzhen Deled Led Co ltd
Priority to CN202211392194.5A priority Critical patent/CN115734436B/en
Publication of CN115734436A publication Critical patent/CN115734436A/en
Application granted granted Critical
Publication of CN115734436B publication Critical patent/CN115734436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The embodiment of the invention discloses an intelligent control method and device suitable for an intelligent desk lamp, the desk lamp and a medium, wherein the method comprises the following steps: judging whether a table lamp user exists in a table lamp using area of the intelligent table lamp based on the first detection data; if yes, judging whether a target movable object is close to the table lamp user or not based on the second detection data; if not, controlling the illumination light-emitting component according to the ambient light data in the second detection data, otherwise, judging whether an ambient light shadow influences a user of the table lamp according to the second detection data; if so, controlling the adjustable arm and the illumination light-emitting component according to the ambient light data in the second detection data, and the three-dimensional position of the top of the head of the user, the three-dimensional position of each ambient light source, the three-dimensional position of the top of the object close to the user and the ambient light shadow which are determined based on the second detection data, otherwise, controlling each illumination light-emitting component according to the ambient light data. The stability of the illumination of the user of the desk lamp is ensured by controlling the adjustable arm and the illumination luminous component.

Description

Intelligent control method and device suitable for intelligent desk lamp, desk lamp and medium
Technical Field
The invention relates to the technical field of lighting equipment control, in particular to an intelligent control method and device suitable for an intelligent desk lamp, the desk lamp and a medium.
Background
When a user of the desk lamp uses the desk lamp, the user usually performs work of writing, drawing, creating, welding and the like which are concentrated in comparison. When doing these more dedicated tasks, the attention of the person is highly focused and thus the stability requirements for the lighting are high. When an external object approaches to the user of the desk lamp, the object shields the ambient light source, which may affect the stability of the illumination of the user of the desk lamp, thereby affecting the attention of the user of the desk lamp and reducing the working efficiency. The inventor finds that there is no table lamp that is adaptive to ensure stability of lighting of a user of the table lamp according to an object close to the user.
Disclosure of Invention
Therefore, it is necessary to provide an intelligent control method, an intelligent control device, a desk lamp and a medium suitable for an intelligent desk lamp, in order to solve the technical problem that there is no desk lamp which is self-adaptive and can ensure the stability of illumination of a user of the desk lamp according to an object close to the user of the desk lamp.
The application provides an intelligent control method suitable for an intelligent desk lamp, and the method comprises the following steps:
acquiring first detection data of the intelligent desk lamp according to a first time interval, and judging whether a desk lamp user exists in a desk lamp using area of the intelligent desk lamp or not based on the first detection data;
if yes, second detection data of the intelligent desk lamp are obtained according to a second time interval, and whether a target moving object is close to a user of the desk lamp or not is judged based on the second detection data, wherein the second time interval is smaller than the first time interval;
if not, controlling each lighting luminous component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a user top three-dimensional position, each ambient light source three-dimensional position and a three-dimensional position close to the top of the object according to the second detection data, calculating an ambient light shadow of the target moving object according to each ambient light source three-dimensional position and the three-dimensional position close to the top of the object, and judging whether the ambient light shadow influences a user of the desk lamp or not according to the user top three-dimensional position;
if so, controlling each adjustable arm of the intelligent desk lamp and each illumination light-emitting component according to the ambient light data, the three-dimensional position of the top of the user's head, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object and the ambient light shadow, otherwise, controlling each illumination light-emitting component according to the ambient light data, wherein at least one illumination light-emitting component is arranged on each adjustable arm.
Further, the step of determining whether a target moving object is near the user of the table lamp based on the second detection data, wherein the second time interval is smaller than the first time interval, comprises:
based on a multi-target tracking method, carrying out object tracking on each image frame of the video clip in the second detection data to obtain an object tracking result;
judging whether the distance between the object and the user of the table lamp is in a decreasing trend or not according to the target tracking result;
if the target moving object exists, the object which is at a decreasing trend of the distance from the user of the table lamp is used as the target moving object, and the target moving object is determined to be close to the user of the table lamp;
if not, determining that no target moving object is close to the table lamp user.
Further, the step of determining whether the ambient light shadow influences the user of the table lamp according to the three-dimensional position of the top of the user's head comprises:
calculating the working area of the user of the table lamp according to the three-dimensional position of the top of the head of the user;
judging whether the environment light shadow is overlapped with the working area or not;
if yes, determining that the environment light shadow influences the user of the table lamp;
if not, determining that the influence of the ambient light shadow on the user of the table lamp does not exist.
Further, the step of controlling each adjustable arm of the intelligent desk lamp and each lighting assembly according to the ambient light data, the three-dimensional position of the top of the user's head, the three-dimensional position of each ambient light source, the three-dimensional position of the top of the object, and the shadow of the ambient light comprises:
determining a target posture of each adjustable arm according to the three-dimensional position of the top of the human head, the three-dimensional positions of the environmental light sources and the three-dimensional position of the top of the approaching object, and adjusting the azimuth angle and the pitch angle of each adjustable arm according to each target posture;
determining light emission control data according to the ambient light data, and performing compensation processing on the light emission control data according to the ambient light shadow and the three-dimensional position of the top of the user's head;
acquiring a fine adjustment proportion corresponding to a fine adjustment button of the intelligent desk lamp;
multiplying the fine tuning proportion by a range length value corresponding to each light-emitting parameter range in the light-emitting control data to obtain a single-parameter fine tuning value;
adding the lowest value of each light-emitting parameter range and the single-parameter fine adjustment value corresponding to the light-emitting parameter range respectively to obtain fine-adjusted control data;
and controlling each illumination light-emitting component to emit light according to the fine-tuned control data.
Further, the step of controlling each of the illumination light emitting assemblies according to the ambient light data comprises:
determining the working area of the user of the table lamp according to the three-dimensional position of the top of the head of the user based on a preset working area calculation rule;
calculating the influence three-dimensional position of the target moving object according to the three-dimensional position of each environment light source, the three-dimensional position close to the top of the object and the working area;
predicting the motion speed of the target moving object according to the second detection data;
calculating the influence duration according to the movement speed, the three-dimensional position close to the top of the object and the influence three-dimensional position;
if the influence duration is less than or equal to the second time interval, taking the detection time of the second detection data as a start time, and controlling each adjustable arm and each lighting and illuminating component according to the ambient light data, the three-dimensional position of the top of the human head, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object and the ambient light shadow when the influence duration is spaced;
and if the influencing duration is longer than the second time interval, controlling each illumination light-emitting component according to the ambient light data.
Further, after the step of obtaining the second detection data of the intelligent desk lamp at the second time interval, the method further includes:
calculating the height of the top of the head of the user of the table lamp according to the second detection data as the height of the top of the head of the user;
according to the height of the top of the user's head, the height of the table lamp is searched from a preset first mapping table to obtain the height of a target table lamp;
and controlling the height of each lighting light-emitting component according to the height of the target desk lamp.
Further, after the step of obtaining the second detection data of the intelligent desk lamp at the second time interval, the method further includes:
judging whether the table lamp user is in an operation mode or not according to the second detection data;
if the desk lamp is in the operation mode, determining the handedness of the user of the desk lamp according to the second detection data;
searching a compensation height and a compensation angle from a preset second mapping table according to the handedness, and taking the compensation height and the compensation angle as a target compensation height and a target compensation angle;
and controlling the operation compensation light-emitting component of the intelligent desk lamp to perform compensation illumination according to the target compensation height and the target compensation angle so as to compensate the shadow of the hand during operation.
This application has still provided an intelligent control device suitable for intelligence desk lamp, the device includes:
the intelligent desk lamp comprises a first judgment module, a second judgment module and a control module, wherein the first judgment module is used for acquiring first detection data of the intelligent desk lamp according to a first time interval and judging whether a desk lamp user exists in a desk lamp using area of the intelligent desk lamp or not based on the first detection data;
the second judgment module is used for acquiring second detection data of the intelligent desk lamp according to a second time interval if desk lamp users exist in a desk lamp use area of the intelligent desk lamp, and judging whether a target moving object is close to the desk lamp users or not based on the second detection data, wherein the second time interval is smaller than the first time interval;
the first illumination processing module is used for controlling each illumination light-emitting component of the intelligent desk lamp according to the ambient light data in the second detection data if no target moving object is close to the desk lamp user, otherwise, calculating the three-dimensional position of the top of the user's head, the three-dimensional position of each ambient light source and the three-dimensional position close to the top of the object according to the second detection data, calculating the ambient light shadow of the target moving object according to the three-dimensional position of each ambient light source and the three-dimensional position close to the top of the object, and judging whether the ambient light shadow influences the desk lamp user or not according to the three-dimensional position of the top of the user's head;
and the second illumination processing module is used for controlling each adjustable arm and each illumination light-emitting component of the intelligent desk lamp according to the ambient light data, the three-dimensional position of the top of the head of the user, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object and the ambient light shadow, or else, controlling each illumination light-emitting component according to the ambient light data, wherein each adjustable arm is provided with at least one illumination light-emitting component.
The present application also proposes a computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of:
acquiring first detection data of the intelligent desk lamp according to a first time interval, and judging whether a desk lamp user exists in a desk lamp using area of the intelligent desk lamp or not based on the first detection data;
if yes, second detection data of the intelligent desk lamp are obtained according to a second time interval, and whether a target moving object is close to the desk lamp user or not is judged based on the second detection data, wherein the second time interval is smaller than the first time interval;
if not, controlling each lighting luminous component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a user top three-dimensional position, each ambient light source three-dimensional position and a three-dimensional position close to the top of the object according to the second detection data, calculating an ambient light shadow of the target moving object according to each ambient light source three-dimensional position and the three-dimensional position close to the top of the object, and judging whether the ambient light shadow influences a user of the desk lamp or not according to the user top three-dimensional position;
if so, controlling each adjustable arm of the intelligent desk lamp and each illumination light-emitting component according to the ambient light data, the three-dimensional position of the top of the head of the user, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object close to the object and the ambient light shadow, otherwise, controlling each illumination light-emitting component according to the ambient light data, wherein at least one illumination light-emitting component is arranged on each adjustable arm.
The present application also proposes a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring first detection data of the intelligent desk lamp according to a first time interval, and judging whether a desk lamp user exists in a desk lamp using area of the intelligent desk lamp or not based on the first detection data;
if yes, second detection data of the intelligent desk lamp are obtained according to a second time interval, and whether a target moving object is close to the desk lamp user or not is judged based on the second detection data, wherein the second time interval is smaller than the first time interval;
if not, controlling each lighting luminous component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a user top three-dimensional position, each ambient light source three-dimensional position and a three-dimensional position close to the top of the object according to the second detection data, calculating an ambient light shadow of the target moving object according to each ambient light source three-dimensional position and the three-dimensional position close to the top of the object, and judging whether the ambient light shadow influences a user of the desk lamp or not according to the user top three-dimensional position;
if so, controlling each adjustable arm of the intelligent desk lamp and each illumination light-emitting component according to the ambient light data, the three-dimensional position of the top of the head of the user, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object close to the object and the ambient light shadow, otherwise, controlling each illumination light-emitting component according to the ambient light data, wherein at least one illumination light-emitting component is arranged on each adjustable arm.
According to the intelligent control method applicable to the intelligent desk lamp, whether a desk lamp user exists in a desk lamp using area of the intelligent desk lamp or not is judged based on the first detection data, and when the desk lamp user exists, the intelligent desk lamp is automatically controlled to work, so that the intelligent desk lamp is automatically controlled to be turned on to illuminate; through there being the desk lamp user to, there is the target activity object to be close to when the desk lamp user, based on ambient light data, judge whether there is according to the second detection data the ambient light shadow influences the desk lamp user if there is the ambient light shadow influences the desk lamp user, then according to the ambient light data use user top three dimensional position, each the ambient light source three dimensional position be close to object top three dimensional position with the ambient light shadow, control each adjustable arm and each of intelligent desk lamp illumination light emitting component to whether the stability of the illumination of object to the desk lamp user that has realized that automatic aassessment is close to the desk lamp user causes the influence, when the affirmation can cause the influence, through controlling each adjustable arm and each illumination light emitting component in order to ensure the stability of desk lamp user's illumination, avoid influencing the attention of desk lamp user, improved desk lamp user's work efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow diagram of an intelligent control method suitable for an intelligent desk lamp in one embodiment;
fig. 2 is a block diagram of an intelligent control device suitable for an intelligent desk lamp in one embodiment.
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 derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, in one embodiment, an intelligent control method suitable for an intelligent desk lamp is provided. The method is applied to the intelligent desk lamp, and the intelligent desk lamp comprises the following steps: the adjustable arm comprises a base, at least one adjustable arm and at least one lighting and illuminating component, wherein the lighting and illuminating component is installed on a first end of the adjustable arm, a second end, opposite to the first end, of the adjustable arm is installed on the base, and the lighting and illuminating component provides light to provide illumination. The intelligent control method suitable for the intelligent desk lamp specifically comprises the following steps:
s1: acquiring first detection data of the intelligent desk lamp according to a first time interval, and judging whether a desk lamp user exists in a desk lamp using area of the intelligent desk lamp or not based on the first detection data;
specifically, first detection data sent by a detection assembly of the intelligent desk lamp are acquired according to a preset first time interval.
Optionally, the detection component includes: the camera component adopts a wide-angle camera and is used for shooting images based on a wide angle, the camera component also can adopt a common camera, the camera component also can adopt a camera with an adjustable direction and is used for shooting a plurality of images through the adjustable direction for splicing, and the spliced images are used as first detection data.
Optionally, the detection assembly may further comprise a radar sensing element.
The table lamp use area is a predefined area. When someone is in the use area of the desk lamp, the intelligent desk lamp needs to work.
Specifically, first detection data of the intelligent desk lamp are acquired according to a first time interval, so that whether a user of the desk lamp exists in a desk lamp using area or not is detected regularly; and selecting a method for judging whether a table lamp user exists according to the type of the first detection data, and judging whether the table lamp user exists in a table lamp use area of the intelligent table lamp according to the selected method and the first detection data.
S2: if yes, second detection data of the intelligent desk lamp are obtained according to a second time interval, and whether a target moving object is close to the desk lamp user or not is judged based on the second detection data, wherein the second time interval is smaller than the first time interval;
optionally, the detection assembly further comprises: laser detectors and/or ultrasound detectors.
Specifically, if the target moving object exists, namely, it is determined that a table lamp user exists in a table lamp using area of the intelligent table lamp based on the first detection data, the intelligent table lamp needs to be started at the moment, therefore, a detection assembly of the intelligent table lamp is controlled to detect according to a preset second time interval to obtain second detection data, a method for judging whether the target moving object is close to the table lamp user or not is selected according to the type of the second detection data, and whether the target moving object is close to the table lamp user or not is judged according to the selected method and the second detection data, wherein the second time interval is smaller than the first time interval.
It is understood that whether a target moving object is close to the user of the table lamp may be determined based on an image photographed by the photographing part, wherein the second time interval is smaller than the first time interval, or whether a target moving object is close to the user of the table lamp may be determined based on a three-dimensional map constructed by data detected by the laser detector, wherein the second time interval is smaller than the first time interval, or whether a target moving object is close to the user of the table lamp may be determined based on data detected by the ultrasonic detector, wherein the second time interval is smaller than the first time interval.
It will be appreciated that the detection zone of the detection assembly may have many objects, and only objects close to the user of the table lamp will be referred to as target moving objects. The object close to the user of the table lamp is an object which has a decreasing distance from the user of the table lamp, wherein the object can be a human being, an object or an animal.
It can be understood that if it is determined that no user of the intelligent desk lamp exists in the desk lamp using area of the intelligent desk lamp based on the first detection data, the intelligent desk lamp needs to be controlled to be in a standby state. When the intelligent desk lamp is in a standby state, no illumination is provided.
Optionally, it is determined that a table lamp user exists in a table lamp using area of the intelligent table lamp based on the first detection data, and the intelligent table lamp is controlled to enter a working state; and when the intelligent desk lamp is in a working state, acquiring second detection data of the intelligent desk lamp according to a second time interval and a second time interval.
S3: if not, controlling each lighting light-emitting component of the intelligent table lamp according to the ambient light data in the second detection data, otherwise, calculating a user top three-dimensional position, each ambient light source three-dimensional position and a near object top three-dimensional position according to the second detection data, calculating an ambient light shadow of the target moving object according to each ambient light source three-dimensional position and the near object top three-dimensional position, and judging whether the ambient light shadow influences a user of the table lamp according to the user top three-dimensional position;
specifically, if not, that is, it is determined based on the second detection data that no target moving object is close to the user of the table lamp, the moving object does not need to be considered at this time, and therefore, the lighting control data is determined according to the ambient light data in the second detection data, and each lighting light-emitting component of the intelligent table lamp is controlled to operate according to the lighting control data. A moving object, i.e. a movable object.
The step of determining the light emission control data according to the ambient light data in the second detection data may be performed by searching in a mapping table, or by substituting the ambient light data into a preset algorithm, where the preset algorithm may be selected from the prior art, and is not described herein again.
Included in the lighting control data is control data for each of the lighting assemblies, including, but not limited to: a light intensity parameter and a color temperature parameter.
The environment light data are obtained by installing a light sensor on the intelligent desk lamp for detection.
Specifically, if it is determined that the target moving object is close to the table lamp user based on the second detection data, the influence of the moving object on the stability of the illumination of the table lamp user needs to be considered, and therefore, the three-dimensional position of the vertex of the head of the table lamp user is calculated as the three-dimensional position of the vertex of the user based on the second detection data, the three-dimensional position of the center point of each ambient light source is calculated as the three-dimensional position of each ambient light source based on the second detection data, and the three-dimensional position of the vertex of the target moving object is calculated as the three-dimensional position of the vertex of the close object based on the second detection data.
Wherein, the three-dimensional position of each ambient light source needs to be calculated based on the image shot by the camera shooting component; the three-dimensional position of the top of the human head and the three-dimensional position close to the top of the object can be calculated based on images shot by a camera, can also be calculated based on a three-dimensional map constructed by data detected by a laser detector, and can also be calculated based on data detected by an ultrasonic detector.
Each ambient light source forms an ambient light shadow on the target moving object, so that the shadow of the target moving object is calculated according to the position relationship between the three-dimensional position of each ambient light source and the three-dimensional position close to the top of the object, and is used as the ambient light shadow, namely, the ambient light shadow is a three-dimensional area in a three-dimensional space.
Based on preset work area calculation rules, according to the three-dimensional position of the top of the head of the user is used, the work area of the user of the table lamp is determined, and based on the overlapping relation between the environment light shadow and the work area of the user of the table lamp, whether the environment light shadow influences the user of the table lamp can be judged.
S4: if so, controlling each adjustable arm of the intelligent desk lamp and each illumination light-emitting component according to the ambient light data, the three-dimensional position of the top of the user's head, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object and the ambient light shadow, otherwise, controlling each illumination light-emitting component according to the ambient light data, wherein at least one illumination light-emitting component is arranged on each adjustable arm.
Specifically, if yes, that is, the ambient light shadow affects the user of the table lamp, a target moving object needs to be considered at this time, so that a target posture of each adjustable arm is determined according to the three-dimensional position of the top of the user, the three-dimensional positions of the ambient light sources and the three-dimensional position close to the top of the object, an azimuth angle and a pitch angle of each adjustable arm are adjusted according to each target posture, light emission control data are determined according to the ambient light data, and each lighting light emitting component of the intelligent table lamp is controlled to operate according to the light emission control data. Therefore, when influence is determined to be caused, the stability of illumination of a user of the table lamp is ensured by controlling each adjustable arm and each illumination light-emitting component, the attention of the user of the table lamp is prevented from being influenced, and the working efficiency of the user of the table lamp is improved.
If the ambient light shadow does not influence the user of the table lamp, a target moving object does not need to be considered at the moment, and therefore, the light-emitting control data are determined according to the ambient light data in the second detection data, and each lighting light-emitting component of the intelligent table lamp is controlled to work according to the light-emitting control data.
In the embodiment, whether a table lamp user exists in a table lamp using area of the intelligent table lamp is judged based on the first detection data, and when the table lamp user exists, the intelligent table lamp is automatically controlled to work, so that the intelligent table lamp is automatically controlled to be turned on for illumination; by the aid of the intelligent desk lamp, when a desk lamp user exists, when a target moving object is close to the desk lamp user, whether the environment light shadow influences the desk lamp user is judged according to second detection data based on environment light data, the user head top three-dimensional position, the environment light source three-dimensional positions, the object top three-dimensional position and the environment light shadow are used if the environment light shadow influences the desk lamp user, each adjustable arm and each illumination light-emitting component of the intelligent desk lamp are controlled according to the environment light data, the object top three-dimensional position and the environment light shadow, and accordingly, whether the object close to the desk lamp user influences the illumination stability of the desk lamp user is automatically evaluated, when influences are determined, the illumination stability of the desk lamp user is ensured by controlling each adjustable arm and each illumination light-emitting component, the attention of the desk lamp user is prevented from being influenced, and the working efficiency of the desk lamp user is improved.
In an embodiment, the step of determining whether a user of the intelligent desk lamp exists in a desk lamp using area of the intelligent desk lamp based on the first detection data includes:
s11: according to preset irradiation range configuration, an image area is intercepted from the first detection data, and an irradiation range image is obtained;
specifically, the preset illumination range configuration is a calculation method of a maximum illumination range based on the device parameter setting of the intelligent desk lamp; therefore, according to the preset illumination range configuration, the image area is intercepted from the first detection data, so that the image area in the illumination range of the intelligent desk lamp is obtained, and the intercepted image area is used as an illumination range image.
S12: inputting the irradiation range image into a preset human body recognition model for human body recognition to obtain a human body recognition result;
specifically, the irradiation range image is input into a preset human body recognition model for human body classification recognition, and a human body recognition result is determined according to a vector obtained by classification recognition.
The human body recognition model is used for recognizing whether the image contains a human body, and is a two-classification model. The human body recognition model is a model obtained based on neural network training, and a specific training method and a network structure can be selected from the prior art, which are not described herein again.
S13: if the human body recognition result is yes, determining that a user of the table lamp exists in the use area of the table lamp;
specifically, if the human body recognition result is yes, that is, a human body exists in the irradiation range image, it is determined that the user of the table lamp exists in the use area of the table lamp.
S14: and if the human body recognition result is negative, determining that the table lamp user does not exist in the table lamp using area.
Specifically, if the human body recognition result is negative, that is, there is no human body in the irradiation range image, it is determined that the table lamp user does not exist in the table lamp use area.
In the embodiment, the illumination range image is extracted from the first detection data based on the preset illumination range configuration, and then whether the illumination range image contains a human body is classified and predicted based on the human body recognition model, so that the judgment of whether a user of the table lamp exists or not is automatically carried out, and the automation degree of the application is improved; the accuracy of classification prediction is improved through the human body recognition model.
In one embodiment, the step of determining whether a target moving object is near the user of the table lamp based on the second detection data, wherein the second time interval is smaller than the first time interval, includes:
s21: based on a multi-target tracking method, carrying out object tracking on each image frame of the video clip in the second detection data to obtain an object tracking result;
specifically, based on the multi-target tracking method, the object tracking is performed on each image frame of the video segment in the second detection data, the position of each object in each image frame can be tracked, and the data obtained by tracking the object is used as the object tracking result.
The object tracking results include: an object identification and a set of image frame locations. The object identification is an object ID for uniquely identifying an object. Each image frame position in the set of image frame positions is a position in an image frame of the object identification corresponding object.
S22: judging whether the distance between the object and the user of the table lamp is in a decreasing trend or not according to the target tracking result;
specifically, the distance between each image frame position set in the target tracking result and the table lamp user is compared, so that whether the distance between the image frame position set and the table lamp user is reduced or not can be found out.
S23: if the target moving object exists, the object with the distance from the table lamp user in a decreasing trend is used as the target moving object, and the target moving object is determined to be close to the table lamp user;
specifically, if there is a tendency that the distance between the image frame position set and the user of the table lamp decreases, the object corresponding to the image frame position set in which the distance between the user of the table lamp decreases is determined as the target moving object, and it is determined that the target moving object is close to the user of the table lamp.
S24: if not, determining that no target moving object is close to the table lamp user.
Specifically, if not, i.e., there is no decreasing trend in the distance between the set of image frame locations and the user of the table lamp, it is determined that no target moving object is near the user of the table lamp.
The embodiment judges whether the distance between the object and the table lamp user is in a decreasing trend or not based on the tracking result of the multi-target tracking method for the image, realizes automatic judgment of whether a target moving object is close to the table lamp user or not, wherein the second time interval is smaller than the first time interval, and provides a basis for subsequent automatic evaluation of whether the object close to the table lamp user influences the stability of illumination of the table lamp user or not.
In one embodiment, the step of determining whether the ambient light shadow affecting the user of the table lamp exists according to the three-dimensional position of the top of the user's head comprises:
s31: calculating the working area of the user of the table lamp according to the three-dimensional position of the top of the head of the user;
specifically, the preset working area calculation rule is a calculation method of the maximum working area based on the equipment parameter setting of the intelligent desk lamp; and according to a preset working area calculation rule input by the user's head top three-dimensional position, calculating the working area of the user of the table lamp.
The working area is located in the horizontal plane of the lowest position of the intelligent table lamp. The user of the desk lamp is located in or at the edge of the work area. For example, the work area is located on the side of the user of the table lamp that is adjacent to the intelligent table lamp.
S32: judging whether the environment light shadow is overlapped with the working area or not;
specifically, if at least a part of any one of the ambient light shadows overlaps with the working area, it is determined that the ambient light shadow overlaps with the working area, and if there is no overlap between all the ambient light shadows and the working area, it is determined that the ambient light shadow does not overlap with the working area.
S33: if yes, determining that the environment light shadow influences the user of the table lamp;
specifically, if so, it is determined that the ambient light shadow overlaps the working area, and therefore, the presence of the ambient light shadow is determined to affect the user of the table lamp.
S34: if not, determining that the influence of the ambient light shadow on the user of the table lamp does not exist.
Specifically, if not, that is, there is no overlap of the ambient light shadow with the working area, it is determined that the absence of the ambient light shadow affects the user of the table lamp.
In the embodiment, the working area of the user of the table lamp is calculated based on the three-dimensional position of the top of the user's head, and then whether the environment light shadow influences the user of the table lamp is judged based on the overlapping relation between the working area and the environment light shadow, so that whether the influence of the environment light shadow influences the illumination stability of the user of the table lamp is accurately determined.
In one embodiment, the step of controlling each adjustable arm of the intelligent desk lamp and each of the illuminating and light-emitting assemblies according to the ambient light data, the three-dimensional position of the top of the human head, the three-dimensional position of each of the ambient light sources, the three-dimensional position of the top of the object, and the shadow of the ambient light comprises:
s411: determining a target posture of each adjustable arm according to the three-dimensional position of the top of the human head, the three-dimensional positions of the environmental light sources and the three-dimensional position of the top of the approaching object, and adjusting the azimuth angle and the pitch angle of each adjustable arm according to each target posture;
specifically, based on a mapping table, the target pose of each adjustable arm is determined according to the three-dimensional position of the top of the human head, the three-dimensional positions of the various ambient light sources and the three-dimensional position of the top of the approaching object.
It can be understood that the posture of each adjustable arm can be calculated by substituting the three-dimensional position of the top of the user, the three-dimensional positions of the ambient light sources and the three-dimensional position close to the top of the object into a posture calculation formula according to the posture calculation formula of each adjustable arm set by the equipment parameters of the intelligent desk lamp, and each posture obtained by calculation is taken as a target posture. The pose is the pose of the description within the pose.
And adjusting the azimuth angle and the pitch angle of each adjustable arm according to each target posture so as to adjust the irradiation area and the irradiation angle of each illumination light-emitting assembly.
S412: determining light emission control data according to the ambient light data, and performing compensation processing on the light emission control data according to the ambient light shadow and the three-dimensional position of the top of the user's head;
specifically, according to the ambient light data, light emitting control data is determined, so that the light emitting component of the intelligent desk lamp is controlled to emit light based on ambient light; calculating the working area of the user of the table lamp according to the three-dimensional position of the top of the head of the user; and compensating the control data of the illumination light-emitting component in the light-emitting control data according to the overlapping relation between the ambient light shadow and the working area, the overlapping relation between the illumination light-emitting component and the working area and a preset compensation configuration so as to eliminate the influence of the projection of the ambient light shadow on the working area and ensure the stability of illumination of a user of the table lamp.
Optionally, in another embodiment of the present application, the step of controlling each adjustable arm of the intelligent desk lamp and each lighting module according to the ambient light data, the three-dimensional position of the top of the human head, the three-dimensional position of each ambient light source, the three-dimensional position of the top of the object, and the ambient light shadow includes: determining a target posture of each adjustable arm according to the three-dimensional position of the top of the human head, the three-dimensional positions of the environmental light sources and the three-dimensional position of the top of the approaching object, and adjusting the azimuth angle and the pitch angle of each adjustable arm according to each target posture; determining lighting control data based on the ambient light data; and controlling each lighting light-emitting component to emit light according to the light-emitting control data.
Optionally, the second detection data further includes desktop reflected light detection data; and determining light-emitting control data according to the environment light data and the desktop reflected light detection data.
S413: acquiring a fine adjustment proportion corresponding to a fine adjustment button of the intelligent desk lamp;
optionally, the fine adjustment ratio of the fine adjustment button ranges from 0% to 100%, and may include 0%, or may include 100%, or may include a percentage between 0% and 100%.
Wherein, a user (including but not limited to a user of the desk lamp) can adjust a fine-tuning button of the intelligent desk lamp to achieve fine tuning of the light emission of each lighting light-emitting component.
S414: multiplying the fine tuning proportion by a range length value corresponding to each light-emitting parameter range in the light-emitting control data to obtain a single-parameter fine tuning value;
in particular, the range length value is the maximum value minus the minimum value of the same lighting parameter range.
S415: adding the lowest value of each light-emitting parameter range and the single-parameter fine adjustment value corresponding to the light-emitting parameter range respectively to obtain fine-adjusted control data;
specifically, the lowest value corresponding to the same light-emitting parameter range is added to the single-parameter fine adjustment value, and data obtained by adding the light-emitting parameter ranges is used as fine-adjusted control data.
S416: and controlling each illumination light-emitting component to emit light according to the fine-tuned control data.
In the embodiment, the target posture of each adjustable arm is determined according to the three-dimensional position of the top of the user's head, the three-dimensional positions of the ambient light sources and the three-dimensional position of the top of the object to be approached, so that when influence is determined, the stability of illumination of the user of the table lamp is ensured by controlling each adjustable arm and each illumination light-emitting component, the attention of the user of the table lamp is prevented from being influenced, and the working efficiency of the user of the table lamp is improved; the light-emitting control data are compensated according to the ambient light shadow and the three-dimensional position of the top of the head of the user, so that the ambient light difference between the ambient light and the ambient light detected by the detection assembly caused by the ambient light shadow is eliminated, the accuracy of the light-emitting control data is improved, and the stability of the illumination of the user of the table lamp is further ensured; the light emitting of the illuminating light-emitting component is finely adjusted through the fine adjustment proportion corresponding to the fine adjustment button, and the personalized use requirements are met.
In one embodiment, the step of controlling each of the illumination light emitting assemblies according to the ambient light data comprises:
s421: determining the working area of the user of the table lamp according to the three-dimensional position of the top of the head of the user based on a preset working area calculation rule;
s422: calculating the influence three-dimensional position of the target moving object according to the three-dimensional position of each environment light source, the three-dimensional position close to the top of the object and the working area;
when the target moving object moves to the position with influence on three-dimensional, part or all of the shadow of the movement of the target moving object is projected to the working area, and then the influence on the stability of the illumination of the user of the table lamp is caused.
S423: predicting the motion speed of the target moving object according to the second detection data;
specifically, a method of selecting a moving speed is selected according to the type of the second detection data, and a moving speed prediction is performed on the target moving object according to the selected method and the second detection data.
S424: calculating the influence duration according to the movement speed, the three-dimensional position close to the top of the object and the influence three-dimensional position;
specifically, the three-dimensional position close to the top of the object is subtracted from the influence three-dimensional position to obtain a distance difference; and dividing the distance difference by the movement speed to obtain the duration of influence.
S425: if the influence duration is less than or equal to the second time interval, taking the detection time of the second detection data as a start time, and controlling each adjustable arm and each lighting and illuminating component according to the ambient light data, the three-dimensional position of the top of the human head, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object and the ambient light shadow when the influence duration is spaced;
specifically, if the influence duration is less than or equal to the second time interval, this means that a target moving object may affect the stability of the illumination of the user of the table lamp before second detection data is obtained next time and analysis is started, and therefore, with the detection time of the second detection data as the start time and at the interval of the influence duration, the target moving object affects the stability of the illumination of the user of the table lamp, and then each of the adjustable arms and each of the illumination light emitting components are controlled according to the ambient light data, the three-dimensional position of the top of the user, each of the three-dimensional positions of the ambient light sources, the three-dimensional position of the top of the proximity object, and the shadow of the ambient light.
S426: and if the influential duration is longer than the second time interval, controlling each lighting and light-emitting component according to the ambient light data.
Specifically, if the duration of the influence is longer than the second time interval, this means that after the next acquisition of the second detection data and the start of the analysis, the target moving object may not affect the stability of the illumination of the user of the table lamp, and in order to reduce the misadjustment of the adjustable arm and the illumination light emitting component, the current period does not need to eliminate the influence of the object close to the user of the table lamp on the stability of the illumination of the user of the table lamp according to the predicted duration of the influence, so that each of the illumination light emitting components is controlled according to the ambient light data.
Optionally, if the detection result exists, the step of obtaining second detection data of the intelligent table lamp according to a second time interval includes: if the existence of the desk lamp users in the desk lamp using area of the intelligent desk lamp is judged based on the first detection data, taking preset default interval duration as the second time interval;
after the step of calculating the influence duration according to the motion speed, the three-dimensional position of the vertex of the human head and the ambient light shadow, the method further comprises the following steps: if the influencing time length is less than or equal to the second time interval, taking the default interval time length as the second time interval; if the influential duration is greater than the second time interval, a preset adjustment interval duration is taken as the second time interval, wherein the adjustment interval duration is less than the default interval duration. Therefore, when the influence duration is longer than the second time interval, the second time interval is shortened, so that the period for acquiring the second detection data for analysis is shortened, the stability influence of the object close to the user of the table lamp on the illumination of the user of the table lamp is quickened to be identified, and the stability of the illumination of the user of the table lamp is further ensured; and when the influencing time length is less than or equal to the second time interval, the second time interval is recovered to the default interval time length, so that the second detection data is prevented from being acquired for analysis frequently and with low effect, and the calculation amount is reduced.
According to the embodiment, the influence duration can be used for predicting the influence on the illumination stability of the user of the desk lamp caused by the target moving object after the detection time of the second detection data is the starting time, so that the advance prejudgment is realized, the influence on the illumination stability of the user of the desk lamp caused by the object close to the user of the desk lamp is eliminated in time, and the illumination stability of the user of the desk lamp is further improved; when the influence duration is less than or equal to the second time interval, each adjustable arm and each illumination light-emitting component are controlled according to the influence duration to eliminate the stability influence of the object close to the user of the table lamp on the illumination of the user of the table lamp, and when the influence duration is greater than the second time interval, the stability influence of the object close to the user of the table lamp on the illumination of the user of the table lamp is not eliminated in the current period, so that the illumination stability of the user of the table lamp is further ensured, the attention of the user of the table lamp is prevented from being influenced, and the working efficiency of the user of the table lamp is improved.
In an embodiment, after the step of acquiring the second detection data of the intelligent desk lamp at the second time interval, the method further includes:
s51: calculating the height of the top of the head of the user of the desk lamp according to the second detection data, and using the height of the top of the head of the user;
specifically, the height of the top of the head of the user of the table lamp may be calculated based on an image captured by a camera, the height of the top of the head of the user of the table lamp may be calculated based on data detected by a laser detector, and the height of the top of the head of the user of the table lamp may be calculated based on data detected by an ultrasonic detector.
It can be understood that the user's top head height is the distance between the horizontal plane of the lowest position of the intelligent desk lamp and the horizontal plane of the top of the user's head of the desk lamp.
S52: according to the height of the top of the user's head, the height of the table lamp is searched from a preset first mapping table to obtain the height of a target table lamp;
the first mapping table includes: overhead height range and table lamp height.
Specifically, the vertex height range including the user vertex height is searched in each vertex height range of a preset first mapping table, and the table lamp height corresponding to the searched vertex height range in the first mapping table packet is used as the target table lamp height.
S53: and controlling the height of each lighting light-emitting component according to the height of the target table lamp.
Specifically, according to the height of the target table lamp, the intelligent table lamp is controlled to adjust the height of each lighting light-emitting component, so that the height of each lighting light-emitting component is not higher than the height of the target table lamp.
The height of each lighting light-emitting component is adjusted according to the height of the top of the head of a user, so that the height of each lighting light-emitting component meets the height of the user of the table lamp, and the requirements of different users of the table lamp are met.
In an embodiment, after the step of acquiring the second detection data of the intelligent desk lamp at the second time interval, the method further includes:
s61: judging whether the user of the table lamp is in an operation mode or not according to the second detection data;
specifically, the image in the second detection data is input into a preset operation model classification model for classification prediction, so as to determine whether the table lamp user is in an operation mode.
When the table lamp user writes, draws, creates and welds, the hand holds the tool in the work area, and at this moment, the table lamp user is in the operation mode.
The operation model classification model is a binary classification model. The operation model classification model is a model obtained based on neural network training, and a specific training method and a network structure can be selected from the prior art, which are not described herein again.
S62: if the desk lamp is in the operation mode, determining the handedness of the user of the desk lamp according to the second detection data;
specifically, if the desk lamp is in the working mode, that is, the user of the desk lamp is writing, and therefore working light compensation is required, the image in the second detection data is input into a preset handedness classification model for classification prediction, so as to determine the handedness of the user of the desk lamp.
Values used by hand include: left-handed work or right-handed work.
The handedness classification model is a binary classification model. The handedness habit classification model is a model obtained based on neural network training, and a specific training method and a network structure can be selected from the prior art, which are not described herein again.
S63: according to the handedness, searching a compensation height and a compensation angle from a preset second mapping table to serve as a target compensation height and a target compensation angle;
the second mapping table includes: the operation is by hand, compensate height and compensation angle.
Specifically, according to the handedness, searching in each operation handedness in a preset second mapping table, taking the compensation height of the searched operation handedness in the second mapping table as a target compensation height, and taking the compensation angle of the searched operation handedness in the second mapping table as a target compensation angle.
S64: and controlling the operation compensation light-emitting component of the intelligent desk lamp to perform compensation illumination according to the target compensation height and the target compensation angle so as to compensate the shadow of the hand during operation.
Specifically, the position of the work compensation light-emitting component of the intelligent desk lamp is controlled according to the target compensation height and the target compensation angle, and the work compensation light-emitting component is turned on to compensate the shadow of the hand during work.
Optionally, the operation compensation light emitting assembly includes an adjustable bracket and a light emitting component, the light emitting component is located at a first end of the adjustable bracket, and a second end of the adjustable bracket opposite to the first end is mounted on the base; and adjusting the height adjustment of the adjustable support according to the target compensation height, and adjusting the rotation angle of the adjustable support according to the target compensation angle. It will be appreciated that the task of compensating the height of the light emitting assembly in providing the compensated light emission is less than the height of the illumination light emitting assembly.
Optionally, when the user faces the intelligent table lamp, if the habit of the hand is right hand, the operation compensation light-emitting assembly performs illumination compensation from the left side of the user; if the habit of the hand is left-handed, the operation compensation light-emitting component carries out illumination compensation from the right side of the user of the table lamp.
According to the intelligent desk lamp, the operation compensation light-emitting component of the intelligent desk lamp is controlled to perform compensation illumination according to the target compensation height and the target compensation angle, so that the shadow of the hand during operation is compensated, the shadow generated by the hand during writing is eliminated, the attention of a desk lamp user is prevented from being influenced, and the working efficiency of the desk lamp user is improved.
As shown in fig. 2, the present application further provides an intelligent control device suitable for an intelligent desk lamp, the device includes:
the first judging module 801 is configured to acquire first detection data of the intelligent desk lamp according to a first time interval, and judge whether a desk lamp user exists in a desk lamp using area of the intelligent desk lamp based on the first detection data;
a second determining module 802, configured to, if a user of the desk lamp exists in a desk lamp using area of the intelligent desk lamp, obtain second detection data of the intelligent desk lamp according to a second time interval, and determine, based on the second detection data, whether a target moving object is close to the user of the desk lamp, where the second time interval is smaller than the first time interval;
a first lighting processing module 803, configured to control each lighting light emitting component of the intelligent table lamp according to the ambient light data in the second detection data if no target moving object is close to the user of the table lamp, otherwise, calculate a three-dimensional position of a top of the user, three-dimensional positions of each ambient light source, and a three-dimensional position close to the top of the object according to the second detection data, calculate an ambient light shadow of the target moving object according to the three-dimensional position of each ambient light source and the three-dimensional position close to the top of the object, and determine whether the ambient light shadow affects the user of the table lamp according to the three-dimensional position of the top of the user;
a second lighting processing module 804, configured to control each adjustable arm and each lighting light emitting component of the intelligent desk lamp according to the ambient light data, the three-dimensional position of the top of the user's head, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object, and the ambient light shadow if the ambient light shadow affects the user of the desk lamp, or control each lighting light emitting component according to the ambient light data, where at least one lighting light emitting component is provided on each adjustable arm.
In the embodiment, whether a table lamp user exists in a table lamp using area of the intelligent table lamp is judged based on the first detection data, and when the table lamp user exists, the intelligent table lamp is automatically controlled to work, so that the intelligent table lamp is automatically controlled to be turned on for illumination; by the aid of the intelligent desk lamp, when a desk lamp user exists, when a target moving object is close to the desk lamp user, whether the environment light shadow influences the desk lamp user is judged according to second detection data based on environment light data, the user head top three-dimensional position, the environment light source three-dimensional positions, the object top three-dimensional position and the environment light shadow are used if the environment light shadow influences the desk lamp user, each adjustable arm and each illumination light-emitting component of the intelligent desk lamp are controlled according to the environment light data, the object top three-dimensional position and the environment light shadow, and accordingly, whether the object close to the desk lamp user influences the illumination stability of the desk lamp user is automatically evaluated, when influences are determined, the illumination stability of the desk lamp user is ensured by controlling each adjustable arm and each illumination light-emitting component, the attention of the desk lamp user is prevented from being influenced, and the working efficiency of the desk lamp user is improved.
In one embodiment, an intelligent desk lamp is proposed, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
acquiring first detection data of the intelligent desk lamp according to a first time interval, and judging whether a desk lamp user exists in a desk lamp using area of the intelligent desk lamp or not based on the first detection data;
if yes, second detection data of the intelligent desk lamp are obtained according to a second time interval, and whether a target moving object is close to a user of the desk lamp or not is judged based on the second detection data, wherein the second time interval is smaller than the first time interval;
if not, controlling each lighting luminous component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a user top three-dimensional position, each ambient light source three-dimensional position and a three-dimensional position close to the top of the object according to the second detection data, calculating an ambient light shadow of the target moving object according to each ambient light source three-dimensional position and the three-dimensional position close to the top of the object, and judging whether the ambient light shadow influences a user of the desk lamp or not according to the user top three-dimensional position;
if so, controlling each adjustable arm of the intelligent desk lamp and each illumination light-emitting component according to the ambient light data, the three-dimensional position of the top of the user's head, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object and the ambient light shadow, otherwise, controlling each illumination light-emitting component according to the ambient light data, wherein at least one illumination light-emitting component is arranged on each adjustable arm.
In the embodiment, whether a table lamp user exists in a table lamp using area of the intelligent table lamp is judged based on the first detection data, and when the table lamp user exists, the intelligent table lamp is automatically controlled to work, so that the intelligent table lamp is automatically controlled to be turned on for illumination; by the aid of the intelligent desk lamp, when a desk lamp user exists, when a target moving object is close to the desk lamp user, whether the environment light shadow influences the desk lamp user is judged according to second detection data based on environment light data, the user head top three-dimensional position, the environment light source three-dimensional positions, the object top three-dimensional position and the environment light shadow are used if the environment light shadow influences the desk lamp user, each adjustable arm and each illumination light-emitting component of the intelligent desk lamp are controlled according to the environment light data, the object top three-dimensional position and the environment light shadow, and accordingly, whether the object close to the desk lamp user influences the illumination stability of the desk lamp user is automatically evaluated, when influences are determined, the illumination stability of the desk lamp user is ensured by controlling each adjustable arm and each illumination light-emitting component, the attention of the desk lamp user is prevented from being influenced, and the working efficiency of the desk lamp user is improved.
In one embodiment, a computer device is proposed, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
acquiring first detection data of the intelligent desk lamp according to a first time interval, and judging whether a desk lamp user exists in a desk lamp using area of the intelligent desk lamp or not based on the first detection data;
if yes, second detection data of the intelligent desk lamp are obtained according to a second time interval, and whether a target moving object is close to a user of the desk lamp or not is judged based on the second detection data, wherein the second time interval is smaller than the first time interval;
if not, controlling each lighting luminous component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a user top three-dimensional position, each ambient light source three-dimensional position and a three-dimensional position close to the top of the object according to the second detection data, calculating an ambient light shadow of the target moving object according to each ambient light source three-dimensional position and the three-dimensional position close to the top of the object, and judging whether the ambient light shadow influences a user of the desk lamp or not according to the user top three-dimensional position;
if so, controlling each adjustable arm of the intelligent desk lamp and each illumination light-emitting component according to the ambient light data, the three-dimensional position of the top of the head of the user, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object close to the object and the ambient light shadow, otherwise, controlling each illumination light-emitting component according to the ambient light data, wherein at least one illumination light-emitting component is arranged on each adjustable arm.
In the embodiment, whether a table lamp user exists in a table lamp using area of the intelligent table lamp is judged based on the first detection data, and when the table lamp user exists, the intelligent table lamp is automatically controlled to work, so that the intelligent table lamp is automatically controlled to be turned on for illumination; through there being the desk lamp user to, there is the target activity object to be close to when the desk lamp user, based on ambient light data, judge whether there is according to the second detection data the ambient light shadow influences the desk lamp user if there is the ambient light shadow influences the desk lamp user, then according to the ambient light data use user top three dimensional position, each the ambient light source three dimensional position be close to object top three dimensional position with the ambient light shadow, control each adjustable arm and each of intelligent desk lamp illumination light emitting component to whether the stability of the illumination of object to the desk lamp user that has realized that automatic aassessment is close to the desk lamp user causes the influence, when the affirmation can cause the influence, through controlling each adjustable arm and each illumination light emitting component in order to ensure the stability of desk lamp user's illumination, avoid influencing the attention of desk lamp user, improved desk lamp user's work efficiency.
In one embodiment, a computer-readable storage medium is proposed, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of:
acquiring first detection data of the intelligent desk lamp according to a first time interval, and judging whether a desk lamp user exists in a desk lamp using area of the intelligent desk lamp or not based on the first detection data;
if yes, second detection data of the intelligent desk lamp are obtained according to a second time interval, and whether a target moving object is close to a user of the desk lamp or not is judged based on the second detection data, wherein the second time interval is smaller than the first time interval;
if not, controlling each lighting luminous component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a user top three-dimensional position, each ambient light source three-dimensional position and a three-dimensional position close to the top of the object according to the second detection data, calculating an ambient light shadow of the target moving object according to each ambient light source three-dimensional position and the three-dimensional position close to the top of the object, and judging whether the ambient light shadow influences a user of the desk lamp or not according to the user top three-dimensional position;
if so, controlling each adjustable arm of the intelligent desk lamp and each illumination light-emitting component according to the ambient light data, the three-dimensional position of the top of the user's head, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object and the ambient light shadow, otherwise, controlling each illumination light-emitting component according to the ambient light data, wherein at least one illumination light-emitting component is arranged on each adjustable arm.
In the embodiment, whether a table lamp user exists in a table lamp using area of the intelligent table lamp is judged based on the first detection data, and when the table lamp user exists, the intelligent table lamp is automatically controlled to work, so that the intelligent table lamp is automatically controlled to be turned on for illumination; by the aid of the intelligent desk lamp, when a desk lamp user exists, when a target moving object is close to the desk lamp user, whether the environment light shadow influences the desk lamp user is judged according to second detection data based on environment light data, the user head top three-dimensional position, the environment light source three-dimensional positions, the object top three-dimensional position and the environment light shadow are used if the environment light shadow influences the desk lamp user, each adjustable arm and each illumination light-emitting component of the intelligent desk lamp are controlled according to the environment light data, the object top three-dimensional position and the environment light shadow, and accordingly, whether the object close to the desk lamp user influences the illumination stability of the desk lamp user is automatically evaluated, when influences are determined, the illumination stability of the desk lamp user is ensured by controlling each adjustable arm and each illumination light-emitting component, the attention of the desk lamp user is prevented from being influenced, and the working efficiency of the desk lamp user is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct Rambus Dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An intelligent control method suitable for an intelligent desk lamp, the method comprising:
acquiring first detection data of the intelligent desk lamp according to a first time interval, and judging whether a desk lamp user exists in a desk lamp using area of the intelligent desk lamp or not based on the first detection data;
if yes, second detection data of the intelligent desk lamp are obtained according to a second time interval, and whether a target moving object is close to a user of the desk lamp or not is judged based on the second detection data, wherein the second time interval is smaller than the first time interval;
if not, controlling each lighting luminous component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a user top three-dimensional position, each ambient light source three-dimensional position and a three-dimensional position close to the top of the object according to the second detection data, calculating an ambient light shadow of the target moving object according to each ambient light source three-dimensional position and the three-dimensional position close to the top of the object, and judging whether the ambient light shadow influences a user of the desk lamp or not according to the user top three-dimensional position;
if so, controlling each adjustable arm of the intelligent desk lamp and each illumination light-emitting component according to the ambient light data, the three-dimensional position of the top of the head of the user, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object close to the object and the ambient light shadow, otherwise, controlling each illumination light-emitting component according to the ambient light data, wherein at least one illumination light-emitting component is arranged on each adjustable arm.
2. The intelligent control method for an intelligent desk lamp as claimed in claim 1, wherein the step of determining whether a target moving object is close to the user of the desk lamp based on the second detection data, wherein the second time interval is smaller than the first time interval, comprises:
based on a multi-target tracking method, carrying out object tracking on each image frame of the video clip in the second detection data to obtain an object tracking result;
judging whether the distance between the object and the table lamp user is in a decreasing trend or not according to the target tracking result;
if the target moving object exists, the object which is at a decreasing trend of the distance from the user of the table lamp is used as the target moving object, and the target moving object is determined to be close to the user of the table lamp;
if not, determining that no target moving object is close to the table lamp user.
3. The intelligent control method for the intelligent desk lamp as claimed in claim 1, wherein the step of determining whether the ambient light shadow affecting the user of the desk lamp exists according to the three-dimensional position of the top of the user's head comprises:
calculating the working area of the user of the table lamp according to the three-dimensional position of the top of the head of the user;
judging whether the environment light shadow is overlapped with the working area or not;
if yes, determining that the environment light shadow influences the user of the table lamp;
if not, determining that the influence of the ambient light shadow on the user of the table lamp does not exist.
4. The intelligent control method for an intelligent desk lamp as recited in claim 1, wherein the step of controlling each adjustable arm and each lighting assembly of the intelligent desk lamp according to the ambient light data, the three-dimensional position of the human crown, the three-dimensional position of each ambient light source, the three-dimensional position of the near-object top, and the ambient light shadow comprises:
determining a target posture of each adjustable arm according to the three-dimensional position of the top of the human head, the three-dimensional positions of the environmental light sources and the three-dimensional position of the top of the approaching object, and adjusting the azimuth angle and the pitch angle of each adjustable arm according to each target posture;
determining light-emitting control data according to the ambient light data, and performing compensation processing on the light-emitting control data according to the ambient light shadow and the three-dimensional position of the vertex of the user;
acquiring a fine adjustment proportion corresponding to a fine adjustment button of the intelligent desk lamp;
multiplying the fine tuning proportion by a range length value corresponding to each light-emitting parameter range in the light-emitting control data to obtain a single-parameter fine tuning value;
adding the lowest value of each light-emitting parameter range and the single-parameter fine adjustment value corresponding to the light-emitting parameter range respectively to obtain fine-adjusted control data;
and controlling each illumination light-emitting component to emit light according to the fine-tuned control data.
5. The intelligent control method for an intelligent desk lamp as recited in claim 1, wherein the step of controlling each of the lighting and lighting assemblies according to the ambient light data comprises:
determining the working area of the user of the table lamp according to the three-dimensional position of the top of the head of the user based on a preset working area calculation rule;
calculating the influence three-dimensional position of the target moving object according to the three-dimensional position of each ambient light source, the three-dimensional position close to the top of the object and the working area;
predicting the motion speed of the target moving object according to the second detection data;
calculating influence duration according to the movement speed, the three-dimensional position close to the top of the object and the influence three-dimensional position;
if the influence duration is less than or equal to the second time interval, taking the detection time of the second detection data as a start time, and controlling each adjustable arm and each lighting and illuminating component according to the ambient light data, the three-dimensional position of the top of the human head, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object and the ambient light shadow when the influence duration is spaced;
and if the influencing duration is longer than the second time interval, controlling each illumination light-emitting component according to the ambient light data.
6. The intelligent control method for an intelligent desk lamp as claimed in claim 1, wherein after the step of obtaining the second detection data of the intelligent desk lamp at the second time interval, the method further comprises:
calculating the height of the top of the head of the user of the desk lamp according to the second detection data, and using the height of the top of the head of the user;
according to the height of the top of the user's head, the height of the table lamp is searched from a preset first mapping table to obtain the height of a target table lamp;
and controlling the height of each lighting light-emitting component according to the height of the target desk lamp.
7. The intelligent control method for an intelligent desk lamp as claimed in claim 1, wherein after the step of obtaining the second detection data of the intelligent desk lamp at the second time interval, the method further comprises:
judging whether the user of the table lamp is in an operation mode or not according to the second detection data;
if the desk lamp is in the operation mode, determining the handedness of the user of the desk lamp according to the second detection data;
according to the handedness, searching a compensation height and a compensation angle from a preset second mapping table to serve as a target compensation height and a target compensation angle;
and controlling the operation compensation light-emitting component of the intelligent desk lamp to perform compensation illumination according to the target compensation height and the target compensation angle so as to compensate the shadow of the hand during operation.
8. An intelligent control device suitable for an intelligent desk lamp, the device comprising:
the intelligent desk lamp comprises a first judging module, a second judging module and a third judging module, wherein the first judging module is used for acquiring first detection data of the intelligent desk lamp according to a first time interval and judging whether a desk lamp user exists in a desk lamp using area of the intelligent desk lamp or not based on the first detection data;
the second judgment module is used for acquiring second detection data of the intelligent desk lamp according to a second time interval if desk lamp users exist in a desk lamp use area of the intelligent desk lamp, and judging whether a target moving object is close to the desk lamp users or not based on the second detection data, wherein the second time interval is smaller than the first time interval;
the first illumination processing module is used for controlling each illumination light-emitting component of the intelligent desk lamp according to the ambient light data in the second detection data if no target moving object is close to the desk lamp user, otherwise, calculating the three-dimensional position of the top of the user's head, the three-dimensional position of each ambient light source and the three-dimensional position close to the top of the object according to the second detection data, calculating the ambient light shadow of the target moving object according to the three-dimensional position of each ambient light source and the three-dimensional position close to the top of the object, and judging whether the ambient light shadow influences the desk lamp user or not according to the three-dimensional position of the top of the user's head;
and the second illumination processing module is used for controlling each adjustable arm and each illumination light-emitting component of the intelligent desk lamp according to the ambient light data, the three-dimensional position of the top of the head of the user, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object and the ambient light shadow if the ambient light shadow influences the user of the desk lamp, or controlling each illumination light-emitting component according to the ambient light data, wherein at least one illumination light-emitting component is arranged on each adjustable arm.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
10. An intelligent desk lamp comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the method of any one of claims 1 to 7.
CN202211392194.5A 2022-11-08 2022-11-08 Intelligent control method and device suitable for intelligent desk lamp, desk lamp and medium Active CN115734436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211392194.5A CN115734436B (en) 2022-11-08 2022-11-08 Intelligent control method and device suitable for intelligent desk lamp, desk lamp and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211392194.5A CN115734436B (en) 2022-11-08 2022-11-08 Intelligent control method and device suitable for intelligent desk lamp, desk lamp and medium

Publications (2)

Publication Number Publication Date
CN115734436A true CN115734436A (en) 2023-03-03
CN115734436B CN115734436B (en) 2023-08-08

Family

ID=85294883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211392194.5A Active CN115734436B (en) 2022-11-08 2022-11-08 Intelligent control method and device suitable for intelligent desk lamp, desk lamp and medium

Country Status (1)

Country Link
CN (1) CN115734436B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0785977A (en) * 1993-09-14 1995-03-31 Matsushita Electric Works Ltd Lighting control system
CN109587875A (en) * 2018-11-16 2019-04-05 厦门盈趣科技股份有限公司 A kind of intelligent desk lamp and its adjusting method
CN114333073A (en) * 2022-03-10 2022-04-12 启东晶尧光电科技有限公司 Intelligent table lamp auxiliary adjusting method and system based on visual perception
CN115076663A (en) * 2022-06-30 2022-09-20 深圳市沃特沃德信息有限公司 Method, device, equipment and medium for reducing illumination shadow of table lamp

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0785977A (en) * 1993-09-14 1995-03-31 Matsushita Electric Works Ltd Lighting control system
CN109587875A (en) * 2018-11-16 2019-04-05 厦门盈趣科技股份有限公司 A kind of intelligent desk lamp and its adjusting method
CN114333073A (en) * 2022-03-10 2022-04-12 启东晶尧光电科技有限公司 Intelligent table lamp auxiliary adjusting method and system based on visual perception
CN115076663A (en) * 2022-06-30 2022-09-20 深圳市沃特沃德信息有限公司 Method, device, equipment and medium for reducing illumination shadow of table lamp

Also Published As

Publication number Publication date
CN115734436B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
US10705604B2 (en) Eye tracking apparatus and light source control method thereof
US11752635B2 (en) Mobile robot performing multiple detections using image frames of same optical sensor
US11163994B2 (en) Method and device for determining iris recognition image, terminal apparatus, and storage medium
CN110378216B (en) Target detection method, target detection device, image pickup apparatus, and storage medium
JP6870474B2 (en) Gaze detection computer program, gaze detection device and gaze detection method
CN117082691B (en) Intelligent adjusting method and system for medical shadowless lamp
JP2021085683A (en) Object detection system using TOF sensor
GB2475380A (en) A Distributed Agile Illumination System
EP3217317A1 (en) Biometric authentication device, biometric authentication method, and biometric authentication program
CN115734436B (en) Intelligent control method and device suitable for intelligent desk lamp, desk lamp and medium
JP2014024411A (en) Self-emitting light source detection device, light control device and self-emitting light source detection program
JP7228885B2 (en) Pupil detector
JP2016183890A (en) Self-position calculation device and self-position calculation method
CN111856866A (en) Projection device and operation method thereof
CN115022553A (en) Dynamic control method and device for light supplement lamp
EP3832533A1 (en) Face illumination control system and method
JP7375806B2 (en) Image processing device and image processing method
JP2004028874A (en) Range finder device, and device and method for detecting object
JP2019156276A (en) Vehicle detection method and vehicle detection device
JP2021174089A (en) Information processing device, information processing system, information processing method and program
JP2022072328A (en) Object detector
KR20010088884A (en) Method for detecting real time of moving object
CN109981993B (en) Depth camera projector power consumption control method and application thereof
US11398045B2 (en) Three-dimensional imaging device and three-dimensional imaging condition adjusting method
US11297254B2 (en) Image processing device, image processing method, and non-transitory recording medium

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