CN112187995A - Illumination compensation method, illumination compensation device, and storage medium - Google Patents

Illumination compensation method, illumination compensation device, and storage medium Download PDF

Info

Publication number
CN112187995A
CN112187995A CN202010887557.7A CN202010887557A CN112187995A CN 112187995 A CN112187995 A CN 112187995A CN 202010887557 A CN202010887557 A CN 202010887557A CN 112187995 A CN112187995 A CN 112187995A
Authority
CN
China
Prior art keywords
terminal
light intensity
current
preset
scene
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
CN202010887557.7A
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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010887557.7A priority Critical patent/CN112187995A/en
Publication of CN112187995A publication Critical patent/CN112187995A/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/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • 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

Abstract

The present disclosure relates to an illumination compensation method, an illumination compensation apparatus, and a storage medium. The illumination compensation method is applied to the terminal and comprises the following steps: acquiring the light intensity of the current environment of the terminal, and acquiring the state parameter of the terminal when the light intensity is determined to be smaller than a preset light intensity threshold; and if the current scene of the terminal is determined to accord with the preset scene based on the state parameters, performing light compensation on the terminal. Through the method and the device, the illumination requirement of a user in a dark environment can be met. The light intensity of the environment where the terminal is located is judged to be expected in sequence, and the terminal is judged to be located based on the state parameters of the terminal, after the scene where the terminal is located is judged to be in accordance with the preset scene, the terminal automatically carries out light compensation, the user does not need to manually search and open the application with the illumination function, the time of operating the terminal by the user is saved, and the use experience of the user on the terminal is improved.

Description

