CN111988894A - Lamplight adjusting method and device and storage medium - Google Patents

Lamplight adjusting method and device and storage medium Download PDF

Info

Publication number
CN111988894A
CN111988894A CN201910425853.2A CN201910425853A CN111988894A CN 111988894 A CN111988894 A CN 111988894A CN 201910425853 A CN201910425853 A CN 201910425853A CN 111988894 A CN111988894 A CN 111988894A
Authority
CN
China
Prior art keywords
target user
user
sitting posture
image
preset
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.)
Pending
Application number
CN201910425853.2A
Other languages
Chinese (zh)
Inventor
秦伟
董勇军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201910425853.2A priority Critical patent/CN111988894A/en
Publication of CN111988894A publication Critical patent/CN111988894A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

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

Abstract

The invention belongs to the field of illumination, and discloses a light adjusting method, a light adjusting device and a storage medium, wherein the method comprises the following steps: acquiring a preset area image containing a target user; determining the sitting posture orientation of the target user according to the preset area image; and adjusting the illumination angle of the lamp light of the desk lamp according to the sitting posture orientation of the target user. According to the invention, the sitting posture orientation of the target user is determined through the acquired preset area image containing the target user, then the illumination angle of the lamp light of the desk lamp is adjusted according to the sitting posture orientation of the user, and after the sitting posture orientation of the user is changed, the illumination angle of the lamp light can be automatically adjusted according to the sitting posture orientation of the user, so that the user can still automatically obtain proper lamp light illumination after the working area is changed, the eyesight of the user is protected, the illumination direction of the desk lamp does not need to be manually adjusted by the user, and the use experience of the user is improved.

Description

