CN114585140A - Control method and device of desk lamp, readable medium and electronic equipment - Google Patents

Control method and device of desk lamp, readable medium and electronic equipment Download PDF

Info

Publication number
CN114585140A
CN114585140A CN202210255918.5A CN202210255918A CN114585140A CN 114585140 A CN114585140 A CN 114585140A CN 202210255918 A CN202210255918 A CN 202210255918A CN 114585140 A CN114585140 A CN 114585140A
Authority
CN
China
Prior art keywords
desk lamp
orientation
information
illumination
adjustment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210255918.5A
Other languages
Chinese (zh)
Inventor
丁泽楠
赵钰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network 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 Beijing Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202210255918.5A priority Critical patent/CN114585140A/en
Publication of CN114585140A publication Critical patent/CN114585140A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/115Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

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

Abstract

The disclosure relates to a control method and device of a desk lamp, the desk lamp, a readable medium and an electronic device, and relates to the field of smart home, wherein the method comprises the following steps: the orientation of the desk lamp is detected through the geomagnetic sensor, if the orientation of the desk lamp is not matched with the specified orientation according to the orientation of the desk lamp and the pre-stored environment information, the illumination information of the current environment is detected through the color sensor, the illumination information comprises illumination intensity and/or color temperature, under the condition that the illumination information meets the illumination condition, the desk lamp is controlled to illuminate, under the condition that the illumination information does not meet the illumination condition, first adjusting information is sent, and the first adjusting information is used for prompting to adjust the orientation of the desk lamp. This openly confirms whether the orientation of desk lamp accords with the appointed orientation through ground magnetic sensor to whether further satisfy the lighting condition through the colour sensor detection under the inconsistent circumstances, with this control illumination, can improve the intelligent degree and the degree of accuracy of desk lamp illumination, guarantee the illuminating effect of desk lamp.

Description

