CN108550353B - Brightness adjusting method and related product - Google Patents

Brightness adjusting method and related product Download PDF

Info

Publication number
CN108550353B
CN108550353B CN201810362485.7A CN201810362485A CN108550353B CN 108550353 B CN108550353 B CN 108550353B CN 201810362485 A CN201810362485 A CN 201810362485A CN 108550353 B CN108550353 B CN 108550353B
Authority
CN
China
Prior art keywords
brightness value
brightness
screen
preset
adjusting
Prior art date
Application number
CN201810362485.7A
Other languages
Chinese (zh)
Other versions
CN108550353A (en
Inventor
郭凌
冷文华
杨海
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to CN201810362485.7A priority Critical patent/CN108550353B/en
Publication of CN108550353A publication Critical patent/CN108550353A/en
Application granted granted Critical
Publication of CN108550353B publication Critical patent/CN108550353B/en

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness

Abstract

The embodiment of the application discloses a brightness adjusting method and a related product, wherein the method comprises the following steps: when the electronic equipment is in a manual brightness adjusting mode and bright screen operation is detected, a first environment brightness value is detected through the light sensation sensor, the manual brightness adjusting mode corresponds to a preset screen brightness value, a second environment brightness value corresponding to the preset screen brightness value is obtained, if the difference value between the second environment brightness value and the first environment brightness value is not in a preset range, the manual brightness adjusting mode is switched to an automatic brightness adjusting mode, and screen brightness is adjusted according to the first environment brightness value.

Description

Brightness adjusting method and related product

Technical Field

The application relates to the technical field of display control, in particular to a brightness adjusting method and a related product.

Background

With the widespread use of electronic devices (such as mobile phones, tablet computers, etc.), the electronic devices have more and more applications and more powerful functions, and the electronic devices are developed towards diversification and personalization, and become indispensable electronic products in the life of users.

The manual brightness adjustment mode is a commonly used screen brightness adjustment mode, in which the electronic device usually performs brightness display according to a fixed screen brightness value manually set by a user, but when the manual adjustment of the screen brightness by the user is hindered, the manual brightness adjustment mode is not flexible enough, and therefore, the problem of how to improve the intelligence of the screen brightness adjustment needs to be solved urgently.

Disclosure of Invention

The embodiment of the application provides a brightness adjusting method and a related product, which can realize flexible switching of screen brightness adjusting modes and improve the intelligence of screen brightness adjustment.

In a first aspect, an embodiment of the present application provides a brightness adjustment method, which is applied to an electronic device including a light-sensing sensor, and the method includes:

when the electronic equipment is in a manual brightness adjusting mode and bright screen operation is detected, detecting a first ambient light brightness value through the light sensation sensor, wherein the manual brightness adjusting mode corresponds to a preset screen brightness value;

acquiring a second ambient light brightness value corresponding to the preset screen brightness value;

and if the difference value between the second environment light brightness value and the first environment light brightness value is not in a preset range, switching the manual brightness adjusting mode to an automatic brightness adjusting mode, and adjusting the screen brightness according to the first environment light brightness value.

In a second aspect, an embodiment of the present application provides a brightness adjusting apparatus applied to an electronic device, where the brightness adjusting apparatus includes:

the first detection unit is used for detecting a first ambient light brightness value through the light sensation sensor when the electronic equipment is in a manual brightness adjustment mode and bright screen operation is detected, wherein the manual brightness adjustment mode corresponds to a preset screen brightness value;

the determining unit is used for acquiring a second ambient light brightness value corresponding to the preset screen brightness value;

and the first adjusting unit is used for switching the manual brightness adjusting mode to an automatic brightness adjusting mode when the difference value between the second environment light brightness value and the first environment light brightness value is not in a preset range, and adjusting the screen brightness according to the first environment light brightness value.

In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for some or all of the steps as described in the first aspect of an embodiment of the present application.

In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, where the computer program is used to make a computer execute some or all of the steps described in the first aspect of the present application.

In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.

The embodiment of the application has the following beneficial effects:

it can be seen that the brightness adjusting method and the related product described in the embodiments of the present application are applied to an electronic device, and when the electronic device is in a manual brightness adjusting mode and detects a bright screen operation, a first ambient brightness value is detected by a light sensor, the manual brightness adjusting mode corresponds to a preset screen brightness value, and a second ambient brightness value corresponding to the preset screen brightness value is obtained, and if a difference between the second ambient brightness value and the first ambient brightness value is not within a preset range, the manual brightness adjusting mode is switched to an automatic brightness adjusting mode, and the screen brightness is adjusted according to the first ambient brightness value, so that flexible switching of the screen brightness adjusting mode can be realized, and the screen brightness adjustment is more intelligent.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;

fig. 1B is a schematic flowchart of a brightness adjustment method according to an embodiment of the present application;

fig. 2 is a schematic flowchart of another brightness adjustment method provided in the embodiment of the present application;

fig. 3 is a schematic flowchart of another brightness adjustment method provided in the embodiment of the present application;

fig. 4 is a schematic structural diagram of another electronic device provided in an embodiment of the present application;

fig. 5A is a schematic structural diagram of a brightness adjustment device according to an embodiment of the present application;

fig. 5B is a schematic structural diagram of a modified structure of the brightness adjustment device depicted in fig. 5A according to an embodiment of the present invention;

fig. 5C is a schematic structural diagram of a second detecting unit of the brightness adjusting apparatus depicted in fig. 5B according to an embodiment of the present invention;

fig. 5D is a schematic structural diagram of a modified structure of the brightness adjustment device depicted in fig. 5B according to an embodiment of the present invention;

fig. 6 is another schematic structural diagram of an electronic device provided in an embodiment of the present application.

Detailed Description

In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.

Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.

The electronic devices involved in the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal), and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.