Illumination compensation method, illumination compensation device, and storage medium
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to an illumination compensation method, an illumination compensation apparatus, and a storage medium.
Background
At present, a light sensor is arranged on the screen side of a terminal or other equipment and used for detecting the light intensity of the environment. The terminal automatically adjusts the screen brightness according to the ambient light intensity detected by the light sensor. For example, the light intensity of the environment detected by the light sensor is low, and the terminal adjusts the screen brightness of the terminal to be low according to the dark environment detected by the light sensor.
However, in practical applications, it often happens that in a dark environment, the user needs to supplement the lighting. In a dark environment, when a user needs to supplement illumination, the user needs to find an application with an illumination function in the terminal and manually open the application with the illumination function to realize illumination compensation.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an illumination compensation method, an illumination compensation apparatus, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an illumination compensation method, where the illumination compensation method is applied to a terminal, the illumination compensation method includes: acquiring the light intensity of the current environment of the terminal, and acquiring the state parameter of the terminal when the light intensity is determined to be smaller than a preset light intensity threshold; and if the current scene of the terminal is determined to accord with the preset scene based on the state parameters, performing light compensation on the terminal.
In one example, the terminal includes a front light sensor and a rear light sensor; the acquiring the light intensity of the current environment of the terminal includes: acquiring a first light intensity of the current environment of the terminal acquired by a front light sensor and a second light intensity acquired by a rear light sensor; the determining that the light intensity is less than the preset light intensity threshold value includes: and comparing the first light intensity and the second light intensity with the light intensity threshold respectively, and determining that the current ambient light intensity is smaller than a preset light intensity threshold when the first light intensity and the second light intensity are both smaller than the light intensity threshold.
In an example, the installing, by the terminal, an inertial measurement unit IMU, and the acquiring current state parameters of the terminal include: acquiring current attitude data of the terminal on a three-dimensional coordinate plane based on the IMU; preprocessing the current attitude data of the terminal on a three-dimensional coordinate plane to obtain the current inclination angle of the terminal relative to the ground; the determining that the current scene of the terminal meets the preset scene state parameters based on the state parameters includes: and if the terminal is in a motion state and the current inclination angle of the terminal relative to the ground is within a preset angle range, determining that the current scene of the terminal accords with preset scene state parameters.
In one example, the terminal is installed with a barometer, and the acquiring the current state parameter of the terminal includes: acquiring a current air pressure value displayed by the barometer, and determining the air pressure variation between the current air pressure value and the last displayed air pressure value; the determining that the current scene of the terminal meets the preset scene state parameters based on the state parameters includes: and if the air pressure variation is larger than or equal to a preset air pressure threshold, determining that the current scene of the terminal accords with preset scene state parameters.
In one example, the light compensation method further includes: when the current state parameters of the terminal accord with a preset scene, reporting the current state parameters of the terminal to a designated application with an illumination function; the performing light compensation on the terminal includes: and performing light compensation for the terminal through the specified application.
According to a second aspect of the embodiments of the present disclosure, there is provided an illumination compensation apparatus applied to a terminal, the illumination compensation apparatus including: the acquisition unit is configured to acquire the light intensity of the current environment where the terminal is located; the terminal comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is configured to acquire a state parameter of the terminal when the light intensity is determined to be smaller than a preset light intensity threshold; and the processing unit is configured to perform light compensation on the terminal if the current scene of the terminal is determined to accord with a preset scene based on the state parameters.
In one example, the terminal includes a front light sensor and a rear light sensor; the obtaining unit obtains the light intensity of the current environment of the terminal in the following mode: acquiring a first light intensity of the current environment of the terminal acquired by a front light sensor and a second light intensity acquired by a rear light sensor; the determining unit determines that the light intensity is smaller than a preset light intensity threshold value in the following way: and comparing the first light intensity and the second light intensity with the light intensity threshold respectively, and determining that the current ambient light intensity is smaller than a preset light intensity threshold when the first light intensity and the second light intensity are both smaller than the light intensity threshold.
In an example, the terminal is provided with an inertial measurement unit IMU, and the obtaining unit obtains the current state parameter of the terminal in the following manner: acquiring current attitude data of the terminal on a three-dimensional coordinate plane based on the IMU; preprocessing the current attitude data of the terminal on a three-dimensional coordinate plane to obtain the current inclination angle of the terminal relative to the ground; the determining unit determines that the current scene of the terminal accords with the preset scene state parameter based on the state parameter in the following way: and if the terminal is in a motion state and the current inclination angle of the terminal relative to the ground is within a preset angle range, determining that the current scene of the terminal accords with preset scene state parameters.
In one example, the terminal is provided with a barometer, and the obtaining unit obtains the current state parameter of the terminal as follows: acquiring a current air pressure value displayed by the barometer, and determining the air pressure variation between the current air pressure value and the last displayed air pressure value; the determining unit determines that the current scene of the terminal accords with the preset scene state parameter based on the state parameter in the following way: and if the air pressure variation is larger than or equal to a preset air pressure threshold, determining that the current scene of the terminal accords with preset scene state parameters.
In an example, the processing unit is further configured to: when the current state parameters of the terminal accord with a preset scene, reporting the current state parameters of the terminal to a designated application with an illumination function; the processing unit performs light compensation on the terminal in the following way: and performing light compensation for the terminal through the specified application.
According to a third aspect of the present disclosure, there is provided an illumination compensation apparatus comprising: a memory configured to store instructions. And a processor configured to invoke instructions to perform the illumination compensation method in the foregoing first aspect or any example of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a processor, perform the illumination compensation method of the aforementioned first aspect or any one of the examples of the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps of obtaining the light intensity of the current environment of the terminal, obtaining the state parameters of the terminal when the light intensity is determined to be smaller than a preset light intensity threshold value, and automatically performing light compensation on the terminal if the current scene of the terminal is determined to be in accordance with a preset scene based on the state parameters, so that the illumination requirement of a user in a dark environment is facilitated. The light intensity of the environment where the terminal is located is judged to be expected in sequence, and the terminal is judged to be located based on the state parameters of the terminal, after the scene where the terminal is located is judged to be in accordance with the preset scene, the terminal automatically carries out light compensation, the user does not need to manually search and open the application with the illumination function, the time of operating the terminal by the user is saved, and the use experience of the user on the terminal is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of illumination compensation according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating a method of illumination compensation according to an exemplary embodiment.
FIG. 3 is a flow chart illustrating a method of illumination compensation according to an exemplary embodiment.
FIG. 4 is a flow chart illustrating a method of illumination compensation according to an exemplary embodiment.
Fig. 5 is a diagram illustrating a method for determining that a scene in which a terminal is currently located conforms to a preset scene based on state parameters and performing light compensation on the terminal according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating an illumination compensation apparatus according to an exemplary embodiment.
FIG. 7 is a block diagram illustrating an apparatus for illumination compensation according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The technical scheme of the exemplary embodiment of the present disclosure can be applied to an application scene for acquiring and detecting the screen brightness of a terminal. In the exemplary embodiments described below, a terminal is sometimes also referred to as an intelligent terminal device, where the terminal may be a Mobile terminal, and may also be referred to as a User Equipment (UE), a Mobile Station (MS), and the like. A terminal is a device that provides voice and/or data connection to a user, or a chip disposed in the device, such as a handheld device, a vehicle-mounted device, etc. having a wireless connection function. Examples of terminals may include, for example: the Mobile terminal comprises a Mobile phone, a tablet computer, a notebook computer, a palm computer, Mobile Internet Devices (MID), a wearable device, a Virtual Reality (VR) device, an Augmented Reality (AR) device, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in remote operation, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home and the like.
At present, a light sensor is arranged on the screen side of a terminal or other equipment and used for detecting the light intensity of the environment. The terminal automatically adjusts the screen brightness according to the ambient light intensity detected by the light sensor. For example, the light intensity of the environment detected by the light sensor is low, and the terminal adjusts the screen brightness of the terminal to be low according to the dark environment detected by the light sensor.
However, in practical applications, it often happens that in a dark environment, the user needs to supplement the lighting. In a dark environment, when a user needs to supplement illumination, the user needs to find an application with an illumination function in the terminal and manually open the application with the illumination function to realize illumination compensation.
In a dark environment, the user manually searches for the application with the illumination function in the terminal and then manually opens the application with the illumination function, so that on one hand, time is consumed, and on the other hand, if the user cannot find and open the application with the illumination function in time, safety risks exist.
The embodiment of the disclosure provides an illumination compensation method. According to the illumination compensation method, the light intensity of the current environment of the terminal is obtained, the state parameter of the terminal is obtained when the light intensity is determined to be smaller than the preset light intensity threshold value, and if the current scene of the terminal is determined to accord with the preset scene based on the state parameter, the light compensation can be automatically carried out on the terminal, so that the illumination requirement of a user in a dark environment is facilitated. The light intensity of the environment where the terminal is located is judged to be expected in sequence, and the terminal is judged to be located based on the state parameters of the terminal, after the scene where the terminal is located is judged to be in accordance with the preset scene, the terminal automatically carries out light compensation, the user does not need to manually search and open the application with the illumination function, the time of operating the terminal by the user is saved, and the use experience of the user on the terminal is improved.
Fig. 1 is a flowchart illustrating an illumination compensation method according to an exemplary embodiment, where the illumination compensation method is used in a terminal, as shown in fig. 1, and includes the following steps.
In step S11, the light intensity of the current environment of the terminal is obtained, and when it is determined that the light intensity is less than the preset light intensity threshold, the state parameter of the terminal is obtained.
According to the method and the device, the light intensity of the current environment of the terminal can be acquired through the light sensor installed in the terminal, the acquired light intensity of the current environment of the terminal is compared with the preset light intensity threshold value, and when the light intensity of the current environment of the terminal is determined to be smaller than the preset light intensity threshold value, the current light intensity of the terminal can be determined to meet the expectation. And further acquiring the state parameters of the terminal according to the condition that the light intensity of the current environment of the terminal is smaller than a preset light intensity threshold value.
Among them, the light sensors installed in the terminal may include a front light sensor and a rear light sensor. The light intensity of the current environment of the terminal is obtained, which may be a first light intensity of the current environment of the terminal collected by a front light sensor and a second light intensity of the current environment of the terminal collected by a rear light sensor. For convenience of description, the light intensity of the current environment of the terminal, collected by the front light sensor, is referred to as a first light intensity, and the light intensity of the current environment of the terminal, collected by the rear light sensor, is referred to as a second light intensity.
Determining that the light intensity is less than the preset light intensity threshold may be determined, for example, by:
and comparing the first light intensity and the second light intensity with the light intensity threshold respectively, and determining that the current ambient light intensity is smaller than a preset light intensity threshold when the first light intensity and the second light intensity are both smaller than the light intensity threshold.
And after the first light intensity and the second light intensity are both smaller than the light intensity threshold, state parameters representing the current state of the terminal can be obtained. The state parameters may include, for example, the state of motion of the terminal and the angle of inclination of the terminal relative to the ground. The motion state of the terminal and the inclination angle of the terminal relative to the ground may be based on an Inertial Measurement Unit (IMU) including an acceleration sensor and a gyroscope, and based on the IMU, after acquiring the attitude data of the terminal in the three-dimensional coordinate plane, it may be known whether the terminal is in the motion state, and the inclination angle of the terminal relative to the ground may be obtained by preprocessing the attitude data of the terminal in the three-dimensional coordinate plane.
For example, the terminal may have one side of the terminal screen as an X-axis and the other side of the terminal screen as a Y-axis in a three-dimensional coordinate plane, and a direction perpendicular to the terminal screen as a Z-axis in the three-dimensional coordinate plane. After the IMU acquires the current attitude data of the terminal on the three-dimensional coordinate plane, the terminal is determined to be in a motion state at present, and the inclination angle of the current terminal and the ground can be obtained to be 40 degrees according to the fixed relation between the accelerometer sensor coordinate system and the terminal position coordinate system.
In step S12, if it is determined that the current scene of the terminal matches the preset scene based on the state parameters, light compensation is performed on the terminal.
In this disclosure, the preset scene may be a dark environment in which the current environment representing the terminal is weak in light and needs to be illuminated in the dark environment. In a real-time mode, the preset scene may be a dark environment where the light intensity of the current environment of the terminal is lower than a preset light intensity threshold value and the characteristic light is weak, the terminal is in motion, and the inclination angle of the terminal relative to the ground is greater than or equal to 20 degrees and less than or equal to 90 degrees.
In a real-time mode, for example, the light intensity of the current environment of the terminal is obtained through a light sensor installed in the terminal, the obtained light intensity of the current environment of the terminal is compared with a preset light intensity threshold value, the light intensity of the current environment of the terminal is determined to be in accordance with a dark environment, the terminal obtained through an IMU is in motion, the inclination angle of the terminal relative to the ground is 40 degrees, and then a scene in which the terminal is currently located is determined to be in accordance with a preset scene based on a state parameter that the inclination angle of the terminal relative to the ground is 40 degrees.
In order to improve the user experience of the terminal, in one embodiment, when it is determined that the current scene of the terminal conforms to the preset scene, the terminal may be automatically subjected to light compensation based on the state parameters of the terminal.
In an exemplary embodiment of the disclosure, the light intensity of the current environment of the terminal is obtained, the state parameter of the terminal is obtained when the light intensity is determined to be smaller than a preset light intensity threshold, and if it is determined that the current scene of the terminal meets a preset scene based on the state parameter, light compensation can be automatically performed on the terminal, so that the illumination requirement of a user in a dark environment is facilitated. The light intensity of the environment where the terminal is located is judged to be expected in sequence, and the terminal is judged to be located based on the state parameters of the terminal, after the scene where the terminal is located is judged to be in accordance with the preset scene, the terminal automatically carries out light compensation, the user does not need to manually search and open the application with the illumination function, the time of operating the terminal by the user is saved, and the use experience of the user on the terminal is improved.
Fig. 2 is a flowchart illustrating an illumination compensation method according to an exemplary embodiment, where the illumination compensation method is used in a terminal, as shown in fig. 2, and includes the following steps.
In step S21, the light intensity of the current environment of the terminal is obtained, and when it is determined that the light intensity is smaller than the preset light intensity threshold, a status parameter of the terminal is obtained, where the status parameter includes an air pressure value variation of the terminal.
In order to prevent an error in the acquired terminal state parameters based on the IMU and ensure that the state of the terminal is accurate, in the disclosure, after a first light intensity of the current environment of the terminal acquired by a front light sensor and a second light intensity acquired by a rear light sensor are acquired, and both the first light intensity and the second light intensity are smaller than a light intensity threshold, an inclination angle of the terminal relative to the ground determined based on the IMU is acquired, and when it is determined that the current scene of the terminal conforms to a preset scene based on the inclination angle of the terminal relative to the ground determined based on the IMU, a state parameter of another terminal, that is, an air pressure value variation of the terminal, can be acquired based on an air pressure gauge installed in the terminal.
For example, the air pressure value change amount may be obtained by obtaining a current air pressure value displayed by the barometer and determining an air pressure change amount between the current air pressure value and an air pressure value displayed last time.
In step S22, if it is determined that the current scene of the terminal matches the preset scene based on the state parameters, light compensation is performed on the terminal.
In one embodiment, if the terminal is in motion, the current inclination angle of the terminal relative to the ground is within a preset angle range, and if the air pressure variation is greater than or equal to a preset air pressure threshold, it is determined that the current scene where the terminal is located conforms to the state parameters of the preset scene. And then through the terminal motion state based on IMU confirms, the inclination of terminal relative ground to and the atmospheric pressure value variable quantity of confirming through the barometer, can ensure that the state parameter of terminal is accurate, based on accurate state parameter, can accurately confirm whether the scene that the terminal is currently located accords with the preset scene, and then the scene that the terminal is currently located can carry out light compensation to the terminal when according with the preset scene.
For example, the preset scene is a scene of going upstairs or downstairs, if the terminal is in motion, the current inclination angle of the terminal relative to the ground is 40 degrees, and the air pressure variation is greater than or equal to the preset air pressure threshold value, it is determined that the terminal is currently in dark ambient light, and in the scene of going upstairs or downstairs, illumination compensation can be automatically performed on the terminal based on that the terminal is currently in dark ambient light, and in the scene of going upstairs or downstairs, the illumination requirement of a user in a dark environment is facilitated, and the use experience of the user on the terminal is improved.
In the exemplary embodiment of the disclosure, when it is determined that the light intensity is smaller than the preset light intensity threshold, the state parameter determined based on the IMU is acquired, and the state parameter including the air pressure value variation of the terminal is acquired, so that the state of the terminal can be ensured to be accurate, and further, based on the accurate state of the terminal, when the current scene of the terminal meets the preset scene, the light compensation can be timely and automatically performed on the terminal, so that the illumination requirement of a user in a dark environment is facilitated. By automatically performing light compensation on the terminal, the user does not need to manually search and open the application with the illumination function, so that the time for operating the terminal by the user can be saved, and the use experience of the user on the terminal is improved.
Fig. 3 is a flowchart illustrating an illumination compensation method according to an exemplary embodiment, where the illumination compensation method is used in a terminal, as shown in fig. 3, and includes the following steps.
In step S31, the light intensity of the current environment of the terminal is obtained, and when it is determined that the light intensity is less than the preset light intensity threshold, the state parameter of the terminal is obtained.
In step S32, if it is determined that the current scene of the terminal matches the preset scene based on the state parameters, the current state parameters of the terminal are reported to a designated application having an illumination function, and light compensation is performed on the terminal through the designated application.
A specific application with a lighting function in the present disclosure may be, for example, a flashlight of a terminal.
The following description of the illumination compensation method according to the present disclosure is made with reference to the state parameters of the terminal including the air pressure variation, the preset scene is a scene in which the ambient light intensity is lower than the preset light intensity threshold and the terminal is in an upward motion.
FIG. 4 is a flow chart illustrating a method of illumination compensation according to an exemplary embodiment. In fig. 4, when detecting the light sensing data of the terminal, the first light intensity L1 of the current environment of the terminal is mainly collected by the front light sensor installed in the terminal, the second light intensity L2 of the current environment of the terminal is collected by the rear light sensor installed in the terminal, the first light intensity L1 and the second light intensity L2 are compared with the light intensity threshold, and after determining that the first light intensity L1 and the second light intensity L2 are both smaller than the light intensity threshold, the terminal is determined to be in a dark environment. And then after the terminal is determined to be in a dark environment, the terminal is determined to be in motion based on the IMU, and after the terminal is determined to be in an inclination angle relative to the ground, the variation of the air pressure value of the terminal is obtained, wherein the variation of the air pressure is larger than a preset air pressure threshold value, so that the current scene where the terminal is located is determined to accord with the preset scene based on the state parameters. And then according to the fact that the current scene of the terminal accords with the preset scene, the illumination compensation device with the illumination function is automatically started to perform light compensation on the terminal, and the illumination requirements of a user in a dark environment are facilitated.
Fig. 5 is a diagram illustrating a method for determining that a scene in which a terminal is currently located conforms to a preset scene based on state parameters and performing light compensation on the terminal according to an exemplary embodiment.
In fig. 5, in the process that a user carries a terminal to go upstairs, a first light intensity L1 of the current environment of the terminal is acquired by the front light sensor installed in the terminal, a second light intensity L2 of the current environment of the terminal is acquired by the rear light sensor installed in the terminal, and the first light intensity L1 and the second light intensity L2 are compared with a light intensity threshold to determine that both the first light intensity L1 and the second light intensity L2 are less than the light intensity threshold. Further, after the first light intensity L1 and the second light intensity L2 are determined to be smaller than the light intensity threshold, the terminal is in motion based on the IMU, the inclination angle of the terminal relative to the ground is, for example, 30 °, the terminal air pressure value variation is obtained, and the air pressure variation is larger than the preset air pressure threshold, so that after the current scene of the terminal is determined to accord with the preset scene based on the state parameters, the state of the current scene of the terminal, which accords with the preset scene, is reported to the flashlight of the terminal, and the flashlight of the terminal is automatically turned on based on the received reported information, so as to perform light compensation on the terminal. The front light sensor after the light compensation acquires a first light intensity L1 'of the current environment of the terminal, and the rear light sensor after the light compensation acquires a second light intensity L2' of the current environment of the terminal. Therefore, the user can conveniently meet the illumination requirement of the user in a dark environment based on the terminal after light compensation.
In the exemplary embodiment of the disclosure, when it is determined that the light intensity is smaller than the preset light intensity threshold, the state parameter determined based on the IMU and the state parameter including the air pressure value variation of the terminal are obtained, so that the state of the terminal can be ensured to be accurate, and further, based on the accurate state of the terminal, when the current scene of the terminal meets the preset scene, the current state parameter of the terminal is reported to the designated application with the lighting function, and the light compensation is performed on the terminal through the designated application, so that the illumination requirement of a user in a dark environment can be met.
Based on the same conception, the embodiment of the disclosure also provides an illumination compensation device.
It is understood that the illumination compensation device provided by the embodiments of the present disclosure includes a hardware structure and/or a software module for performing the above functions. The disclosed embodiments can be implemented in hardware or a combination of hardware and computer software, in combination with the exemplary elements and algorithm steps disclosed in the disclosed embodiments. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
Fig. 6 is a block diagram illustrating an illumination compensation apparatus according to an exemplary embodiment. Referring to fig. 6, an illumination compensation apparatus 600 is applied to a terminal, and includes an acquisition unit 601, a determination unit 602, and a processing unit 603.
The obtaining unit 601 is configured to obtain the light intensity of the current environment where the terminal is located; a determining unit 602 configured to obtain a state parameter of the terminal when it is determined that the light intensity is less than a preset light intensity threshold; the processing unit 603 is configured to perform light compensation on the terminal if it is determined that the current scene of the terminal conforms to a preset scene based on the state parameter.
In one embodiment, the terminal comprises a front light sensor and a rear light sensor; the obtaining unit 601 obtains the light intensity of the current environment of the terminal in the following manner: acquiring a first light intensity of the current environment of the terminal acquired by a front light sensor and a second light intensity acquired by a rear light sensor; the determining unit 602 determines that the light intensity is smaller than the preset light intensity threshold value as follows: and comparing the first light intensity and the second light intensity with the light intensity threshold respectively, and determining that the current ambient light intensity is smaller than a preset light intensity threshold when the first light intensity and the second light intensity are both smaller than the light intensity threshold.
In an embodiment, the terminal is equipped with an inertial measurement unit IMU, and the obtaining unit 601 obtains the current state parameter of the terminal by the following method: acquiring current attitude data of the terminal on a three-dimensional coordinate plane based on the IMU; preprocessing the current attitude data of the terminal on a three-dimensional coordinate plane to obtain the current inclination angle of the terminal relative to the ground; the determining unit 602 determines, based on the state parameters, that the current scene of the terminal meets preset scene state parameters in the following manner: and if the terminal is in a motion state and the current inclination angle of the terminal relative to the ground is within a preset angle range, determining that the current scene of the terminal accords with preset scene state parameters.
In an embodiment, the terminal is equipped with a barometer, and the obtaining unit 601 obtains the current state parameter of the terminal as follows: acquiring a current air pressure value displayed by the barometer, and determining the air pressure variation between the current air pressure value and the last displayed air pressure value; the determining unit 602 determines, based on the state parameters, that the current scene of the terminal meets preset scene state parameters in the following manner: and if the air pressure variation is larger than or equal to a preset air pressure threshold, determining that the current scene of the terminal accords with preset scene state parameters.
In an embodiment, the processing unit 603 is further configured to: when the current state parameters of the terminal accord with a preset scene, reporting the current state parameters of the terminal to a designated application with an illumination function; the processing unit 603 performs light compensation on the terminal in the following manner: and performing light compensation for the terminal through the specified application.
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.
Fig. 7 is a block diagram illustrating an apparatus 700 for illumination compensation according to an example embodiment. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the apparatus 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of device 700, sensor assembly 714 may also detect a change in position of device 700 or a component of device 700, the presence or absence of user contact with device 700, orientation or acceleration/deceleration of device 700, and a change in temperature of device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the device 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It is understood that "a plurality" in this disclosure means two or more, and other words are analogous. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. The singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It will be further understood that the terms "first," "second," and the like are used to describe various information and that such information should not be limited by these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the terms "first," "second," and the like are fully interchangeable. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that, unless otherwise specified, "connected" includes direct connections between the two without the presence of other elements, as well as indirect connections between the two with the presence of other elements.
It is further to be understood that while operations are depicted in the drawings in a particular order, this is not to be understood as requiring that such operations be performed in the particular order shown or in serial order, or that all illustrated operations be performed, to achieve desirable results. In certain environments, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. An illumination compensation method, applied to a terminal, the method comprising:
acquiring the light intensity of the current environment of the terminal, and acquiring the state parameter of the terminal when the light intensity is determined to be smaller than a preset light intensity threshold;
and if the current scene of the terminal is determined to accord with the preset scene based on the state parameters, performing light compensation on the terminal.
2. The illumination compensation method of claim 1, wherein the terminal comprises a front light sensor and a rear light sensor;
the acquiring the light intensity of the current environment of the terminal includes:
acquiring a first light intensity of the current environment of the terminal acquired by a front light sensor and a second light intensity acquired by a rear light sensor;
the determining that the light intensity is less than the preset light intensity threshold value includes:
and comparing the first light intensity and the second light intensity with the light intensity threshold respectively, and determining that the current ambient light intensity is smaller than a preset light intensity threshold when the first light intensity and the second light intensity are both smaller than the light intensity threshold.
3. The illumination compensation method according to claim 1, wherein the terminal is equipped with an inertial measurement unit IMU, and the obtaining of the current state parameter of the terminal comprises:
acquiring current attitude data of the terminal on a three-dimensional coordinate plane based on the IMU;
preprocessing the current attitude data of the terminal on a three-dimensional coordinate plane to obtain the current inclination angle of the terminal relative to the ground;
the determining that the current scene of the terminal meets the preset scene state parameters based on the state parameters includes:
and if the terminal is in a motion state and the current inclination angle of the terminal relative to the ground is within a preset angle range, determining that the current scene of the terminal accords with preset scene state parameters.
4. The illumination compensation method according to claim 3, wherein the terminal is equipped with a barometer, and the obtaining the current state parameter of the terminal comprises:
acquiring a current air pressure value displayed by the barometer, and determining the air pressure variation between the current air pressure value and the last displayed air pressure value;
the determining that the current scene of the terminal meets the preset scene state parameters based on the state parameters includes:
and if the air pressure variation is larger than or equal to a preset air pressure threshold, determining that the current scene of the terminal accords with preset scene state parameters.
5. The illumination compensation method of claim 1, further comprising:
when the current state parameters of the terminal accord with a preset scene, reporting the current state parameters of the terminal to a designated application with an illumination function;
the performing light compensation on the terminal includes:
and performing light compensation for the terminal through the specified application.
6. An illumination compensation device applied to a terminal, the device comprising:
the acquisition unit is configured to acquire the light intensity of the current environment where the terminal is located;
the terminal comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is configured to acquire a state parameter of the terminal when the light intensity is determined to be smaller than a preset light intensity threshold;
and the processing unit is configured to perform light compensation on the terminal if the current scene of the terminal is determined to accord with a preset scene based on the state parameters.
7. The illumination compensation apparatus of claim 6, wherein the terminal comprises a front light sensor and a rear light sensor;
the obtaining unit obtains the light intensity of the current environment of the terminal in the following mode:
acquiring a first light intensity of the current environment of the terminal acquired by a front light sensor and a second light intensity acquired by a rear light sensor;
the determining unit determines that the light intensity is smaller than a preset light intensity threshold value in the following way:
and comparing the first light intensity and the second light intensity with the light intensity threshold respectively, and determining that the current ambient light intensity is smaller than a preset light intensity threshold when the first light intensity and the second light intensity are both smaller than the light intensity threshold.
8. The illumination compensation device according to claim 6, wherein the terminal is equipped with an inertial measurement unit IMU, and the obtaining unit obtains the current state parameter of the terminal by:
acquiring current attitude data of the terminal on a three-dimensional coordinate plane based on the IMU;
preprocessing the current attitude data of the terminal on a three-dimensional coordinate plane to obtain the current inclination angle of the terminal relative to the ground;
the determining unit determines that the current scene of the terminal accords with the preset scene state parameter based on the state parameter in the following way:
and if the terminal is in a motion state and the current inclination angle of the terminal relative to the ground is within a preset angle range, determining that the current scene of the terminal accords with preset scene state parameters.
9. The illumination compensation device according to claim 8, wherein the terminal is equipped with a barometer, and the obtaining unit obtains the current state parameter of the terminal by:
acquiring a current air pressure value displayed by the barometer, and determining the air pressure variation between the current air pressure value and the last displayed air pressure value;
the determining unit determines that the current scene of the terminal accords with the preset scene state parameter based on the state parameter in the following way:
and if the air pressure variation is larger than or equal to a preset air pressure threshold, determining that the current scene of the terminal accords with preset scene state parameters.
10. The illumination compensation apparatus of claim 6, wherein the processing unit is further configured to:
when the current state parameters of the terminal accord with a preset scene, reporting the current state parameters of the terminal to a designated application with an illumination function;
the processing unit performs light compensation on the terminal in the following way:
and performing light compensation for the terminal through the specified application.
11. An illumination compensation apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: performing the illumination compensation method of any one of claims 1-5.
12. A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the illumination compensation method of any of claims 1-5.
CN202010887557.7A 2020-08-28 2020-08-28 Illumination compensation method, illumination compensation device, and storage medium Pending CN112187995A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010887557.7A CN112187995A (en) 2020-08-28 2020-08-28 Illumination compensation method, illumination compensation device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010887557.7A CN112187995A (en) 2020-08-28 2020-08-28 Illumination compensation method, illumination compensation device, and storage medium