Control method and device of desk lamp, readable medium and electronic equipment
Technical Field
The disclosure relates to the technical field of smart homes, in particular to a control method and device of a desk lamp, the desk lamp, a readable medium and electronic equipment.
Background
Along with the continuous development of the intelligent home technology and the diversified requirements of users, more and more intelligent table lamps enter families of people. On the basis of lighting, the intelligent desk lamp is often added with functions of OCR (Optical Character Recognition), multimedia playing, voice call and the like, and can provide personalized services for users. In the use of intelligence desk lamp, often can take place to remove, it is unreasonable to probably have the orientation, leads to user's health to shelter from light source, screen reflection of light scheduling problem, has influenced the normal use of intelligence desk lamp.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides a method for controlling a table lamp, the method including:
detecting the orientation of the desk lamp through a geomagnetic sensor;
if the orientation of the desk lamp is determined to be not matched with the specified orientation according to the orientation of the desk lamp and pre-stored environment information, detecting illumination information of the current environment through a color sensor, wherein the illumination information comprises illumination and/or color temperature;
under the condition that the illumination information meets the illumination condition, controlling the desk lamp to illuminate;
and sending first adjustment information under the condition that the illumination information does not meet the illumination condition, wherein the first adjustment information is used for prompting the adjustment of the orientation of the desk lamp.
In a second aspect, the present disclosure provides a control device for a table lamp, the device comprising:
the first detection module is used for detecting the orientation of the desk lamp through the geomagnetic sensor;
the second detection module is used for detecting illumination information of the current environment through a color sensor if the orientation of the desk lamp is determined not to be matched with the specified orientation according to the orientation of the desk lamp and pre-stored environment information, wherein the illumination information comprises illumination intensity and/or color temperature;
the control module is used for controlling the desk lamp to illuminate under the condition that the illumination information meets the illumination condition; and sending first adjustment information under the condition that the illumination information does not meet the illumination condition, wherein the first adjustment information is used for prompting the adjustment of the orientation of the desk lamp.
In a third aspect, the present disclosure provides a desk lamp, comprising: a geomagnetic sensor, a color sensor, and a controller for performing the steps of the method of the first aspect.
In a fourth aspect, the present disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processing apparatus, performs the steps of the method of the first aspect of the present disclosure.
In a fifth aspect, the present disclosure provides an electronic device comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to implement the steps of the method of the first aspect of the present disclosure.
Through the technical scheme, the orientation of the desk lamp is detected through the geomagnetic sensor, and the illumination information of the current environment is detected through the color sensor under the condition that the orientation of the desk lamp is determined to be not matched with the specified orientation according to the orientation of the desk lamp and the pre-stored environment information. And if the illumination information meets the illumination condition, controlling the desk lamp to illuminate, and if the illumination information does not meet the illumination condition, sending first adjustment information to prompt the adjustment of the orientation of the desk lamp. This openly confirms whether the orientation of desk lamp accords with the appointed orientation through ground magnetic sensor to whether further satisfy the lighting condition through the colour sensor detection under the inconsistent circumstances, with this control illumination, can improve the intelligent degree and the degree of accuracy of desk lamp illumination, guarantee the illuminating effect of desk lamp.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale. In the drawings:
FIG. 1 is a schematic diagram of a table lamp according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of controlling a table lamp according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating another method of controlling a table lamp according to an exemplary embodiment;
FIG. 4 is a flow chart illustrating another method of controlling a table lamp in accordance with an exemplary embodiment;
FIG. 5 is a flow chart illustrating another method of controlling a table lamp in accordance with an exemplary embodiment;
FIG. 6 is a flow chart illustrating another method of controlling a table lamp in accordance with an exemplary embodiment;
FIG. 7 is a flow chart illustrating another method of controlling a table lamp in accordance with an exemplary embodiment;
FIG. 8 is a flow chart illustrating another method of controlling a table lamp in accordance with an exemplary embodiment;
FIG. 9 is a flow chart illustrating another method of controlling a table lamp in accordance with an exemplary embodiment;
FIG. 10 is a block diagram of a control device for a table lamp according to an exemplary embodiment;
FIG. 11 is a block diagram illustrating another control device for a table lamp in accordance with an exemplary embodiment;
FIG. 12 is a block diagram illustrating another control device for a table lamp in accordance with an exemplary embodiment;
FIG. 13 is a block diagram illustrating another control device for a table lamp in accordance with an exemplary embodiment;
FIG. 14 is a block diagram illustrating another control device for a table lamp in accordance with an exemplary embodiment;
FIG. 15 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and the embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
All actions of acquiring signals, information or data in the present disclosure are performed under the premise of complying with the corresponding data protection regulation policy of the country of the location and obtaining the authorization given by the owner of the corresponding device.
Before introducing the control method and apparatus for a desk lamp, the readable medium, and the electronic device provided in the present disclosure, first, an application scenario related to each embodiment of the present disclosure is introduced. The desk lamp in the present disclosure is an intelligent desk lamp, and can be understood as an intelligent terminal, as shown in fig. 1, the desk lamp can be divided into a lamp holder, a lamp post and a base, a light source (not shown in fig. 1) is arranged on the lamp holder, a display is arranged on the lamp post, and a switch is arranged on the base. Various sensors (not shown in fig. 1) are also provided on the table lamp, for example: a Geomagnetic sensor (english: geographic-sensor), a color sensor (english: RBG-sensor), an Inertial Measurement Unit (english: Inertial Measurement Unit, abbreviation: IMU), and the like. The desk lamp may further include one or more image capturing devices (e.g., a camera), which may be disposed on the lamp head (e.g., c1 in fig. 1), may be disposed on the lamp post (e.g., c2 in fig. 1) through a connecting assembly (i.e., a rotating bracket mentioned later), and may be disposed on the base (e.g., c3 in fig. 1), which is not limited in this disclosure. Further, the desk lamp may further include one or more controllers (not shown in fig. 1), the controller may be disposed inside the lamp post or the base and configured to control each component included in the desk lamp, and the controller may be an independent MCU (micro controller Unit, chinese: micro control Unit) and is specifically configured to control rotation of the rotating bracket, or may be a CPU (Central Processing Unit, chinese: Central controller) and is configured to centrally control the light source, the display, the image acquisition device, the sensor, and the like, which is not specifically limited in this disclosure.
Fig. 2 is a flowchart illustrating a control method of a desk lamp according to an exemplary embodiment, as shown in fig. 2, the method including the steps of:
step 101, detecting the orientation of the desk lamp through a geomagnetic sensor.
Step 102, if the orientation of the desk lamp is determined not to be matched with the specified orientation according to the orientation of the desk lamp and the pre-stored environment information, detecting illumination information of the current environment through a color sensor, wherein the illumination information comprises illumination intensity and/or color temperature.
For example, in the case that the user triggers the turn-on instruction, in response to the turn-on instruction, the orientation of the current desk lamp may be detected by a geomagnetic sensor provided on the desk lamp. The user can trigger the starting instruction through the physical switch or the virtual switch on the display. Then, whether the orientation of the desk lamp is matched with the specified orientation can be judged according to the orientation of the current desk lamp and the pre-stored environmental information. The environment information can be set when the user uses the desk lamp for the first time in a certain environment or set according to specific requirements. The environment information can reflect the specific situation of the environment, for example, the environment information may include: the position, color temperature, illuminance of other light sources (e.g., ceiling lights, windows, etc.) in the environment besides the desk lamp, the color of walls or wallpaper in the environment, and the position of objects (e.g., tables and chairs, cabinets, potted plants, etc.) in the environment. The designated orientation may be an orientation set by the user when the user uses the desk lamp for the first time in the environment, may be set by the user according to specific requirements, and may be determined by identifying environment information.
It should be noted that the designated orientation may be one or more, and in the case that the designated orientation is multiple, a corresponding effective time range may be set for each designated orientation. When judging whether the orientation of the desk lamp is matched with the specified orientation, whether the orientation of the desk lamp is matched with the specified orientation corresponding to the section of effective time range can be judged according to which effective time range the current time belongs to. For example, the designated orientations may be 3, with corresponding effective time ranges of 9:01-15:00, 7:01-9:00&15:01-19:00, 0:01-7:00&19:01-24:00, respectively.
Specifically, the orientation of the current desk lamp may be compared with the positions of other light sources and the position of the object in the environment information, so as to determine whether the orientation of the desk lamp matches the specified orientation. If the orientation of the desk lamp is matched with the specified orientation, the orientation of the desk lamp is not changed, the requirement is met, the desk lamp can be directly controlled to illuminate, namely, a light source on the lamp holder is controlled to be turned on, and further, an image acquisition device on the lamp holder can be controlled to acquire and identify an image on a placing plane of the desk lamp, so that an OCR function is realized. If the orientation of the desk lamp is not matched with the designated orientation, the orientation of the desk lamp is changed, and whether the current environment is suitable for illumination needs to be further judged. Illumination information of the current environment may be detected by a color sensor, wherein the illumination information may include illuminance, and/or color temperature, etc. That is to say, the color sensor is turned on and collects illumination information when the orientation of the desk lamp is not matched with the designated orientation, and is turned off when the orientation of the desk lamp is matched with the designated orientation, so that power consumption of the color sensor can be reduced.
And 103, controlling the desk lamp to illuminate under the condition that the illumination information meets the illumination condition.
And 104, sending first adjustment information under the condition that the illumination information does not meet the lighting condition, wherein the first adjustment information is used for prompting the adjustment of the orientation of the desk lamp.
For example, after collecting the illumination information of the current environment, it may be determined whether the illumination information satisfies the illumination condition by comparing the illumination information with the illumination condition. The lighting condition can be set when the user uses the desk lamp for the first time in a certain environment, or can be set by the user according to specific requirements, or can be determined by identifying the environment information. The lighting conditions may include, for example: the illumination range, the color temperature range, and the like suitable for illumination may further include a corresponding illumination threshold, a color temperature threshold, and the like, which is not limited in this disclosure. If the illumination information meets the illumination condition, the current environment is suitable for illumination, the desk lamp can be directly controlled to illuminate, namely, a light source on the lamp holder is controlled to be turned on, and further, an image acquisition device on the lamp holder can be controlled to acquire an image on a placing plane of the desk lamp and recognize the image so as to realize an OCR function. If the illumination information does not meet the illumination condition, the current environment is not suitable for illumination, and first adjustment information can be sent to prompt a user that the current environment is not suitable for illumination and the orientation of the desk lamp needs to be adjusted. The presentation form of the first adjustment information may include: at least one of a text form, an image form, and a sound form. For example, the first adjustment information may be a text prompt or an image prompt such as "the current environment is not suitable for illumination and the desk lamp should be placed" and "the desk lamp should be placed to ensure the use effect of the desk lamp", or the first adjustment information may be a voice prompt such as a voice, a buzzer sound of a predetermined frequency, or an alarm sound. Therefore, the user can adjust the orientation of the desk lamp according to the first adjusting information so as to correctly use the desk lamp and ensure the lighting effect of the desk lamp.
Fig. 3 is a flowchart illustrating another table lamp control method according to an exemplary embodiment, and as shown in fig. 3, step 104 may include:
step 1041, determining an adjustment instruction according to the orientation of the desk lamp and the specified orientation, where the adjustment instruction includes: adjusting direction, and/or adjusting angle.
Step 1042, sending out a first adjustment message including an adjustment instruction.
For example, the first adjustment information may further include an adjustment instruction for instructing the user how to adjust the table lamp, and the adjustment instruction may include: adjusting direction, and/or adjusting angle. Specifically, the adjustment instruction may be determined according to the orientation of the table lamp and the designated orientation, for example, the adjustment direction may be determined by comparing the orientation of the table lamp and the designated orientation, and which direction the table lamp needs to be adjusted to, that is, the adjustment direction. The included angle between the orientation of the desk lamp and the specified orientation can also be determined, so that the angle which is needed to be adjusted when the desk lamp is adjusted to the specified orientation is determined, namely the angle is adjusted. First adjustment information may then be generated based on the adjustment indication. For example, the table lamp is oriented east and the designated orientation is north, with an angle of 90 degrees between them. The first adjustment information may be a text prompt indicating that the current environment is not suitable for illumination and the desk lamp should be turned to the north, a sound prompt indicating that the desk lamp should be turned to the north by 90 degrees to ensure the use effect of the desk lamp, and an image prompt including an arrow pointing to the north.
Fig. 4 is a flowchart illustrating another table lamp control method according to an exemplary embodiment, and as shown in fig. 4, the method may further include:
step 105, responding to the adjustment instruction, determining an adjustment instruction according to the orientation of the desk lamp and the specified orientation, wherein the adjustment instruction comprises: adjusting direction, and/or adjusting angle.
And 106, sending second adjusting information comprising an adjusting instruction, wherein the second adjusting information is used for prompting to adjust the direction of the desk lamp according to the adjusting instruction.
For example, during the use of the desk lamp, a user may find that the lighting of the desk lamp does not meet the requirement due to a change in the requirement or a change in time, and at this time, the user may trigger an adjustment instruction, and in response to the adjustment instruction, an adjustment instruction may be determined according to the orientation of the desk lamp and the specified orientation, where the adjustment instruction includes: adjusting direction, and/or adjusting angle. The user can trigger the adjustment instruction through the switch of the entity, and can also trigger the adjustment instruction through the virtual switch on the display. Second adjustment information including an adjustment indication may then be generated and issued to instruct the user how to adjust the table lamp. Specifically, the direction of the table lamp can be adjusted to the designated direction by comparing the direction of the table lamp with the designated direction, and the direction to which the table lamp needs to be adjusted, that is, the adjustment direction can be determined. The included angle between the orientation of the desk lamp and the specified orientation can also be determined, so that the angle which is needed to be adjusted when the desk lamp is adjusted to the specified orientation is determined, namely the angle is adjusted. Therefore, when the illumination of the desk lamp does not meet the requirements of a user any more, reasonable adjustment indication can be provided for the user, and the user is assisted to adjust the orientation of the desk lamp quickly and accurately.
Fig. 5 is a flowchart illustrating another table lamp control method according to an exemplary embodiment, and as shown in fig. 5, the method may further include:
and step 107, determining the lighting parameters according to the illumination information and the lighting conditions under the condition that the illumination information does not meet the lighting conditions.
And step 108, controlling the desk lamp to illuminate according to the illumination parameters.
For example, if the illumination information does not satisfy the lighting condition, the lighting parameter may be further determined according to the illumination information and the lighting condition, and the lighting parameter may include: color temperature, illumination, voltage, current, etc. And then controlling the desk lamp to illuminate according to the illumination parameters. That is to say, the light source of the desk lamp can be adjusted correspondingly according to the illumination and color temperature of the current environment, so that the light source emits proper light. Specifically, the desk lamp may be preset with a plurality of lighting modes, for example, the lighting modes may include: fixed lighting patterns, rhythmic lighting patterns, and the like. Under the condition that the illumination information does not meet the illumination condition, the current illumination mode of the desk lamp can be detected, if the illumination mode is a fixed illumination mode, the light source is not adjusted, and if the illumination mode is a rhythm illumination mode, the illumination parameter can be determined according to the illumination information and the illumination condition, and the light source is adjusted according to the illumination parameter.
Fig. 6 is a flowchart illustrating another table lamp control method according to an exemplary embodiment, and as shown in fig. 6, the method may further include:
step 109, acquiring an environment image of the specified environment through the image acquisition device under the condition that the setting conditions are met, and acquiring specified illumination information of the specified environment through the color sensor, wherein the setting conditions comprise: receiving an environment recording instruction and/or determining that the environment of the desk lamp changes.
Step 110, determining the designated orientation, the lighting condition, and the position and the attribute of the target object in the designated environment according to the environment image and the designated lighting information.
Step 111, the position and the attribute of the target object are used as environment information.
For example, when a user uses a desk lamp, the desk lamp is often placed in different environments for use, that is, the environment where the desk lamp is located is often changed, and therefore, when the desk lamp is in a new environment, the environment information needs to be set. Specifically, the environment image of the designated environment can be acquired through the image acquisition device under the condition that the setting condition is met, and the designated illumination information of the designated environment can be acquired through the color sensor. The number of the image acquisition devices for acquiring the environment image can be one or more, and the specified environment is the environment where the desk lamp is located when the set condition is met. The setting conditions may include: and receiving an environment recording instruction triggered by a user, or detecting that the environment of the desk lamp is changed. The user can trigger the environment recording instruction through the switch of the entity, and can also trigger the environment recording instruction through the virtual switch on the display. Whether the environment of the desk lamp changes or not is detected, the environment image can be collected according to a preset period (for example, 1 day) through the image collecting device, and the environment image is compared with the environment information.
Thereafter, a specified orientation, lighting conditions, and a position and attributes of a target object in the specified environment may be determined from the environment image and the specified lighting information. Specifically, image recognition may be performed on an environment image to identify the position and attribute of a target object in a specified environment, where the target object may be a light source other than a table lamp, for example: ceiling lights, windows, etc., as well as other objects that are not easily moved, such as: table and chair, cabinet, potted plant, etc., and can also be wall surface, wall paper, etc. If the target object is another light source, the corresponding attributes may include an illuminance and a color temperature, and if the target object is an object that is not easy to move, the corresponding attributes may include a color and a contour. Thereafter, a specified orientation in the specified environment may be determined based on the location of the target object. For example, the orientation is specified as a direction facing away from a wall surface (or wallpaper), or a direction facing a window. While lighting conditions in the specified environment may be determined. Further, the position and attribute of the target object may be used as the environmental information.
After the first adjustment information or the second adjustment information is sent, the orientation of the table lamp after adjustment may be detected by the geomagnetic sensor. The designated direction is updated based on the adjusted direction, and for example, the designated direction may be updated to the adjusted direction, or the updated direction may be recorded as a new designated direction.
Fig. 7 is a flowchart illustrating another table lamp control method according to an exemplary embodiment, and as shown in fig. 7, the method may further include:
and 112, detecting the posture of the desk lamp through an inertia measurement unit.
And 113, if the posture of the desk lamp is not matched with the specified posture, sending third adjusting information, wherein the third adjusting information is used for prompting the adjustment of the posture of the desk lamp.
And step 114, if the posture of the desk lamp is matched with the designated posture, controlling an OCR unit arranged on the desk lamp to be started.
For example, an OCR unit capable of implementing an OCR function may be disposed on the desk lamp, and the OCR unit may include an image capturing device disposed on the lamp head and a controller. When the user uses the OCR function, the accuracy of the OCR function may be greatly reduced because the desk lamp is not horizontally placed, and therefore, in order to ensure the accuracy of the OCR function, it is necessary to detect whether the desk lamp is horizontally placed. Specifically, the posture of the desk lamp can be detected through the inertia measurement unit. The inertial measurement unit may include a three-axis acceleration sensor and/or a three-axis gyroscope sensor. And if the posture of the desk lamp is matched with the specified posture, controlling an OCR unit arranged on the desk lamp to be started. The designated posture may be understood as a posture suitable for the OCR unit to work, and may be a horizontal posture, for example. And if the posture of the desk lamp is not matched with the specified posture, sending third adjusting information to indicate a user to adjust the posture of the desk lamp. The presentation form of the third adjustment information may include: at least one of a text form, an image form, and a sound form. For example, the third adjustment information may be a text prompt or an image prompt such as "the current environment is not suitable for character recognition and whether the desk lamp is placed horizontally is to be confirmed" the desk lamp is to be adjusted horizontally in order to ensure the use effect of character recognition ", or the third adjustment information may be a voice prompt such as a voice, a buzzer sound of a predetermined frequency, or an alarm sound. Therefore, the user can adjust the posture of the desk lamp according to the third adjustment information so as to correctly use the OCR function and ensure the accuracy of OCR.
Fig. 8 is a flowchart illustrating another control method of a desk lamp according to an exemplary embodiment, where as shown in fig. 8, the desk lamp includes: the device comprises a rotating support, an image acquisition device and an inertia measurement unit, wherein the image acquisition device and the inertia measurement unit are arranged on the rotating support. The inertial measurement unit may include a three-axis acceleration sensor and/or a three-axis gyroscope sensor. The desk lamp may further include a controller connected to the rotating bracket, and the controller may be a separate controller for controlling the rotating bracket, or may be the same as the controller for controlling the display and the image capturing device, which is not specifically limited in this disclosure.
Correspondingly, the method may further include:
and step 115, detecting the rotation angle of the rotating bracket through the inertia measurement unit when the rotating bracket rotates.
And step 116, if the rotation angle is not matched with the specified angle, sending fourth adjustment information, wherein the fourth adjustment information is used for prompting the adjustment of the angle of the rotating support.
For example, the image capturing device may be used to implement multiple functions, and the angle of the image capturing device is often different when implementing different functions. For example, the image acquisition device faces the base when realizing the OCR function, and faces the user when realizing the voice call function. Therefore, the image capturing device often needs to be rotated, and if the rotation angle is not accurate, the corresponding function may not be normally realized. Therefore, when the rotation of the rotating support is detected, namely the rotating support drives the image acquisition device to rotate, the rotation angle of the rotating support is detected through the inertia measurement unit, and the rotation angle is compared with the specified angle. The specified angle may be an angle corresponding to each function, which is stored in advance. If the rotation angle is matched with the designated angle, no prompt is given, and if the rotation angle is not matched with the designated angle, fourth adjustment information is sent to prompt a user to adjust the angle of the rotating support. The presentation form of the fourth adjustment information may include: at least one of a text form, an image form, and a sound form. For example, the fourth adjustment information may be a text prompt or an image prompt such as "please adjust the camera", "the camera cannot work normally at present, please adjust", or the like, and the fourth adjustment information may be a voice prompt such as a voice, a buzzer sound of a specified frequency, or an alarm sound. Therefore, the user can adjust the angle of the rotating support according to the fourth adjustment information, so that the image acquisition device can work normally.
Fig. 9 is a flowchart illustrating another table lamp control method according to an exemplary embodiment, and as shown in fig. 9, the method may further include:
and step 117, responding to the support adjusting instruction, controlling the rotating support to rotate until the inertia measuring unit detects that the rotating angle of the rotating support is the target angle indicated by the support adjusting instruction.
For example, a motor may be further disposed on the table lamp, the motor is connected to the rotating bracket and the controller, and the controller can send a command to the motor to enable the motor to control the rotating bracket to rotate. The user may trigger a stent adjustment command, and in response to the stent adjustment command, may control the rotational stent to rotate. The support adjusting instruction comprises a target angle, and a user can trigger the support adjusting instruction through a physical switch or a virtual switch on a display. In the process of controlling the rotation of the rotating support, the inertia measurement unit detects the rotation angle of the rotating support in real time until the rotation angle reaches the target angle, and the rotating support is controlled to stop rotating. Like this, can realize runing rest's automatic control, further improve the intelligent degree of desk lamp.
In summary, the present disclosure first detects the orientation of the desk lamp through the geomagnetic sensor, and detects the illumination information of the current environment through the color sensor when it is determined that the orientation of the desk lamp is not matched with the specified orientation according to the orientation of the desk lamp and the pre-stored environment information. And if the illumination information meets the illumination condition, controlling the desk lamp to illuminate, and if the illumination information does not meet the illumination condition, sending first adjustment information to prompt the adjustment of the orientation of the desk lamp. This openly confirms whether the orientation of desk lamp accords with the appointed orientation through ground magnetic sensor to whether further satisfy the lighting condition through the colour sensor detection under the inconsistent circumstances, with this control illumination, can improve the intelligent degree and the degree of accuracy of desk lamp illumination, guarantee the illuminating effect of desk lamp.
Fig. 10 is a block diagram illustrating a control apparatus of a desk lamp according to an exemplary embodiment, and as shown in fig. 10, the apparatus 200 may include:
the first detection module 201 is configured to detect an orientation of the desk lamp through a geomagnetic sensor.
The second detecting module 202 is configured to, if it is determined that the orientation of the desk lamp is not matched with the specified orientation according to the orientation of the desk lamp and pre-stored environment information, detect illumination information of the current environment through a color sensor, where the illumination information includes illuminance and/or color temperature.
And the control module 203 is used for controlling the desk lamp to illuminate under the condition that the illumination information meets the illumination condition. And sending first adjustment information under the condition that the illumination information does not meet the lighting condition, wherein the first adjustment information is used for prompting the adjustment of the orientation of the desk lamp.
In one implementation, the control module 203 may be configured to:
determining an adjustment instruction according to the orientation of the desk lamp and the designated orientation, wherein the adjustment instruction comprises: adjusting direction, and/or adjusting angle.
First adjustment information including an adjustment indication is issued.
In another implementation, the control module 203 may be further configured to:
in response to the adjustment instruction, determining an adjustment instruction according to the orientation of the desk lamp and the specified orientation, wherein the adjustment instruction comprises: adjusting direction, and/or adjusting angle.
And sending second adjusting information comprising an adjusting instruction, wherein the second adjusting information is used for prompting to adjust the orientation of the desk lamp according to the adjusting instruction.
Fig. 11 is a block diagram illustrating another control apparatus for a desk lamp according to an exemplary embodiment, and as shown in fig. 11, the apparatus 200 may further include:
and the lighting parameter determining module 204 is configured to determine the lighting parameter according to the lighting information and the lighting condition when the lighting information does not satisfy the lighting condition.
The control module 203 can also be used for controlling the desk lamp to illuminate according to the illumination parameters.
Fig. 12 is a block diagram illustrating another control apparatus of a desk lamp according to an exemplary embodiment, and as shown in fig. 12, the apparatus 200 may further include:
the collecting module 205 is configured to collect, by the image collecting device, an environment image of the designated environment and collect, by the color sensor, designated illumination information of the designated environment under the condition that the setting condition is satisfied, where the setting condition includes: receiving an environment recording instruction and/or determining that the environment of the desk lamp changes.
And the environment information determining module 206 is used for determining the designated orientation, the lighting condition and the position and the attribute of the target object in the designated environment according to the environment image and the designated lighting information. The position and the attribute of the target object are taken as the environmental information.
Fig. 13 is a block diagram illustrating another control apparatus of a desk lamp according to an exemplary embodiment, and as shown in fig. 13, the apparatus 200 may further include:
and a third detection module 207, configured to detect the posture of the table lamp through the inertial measurement unit.
The control module 203 is further configured to send third adjustment information if the posture of the desk lamp is not matched with the specified posture, where the third adjustment information is used to instruct to adjust the posture of the desk lamp. And if the posture of the desk lamp is matched with the specified posture, controlling an OCR unit arranged on the desk lamp to be started.
Fig. 14 is a block diagram illustrating another control apparatus of a desk lamp according to an exemplary embodiment, and as shown in fig. 14, the desk lamp includes: the device comprises a rotating support, an image acquisition device and an inertia measurement unit, wherein the image acquisition device and the inertia measurement unit are arranged on the rotating support.
The apparatus 200 may further comprise:
and a fourth detection module 208, configured to detect a rotation angle of the rotating bracket through the inertial measurement unit when the rotating bracket rotates.
The control module 203 is further configured to send fourth adjustment information if the rotation angle is not matched with the specified angle, where the fourth adjustment information is used to prompt to adjust the angle of the rotating bracket.
In another implementation, the control module 203 may be further configured to:
and responding to the support adjusting instruction, and controlling the rotating support to rotate until the inertia measuring unit detects that the rotating angle of the rotating support is the target angle indicated by the support adjusting instruction.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
In summary, the present disclosure first detects the orientation of the desk lamp through the geomagnetic sensor, and detects the illumination information of the current environment through the color sensor when it is determined that the orientation of the desk lamp is not matched with the specified orientation according to the orientation of the desk lamp and the pre-stored environment information. And if the illumination information meets the illumination condition, controlling the desk lamp to illuminate, and if the illumination information does not meet the illumination condition, sending first adjustment information to prompt the adjustment of the orientation of the desk lamp. This openly confirms whether the orientation of desk lamp accords with the appointed orientation through ground magnetic sensor to whether further satisfy the lighting condition through the colour sensor detection under the inconsistent circumstances, with this control illumination, can improve the intelligent degree and the degree of accuracy of desk lamp illumination, guarantee the illuminating effect of desk lamp.
In another exemplary embodiment, there is also provided a table lamp, including: the device comprises a geomagnetic sensor, a color sensor and a controller. The controller is used for executing the steps of the control method of the desk lamp in the embodiment.
With regard to the desk lamp in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In summary, the present disclosure first detects the orientation of the desk lamp through the geomagnetic sensor, and detects the illumination information of the current environment through the color sensor when it is determined that the orientation of the desk lamp is not matched with the specified orientation according to the orientation of the desk lamp and the pre-stored environment information. And if the illumination information meets the illumination condition, controlling the desk lamp to illuminate, and if the illumination information does not meet the illumination condition, sending first adjustment information to prompt the adjustment of the orientation of the desk lamp. This openly confirms whether the orientation of desk lamp accords with the appointed orientation through ground magnetic sensor to whether further satisfy the lighting condition through the colour sensor detection under the inconsistent circumstances, with this control illumination, can improve the intelligent degree and the degree of accuracy of desk lamp illumination, guarantee the illuminating effect of desk lamp.
Referring now to FIG. 15, a block diagram of an electronic device 300 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 15 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 15, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphic processor, etc.) 301 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 15 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the terminal devices, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: detecting the orientation of the desk lamp through a geomagnetic sensor; if the orientation of the desk lamp is determined to be not matched with the specified orientation according to the orientation of the desk lamp and pre-stored environment information, detecting illumination information of the current environment through a color sensor, wherein the illumination information comprises illumination and/or color temperature; controlling the desk lamp to illuminate under the condition that the illumination information meets the illumination condition; and sending first adjustment information under the condition that the illumination information does not meet the illumination condition, wherein the first adjustment information is used for prompting the adjustment of the orientation of the desk lamp.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. The name of the module does not in some cases constitute a limitation of the module itself, for example, the first detection module may also be described as a "module that detects the orientation of the desk lamp".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Example 1 provides a control method of a desk lamp, according to one or more embodiments of the present disclosure, including: detecting the orientation of the desk lamp through a geomagnetic sensor; if the orientation of the desk lamp is determined to be not matched with the specified orientation according to the orientation of the desk lamp and pre-stored environment information, detecting illumination information of the current environment through a color sensor, wherein the illumination information comprises illumination and/or color temperature; controlling the desk lamp to illuminate under the condition that the illumination information meets the illumination condition; and sending first adjustment information under the condition that the illumination information does not meet the illumination condition, wherein the first adjustment information is used for prompting the adjustment of the orientation of the desk lamp.
Example 2 provides the method of example 1, the issuing first adjustment information comprising: determining an adjustment instruction according to the orientation of the desk lamp and the specified orientation, wherein the adjustment instruction comprises: adjusting direction and/or adjusting angle; issuing the first adjustment information including the adjustment indication.
Example 3 provides the method of example 1, further comprising, in accordance with one or more embodiments of the present disclosure: in response to an adjustment instruction, determining an adjustment instruction according to the orientation of the table lamp and the specified orientation, the adjustment instruction comprising: adjusting direction and/or adjusting angle; and sending second adjustment information comprising the adjustment instruction, wherein the second adjustment information is used for prompting to adjust the orientation of the desk lamp according to the adjustment instruction.
Example 4 provides the method of example 1, further comprising, in accordance with one or more embodiments of the present disclosure: determining a lighting parameter according to the illumination information and the lighting condition under the condition that the illumination information does not meet the lighting condition; and controlling the desk lamp to illuminate according to the illumination parameters.
Example 5 provides the method of example 1, further comprising, in accordance with one or more embodiments of the present disclosure: under the condition that the set conditions are met, acquiring an environment image of a specified environment through an image acquisition device, and acquiring specified illumination information of the specified environment through a color sensor, wherein the set conditions comprise: receiving an environment recording instruction and/or determining that the environment of the desk lamp changes; determining the designated orientation, the lighting condition and the position and the attribute of a target object in the designated environment according to the environment image and the designated lighting information; and taking the position and the attribute of the target object as the environment information.
Example 6 provides the method of example 1, further comprising, in accordance with one or more embodiments of the present disclosure: detecting the posture of the desk lamp through an inertia measuring unit; if the posture of the desk lamp is not matched with the designated posture, sending third adjusting information, wherein the third adjusting information is used for prompting the adjustment of the posture of the desk lamp; and if the posture of the desk lamp is matched with the specified posture, controlling an OCR unit arranged on the desk lamp to be started.
Example 7 provides the method of example 1, the desk lamp comprising, in accordance with one or more embodiments of the present disclosure: a rotating support, an image acquisition device and an inertial measurement unit, the image acquisition device and the inertial measurement unit being disposed on the rotating support, the method further comprising: detecting a rotation angle of the rotating bracket by the inertial measurement unit while the rotating bracket is rotating; and if the rotation angle is not matched with the specified angle, sending fourth adjustment information, wherein the fourth adjustment information is used for prompting the adjustment of the angle of the rotating support.
Example 8 provides the method of example 7, wherein, in response to a stent adjustment command, controlling the rotating stent to rotate until the inertial measurement unit detects that the rotation angle of the rotating stent is the target angle indicated by the stent adjustment command.
Example 9 provides, according to one or more embodiments of the present disclosure, a control device of a table lamp, including: the first detection module is used for detecting the orientation of the desk lamp through the geomagnetic sensor; the second detection module is used for detecting illumination information of the current environment through a color sensor if the orientation of the desk lamp is determined not to be matched with the specified orientation according to the orientation of the desk lamp and pre-stored environment information, wherein the illumination information comprises illumination intensity and/or color temperature; the control module is used for controlling the desk lamp to illuminate under the condition that the illumination information meets the illumination condition; and sending first adjustment information under the condition that the illumination information does not meet the illumination condition, wherein the first adjustment information is used for prompting the adjustment of the orientation of the desk lamp.
Example 10 provides, in accordance with one or more embodiments of the present disclosure, a table lamp, comprising: a geomagnetic sensor, a color sensor, and a controller to perform the steps of the methods of examples 1 to 8.
Example 11 provides a computer-readable medium having stored thereon a computer program that, when executed by a processing apparatus, implements the steps of the methods of examples 1-8, in accordance with one or more embodiments of the present disclosure.
Example 12 provides, in accordance with one or more embodiments of the present disclosure, an electronic device, comprising: a storage device having a computer program stored thereon; processing means for executing the computer program in the storage means to implement the steps of the methods of examples 1 to 8.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims (12)