The following describes embodiments of the present application in detail.

Referring to fig. 1A, fig. 1A is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure, where the electronic device 100 includes: the light sensor comprises a shell 110, a circuit board 120 arranged in the shell 110, a light sensor 130 and a screen 140 arranged on the shell 110, wherein a processor 121 is arranged on the circuit board 120, the light sensor 130 is connected with the processor 121, and the processor 121 is connected with the screen 140.

The light sensor 130 is a light sensing device for detecting an ambient light brightness value of an environment where the electronic device is located, and is capable of converting ambient light brightness into an electrical signal and then converting the electrical signal into a corresponding ambient light brightness value. The screen 140 may be used to show a screen brightness adjustment interface including a progress bar of screen brightness, and in the manual brightness adjustment mode, a user may drag the progress bar to manually set a screen brightness value.

Referring to fig. 1B, fig. 1B is a schematic flow chart of a brightness adjustment method according to an embodiment of the present disclosure, where the brightness adjustment method described in the present embodiment is applied to the electronic device shown in fig. 1A, and the brightness adjustment method includes:

101. when the electronic equipment is in a manual brightness adjusting mode and bright screen operation is detected, a first ambient light brightness value is detected through a light sensation sensor, and the manual brightness adjusting mode corresponds to a preset screen brightness value.

In this application embodiment, electronic equipment can awaken the light sense sensor when detecting the bright screen operation, detects first environment light brightness value through the light sense sensor, and from turning off the screen state to bright screen state, the determinable user wants to watch the screen, just then awaken the light sense sensor and detect first environment light brightness value to reduce the electric quantity that consumes because of the light sense sensor lasts work.

The first environment light brightness value of the environment where the electronic device is located can be detected when the user moves from a darker environment to a brighter environment or moves from the brighter environment to the darker environment through the light sensation sensor in a preset time period, wherein the preset time period can be set by a system default or the user sets the time period by himself.

Alternatively, the electronic device may detect whether the user is watching the screen through the camera, and may detect the first ambient light brightness value through the light-sensing sensor when detecting that the user is watching the screen.

The preset screen brightness value is set by a user in a manual brightness adjustment mode, and the first time when the user sets the preset screen brightness value is earlier than the second time when the electronic equipment detects the first ambient light brightness.

102. And acquiring a second ambient light brightness value corresponding to the preset screen brightness value.

In the embodiment of the application, the second ambient light brightness value corresponding to the preset screen brightness value is obtained, the second ambient light brightness value of the first time can be detected by the light sensor at the first time when the user manually sets the preset screen brightness value, specifically, the second ambient light brightness value is detected at the first time and stored in the memory, and the second ambient light brightness value is retrieved from the memory after the first ambient light brightness value is detected at the second time. Alternatively, considering that in the implementation process, when the light sensor is blocked, the result detected by the light sensor may not match the actual ambient light brightness value, and therefore, a plurality of ambient light brightness values in a specified time period may be collected, and the maximum value of the plurality of ambient light brightness values may be used as the second ambient light brightness value, for example, within 3s after the preset screen brightness value is manually set, 3 ambient light brightness values may be collected, and the maximum value of the 3 ambient light brightness values may be used as the second ambient light brightness value.

103. And if the difference value between the second environment light brightness value and the first environment light brightness value is not in a preset range, switching the manual brightness adjusting mode to an automatic brightness adjusting mode, and adjusting the screen brightness according to the first environment light brightness value.

In the embodiment of the application, whether the environment where the electronic device is located changes can be judged according to the second environment luminance value and the first environment luminance value, and when the difference value between the second environment luminance value and the first environment luminance value is within a preset range, it can be determined that the change of the environment luminance value of the electronic device is not obvious, the screen luminance is not required to be adjusted, and the process is terminated; when the difference value between the second ambient light brightness value and the first ambient light brightness value is not in a preset range, it indicates that the screen brightness of the electronic device needs to be adjusted, at this time, the manual brightness adjustment mode may be switched to the automatic brightness adjustment mode, so that the screen brightness may be flexibly adjusted under the condition that it is difficult for a user to manually adjust the brightness, where the preset range may be (-100lux, 100lux), for example.

