CN110440223B - Desk lamp control method and desk lamp - Google Patents

Desk lamp control method and desk lamp Download PDF

Info

Publication number
CN110440223B
CN110440223B CN201910365329.0A CN201910365329A CN110440223B CN 110440223 B CN110440223 B CN 110440223B CN 201910365329 A CN201910365329 A CN 201910365329A CN 110440223 B CN110440223 B CN 110440223B
Authority
CN
China
Prior art keywords
user
image
posture
desk lamp
attitude
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
CN201910365329.0A
Other languages
Chinese (zh)
Other versions
CN110440223A (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 Shuliantianxia Intelligent Technology Co Ltd
Original Assignee
Shenzhen Shuliantianxia Intelligent 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 Shenzhen Shuliantianxia Intelligent Technology Co Ltd filed Critical Shenzhen Shuliantianxia Intelligent Technology Co Ltd
Priority to CN201910365329.0A priority Critical patent/CN110440223B/en
Publication of CN110440223A publication Critical patent/CN110440223A/en
Application granted granted Critical
Publication of CN110440223B publication Critical patent/CN110440223B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21VFUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
    • F21V21/00Supporting, suspending, or attaching arrangements for lighting devices; Hand grips
    • F21V21/14Adjustable mountings
    • F21V21/15Adjustable mountings specially adapted for power operation, e.g. by remote control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/103Static body considered as a whole, e.g. static pedestrian or occupant recognition
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21YINDEXING SCHEME ASSOCIATED WITH SUBCLASSES F21K, F21L, F21S and F21V, RELATING TO THE FORM OR THE KIND OF THE LIGHT SOURCES OR OF THE COLOUR OF THE LIGHT EMITTED
    • F21Y2115/00Light-generating elements of semiconductor light sources
    • F21Y2115/10Light-emitting diodes [LED]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Arrangement Of Elements, Cooling, Sealing, Or The Like Of Lighting Devices (AREA)

Abstract

The embodiment of the invention relates to the technical field of household appliances, and discloses a table lamp control method and a table lamp. The method is applied to the desk lamp, the desk lamp comprises a desk lamp body and a following detection assembly which is rotatably arranged on the desk lamp body, the following detection assembly is used for following a user, and posture images of the user in different postures are generated; the method comprises the following steps: acquiring a real-time attitude image of a user; determining the current posture of the user according to the real-time posture image; and controlling the following detection component to follow the user according to the current posture of the user so as to generate a target posture image, wherein the portrait of the user is presented at the preset image position of the target posture image. Therefore, the desk lamp can detect the change of the user gesture and can move along with the user, the detected user gesture is located at the target detection position, the situation that the user cannot be detected due to the fact that the user moves is avoided, and therefore the detection effect is improved.

Description

Desk lamp control method and desk lamp
Technical Field
The embodiment of the invention relates to the technical field of household appliances, in particular to a table lamp control method.
Background
The existing desk lamp collects the sitting posture of a user by installing a camera, and prompts the user that the sitting posture is wrong when the sitting posture is not in accordance with the standard sitting posture.
However, the existing camera is often fixedly mounted on the desk lamp, when the sitting posture of a user changes, the desk lamp is fixed, the camera is fixed, so that the camera is prone to generating blind areas during collection, and the collected sitting posture data are not accurate enough.
Disclosure of Invention
The embodiment of the invention aims to provide a desk lamp control method and a desk lamp, which can improve the detection effect.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
in a first aspect, an embodiment of the present invention provides a desk lamp control method, where the desk lamp includes a desk lamp body and a following detection component rotatably mounted on the desk lamp body, and the following detection component is configured to follow a user and generate posture images of the user in different postures;
the method comprises the following steps:
acquiring a real-time attitude image of the user;
determining the current posture of the user according to the real-time posture image;
and controlling the following detection component to follow the user according to the current posture of the user so as to generate a target posture image, wherein the portrait of the user is presented at a preset image position of the target posture image.
Optionally, the determining the current posture of the user according to the real-time posture image includes:
judging whether the portrait of the user in the real-time attitude image is located at a preset image position in the real-time attitude image;
if so, determining that the current posture of the user is not changed;
and if not, determining that the current posture of the user changes.
Optionally, the change types of the current posture include a first posture change type and a second posture change type;
the determining that the current posture of the user changes comprises:
if the gesture of the user changes towards a first direction, determining that the change type of the current gesture of the user is a first gesture change type;
and if the gesture of the user changes towards a second direction, determining that the change type of the current gesture of the user is a second gesture change type.
Optionally, the controlling the following detection component to follow the user according to the current posture of the user to generate a target posture image includes:
if the change type of the current posture of the user is the first posture change type, controlling the following detection assembly to follow the user according to the first direction so as to generate a target posture image;
and if the change type of the current posture of the user is the second posture change type, controlling the following detection assembly to follow the user according to the second direction so as to generate a target posture image.
Optionally, each pose image in different poses is a dot matrix image with a uniform format.
Optionally, the preset image position is a central region of the dot matrix image.
Optionally, the desk lamp comprises a lighting assembly, and the lighting assembly is rotatably mounted on the desk lamp body;
the method further comprises the following steps:
recording a rotation angle when the following detection component generates a target attitude image;
and controlling the lighting assembly to rotate according to the rotating angle.
Optionally, the method further comprises:
when the user is detected to be within a preset range of the desk lamp, the lighting assembly is lightened;
and in a preset time, when the user is detected not to be in the preset range of the desk lamp, the lighting assembly is turned off.
Optionally, the method further comprises:
obtaining the ambient brightness;
selecting optimal illumination brightness according to the ambient brightness;
and adjusting the brightness of the lighting assembly according to the optimal lighting brightness.
Optionally, the method further comprises:
acquiring a standard posture image;
and when the real-time attitude image is not matched with the standard attitude image, generating prompt information.
In a second aspect, an embodiment of the present invention provides a desk lamp, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the table lamp control methods.
In each embodiment of the invention, the desk lamp control method acquires the real-time posture image of the user by controlling the following detection component, determines the current posture of the user according to the real-time posture image, and controls the following detection component to follow the user according to the current posture of the user so as to generate the target posture image, wherein the portrait of the user is presented at the preset image position of the target posture image.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1a is a schematic structural diagram of a table lamp according to an embodiment of the present invention;
FIG. 1b is a schematic structural diagram of a base of the desk lamp shown in FIG. 1 a;
FIG. 1c is a schematic view of the structure of the supporting column of the desk lamp shown in FIG. 1 a;
FIG. 1d is a cross-sectional view of the support post shown in FIG. 1 b;
FIG. 1e is a cross-sectional view of the desk lamp shown in FIG. 1 a;
FIG. 1f is a schematic view of the structure of the lighting assembly shown in FIG. 1 a;
FIG. 1g is a partial enlarged view of FIG. 1 f;
FIG. 1h is a schematic structural view of the follow detection assembly shown in FIG. 1 e;
FIG. 1i is another enlarged view of a portion of FIG. 1 e;
FIG. 2a is a schematic diagram of an attitude detection circuit according to an embodiment of the present invention;
FIG. 2b is a schematic diagram of a signal conditioning circuit according to an embodiment of the present invention;
FIG. 2c is a schematic circuit diagram of a signal conditioning circuit according to an embodiment of the present invention;
FIG. 2d is a schematic diagram of a comparison circuit according to an embodiment of the present invention;
FIG. 2e is a schematic circuit diagram of a first comparison circuit according to an embodiment of the present invention;
FIG. 2f is a schematic circuit diagram of a second comparison circuit according to an embodiment of the present invention;
fig. 3 is a schematic circuit structure diagram of a desk lamp according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a table lamp system according to an embodiment of the present invention;
fig. 5a is a schematic flow chart of a desk lamp control method according to an embodiment of the present invention;
FIG. 5b is a schematic diagram of a dot matrix image according to an embodiment of the present invention;
FIG. 5c is a schematic flow chart of S520 in FIG. 5 a;
fig. 5d is a schematic flow chart illustrating a desk lamp control method according to another embodiment of the present invention;
fig. 5e is a schematic flow chart illustrating a desk lamp control method according to yet another embodiment of the present invention;
fig. 5f is a schematic flow chart illustrating a desk lamp control method according to yet another embodiment of the present invention;
fig. 5g is a schematic flow chart illustrating a desk lamp control method according to yet another embodiment of the present invention;
fig. 6 is a schematic flow chart illustrating an application state of a desk lamp control method according to an embodiment of the present invention;
fig. 7a is a schematic structural diagram of a desk lamp control device according to an embodiment of the present invention;
FIG. 7b is a schematic diagram of the structure of the determination module of FIG. 7 a;
fig. 7c is a schematic structural diagram of a desk lamp control device according to another embodiment of the present invention;
fig. 7d is a schematic structural diagram of a desk lamp control device according to yet another embodiment of the present invention;
fig. 7e is a schematic structural diagram of a desk lamp control device according to yet another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a desk lamp control device according to yet another embodiment of the present invention;
fig. 9 is a schematic structural diagram of a controller according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for descriptive purposes only.
In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Referring to fig. 1a, an embodiment of the invention provides a desk lamp 100, which includes a desk lamp body 10 and a following detection assembly 20.
Follow detecting component 20 and install in desk lamp body 10, follow detecting component 20 and can rotate for desk lamp body 10, for example, desk lamp body 10 sets up jaggedly, follows detecting component 20 and install in the breach, follows detecting component 20 and can rotate for desk lamp body 10. For another example, a rotation shaft is mounted on the outer surface of the table lamp body 10, the following detection assembly 20 is mounted on the rotation shaft, and the following detection assembly 20 can rotate relative to the table lamp body 10.
During detection, the following detection component 20 follows the user and generates various posture images of the user in different postures. For example, the user a sits toward the table lamp body 10, and when the user a shifts to the left, the following detection component 20 generates a posture image in the left shift. When the user a shifts to the right, the follow detection component 20 generates a posture image at the right shift.
Therefore, the desk lamp that this embodiment provided not only can detect user's gesture change, can also follow user's removal and detect, avoids user's removal to cause and can not detect user's gesture to improve detection effect.
In some embodiments, with continued reference to fig. 1a, the desk lamp body 10 includes a base 11, a supporting pillar 12, a connecting frame 13 and a lighting assembly 14.
The base 11 is the main carrier of the entire desk lamp 100, carrying the support post 12, the connecting frame 13, the lighting assembly 14 and the following detection assembly 20. The base 11 may be configured in any suitable shape, and in some embodiments, the base 11 is a hollow structure that may house a battery or other electronic components therein.
One end of the supporting column 12 is mounted on the base 11. In some embodiments, the supporting column 12 and the base 11 may be fixed or detachable.
Referring to fig. 1b, the base 11 is provided with a first groove 111 for accommodating one end of the supporting pillar 12, a hole 112 is disposed at the bottom of the first groove 111, a threaded hole is disposed on the supporting pillar 12 opposite to the hole 112 of the first groove 111, and the base 11 is assembled and fixed with the supporting pillar 12 by a threaded connection.
The support posts 12 are used for providing support force for the connecting frame 13 and the lighting assembly 14. In some embodiments, in order to reduce the size and enhance the aesthetic feeling, the following detection assembly 20 is mounted on the supporting column 12, and the following detection assembly 20 can rotate relative to the supporting column 12, for example, the supporting column 12 is provided with a notch, the following detection assembly 20 is mounted in the notch, and when rotating, the following detection assembly 20 rotates in the notch, and the rotation angle range includes 0 degree to 360 degrees.
In some embodiments, the support posts 12 may be configured in any suitable configuration, such as cylindrical or arc-shaped, among others.
Referring to fig. 1c and fig. 1d, the supporting column 12 includes a sheath 121, a limiting casing 122, a supporting plate 123, a first hinge member 124 and a transition member 125, the supporting plate 123 is installed in the limiting casing 122, the sheath 121 is sleeved on the limiting casing 122, and both the first hinge member 124 and the transition member 125 are assembled with the limiting casing 122.
In this embodiment, the sheath 121 is a hollow structure, and is provided with an accommodating cavity 1211, the accommodating cavity 1211 is used for accommodating the limiting housing 122 and following the detection assembly 20, the sheath 121 is further provided with a notch 1212, the notch 1212 is communicated with the accommodating cavity 1211 and the external environment, the following detection assembly 20 is provided with a detection component for tracking and detecting, and the detection component can be exposed due to the notch 1212, so as to implement the tracking and detecting functions.
In some embodiments, the detection component may select any suitable sensing device, for example, the detection component includes an infrared thermal imaging sensor for acquiring real-time posture images of the user sitting towards the table lamp 100 and/or an ultrasonic sensor for acquiring the distance between the user and the table lamp 100.
In this embodiment, the limiting sheath 122 is adapted to the shape of the sheath 121, and the limiting sheath 122 is sleeved in the sheath 121.
The limiting sheath 122 is also hollow, and the limiting sheath 122 is used for accommodating the following detection assembly 20 and limiting the position of the following detection assembly 20. The restraining sheath 122 is provided with a first supporting wall 1221, a second supporting wall 1222 and a third supporting wall 1223, the first supporting wall 1221, the second supporting wall 1222 and the third supporting wall 1223 are parallel to each other, wherein a receiving groove 1224 is formed between the first supporting wall 1221 and the second supporting wall 1222, the receiving groove 1224 is used for receiving a part of the following detection assembly 20, and similarly, the receiving groove 1224 is used for exposing a detection part of the following detection assembly 20 to realize the tracking and detection functions.
A third supporting wall 1223 is provided inside the stopper housing 122 and located on a side close to the first supporting wall 1221, and the first supporting wall 1221, the second supporting wall 1222, and the third supporting wall 1223 collectively restrict the following detection unit 20.
The first supporting wall 1221 is provided with a first through hole 1225, the second supporting wall 1222 is provided with a second through hole 1226, the third supporting wall 1223 is provided with a third through hole 1227, and the first through hole 1225, the second through hole 1226 and the third through hole 1227 are located at opposite positions, and are all used for allowing part of the following detection assembly 20 to pass through, and meanwhile, have a certain limiting effect on the following detection assembly 20.
An extension column (not shown) is further arranged on the limiting shell 122, a corresponding hole position is arranged on the extension column, and the hole position is used for being assembled with the base 11 through screws, so that the support column 12 and the base 11 are fixed.
In this embodiment, the position limiting housing 122 is composed of two parts, which facilitates the placement of the following detection assembly 20. When the device is installed, the following detection assembly 20 is installed in the two parts of the limiting shells 122, the two parts of the limiting shells 122 are fixed, and the sheath 121 is sleeved outside the two parts of the limiting shells 122 to fix the two parts of the limiting shells 122, so that the device is convenient to install, and the two parts of the limiting shells 122 can be prevented from being separated under the action of external force.
The supporting plate 123 is a sheet-shaped structure, and is disposed in the limiting casing 122 for supporting the following detection assembly 20, and correspondingly, a structure for installing the supporting plate 123 is extended from the limiting casing 122, in this embodiment, a supporting wall (not labeled) is extended from the limiting casing 122, and the supporting wall is perpendicular to the first supporting wall 1221, the second supporting wall 1222, and the third supporting wall 1223 for supporting the following detection assembly 20, and the supporting plate 123 further supports the following detection assembly 20.
The first hinge 124 and the transition piece 125 are assembled with the position limiting housing 122 for connection with the connecting frame 13, and in this embodiment, the supporting column 12 is hinged with the connecting frame 13 through the first hinge 124, so that the connecting frame 13 can rotate relative to the supporting column 12.
One end of the connecting frame 13 is mounted on the other end of the supporting column 12, and as mentioned above, the connecting frame 13 and the supporting column 12 may be hinged or may be movably or fixedly connected.
In this embodiment, the connecting frame 13 may be a connecting rod structure formed by combining a plurality of connecting rods, wherein every two adjacent connecting rods are hinged, so that the lighting position of the lighting assembly 14 can be flexibly adjusted by adjusting the included angle between every two adjacent connecting rods. In some embodiments, the connecting frame 13 may also be any type of lifting mechanism or other suitable movement adjustment structure.
Referring to fig. 1e, the connecting frame 13 includes a first frame 131 and a second frame 132, one end of the first frame 131 is mounted on the other end of the supporting column 12, one end of the second frame 132 is hinged to the other end of the first frame 131, and the other end of the second frame 132 is connected to the lighting assembly 14.
In some embodiments, one end of the first bracket 131 may be hinged to the supporting column 12 through a hinge, so that the first bracket 131 can rotate relative to the supporting column 12, the other end of the first bracket 131 may also be hinged to the second bracket 132 through a hinge, so that the second bracket 132 can rotate relative to the first bracket 131, one end of the second bracket 132 is hinged to the first bracket 131 through a hinge, the other end of the second bracket 132 is movably connected to the lighting assembly 14 through a threaded connection, the lighting assembly 14 can rotate relative to the second bracket 132, and the position of the lighting assembly 14 relative to the supporting column 12 and the base 11 can be adjusted through the first bracket 131 and the second bracket 132.
The illumination assembly 14 is rotatably mounted at the other end of the connecting frame 13, and in operation, the illumination assembly 14 can be rotated relative to the connecting frame 13 or the base 11 or the support post 12 to change the illumination area.
Referring to fig. 1f and 1g, the illumination assembly 14 is configured to rotate according to the rotation angle of the following detection assembly 20 to provide illumination for the user, for example, after the following detection assembly 20 rotates clockwise according to the rotation angle W1 to the target detection position, the illumination assembly 14 also rotates clockwise according to the rotation angle W1. Since the illumination area and the illumination brightness projected by the illumination assembly 14 are optimal when the sitting posture of the user is not changed before the following detection assembly 20 reaches the rotation angle W1, when the sitting posture of the user is shifted to the left, on the one hand, the following detection assembly 20 is rotated clockwise to the target detection position by the rotation angle W1 in order to improve the data acquisition reliability. On the other hand, to again provide optimum illumination, the lighting assembly 14 is likewise rotated clockwise by the angle of rotation W1.
The lighting assembly 14 includes a lamp socket 141, a driving assembly 142, a light emitting part 143, a fitting 144, and an electronic board 145, wherein the driving assembly 142, the fitting 144, and the electronic board 145 are installed between the lamp socket 141 and the light emitting part 143.
The lamp socket 141 is formed in a substantially funnel shape and is mounted to the other end of the connecting frame 13. In some embodiments, the lamp socket 141 includes a mounting portion 1411 for mounting the fixed driving assembly 142 and an abutting portion 1412 for assembling with the light emitting part 143.
The socket 141 is provided with a receiving cavity 1413, a mounting groove 1414 and a mounting hole 1415, the receiving cavity 1413 is used for receiving the driving component 142, the mating member 144 and the electronic board 145, and the mounting portion 1411 and the abutting portion 1412 extend from the receiving cavity 1413.
The mounting groove 1411 is used to set a rotation angle of the second bracket 132 such that the second bracket 132 rotates within a certain angle range, and the mounting groove 1411 is used to mount the second bracket 132 of the receiving portion.
The mounting hole 1412 is used for movably connecting with the second bracket 132, specifically, the second bracket 132 and the lamp holder 141 are assembled by a screw, a through hole is formed in one end of the second bracket 132 assembled with the lamp holder 141, and one end of the screw sequentially penetrates through the mounting hole and the through hole in the second bracket 132 to realize connection, so that the lamp holder 141 can rotate relative to the second bracket 132.
The driving assembly 142 is mounted to the lamp socket 141, and the driving assembly 142 is used for controlling the rotating direction and angle of the light emitting part 143. In some embodiments, the drive assembly 142 may employ any suitable type of drive mechanism, such as a gear drive mechanism, a rack drive mechanism, a worm drive mechanism, a rail slide mechanism, and so forth.
In some embodiments, the drive assembly 142 includes a drive motor and corresponding controller, the drive motor being fixedly mounted within the receiving cavity 1413. Wherein the driving motor includes a rotation shaft, which is assembled with the light emitting part 143 after passing through the fitting member 144 and the electronic board 145.
The light emitting part 143 is used for lighting and is substantially elliptical, and this shape arrangement has the advantages of being capable of adjusting the brightness, rotating at different angles, having different light irradiation areas, and being capable of adjusting various light irradiation areas. The light-emitting component 143 is extended with a first column 1431 and a clamping portion 1432, the light-emitting component 143 is provided with a second groove 1433, the second groove 1443 is a circular groove, the second groove 1433 extends from one surface of the light-emitting component 143 to the other opposite surface, the first column 1431 and the clamping portion 1432 both extend from the bottom of the second groove 1433, wherein the first column 1431 is located at the middle position of the second groove 1433 and is provided with a threaded hole 1434, the threaded hole 1434 is used for being fixed with the rotation shaft in a threaded manner, one end of the clamping portion 1432, which is far away from the bottom of the second groove 1433, is in a hook shape and is used for being matched with the matching component 144, the number of the clamping portions 1432 is three, and the three clamping portions 1432 are arranged in a triangle shape.
It is understood that the light emitting part 143 is provided with electronic components such as light emitting diodes.
The fitting 144 is installed on the lamp holder 141 to cover the driving motor, wherein the fitting 144 has a through hole 1443, the output end of the driving motor passes through the through hole 1443 and is connected with the light emitting part 143, and the light emitting part 143 is installed on the fitting 144.
In some embodiments, the fitting member 144 is substantially in the shape of a disk, a second cylinder 1441 and a third cylinder 1442 extend from the fitting member 144, the second cylinder 1441 and the third cylinder 1442 extend in the same direction, a through hole 1443 is formed in the middle of the second cylinder 1441, the through hole 1443 penetrates through the fitting member 144 for the rotation shaft to pass through, a first connection hole (not shown) is formed in the middle of the third cylinder 1442, and the first connection hole is used for being assembled with the electronic board 145, in this embodiment, the number of the first cylinders 1441 is one and is located in the middle of the fitting member 144, the number of the third cylinders 1442 is three, and the three third cylinders 1442 are arranged in a triangle and surround the second cylinder 1441.
The fitting portion 144 is further provided with three catching grooves 1444, the catching grooves 1444 are located on the face, opposite to the second cylinder 1441 and the third cylinder 1442, of the fitting portion 144 and are used for being in catching connection with the engaging portion 1432, the number of the catching grooves 1444 is three, and the three catching grooves 1444 correspond to the three engaging portions 1432 and are engaged with each other.
The electronic board 145 is in a shape of a disk, and various circuit function modules are mounted on the electronic board 145, the desk lamp 100 should further be provided with a controller (not shown), the electronic board 145, the driving component 142, the light emitting component 143 and the following detection component 20 are all electrically connected with the controller, and the controller is used for controlling the operating states of the electronic board 145, the driving component 142, the light emitting component 143 and the following detection component 20.
The electronic board 145 is provided with a second connection hole 1451 and a third connection hole (not labeled), the second connection hole 1451 and the third connection hole penetrate through the electronic board 145, wherein the second connection hole 1451 is used for the rotation shaft to pass through, and the third connection hole is used for assembling with the first connection hole through a screw to fix the electronic board 145 and the mating member 144.
In this embodiment, the driving motor is mounted on the mounting portion 1411, the rotation shaft passes through the second connection hole 1451, the through hole 1443 and the screw hole 1434 in sequence for assembly, and the lamp socket 141, the driving assembly 142, the electronic board 145, the fitting member 144 and the light emitting part 143 are connected; the first connection hole and the third connection hole are assembled to fix the electronic board 145 and the fitting member 144, so that the electronic board 145 can be more stable and can be kept balanced under the action of external force; the engaging portion 1432 is snap-connected with the snap groove 1444, fixes the fitting member 144 and the light emitting component 143, and further fixes the electronic board 145 and the light emitting component 143, and meanwhile, the blocking portion 1412 is partially located in the second groove 1433, which has a limiting effect on the distance between the lamp socket 141 and the light emitting component 143.
When the rotating shaft rotates, the light emitting component 143, the fitting component 144 and the electronic board 145 are driven to rotate.
Referring to fig. 1h and 1i together, the follow-up detection assembly 20 includes a housing 21, a circuit board 22 and a rotation assembly 23.
The housing 21 is mounted on the desk lamp body 10 and can rotate relative to the desk lamp body 10, the housing 21 is provided with a receiving space, and the circuit board 22 is mounted in the receiving space.
In some embodiments, the housing 21 is substantially cylindrical and includes a front shell 211 and a rear shell 212, the front shell 211 and the rear shell 212 are fixedly installed to form the housing 21, and the front shell 211 and the rear shell 212 together form the receiving space.
The front case 211 is connected to the rotating assembly 23, and the front case 211 is mounted to the table lamp body 10 and can rotate with respect to the table lamp body 10. When the rotating assembly 23 rotates, the front housing 211 is driven by the rotating assembly 23 to rotate relative to the table lamp body 10.
The front case 211 is provided with a plurality of fixing holes 2110, the circuit board 22 is provided with a detection component 221, and the fixing holes 2110 are used for accommodating the detection component, so that the detection component 221 can collect a posture image in front of the desk lamp or detect a distance between a user and the desk lamp from an external environment through the fixing holes 2110. Also, when the rotating assembly 23 rotates the front housing 211, the detecting member 221 is received in the fixing hole 2110 of the front housing 211, so that the front housing 211 can rotate with the detecting member 221.
In some embodiments, the front case 211 includes a connection portion 2111, a first restriction portion 2112, and a second restriction portion 2113, wherein the first restriction portion 2112 has a cylindrical shape, the second restriction portion 2113 has a droplet shape, and the first restriction portion 2112 and the second restriction portion 2113 are respectively located at both ends of the connection portion 2111, and are connected to the connection portion 2111.
The connecting portion 2111 is used for connecting and fixing with the rear shell 212, and the connecting portion 2111 and the rear shell 212 are connected and fixed to form a hollow cylindrical shape with two open ends, that is, to form a receiving space.
In this embodiment, the connection portion 2111 and the rear housing 212 are connected and fixed by a snap-fit manner, a slot (not shown) is disposed on the connection portion 2111, a protrusion (not shown) is disposed on the rear housing 212, and the protrusion is snapped in the slot, so as to achieve the assembly of the connection portion 2111 and the rear housing 212.
In some embodiments, the connection portion 2111 and the rear housing 212 are assembled by screwing, protruding columns (not labeled) extend on the connection portion 2111 and the rear housing 212, and hole locations are respectively disposed in the protruding columns, wherein the hole locations in the rear housing 212 are through holes, and then are assembled and fixed by screws.
The connecting portion 2111 is further provided with two communication holes 2114, the number of the communication holes 2114 is two, and both the two communication holes 2114 are through holes for passing through part of the circuit board 22.
A groove 2115 is formed in the first limiting portion 2112, a limiting portion 2116 is arranged in the groove 2115, an opening (not shown) is formed in the bottom of the groove 2115, a trapezoidal hole 2117 is formed in the side wall, the trapezoidal hole 2117 penetrates through the side wall of the groove 2115, a limiting hole 2118 is formed in the limiting portion 2116, the limiting hole 2118 is in a D shape, and the limiting hole 2118 penetrates through the limiting portion 2116 and the bottom of the groove 2115.
The limiting portion 2116 and the limiting hole 2118 are used for limiting the position of the rotating assembly 23, the opening is used for avoiding the position of the circuit board 22, and the trapezoid hole 2117 is used for allowing a part of the circuit board 22 to pass through.
In this embodiment, the first restricting portion 2112 and the second restricting portion 2113 are different in shape, but have similar structures, and except that the second restricting portion 2113 is not provided with the trapezoidal hole 2117, the other structures are the same, and thus, the description is omitted.
The circuit board 22 is used for realizing the tracking and the detection to the human body, and circuit board 22 sets up a plurality of detection part 221, detection part 221 is used for generating each gesture image that the user is located under the different gesture or detects the distance between user and the desk lamp body, and intercommunicating pore 2114 and trapezoidal hole 2117 all are used for the detection part on the circuit board 22 to pass, avoid hindering the work of detection part 221.
The rotating assembly 23 is mounted on the desk lamp body 10 and fixed with the housing 21, the rotating assembly 23 can drive the housing 21 to rotate relative to the desk lamp body 10, and since the circuit board 22 is fixedly mounted on the housing 21, when the housing 21 is driven to rotate by the rotating assembly 23, the detecting part 221 on the circuit board 22 also rotates accordingly.
In some embodiments, the rotating assembly 23 includes a rotating motor 231 and a rotating shaft 232, the rotating motor 231 includes an output end 2311, the output end 2311 can rotate, and the output end 2311 is connected with the rotating shaft 232 to rotate the rotating shaft 232.
The rotating shaft 232 comprises a first shaft body 2321 and a second shaft body 2322, the first shaft body 2321 is connected with the second shaft body 2322, the cross section of the first shaft body 2321 is in a D shape and is matched with the limiting hole 2118, a hole for assembling with the output end 2311 is formed in one end, opposite to the second shaft body 2322, of the first shaft body 2321, the output end 2311 cannot rotate relative to the rotating shaft, the circumference of the second shaft body 2322 is larger than that of the first shaft body 2321, and the limiting shell 21 is located in the accommodating groove 1224.
In this embodiment, the housing 21, the circuit board 22 and a part of the rotation shaft are located in the receiving slot 1224, the circuit board 22 and the housing 21 are fixed, the rotation motor is located in the limiting housing 122, the output end 2311 and the first shaft 131 are fixed, and the first shaft 131 cannot rotate relative to the output end 2311, the first shaft 131 passes through the first through hole 1225, the limiting hole 2118 and the second through hole 1226 on the first limiting portion 2112 and the second limiting portion 2113 to connect the rotation motor, the rotation shaft, the housing 21 and the limiting housing 122, because the first through hole 1225 and the second through hole 1226 are circular holes, and the cross sections of the limiting hole 2118 and the first shaft 131 are both D-shaped, when the rotation shaft rotates, the rotation shaft will drive the housing 21 to rotate, and thus drive the circuit board 22 to rotate without driving the limiting housing 122 to rotate, the second shaft 132 is located outside the receiving slot 1224, which has a limiting effect on the position of the entire following detection assembly 20, the mounting position of the follow detection assembly 20 is ensured to be unchanged.
The desk lamp 100 provided by the invention has the following installation mode: the following detection assembly 20 and the support column 12 are assembled, the support column 12 and the base 11 are assembled, and the connection frame 13 is assembled with the support column 12 and the illumination assembly 14, respectively.
The present invention provides a desk lamp 100, including: the desk lamp comprises a desk lamp body 10 and a following detection assembly 20, wherein the following detection assembly 20 is installed on the desk lamp body 10, the following detection assembly 20 comprises a shell 21, a circuit board 22 and a rotating assembly 23, a detection part is arranged on the circuit board 22 and used for generating each posture image of a user under different postures or the distance between the user and the desk lamp body, so as to judge the position of the human body, the circuit board 22 is fixed in the shell 21, the rotating component 23 is assembled with the desk lamp body 10, and the table lamp body 10 is not rotatable, the rotating assembly 23 passes through the housing 21, and is assembled with the housing 21, moreover, the housing 21 can rotate, the rotating component 23 can drive the housing 21 to rotate, thereby driving the circuit board 22 to rotate, and then drive the detection part and rotate, detection part can gather and generate each attitude map that is located under the different detection position at the pivoted in-process, and then realize tracking detection human position and direction.
Desk lamp body 100 includes lighting assembly 14, and lighting assembly 14 includes lamp stand 141, drive assembly 142 and luminous part 143, and drive assembly 142 includes driving motor, driving motor with lamp stand 141 assembles fixedly, and, driving motor with luminous part 143 is connected, driving motor can drive when rotating luminous part 143 rotates, through setting up the controller, will follow detection assembly 20 and driving motor is connected with the controller electricity respectively, realizes passing through follow detection assembly 20's detection result control driving motor's turned angle, thereby realizes passing through follow detection assembly 20's detection result control luminous part 143's turned angle.
In this embodiment, in order to better acquire a posture image of a user or detect a distance between the user and the desk lamp, the detection circuit provided in the embodiment of the present invention may complete posture detection or distance measurement by following a detection component of the detection component 22.
Referring to fig. 2a, fig. 2a is a schematic diagram of an attitude detection circuit according to an embodiment of the invention. As shown in fig. 2a, the gesture detection circuit 200 includes an image sensor 201, an ultrasonic sensor 202, a signal conditioning circuit 203, a comparison circuit 204, and a controller 205. Both the image sensor 201 and the ultrasonic sensor 202 can be used as detection means.
The image sensor 201 is configured to generate a gesture image of a user located in front of the electronic device, and includes an infrared thermal imaging sensor configured to detect whether a sensing object of the infrared thermal imaging sensor is an active user, and detect a gesture of the active user when the sensing object is the active user. Preferably, the infrared thermal imaging sensor is an infrared array sensor. Wherein the active user may be a human, an animal, or the like.
When the temperature of the physical surface exceeds absolute zero, electromagnetic waves are radiated, the radiation intensity and the wavelength distribution characteristic of the electromagnetic waves are changed along with the change of the temperature, the electromagnetic waves with the wavelength between 0.75 mu m and 1 mu m are called infrared rays, the infrared thermal imaging sensor senses the temperature of the infrared rays emitted by a user and outputs an infrared thermal image. The thermal radiation energy emitted is different due to the difference in the surface temperature of the user, and the profile of the infrared thermal image is obtained by sensing the difference in thermal radiation energy between the object and the background. The controller 205 outputs a dot matrix image by recognizing the infrared thermal image, wherein the dot matrix image may be located at 8 × 8 dot matrix, 12 × 12 dot matrix, 16 × 16 dot matrix, 24 × 24 dot matrix, etc., and preferably, the dot matrix image is located at the middle of the dot matrix. It can be understood that the larger the number of the dot matrixes, the higher the accuracy of the gesture detection is, and the dot matrix image can more intuitively show the current gesture of the user.
The ultrasonic sensor 202 is configured to detect a distance between the user and the electronic device, and generate a ranging signal, where the ultrasonic sensor 202 includes a transmitting end and a receiving end, the transmitting end includes a transmitting circuit and a transmitting end ultrasonic piezoelectric oscillation sheet (not shown), and the receiving end includes a receiving end ultrasonic piezoelectric oscillation sheet 2021 (as shown in fig. 2 c).
In this embodiment, the transmitting circuit includes an integrated chip SP3232EEN/SOIC16, and the integrated chip SP3232EEN/SOIC16 is configured to receive the square wave signal transmitted by the controller 205, and cause the ultrasonic piezoelectric oscillation piece at the transmitting end to generate mechanical vibration according to the square wave signal, so as to generate ultrasonic waves. The ultrasonic waves encounter an obstacle and then are reflected to the receiving end ultrasonic piezoelectric oscillation sheet 2021, and the receiving end ultrasonic piezoelectric oscillation sheet 2021 converts the mechanical vibration into an electric signal, that is, the ranging signal.
It is understood that, based on the principle and function of the ultrasonic sensor 202 disclosed in the present embodiment in the attitude detection circuit 200, changing the circuit composition and connection of the ultrasonic sensor 202, or using other distance measurement modules, can be regarded as a simple alternative of the present embodiment.
The signal conditioning circuit 203 is connected to the ultrasonic sensor 202, and is configured to condition the ranging signal acquired by the ultrasonic sensor 202.
As shown in fig. 2b, the signal conditioning circuit 203 includes a first stage amplifying circuit 2031, a filtering circuit 2032, a second stage amplifying circuit 2033, and a third stage amplifying circuit 2034.
The first stage amplifying circuit 2031 is connected to the ultrasonic sensor 202, and is configured to amplify the ranging signal.
Referring to fig. 2C, the first stage amplifying circuit 2031 includes a first resistor R1, a second resistor R2, a first capacitor C1, a third resistor R3, a second capacitor C2, a fourth resistor R4, a first operational amplifier U1, a fifth resistor R5, and a sixth resistor R6.
Specifically, one end of the first resistor R1 is configured to receive a power supply voltage (VCC as shown in the figure), and the other end of the first resistor R1, one end of the second resistor R2 and one end of the first capacitor C1 are all connected to a first node b 11; the other end of the second resistor R2 and the other end of the first capacitor C1 are both grounded (GND as shown); one end of the third resistor R3 is connected to the receiving end of the ultrasonic sensor 20, and the other end of the third resistor R3 is connected to one end of the second capacitor C2; the other end of the second capacitor C2, one end of the fourth resistor R4 and the inverting input of the first operational amplifier U1 are all connected to a second node b 12; a non-inverting input terminal of the first operational amplifier U1 is connected to the first node b11 and one end of the sixth resistor R6, and an output terminal of the first operational amplifier U1, the other end of the fourth resistor R4 and one end of the fifth resistor R5 are all connected to a third node b 13; the other end of the fifth resistor R5, the other end of the sixth resistor R6 and the filter circuit 302 are all connected to a fourth node b14, wherein the fourth node b14 is connected to a first test point TP 1.
It should be noted that the first resistor R1 and the second resistor R2 form a first reference voltage circuit, and the first reference voltage circuit is used for providing a first reference voltage for the first stage amplifying circuit 2031, the filter circuit 2032, the second stage amplifying circuit 2033, and the third stage amplifying circuit 2034.
The filtering circuit 2032 is connected to the first stage amplifying circuit 2031 and is configured to filter out noise contained in the amplified ranging signal.
The filter circuit 2032 comprises a third capacitor C3, a fourth capacitor C4, a seventh resistor R7, and a second operational amplifier U2.
Specifically, one end of the third capacitor C3 and one end of the fourth capacitor C4 are connected to the fourth node b14, and the other end of the third capacitor C3, one end of the seventh resistor R7 and the inverting input terminal of the second operational amplifier U2 are connected to a fifth node b 15; the other end of the fourth capacitor C4, the other end of the seventh resistor R7, the output end of the second operational amplifier U2, and the second-stage amplifying circuit 2032 are all connected to a sixth node b16, wherein the sixth node b16 is connected to a second test point TP 2; the non-inverting input of the second operational amplifier U2 is connected to the first node b 11.
The second stage amplifying circuit 2033 is connected to the filtering circuit 2032, and is configured to amplify the filtered ranging signal.
The second stage amplifying circuit 2033 comprises an eighth resistor R8, a fifth capacitor C5, a ninth resistor R9 and a third operational amplifier U3.
Specifically, one end of the eighth resistor R8 is connected to the sixth node b16, and the other end of the eighth resistor R8 is connected to one end of the fifth capacitor C5; the other end of the fifth capacitor C5, one end of the ninth resistor R9 and the inverting input terminal of the third operational amplifier U3 are all connected to a seventh node b 17; the other end of the ninth resistor R9, the output end of the third operational amplifier U3, and the third stage amplifying circuit 2034 are all connected to an eighth node b18, wherein the eighth node b18 is connected to a third test point TP 3; the non-inverting input of the third operational amplifier U3 is connected to the first node b 11.
The third-stage amplifying circuit 2034 is connected to the second-stage amplifying circuit 2033, and is configured to amplify the ranging signal amplified by the second-stage amplifying circuit 2033.
The third stage amplifying circuit 2034 comprises a tenth resistor R10, a sixth capacitor C6, an eleventh resistor R11 and a fourth operational amplifier U4.
Specifically, one end of the tenth resistor R10 is connected to the eighth node b18, and the other end of the tenth resistor R10 is connected to one end of the sixth capacitor C6; the other end of the sixth capacitor C6, one end of the eleventh resistor R11 and the inverting input terminal of the fourth operational amplifier U4 are all connected to a ninth node b 19; the other end of the eleventh resistor R11 and the output end of the fourth operational amplifier U4 are both connected to a tenth node b21, wherein the tenth node b21 is connected to a fourth test point TP 4; the non-inverting input terminal of the fourth operational amplifier U4 is connected to the first node b11, the power supply input terminal of the fourth operational amplifier U4 is configured to receive a power supply voltage, and the ground terminal of the fourth operational amplifier U4 is grounded.
In the present embodiment, the first operational amplifier U1, the second operational amplifier U2, the third operational amplifier U3 and the fourth operational amplifier U4 all employ the MCP6004 low power operational amplifier. It is understood that the specific chip model disclosed in the present embodiment is only used for illustrating the reproducibility of the present application, and parameters and connections of the peripheral circuit may be adaptively modified based on or selected from other conforming models according to the principle of the specific circuit.
To sum up, the ranging signal is processed by the multi-stage circuits of the first-stage amplifying circuit 2031, the filtering circuit 2032, the second-stage amplifying circuit 2033 and the third-stage amplifying circuit 2034, so that the ranging signal output by the second-stage amplifying circuit 2033 and the third-stage amplifying circuit 2034 is real and effective, and the distance information between the ultrasonic sensor 202 and the obstacle is restored to the maximum extent. It can be understood that by setting suitable circuit parameters, the third test point TP3 can accurately measure a short-distance obstacle, the fourth test point TP4 can accurately measure a long-distance obstacle, and the signal conditioning circuit 203 can perform suitable processing for different distances, so as to improve the precision of the ranging signal and further improve the reliability of the posture detection circuit 200.
The first capacitor C1 is used to eliminate the influence of the internal input capacitance of the first operational amplifier U1, the second operational amplifier U2, the third operational amplifier U3, and the fourth operational amplifier U4. The first test point TP1 is disposed to facilitate measurement of the output signal of the first-stage amplification circuit 301, the second test point TP2 is disposed to facilitate measurement of the output signal of the filter circuit 302, the third test point TP3 is disposed to facilitate measurement of the output signal of the second-stage amplification circuit 2033, and the fourth test point TP4 is disposed to facilitate measurement of the output signal of the third-stage amplification circuit 2034.
The comparison circuit 204 is connected to the signal conditioning circuit 203, and is configured to output a comparison signal according to the conditioned ranging signal and a preset reference signal.
As shown in fig. 2d, the comparing circuit 204 comprises a first comparing circuit 2041 and a second comparing circuit 2042. The first comparing circuit 2041 is connected to the eighth node b18 and the controller 205, and the second comparing circuit 2042 is connected to the tenth node b21 and the controller 205. The controller 205 includes a first processing terminal D501 and a second processing terminal D502, where the first processing terminal D501 is configured to receive a first comparison signal output by the first comparison circuit 2041, and the second processing terminal D502 is configured to receive a second comparison signal output by the second comparison circuit 2042. The first comparison signal and the second comparison signal can be directly identified and processed by the controller 205, so that the cost of the controller 205 is reduced.
Referring to fig. 2e, the first comparing circuit 2041 includes a twelfth resistor R12, a thirteenth resistor R13, a fourteenth resistor R14 and a first comparator U5.
One end of the twelfth resistor R12 is configured to receive a power supply voltage, and the other end of the twelfth resistor R12 is connected to one end of the thirteenth resistor R13; the other end of the thirteenth resistor R13 is grounded; one end of the fourteenth resistor R14 is connected to the power input terminal of the first comparator U5, and the other end of the fourteenth resistor R14 is connected to the output terminal of the first comparator U5 and the first processing terminal D501 of the controller 205; a power input terminal of the first comparator U5 is configured to receive a power supply voltage, a ground terminal of the first comparator U5 is grounded, a non-inverting input terminal of the first comparator U5 is connected to the other end of the twelfth resistor R12 and one end of the thirteenth resistor R13, and an inverting input terminal of the first comparator U5 is connected to the eighth node 18.
The twelfth resistor R12 and the thirteenth resistor R13 constitute a second reference voltage circuit for providing a second reference voltage for the first comparator U5. When the voltage of the eighth node 18 (i.e., the voltage of the third test point TP3, i.e., the output voltage of the second-stage amplifying circuit 2033) is greater than the second reference voltage, the first comparator U5 outputs a low level, i.e., the first comparison signal is "0". When the voltage of the eighth node b18 is less than the second reference voltage, the first comparator U5 outputs a high level, i.e., the first comparison signal is "1".
Referring to fig. 2f, the second comparing circuit 2042 includes a fifteenth resistor R15, a sixteenth resistor R16, a seventeenth resistor R17 and a second comparator U6.
One end of the fifteenth resistor R15 is used for receiving a power supply voltage, and the other end of the fifteenth resistor R15 is connected with one end of the sixteenth resistor R16; the other end of the sixteenth resistor R16 is grounded; one end of the seventeenth resistor R17 is connected to the power input terminal of the second comparator U6, and the other end of the seventeenth resistor R17 is connected to the output terminal of the second comparator U6 and the second processing terminal D502 of the controller 205; a power input terminal of the second comparator U6 is configured to receive a power voltage, a ground terminal of the second comparator U6 is grounded, a common-direction input terminal of the second comparator U6 is connected to the other end of the fifteenth resistor R15 and one end of the sixteenth resistor R16, and an inverting input terminal of the second comparator R16 is connected to the tenth node b 21.
The fifteenth resistor R15 and the sixteenth resistor R16 form a third reference voltage circuit for providing a third reference voltage for the second comparator U6. When the voltage of the tenth node b21 (i.e., the voltage of the third test point TP3, i.e., the output voltage of the third-stage amplifying circuit 2034) is greater than the third reference voltage, the second comparator U6 outputs a low level, i.e., the second comparison signal is "0". When the voltage of the tenth node b21 is less than the third reference voltage, the second comparator U6 outputs a high level, i.e., the second comparison signal is "1".
In summary, the preset reference signal includes the second reference voltage and the third reference voltage.
The controller 205 is connected to the image sensor 201, the ultrasonic sensor 202, and the comparison circuit 204.
In this embodiment, the controller 205 is a microcontroller, and the microcontroller employs an ARM-based microcontroller STM32F103C8T 6. The controller 205 determines a reliable current distance of the sensing object according to the first comparison signal and the second comparison signal output by the comparison circuit 204, determines a dot matrix image of the sensing object according to the infrared thermal image acquired by the image sensor 201, and accurately identifies a current posture of the sensing object according to the reliable current distance and the dot matrix image.
In some embodiments, the controller 205 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a single chip, an arm (acorn RISC machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. Also, the processor herein may be any conventional processor, controller, microcontroller, or state machine. A combination of computing devices may also be implemented, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
According to the attitude detection circuit provided by the embodiment of the invention, firstly, the signal conditioning circuit conditions the ranging signal acquired by the ultrasonic sensor, then the comparison circuit outputs the comparison signal according to the conditioned ranging signal and the preset reference signal, and the ranging signal is conditioned by the signal conditioning circuit and processed by the comparison circuit, so that the controller receives the effective ranging signal, and therefore, the reliability of attitude detection is improved.
In some embodiments, when the controller 205 controls the following detection component 20 to follow the user, then the following detection component 20 adjusts the angle and the adjustment direction to the target detection position, and generates a real-time pose image at the target detection position. Further, the controller 205 controls the illumination assembly 14 to rotate according to the adjustment direction and the angle according to the angle adjusted to the target detection position by the following detection assembly 20 and the adjustment direction.
For example, the infrared thermal imaging sensor senses the temperature of infrared rays (hot wires) emitted by a user through a temperature difference detection principle, and outputs the outline of an image according to the temperature difference, and the controller 205 can recognize whether a person exists or not by acquiring a multi-dot matrix image (e.g., 8 × 8 dot matrix image) output by the infrared thermal imaging sensor and recognize a posture of a human body, and can also determine the change of the posture according to the posture of the human body acquired at the previous time and the next time.
Specifically, when the controller 205 recognizes that the posture of the human body is facing left, or the posture of the human body changes facing left, the controller 205 controls the rotating motor and the driving motor to rotate left, so as to drive the detecting component and the light emitting component to rotate left relative to the base; when the controller 205 recognizes that the posture of the human body is facing to the right, or the posture of the human body changes to the right, the controller 205 controls the rotating motor and the driving motor to rotate to the right, so as to drive the detecting part and the light emitting part to rotate to the right relative to the base.
The controller 205 controls the motors to rotate according to the posture of the human body, so that the detection part can face the direction of the human body, the error of sitting posture detection caused by position change of the desk lamp or seat change is avoided, further, the angle of the light-emitting part can be adjusted, the reading and writing area is located in the optimal illumination area, the learning environment is improved, and the influence of uneven illumination on eyesight is reduced.
Referring to fig. 3, the desk lamp 100 further includes a first motor driving circuit 301 and a second motor driving circuit 302, an input end of the first motor driving circuit 301 is connected to the controller 205, an output end of the first motor driving circuit 301 is connected to the rotating motor 231, an input end of the second motor driving circuit 302 is connected to the controller 205, and an output end of the second motor driving circuit 302 is connected to the driving motor 303.
The controller 205 drives the rotation motor 231 to rotate through the first motor driving circuit 301, and further drives the detection component to rotate along with the user. The controller 205 drives the driving motor 303 to rotate through the second motor driving circuit 302, so as to drive the light emitting component to rotate.
In some embodiments, a position encoder 304 is disposed on the rotating motor 231, the position encoder 304 is electrically connected to the controller 205, and the controller 205 obtains the rotation angle of the rotating motor 231 through the position encoder 304. When the rotating motor 231 rotates, the position encoder 304 rotates by a corresponding angle along with the concentric shaft, and the rotating angle of the rotating motor 231 is obtained according to the absolute position of the position encoder 304.
In some embodiments, the rotation motor 231 and the driving motor 303 may be any suitable type of motor, such as a stepper motor, or the like.
In some embodiments, with continued reference to fig. 3, the control device 205 includes a first controller 2051 and a second controller 2052, the first controller 2051 and the second controller 2052 are in communication with each other, the ir thermography sensor 305, the ultrasonic sensor 306 and the rotation motor 231 are electrically connected to the first controller 2051, and the driving motor 303 is electrically connected to the second controller 2052.
The first controller 2051 is configured to control the rotation of the rotating motor 231 according to the posture of the human body, and send a rotation instruction to the second controller 2052 according to the rotation angle and the rotation direction of the rotating motor 231, and the second controller 2052 is configured to control the driving motor 303 to rotate according to the rotation instruction.
The first controller 2051 is also equivalent to a main controller, the second controller 2052 is also equivalent to a slave controller, and the two controllers are arranged in the desk lamp because the rotating motor 231 and the driving motor 303 are arranged at different positions, so that the two controllers can be arranged on different circuit boards, and the wiring in the desk lamp is simple. The first controller 2051 and the second controller 2052 are processors with certain logical operation capability, and may be a single chip microcomputer (e.g., STM32), a microprocessor, or the like of a suitable type.
The first controller 2051 includes a storage block 307, and the storage block 307 stores therein the correspondence between the rotation angle of the rotation motor 231 and the rotation angle of the drive motor 303. In practical application, in order to make the following detection component face the direction of the human body so as to accurately monitor the posture of the human body in front of the desk, the deflection angle of the posture of the human body relative to the center of the multi-point array image is consistent with the rotation angle of the rotating motor 231, and the rotation angle of the driving motor 303 of the rotation angle of the rotating motor 231 can be the same or different.
It can be understood that the illumination area of the light emitting part is a larger range, and the direction of the light emitting part may not be adjusted in the case that the deflection angle of the human body posture is small or the rotation angle of the rotation motor 231 is small; in the case where the deflection angle of the human body posture is large or the rotation angle of the rotation motor 231 is large, the direction of the light emitting part is adjusted by the driving motor 303.
For example, the corresponding relationship between the rotation angle of the rotation motor 231 and the rotation angle of the driving motor 303 is a piecewise function, and when the rotation angle α of the rotation motor 231 is smaller than a preset value, the rotation angle β of the driving motor 303 is 0; when the rotation angle α of the rotation motor 231 is equal to or greater than the preset value, the rotation angle β of the drive motor 303 becomes K α (0< K < 1).
In the above embodiment, the ultrasonic sensor 306 is electrically connected to the first controller 2051, the ultrasonic sensor 306 is configured to detect a distance between the user and the desk lamp, and the first controller 2051 is further configured to control the infrared thermal imaging sensor 305 to perform human posture detection when the distance is smaller than a preset distance threshold, so as to reduce power consumption of the desk lamp.
In some embodiments, the ultrasonic sensor 306 includes a piezoelectric transducer, and the first controller 2051 sends a 40KHZ square wave to the ultrasonic transmitter circuit to oscillate the transducer, and when the ultrasonic wave encounters an obstacle, the ultrasonic wave returns to the transducer at the receiving end, and the transducer converts the mechanical vibration into an electrical signal, and the electrical signal passes through the amplifier circuit and the filter circuit, and finally passes through the comparator to reach the first controller 2051.
The propagation speed of the ultrasonic wave in the air is 340m/s, and the distance(s) of the transmitting point from the obstacle can be calculated according to the recorded time t (second), namely: s is 340t/2, the distance from the human body to the desk lamp can be detected according to the ultrasonic sensor 306, and whether the human body faces forwards or backwards can be detected.
The desk lamp 100 further includes a wireless transmission module 308, the wireless transmission module 308 is electrically connected to the first controller 2051, and the wireless transmission module 308 may also be disposed on the circuit board.
The wireless transmission module 308 is used for enabling the desk lamp 100 to communicate with a communication device, so that the desk lamp and the communication device form a desk lamp system. Referring to fig. 4, the desk lamp system 400 includes a desk lamp 100, a server 101 and a mobile terminal 102, the desk lamp 100 communicates with the server 101 and the mobile terminal 102 respectively, and, in some embodiments, the server 101 also communicates with the mobile terminal 102.
In this embodiment, if the first controller 2051 in the desk lamp 100 sends the human posture detected by the infrared thermal imaging sensor 305 and the distance detected by the ultrasonic sensor 306 to the server 101, the server 101 can determine whether the posture is correct during learning through the combination of the above data, and send the determination result to the APP on the mobile terminal 102, so as to remind the parents to correct the sitting posture of the child, and avoid that the eyesight of the child is affected due to too short writing or reading distance.
If first controller 2051 sends the human posture that infrared thermal imaging sensor 305 detected and the distance that ultrasonic sensor 306 detected to mobile terminal 102, mobile terminal 102 accessible APP with above-mentioned data transmission to server 101, likewise, whether the posture is correct when server 101 can judge the study through the combination of above-mentioned data to and issue the APP on 205 with the judged result, realize position of sitting monitoring, the purpose of correcting.
In some embodiments, the communication device may also be other electronic devices, such as a smart watch or the like.
In some embodiments, the wireless transmission module 308 may be a bluetooth module, a Zigbee module, a WIFI module, or the like.
In some embodiments, the mobile terminal may comprise a portable mobile electronic device such as a PDA, tablet computer, MP4, smart phone, e-book, and the like.
In some embodiments, the server 101 may be a physical server or a logical server virtualized from a plurality of physical servers. The server 101 may also be a server cluster formed by a plurality of servers capable of communicating with each other, and each functional module may be distributed on each server in the server cluster.
The desk lamp of the embodiment can enable the following detection assembly to face the direction of a human body, so that the error of sitting posture detection caused by the change of the position of the desk lamp or the change of a seat is avoided, the angle of the light-emitting assembly can be adjusted according to the posture of the human body, and a reading and writing area is located in an optimal illumination area.
The embodiment of the invention provides a flow schematic diagram of a desk lamp control method. The method is applied to any table lamp set forth in the above embodiments.
As shown in fig. 5a, the method S500 includes:
s510, acquiring a real-time attitude image of a user;
in the present embodiment, the user includes a living body having a physiological activity, such as a natural human, an animal, or the like. When the desk lamp works, a user sits towards the desk lamp, and then the following detection component in the desk lamp can generate each posture image of the user in different postures. According to the acquisition cycle, the following detection assembly can obtain the attitude image corresponding to each current moment, for example, the following detection assembly can generate the real-time attitude image according to a preset time interval, and for example, if the preset time interval is t, the following detection assembly respectively generates the real-time attitude image at 0, t, 2t, 3t … … and the like. In the present embodiment, the attitude image corresponding to each current time is made to be a real-time attitude image.
In some embodiments, optionally, each pose image generated by the following detection component at different poses is a uniform format dot matrix image, such as an 8 x 8 dot matrix representation or a 64 x 64 dot matrix representation, and so on.
S520, determining the current posture of the user according to the real-time posture image;
in this embodiment, the desk lamp analyzes the real-time posture image through an image analysis algorithm to obtain a real-time posture contour of the user, and the real-time posture contour is used as the current posture of the user.
And S530, controlling the following detection assembly to follow the user according to the current posture of the user so as to generate a target posture image, wherein the portrait of the user is presented at the preset image position of the target posture image.
In this embodiment, after the sitting posture of the user deviates from the original position, the desk lamp controls the following detection component to follow the user, and the desk lamp further analyzes each frame of real-time posture image generated in the process that the following detection component follows the user, and if it is detected again that the portrait of the user is presented at the preset image position of the real-time posture image at the specific moment, the desk lamp stops driving the following detection component to rotate at the specific moment.
In the present embodiment, the "preset image position" is a portrait position of the user in the attitude image set in advance. In this embodiment, after the real-time pose image of the user is acquired, it may be determined whether the portrait of the user in the real-time pose image is located at a preset image position in the real-time pose image through image processing. For example, assuming that the preset image position is the center of the gesture image, after the real-time gesture image of the user is acquired, the portrait position of the user in the real-time gesture image is determined, if the portrait position of the user is the center of the real-time gesture image, the portrait of the user is located in the preset image position in the real-time gesture image, and if the portrait position of the user is not the center of the real-time gesture image, the portrait of the user is not located in the preset image position in the real-time gesture image.
Referring to fig. 5b, when the pose image is a dot matrix image, the predetermined image position is a central region of the dot matrix image.
In this embodiment, after the target posture image is detected by the desk lamp, the following detection component is adjusted to the target detection position. The "target detection position" is a position at which the portrait of the user can be presented at a preset image position of the target posture image. The preset image position may be a central position of the target posture image.
In this embodiment, the specific implementation may be: if the posture change of the user is detected, controlling the following detection assembly to move to a first detection position and acquiring a posture image of the user, if the posture image acquired at the first detection position is the same as the posture image before the posture change, enabling the following detection assembly to be located at a target detection position, and taking the posture image acquired at the first detection position as a target posture image; if the position of the attitude image acquired at the first detection position is different from the position of the attitude image before the attitude change, controlling the following detection component to move to a second detection position and acquire the attitude image of the user, if the position of the attitude image acquired at the second detection position is the same as the position of the attitude image before the attitude change, the following detection component is already at the target detection position, taking the attitude image acquired at the second detection position as the target attitude image, and if the position of the attitude image acquired at the second detection position is different from the position of the attitude image before the attitude change, continuously adjusting the position of the following detection component until the position of the acquired attitude image is the same as the position of the attitude image before the attitude change. For example, if it is determined that the posture of the user changes to move leftward based on the posture image a at the previous time and the posture image B at the current time, the following detection component is controlled to rotate leftward to acquire a posture image C of the user, and if the position of the user in the posture image a is the same as that in the posture image C, the following detection component is already at the target detection position, and the posture image C is taken as the target posture image.
Optionally, in some other embodiments, the target posture image may be generated by the following detection component by adjusting the motion amplitude of the following detection component according to the amplitude of the posture change of the user to move the following detection component to the target detection position. For example, if it is determined that the posture of the user changes to move leftward and the change distance is X, and the change angle of the follow-up detection component is converted to X × M, from the posture image a at the previous time and the posture image B at the current time, the follow-up detection component is controlled to rotate X × M leftward and the posture image C of the user is acquired, and if the position of the user in the posture image a is the same as that in the posture image C, the follow-up detection component is already at the target detection position, and the posture image C is taken as the target posture image.
In this embodiment, the desk lamp control method obtains a real-time posture image of a user by controlling the following detection component, determines posture change of the user according to the real-time posture image, and adjusts the following detection component to a target detection position according to the posture change, so that the following detection component generates a target posture image, thereby not only detecting posture change of the user, but also moving along with the user, so that the detected posture of the user is in the target detection position, and the situation that the user cannot be detected due to movement of the user is avoided.
Further, referring to fig. 5c, in some embodiments, S520 includes:
s521, judging whether the portrait of the user in the real-time attitude image is located at a preset image position in the real-time attitude image;
s522, if yes, determining that the current posture of the user is not changed;
and S523, if not, determining that the current posture of the user changes.
In the present embodiment, the "posture change" is a change between the posture image at the present time and the posture image at the previous time. Determining the posture change of the user according to the real-time posture image, wherein the specific implementation mode can be as follows: the acquired real-time pose image is subjected to image processing (e.g., image segmentation and feature extraction) to determine the change in pose of the user. For example, the posture image a at the previous time and the posture image B at the current time are acquired, and it is determined that the posture of the user changes to move to the left if the user in the image a is located at the center of the image and the user in the image B is located at the left side of the center of the image according to the image processing result.
In some embodiments, the change types of the current pose include a first pose change type and a second pose change type. If the gesture of the user changes towards the first direction, determining that the change type of the current gesture of the user is a first gesture change type; and if the gesture of the user changes towards the second direction, determining that the change type of the current gesture of the user is a second gesture change type. For example, assuming that the first direction is the left direction and the second direction is the right direction, in the real-time posture image A, B, if the posture of the user moves to the left, the change type of the current posture of the user is determined to be the first posture change type, and if the posture of the user moves to the right, the change type of the current posture of the user is determined to be the second posture change type.
In some embodiments, if the change type of the current posture of the user is the first posture change type, the following detection component is controlled to follow the user according to the first direction so as to generate a target posture image. And if the change type of the current posture of the user is the second posture change type, controlling the following detection assembly to follow the user according to the second direction so as to generate a target posture image. For example, assuming that the first direction is the left direction and the second direction is the right direction, if the posture of the user moves to the left direction, the following detection component is adjusted to the target detection position to generate the target posture image to the left direction, and if the posture of the user moves to the right direction, the following detection component is adjusted to the target detection position to generate the target posture image to the right direction.
Further, referring to fig. 5d, the desk lamp control method S500 further includes:
s541, acquiring a standard posture image;
and S542, when the real-time attitude image is detected not to be matched with the standard attitude image, generating prompt information.
The "standard posture image" is a preset standard sitting posture image. In this embodiment, when the real-time posture image is acquired, the real-time posture image is compared with the standard posture image, and if the similarity between the real-time posture image and the standard posture image is smaller than a preset similarity threshold, it is determined that the real-time posture image is not matched with the standard posture image, and a prompt message is generated to prompt a user. Wherein, the prompt message can remind etc. for lighting the pilot lamp, pronunciation warning message, perhaps uploading APP, for example, remind the position of sitting mistake, upload APP with alarm information is wireless through pronunciation to make father and mother look over the position of sitting condition when child learns through APP. By comparing the real-time posture image with the standard posture image, the user can be effectively reminded when the eye posture of the user is incorrect, so that the eyesight protection effect is improved.
Optionally, referring to fig. 5e, the desk lamp may further include an illumination assembly, and the illumination assembly may be rotatably mounted on the desk lamp body. The desk lamp control method S500 further includes:
s551, recording a rotation angle when the tracking detection assembly generates a target posture image;
and S552, controlling the lighting assembly to rotate according to the rotation angle.
When the position of the user moves, the following detection assembly also moves along with the user, so that the portrait of the user is located at the preset image position of the real-time posture image, at the moment, in order to enable the user to be in the optimal illumination state, the illumination assembly is controlled to rotate according to the adjustment direction and the angle of the following detection assembly, the light source of the illumination assembly moves along with the movement of the user, and therefore the eyesight protection effect is improved. Wherein, lighting assembly's turned angle can be the same with the turned angle who follows detection component, also can be different with the turned angle who follows detection component, as long as can make lighting assembly's light source follow user's removal and remove, and reach preferred illumination state can.
Optionally, referring to fig. 5f, in order to better save power, the desk lamp control method S500 further includes:
s561, when detecting that the user is located within a preset range of the desk lamp, lighting the lighting assembly;
and S562, in a preset time, when detecting that the user is not in the preset range of the desk lamp, turning off the lighting assembly.
The "preset range of the table lamp" may be a circle formed by a preset distance from the table lamp, for example, if the preset distance is 1 meter, the preset range is a circle formed by taking the table lamp as a center and 1 meter as a radius. The lighting assembly is turned on when the user is detected to be located within the preset range of the desk lamp, and the lighting assembly is turned off when the user is not detected to be located within the preset range of the desk lamp and lasts for the preset duration, so that the desk lamp can be automatically turned on and turned off, and the electric quantity can be better saved.
Optionally, referring to fig. 5g, the desk lamp control method S500 further includes:
s571, obtaining the ambient brightness;
s572, selecting the optimal illumination brightness according to the environment brightness;
and S573, adjusting the brightness of the lighting assembly according to the optimal lighting brightness.
The "ambient brightness" is the brightness of the current environment of the desk lamp, and the ambient brightness is obtained and can be obtained through the illumination sensor. Wherein different ambient brightness may correspond to different optimal illumination brightness. In this embodiment, when the ambient brightness is obtained, the optimal illumination brightness corresponding to the ambient brightness is selected according to the ambient brightness, and the brightness of the illumination assembly is adjusted according to the optimal illumination brightness. Through the mode, the brightness of the illumination assembly can be adjusted according to the ambient brightness, so that a user can use eyes in the state of optimal illumination brightness, and the eyesight protection effect is improved.
Optionally, the desk lamp control method further includes: the usage data is automatically saved so that when the desk lamp is turned on again, the desk lamp is restored to a state before power failure. Wherein the data may be saved to FLASH.
In this embodiment, the desk lamp control method obtains the real-time posture image of the user by controlling the following detection component, determines the current posture of the user according to the real-time posture image, and controls the following detection component to follow the user according to the current posture of the user so as to generate a target posture image, so that not only can the posture change of the user be detected, but also the movement of the user can be followed, and the situation that the user cannot be detected due to the movement of the user is avoided.
Referring to fig. 6, the following further illustrates a working flow of a desk lamp control method according to an embodiment of the present invention, as follows:
when the desk lamp is powered on, parameter initialization is carried out.
And restoring the table lamp to the state of the last power failure according to the stored data.
And in the power-off state, the indicator lamp is turned off, the illuminating lamp is turned off, whether a power key is pressed for a long time or not is detected, and if yes, the standby state is switched.
In a standby state, the indicator lamp is turned off, the illuminating lamp is turned off, whether a person is located in a preset range of the desk lamp or not is detected, and if yes, the desk lamp is switched to an illuminating state; and/or detecting whether a power key is pressed for a short time, and if so, switching to an illumination state; and/or detecting whether a night light key is pressed for a short time, and if so, turning on/off the night light.
In the lighting state, the indicator lamp is turned on, the lighting lamp is turned on, whether a long-press mode key and a night lamp key exist or not is detected, if yes, the sitting posture reminding function is turned on/off, the sitting posture indicator lamp is turned on when the sitting posture reminding function is turned on, and the sitting posture indicator lamp is turned off when the sitting posture reminding function is turned off; detecting whether a long-press mode key exists or not under the condition of starting a sitting posture reminding function, if so, starting standard sitting posture input, and simultaneously carrying out flashing prompt on a sitting posture indicating lamp; and/or detecting whether a night light key is pressed for a short time, if so, turning on/off the night light; and/or detecting whether a night lamp key is pressed for a long time, if so, starting WIFI binding, and carrying out flicker prompting on a WIFI indicator lamp, and after the binding is finished, lighting the WIFI indicator lamp in a WIFI normal network connection state, and turning off the WIFI indicator lamp in a WIFI abnormal network connection state; and/or detecting whether a power key is pressed for a short time, and if so, switching to a standby state; and/or detecting whether a power key is pressed for a long time, and if so, switching to a power-off state; and/or detecting whether no person is in the preset range of the desk lamp within 15 minutes, and if so, switching to a standby state.
When a sitting posture reminding function is started, acquiring a real-time posture image of a user, and determining posture change of the user according to the real-time posture image; and adjusting the following detection assembly to a target detection position according to the posture change of the user so that the following detection assembly generates a target posture image, wherein the portrait of the user is presented at a preset image position of the target posture image, a standard posture image is obtained, and prompt information is generated when the real-time posture image is detected not to be matched with the standard posture image.
It should be noted that, in the foregoing embodiments, a certain order does not necessarily exist between the foregoing steps, and it can be understood by those skilled in the art from the description of the embodiments of the present invention that, in different embodiments, the foregoing steps may have different execution orders, that is, may be executed in parallel, may also be executed in an exchange manner, and the like.
As another aspect of the embodiments of the present invention, a desk lamp control device is provided in an embodiment of the present invention, and is applied to a desk lamp, where the desk lamp includes a following detection component, and the following detection component is configured to follow a user to generate each posture image located at a different detection position.
Referring to fig. 7a, the desk lamp control device 700 includes: a first obtaining module 71, a determining module 72 and a first adjusting module 73.
The first obtaining module 71 is configured to obtain a real-time posture image of the user;
the determining module 72 is configured to determine a current posture of the user according to the real-time posture image;
the first adjusting module 73 is configured to control the following detection component to follow the user according to the current posture of the user, so as to generate a target posture image, wherein the portrait of the user is presented in a preset image position of the target posture image.
In some embodiments, referring to fig. 7b, the determining module 72 includes: a determination unit 721, a first determination unit 722, and a second determination unit 723.
The judging unit 721 is configured to judge whether the portrait of the user in the real-time pose image is located at a preset image position in the real-time pose image;
the first determining unit 722 is configured to determine that the current posture of the user does not change if the current posture of the user does not change;
the second determining unit 723 is configured to determine that the current posture of the user changes if the current posture of the user does not change.
In some embodiments, the change types of the current pose include a first pose change type and a second pose change type; the second determining unit 723 is specifically configured to: if the gesture of the user changes towards a first direction, determining that the change type of the current gesture of the user is a first gesture change type; and if the gesture of the user changes towards a second direction, determining that the change type of the current gesture of the user is a second gesture change type.
In some embodiments, the first adjusting module 73 is specifically configured to: if the change type of the current posture of the user is the first posture change type, controlling the following detection assembly to follow the user according to the first direction so as to generate a target posture image; and if the change type of the current posture of the user is the second posture change type, controlling the following detection assembly to follow the user according to the second direction so as to generate a target posture image.
In some embodiments, each pose image at different poses is a uniform format dot matrix image.
In some embodiments, the preset image position is a central region of the dot matrix image.
In some embodiments, the table lamp includes a rotatable lighting assembly. Referring to fig. 7c, the desk lamp control device 700 further includes: a recording module 74 and a control module 75.
The recording module 74 is configured to record a rotation angle of the tracking detection component when generating the target posture image;
the control module 75 is configured to control the lighting assembly to rotate according to the rotation angle.
In some embodiments, referring to fig. 7d, the desk lamp control device 700 further includes: a light-up module 76 and a light-off module 77.
The lighting module 76 is configured to light the lighting assembly when the user is detected to be located within a preset range of the desk lamp;
the turning-off module 77 is configured to turn off the lighting assembly when detecting that the user is not within the preset range of the desk lamp within a preset duration.
In some embodiments, referring to fig. 7e, the desk lamp control device 700 further includes: a second obtaining module 78, a selecting module 79 and a second adjusting module 80.
The second obtaining module 78 is used for obtaining the ambient brightness;
the selection module 79 is used for selecting the optimal illumination brightness according to the ambient brightness;
the second adjusting module 80 is used for adjusting the brightness of the lighting assembly according to the optimal lighting brightness.
In some embodiments, referring to fig. 8, the desk lamp control device 700 further includes: a third obtaining module 81 and a generating module 82.
The third obtaining module 81 is configured to obtain a standard posture image;
the generating module 82 is configured to generate a prompt message when it is detected that the real-time pose image does not match the standard pose image.
It should be noted that the desk lamp control device can execute the desk lamp control method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in the embodiment of the desk lamp control device, reference may be made to the desk lamp control method provided in the embodiment of the present invention.
Fig. 9 is a schematic block circuit diagram of a controller according to an embodiment of the present invention. As shown in fig. 9, the controller 900 includes one or more processors 91 and a memory 92. In fig. 9, one processor 91 is taken as an example. The controller 900 may be configured in the table lamp of the various embodiments described above.
The processor 91 and the memory 92 may be connected by a bus or other means, and fig. 9 illustrates the connection by a bus as an example.
The memory 92 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the desk lamp control method in the embodiment of the present invention. The processor 91 executes various functional applications and data processing of the desk lamp control device by running the nonvolatile software programs, instructions and modules stored in the memory 92, that is, the functions of the desk lamp control method of the above method embodiment and the various modules of the above device embodiment are realized.
The memory 92 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 92 may optionally include memory located remotely from the processor 91, and such remote memory may be connected to the processor 91 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The program instructions/modules are stored in the memory 92 and, when executed by the one or more processors 91, perform the table lamp control method in any of the method embodiments described above.
The controller 900 of the present embodiment of the invention may take many forms and perform the various steps described above.
Embodiments of the present invention further provide a non-volatile computer storage medium, where the computer storage medium stores computer-executable instructions, which are executed by one or more processors, for example, one processor 91 in fig. 9, and may enable the one or more processors to execute the desk lamp control method in any method embodiment described above.
An embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions, and when the program instructions are executed by a mobile carrier, the desk lamp executes any one of the desk lamp control methods.
The above-described embodiments of the apparatus or device are merely illustrative, wherein the unit modules described as separate parts may or may not be physically separate, and the parts displayed as module units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network module units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the above technical solutions substantially or contributing to the related art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (8)

1. The desk lamp control method is characterized in that the desk lamp comprises a desk lamp body and a following detection assembly which is rotatably arranged on the desk lamp body, wherein the following detection assembly is used for following a user and generating each posture image of the user under different postures; the method comprises the following steps:
acquiring a real-time attitude image of the user;
judging whether the portrait of the user in the real-time attitude image is located at a preset image position in the real-time attitude image;
if so, determining that the current posture of the user is not changed;
if not, determining that the current posture of the user changes; if the current posture of the user is detected to be changed, controlling the following detection component to follow the user according to the current posture of the user so as to generate a target posture image, wherein the portrait of the user is presented at a preset image position of the target posture image, and the preset image position of the target posture image is a central position of the target posture image;
the controlling the following detection component to follow the user according to the current posture of the user to generate a target posture image comprises:
controlling the following detection assembly to move to a detection position and acquiring a posture image of the user, wherein if the posture image acquired at the detection position is the same as the posture image before posture change, the following detection assembly is already at a target detection position, and the posture image acquired at the detection position is taken as the target posture image; if the position of the attitude image acquired at the detection position is different from the position of the attitude image before the attitude change, continuously adjusting the position of the following detection component until the position of the acquired attitude image is the same as the position of the attitude image before the attitude change, and the position of the acquired attitude image is the same as the position of the attitude image before the attitude change, wherein the following detection component is already at the target detection position, and the attitude image acquired at the target detection position is taken as the target attitude image, so that the situation that the user cannot detect the attitude caused by the movement of the user is avoided;
the determining that the current posture of the user changes comprises:
if the gesture of the user changes towards a first direction, determining that the change type of the current gesture of the user is a first gesture change type;
if the gesture of the user changes towards a second direction, determining that the change type of the current gesture of the user is a second gesture change type;
the controlling the following detection component to follow the user according to the current posture of the user so as to generate a target posture image further comprises:
if the change type of the current posture of the user is the first posture change type, controlling the following detection assembly to follow the user according to the first direction so as to generate a target posture image;
and if the change type of the current posture of the user is the second posture change type, controlling the following detection assembly to follow the user according to the second direction so as to generate a target posture image.
2. The method of claim 1, wherein each pose image in different poses is a uniform format dot matrix image.
3. The method according to claim 2, wherein the preset image position is a central region of the dot matrix image.
4. The method of claim 1, wherein the table lamp comprises a lighting assembly rotatably mounted to a body of the table lamp;
the method further comprises the following steps:
recording a rotation angle when the following detection component generates a target attitude image;
and controlling the lighting assembly to rotate according to the rotating angle.
5. The method of claim 4, further comprising:
when the user is detected to be within a preset range of the desk lamp, the lighting assembly is lightened;
and in a preset time, when the user is detected not to be in the preset range of the desk lamp, the lighting assembly is turned off.
6. The method of claim 4, further comprising:
obtaining the ambient brightness;
selecting optimal illumination brightness according to the ambient brightness;
and adjusting the brightness of the lighting assembly according to the optimal lighting brightness.
7. The method of claim 1, further comprising:
acquiring a standard posture image;
and when the real-time attitude image is not matched with the standard attitude image, generating prompt information.
8. A desk lamp, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the table lamp control method of any one of claims 1 to 7.
CN201910365329.0A 2019-04-30 2019-04-30 Desk lamp control method and desk lamp Active CN110440223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910365329.0A CN110440223B (en) 2019-04-30 2019-04-30 Desk lamp control method and desk lamp

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910365329.0A CN110440223B (en) 2019-04-30 2019-04-30 Desk lamp control method and desk lamp

Publications (2)

Publication Number Publication Date
CN110440223A CN110440223A (en) 2019-11-12
CN110440223B true CN110440223B (en) 2022-03-08

Family

ID=68429266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910365329.0A Active CN110440223B (en) 2019-04-30 2019-04-30 Desk lamp control method and desk lamp

Country Status (1)

Country Link
CN (1) CN110440223B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111265220A (en) * 2020-01-21 2020-06-12 王力安防科技股份有限公司 Myopia early warning method, device and equipment
CN111789473A (en) * 2020-06-28 2020-10-20 珠海格力电器股份有限公司 Cup warming pad, cup warming pad control method and storage medium
CN112423442A (en) * 2020-09-11 2021-02-26 扬州科佳建设工程有限公司 Scene illumination control method based on face recognition
CN113766707A (en) * 2021-04-30 2021-12-07 北京字节跳动网络技术有限公司 Method and device for adjusting illumination parameters of table lamp, electronic equipment and storage medium
CN113282178A (en) * 2021-06-17 2021-08-20 威强科技(北京)有限公司 But lighting device of automatically regulated gesture
CN117226460A (en) * 2023-11-09 2023-12-15 上海航天壹亘智能科技有限公司 Assembly system, tool and method for numerical control machine tool workbench

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5223500B2 (en) * 2008-03-21 2013-06-26 東芝ライテック株式会社 Lighting device
CN103456144A (en) * 2013-09-16 2013-12-18 苏州大学 Intelligent table lamp system based on mode recognition technique
CN103488980A (en) * 2013-10-10 2014-01-01 广东小天才科技有限公司 Sitting posture judging method and device based on camera
CN106287384A (en) * 2016-08-29 2017-01-04 深圳市华增科技有限公司 A kind of eye-protecting desk lamp with correcting sitting posture intelligent reminding function
CN107543062A (en) * 2017-08-10 2018-01-05 浙江凯耀照明股份有限公司 A kind of intelligent desk lamp and application method
CN207975407U (en) * 2018-02-25 2018-10-16 东莞隆斌建设机电工程有限公司 A kind of safety monitoring bar
CN108278548A (en) * 2018-03-12 2018-07-13 苏州鑫金茂金属科技有限公司 A kind of intelligence lamp holder
CN108492231A (en) * 2018-05-22 2018-09-04 集美大学 The monitoring system of class efficacy information based on students ' behavior data
CN208442623U (en) * 2018-06-14 2019-01-29 浙江凯耀照明股份有限公司 A kind of sitting posture identification desk lamp
CN109654401B (en) * 2018-12-28 2020-10-16 浙江凯耀照明股份有限公司 Sitting posture identification desk lamp system based on machine vision and identification method

Also Published As

Publication number Publication date
CN110440223A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN110440223B (en) Desk lamp control method and desk lamp
US8130099B2 (en) Sensor light
US10438460B2 (en) Smart home device providing intuitive illumination-based status signaling
CN206021193U (en) For the system for processing ultrasound input
US10488549B2 (en) Locating power receivers
US20190186767A1 (en) Sensors for detecting presence, occupancy, and/or motion and related systems and methods
CN113661369B (en) Household appliance with a camera arranged in a door
AU2017248546A1 (en) Systems and methods for controlling garage door opener operations
BR112020022099A2 (en) Flight time distance measurement with variable emission fields
TWI567337B (en) Intelligent control module,intelligent fan light,intelligent remote controller of the fan light and intelligent fan light control method
CN110056800B (en) Desk lamp and desk lamp system
CN109040716A (en) A kind of monitoring device of Internet of Things server
US20190182941A1 (en) Lighting system
US20210099635A1 (en) Externally attachable device triggering system and method of use
US10389149B2 (en) Sensory and control platform for an automation system
CN112983871A (en) Fan control method, fan and computer readable storage medium
CN107561992B (en) Intelligent kitchen fixed heat source monitoring and reminding device and method
CN113133741A (en) Skin detection method and device and skin detector
CN219678557U (en) Video camera structure
CN212569457U (en) Intelligent home system based on AIOT
CN216950921U (en) Multifunctional fan
AU2015288012B2 (en) Communication-connected battery with expansion capability
WO2020049589A1 (en) Electronic device for controlling lighting
KR20230114950A (en) Method for controlling power based on image recognition and electric range supporting the same

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
TA01 Transfer of patent application right

Effective date of registration: 20210222

Address after: B1601, Shenzhen national engineering laboratory building, No.20, Gaoxin South 7th Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000

Applicant after: Shenzhen shuliantianxia Intelligent Technology Co.,Ltd.

Address before: 1003, 10th floor, block D, Shenzhen Institute of aerospace technology innovation building, no.6, South Science and technology 10 road, high tech South District, Nanshan District, Shenzhen, Guangdong 518000

Applicant before: SHENZHEN H & T HOME ONLINE NETWORK TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant