CN115734436B - 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
CN115734436B
CN115734436B CN202211392194.5A CN202211392194A CN115734436B CN 115734436 B CN115734436 B CN 115734436B CN 202211392194 A CN202211392194 A CN 202211392194A CN 115734436 B CN115734436 B CN 115734436B
Authority
CN
China
Prior art keywords
desk lamp
user
ambient light
dimensional position
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.)
Active
Application number
CN202211392194.5A
Other languages
Chinese (zh)
Other versions
CN115734436A (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

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 table lamp, the table lamp and a medium, wherein the method comprises the following steps: judging whether a desk lamp user exists in a desk lamp use area of the intelligent desk lamp based on the first detection data; if so, judging whether a target moving object approaches to a desk lamp user 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 the ambient light shadow influences a desk lamp user according to the second detection data; if so, controlling the adjustable arm and the illumination light-emitting components according to the ambient light data in the second detection data and the three-dimensional position of the top of the user head, the three-dimensional position of each ambient light source, the three-dimensional position close to the top of the object and the ambient light shadow determined based on the second detection data, otherwise, controlling each illumination light-emitting component according to the ambient light data. The stability of illumination of a 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 table lamp, the table lamp and a medium.
Background
When a desk lamp is used, a user usually performs relatively focused work such as writing, drawing, creation, welding and the like. In doing these more focused tasks, the human attention is highly focused and thus the lighting stability requirements are high. When external object is close to the desk lamp user, the object shields the ambient light source, so that the shielding can influence the illumination stability of the desk lamp user, the attention of the desk lamp user is influenced, and the working efficiency is reduced. The inventors found that there is no desk lamp that adaptively adjusts to ensure the stability of illumination of a desk lamp user according to an object approaching the desk lamp user.
Disclosure of Invention
Based on this, it is necessary to provide an intelligent control method, device, desk lamp and medium suitable for intelligent desk lamp, aiming at the technical problem that no desk lamp capable of adaptively adjusting to ensure the illumination stability of the desk lamp user according to the object approaching the desk lamp user exists at present.
The application provides an intelligent control method suitable for an intelligent desk lamp, which comprises the following steps:
acquiring first detection data of an intelligent table lamp according to a first time interval, and judging whether a table lamp user exists in a table lamp use area of the intelligent table lamp based on the first detection data;
if so, acquiring second detection data of the intelligent table lamp according to a second time interval, and judging whether a target movable object is close to a table lamp user or not based on the second detection data, wherein the second time interval is smaller than the first time interval;
if not, controlling each lighting component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a user head 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 movable 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 affects the desk lamp user according to the user head top three-dimensional position;
If yes, controlling each adjustable arm and each illumination and light-emitting component of the intelligent table lamp according to the ambient light data, the three-dimensional position of the top of the user, the three-dimensional position of each ambient light source, the three-dimensional position of the top of the user close to the object and the ambient light shadow, otherwise, controlling each illumination and light-emitting component according to the ambient light data, wherein at least one illumination and light-emitting component is arranged on each adjustable arm.
Further, the step of determining whether the target moving object is close to the desk lamp user based on the second detection data, wherein the second time interval is smaller than the first time interval includes:
performing object tracking on each image frame of the video segment in the second detection data based on a multi-target tracking method to obtain an object tracking result;
judging whether the distance between the object and the desk lamp user is in a decreasing trend or not according to the target tracking result;
if the target activity object exists, an object with a decreasing trend of the distance between the target activity object and the desk lamp user is taken as the target activity object, and the situation that the target activity object is close to the desk lamp user is determined;
If the target moving object does not exist, the fact that the target moving object is close to the desk lamp user is determined.
Further, the step of determining whether the ambient light shadow affects the desk lamp user according to the three-dimensional position of the top of the user head includes:
according to the three-dimensional position of the top of the user, calculating the working area of the user of the desk lamp;
judging whether the ambient light shadow is overlapped with the working area or not;
if yes, determining that the ambient light shadow affects the desk lamp user;
if not, determining that the ambient light shadow does not influence the desk lamp user.
Further, the step of controlling each adjustable arm of the intelligent desk lamp and each illumination and lighting assembly according to the ambient light data, the three-dimensional position of the top of the user, the three-dimensional position of each ambient light source, the three-dimensional position of the top of the object, 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 user, the three-dimensional positions of the ambient 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 luminous control data according to the ambient light data, and performing compensation processing on the luminous control data according to the ambient light shadow and the overhead three-dimensional position of the user;
acquiring a fine adjustment proportion corresponding to a fine adjustment button of the intelligent table 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;
respectively adding the lowest value of each light-emitting parameter range and the single-parameter trimming value corresponding to the light-emitting parameter range to obtain trimming control data;
and controlling each illumination and luminous component to emit light according to the fine-tuned control data.
Further, the step of controlling each of the illumination light assemblies according to the ambient light data includes:
determining a working area of the user of the desk lamp according to the three-dimensional position of the head of the user based on a preset working area calculation rule;
calculating the affected three-dimensional position of the target movable object according to the three-dimensional position of each environmental light source, the three-dimensional position close to the top of the object and the working area;
According to the second detection data, predicting the motion speed of the target moving object;
calculating the influencing time length according to the movement speed, the three-dimensional position close to the top of the object and the influencing three-dimensional position;
if the affected 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 illumination and light-emitting component according to the ambient light data, the user head top three-dimensional position, each ambient light source three-dimensional position, the near object top three-dimensional position and the ambient light shadow when the affected duration is spaced;
and if the influencing time period 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 table lamp at the second time interval, the method further includes:
according to the second detection data, calculating the head top height of the user of the desk lamp as the head top height of the user;
searching the height of the desk lamp from a preset first mapping table according to the head top height of the user to obtain the height of the target desk lamp;
And controlling the height of each illumination and luminous assembly according to the height of the target table lamp.
Further, after the step of obtaining the second detection data of the intelligent table lamp at the second time interval, the method further includes:
judging whether the desk lamp user is in an operation mode or not according to the second detection data;
if the table lamp is in the operation mode, determining handedness of a user of the table 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 luminous component of the intelligent desk lamp to carry out compensation illumination according to the target compensation height and the target compensation angle so as to be used for compensating the shadow of the hand during operation.
The application still provides an intelligent control device suitable for intelligent desk lamp, the device includes:
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 use area of the intelligent desk lamp or not based on the first detection data;
the second judging module is used for acquiring second detection data of the intelligent table lamp according to a second time interval if a table lamp user exists in a table lamp use area of the intelligent table lamp, and judging whether a target movable object is close to the table lamp user 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 movable object approaches the desk lamp user, otherwise, calculating the three-dimensional position of the top of the user, the three-dimensional position of each ambient light source and the three-dimensional position of the top of the object according to the second detection data, calculating the ambient light shadow of the target movable object according to each of the three-dimensional positions of the ambient light source and the three-dimensional position of the top of the object, and judging whether the ambient light shadow affects the desk lamp user according to the three-dimensional position of the top of the user;
and the second illumination processing module is used for controlling each adjustable arm and each illumination and light-emitting component of the intelligent desk lamp according to the ambient light data, the three-dimensional position of the top 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 object and the ambient light shadow if the ambient light shadow influences the user of the desk lamp, or controlling each illumination and light-emitting component according to the ambient light data, wherein at least one illumination and light-emitting component is arranged on each adjustable arm.
The 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 perform the steps of:
acquiring first detection data of an intelligent table lamp according to a first time interval, and judging whether a table lamp user exists in a table lamp use area of the intelligent table lamp based on the first detection data;
if so, acquiring second detection data of the intelligent table lamp according to a second time interval, and judging whether a target movable object is close to a table lamp user or not based on the second detection data, wherein the second time interval is smaller than the first time interval;
if not, controlling each lighting component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a user head 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 movable 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 affects the desk lamp user according to the user head top three-dimensional position;
If yes, controlling each adjustable arm and each illumination and light-emitting component of the intelligent table lamp according to the ambient light data, the three-dimensional position of the top of the user, the three-dimensional position of each ambient light source, the three-dimensional position of the top of the user close to the object and the ambient light shadow, otherwise, controlling each illumination and light-emitting component according to the ambient light data, wherein at least one illumination and 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 an intelligent table lamp according to a first time interval, and judging whether a table lamp user exists in a table lamp use area of the intelligent table lamp based on the first detection data;
if so, acquiring second detection data of the intelligent table lamp according to a second time interval, and judging whether a target movable object is close to a table lamp user or not based on the second detection data, wherein the second time interval is smaller than the first time interval;
if not, controlling each lighting component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a user head 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 movable 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 affects the desk lamp user according to the user head top three-dimensional position;
If yes, controlling each adjustable arm and each illumination and light-emitting component of the intelligent table lamp according to the ambient light data, the three-dimensional position of the top of the user, the three-dimensional position of each ambient light source, the three-dimensional position of the top of the user close to the object and the ambient light shadow, otherwise, controlling each illumination and light-emitting component according to the ambient light data, wherein at least one illumination and light-emitting component is arranged on each adjustable arm.
According to the intelligent control method suitable for the intelligent desk lamp, whether a desk lamp user exists in the desk lamp use 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 turn on illumination; through there is the desk lamp user to, when there is the target movable object to be close to the desk lamp user, based on ambient light data, judge whether there is ambient light shadow influence according to the second detection data the desk lamp user is influenced to the ambient light shadow, if there is ambient light shadow influence the desk lamp user, then according to ambient light data, user's head top three-dimensional position, each ambient light source three-dimensional position, be close to object top three-dimensional position and ambient light shadow, each adjustable arm and each of illumination luminous component of intelligent desk lamp is controlled to the automatic evaluation is close to the desk lamp user's object and is caused the influence to the stability of desk lamp user's illumination, when confirming can cause the influence, through controlling each adjustable arm and each illumination luminous component is in order to ensure the stability of desk lamp user's illumination, avoids influencing the desk lamp user's attention, has improved desk lamp user's work efficiency.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is a flow chart of an intelligent control method 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 an embodiment.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the 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 an intelligent table lamp, and the intelligent table lamp comprises the following components: the device comprises a base, at least one adjustable arm and at least one illumination and light-emitting component, wherein the illumination and light-emitting component is arranged on a first end of the adjustable arm, a second end, opposite to the first end, of the adjustable arm is arranged on the base, and the illumination and light-emitting 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 an intelligent table lamp according to a first time interval, and judging whether a table lamp user exists in a table lamp use area of the intelligent table lamp based on the first detection data;
specifically, first detection data sent by a detection component of the intelligent desk lamp are obtained according to a preset first time interval.
Optionally, the detection assembly includes: the camera shooting component adopts a wide-angle camera for shooting images based on wide angles, the camera shooting component can also adopt a common camera, the camera shooting component can also adopt a camera with adjustable direction for shooting a plurality of images to splice through the adjustment direction, and the spliced images are used as first detection data.
Optionally, the detection assembly may further comprise a radar sensing element.
The desk lamp use area is a predefined area. When someone is in the using area of the desk lamp, the intelligent desk lamp is required to work.
Specifically, first detection data of the intelligent table lamp are obtained according to a first time interval, so that whether a table lamp user exists in a table lamp use area or not is detected regularly; and selecting a method for judging whether a desk lamp user exists or not according to the type of the first detection data, and judging whether the desk lamp user exists in a desk lamp use area of the intelligent desk lamp according to the selected method and the first detection data.
S2: if so, acquiring second detection data of the intelligent table lamp according to a second time interval, and judging whether a target movable object is close to a table lamp user or not 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 ultrasonic detectors.
Specifically, if the intelligent table lamp exists, that is, a table lamp user exists in a table lamp use area of the intelligent table lamp based on the first detection data, the intelligent table lamp is started at the moment, so that a detection component 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 a target movable object is close to the table lamp user is selected according to the type of the second detection data, and whether the target movable object is close to the table lamp user 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 can be understood that whether the target moving object is close to the desk lamp user can be judged based on the image shot by the shooting component, wherein the second time interval is smaller than the first time interval, whether the target moving object is close to the desk lamp user can be judged based on a three-dimensional map constructed by data detected by the laser detector, the second time interval is smaller than the first time interval, and whether the target moving object is close to the desk lamp user can be judged based on the data detected by the ultrasonic detector, wherein the second time interval is smaller than the first time interval.
It will be appreciated that there may be many objects in the detection area of the detection assembly, and that only objects that are close to the person using the desk lamp may be referred to as target moving objects. The object close to the desk lamp user is an object with a decreasing trend of the distance between the object and the desk lamp user, wherein the object can be a person, an object or an animal.
It can be appreciated that if it is determined that no desk lamp user is present in the desk lamp use area of the intelligent desk lamp based on the first detection data, the intelligent desk lamp needs to be controlled to perform the standby state. When the intelligent desk lamp is in a standby state, no illumination is provided.
Optionally, determining that a desk lamp user exists in a desk lamp use area of the intelligent desk lamp based on the first detection data, and controlling the intelligent desk lamp to enter a working state; and when the intelligent table lamp is in a working state, acquiring second detection data of the intelligent table lamp according to a second time interval.
S3: if not, controlling each lighting component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a user head 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 movable 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 affects the desk lamp user according to the user head top three-dimensional position;
Specifically, if not, that is, if it is determined that no target moving object is close to the user of the desk lamp based on the second detection data, no moving object needs to be considered at this time, therefore, light emission control data is determined according to the ambient light data in the second detection data, and each lighting and emitting component of the intelligent desk lamp is controlled to work according to the light emission control data. Active objects, i.e. movable objects.
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 a mapping table, or may be performed 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.
The lighting control data includes control data for each lighting assembly, including but not limited to: a light intensity parameter and a color temperature parameter.
Ambient light data are detected by installing a light sensitive sensor on the intelligent table lamp.
Specifically, if it is determined that the target movable object is close to the desk lamp user based on the second detection data, the influence of the movable object on the illumination stability of the desk lamp user needs to be considered at this time, therefore, the three-dimensional position of the top of the desk lamp user is calculated as the top three-dimensional position 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 each ambient light source three-dimensional position based on the second detection data, and the top three-dimensional position of the target movable object is calculated as the top three-dimensional position 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 shooting component; the three-dimensional position of the top of the user head and the three-dimensional position close to the top of the object can be calculated based on the image shot by the camera, can be calculated based on a three-dimensional map constructed based on data detected by the laser detector, and can be calculated based on data detected by the ultrasonic detector.
Each ambient light source forms an ambient light shadow for the target movable object, and therefore, the shadow of the target movable object is calculated according to the position relationship between each three-dimensional position of the ambient light source and the three-dimensional position near the top of the object, and the shadow is taken as the ambient light shadow, that is, the ambient light shadow is a three-dimensional area in the three-dimensional space.
Based on a preset working area calculation rule, according to the three-dimensional position of the top of the user, the working area of the desk lamp user is determined, and based on the overlapping relation between the ambient light shadow and the working area of the desk lamp user, whether the ambient light shadow affects the desk lamp user can be judged.
S4: if yes, controlling each adjustable arm and each illumination and light-emitting component of the intelligent table lamp according to the ambient light data, the three-dimensional position of the top of the user, the three-dimensional position of each ambient light source, the three-dimensional position of the top of the user close to the object and the ambient light shadow, otherwise, controlling each illumination and light-emitting component according to the ambient light data, wherein at least one illumination and light-emitting component is arranged on each adjustable arm.
Specifically, if the ambient light shadow affects the desk lamp user, the target movable object needs to be considered at this time, so that the target posture of each adjustable arm is determined according to the three-dimensional position of the top of the user, the three-dimensional position of each ambient light source and the three-dimensional position close to the top of the object, the azimuth angle and the pitch angle of each adjustable arm are adjusted according to each target posture, the lighting control data are determined according to the ambient light data, and each lighting and emitting assembly of the intelligent desk lamp is controlled to work according to the lighting control data. Therefore, when the influence is caused, the stability of illumination of a desk lamp user is ensured by controlling each adjustable arm and each illumination luminous component, the attention of the desk lamp user is prevented from being influenced, and the working efficiency of the desk lamp user is improved.
If the ambient light shadow does not influence the desk lamp user, the target moving object does not need to be considered, so that the light-emitting control data are determined according to the ambient light data in the second detection data, and each lighting and light-emitting component of the intelligent desk lamp is controlled to work according to the light-emitting control data.
According to the embodiment, whether a desk lamp user exists in the desk lamp use 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 turn on illumination; through there is the desk lamp user to, when there is the target movable object to be close to the desk lamp user, based on ambient light data, judge whether there is ambient light shadow influence according to the second detection data the desk lamp user is influenced to the ambient light shadow, if there is ambient light shadow influence the desk lamp user, then according to ambient light data, user's head top three-dimensional position, each ambient light source three-dimensional position, be close to object top three-dimensional position and ambient light shadow, each adjustable arm and each of illumination luminous component of intelligent desk lamp is controlled to the automatic evaluation is close to the desk lamp user's object and is caused the influence to the stability of desk lamp user's illumination, when confirming can cause the influence, through controlling each adjustable arm and each illumination luminous component is in order to ensure the stability of desk lamp user's illumination, avoids influencing the desk lamp user's attention, has improved desk lamp user's work efficiency.
In an embodiment, the step of determining whether the desk lamp user exists in the desk lamp use area of the intelligent desk lamp based on the first detection data includes:
s11: according to the preset irradiation range configuration, an image area is intercepted from the first detection data, and an irradiation range image is obtained;
specifically, the preset irradiation range configuration is a calculation method of the maximum irradiation range set based on the equipment parameters of the intelligent desk lamp; therefore, according to the preset irradiation range configuration, an image area is intercepted from the first detection data, so that the image area in the irradiation range of the intelligent desk lamp is obtained, and the intercepted image area is taken as an irradiation range image.
S12: inputting the irradiation range image into a preset human body recognition model to perform human body recognition, so as to obtain a human body recognition result;
specifically, the irradiation range image is input into a preset human body recognition model to carry out classification recognition of human bodies, and a human body recognition result is determined according to vectors obtained through classification recognition.
The human body recognition model is used for recognizing whether the image contains a human body or not and is a two-class model. The human body recognition model is a model obtained based on neural network training, and the specific training method and the network structure can be selected from the prior art, and are not described herein.
S13: if the human body identification result is yes, determining that the table lamp user exists in the table lamp use area;
specifically, if the human body recognition result is yes, that is, there is a human body in the irradiation range image, it is determined that the table lamp user exists in the table lamp use area.
S14: if the human body identification result is negative, determining that no desk lamp user exists in the desk lamp use area.
Specifically, if the human body recognition result is no, that is, there is no human body in the irradiation range image, it is determined that the table lamp user is not present in the table lamp use area.
According to the embodiment, based on preset irradiation range configuration, an irradiation range image is extracted from the first detection data, and then, based on a human body identification model, classification prediction is carried out on whether the irradiation range image contains a human body, so that automatic judgment on whether a desk lamp user exists is realized, and the degree of automation of the application is improved; the accuracy of classification prediction is improved through the human body recognition model.
In an embodiment, the step of determining whether the target moving object is close to the desk lamp user based on the second detection data, where the second time interval is smaller than the first time interval includes:
S21: performing object tracking on each image frame of the video segment in the second detection data based on a multi-target tracking method to obtain an object tracking result;
specifically, based on the multi-target tracking method, object tracking is performed on each image frame of the video segment in the second detection data, so that the position of each object in each image frame can be tracked, and the data obtained by object tracking is used as an object tracking result.
The object tracking results include: object identification and image frame location set. 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 of an object in one image frame corresponding to the object identification.
S22: judging whether the distance between the object and the desk lamp user is in a decreasing trend or not according to the target tracking result;
specifically, a distance comparison is performed between each image frame position set in the target tracking result and the desk lamp user, so that whether the distance between the image frame position set and the desk lamp user is reduced can be found.
S23: if the target activity object exists, an object with a decreasing trend of the distance between the target activity object and the desk lamp user is taken as the target activity object, and the situation that the target activity object is close to the desk lamp user is determined;
Specifically, if there is, that is, there is, a tendency that the distance between the image frame position set and the desk lamp user is reduced, an object corresponding to the image frame position set in which the distance between the desk lamp users is reduced is taken as the target moving object, and it is determined that the target moving object is close to the desk lamp user.
S24: if the target moving object does not exist, the fact that the target moving object is close to the desk lamp user is determined.
Specifically, if there is no, that is, there is no, the distance between the image frame position set and the desk lamp user tends to decrease, and therefore, it is determined that no target moving object is close to the desk lamp user.
According to the embodiment, based on the tracking result of the multi-target tracking method on the image, whether the distance between the object and the desk lamp user is in a reduced trend is judged, automatic judgment of whether the target moving object is close to the desk lamp user is achieved, wherein the second time interval is smaller than the first time interval, and a basis is provided for follow-up automatic evaluation of whether the object close to the desk lamp user affects the stability of illumination of the desk lamp user.
In one embodiment, the step of determining whether the ambient light shadow affects the desk lamp user according to the three-dimensional position of the top of the user includes:
s31: according to the three-dimensional position of the top of the user, calculating the working area of the user of the desk lamp;
specifically, a preset working area calculation rule is a calculation method of a maximum working area set based on equipment parameters of the intelligent desk lamp; and inputting the three-dimensional position of the top of the user into a preset working area calculation rule to calculate the working area of the user of the desk lamp.
The working area is located in the horizontal plane where the lowest position of the intelligent desk lamp is located. The desk lamp user is located in the working area or at the edge of the working area. For example, the working area is located on the side of the desk lamp user, which is close to the intelligent desk lamp.
S32: judging whether the ambient light shadow is overlapped with the working area or not;
specifically, if any one of the ambient light shadows overlaps the working area at least partially, it is determined that the ambient light shadow overlaps the working area, and if none of the ambient light shadows overlaps the working area, it is determined that the ambient light shadow does not overlap the working area.
S33: if yes, determining that the ambient light shadow affects the desk lamp user;
specifically, if there is, that is, there is, the ambient light shadow overlapping the working area, it is determined that there is the ambient light shadow affecting the desk lamp user.
S34: if not, determining that the ambient light shadow does not influence the desk lamp user.
Specifically, if not, that is, if there is no ambient light shadow overlapping the working area, it is determined that there is no ambient light shadow affecting the desk lamp user.
According to the embodiment, based on the three-dimensional position of the head top of the user, the working area of the desk lamp user is calculated, and then based on the overlapping relation of the working area and the ambient light shadow, whether the ambient light shadow affects the desk lamp user is judged, so that whether the ambient light shadow affects the stability of illumination of the desk lamp user is accurately determined.
In one embodiment, the step of controlling each adjustable arm of the intelligent desk lamp and each illumination and lighting assembly according to the ambient light data, the three-dimensional position of the top of the user, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the near object, and the ambient light shadow includes:
S411: determining a target posture of each adjustable arm 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 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, a target pose of each adjustable arm is determined according to the three-dimensional position of the top of the user head, the three-dimensional positions of the respective ambient light sources and the three-dimensional position of the top of the near object.
It can be understood that, according to the posture calculation formula of each adjustable arm set by the device parameters of the intelligent desk lamp, the three-dimensional position of the top of the user head, the three-dimensional position of each environmental light source and the three-dimensional position close to the top of the object are substituted into the posture calculation formula, so that the posture of each adjustable arm can be calculated, and each calculated posture is used as a target posture. The pose is a described pose inside the pose.
And according to the target postures, the azimuth angle and the pitch angle of each adjustable arm are adjusted so as to adjust the irradiation area and the irradiation angle of each illumination light-emitting component.
S412: determining luminous control data according to the ambient light data, and performing compensation processing on the luminous control data according to the ambient light shadow and the overhead three-dimensional position of the user;
Specifically, according to the ambient light data, light emission control data is determined, so that the lighting and emitting assembly of the intelligent desk lamp emits light based on ambient light control is realized; according to the three-dimensional position of the top of the user, calculating the working area of the user of the desk lamp; and compensating the control data of the lighting control data and the lighting assembly according to the overlapping relation of the ambient light shadow and the working area, the overlapping relation of the lighting assembly and the working area and the preset compensation configuration so as to eliminate the influence of the projection of the ambient light shadow on the working area and ensure the lighting stability of a user of the desk lamp.
Optionally, in another embodiment of the present application, the step of controlling each adjustable arm of the intelligent desk lamp and each lighting assembly according to the ambient light data, the user head top three-dimensional position, each ambient light source three-dimensional position, the near object top three-dimensional position, 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 user, the three-dimensional positions of the ambient 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 luminescence control data according to the ambient light data; and controlling each illumination light-emitting component to emit light according to the light-emitting control data.
Optionally, the second detection data further includes table top reflected light detection data; and determining luminescence control data according to the ambient light data and the desktop reflected light detection data.
S413: acquiring a fine adjustment proportion corresponding to a fine adjustment button of the intelligent table lamp;
optionally, the trimming ratio of the trimming button ranges from 0% to 100%, may include 0% or 100%, and may include a percentage between 0% and 100%.
Wherein, the user (including but not limited to the desk lamp user) can be through adjusting the fine setting button of intelligent desk lamp to realize the fine setting to each the luminous subassembly of illumination shines.
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;
specifically, the range length value is the maximum value minus the minimum value of the same light emission parameter range.
S415: respectively adding the lowest value of each light-emitting parameter range and the single-parameter trimming value corresponding to the light-emitting parameter range to obtain trimming control data;
specifically, the minimum value corresponding to the same light emission parameter range is added to the single-parameter trim value, and the data obtained by adding the light emission parameter ranges is used as the post-trim control data.
S416: and controlling each illumination and luminous component to emit light according to the fine-tuned control data.
According to the embodiment, the target posture of each adjustable arm is determined according to the head top three-dimensional position of the user, the three-dimensional positions of the environmental light sources and the three-dimensional positions close to the top of the object, so that when the influence is determined, the stability of illumination of the user of the desk lamp is ensured by controlling each adjustable arm and each illumination and light-emitting component, the attention of the user of the desk lamp is prevented from being influenced, and the working efficiency of the user of the desk lamp is improved; by 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, the ambient light difference between the ambient light caused by the ambient light shadow and the ambient light detected by the detection component is eliminated, the accuracy of the light emission control data is improved, and the illumination stability of the user of the desk lamp is further ensured; the fine adjustment of the luminescence of the illuminating light-emitting component is realized through the fine adjustment proportion corresponding to the fine adjustment button, and the personalized use requirement is met.
In one embodiment, the step of controlling each of the illumination light assemblies according to the ambient light data includes:
S421: determining a working area of the user of the desk lamp according to the three-dimensional position of the head of the user based on a preset working area calculation rule;
s422: calculating the affected three-dimensional position of the target movable object according to the three-dimensional position of each environmental light source, the three-dimensional position close to the top of the object and the working area;
when the target movable object moves to the position with influence on three dimensions, part or all of the shadow of the movement of the target movable object is projected to the working area, and the stability of illumination of a desk lamp user is influenced.
S423: according to the second detection data, predicting the motion speed of the target moving object;
specifically, a method for selecting a movement speed according to the type of the second detection data, and a movement speed prediction is performed on the target moving object according to the selected method and the second detection data.
S424: calculating the influencing time length according to the movement speed, the three-dimensional position close to the top of the object and the influencing three-dimensional position;
specifically, subtracting the three-dimensional position close to the top of the object from the affected three-dimensional position to obtain a distance difference; dividing the distance difference by the movement speed to obtain the influence duration.
S425: if the affected 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 illumination and light-emitting component according to the ambient light data, the user head top three-dimensional position, each ambient light source three-dimensional position, the near object top three-dimensional position and the ambient light shadow when the affected duration is spaced;
specifically, if the influencing time period is less than or equal to the second time interval, this means that the target moving object may affect the stability of the illumination of the user of the desk lamp before the second detection data is acquired and analysis is started next time, so that the detection time of the second detection data is taken as the starting time, and when the influencing time period is spaced, the target moving object affects the stability of the illumination of the user of the desk lamp, and at this time, each adjustable arm and each illumination light emitting component are controlled according to the ambient light data, the three-dimensional position of the top of the user, the three-dimensional position of each ambient light source, the three-dimensional position of the top of the approaching object, and the ambient light shadow.
S426: and if the influencing time period is longer than the second time interval, controlling each illumination light-emitting component according to the ambient light data.
Specifically, if the influencing time period is longer than the second time interval, this means that after the second detection data is acquired and analysis is started next time, the target moving object may not influence the illumination stability of the desk lamp user, and in order to reduce the error adjustment of the adjustable arm and the illumination light emitting component, the stability influence of the object close to the desk lamp user on the illumination of the desk lamp user is not required to be eliminated according to the predicted influencing time period in the current period, so that each illumination light emitting component is controlled according to the ambient light data.
Optionally, the step of acquiring the second detection data of the intelligent table lamp according to the second time interval if the second detection data exists includes: if the existence of a desk lamp user in the desk lamp use area of the intelligent desk lamp is judged based on the first detection data, taking the preset default interval duration as the second time interval;
after the step of calculating the effective duration according to the movement speed, the three-dimensional position of the top of the user head and the ambient light shadow, the method further comprises the following steps: if the affected duration is less than or equal to the second time interval, taking the default interval duration as the second time interval; and if the influencing time length is longer than the second time interval, taking a preset adjustment interval duration as the second time interval, wherein the adjustment interval duration is shorter than the default interval duration. Therefore, when the influence time is longer than the second time interval, the second time interval is shortened, the period for acquiring the second detection data for analysis is shortened, the influence of the object close to the desk lamp user on the illumination stability of the desk lamp user is accelerated, and the illumination stability of the desk lamp user is further ensured; and when the influencing time length is smaller than or equal to the second time interval, the second time interval is restored to the default interval time length, so that the second detection data is prevented from being acquired frequently and with low effect for analysis, and the calculated amount is reduced.
According to the method, the influence time can be used for predicting how long the target moving object can cause the stability influence on the illumination of the desk lamp user after the detection time of the second detection data is the starting time, so that the effect of prejudging in advance on the stability of the illumination of the desk lamp user by the object close to the desk lamp user is eliminated in time, and the stability of the illumination of the desk lamp user is further improved; the length of time of influence is less than or equal to the second time interval, each adjustable arm and each illumination luminous component are controlled according to the length of time of influence so as to eliminate the stability influence of the object close to the desk lamp user on illumination of the desk lamp user, when the length of time of influence is greater than the second time interval, the stability influence of the object close to the desk lamp user on illumination of the desk lamp user is not eliminated in the current period, so that the stability of illumination of the desk lamp user is further ensured, 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, after the step of obtaining the second detection data of the intelligent table lamp at the second time interval, the method further includes:
S51: according to the second detection data, calculating the head top height of the user of the desk lamp as the head top height of the user;
specifically, the height of the top of the head of the desk lamp user may be calculated based on an image captured by a camera, the height of the top of the head of the desk lamp user may be calculated based on data detected by a laser detector, and the height of the top of the head of the desk lamp user may be calculated based on data detected by an ultrasonic detector.
It is understood that the user overhead height is the distance between the horizontal plane of the lowest position of the intelligent desk lamp and the horizontal plane of the overhead of the desk lamp user.
S52: searching the height of the desk lamp from a preset first mapping table according to the head top height of the user to obtain the height of the target desk lamp;
the first mapping table includes: the height range of the head top and the height of the desk lamp.
Specifically, a head top height range including the head top height of the user is searched in each head top height range of a preset first mapping table, and the height of the table lamp corresponding to the searched head top height range in the first mapping table package is used as the height of the target table lamp.
S53: and controlling the height of each illumination and luminous assembly according to the height of the target table lamp.
Specifically, according to the height of the target desk lamp, the intelligent desk lamp is controlled to adjust the height of each illumination and light-emitting component so that the height of each illumination and light-emitting component is not higher than the height of the target desk lamp.
According to the embodiment, the height of each illumination and light-emitting component is adjusted according to the height of the head of a user according to the second detection data, so that the height of each illumination and light-emitting component accords with the height of the user of the desk lamp, and the requirements of different users of the desk lamp are met.
In an embodiment, after the step of obtaining the second detection data of the intelligent table lamp at the second time interval, the method further includes:
s61: judging whether the desk lamp user 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 that whether the desk lamp user is in an operation mode or not is determined.
When the desk lamp is used for writing, drawing, creating and welding, a user holds the tool in the working area, and at the moment, the desk lamp is in an operation mode.
The job model classification model is a two-class model. The operation model classification model is a model obtained based on neural network training, and the specific training method and the network structure can be selected from the prior art, and are not described herein.
S62: if the table lamp is in the operation mode, determining handedness of a user of the table lamp according to the second detection data;
specifically, if the desk lamp is in the operation mode, that is, the desk lamp user is writing, therefore, operation light compensation is required, and 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 desk lamp user.
The handedness values include: left hand work or right hand work.
The handedness classification model is a two-class model. The handedness classification model is a model obtained based on neural network training, and specific training methods and network structures can be selected from the prior art, and are not described herein.
S63: 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;
the second mapping table includes: the operation is manual, the compensation height and the compensation angle.
Specifically, according to the handedness, searching in each operation hand in a preset second mapping table, taking the corresponding compensation height of the searched operation hand in the second mapping table as a target compensation height, and taking the corresponding compensation angle of the searched operation hand in the second mapping table as a target compensation angle.
S64: and controlling the operation compensation luminous component of the intelligent desk lamp to carry out compensation illumination according to the target compensation height and the target compensation angle so as to be used for compensating the shadow of the hand during operation.
Specifically, according to the target compensation height and the target compensation angle, controlling the position of the work compensation light-emitting component of the intelligent desk lamp, and starting the work compensation light-emitting component to compensate the shadow of the hand during work.
Optionally, the operation compensation light-emitting component comprises an adjustable bracket and a light-emitting component, wherein the light-emitting component is positioned at a first end of the adjustable bracket, and a second end of the adjustable bracket opposite to the first end is arranged on the base; and adjusting the height of the adjustable bracket according to the target compensation height, and adjusting the rotation angle of the adjustable bracket according to the target compensation angle. It is understood that the height of the work compensating light emitting assembly when providing compensating light is less than the height of the lighting light emitting assembly.
Optionally, when the user faces the intelligent desk lamp, if the user is right-handed, the operation compensation light-emitting component performs illumination compensation from the left side of the user; if the hand is used to be left hand, the operation compensation luminous component performs illumination compensation from the right side of the desk lamp user.
According to the embodiment, the operation compensation luminous component of the intelligent desk lamp is controlled to conduct 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, where the device includes:
a first determining module 801, configured to obtain first detection data of an intelligent desk lamp according to a first time interval, and determine whether a desk lamp user exists in a desk lamp use area of the intelligent desk lamp based on the first detection data;
a second judging module 802, configured to obtain second detection data of the intelligent desk lamp according to a second time interval if a desk lamp user exists in the desk lamp use area of the intelligent desk lamp, and judge whether a target moving object is close to the desk lamp user based on the second detection data, where the second time interval is smaller than the first time interval;
the first illumination processing module 803 is configured to control each illumination light emitting component of the intelligent desk lamp according to the ambient light data in the second detection data if no target movable object approaches the desk lamp user, otherwise, calculate a user top three-dimensional position, each ambient light source three-dimensional position, and an approach object top three-dimensional position according to the second detection data, calculate an ambient light shadow of the target movable object according to each of the ambient light source three-dimensional positions and the approach object top three-dimensional position, and determine whether the ambient light shadow affects the desk lamp user according to the user top three-dimensional position;
The second illumination processing module 804 is configured to control 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 user, each three-dimensional position of the ambient light source, the three-dimensional position of the top of the object near, and the ambient light shadow if the ambient light shadow affects the user of the desk lamp, or control each illumination light emitting component according to the ambient light data, where at least one illumination light emitting component is disposed on each adjustable arm.
According to the embodiment, whether a desk lamp user exists in the desk lamp use 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 turn on illumination; through there is the desk lamp user to, when there is the target movable object to be close to the desk lamp user, based on ambient light data, judge whether there is ambient light shadow influence according to the second detection data the desk lamp user is influenced to the ambient light shadow, if there is ambient light shadow influence the desk lamp user, then according to ambient light data, user's head top three-dimensional position, each ambient light source three-dimensional position, be close to object top three-dimensional position and ambient light shadow, each adjustable arm and each of illumination luminous component of intelligent desk lamp is controlled to the automatic evaluation is close to the desk lamp user's object and is caused the influence to the stability of desk lamp user's illumination, when confirming can cause the influence, through controlling each adjustable arm and each illumination luminous component is in order to ensure the stability of desk lamp user's illumination, avoids influencing the desk lamp user's attention, has improved desk lamp user's work efficiency.
In one embodiment, a smart desk lamp is provided, 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 an intelligent table lamp according to a first time interval, and judging whether a table lamp user exists in a table lamp use area of the intelligent table lamp based on the first detection data;
if so, acquiring second detection data of the intelligent table lamp according to a second time interval, and judging whether a target movable object is close to a table lamp user or not based on the second detection data, wherein the second time interval is smaller than the first time interval;
if not, controlling each lighting component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a user head 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 movable 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 affects the desk lamp user according to the user head top three-dimensional position;
If yes, controlling each adjustable arm and each illumination and light-emitting component of the intelligent table lamp according to the ambient light data, the three-dimensional position of the top of the user, the three-dimensional position of each ambient light source, the three-dimensional position of the top of the user close to the object and the ambient light shadow, otherwise, controlling each illumination and light-emitting component according to the ambient light data, wherein at least one illumination and light-emitting component is arranged on each adjustable arm.
According to the embodiment, whether a desk lamp user exists in the desk lamp use 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 turn on illumination; through there is the desk lamp user to, when there is the target movable object to be close to the desk lamp user, based on ambient light data, judge whether there is ambient light shadow influence according to the second detection data the desk lamp user is influenced to the ambient light shadow, if there is ambient light shadow influence the desk lamp user, then according to ambient light data, user's head top three-dimensional position, each ambient light source three-dimensional position, be close to object top three-dimensional position and ambient light shadow, each adjustable arm and each of illumination luminous component of intelligent desk lamp is controlled to the automatic evaluation is close to the desk lamp user's object and is caused the influence to the stability of desk lamp user's illumination, when confirming can cause the influence, through controlling each adjustable arm and each illumination luminous component is in order to ensure the stability of desk lamp user's illumination, avoids influencing the desk lamp user's attention, has improved desk lamp user's work efficiency.
In one embodiment, a computer device is presented comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring first detection data of an intelligent table lamp according to a first time interval, and judging whether a table lamp user exists in a table lamp use area of the intelligent table lamp based on the first detection data;
if so, acquiring second detection data of the intelligent table lamp according to a second time interval, and judging whether a target movable object is close to a table lamp user or not based on the second detection data, wherein the second time interval is smaller than the first time interval;
if not, controlling each lighting component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a user head 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 movable 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 affects the desk lamp user according to the user head top three-dimensional position;
If yes, controlling each adjustable arm and each illumination and light-emitting component of the intelligent table lamp according to the ambient light data, the three-dimensional position of the top of the user, the three-dimensional position of each ambient light source, the three-dimensional position of the top of the user close to the object and the ambient light shadow, otherwise, controlling each illumination and light-emitting component according to the ambient light data, wherein at least one illumination and light-emitting component is arranged on each adjustable arm.
According to the embodiment, whether a desk lamp user exists in the desk lamp use 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 turn on illumination; through there is the desk lamp user to, when there is the target movable object to be close to the desk lamp user, based on ambient light data, judge whether there is ambient light shadow influence according to the second detection data the desk lamp user is influenced to the ambient light shadow, if there is ambient light shadow influence the desk lamp user, then according to ambient light data, user's head top three-dimensional position, each ambient light source three-dimensional position, be close to object top three-dimensional position and ambient light shadow, each adjustable arm and each of illumination luminous component of intelligent desk lamp is controlled to the automatic evaluation is close to the desk lamp user's object and is caused the influence to the stability of desk lamp user's illumination, when confirming can cause the influence, through controlling each adjustable arm and each illumination luminous component is in order to ensure the stability of desk lamp user's illumination, avoids influencing the desk lamp user's attention, has improved desk lamp user's work efficiency.
In one embodiment, a computer-readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring first detection data of an intelligent table lamp according to a first time interval, and judging whether a table lamp user exists in a table lamp use area of the intelligent table lamp based on the first detection data;
if so, acquiring second detection data of the intelligent table lamp according to a second time interval, and judging whether a target movable object is close to a table lamp user or not based on the second detection data, wherein the second time interval is smaller than the first time interval;
if not, controlling each lighting component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a user head 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 movable 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 affects the desk lamp user according to the user head top three-dimensional position;
If yes, controlling each adjustable arm and each illumination and light-emitting component of the intelligent table lamp according to the ambient light data, the three-dimensional position of the top of the user, the three-dimensional position of each ambient light source, the three-dimensional position of the top of the user close to the object and the ambient light shadow, otherwise, controlling each illumination and light-emitting component according to the ambient light data, wherein at least one illumination and light-emitting component is arranged on each adjustable arm.
According to the embodiment, whether a desk lamp user exists in the desk lamp use 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 turn on illumination; through there is the desk lamp user to, when there is the target movable object to be close to the desk lamp user, based on ambient light data, judge whether there is ambient light shadow influence according to the second detection data the desk lamp user is influenced to the ambient light shadow, if there is ambient light shadow influence the desk lamp user, then according to ambient light data, user's head top three-dimensional position, each ambient light source three-dimensional position, be close to object top three-dimensional position and ambient light shadow, each adjustable arm and each of illumination luminous component of intelligent desk lamp is controlled to the automatic evaluation is close to the desk lamp user's object and is caused the influence to the stability of desk lamp user's illumination, when confirming can cause the influence, through controlling each adjustable arm and each illumination luminous component is in order to ensure the stability of desk lamp user's illumination, avoids influencing the desk lamp user's attention, has improved desk lamp user's work efficiency.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. An intelligent control method suitable for an intelligent table lamp, wherein the intelligent table lamp comprises a base, at least one adjustable arm and at least one illumination and light-emitting component, the illumination and light-emitting component is arranged on a first end of the adjustable arm, a second end, opposite to the first end, of the adjustable arm is arranged on the base, the illumination and light-emitting component provides light for illumination, the intelligent table lamp also comprises a detection component for acquiring first detection data and second detection data, the second detection data comprises ambient light data and video clips, the detection component further comprises a photosensitive sensor for acquiring the ambient light data in the second detection data, and an imaging component for acquiring the video clips in the second detection data;
The method comprises the following steps:
acquiring first detection data of an intelligent table lamp according to a first time interval, and judging whether a table lamp user exists in a table lamp use area of the intelligent table lamp based on the first detection data;
if so, acquiring video clips in second detection data of the intelligent table lamp according to a second time interval, and judging whether a target moving object is close to a table lamp user or not based on the video clips in the second detection data, wherein the second time interval is smaller than the first time interval;
if not, controlling each lighting component of the intelligent desk lamp according to the ambient light data in the second detection data, otherwise, calculating a head top three-dimensional position of a user, each ambient light source three-dimensional position and a top three-dimensional position close to an object according to the ambient light data in the second detection data, calculating an ambient light shadow of the target movable object according to each ambient light source three-dimensional position and the top three-dimensional position close to the object, and judging whether the ambient light shadow affects the desk lamp user according to the head top three-dimensional position of the user;
if yes, controlling each adjustable arm of the intelligent desk lamp and each illumination and light-emitting component according to the ambient light data, the three-dimensional position of the top 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 object and the ambient light shadow, otherwise, controlling each illumination and light-emitting component according to the ambient light data.
2. The intelligent control method for an intelligent desk lamp according to claim 1, wherein the step of determining whether a target moving object is close to the desk lamp user based on the video clip in the second detection data, wherein the second time interval is smaller than the first time interval, comprises:
performing object tracking on each image frame of the video segment in the second detection data based on a multi-target tracking method to obtain an object tracking result;
judging whether the distance between the object and the desk lamp user is in a decreasing trend or not according to the target tracking result;
if the target activity object exists, an object with a decreasing trend of the distance between the target activity object and the desk lamp user is taken as the target activity object, and the situation that the target activity object is close to the desk lamp user is determined;
if the target moving object does not exist, the fact that the target moving object is close to the desk lamp user is determined.
3. The intelligent control method for an intelligent desk lamp according to claim 1, wherein the step of determining whether the ambient light shadow affects the desk lamp user according to the three-dimensional position of the top of the user comprises:
According to the three-dimensional position of the top of the user, calculating the working area of the user of the desk lamp;
judging whether the ambient light shadow is overlapped with the working area or not;
if yes, determining that the ambient light shadow affects the desk lamp user;
if not, determining that the ambient light shadow does not influence the desk lamp user.
4. The intelligent control method for an intelligent desk lamp according to claim 1, wherein the step of controlling each adjustable arm of the intelligent desk lamp and each lighting assembly according to the ambient light data, the user head top three-dimensional position, each ambient light source three-dimensional position, the near object top three-dimensional position, 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 user, the three-dimensional positions of the ambient 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 luminous control data according to the ambient light data, and performing compensation processing on the luminous control data according to the ambient light shadow and the overhead three-dimensional position of the user;
Acquiring a fine adjustment proportion corresponding to a fine adjustment button of the intelligent table 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;
respectively adding the lowest value of each light-emitting parameter range and the single-parameter trimming value corresponding to the light-emitting parameter range to obtain trimming control data;
and controlling each illumination and luminous component to emit light according to the fine-tuned control data.
5. The intelligent control method for an intelligent desk lamp according to claim 1, wherein the step of controlling each of the illumination light assemblies according to the ambient light data comprises:
determining a working area of the user of the desk lamp according to the three-dimensional position of the head of the user based on a preset working area calculation rule;
calculating the affected three-dimensional position of the target movable object according to the three-dimensional position of each environmental light source, the three-dimensional position close to the top of the object and the working area;
according to the video clips in the second detection data, predicting the motion speed of the target moving object;
Calculating the influencing time length according to the movement speed, the three-dimensional position close to the top of the object and the influencing three-dimensional position;
if the influencing time length is less than or equal to the second time interval, taking the detection time of the ambient light data in the second detection data as a starting time, and controlling each adjustable arm and each illumination and luminous component according to the ambient light data, the user head top three-dimensional position, each ambient light source three-dimensional position, the near object top three-dimensional position and the ambient light shadow when the influencing time length is spaced;
and if the influencing time period 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 according to claim 1, wherein after the step of acquiring the video clip in the second detection data of the intelligent desk lamp at the second time interval, further comprises:
according to the video clips in the second detection data, calculating the head top height of the user of the desk lamp as the head top height of the user;
searching the height of the desk lamp from a preset first mapping table according to the head top height of the user to obtain the height of the target desk lamp;
And controlling the height of each illumination and luminous assembly according to the height of the target table lamp.
7. The intelligent control method for an intelligent desk lamp according to claim 1, wherein after the step of acquiring the video clip in the second detection data of the intelligent desk lamp at the second time interval, further comprises:
judging whether the desk lamp user is in an operation mode or not according to the video clips in the second detection data;
if the table lamp is in the operation mode, determining handedness of a user of the table lamp according to the video clips in 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 luminous component of the intelligent desk lamp to carry out compensation illumination according to the target compensation height and the target compensation angle so as to be used for compensating the shadow of the hand during operation.
8. An intelligent control device suitable for an intelligent desk lamp is characterized in that the intelligent desk lamp comprises a base, at least one adjustable arm and at least one illumination and light-emitting component, wherein the illumination and light-emitting component is arranged on a first end of the adjustable arm, a second end, opposite to the first end, of the adjustable arm is arranged on the base, the illumination and light-emitting component provides light to provide illumination, the intelligent desk lamp further comprises a detection component for acquiring first detection data and second detection data, the second detection data comprises ambient light data and video clips, the detection component further comprises a photosensitive sensor for acquiring the ambient light data in the second detection data, and an imaging component for acquiring the video clips in the second detection data;
The device comprises:
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 use area of the intelligent desk lamp or not based on the first detection data;
the second judging module is used for acquiring video clips in second detection data of the intelligent table lamp according to a second time interval if a table lamp user exists in a table lamp use area of the intelligent table lamp, and judging whether a target moving object is close to the table lamp user or not based on the video clips in 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 movable object approaches the desk lamp user, otherwise, calculating the head top three-dimensional position of the user, each ambient light source three-dimensional position and the top three-dimensional position of the object according to the ambient light data in the second detection data, calculating the ambient light shadow of the target movable object according to each ambient light source three-dimensional position and the top three-dimensional position of the object, and judging whether the ambient light shadow affects the desk lamp user according to the head top three-dimensional position of the user;
And the second illumination processing module is used for controlling each adjustable arm and each illumination and light-emitting component of the intelligent desk lamp according to the ambient light data, the three-dimensional position of the top of the user, each three-dimensional position of the ambient light source, the three-dimensional position close to the top of the object and the ambient light shadow if the ambient light shadow influences the desk lamp user, or controlling each illumination and light-emitting component according to the ambient light data.
9. A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method of any one of claims 1 to 7.
10. A smart desk lamp comprising a memory and a processor, the memory storing a computer program that, 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 CN115734436A (en) 2023-03-03
CN115734436B true 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
CN115734436A (en) 2023-03-03

Similar Documents

Publication Publication Date Title
JP4882428B2 (en) Environment recognition device
US10705604B2 (en) Eye tracking apparatus and light source control method thereof
US11259013B2 (en) Camera installation assistance device and method, and installation angle calculation method, and program and recording medium
CN115734436B (en) Intelligent control method and device suitable for intelligent desk lamp, desk lamp and medium
CN112511814A (en) Projector focusing method, projector, computer device, and storage medium
JP6398218B2 (en) Self-position calculation device and self-position calculation method
JP2017156161A (en) Illumination condition setting device, illumination condition setting method, and computer for illumination condition setting
JP2014024411A (en) Self-emitting light source detection device, light control device and self-emitting light source detection program
KR102032960B1 (en) Apparatus and method for controlling laser based on image tracking
CN111856866A (en) Projection device and operation method thereof
CN115022553B (en) Dynamic control method and device for light supplement lamp
EP3832533A1 (en) Face illumination control system and method
CN114543697A (en) Measuring apparatus, control apparatus, and control method
KR20010088884A (en) Method for detecting real time of moving object
US11398045B2 (en) Three-dimensional imaging device and three-dimensional imaging condition adjusting method
US20240219010A1 (en) Lighting control method and system
CN109981993B (en) Depth camera projector power consumption control method and application thereof
CN118283433A (en) Light adjusting method, system, equipment and storage medium switched along with shooting random position
CN117831467A (en) Self-adaptive adjusting method, device and equipment of display screen and storage medium
US20220137187A1 (en) Object detection apparatus
US11297254B2 (en) Image processing device, image processing method, and non-transitory recording medium
CN117969550B (en) Automobile defect analysis method and system based on image recognition
CN118090742B (en) Image acquisition method for detecting hinge joint damage of prefabricated bridge
CN113064156B (en) Radar and photoelectric linkage tracking method and device
US20220141392A1 (en) Object detection apparatus

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