CN113889056A - Brightness adjusting method and related device - Google Patents

Brightness adjusting method and related device Download PDF

Info

Publication number
CN113889056A
CN113889056A CN202111248256.0A CN202111248256A CN113889056A CN 113889056 A CN113889056 A CN 113889056A CN 202111248256 A CN202111248256 A CN 202111248256A CN 113889056 A CN113889056 A CN 113889056A
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.)
Granted
Application number
CN202111248256.0A
Other languages
Chinese (zh)
Other versions
CN113889056B (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 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 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 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 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 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;
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 one 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 one possible implementation manner, the first determining unit is configured to:
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 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 flow chart of another brightness adjustment method according to an 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 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 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 one 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 the pressing by mistake, the time can be counted after a preset time period after the user presses the brightness adjusting key until the user stops pressing, so as to obtain the 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.
After the case pressing time is higher than the preset threshold value, the target brightness gear value can be determined according to the key pressing time, the brightness adjusting trend and the current brightness gear value. The preset threshold may be set by an empirical value 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 press duration, the brightness adjustment trend and the current brightness range value comprises the following steps:
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 brightness gear value is associated with the target duty ratio, and the larger the target brightness gear value is, the higher the target duty ratio is, and the smaller the target brightness gear value is, the lower the target duty ratio is. Specifically, the target duty ratio corresponding to the target brightness gear value may be determined through a preset mapping relationship between the brightness gear value and the duty ratio, and the mapping relationship is set through 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 the 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 performed 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 luminance value at least according to the first luminance value and the second luminance value;
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 expression with poor mood can be understood as the facial expression corresponding to sadness, anger and the like, and the facial expression with good mood can be understood as the facial expression corresponding to 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, a possible method of determining a third luminance value at least based on a first luminance value and the second luminance value comprises:
c1, obtaining the brightness value of the display screen 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 illustrated here by way of example.
The average value of the common display screen brightness value and the second brightness value may be determined as the brightness adjustment value, or the minimum value of the common 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 weighted 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 weighted 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, defining a count register variable as count _ key, when the key input signal is detected, the count _ key is equal to count _ key +1, and when the count _ key >30, the key detection module outputs the key input signal through key _ out. Assuming that the clock frequency F1 is 1000Hz, when the count _ key > is 30, the key signal is output to the brightness control state machine only for 30ms or more, which prevents 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 the key input signal of the key input module at the frequency of F2 in the normal working state, jumping to the brightness adjusting state when the key input signal is detected, at this time, every 1/F2 time, PWM _ sign _ reg is PWM _ sign _ reg +1 (or-1), if the key input signal is not stopped, the number value is accumulated until the maximum value or the minimum value (the maximum value is the total number of the self-defined gears). When the brightness adjusting key is released, the key input signal stops, 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 PWM square wave clock frequency, 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< count _ PWM < N, after each T/N clock period, count _ PWM is equal to count _ PWM +1, when count _ PWM is equal to N, count _ PWM is equal to 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 is 10, brightness adjustment of 10 gears can be realized;
when N is 100, the brightness adjustment of 100 gears can be realized;
when N is 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 flip parameter is N/2-1. If the clock source is 48M and the target clock frequency is 100K, the roll-over parameter (48M/100K)/2-1 is 239.
Referring to fig. 2, fig. 2 is a schematic flow chart 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 face 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, and 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 performing 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 as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the terminal may be divided into the functional units according to the above 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 can be realized in a form of hardware, and can also be realized in a 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 device according to an embodiment of the present application. 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 determining unit 403, configured to determine a target brightness control signal according to the target brightness gear value;
and the adjusting unit 404 is 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 value, 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 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;
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 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 invention 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 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, 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 (10)

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;
and adjusting the brightness of the display screen according to the target brightness control signal.
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 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.
4. The method of claim 3, further comprising:
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.
5. The method of claim 4, wherein determining a third luminance value based on at least the first luminance value and the second luminance value comprises:
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.
6. 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;
and the adjusting unit is used for adjusting the brightness of the display screen according to the target brightness control signal.
7. The apparatus of claim 6, 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.
8. The apparatus according to claim 6 or 7, wherein the determining unit is configured to:
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.
9. A terminal, comprising a processor, an input device, an output device, and a memory, the processor, the input device, the output device, and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-5.
10. 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-5.
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 true CN113889056A (en) 2022-01-04
CN113889056B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114464144A (en) * 2022-01-28 2022-05-10 昆山龙腾光电股份有限公司 Brightness adjusting display method, brightness adjusting display system and liquid crystal display device
CN114828362A (en) * 2022-06-29 2022-07-29 深圳市天翊瑞霖智能科技有限公司 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
WO2023116128A1 (en) * 2022-10-09 2023-06-29 深圳安培时代数字能源科技有限公司 State adjustment method for energy storage battery, and related apparatus

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107170423A (en) * 2017-07-04 2017-09-15 深圳传音通讯有限公司 Mobile terminal and mobile terminal screen luminance regulating method
CN109637500A (en) * 2019-02-01 2019-04-16 昆山国显光电有限公司 The method and virtual reality glasses of adjust automatically screen display brightness
CN109951595A (en) * 2017-12-20 2019-06-28 广东欧珀移动通信有限公司 Intelligence adjusts method, apparatus, storage medium and the mobile terminal of screen intensity
CN110362185A (en) * 2018-04-09 2019-10-22 努比亚技术有限公司 Control method, terminal and the computer readable storage medium that screen intensity is adjusted
CN111699698A (en) * 2019-10-12 2020-09-22 深圳海付移通科技有限公司 Eye fatigue relieving method and intelligent terminal
US20200312274A1 (en) * 2019-03-28 2020-10-01 Chinese Academy of Medical Sciences & Peking Union Medical College Institute of Biomedical Engineeri Eye Protection Method And System For Intelligent Terminal
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 (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107170423A (en) * 2017-07-04 2017-09-15 深圳传音通讯有限公司 Mobile terminal and mobile terminal screen luminance regulating method
CN109951595A (en) * 2017-12-20 2019-06-28 广东欧珀移动通信有限公司 Intelligence adjusts method, apparatus, storage medium and the mobile terminal of screen intensity
CN110362185A (en) * 2018-04-09 2019-10-22 努比亚技术有限公司 Control method, terminal and the computer readable storage medium that screen intensity is adjusted
CN109637500A (en) * 2019-02-01 2019-04-16 昆山国显光电有限公司 The method and virtual reality glasses of adjust automatically screen display brightness
US20200312274A1 (en) * 2019-03-28 2020-10-01 Chinese Academy of Medical Sciences & Peking Union Medical College Institute of Biomedical Engineeri Eye Protection Method And System For Intelligent Terminal
CN111699698A (en) * 2019-10-12 2020-09-22 深圳海付移通科技有限公司 Eye fatigue relieving method and intelligent terminal
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114464144A (en) * 2022-01-28 2022-05-10 昆山龙腾光电股份有限公司 Brightness adjusting display method, brightness adjusting display system and liquid crystal display device
CN114828362A (en) * 2022-06-29 2022-07-29 深圳市天翊瑞霖智能科技有限公司 Intelligent lamp control method and system based on wireless lighting switch
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
WO2023116128A1 (en) * 2022-10-09 2023-06-29 深圳安培时代数字能源科技有限公司 State adjustment method for energy storage battery, and related apparatus

Also Published As

Publication number Publication date
CN113889056B (en) 2023-01-31

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
CN106528389B (en) Performance evaluation method and device for system fluency and terminal
CN106681635A (en) Method and device for preventing split screen touch by mistake and mobile terminal
CN109283996B (en) Display control method and related product
CN104317395B (en) Information processing method and electronic equipment
CN108712559B (en) Disturbance-free method, system, terminal equipment and computer readable storage medium
CN106648326B (en) The method and mobile terminal of screen time is put out in adjustment
CN107450801A (en) A kind of control method of screen display, device, storage medium and mobile terminal
CN108874134A (en) Eyeshield mode treatment method, mobile terminal and computer readable storage medium
CN115443645A (en) Screen brightness adjusting method, terminal and storage medium
EP3846015A1 (en) Window adjustment method, window adjustment device and mobile terminal
CN113452834B (en) Display method and device, storage medium and electronic equipment
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
CN107734121B (en) Volume control method and device, storage medium and electronic equipment
CN105739771B (en) A kind of display interface management method, device and terminal
CN111213354A (en) Screen brightness adjusting method and terminal
CN114495863A (en) Screen brightness control method, device, equipment, storage medium and program product
CN104516481B (en) A kind of information processing method and electronic equipment
CN107437018B (en) Mobile terminal, control method thereof, and computer-readable storage medium

Legal Events

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