CN113889056B - Brightness adjusting method and related device - Google Patents

Brightness adjusting method and related device Download PDF

Info

Publication number
CN113889056B
CN113889056B CN202111248256.0A CN202111248256A CN113889056B CN 113889056 B CN113889056 B CN 113889056B CN 202111248256 A CN202111248256 A CN 202111248256A CN 113889056 B CN113889056 B CN 113889056B
Authority
CN
China
Prior art keywords
brightness
value
target
determining
adjusting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111248256.0A
Other languages
Chinese (zh)
Other versions
CN113889056A (en
Inventor
付长洲
�田�浩
肖叶从
吴甲森
张建民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Electric Appliance Co ltd
Original Assignee
Shenzhen Electric Appliance Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Electric Appliance Co ltd filed Critical Shenzhen Electric Appliance Co ltd
Priority to CN202111248256.0A priority Critical patent/CN113889056B/en
Publication of CN113889056A publication Critical patent/CN113889056A/en
Application granted granted Critical
Publication of CN113889056B publication Critical patent/CN113889056B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a brightness adjusting method and a related device, wherein the method comprises the following steps: acquiring brightness adjusting information input through a brightness adjusting key, wherein the brightness adjusting information comprises a brightness adjusting trend and key pressing duration; determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value; determining a target brightness control signal according to the target brightness gear value; and adjusting the brightness of the display screen according to the target brightness control signal, so that the accuracy of brightness adjustment can be improved.

Description

Brightness adjusting method and related device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a brightness adjustment method and a related apparatus.
Background
The continuous fine adjustment of the brightness can be realized by using a touch screen in small equipment such as a mobile phone and a tablet, and the continuous fine adjustment of the brightness can be realized by using a knob in large equipment.
At present, common portable terminals in the market, such as notebook computers, basically have brightness adjusting keys, and the screen brightness gears of the portable terminals are generally 10 discrete gears. When the brightness adjusting button is pressed, the screen brightness changes in a jumping manner, however, the jumping brightness gear change is not fine and smooth enough and can not exactly meet the requirements of users, so that the accuracy of brightness adjustment is low.
Disclosure of Invention
The embodiment of the application provides a brightness adjusting method and a related device, which can improve the accuracy of brightness adjustment.
A first aspect of an embodiment of the present application provides a brightness adjustment method, where the method includes:
acquiring brightness adjusting information input through a brightness adjusting key, wherein the brightness adjusting information comprises a brightness adjusting trend and key pressing duration;
determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value;
determining a target brightness control signal according to the target brightness gear value;
and adjusting the brightness of the display screen according to the target brightness control signal.
With reference to the first aspect, in one possible implementation manner, the determining the target brightness control signal according to the target brightness stage value includes:
determining a target duty ratio according to the target brightness gear value;
and determining the PWM signal according to the target duty ratio.
With reference to the first aspect, in one possible implementation manner, the determining a target brightness range value according to the key press duration, the brightness adjustment trend, and the current brightness range value includes:
and if the case pressing duration is higher than a preset threshold value, determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value.
With reference to the first aspect, in one possible implementation manner, the method further includes:
acquiring a face image of a target user;
determining eye information and facial expression information of the target user according to the facial image;
determining a first reference brightness adaptive value of the target user according to the eye information;
determining a second reference brightness adaptive value of the target user according to the facial expression information;
determining a target brightness adaptive value according to the first reference brightness adaptive value and the second reference brightness adaptive value;
if the target brightness adaptation value is lower than a preset brightness adaptation value, acquiring a first brightness value of the display screen after brightness adjustment is performed on the display screen according to the target brightness control signal;
acquiring a second brightness value, wherein the second brightness value is an environment brightness value;
determining a third luminance value at least according to the first luminance value and the second luminance value;
and displaying the third brightness value.
With reference to the first aspect, in a possible implementation manner, the determining a third luminance value according to at least the first luminance value and the second luminance value includes:
acquiring a display screen brightness value commonly used by the target user;
determining a brightness adjusting value according to the common display screen brightness value and the second brightness value;
and determining the third brightness value according to the brightness adjusting value and the first brightness value.
A second aspect of embodiments of the present application provides a luminance adjustment apparatus, including:
the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring brightness adjustment information input by a brightness adjustment key, and the brightness adjustment information comprises a brightness adjustment trend and key pressing duration;
the first determining unit is used for determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value;
a second determination unit for determining a target brightness control signal according to the target brightness gear value;
and the adjusting unit is used for adjusting the brightness of the display screen according to the target brightness control signal.
With reference to the second aspect, in a possible implementation manner, the target brightness control signal includes a PWM signal, and the second determining unit is configured to include:
determining a target duty ratio according to the target brightness gear value;
and determining the PWM signal according to the target duty ratio.
With reference to the second aspect, in a possible implementation manner, the first determining unit is configured to:
and if the case pressing duration is higher than a preset threshold, determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value.
With reference to the second aspect, in one possible implementation manner, the apparatus is further configured to:
acquiring a face image of a target user;
determining eye information and facial expression information of the target user according to the face image;
determining a first reference brightness adaptive value of the target user according to the eye information;
determining a second reference brightness adaptive value of the target user according to the facial expression information;
determining a target brightness adaptive value according to the first reference brightness adaptive value and the second reference brightness adaptive value;
if the target brightness adaptation value is lower than a preset brightness adaptation value, acquiring a first brightness value of the display screen after brightness adjustment is performed on the display screen according to the target brightness control signal;
acquiring a second brightness value, wherein the second brightness value is an environment brightness value;
determining a third luminance value at least according to the first luminance value and the second luminance value;
and displaying the third brightness value.
With reference to the second aspect, in one possible implementation manner, in the determining a third luminance value according to at least the first luminance value and the second luminance value, the apparatus is further configured to:
acquiring the brightness value of a display screen commonly used by the target user;
determining a brightness adjusting value according to the common display screen brightness value and the second brightness value;
and determining the third brightness value according to the brightness adjusting value and the first brightness value.
A third aspect of the embodiments of the present application provides a terminal, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiments of the present application.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps as described in the first aspect of embodiments of the present application.
A fifth aspect of embodiments of the present application provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program 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 at least the following beneficial effects:
the method comprises the steps of obtaining brightness adjusting information input through a brightness adjusting key, determining a target brightness gear value according to the key pressing time, the brightness adjusting trend and a current brightness gear value, determining a target brightness control signal according to the target brightness gear value, and adjusting the brightness of a display screen according to the target brightness control signal, so that the brightness controlling information can be determined according to the key pressing time, the brightness adjusting trend and the current brightness gear value to adjust the brightness of the screen, and the accuracy of adjusting the brightness of the screen is improved.
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. 1 is a schematic flowchart of a brightness adjusting 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 structural diagram of a terminal according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a brightness adjusting device according to an embodiment of the present application.
Detailed Description
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 a non-exclusive inclusion. 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 in the specification 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 specification. 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 a person skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a brightness adjusting method according to an embodiment of the present disclosure. As shown in fig. 1, the brightness adjusting method is applied to an electronic device, and includes:
101. and acquiring brightness adjusting information input through a brightness adjusting key, wherein the brightness adjusting information comprises a brightness adjusting trend and key pressing duration.
The user may input the brightness adjustment information by pressing the brightness adjustment key, and the brightness adjustment information may be brightness increase or brightness decrease. The user may be a user using the electronic device.
The brightness adjustment tendency may be understood as a tendency of increasing and decreasing brightness. The key press duration may be effective duration of pressing the brightness adjustment key by the user, and may specifically be understood as: in order to prevent the user from triggering pressing by mistake, timing may be performed after a preset time period after the user presses the brightness adjustment key until the user stops pressing, so as to obtain a key pressing duration. Of course, the pressing time period may also be the total time period for the user to press the brightness adjustment key.
102. And determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value.
And determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value after the case pressing duration is higher than the preset threshold. The preset threshold may be set by empirical values or historical data, for example, the preset threshold may be 30ms or the like. Therefore, the user can be prevented from triggering the brightness adjustment by mistake, and the reliability of the brightness adjustment can be improved.
103. And determining a target brightness control signal according to the target brightness gear value.
The target brightness control signal may be a PWM signal, and the duty ratio of the PWM signal may be determined according to the target brightness gear value, so as to determine the target brightness control signal.
104. And adjusting the brightness of the display screen according to the target brightness control signal.
The target brightness control signal can be input to a brightness control module of the display screen, so that the brightness of the display screen is adjusted.
In this example, the brightness adjustment information input through the brightness adjustment key is obtained, where the brightness adjustment information includes a brightness adjustment trend and a key pressing duration, a target brightness gear value is determined according to the key pressing duration, the brightness adjustment trend and a current brightness gear value, a target brightness control signal is determined according to the target brightness gear value, and brightness adjustment is performed on the display screen according to the target brightness control signal, so that the brightness control information can be determined according to the key pressing duration, the brightness adjustment trend and the current brightness gear value to adjust the screen brightness, and accuracy of adjustment of the screen brightness is improved.
In one possible implementation manner, a possible method for determining a target brightness range value according to the key pressing time length, the brightness adjustment trend and the current brightness range value includes:
and if the case pressing duration is higher than a preset threshold value, determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value.
Wherein the preset threshold is set by empirical values or historical data. According to the key press duration, the brightness adjustment trend and the current brightness gear value, the method for determining the target brightness gear value can be as follows: determining a gear adjusting value according to the key pressing duration; and determining a target brightness adjustment value according to the current brightness gear value, the brightness adjustment trend and the gear adjustment value. Specifically, for example, if the brightness adjustment trend is brightness increase, the current brightness gear value is added with the gear adjustment value to obtain the target brightness gear value, and if the brightness adjustment trend is brightness decrease, the current brightness gear value is subtracted with the gear adjustment value to obtain the target brightness gear value. The longer the key pressing duration is, the larger the gear adjustment value is, and the shorter the key pressing duration is, the smaller the gear adjustment value is.
In this example, when the case pressing duration is higher than the preset threshold, the target brightness gear value is determined according to the key pressing duration, the brightness adjustment trend and the current brightness gear value, so that the condition of false triggering is reduced, and the reliability of brightness adjustment is improved.
In one possible implementation, the target brightness control signal comprises a PWM signal, and a possible method of determining the target brightness control signal according to the target brightness stage value comprises:
a1, determining a target duty ratio according to the target brightness gear value;
and A2, determining the PWM signal according to the target duty ratio.
The target luminance range value is associated with the target duty ratio, and the larger the target luminance range value is, the higher the target duty ratio is, and the smaller the target luminance range value is, the lower the target duty ratio is. Specifically, the target duty ratio corresponding to the target luminance gear value may be determined through a mapping relationship between a preset luminance gear value and the duty ratio, and the mapping relationship is set by historical data.
After the duty ratio of the PWM signal is determined, the PWM signal can be determined according to the target duty ratio.
In the example, the target duty ratio is determined according to the target brightness gear value, and the PWM signal is determined according to the target duty ratio, so that the accuracy of determining the PWM signal is improved.
In a possible implementation manner, after the screen brightness is adjusted, a new brightness value may be determined according to feedback information of the target user, and the screen brightness is adjusted according to the new brightness value, so as to improve user experience, which may specifically be:
b1, acquiring a face image of a target user;
b2, determining eye information and facial expression information of the target user according to the face image;
b3, determining a first reference brightness adaptive value of the target user according to the eye information;
b4, determining a second reference brightness adaptive value of the target user according to the facial expression information;
b5, determining a target brightness adaptive value according to the first reference brightness adaptive value and the second reference brightness adaptive value;
b6, if the target brightness adaptation value is lower than a preset brightness adaptation value, acquiring a first brightness value of the display screen after brightness adjustment is carried out on the display screen according to the target brightness control signal;
b7, acquiring a second brightness value, wherein the second brightness value is an environment brightness value;
b8, determining a third brightness value according to at least the first brightness value and the second brightness value;
and B9, displaying the third brightness value.
The face image of the target user may be acquired through a camera of the electronic device, or may be acquired through another camera, for example, the other camera near the position where the target user is located may be used, and the camera may capture the face image of the target user, so that the face image of the target user is acquired through the camera.
The face image can be subjected to feature extraction to obtain feature data; and acquiring eye information and facial expression information of the target user according to the feature data. The feature data may be a gray value, an RGB value, or the like. The eye information and the facial expression information can be determined according to the change of the gray value. The eye information may include eye movement information and eye state information, and the eye movement information may include open eyes, closed eyes, the degree of opening when the eyes are open, and the like. The eye state information may be characterized by wrinkles around the eyes, the deeper the wrinkles around the eyes, the worse the eye state, the shallower the wrinkles around the eyes, and the better the eye state, and after the eyes of the user are stimulated by light, different states may be shown, for example, the light is too strong, the eyes may be shielded from light, so that the wrinkles around the eyes may be deepened, and for example, the light is too weak, the user may need to open the eyes to a greater extent to view, so that the wrinkles around the eyes may be reduced, and the deepening and reducing of the wrinkles are based on the normal eye opening state of the user.
In the eye movement, the more the degree to which the eyes are open tends to the degree to which the target user normally opens the eyes, the larger the first reference luminance adaptation value is, and the more the degree to which the eyes are open is away from the degree to which the target user normally opens the eyes, the smaller the first reference luminance adaptation value is. The deeper or shallower the wrinkles around the eyes of the target user (the greater the difference between the wrinkles around the eyes and the wrinkles in the normal case of the eyes), the smaller the first reference luminance adaptive value, and the smaller the difference between the wrinkles around the eyes of the target user and the wrinkles in the normal case of the eyes, the larger the first reference luminance adaptive value.
The facial expression may be used to reflect the satisfaction of the user, for example, if the facial expression is a normal expression (an expression without mood fluctuation), the satisfaction is a preset threshold, if the facial expression tends to a facial expression with poor mood, the satisfaction is smaller than the preset threshold, and if the facial expression tends to a facial expression with better mood, the satisfaction is greater than the preset threshold. The facial expressions with poor mood can be understood as corresponding facial expressions of sadness, anger and the like, and the facial expressions with good mood can be understood as corresponding facial expressions of happiness, joy, excitement and the like. The higher the satisfaction, the larger the second reference luminance adaptation value, and the lower the satisfaction, the smaller the second reference luminance adaptation value.
A mean value of the first reference luminance adaptive value and the second reference luminance adaptive value may be determined as the target luminance adaptive value, and a minimum value of the first reference luminance adaptive value and the second reference luminance adaptive value may also be determined as the target luminance adaptive value.
The preset brightness adaptation value is set by an empirical value or historical data. The third brightness value can be determined according to the first brightness value, the second brightness value, the brightness value commonly used by the user and the like. The third brightness value can be displayed by adjusting the brightness of the display screen, so that the brightness is adjusted, and the user experience is improved.
In this example, a corresponding first reference brightness adaptation value and a corresponding second reference brightness adaptation value are determined according to the eye information and the facial expression information of the target user, the target brightness adaptation value is determined according to the first reference brightness adaptation value and the second reference brightness adaptation value, and a third brightness value is determined when the target brightness adaptation value is lower than a preset value, so that brightness adjustment is performed by displaying the third brightness value, brightness adjustment can be performed based on feedback information of the user, and accuracy in brightness adjustment is improved.
In a possible implementation manner, a possible method for determining a third luminance value according to at least a first luminance value and the second luminance value includes:
c1, obtaining a display screen brightness value commonly used by the target user;
c2, determining a brightness adjusting value according to the common display screen brightness value and the second brightness value;
and C3, determining the third brightness value according to the brightness adjusting value and the first brightness value.
The brightness value of the display screen commonly used by the target user can be the average value of the brightness values after the brightness is adjusted according to the history of the target user, or the average value of the brightness values left after the highest value and the lowest value of the brightness values after the brightness is adjusted according to the history are removed. Other luminance values are of course possible and are only given by way of example here.
The average value of the commonly used display screen brightness value and the second brightness value may be determined as the brightness adjustment value, or the minimum value of the commonly used display screen brightness value and the second brightness value may be determined as the brightness adjustment value.
The brightness adjustment value and the first brightness value may be subjected to a weighting operation to obtain a third brightness value, for example, a weight of the brightness adjustment value and a weight of the first brightness value are determined, and then the brightness adjustment value and the first brightness value are subjected to a weighting operation according to the weight of the brightness adjustment value and the weight of the first brightness value to obtain the third brightness value.
In this example, the third brightness value is determined according to the brightness value of the display screen and the brightness value of the environment (the second brightness value) commonly used by the target user, so that the accuracy of determining the third brightness value is improved.
In a specific embodiment, the brightness adjusting method is applied to an electronic device, the electronic device includes a key detection module, a brightness control state machine, a clock counter, a PWM signal output module, and a clock frequency division module, and the specific design of the modules is as follows:
(1) The key detection module is designed as follows:
defining the key input signal as key _ in, the low level is active, defining the clock frequency of the clock source input as F1, then one clock period T1=1/F1, defining a count register variable as count _ key, when the key input signal is detected, count _ key = count _ key +1, when count _ key >30, the key detection module outputs the key input signal through key _ out. Assuming that the clock frequency F1 is 1000Hz, when count _ key > =30, the key signal will be output to the brightness control state machine only after the key is pressed for more than 30ms, and this setting can prevent the false triggering caused by the level jitter.
(2) Designing a brightness control state machine:
two operating states are defined: a normal operation state (state _ work) and a brightness adjustment state (state _ light _ ctrl). A register variable PWM _ sign _ reg is defined as the current brightness gear position value. Defining the sampling clock frequency as F2, detecting a key input signal of the key input module at the frequency of F2 in a normal working state, jumping to a brightness adjusting state when the key input signal is detected, wherein PWM _ sign _ reg = PWM _ sign _ reg +1 (or-1) every 1/F2 time, and accumulating the value until the maximum value or the minimum value (the maximum value is the total number of the user-defined gears) if the key input signal is not stopped. When the brightness adjusting key is released, the key input signal is stopped, the state machine jumps back to the normal working state from the brightness adjusting state, and the brightness adjustment is finished.
(3) Designing a clock counter:
defining a clock period of a PWM square wave as T, then the frequency is 1/T, dividing T into N equal parts, obtaining the clock frequency after N equal parts as N times of the clock frequency of the PWM square wave, namely N/T, defining a register variable in a clock counter as count _ PWM, using count _ PWM to count according to the clock frequency after N equal parts (N/T) and comparing with the current gear value, the maximum value of the counter is N, when 0< <countpu PWM < <n, after each T/N clock period, count _ PWM = count _ PWM +1, when count _ PWM = N, count _ PWM =0. A register variable PWM _ sign _ reg in the brightness control state machine is defined as a current gear position value, when count _ PWM > PWM _ sign _ reg, a low level is output, and when count _ PWM < = PWM _ sign _ reg, a high level is output.
When N =10, brightness adjustment of 10 gears can be achieved;
when N =100, the brightness adjustment of 100 gears can be realized;
when N = X (1 < -X < clock source frequency), brightness adjustment of X gears can be realized;
when X is large enough, the screen brightness will exhibit a linear and smooth variation.
(4) Designing a PWM signal output module:
and converting the high and low levels of the clock output by the clock counter into the level for driving the screen backlight by using a level conversion function built in the CPLD.
(5) Designing a clock frequency division module:
and counting by using the clock frequency input by the clock source, and carrying out level inversion in a required clock period to generate a new clock.
If the clock source is to be divided by N, the roll-over parameter = N/2-1. If the clock source is 48M and the target clock frequency is 100K, the roll-over parameter = (48M/100K)/2-1 =239.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another brightness adjustment method according to an embodiment of the present disclosure. As shown in fig. 2, the brightness adjusting method is applied to an electronic device, and includes:
201. acquiring brightness adjusting information input through a brightness adjusting key, wherein the brightness adjusting information comprises a brightness adjusting trend and key pressing duration;
202. determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value;
203. determining a target brightness control signal according to the target brightness gear value;
204. adjusting the brightness of the display screen according to the target brightness control signal;
205. acquiring a face image of a target user;
206. determining eye information and facial expression information of the target user according to the facial image;
207. determining a first reference brightness adaptive value of the target user according to the eye information;
208. determining a second reference brightness adaptive value of the target user according to the facial expression information;
209. determining a target brightness adaptive value according to the first reference brightness adaptive value and the second reference brightness adaptive value;
210. if the target brightness adaptation value is lower than a preset brightness adaptation value, acquiring a first brightness value of the display screen after brightness adjustment is performed on the display screen according to the target brightness control signal;
211. acquiring a second brightness value, wherein the second brightness value is an environment brightness value;
212. determining a third luminance value at least according to the first luminance value and the second luminance value;
213. and displaying the third brightness value.
In this example, a corresponding first reference brightness adaptation value and a corresponding second reference brightness adaptation value are determined according to the eye information and the facial expression information of the target user, the target brightness adaptation value is determined according to the first reference brightness adaptation value and the second reference brightness adaptation value, and a third brightness value is determined when the target brightness adaptation value is lower than a preset value, so that brightness adjustment is performed by displaying the third brightness value, brightness adjustment can be performed based on feedback information of the user, and accuracy in brightness adjustment is improved.
In accordance with the foregoing embodiments, please refer to fig. 3, fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present application, and as shown in the drawing, the terminal includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program, the computer program includes program instructions, the processor is configured to call the program instructions, and the program includes instructions for executing the following steps;
acquiring brightness adjusting information input through a brightness adjusting key, wherein the brightness adjusting information comprises a brightness adjusting trend and key pressing duration;
determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value;
determining a target brightness control signal according to the target brightness gear value;
and adjusting the brightness of the display screen according to the target brightness control signal.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the terminal includes corresponding hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed in 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 application.
In the embodiment of the present application, the terminal may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In accordance with the above, please refer to fig. 4, fig. 4 is a schematic structural diagram of a brightness adjusting apparatus according to an embodiment of the present disclosure. As shown in fig. 4, the apparatus includes:
an obtaining unit 401, configured to obtain brightness adjustment information input through a brightness adjustment key, where the brightness adjustment information includes a brightness adjustment trend and a key press duration;
a first determining unit 402, configured to determine a target brightness gear value according to the key pressing duration, the brightness adjustment trend, and the current brightness gear value;
a second determination unit 403 for determining a target luminance control signal according to the target luminance range value;
and an adjusting unit 404, configured to perform brightness adjustment on the display screen according to the target brightness control signal.
In one possible implementation manner, the target brightness control signal includes a PWM signal, and the second determining unit 403 is configured to include:
determining a target duty ratio according to the target brightness gear value;
and determining the PWM signal according to the target duty ratio.
In one possible implementation manner, the first determining unit 402 is configured to:
and if the case pressing duration is higher than a preset threshold, determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value.
In one possible implementation, the apparatus is further configured to:
acquiring a face image of a target user;
determining eye information and facial expression information of the target user according to the face image;
determining a first reference brightness adaptive value of the target user according to the eye information;
determining a second reference brightness adaptive value of the target user according to the facial expression information;
determining a target brightness adaptive value according to the first reference brightness adaptive value and the second reference brightness adaptive value;
if the target brightness adaptation value is lower than a preset brightness adaptation value, acquiring a first brightness value of the display screen after brightness adjustment is performed on the display screen according to the target brightness control signal;
acquiring a second brightness value, wherein the second brightness value is an environment brightness value;
determining a third luminance value at least according to the first luminance value and the second luminance value;
and displaying the third brightness value.
In a possible implementation manner, in the determining a third luminance value according to at least the first luminance value and the second luminance value, the apparatus is further configured to:
acquiring a display screen brightness value commonly used by the target user;
determining a brightness adjusting value according to the common display screen brightness value and the second brightness value;
determining the third brightness value according to the brightness adjustment value and the first brightness value
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 causes a computer to execute part or all of the steps of any one of the brightness adjustment methods 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 several 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 apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, indirect coupling or communication connection between devices or units, and may be in an electrical 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 invention may be integrated into one processing unit, or each of the units 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 solutions of the present application, in essence or part of the technical solutions contributing to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned memory comprises: various media that can store program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Those skilled in the art will appreciate that all or part of the steps of the methods of the above embodiments may be implemented by a program, which is stored in a computer-readable memory, the memory including: flash memory disks, read-only memory, random access memory, magnetic or optical disks, 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, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A method of adjusting brightness, the method comprising:
acquiring brightness adjusting information input through a brightness adjusting key, wherein the brightness adjusting information comprises a brightness adjusting trend and key pressing duration;
determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value;
determining a target brightness control signal according to the target brightness gear value;
adjusting the brightness of the display screen according to the target brightness control signal;
the method further comprises the following steps:
acquiring a face image of a target user;
determining eye information and facial expression information of the target user according to the face image;
determining a first reference brightness adaptive value of the target user according to the eye information;
determining a second reference brightness adaptive value of the target user according to the facial expression information;
determining a target brightness adaptive value according to the first reference brightness adaptive value and the second reference brightness adaptive value;
if the target brightness adaptation value is lower than a preset brightness adaptation value, acquiring a first brightness value of the display screen after brightness adjustment is performed on the display screen according to the target brightness control signal;
acquiring a second brightness value, wherein the second brightness value is an environment brightness value;
determining a third luminance value at least according to the first luminance value and the second luminance value;
and displaying the third brightness value. .
2. The method of claim 1, wherein the target brightness control signal comprises a PWM signal, and wherein determining the target brightness control signal based on the target brightness stage value comprises:
determining a target duty ratio according to the target brightness gear value;
and determining the PWM signal according to the target duty ratio.
3. The method according to claim 1 or 2, wherein the determining a target brightness range value according to the key press duration, the brightness adjustment trend and the current brightness range value comprises:
and if the key pressing duration is higher than a preset threshold value, determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value.
4. The method of claim 1, wherein determining a third luminance value based on at least the first luminance value and the second luminance value comprises:
acquiring a display screen brightness value commonly used by the target user;
determining a brightness adjusting value according to the common display screen brightness value and the second brightness value;
and determining the third brightness value according to the brightness adjusting value and the first brightness value.
5. A luminance adjustment apparatus, characterized in that the apparatus comprises:
the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring brightness adjustment information input through a brightness adjustment key, and the brightness adjustment information comprises a brightness adjustment trend and key pressing duration;
the first determining unit is used for determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value;
a second determination unit for determining a target brightness control signal according to the target brightness gear value;
the adjusting unit is used for adjusting the brightness of the display screen according to the target brightness control signal;
the apparatus is further configured to:
acquiring a face image of a target user;
determining eye information and facial expression information of the target user according to the facial image;
determining a first reference brightness adaptive value of the target user according to the eye information;
determining a second reference brightness adaptive value of the target user according to the facial expression information;
determining a target brightness adaptive value according to the first reference brightness adaptive value and the second reference brightness adaptive value;
if the target brightness adaptation value is lower than a preset brightness adaptation value, acquiring a first brightness value of the display screen after brightness adjustment is performed on the display screen according to the target brightness control signal;
acquiring a second brightness value, wherein the second brightness value is an environment brightness value;
determining a third luminance value at least according to the first luminance value and the second luminance value;
and displaying the third brightness value.
6. The apparatus of claim 5, wherein the target brightness control signal comprises a PWM signal, and wherein the second determining unit is configured to comprise:
determining a target duty ratio according to the target brightness gear value;
and determining the PWM signal according to the target duty ratio.
7. The apparatus according to claim 5 or 6, wherein the determining unit is configured to:
and if the key pressing duration is higher than a preset threshold value, determining a target brightness gear value according to the key pressing duration, the brightness adjusting trend and the current brightness gear value.
8. A terminal, characterized in that it comprises a processor, an input device, an output device and a memory, said processor, input device, output device and memory being interconnected, wherein said memory is used to store a computer program comprising program instructions, said processor being configured to invoke said program instructions to perform the method according to any of the claims 1-4.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-4.
CN202111248256.0A 2021-10-26 2021-10-26 Brightness adjusting method and related device Active CN113889056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111248256.0A CN113889056B (en) 2021-10-26 2021-10-26 Brightness adjusting method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111248256.0A CN113889056B (en) 2021-10-26 2021-10-26 Brightness adjusting method and related device

Publications (2)

Publication Number Publication Date
CN113889056A CN113889056A (en) 2022-01-04
CN113889056B true CN113889056B (en) 2023-01-31

Family

ID=79014460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111248256.0A Active CN113889056B (en) 2021-10-26 2021-10-26 Brightness adjusting method and related device

Country Status (1)

Country Link
CN (1) CN113889056B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114464144B (en) * 2022-01-28 2023-06-20 昆山龙腾光电股份有限公司 Brightness adjustment display method, brightness adjustment display system and liquid crystal display device
CN114828362B (en) * 2022-06-29 2022-11-08 深圳市天翊瑞霖智能科技有限公司 Intelligent lamp control method and system based on wireless lighting switch
CN115315047A (en) * 2022-09-06 2022-11-08 中国第一汽车股份有限公司 Method and device for adjusting brightness of lamp in automobile room, electronic equipment and medium
CN116802960A (en) * 2022-10-09 2023-09-22 深圳安培时代数字能源科技有限公司 State adjusting method and related device of energy storage battery
CN115512674A (en) * 2022-10-13 2022-12-23 维沃移动通信有限公司 Brightness adjusting method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362185A (en) * 2018-04-09 2019-10-22 努比亚技术有限公司 Control method, terminal and the computer readable storage medium that screen intensity is adjusted

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107170423B (en) * 2017-07-04 2020-10-20 深圳传音通讯有限公司 Mobile terminal and mobile terminal screen brightness adjusting method
CN109951595A (en) * 2017-12-20 2019-06-28 广东欧珀移动通信有限公司 Intelligence adjusts method, apparatus, storage medium and the mobile terminal of screen intensity
CN109637500A (en) * 2019-02-01 2019-04-16 昆山国显光电有限公司 The method and virtual reality glasses of adjust automatically screen display brightness
CN109995942B (en) * 2019-03-28 2021-03-30 中国医学科学院生物医学工程研究所 Eye protection method and system for intelligent terminal
WO2021068256A1 (en) * 2019-10-12 2021-04-15 深圳海付移通科技有限公司 Method for relieving eye strain and intelligent teriminal
CN111862899A (en) * 2020-07-30 2020-10-30 Oppo广东移动通信有限公司 Control method and electronic device
CN112218414A (en) * 2020-09-08 2021-01-12 南京飞赫电器有限公司 Method and system for adjusting brightness of self-adaptive equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362185A (en) * 2018-04-09 2019-10-22 努比亚技术有限公司 Control method, terminal and the computer readable storage medium that screen intensity is adjusted

Also Published As

Publication number Publication date
CN113889056A (en) 2022-01-04

Similar Documents

Publication Publication Date Title
CN113889056B (en) Brightness adjusting method and related device
CN110716592B (en) Temperature control method and related equipment
CN102984352B (en) Method and device of adjusting of screen luminance of terminal and terminal
CN106681635A (en) Method and device for preventing split screen touch by mistake and mobile terminal
CN107249084B (en) Mobile terminal, program calling method and computer-readable storage medium
CN109283996B (en) Display control method and related product
CN108874134A (en) Eyeshield mode treatment method, mobile terminal and computer readable storage medium
CN106648326B (en) The method and mobile terminal of screen time is put out in adjustment
CN105045516B (en) The changing method and terminal of a kind of mode of operation
CN107450801A (en) A kind of control method of screen display, device, storage medium and mobile terminal
CN115443645A (en) Screen brightness adjusting method, terminal and storage medium
EP3846015A1 (en) Window adjustment method, window adjustment device and mobile terminal
KR20200102491A (en) User interface display method, apparatus and device
CN106909250A (en) A kind of processing method of touch operation, device and mobile terminal
US20050064916A1 (en) User cognitive electronic device
CN106155536B (en) A kind of control method and electronic equipment
CN107885435A (en) A kind of display control method, terminal and computer-readable medium
CN110618852B (en) View processing method, view processing device and terminal equipment
CN108279957A (en) A kind of virtual key display methods and terminal
CN108704307A (en) Processing method, device, storage medium and the electronic device of touch information
CN105739771A (en) Display interface management method and device as well as terminal
CN104980582B (en) The switching method and mobile terminal of a kind of screen
CN107437018B (en) Mobile terminal, control method thereof, and computer-readable storage medium
CN110149427B (en) Camera control method and related product
CN111213354A (en) Screen brightness adjusting method and 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