Optionally, in the step 103, adjusting the screen brightness according to the first ambient light brightness value may specifically include the following steps:

31. acquiring a plurality of historical adjustment records of the manual brightness adjustment mode, wherein each historical adjustment record in the plurality of historical adjustment records comprises a corresponding relation between an ambient light brightness value and a manual adjustment screen brightness value;

32. fitting according to the plurality of historical adjustment records to obtain a fitting function, wherein the fitting function is a corresponding relation between the ambient light brightness value and the manual adjustment screen brightness value;

33. and determining a target screen brightness value according to the first ambient light brightness value and the fitting function, and adjusting the screen brightness to the target screen brightness value.

In the embodiment of the application, the electronic device performs fitting according to the corresponding relationship between the ambient light brightness value and the manual adjustment screen brightness value in the multiple historical adjustment records to obtain a fitting function reflecting the corresponding relationship between the ambient light brightness value and the manual adjustment screen brightness value, wherein the ambient light brightness value is an independent variable of the fitting function, the screen brightness value is a dependent variable, the first ambient light brightness value is brought into the fitting function to obtain a corresponding target screen brightness value, and the historical adjustment records reflect the visual perception of human eyes of a user, so that the obtained fitting function better meets the brightness adjustment requirement of the user, and the obtained target screen brightness value meets the visual perception of the user.

Alternatively, in a specific implementation, considering that the user's requirement for the screen brightness is influenced by the user's eye fatigue degree under the same ambient light brightness value, for example, when the ambient light brightness value is 800lux, the user's eye is not tired, the first screen brightness value is set to 467nits, the user's eye is tired, and the second screen brightness value is set to 430nits, so that the user's eye fatigue degree can be detected and the fatigue degree level belonging to the fatigue degree can be determined each time the user manually adjusts the screen brightness, the fatigue degree level is recorded in the corresponding history adjustment record, and data of three dimensions including the fatigue degree, the screen brightness value and the ambient light brightness value in each history adjustment record can be constructed, further, a plurality of fitting functions of the user under different fatigue degree levels can be constructed, each fatigue degree level corresponds to one fitting function, when the screen brightness is adjusted according to the first ambient light brightness value, the current fatigue level of the user can be determined, then the target fitting function corresponding to the fatigue level is determined, and then the target screen brightness value is determined according to the target fitting function.

Optionally, when the screen brightness is adjusted to the target screen brightness value, an absolute value of a difference between a preset screen brightness value and the target screen brightness value may be obtained, a target adjustment number corresponding to the absolute value may be determined according to a corresponding relationship between the preset absolute value and the adjustment number, and multiple adjustments may be performed according to the target adjustment number, specifically, when the absolute value is larger, the corresponding adjustment number may be set to be larger, and when the absolute value is smaller, the corresponding adjustment number may be set to be smaller, so that, when the electronic device performs adjustment each time, a user may not experience badly due to a sudden and large adjustment of the screen brightness.

It can be seen that, in the brightness adjusting method described in the embodiment of the application, when the electronic device is in the manual brightness adjusting mode and detects a bright screen operation, the light sensor detects a first ambient light brightness value, the manual brightness adjusting mode corresponds to a preset screen brightness value, and a second ambient light brightness value corresponding to the preset screen brightness value is obtained, if a difference between the second ambient light brightness value and the first ambient light brightness value is not within a preset range, the manual brightness adjusting mode is switched to the automatic brightness adjusting mode, and the screen brightness is adjusted according to the first ambient light brightness value, so that the screen brightness adjusting mode can be flexibly switched, and the screen brightness adjustment is more intelligent.

Referring to fig. 2, fig. 2 is a flow chart of another brightness adjustment method according to an embodiment of the present disclosure, where the brightness adjustment method described in the embodiment is applied to the electronic device shown in fig. 1A, where the electronic device includes a light sensor, and the method includes the following steps:

201. when the electronic equipment is in a manual brightness adjusting mode, detecting the motion parameters of the electronic equipment, wherein the manual brightness adjusting mode corresponds to a preset screen brightness value.

In the embodiment of the application, when the electronic equipment is in the manual brightness adjusting mode, the motion parameters of the electronic equipment can be detected.

Optionally, the motion parameter of the electronic device may include at least one of: the acceleration may be a gravitational acceleration of the electronic device, or an acceleration including a component in a gravitational direction, for example, when a user takes out the mobile phone from a pocket, the gravitational acceleration of the electronic device may be detected, the speed may be an average speed of the electronic device during a movement process, or an average speed within a certain movement time, the displacement is a displacement of the electronic device from a starting point to an end point, the starting point is a position where the electronic device starts to move, the end point is a position where the electronic device ends to move, and the movement trajectory is a trajectory formed by the electronic device during the movement process.

202. And if the motion parameters meet the preset conditions and the bright screen operation is detected, detecting a first environment light brightness value through a light sensor.