1. A control method of a desk lamp is characterized by comprising the following steps:
detecting the orientation of the desk lamp through a geomagnetic sensor;
if the orientation of the desk lamp is determined to be not matched with the specified orientation according to the orientation of the desk lamp and pre-stored environment information, detecting illumination information of the current environment through a color sensor, wherein the illumination information comprises illumination and/or color temperature;
controlling the desk lamp to illuminate under the condition that the illumination information meets the illumination condition;
and sending first adjustment information under the condition that the illumination information does not meet the illumination condition, wherein the first adjustment information is used for prompting the adjustment of the orientation of the desk lamp.
2. The method of claim 1, wherein said issuing first adjustment information comprises:
determining an adjustment instruction according to the orientation of the desk lamp and the specified orientation, wherein the adjustment instruction comprises: adjusting direction and/or adjusting angle;
issuing the first adjustment information including the adjustment indication.
3. The method of claim 1, further comprising:
in response to an adjustment instruction, determining an adjustment instruction according to the orientation of the table lamp and the specified orientation, the adjustment instruction comprising: adjusting direction and/or adjusting angle;
and sending second adjustment information comprising the adjustment instruction, wherein the second adjustment information is used for prompting to adjust the orientation of the desk lamp according to the adjustment instruction.
4. The method of claim 1, further comprising:
determining a lighting parameter according to the illumination information and the lighting condition under the condition that the illumination information does not meet the lighting condition;
and controlling the desk lamp to illuminate according to the illumination parameters.
5. The method of claim 1, further comprising:
under the condition that the set conditions are met, acquiring an environment image of a specified environment through an image acquisition device, and acquiring specified illumination information of the specified environment through a color sensor, wherein the set conditions comprise: receiving an environment recording instruction and/or determining that the environment of the desk lamp changes;
determining the designated orientation, the lighting conditions and the position and the attribute of a target object in the designated environment according to the environment image and the designated lighting information;
and taking the position and the attribute of the target object as the environment information.
6. The method of claim 1, further comprising:
detecting the posture of the desk lamp through an inertia measuring unit;
if the posture of the desk lamp is not matched with the designated posture, sending third adjusting information, wherein the third adjusting information is used for prompting the adjustment of the posture of the desk lamp;
and if the posture of the desk lamp is matched with the specified posture, controlling an OCR unit arranged on the desk lamp to be started.
7. The method of claim 1, wherein the table lamp comprises: a rotating support, an image acquisition device and an inertial measurement unit, the image acquisition device and the inertial measurement unit being disposed on the rotating support, the method further comprising:
detecting a rotation angle of the rotating bracket by the inertial measurement unit while the rotating bracket is rotating;
and if the rotation angle is not matched with the specified angle, sending fourth adjustment information, wherein the fourth adjustment information is used for prompting the adjustment of the angle of the rotating support.
8. The method of claim 7, further comprising:
and responding to a support adjusting instruction, and controlling the rotating support to rotate until the inertia measuring unit detects that the rotating angle of the rotating support is the target angle indicated by the support adjusting instruction.
9. A control device for a desk lamp, the device comprising:
the first detection module is used for detecting the orientation of the desk lamp through the geomagnetic sensor;
the second detection module is used for detecting illumination information of the current environment through a color sensor if the orientation of the desk lamp is determined not to be matched with the specified orientation according to the orientation of the desk lamp and pre-stored environment information, wherein the illumination information comprises illumination intensity and/or color temperature;
the control module is used for controlling the desk lamp to illuminate under the condition that the illumination information meets the illumination condition; and sending first adjustment information under the condition that the illumination information does not meet the illumination condition, wherein the first adjustment information is used for prompting the adjustment of the orientation of the desk lamp.
10. A desk lamp, comprising: a geomagnetic sensor, a color sensor, and a controller to perform the steps of the method of any one of claims 1-8.
11. A computer-readable medium, on which a computer program is stored, characterized in that the program, when being executed by processing means, carries out the steps of the method of any one of claims 1 to 8.
12. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method according to any one of claims 1 to 8.
CN202210255918.5A 2022-03-15 2022-03-15 Control method and device of desk lamp, readable medium and electronic equipment Pending CN114585140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210255918.5A CN114585140A (en) 2022-03-15 2022-03-15 Control method and device of desk lamp, readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210255918.5A CN114585140A (en) 2022-03-15 2022-03-15 Control method and device of desk lamp, readable medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114585140A true CN114585140A (en) 2022-06-03