Lamplight adjusting method and device and storage medium
Technical Field
The invention belongs to the technical field of illumination, and particularly relates to a light adjusting method, a light adjusting device and a storage medium.
Background
The desk lamp is a common lighting device in daily life, and is generally used for small-range lighting, such as scenes of office work, reading books, learning and the like.
With the development of science and technology, the desk lamp is more and more intelligent, and the desk lamp capable of automatically adjusting the brightness appears on the market. For example, by collecting the light intensity of the external environment and then automatically adjusting the brightness of the desk lamp according to the light intensity of the external environment, the light is automatically adjusted to the optimum brightness, the eyesight of the user is protected, and the user does not need to manually adjust the brightness.
Although the brightness of the existing desk lamp can be automatically adjusted according to the brightness of the external environment, the lighting angle of the lamp light cannot be automatically adjusted, and when a user changes the sitting posture and faces backwards, the lamp light cannot be automatically adjusted in an adaptive mode to provide the most suitable lighting lamp light for the user, so that the user experience is influenced.
Disclosure of Invention
The invention aims to provide a light adjusting method, a light adjusting device and a storage medium, which can automatically adjust the illumination angle of light according to the sitting posture orientation of a user, do not need manual operation of the user, and improve the use experience of the user.
The technical scheme provided by the invention is as follows:
in one aspect, an embodiment of the present invention provides a light adjustment method, including:
acquiring a preset area image containing a target user;
determining the sitting posture orientation of the target user according to the preset area image;
And adjusting the illumination angle of the lamp light of the desk lamp according to the sitting posture orientation of the target user.
Further preferably, the determining, according to the preset area image, the sitting posture orientation of the target user specifically includes:
determining the position relation between the target user and the desk lamp according to the position of the target user in the preset area image;
determining a corresponding target image library according to the position relation;
extracting the image of the target user from the preset area image;
matching the image of the target user with the images in the target image library;
and determining the sitting posture orientation of the target user according to the matching result.
Further preferably, before the acquiring the preset area image including the target user, the method further includes:
detecting a sitting posture of a user;
when the sitting posture of the user meets a preset standard, acquiring a preset area image containing a target user;
and when the sitting posture of the user does not meet the preset standard, sending a prompt message.
Further preferably, the detecting the sitting posture of the user specifically includes:
detecting whether a target user exists or not through a first detection unit at a first preset position on the table lamp;
When the target user is detected to exist, detecting whether the head of the target user is higher than a preset threshold value through a second detection unit at a second preset position on the table lamp, and if so, enabling the sitting posture of the user to meet a preset standard; wherein the second preset position is higher than the first preset position.
Further preferably, the method further comprises the following steps:
analyzing the height of the head of the target user from a desktop according to the preset area image;
and adjusting the illumination angle of the lamp light of the desk lamp up and down according to the height.
On the other hand, the embodiment of the invention also provides a light adjusting device, which comprises:
the image acquisition module is used for acquiring a preset area image containing a target user;
the sitting posture orientation determining module is used for determining the sitting posture orientation of the target user according to the preset area image;
and the angle adjusting module is used for adjusting the irradiation angle of the lamp light of the desk lamp according to the sitting posture orientation of the target user.
Further preferably, the sitting posture orientation determining module comprises:
the position determining unit is used for determining the position relation between the target user and the desk lamp according to the position of the target user in the preset area image;
The image library determining unit is used for determining a corresponding target image library according to the position relation;
the image extraction unit is used for extracting the image of the target user from the preset area image;
the image matching unit is used for matching the image of the target user with the images in the target image library;
and the sitting posture orientation determining unit is used for determining the sitting posture orientation of the target user according to the matching result.
Further preferably, the method further comprises the following steps:
the sitting posture detection module is used for detecting the sitting posture of the user;
the image acquisition module is used for acquiring a preset area image containing a target user when the sitting posture of the user meets a preset standard;
and the prompting module is used for sending out prompting information when the sitting posture of the user does not accord with the preset standard.
Further preferably, the method further comprises the following steps:
the height determining module is used for analyzing the height of the head of the target user from a desktop according to the preset area image;
the angle adjusting module is also used for adjusting the irradiation angle of the lamp light of the desk lamp up and down according to the height.
In still another aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is used to implement the steps of the light adjusting method according to any one of claims 1 to 5 when executed by a processor.
Compared with the prior art, the light adjusting method, the light adjusting device and the storage medium have the following beneficial effects: according to the invention, the sitting posture orientation of the target user is determined through the acquired preset area image containing the target user, then the illumination angle of the lamp light of the desk lamp is adjusted according to the sitting posture orientation of the user, and after the sitting posture orientation of the user is changed, the illumination angle of the lamp light can be automatically adjusted according to the sitting posture orientation of the user, so that the user can still automatically obtain proper lamp light illumination after the working area is changed, the eyesight of the user is protected, the illumination direction of the desk lamp does not need to be manually adjusted by the user, and the use experience of the user is improved.
Drawings
The above features, technical features, advantages and implementations of a light adjusting method, device and storage medium will be further described in the following detailed description of preferred embodiments in a clearly understandable manner, with reference to the accompanying drawings.
FIG. 1 is a schematic flow chart of a first embodiment of a light adjusting method according to the present invention;
FIG. 2 is a schematic flow chart of a second embodiment of a light adjusting method according to the present invention;
FIG. 3 is a schematic flow chart of a third embodiment of a light adjusting method according to the present invention;
FIG. 4 is a schematic flow chart of a fourth embodiment of a light adjusting method according to the present invention;
fig. 5 is a schematic flow chart of a fifth embodiment of a light adjusting method according to the present invention;
fig. 6 is a block diagram schematically illustrating the structure of an embodiment of a light adjusting device according to the present invention.
Description of the reference numerals
100. An image acquisition module; 200. A sitting posture orientation determination module;
210. a position determination unit; 220. An image library determination unit;
230. an image extraction unit; 240. An image matching unit;
250. a sitting posture orientation determining unit; 300. An angle adjustment module;
400. a sitting posture detection module; 410. A first detection unit;
420. a second detection unit; 500. A prompt module;
600. and a height determination module.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
Fig. 1 is a flowchart of a light adjusting method according to an embodiment of the present invention, where the method is used to adjust a light irradiation angle of a desk lamp, and the method may be executed by a light adjusting device, and the light adjusting device may be implemented by software and/or hardware and integrated in an intelligent desk lamp. The light adjusting method specifically comprises the following steps:
s100, acquiring a preset area image containing a target user;
specifically, a preset area image containing a target user is shot and acquired through a camera on the desk lamp. The preset area is a sector area which is radiated to the periphery of the desk lamp by taking a camera on the desk lamp as a base point, and in order to enable the shot preset area image to contain the image of the target user, the sector area is set to be as large as possible so as to radiate a larger range. For example, the desk lamp is placed on a desktop, and a sector area is formed at a preset angle (e.g., approximately 180 degrees) with a camera arranged on the desk lamp as a base point, and the sector area is the preset area. When a user exists in front of the desk lamp, the user is a target user, and an image of a preset area containing the target user is shot through a camera on the desk lamp. The position of the preset area in this embodiment may change according to the change of the position of the camera, and the shape and size of the preset area may not change with the change of the position of the camera after being set, and of course, the shape and size of the preset area may be set and changed by the user.
S200, determining the sitting posture orientation of the target user according to the preset area image;
specifically, the sitting posture orientation refers to a direction in which a user faces his body when sitting at a table. For example, when the user sits at a table and faces the right front, the user is in a sitting state; when the user sits in front of the desk and the body faces to the right front, the sitting posture of the user is indicated to be towards the right; when the user sits in front of the desk with the body facing to the front left, the sitting posture of the user is indicated to be towards the left. Here, the left and right directions are based on the body of the user, and the sitting posture toward the left direction means toward the left side of the user, and the sitting posture toward the right direction means toward the right side of the user.
After the preset area image is obtained, the sitting posture orientation of the target user can be identified by processing and identifying the target user image in the preset area image. When the sitting posture orientation of the target user is determined through the preset area image, the image recognition method in the prior art can be used for recognition.
For example, assume a preset area image acquired when the desk lamp is positioned directly in front of the target user. After the preset area image is obtained, firstly carrying out binarization processing on the preset area image, extracting a target user image from the preset area image, then extracting coordinate information of any point in the eye watching direction of the target user from the target user image, and finally determining the sitting posture orientation of the target user according to the coordinate information of the center point of the preset area image and the coordinate information of any point in the eye watching direction of the target user. For example, when the eye gaze direction of the target user is determined to be located on the left side of the center point according to the coordinate information of any point in the eye gaze direction of the target user and the coordinate information of the center point in the preset area image, it indicates that the sitting posture orientation of the target user is towards the right side of the target user. When the eye gaze direction of the target user is determined to be to the right of the center point, it is indicated that the target user is oriented in a sitting position toward the left of the target user.
When the preset area image is acquired, the desk lamp is not positioned right in front of the target user, the central point of the target user image is used as a reference, the eye gazing direction of the target user is determined to be positioned on the side of the target user, and then the sitting posture orientation of the target user is determined.
S300, adjusting the illumination angle of the table lamp light according to the sitting posture orientation of the target user.
Specifically, after the sitting posture orientation of the target user is determined according to the method, the illumination angle of the lamp light of the desk lamp can be adjusted left and right according to the sitting posture orientation of the target user.
For example, if the sitting posture of the target user is towards the right, which indicates that the target user needs to irradiate light towards the right side, the desk lamp rotates towards the right side of the target user to adjust the irradiation angle of the desk lamp light; if the sitting posture of the target user is towards the left, which indicates that the target user needs to irradiate light towards the left side, the desk lamp rotates towards the left side of the target user to adjust the irradiation angle of the desk lamp light.
When the irradiation angle of the table lamp light is adjusted left and right, the light source on the upper portion of the table lamp may rotate, or the supporting rod supporting the light source on the table lamp may rotate.
In this embodiment, through the preset regional image who contains the target user who obtains, confirm the position of sitting orientation of target user, then according to user's position of sitting orientation, adjust the angle of illumination of desk lamp light, after user's position of sitting orientation changes, can adjust the angle of illumination of light according to user's position of sitting orientation automatically, make the user still can obtain suitable light illumination automatically after changing work area, user's eyesight has not only been protected, and need not user's manual direction of illumination to the desk lamp and adjust, user's use experience has been improved.
Fig. 2 is a flowchart of a light adjustment method according to a second embodiment of the present invention, where based on the first embodiment, the step S200 of determining a sitting posture orientation of the target user according to the preset area image specifically includes:
s210, determining the position relation between the target user and the desk lamp according to the position of the target user in the preset area image;
specifically, the preset area image may be processed first, and a central point coordinate of the preset area image and a central point coordinate corresponding to the target user in the preset area image are obtained; and then determining the position of the target user in the preset area image according to the center point coordinate of the preset area image and the center point coordinate corresponding to the target user, and then determining the position relation between the target user and the desk lamp according to the position of the target user in the preset area image, namely determining the position of the target user in the desk lamp when the preset area image is acquired through a camera on the desk lamp, such as the position right in front, the position left in front or the position right in front of the desk lamp.
When the user is in the same sitting posture, the user is photographed from the left side or the right side of the user, and there may be a difference in image characteristics of the user in the obtained image, so in order to accurately judge the sitting posture orientation of the user, it is necessary to determine the positional relationship between the target user and the table lamp.
S220, determining a corresponding target image library according to the position relation;
specifically, after the position relationship between the target user and the desk lamp is determined, the corresponding target image library is determined according to the position relationship between the target user and the desk lamp. In this embodiment, each position relationship corresponds to one image library, and each image library is used for storing an image of each sitting posture orientation in the corresponding position relationship. And if the position relation between the target user and the desk lamp is that the target user is positioned in the left front of the desk lamp, searching a target image library corresponding to the left front.
When determining the corresponding target image library according to the position relationship, a mapping table may be stored in advance, where the mapping table is used to store the mapping relationship between the position relationship and the image library, and then the corresponding target image library is determined according to the position relationship and the pre-stored mapping table.
S230, extracting an image of the target user from the preset area image;
Specifically, in order to reduce interference of noise such as a background image in the preset region image when the images are matched and improve the matching rate, binarization processing or other image processing methods may be performed on the preset region image to extract the image of the target user from the preset region image.
S240, matching the image of the target user with the image in the target image library;
specifically, the target image library stores therein various sitting posture images of the user, for example, a sitting posture image directed to the right side and a sitting posture image directed to the left side. To improve the matching rate, the sitting posture image toward the right side can be further subdivided into a sitting posture image toward the right side by 10 degrees, a sitting posture image toward the right side by 20 degrees, a sitting posture image toward the right side by 30 degrees, and the like. The sitting posture image toward the left side is subdivided into a sitting posture image toward the left side by 10 degrees, a sitting posture image toward the left side by 20 degrees, a sitting posture image toward the left side by 30 degrees, and the like. After the image of the target user is extracted from the preset area image, the extracted image of the target user can be matched with various sitting posture images stored in a target image library.
And S250, determining the sitting posture orientation of the target user according to the matching result.
Specifically, when the image of the target user is matched with a sitting posture image in the target image library, the sitting posture orientation of the target user can be determined according to the matched sitting posture image.
In the embodiment, the image library is divided according to the position relationship between the user and the desk lamp, the target image library is determined according to the position relationship between the user and the desk lamp, finally, the image of the target user is matched with the image in the target image library, the sitting posture orientation of the target user is determined according to the matching result, and the sitting posture orientation judgment accuracy can be improved.
Fig. 3 is a flowchart of a light adjustment method according to a third embodiment of the present invention, which is a preferred embodiment of the first embodiment or the second embodiment. The light adjusting method of the embodiment specifically includes:
s010 detects the sitting posture of the user;
specifically, before the preset area image is acquired, the sitting posture of the user can be detected.
There are various methods of detecting the sitting posture of the user:
the first method comprises the following steps: the method comprises the steps of acquiring a face image of a user by using a camera, and detecting the relative distance between eyes of the user and a book or a desktop by combining an image recognition technology according to the distance between the camera and the face of the user. And finally, judging whether the sitting posture of the user meets the preset standard or not according to the detected distance.
And the second method comprises the following steps: acquiring continuous multi-frame infrared images of a user, extracting a sitting posture profile of the user from the infrared images, acquiring characteristic information of the sitting posture profile of the user, matching the extracted characteristic information with preset characteristic information, and finally judging whether the sitting posture of the user meets a preset standard according to a matching result.
The first sitting posture detection method and the second sitting posture detection method both acquire images of a user, and then detect whether the sitting posture of the user meets a preset standard through an image processing technology.
S020, when the sitting posture of the user meets a preset standard, acquiring a preset area image containing a target user;
specifically, when the sitting posture of the target user is judged to meet the preset standard according to the sitting posture detection result, the preset area image containing the target user is obtained through shooting of the camera on the desk lamp.
S030 when the sitting posture of the user does not meet the preset standard, a prompt message is sent out;
specifically, when the sitting posture of the user is judged to be not in accordance with the preset standard according to the sitting posture detection result, voice prompt information can be sent out to prompt the user to change the sitting posture of the user, so that the eyesight of the user is protected. After the prompt information is sent for a period of time, the sitting posture of the user can be detected again, if the preset standard is not met, the prompt information is sent again to remind the user, and if the preset standard is met, the preset area image containing the target user is obtained.
S100, acquiring a preset area image containing a target user;
s200, determining the sitting posture orientation of the target user according to the preset area image;
s300, adjusting the illumination angle of the table lamp light according to the sitting posture orientation of the target user.
In this embodiment, detect user's position of sitting earlier to under the prerequisite that the position of sitting accords with preset standard, adjust the illumination angle of light according to user's lighting requirements, so that better protection user's eyesight.
Fig. 4 is a flowchart of a light adjusting method according to a fourth embodiment of the present invention, which is a preferred embodiment of the third embodiment, where the light adjusting method of the present embodiment specifically includes:
s011, detecting whether a target user exists through a first detection unit at a first preset position on the desk lamp;
specifically, the first detection unit includes a transmitting module and a receiving module, such as an ultrasonic transmitting module and an ultrasonic receiving module, or an infrared transmitting module and an infrared receiving module.
The first preset position can be a certain position on the support frame of the desk lamp, and the first preset position is positioned below the lamp holder (light source). The signal is transmitted through the transmitting module arranged at the first preset position, if a target user exists in front of the desk lamp, the receiving module at the first preset position can receive the returned signal, and if the target user does not exist in front of the desk lamp, the receiving module at the first preset position cannot receive the returned signal. Therefore, the presence or absence of the target user can be detected by the first detection unit.
S012 when detecting that there is the target user, detecting whether the head of the target user is higher than a preset threshold value through a second detection unit at a second preset position on the desk lamp, if so, the sitting posture of the user meets a preset standard; wherein the second preset position is higher than the first preset position;
specifically, the second preset position is higher than the first preset position, and the second preset position is set according to the preset standard of the sitting posture. For example, if the preset standard of the sitting posture specifies that the height of the user's eyes from the book is 30cm, the second preset position may be set to be 35cm away from the desktop, and the second preset position corresponds to the head of the user.
The second detection unit also comprises a transmitting module and a receiving module, such as an ultrasonic transmitting module and an ultrasonic receiving module, or an infrared transmitting module and an infrared receiving module. And judging whether the head of the target can be detected or not through the second detection unit, if so, indicating that the head of the target user is higher than a preset threshold value, and if not, indicating that the head of the target user is lower than the preset threshold value.
The sitting posture of the target user is detected by combining the first detection unit and the second detection unit, and when the first detection unit and the second detection unit do not detect an object, the situation that the user does not exist in front of the desk lamp is indicated; when the first detection unit detects an object and the second detection unit does not detect the object, the situation that a user exists in front of the desk lamp is indicated, but the sitting posture of the user does not accord with the preset standard; when the first detection unit and the second detection unit detect the object, the user exists in front of the desk lamp, and the sitting posture of the user meets the preset standard.
In this embodiment, whether the position of sitting that detects the user accords with the preset standard through supersound detecting element or infrared detecting element not only can simplify the testing process, need not to detect user's position of sitting moreover through complicated image recognition technology, improves the detection rate that the position of sitting detected.
S020, when the sitting posture of the user meets a preset standard, acquiring a preset area image containing a target user;
s030 when the sitting posture of the user does not meet the preset standard, a prompt message is sent out;
s100, acquiring a preset area image containing a target user;
s200, determining the sitting posture orientation of the target user according to the preset area image;
s300, adjusting the illumination angle of the table lamp light according to the sitting posture orientation of the target user.
Fig. 5 is a flowchart of a light adjusting method according to a fifth embodiment of the present invention, and this embodiment adds a method for adjusting the light of the desk lamp up and down on the basis of the first embodiment. The light adjusting method of the embodiment specifically includes:
s100, acquiring a preset area image containing a target user;
s200, determining the sitting posture orientation of the target user according to the preset area image;
s300, adjusting the illumination angle of the table lamp light according to the sitting posture orientation of the target user;
S400, analyzing the height of the head of the target user from a desktop according to the preset area image;
s500, adjusting the illumination angle of the lamp light of the desk lamp up and down according to the height.
Specifically, in this embodiment, the order of step S200 and step S300 and the order of step S400 and step S500 may be exchanged, but step S300 is located after step S200, and step S500 is located after step S400. For example, the execution sequence may be S200, S300, S400, S500; or S400, S500, S200, S300.
After the preset area image containing the target user is obtained, the height of the head of the target user from the desktop can be analyzed according to the preset area image. Analyzing the height of the head of the target user from the desktop through the preset area image is the existing image processing technology, and is not described herein again.
After the height of the head of the target user from the desktop is obtained, the irradiation angle of the lamp light of the desk lamp can be adjusted up and down according to the height, so that the irradiation angle of the desk lamp is adjusted to be a proper height, the comfort level of the user is improved, and the eyesight of the user is protected.
It should be understood that, in the foregoing embodiments, the sequence numbers of the steps do not mean the execution sequence, and the execution sequence of the steps should be determined by functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
Fig. 6 is a schematic block diagram of a structure of a light adjusting device according to a sixth embodiment of the present invention, where the light adjusting device specifically includes:
an image obtaining module 100, configured to obtain a preset area image including a target user;
specifically, a preset area image containing a target user is shot and acquired through a camera on the desk lamp. The preset area is a sector area which is radiated to the periphery of the desk lamp by taking a camera on the desk lamp as a base point, and in order to enable the shot preset area image to contain the image of the target user, the sector area is set to be as large as possible so as to radiate a larger range. For example, the desk lamp is placed on a desktop, and a sector area is formed at a preset angle (e.g., approximately 180 degrees) with a camera arranged on the desk lamp as a base point, and the sector area is the preset area. When a user exists in front of the desk lamp, the user is a target user, and an image of a preset area containing the target user is shot through a camera on the desk lamp. The position of the preset area in this embodiment may change according to the change of the position of the camera, and the shape and size of the preset area may not change with the change of the position of the camera after being set, and of course, the shape and size of the preset area may be set and changed by the user.
A sitting posture orientation determining module 200, configured to determine a sitting posture orientation of the target user according to the preset area image;
specifically, the sitting posture orientation refers to a direction in which a user faces his body when sitting at a table. For example, when the user sits at a table and faces the right front, the user is in a sitting state; when the user sits in front of the desk and the body faces to the right front, the sitting posture of the user is indicated to be towards the right; when the user sits in front of the desk with the body facing to the front left, the sitting posture of the user is indicated to be towards the left. Here, the left and right directions are based on the body of the user, and the sitting posture toward the left direction means toward the left side of the user, and the sitting posture toward the right direction means toward the right side of the user.
After the preset area image is obtained, the sitting posture orientation of the target user can be identified by processing and identifying the target user image in the preset area image. When the sitting posture orientation of the target user is determined through the preset area image, the image recognition method in the prior art can be used for recognition.
For example, assume a preset area image acquired when the desk lamp is positioned directly in front of the target user. After the preset area image is obtained, firstly carrying out binarization processing on the preset area image, extracting a target user image from the preset area image, then extracting coordinate information of any point in the eye watching direction of the target user from the target user image, and finally determining the sitting posture orientation of the target user according to the coordinate information of the center point of the preset area image and the coordinate information of any point in the eye watching direction of the target user. For example, when the eye gaze direction of the target user is determined to be located on the left side of the center point according to the coordinate information of any point in the eye gaze direction of the target user and the coordinate information of the center point in the preset area image, it indicates that the sitting posture orientation of the target user is towards the right side of the target user. When the eye gaze direction of the target user is determined to be to the right of the center point, it is indicated that the target user is oriented in a sitting position toward the left of the target user.
When the preset area image is acquired, the desk lamp is not positioned right in front of the target user, the central point of the target user image is used as a reference, the eye gazing direction of the target user is determined to be positioned on the side of the target user, and then the sitting posture orientation of the target user is determined.
And the angle adjusting module 300 is used for adjusting the illumination angle of the lamp light of the desk lamp according to the sitting posture orientation of the target user.
Specifically, after the sitting posture orientation of the target user is determined according to the method, the illumination angle of the lamp light of the desk lamp can be adjusted left and right according to the sitting posture orientation of the target user.
For example, if the sitting posture of the target user is towards the right, which indicates that the target user needs to irradiate light towards the right side, the desk lamp rotates towards the right side of the target user to adjust the irradiation angle of the desk lamp light; if the sitting posture of the target user is towards the left, which indicates that the target user needs to irradiate light towards the left side, the desk lamp rotates towards the left side of the target user to adjust the irradiation angle of the desk lamp light.
When the irradiation angle of the table lamp light is adjusted left and right, the light source on the upper portion of the table lamp may rotate, or the supporting rod supporting the light source on the table lamp may rotate.
In this embodiment, through the preset regional image who contains the target user who obtains, confirm the position of sitting orientation of target user, then according to user's position of sitting orientation, adjust the angle of illumination of desk lamp light, after user's position of sitting orientation changes, can adjust the angle of illumination of light according to user's position of sitting orientation automatically, make the user still can obtain suitable light illumination automatically after changing work area, user's eyesight has not only been protected, and need not user's manual direction of illumination to the desk lamp and adjust, user's use experience has been improved.
Preferably, the sitting posture orientation determining module 200 includes:
a position determining unit 210, configured to determine a position relationship between the target user and the desk lamp according to a position of the target user in the preset area image;
specifically, the preset area image may be processed first, and a central point coordinate of the preset area image and a central point coordinate corresponding to the target user in the preset area image are obtained; and then determining the position of the target user in the preset area image according to the center point coordinate of the preset area image and the center point coordinate corresponding to the target user, and then determining the position relation between the target user and the desk lamp according to the position of the target user in the preset area image, namely determining the position of the target user in the desk lamp when the preset area image is acquired through a camera on the desk lamp, such as the position right in front, the position left in front or the position right in front of the desk lamp.
When the user is in the same sitting posture, the user is photographed from the left side or the right side of the user, and there may be a difference in image characteristics of the user in the obtained image, so in order to accurately judge the sitting posture orientation of the user, it is necessary to determine the positional relationship between the target user and the table lamp.
An image library determining unit 220, configured to determine a corresponding target image library according to the position relationship;
specifically, after the position relationship between the target user and the desk lamp is determined, the corresponding target image library is determined according to the position relationship between the target user and the desk lamp. In this embodiment, each position relationship corresponds to one image library, and each image library is used for storing an image of each sitting posture orientation in the corresponding position relationship. And if the position relation between the target user and the desk lamp is that the target user is positioned in the left front of the desk lamp, searching a target image library corresponding to the left front.
When determining the corresponding target image library according to the position relationship, a mapping table may be stored in advance, where the mapping table is used to store the mapping relationship between the position relationship and the image library, and then the corresponding target image library is determined according to the position relationship and the pre-stored mapping table.
An image extracting unit 230, configured to extract an image of the target user from the preset area image;
Specifically, in order to reduce interference of noise such as a background image in the preset region image when the images are matched and improve the matching rate, binarization processing or other image processing methods may be performed on the preset region image to extract the image of the target user from the preset region image.
An image matching unit 240, configured to match the image of the target user with images in the target image library;
specifically, the target image library stores therein various sitting posture images of the user, for example, a sitting posture image directed to the right side and a sitting posture image directed to the left side. To improve the matching rate, the sitting posture image toward the right side can be further subdivided into a sitting posture image toward the right side by 10 degrees, a sitting posture image toward the right side by 20 degrees, a sitting posture image toward the right side by 30 degrees, and the like. The sitting posture image toward the left side is subdivided into a sitting posture image toward the left side by 10 degrees, a sitting posture image toward the left side by 20 degrees, a sitting posture image toward the left side by 30 degrees, and the like. After the image of the target user is extracted from the preset area image, the extracted image of the target user can be matched with various sitting posture images stored in a target image library.
A sitting posture orientation determining unit 250, configured to determine a sitting posture orientation of the target user according to the matching result.
Specifically, when the image of the target user is matched with a sitting posture image in the target image library, the sitting posture orientation of the target user can be determined according to the matched sitting posture image.
In the embodiment, the image library is divided according to the position relationship between the user and the desk lamp, the target image library is determined according to the position relationship between the user and the desk lamp, finally, the image of the target user is matched with the image in the target image library, the sitting posture orientation of the target user is determined according to the matching result, and the sitting posture orientation judgment accuracy can be improved.
Preferably, the method further comprises the following steps:
a sitting posture detection module 400 for detecting a sitting posture of the user;
specifically, before the preset area image is acquired, the sitting posture of the user can be detected.
There are various methods of detecting the sitting posture of the user:
the first method comprises the following steps: the method comprises the steps of acquiring a face image of a user by using a camera, and detecting the relative distance between eyes of the user and a book or a desktop by combining an image recognition technology according to the distance between the camera and the face of the user. And finally, judging whether the sitting posture of the user meets the preset standard or not according to the detected distance.
And the second method comprises the following steps: acquiring continuous multi-frame infrared images of a user, extracting a sitting posture profile of the user from the infrared images, acquiring characteristic information of the sitting posture profile of the user, matching the extracted characteristic information with preset characteristic information, and finally judging whether the sitting posture of the user meets a preset standard according to a matching result.
The first sitting posture detection method and the second sitting posture detection method both acquire images of a user, and then detect whether the sitting posture of the user meets a preset standard through an image processing technology.
The image acquisition module 100 is configured to acquire a preset area image including a target user when the sitting posture of the user meets a preset standard;
specifically, when the sitting posture of the target user is judged to meet the preset standard according to the sitting posture detection result, the preset area image containing the target user is obtained through shooting of the camera on the desk lamp.
The prompting module 500 is configured to send a prompting message when the sitting posture of the user does not meet a preset standard.
Specifically, when the sitting posture of the user is judged to be not in accordance with the preset standard according to the sitting posture detection result, voice prompt information can be sent out to prompt the user to change the sitting posture of the user, so that the eyesight of the user is protected. After the prompt information is sent for a period of time, the sitting posture of the user can be detected again, if the preset standard is not met, the prompt information is sent again to remind the user, and if the preset standard is met, the preset area image containing the target user is obtained.
In this scheme, detect user's position of sitting earlier to under the prerequisite that the position of sitting accords with preset standard, adjust the angle of shining of light according to user's lighting demand, so that better protection user's eyesight.
Preferably, the seating posture detecting module 400 includes:
the first detection unit 410 is arranged at a first preset position of the desk lamp and used for detecting whether a target user exists or not;
specifically, the first detection unit includes a transmitting module and a receiving module, such as an ultrasonic transmitting module and an ultrasonic receiving module, or an infrared transmitting module and an infrared receiving module.
The first preset position can be a certain position on the support frame of the desk lamp, and the first preset position is positioned below the lamp holder (light source). The signal is transmitted through the transmitting module arranged at the first preset position, if a target user exists in front of the desk lamp, the receiving module at the first preset position can receive the returned signal, and if the target user does not exist in front of the desk lamp, the receiving module at the first preset position cannot receive the returned signal. Therefore, the presence or absence of the target user can be detected by the first detection unit.
The second detection unit 420 is arranged at a second preset position of the desk lamp and used for detecting whether the head of the target user is higher than a preset threshold value; the second predetermined position is higher than the first predetermined position.
Specifically, the second preset position is higher than the first preset position, and the second preset position is set according to the preset standard of the sitting posture. For example, if the preset standard of the sitting posture specifies that the height of the user's eyes from the book is 30cm, the second preset position may be set to be 35cm away from the desktop, and the second preset position corresponds to the head of the user.
The second detection unit also comprises a transmitting module and a receiving module, such as an ultrasonic transmitting module and an ultrasonic receiving module, or an infrared transmitting module and an infrared receiving module. And judging whether the head of the target can be detected or not through the second detection unit, if so, indicating that the head of the target user is higher than a preset threshold value, and if not, indicating that the head of the target user is lower than the preset threshold value.
The sitting posture of the target user is detected by combining the first detection unit and the second detection unit, and when the first detection unit and the second detection unit do not detect an object, the situation that the user does not exist in front of the desk lamp is indicated; when the first detection unit detects an object and the second detection unit does not detect the object, the situation that a user exists in front of the desk lamp is indicated, but the sitting posture of the user does not accord with the preset standard; when the first detection unit and the second detection unit detect the object, the user exists in front of the desk lamp, and the sitting posture of the user meets the preset standard.
In this scheme, whether the position of sitting that detects the user through supersound detecting element or infrared detecting element accords with preset standard, not only can simplify the testing process, need not to detect user's position of sitting moreover through complicated image recognition technology, improves the detection rate that the position of sitting detected.
Preferably, the method further comprises the following steps:
a height determining module 600, configured to analyze a height of the head of the target user from a desktop according to the preset region image;
the angle adjusting module 300 is further configured to adjust the illumination angle of the desk lamp light up and down according to the height.
After the preset area image containing the target user is obtained, the height of the head of the target user from the desktop can be analyzed according to the preset area image. Analyzing the height of the head of the target user from the desktop through the preset area image is the existing image processing technology, and is not described herein again.
After the height of the head of the target user from the desktop is obtained, the irradiation angle of the lamp light of the desk lamp can be adjusted up and down according to the height, so that the irradiation angle of the desk lamp is adjusted to be a proper height, the comfort level of the user is improved, and the eyesight of the user is protected.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the light adjustment method according to any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The integrated modules/units described above, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by sending instructions to relevant hardware through a computer program, where the computer program may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises: computer program code which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include: any entity or device capable of carrying said computer program code, a recording medium, a usb disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a Random Access Memory (RAM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A light conditioning method, comprising:
acquiring a preset area image containing a target user;
determining the sitting posture orientation of the target user according to the preset area image;
and adjusting the illumination angle of the lamp light of the desk lamp according to the sitting posture orientation of the target user.
2. A light adjustment method according to claim 1, wherein the determining the sitting posture orientation of the target user according to the preset area image specifically comprises:
determining the position relation between the target user and the desk lamp according to the position of the target user in the preset area image;
determining a corresponding target image library according to the position relation;
extracting the image of the target user from the preset area image;
Matching the image of the target user with the images in the target image library;
and determining the sitting posture orientation of the target user according to the matching result.
3. A light adjustment method according to claim 1 or 2, wherein said obtaining an image of a predetermined area containing a target user further comprises:
detecting a sitting posture of a user;
when the sitting posture of the user meets a preset standard, acquiring a preset area image containing a target user;
and when the sitting posture of the user does not meet the preset standard, sending a prompt message.
4. A light adjustment method according to claim 3, wherein the detecting a sitting posture of the user specifically comprises:
detecting whether a target user exists or not through a first detection unit at a first preset position on the table lamp;
when the target user is detected to exist, detecting whether the head of the target user is higher than a preset threshold value through a second detection unit at a second preset position on the table lamp, and if so, enabling the sitting posture of the user to meet a preset standard; wherein the second preset position is higher than the first preset position.
5. A light conditioning method according to claim 1, further comprising:
Analyzing the height of the head of the target user from a desktop according to the preset area image;
and adjusting the illumination angle of the lamp light of the desk lamp up and down according to the height.
6. A light conditioning device, comprising:
the image acquisition module is used for acquiring a preset area image containing a target user;
the sitting posture orientation determining module is used for determining the sitting posture orientation of the target user according to the preset area image;
and the angle adjusting module is used for adjusting the irradiation angle of the lamp light of the desk lamp according to the sitting posture orientation of the target user.
7. A light-regulating device according to claim 6, wherein the sitting orientation determining module comprises:
the position determining unit is used for determining the position relation between the target user and the desk lamp according to the position of the target user in the preset area image;
the image library determining unit is used for determining a corresponding target image library according to the position relation;
the image extraction unit is used for extracting the image of the target user from the preset area image;
the image matching unit is used for matching the image of the target user with the images in the target image library;
And the sitting posture orientation determining unit is used for determining the sitting posture orientation of the target user according to the matching result.
8. A light-regulating device in accordance with claim 6 or 7, further comprising:
the sitting posture detection module is used for detecting the sitting posture of the user;
the image acquisition module is used for acquiring a preset area image containing a target user when the sitting posture of the user meets a preset standard;
and the prompting module is used for sending out prompting information when the sitting posture of the user does not accord with the preset standard.
9. A light conditioning unit, as defined in claim 6, further comprising:
the height determining module is used for analyzing the height of the head of the target user from a desktop according to the preset area image;
the angle adjusting module is also used for adjusting the irradiation angle of the lamp light of the desk lamp up and down according to the height.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of the light adjustment method according to any one of claims 1 to 5.
CN201910425853.2A 2019-05-21 2019-05-21 Lamplight adjusting method and device and storage medium Pending CN111988894A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910425853.2A CN111988894A (en) 2019-05-21 2019-05-21 Lamplight adjusting method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910425853.2A CN111988894A (en) 2019-05-21 2019-05-21 Lamplight adjusting method and device and storage medium

Publications (1)

Publication Number Publication Date
CN111988894A true CN111988894A (en) 2020-11-24

Family

ID=73437329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910425853.2A Pending CN111988894A (en) 2019-05-21 2019-05-21 Lamplight adjusting method and device and storage medium

Country Status (1)

Country Link
CN (1) CN111988894A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114165907A (en) * 2021-10-27 2022-03-11 珠海视熙科技有限公司 Desktop equipment control method and device and storage medium
CN114938556A (en) * 2022-04-29 2022-08-23 中国科学院半导体研究所 Automatic adjusting method and device for light of desk lamp, electronic equipment and storage medium
CN115076663A (en) * 2022-06-30 2022-09-20 深圳市沃特沃德信息有限公司 Method, device, equipment and medium for reducing illumination shadow of table lamp

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104747970A (en) * 2015-03-23 2015-07-01 东华大学 Multifunctional intelligent table lamp
CN107606512A (en) * 2017-07-27 2018-01-19 广东数相智能科技有限公司 A kind of intelligent desk lamp, the method and device based on intelligent desk lamp prompting user's sitting posture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104747970A (en) * 2015-03-23 2015-07-01 东华大学 Multifunctional intelligent table lamp
CN107606512A (en) * 2017-07-27 2018-01-19 广东数相智能科技有限公司 A kind of intelligent desk lamp, the method and device based on intelligent desk lamp prompting user's sitting posture

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114165907A (en) * 2021-10-27 2022-03-11 珠海视熙科技有限公司 Desktop equipment control method and device and storage medium
CN114938556A (en) * 2022-04-29 2022-08-23 中国科学院半导体研究所 Automatic adjusting method and device for light of desk lamp, electronic equipment and storage medium
CN114938556B (en) * 2022-04-29 2023-11-24 中国科学院半导体研究所 Automatic adjusting method and device for light of desk lamp, electronic equipment and storage medium
CN115076663A (en) * 2022-06-30 2022-09-20 深圳市沃特沃德信息有限公司 Method, device, equipment and medium for reducing illumination shadow of table lamp

Similar Documents

Publication Publication Date Title
CN111988894A (en) Lamplight adjusting method and device and storage medium
CN103810478B (en) Sitting posture detection method and device
CN107169405B (en) Method and device for living body identification based on binocular camera
CN112118659A (en) Light adjusting method and intelligent device
US9733703B2 (en) System and method for on-axis eye gaze tracking
US8066375B2 (en) Eye tracker having an extended span of operating distances
CN103870796B (en) Eye sight evaluation method and device
US7949153B2 (en) Image processing system, image processing method, image processing program, image capturing apparatus, and image capturing method
US20160249800A1 (en) Computational array camera with dynamic illumination for eye tracking
KR101748563B1 (en) Eye tracking method based both eyes
CN110251070B (en) Eye health condition monitoring method and system
US20210052138A1 (en) Guidance method and systems for teledentistry imaging
US11568561B2 (en) Lamp and method for detecting a sitting posture of a user
WO2006035890A1 (en) Method for detecting line of sight
KR20120127790A (en) Eye tracking system and method the same
US10571721B2 (en) Computer-implemented method for determining a representation of a rim of a spectacles frame or a representation of the edges of the spectacle lenses
CN109635761B (en) Iris recognition image determining method and device, terminal equipment and storage medium
WO2020063614A1 (en) Smart glasses tracking method and apparatus, and smart glasses and storage medium
EP2976990B1 (en) Pupil detection device and pupil detection method
CN106297211A (en) Sitting posture correcting system for prompting based on movable camera and projection light and application thereof
CN115316939A (en) Control method and system of vision screening instrument
CN112020173A (en) Light adjusting method and intelligent desk lamp
JP2001195594A (en) Iris identifying system and method of identifying person by iris recognition
CN103824046A (en) Self-adaptive light-source face identification machine
JP2002056389A (en) Iris identification system and method for identifying person by iris recognition

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201124