In this embodiment of the application, when the motion parameter of the electronic device satisfies a preset condition, it may be determined that the user wants to take out the electronic device, and the electronic device detects a bright screen operation, and it may be determined that the electronic device wants to watch a screen, and then detect the first ambient light brightness value through the light sensor, optionally, the preset condition may include at least one of: the acceleration of the electronic equipment meets a preset acceleration range, the average speed in a certain movement time meets a preset speed range, the displacement meets a preset displacement condition, the movement track is successfully matched with a preset track pattern, and the like.

Optionally, the electronic device further includes a proximity sensor and a gravity sensor, the motion parameter includes an acceleration, and the detecting the motion parameter of the electronic device includes:

a1, detecting whether a proximity object exists through the proximity sensor, and detecting the acceleration of the electronic device through the gravity sensor;

and A2, if an approaching object exists and the acceleration meets a preset acceleration range, confirming that the motion parameter meets the preset condition.

In an embodiment of the application, when a motion parameter of an electronic device includes an acceleration, it may be determined that the motion parameter satisfies a preset condition when the acceleration satisfies a preset acceleration range and an approaching object exists, where the approaching object may include at least one of: the user's hand or face, ear, etc., for example, when the user takes the electronic device out of a pocket or bag, etc., the acceleration of the electronic device may be detected, and when the acceleration satisfies a preset acceleration range, it is determined that the user wants to take out the electronic device.

203. And acquiring a second ambient light brightness value corresponding to the preset screen brightness value.

204. And if the difference value between the second environment light brightness value and the first environment light brightness value is not in a preset range, switching the manual brightness adjusting mode to an automatic brightness adjusting mode, and adjusting the screen brightness according to the first environment light brightness value.

The specific implementation process of steps 203 and 204 may refer to the corresponding description in steps 102 and 103, and is not described herein again.

It can be seen that, in the brightness adjustment method described in the embodiment of the present application, when the electronic device is in the manual brightness adjustment mode, the motion parameter of the electronic device is detected, the manual brightness adjustment mode corresponds to the preset screen brightness value, if the motion parameter meets the preset condition and the bright screen operation is detected, the light sensation sensor detects the first ambient light brightness value to obtain the second ambient light brightness value corresponding to the preset screen brightness value, if the difference between the second ambient light brightness value and the first ambient light brightness value is not in the preset range, the manual brightness adjustment mode is switched to the automatic brightness adjustment mode, and the screen brightness is adjusted according to the first ambient light brightness value.

In accordance with the above, please refer to fig. 3, which is a flowchart illustrating another brightness adjustment method according to an embodiment of the present disclosure, where the brightness adjustment method described in the embodiment is applied to the electronic device shown in fig. 1A, and the method may include the following steps:

301. when the electronic equipment is in a manual brightness adjusting mode, detecting the motion parameters of the electronic equipment, wherein the manual brightness adjusting mode corresponds to a preset screen brightness value.

302. And if the motion parameters meet the preset conditions and the bright screen operation is detected, detecting a first environment light brightness value through a light sensor.

303. And acquiring a second ambient light brightness value corresponding to the preset screen brightness value.

304. And if the difference value between the second environment light brightness value and the first environment light brightness value is not in a preset range, switching the manual brightness adjusting mode to an automatic brightness adjusting mode, and adjusting the screen brightness according to the first environment light brightness value.

The specific implementation process of steps 301-304 may refer to the specific implementation process of the above method, and will not be described herein again.

305. And after the screen brightness is adjusted according to the first ambient light brightness value, detecting the change frequency of the ambient light intensity in a preset time period.

In this embodiment, after the electronic device is switched to the automatic brightness adjustment mode, the change frequency of the ambient light brightness within a preset time period may be detected, and if the change frequency does not exceed a preset frequency threshold, the automatic brightness adjustment mode of the electronic device may be maintained, so that the electronic device adjusts the screen brightness according to the change of the ambient light brightness value, where the preset time period may be, for example, 3 minutes after the electronic device is switched to the automatic brightness adjustment mode, specifically, after the electronic device is switched to the automatic brightness adjustment mode, a plurality of ambient light brightness values may be obtained according to a preset time period, the plurality of ambient light brightness values are compared according to a time sequence, and the change frequency of the ambient light brightness value is counted, for example, if 5 ambient light brightness values a1, a2, a3, a4, a5 are detected within 3 minutes, a difference b1, a2 between a1 and a2 may be calculated, If the difference between a2 and a3, the difference between a3 and a4, the difference between b3 and a4 and a5, and b1, b2, b3 and b4 all belong to the preset value range, 4 changes are made from a1 to a5, and the change frequency is 1.33 times/min.

306. And if the change frequency exceeds a preset frequency threshold, switching the automatic brightness adjusting mode to the manual brightness adjusting mode, and linearly adjusting the screen brightness to the preset screen brightness value.

When the change frequency exceeds the preset frequency threshold, the electronic device frequently adjusts the screen brightness according to the change of the ambient light brightness value, which may cause poor visual perception of a user watching the screen and may wear the screen, thereby affecting the service life of the screen.