Family

ID=81779766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210255918.5A Pending CN114585140A (en) 2022-03-15 2022-03-15 Control method and device of desk lamp, readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114585140A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104540290A (en) * 2014-12-30 2015-04-22 广州视声电子科技有限公司 Control method for intelligent table lamp and intelligent table lamp
JP2016146267A (en) * 2015-02-06 2016-08-12 パナソニックIpマネジメント株式会社 Athletic plant management device, athletic plant management system and athletic plant management method
CN108386755A (en) * 2018-03-06 2018-08-10 东莞市闻誉实业有限公司 Desk lamp
CN108596972A (en) * 2018-04-28 2018-09-28 上海与德科技有限公司 A kind of light adjusting method, device, intelligent desk lamp and storage medium
CN110325891A (en) * 2016-12-22 2019-10-11 奇跃公司 System and method for manipulating the light from environment light source
CN111237664A (en) * 2020-01-16 2020-06-05 北京字节跳动网络技术有限公司 Control method and device of rotary table lamp and rotary table lamp
CN111988895A (en) * 2019-05-21 2020-11-24 广东小天才科技有限公司 Illumination angle adjusting method and device, intelligent desk lamp and storage medium
CN112469178A (en) * 2020-12-04 2021-03-09 珠海格力电器股份有限公司 Desk lamp and control method of desk lamp light source
CN113596333A (en) * 2021-07-30 2021-11-02 威渡科技(北京)有限公司 Desk lamp and control method, device, equipment and storage medium thereof
CN214790820U (en) * 2020-12-31 2021-11-19 四川大学锦城学院 Intelligent desk lamp
CN113766707A (en) * 2021-04-30 2021-12-07 北京字节跳动网络技术有限公司 Method and device for adjusting illumination parameters of table lamp, electronic equipment and storage medium
CN113766705A (en) * 2021-04-30 2021-12-07 北京字节跳动网络技术有限公司 Method and device for adjusting illumination parameters of table lamp, electronic equipment and storage medium
CN113966051A (en) * 2021-12-23 2022-01-21 深圳市奥新科技有限公司 Intelligent control method, device and equipment for desk lamp illumination and storage medium
CN215908970U (en) * 2021-08-12 2022-02-25 科大讯飞股份有限公司 Desk lamp

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104540290A (en) * 2014-12-30 2015-04-22 广州视声电子科技有限公司 Control method for intelligent table lamp and intelligent table lamp
JP2016146267A (en) * 2015-02-06 2016-08-12 パナソニックIpマネジメント株式会社 Athletic plant management device, athletic plant management system and athletic plant management method
CN110325891A (en) * 2016-12-22 2019-10-11 奇跃公司 System and method for manipulating the light from environment light source
CN108386755A (en) * 2018-03-06 2018-08-10 东莞市闻誉实业有限公司 Desk lamp
CN108596972A (en) * 2018-04-28 2018-09-28 上海与德科技有限公司 A kind of light adjusting method, device, intelligent desk lamp and storage medium
CN111988895A (en) * 2019-05-21 2020-11-24 广东小天才科技有限公司 Illumination angle adjusting method and device, intelligent desk lamp and storage medium
CN111237664A (en) * 2020-01-16 2020-06-05 北京字节跳动网络技术有限公司 Control method and device of rotary table lamp and rotary table lamp
CN112469178A (en) * 2020-12-04 2021-03-09 珠海格力电器股份有限公司 Desk lamp and control method of desk lamp light source
CN214790820U (en) * 2020-12-31 2021-11-19 四川大学锦城学院 Intelligent desk lamp
CN113766707A (en) * 2021-04-30 2021-12-07 北京字节跳动网络技术有限公司 Method and device for adjusting illumination parameters of table lamp, electronic equipment and storage medium
CN113766705A (en) * 2021-04-30 2021-12-07 北京字节跳动网络技术有限公司 Method and device for adjusting illumination parameters of table lamp, electronic equipment and storage medium
CN113596333A (en) * 2021-07-30 2021-11-02 威渡科技(北京)有限公司 Desk lamp and control method, device, equipment and storage medium thereof
CN215908970U (en) * 2021-08-12 2022-02-25 科大讯飞股份有限公司 Desk lamp
CN113966051A (en) * 2021-12-23 2022-01-21 深圳市奥新科技有限公司 Intelligent control method, device and equipment for desk lamp illumination and storage medium