Publications (1)

Publication Number Publication Date
CN112187995A true CN112187995A (en) 2021-01-05

Family

ID=73924530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010887557.7A Pending CN112187995A (en) 2020-08-28 2020-08-28 Illumination compensation method, illumination compensation device, and storage medium

Country Status (1)

Country Link
CN (1) CN112187995A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708061A (en) * 2022-09-30 2023-09-05 荣耀终端有限公司 Device management method and system
CN117672110A (en) * 2023-12-15 2024-03-08 广东省欧度利方科技有限公司 Display control system and method for tablet personal computer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265707A (en) * 2011-04-29 2011-11-30 华为终端有限公司 Method for controlling light-emitting device in terminal equipment, apparatus thereof and terminal equipment
CN106790889A (en) * 2016-12-21 2017-05-31 深圳市金立通信设备有限公司 The method and terminal of a kind of illumination
CN107218938A (en) * 2017-05-22 2017-09-29 南京航空航天大学 The Wearable pedestrian navigation localization method and equipment aided in based on modelling of human body motion
CN109922203A (en) * 2017-12-11 2019-06-21 北京小米移动软件有限公司 Terminal puts out screen method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265707A (en) * 2011-04-29 2011-11-30 华为终端有限公司 Method for controlling light-emitting device in terminal equipment, apparatus thereof and terminal equipment
CN106790889A (en) * 2016-12-21 2017-05-31 深圳市金立通信设备有限公司 The method and terminal of a kind of illumination
CN107218938A (en) * 2017-05-22 2017-09-29 南京航空航天大学 The Wearable pedestrian navigation localization method and equipment aided in based on modelling of human body motion
CN109922203A (en) * 2017-12-11 2019-06-21 北京小米移动软件有限公司 Terminal puts out screen method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708061A (en) * 2022-09-30 2023-09-05 荣耀终端有限公司 Device management method and system
CN117672110A (en) * 2023-12-15 2024-03-08 广东省欧度利方科技有限公司 Display control system and method for tablet personal computer