In the brightness adjusting method described in the embodiment of the present application, when the electronic device is in a manual brightness adjusting mode, a motion parameter of the electronic device is detected, the manual brightness adjusting mode corresponds to a preset screen brightness value, if the motion parameter meets a preset condition and a bright screen operation is detected, a first ambient brightness value is detected by a light sensor, a second ambient brightness value corresponding to the preset screen brightness value is obtained, if a difference between the second ambient brightness value and the first ambient brightness value is not within a preset range, the manual brightness adjusting mode is switched to an automatic brightness adjusting mode, the screen brightness is adjusted according to the first ambient brightness value, after the screen brightness is adjusted according to the first ambient brightness value, a change frequency of an ambient light intensity within a preset time period is detected, and if the change frequency exceeds a preset frequency threshold, and then, the automatic brightness adjusting mode is switched to the manual brightness adjusting mode, and the screen brightness is linearly adjusted to the preset screen brightness value, so that the flexible switching of the screen brightness adjusting mode can be realized, and the screen brightness adjustment is more intelligent.

The following is a device for implementing the brightness adjustment method, specifically as follows:

in accordance with the above, please refer to fig. 4, where fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, the electronic device includes: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps of:

when the electronic equipment is in a manual brightness adjusting mode and bright screen operation is detected, detecting a first ambient light brightness value through the light sensation sensor, wherein the manual brightness adjusting mode corresponds to a preset screen brightness value;

acquiring a second ambient light brightness value corresponding to the preset screen brightness value;

and if the difference value between the second environment light brightness value and the first environment light brightness value is not in a preset range, switching the manual brightness adjusting mode to an automatic brightness adjusting mode, and adjusting the screen brightness according to the first environment light brightness value.

In one possible example, in adjusting the screen brightness according to the first ambient light brightness value, the program includes instructions for performing the steps of:

acquiring a plurality of historical adjustment records of the manual brightness adjustment mode, wherein each historical adjustment record in the plurality of historical adjustment records comprises a corresponding relation between an ambient light brightness value and a manual adjustment screen brightness value;

fitting according to the plurality of historical adjustment records to obtain a fitting function, wherein the fitting function is a corresponding relation between the ambient light brightness value and the manual adjustment screen brightness value;

and determining a target screen brightness value according to the first ambient light brightness value and the fitting function, and adjusting the screen brightness to the target screen brightness value.

In one possible example, the program further comprises instructions for performing the steps of:

detecting a motion parameter of the electronic device;

and if the motion parameters meet preset conditions, executing the operation of detecting the first environment light brightness value through the light sensor.

In one possible example, the electronic device further comprises a proximity sensor and a gravity sensor, the motion parameters comprise acceleration, and in connection with the detecting the motion parameters of the electronic device, the program comprises instructions for:

detecting, by the proximity sensor, whether a proximity object exists, and detecting, by the gravity sensor, an acceleration of the electronic device;

and if the approaching object exists and the acceleration meets a preset acceleration range, confirming that the motion parameter meets the preset condition.

In one possible example, after the adjusting the screen brightness according to the first ambient light brightness value, the program further includes instructions for:

detecting the change frequency of the ambient light intensity in a preset time period;

and if the change frequency exceeds a preset frequency threshold, switching the automatic brightness adjusting mode to the manual brightness adjusting mode, and linearly adjusting the screen brightness to the preset screen brightness value.

Referring to fig. 5A, fig. 5A is a schematic structural diagram of a brightness adjusting device provided in the present embodiment, the brightness adjusting device includes a first detecting unit 501, a determining unit 502, and a first adjusting unit 503, wherein,

the first detecting unit 501 is configured to detect a first ambient light brightness value through the light sensor when the electronic device is in a manual brightness adjusting mode, where the manual brightness adjusting mode corresponds to a preset screen brightness value; (ii) a

The determining unit 502 is configured to obtain a second ambient light brightness value corresponding to the preset screen brightness value;

the first adjusting unit 503 is configured to switch the manual brightness adjusting mode to an automatic brightness adjusting mode if the difference between the second ambient light brightness value and the first ambient light brightness value is not within a preset range, and adjust the screen brightness according to the first ambient light brightness value.

Optionally, in the aspect of adjusting the screen brightness according to the first ambient light brightness value, the first adjusting unit 503 is specifically configured to:

acquiring a plurality of historical adjustment records of the manual brightness adjustment mode, wherein each historical adjustment record in the plurality of historical adjustment records comprises a corresponding relation between an ambient light brightness value and a manual adjustment screen brightness value;

fitting according to the plurality of historical adjustment records to obtain a fitting function, wherein the fitting function is a corresponding relation between the ambient light brightness value and the manual adjustment screen brightness value;

and determining a target screen brightness value according to the first ambient light brightness value and the fitting function, and adjusting the screen brightness to the target screen brightness value.