Similar Documents

Publication Publication Date Title
US20190312747A1 (en) Method, apparatus and system for controlling home device
CN107533422B (en) Server and method for controlling group behavior of server
CN109154858B (en) Intelligent electronic device and operation method thereof
WO2012033312A1 (en) Method of operating mobile device by recognizing user's gesture and mobile device using the method
US8717198B2 (en) Communication connecting apparatus and method for detecting mobile units in a vehicle
WO2018093060A1 (en) Electronic device and method for controlling electronic device
WO2018145447A1 (en) Terminal operation control method and apparatus, and terminal
JP2015534693A (en) Desktop display method, apparatus, terminal, program, and recording medium
KR102329761B1 (en) Electronic device for selecting external device and controlling the same and operating method thereof
CN103488134A (en) Location-based device automation
KR102561572B1 (en) Method for utilizing sensor and electronic device for the same
CN106537946A (en) Scoring beacon messages for mobile device wake-up
WO2017065569A1 (en) Method for locking and unlocking touchscreen-equipped mobile device and mobile device
KR20180104495A (en) Method and electronic apparatus for displaying information
EP3407189A1 (en) Application distribution method and device
CN103685694A (en) Prompt method and electronic equipment
WO2018074798A1 (en) Electronic device and method for controlling display in electronic device
KR20180055140A (en) Method for location movement and electronic device using the same
WO2017146482A1 (en) Electronic apparatus for providing voice recognition control and operating method therefor
EP3523717A1 (en) Method for controlling execution of application on electronic device using touchscreen and electronic device for the same
US20150128120A1 (en) Method for providing auto-run service and electronic device thereof
WO2018131852A1 (en) Electronic device for performing video call and computer-readable recording medium
CN112839107B (en) Push content determination method, device, equipment and computer-readable storage medium
CN105608095B (en) Multimedia playing method and device and mobile terminal
KR20150017899A (en) Mobile terminal and control method thereof

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