Similar Documents

Publication Publication Date Title
EP3220615B1 (en) Method and device for setting brightness of screen
EP3179711B1 (en) Method and apparatus for preventing photograph from being shielded
EP3096184B1 (en) Method and device for controlling flash light and terminal
KR101712301B1 (en) Method and device for shooting a picture
US10134269B2 (en) Control switching method and control terminal, and storage medium
US9491371B2 (en) Method and device for configuring photographing parameters
US20210158560A1 (en) Method and device for obtaining localization information and storage medium
CN112202962B (en) Screen brightness adjusting method and device and storage medium
EP3496391A1 (en) Method and device for capturing image and storage medium
US20180031370A1 (en) Mobile computing device and method for calculating a bending angle
EP3901732A1 (en) Method and device for detecting ambient light, electronic device, and storage medium
CN112068760A (en) Terminal, display method, display device, and storage medium
CN111243554B (en) Screen brightness adjusting method, screen brightness adjusting device and storage medium
CN112187995A (en) Illumination compensation method, illumination compensation device, and storage medium
EP3629318B1 (en) Method and apparatus for compensating operating parameter of display circuit
CN111127541B (en) Method and device for determining vehicle size and storage medium
CN111753606A (en) Intelligent model upgrading method and device
EP3872804A1 (en) Brightness adjustment method and device, mobile terminal and storage medium
US11062640B2 (en) Screen display method and screen display device
CN111179628B (en) Positioning method and device for automatic driving vehicle, electronic equipment and storage medium
CN112148149A (en) Touch screen control method, touch screen control device and storage medium
CN111538543B (en) Lost article searching method, lost article searching device and storage medium
CN108647594B (en) Information processing method and device
CN111651114A (en) Screen control method and device and storage medium
US20220269464A1 (en) Method for acquiring sensor data, terminal, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210105

RJ01 Rejection of invention patent application after publication