Alternatively, as shown in fig. 5B, fig. 5B is a modified structure of the brightness adjusting apparatus described in fig. 5A, which may further include a second detecting unit 504 compared with fig. 5A, wherein,

the second detecting unit 504 is configured to detect a motion parameter of the electronic device;

when the motion parameter satisfies a preset condition, the first detection unit 501 detects that the first ambient light brightness value is detected by the light sensor.

Alternatively, as shown in fig. 5C, fig. 5C is a detailed structure of the second detecting unit 504 of the brightness adjusting apparatus depicted in fig. 5B, and the second detecting unit 504 may include: the detection module 5041 and determination module 5042 are embodied as follows:

the detection module 5041 is configured to detect whether a proximity object exists through the proximity sensor, and detect an acceleration of the electronic device through the gravity sensor;

the determining module 5042 is configured to determine that the motion parameter meets the preset condition when the approaching object exists and the acceleration meets a preset acceleration range.

Alternatively, as shown in fig. 5D, fig. 5D is a modified structure of the brightness adjusting device depicted in fig. 5B, which may further include a third detecting unit 505 and a second adjusting unit 506, compared with fig. 5B, wherein,

the third detecting unit 505 is configured to detect a change frequency of the ambient light intensity within a preset time period;

the second adjusting unit 506 is configured to switch the automatic brightness adjusting mode to the manual brightness adjusting mode when the change frequency exceeds a preset frequency threshold, and linearly adjust the screen brightness to the preset screen brightness value.

It can be seen that the brightness adjusting apparatus described in the embodiments of the present application is applied to an electronic device, and when the electronic device is in a manual brightness adjusting mode, the motion parameter of the electronic device is detected, the manual brightness adjusting mode corresponds to a preset screen brightness value, if the motion parameter meets a preset condition and a bright screen operation is detected, a first ambient brightness value is detected by a light sensor to obtain a second ambient brightness value corresponding to the preset screen brightness value, if a difference between the second ambient brightness value and the first ambient brightness value is not within a preset range, the manual brightness adjusting mode is switched to an automatic brightness adjusting mode, the screen brightness is adjusted according to the first ambient brightness value, after the screen brightness is adjusted according to the first ambient brightness value, a change frequency of an ambient light intensity within a preset time period is detected, and if the change frequency exceeds a preset frequency threshold, and then, the automatic brightness adjusting mode is switched to the manual brightness adjusting mode, and the screen brightness is linearly adjusted to the preset screen brightness value, so that the flexible switching of the screen brightness adjusting mode can be realized, and the screen brightness adjustment is more intelligent.

It can be understood that the functions of each program module of the brightness adjusting apparatus of this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.

As shown in fig. 6, for convenience of description, only the portions related to the embodiments of the present application are shown, and details of the specific technology are not disclosed, please refer to the method portion of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital assistant), a POS (point of sales), a vehicle-mounted computer, etc., taking the electronic device as the mobile phone as an example:

fig. 6 is a block diagram illustrating a partial structure of a cellular phone related to an electronic device provided by an embodiment of the present invention. The cellular phone 6000 shown in fig. 6 includes: at least one processor 6011, a memory 6012, communication interfaces (including SIM interface 6014, audio input interface 6015, serial port 6016, and other communication interfaces 6017), a signal processing module 6013 (including receiver 6018, transmitter 6019, LOs6020, and signal processor 6021), and input-output modules (including screen 6022, speakers 6023, microphone 6024, sensors 6025, etc.). Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.

The following specifically describes each component of the mobile phone with reference to fig. 6:

the processor 6011 is a control center of the mobile phone, connects various parts of the whole mobile phone by using various interfaces and lines, and executes various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 6012 and calling data stored in the memory, thereby integrally monitoring the mobile phone. Alternatively, the processor may integrate an application processor (e.g., CPU, or GPU) that primarily handles operating systems, user interfaces, application programs, and the like, and a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.

The processor 6011 is configured to perform the following steps:

when the electronic equipment is in a manual brightness adjusting mode and bright screen operation is detected, detecting a first ambient light brightness value through the light sensation sensor, wherein the manual brightness adjusting mode corresponds to a preset screen brightness value;

acquiring a second ambient light brightness value corresponding to the preset screen brightness value;

and if the difference value between the second environment light brightness value and the first environment light brightness value is not in a preset range, switching the manual brightness adjusting mode to an automatic brightness adjusting mode, and adjusting the screen brightness according to the first environment light brightness value.

The memory 6012 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The memory in the embodiment of the application can be used for a plurality of historical adjustment records in the manual brightness adjustment mode.

The communication interface is used for performing communication connection with an external device, and includes a SIM interface 6014, an audio input interface 6015, a serial interface 6016, and another communication interface 6017.

The input-output module 6010 may include a screen 6022, a speaker 6023, a microphone 6024, sensors 6025, etc., and the sensors 6025 may include a light sensor, a motion sensor, a brain wave sensor, a camera, and other sensors. Specifically, the light sensor may include an environment sensor and a proximity sensor, wherein the environment sensor may detect an ambient light brightness value of an environment where the electronic device is located, and the proximity sensor may detect whether there is a proximity object approaching the mobile phone. The motion sensor can comprise an acceleration sensor and a gravity sensor, the acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), can detect the magnitude and the direction of gravity when the motion sensor is static, can also be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games and magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking) and the like, and the gravity sensor can be used for detecting the acceleration in the gravity direction.

The signal processing module 6013 is configured to process a signal received by the mobile phone from an external device and send the signal to the external device, where the external device may be a base station, for example, the receiver 6018 is configured to receive the signal sent by the external device and transmit the signal to the signal processor 6021, and the transmitter 6019 is configured to transmit the signal output by the signal processor 6021.

In the embodiments shown in fig. 1B, fig. 2, or fig. 3, the method flows of the steps may be implemented based on the structure of the mobile phone.

In the embodiments shown in fig. 4 and fig. 5A to fig. 5D, the functions of the units may be implemented based on the structure of the mobile phone.

Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to execute part or all of the steps of any one of the brightness adjustment methods as described in the above method embodiments.

Embodiments of the present application also provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any one of the brightness adjustment methods as described in the above method embodiments.

It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.

In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software program module.

The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.

Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash disk, ROM, RAM, magnetic or optical disk, and the like.

The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A brightness adjusting method is applied to electronic equipment, wherein the electronic equipment comprises a light sensor, and the method comprises the following steps:
when the electronic equipment is in a manual brightness adjusting mode and bright screen operation is detected, detecting a first ambient light brightness value through the light sensation sensor, wherein the manual brightness adjusting mode corresponds to a preset screen brightness value;
acquiring a second ambient light brightness value corresponding to the preset screen brightness value;
if the difference value between the second environment light brightness value and the first environment light brightness value is not in a preset range, switching the manual brightness adjusting mode to an automatic brightness adjusting mode, and adjusting the screen brightness according to the first environment light brightness value;
wherein the adjusting the screen brightness according to the first ambient light brightness value comprises:
acquiring a plurality of historical adjustment records of the manual brightness adjustment mode, wherein each historical adjustment record in the plurality of historical adjustment records comprises a corresponding relation between an ambient light brightness value and a manual adjustment screen brightness value;
fitting according to the plurality of historical adjustment records to obtain a fitting function, wherein the fitting function is a corresponding relation between the ambient light brightness value and the manual adjustment screen brightness value;
and determining a target screen brightness value according to the first ambient light brightness value and the fitting function, and adjusting the screen brightness to the target screen brightness value.
2. The method of claim 1, further comprising:
detecting a motion parameter of the electronic device;
and if the motion parameters meet preset conditions, executing the operation of detecting the first environment light brightness value through the light sensor.
3. The method of claim 1, wherein the electronic device further comprises a proximity sensor and a gravity sensor, wherein the motion parameter comprises acceleration, and wherein detecting the motion parameter of the electronic device comprises:
detecting, by the proximity sensor, whether a proximity object exists, and detecting, by the gravity sensor, an acceleration of the electronic device;
and if the approaching object exists and the acceleration meets a preset acceleration range, confirming that the motion parameter meets the preset condition.
4. The method of claim 2, wherein the electronic device further comprises a proximity sensor and a gravity sensor, wherein the motion parameter comprises acceleration, and wherein detecting the motion parameter of the electronic device comprises:
detecting, by the proximity sensor, whether a proximity object exists, and detecting, by the gravity sensor, an acceleration of the electronic device;
and if the approaching object exists and the acceleration meets a preset acceleration range, confirming that the motion parameter meets the preset condition.
5. The method of any of claims 1 to 4, wherein after said adjusting screen brightness according to said first ambient light brightness value, said method further comprises:
detecting the change frequency of the ambient light intensity in a preset time period;
and if the change frequency exceeds a preset frequency threshold, switching the automatic brightness adjusting mode to the manual brightness adjusting mode, and linearly adjusting the screen brightness to the preset screen brightness value.
6. A luminance adjustment device, applied to an electronic apparatus, comprising:
the first detection unit is used for detecting a first ambient light brightness value through a light sensation sensor when the electronic equipment is in a manual brightness adjustment mode and bright screen operation is detected, wherein the manual brightness adjustment mode corresponds to a preset screen brightness value;
the determining unit is used for acquiring a second ambient light brightness value corresponding to the preset screen brightness value;
the first adjusting unit is used for switching the manual brightness adjusting mode to an automatic brightness adjusting mode when the difference value between the second environment light brightness value and the first environment light brightness value is not in a preset range, and adjusting the screen brightness according to the first environment light brightness value;
in the aspect of adjusting the screen brightness according to the first ambient light brightness value, the first adjusting unit is specifically configured to:
acquiring a plurality of historical adjustment records of the manual brightness adjustment mode, wherein each historical adjustment record in the plurality of historical adjustment records comprises a corresponding relation between an ambient light brightness value and a manual adjustment screen brightness value;
fitting according to the plurality of historical adjustment records to obtain a fitting function, wherein the fitting function is a corresponding relation between the ambient light brightness value and the manual adjustment screen brightness value;
and determining a target screen brightness value according to the first ambient light brightness value and the fitting function, and adjusting the screen brightness to the target screen brightness value.
7. The luminance adjustment device according to claim 6, characterized in that the luminance adjustment device further comprises:
the second detection unit is used for detecting the motion parameters of the electronic equipment;
if the motion parameter meets a preset condition, the first detection unit executes the operation of detecting the brightness value of the first environment light through the light sensor.
8. An electronic device, comprising: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for the method of any of claims 1-5.
9. A computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
CN201810362485.7A 2018-04-20 2018-04-20 Brightness adjusting method and related product CN108550353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810362485.7A CN108550353B (en) 2018-04-20 2018-04-20 Brightness adjusting method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810362485.7A CN108550353B (en) 2018-04-20 2018-04-20 Brightness adjusting method and related product

Publications (2)

Publication Number Publication Date
CN108550353A CN108550353A (en) 2018-09-18
CN108550353B true CN108550353B (en) 2020-03-24

Family

ID=63511984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810362485.7A CN108550353B (en) 2018-04-20 2018-04-20 Brightness adjusting method and related product

Country Status (1)

Country Link
CN (1) CN108550353B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109951596A (en) * 2017-12-20 2019-06-28 广东欧珀移动通信有限公司 Adjusting method, device, storage medium and the mobile terminal of screen intensity
CN109951594A (en) * 2017-12-20 2019-06-28 广东欧珀移动通信有限公司 Intelligent adjusting method, device, storage medium and the mobile terminal of screen intensity
CN110070841B (en) * 2019-03-26 2020-11-27 深圳市嘉利达专显科技有限公司 Display screen adjusting method and device and electronic equipment
CN110971761A (en) * 2019-12-09 2020-04-07 Oppo广东移动通信有限公司 Method and device for generating display parameter curve, mobile terminal and storage medium
CN111128092A (en) * 2020-02-11 2020-05-08 北京小米移动软件有限公司 Screen brightness adjusting method, screen brightness adjusting device and computer storage medium
CN111128091A (en) * 2020-02-11 2020-05-08 北京小米移动软件有限公司 Screen brightness adjusting method, screen brightness adjusting device and computer storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4049287B2 (en) * 1999-05-21 2008-02-20 Necディスプレイソリューションズ株式会社 Display device
CN106357925B (en) * 2016-10-31 2019-12-03 Oppo广东移动通信有限公司 Switching method, device and the terminal of screen intensity shaping modes
CN107390856A (en) * 2017-07-19 2017-11-24 努比亚技术有限公司 A kind of method, mobile terminal and storage medium for reducing mobile terminal power consumption
CN107767839B (en) * 2017-10-20 2020-01-31 Oppo广东移动通信有限公司 Brightness adjusting method and related product
CN107731146A (en) * 2017-10-20 2018-02-23 广东欧珀移动通信有限公司 Brightness adjusting method and related product

Also Published As

Publication number Publication date
CN108550353A (en) 2018-09-18

Similar Documents

Publication Publication Date Title
US10169639B2 (en) Method for fingerprint template update and terminal device
CN108093099B (en) Mobile terminal falling protection method and system and mobile terminal
CN107302663B (en) Image brightness adjusting method, terminal and computer readable storage medium
CN107957839B (en) Display control method and mobile terminal
CN108491707B (en) Unlocking control method, terminal equipment and medium product
CN108459797B (en) Control method of folding screen and mobile terminal
CN107463403B (en) Process control method, device, storage medium and electronic equipment
CN108182043B (en) Information display method and mobile terminal
CN106303023B (en) Screen state adjusting method and device
CN108073343B (en) display interface adjusting method and mobile terminal
CN105681553B (en) Handheld terminal and misoperation preventing method thereof
CN107239166B (en) Method for adjusting interface display of mobile terminal and mobile terminal
CN104383681B (en) Method for controlling game program, device and mobile terminal
CN107908334B (en) Fingerprint icon display method and device and mobile terminal
CN107292285B (en) Iris living body detection method and related product
CN108227996B (en) Display control method and mobile terminal
CN107819935B (en) Control method of mobile terminal and mobile terminal
US20200167581A1 (en) Anti-counterfeiting processing method and related products
CN107340833B (en) Terminal temperature control method, terminal and computer readable storage medium
CN108174016B (en) Terminal anti-falling control method, terminal and computer readable storage medium
CN109768810B (en) Signal processing circuit, terminal equipment and signal processing method
CN106445596B (en) Method and device for managing setting items
EP3562130B1 (en) Control method at wearable apparatus and related apparatuses
CN107888765B (en) Method for switching scene mode and mobile terminal
CN107977652B (en) Method for extracting screen display content and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant