CN112289278A - Screen brightness adjusting method, screen brightness adjusting device and electronic equipment - Google Patents

Screen brightness adjusting method, screen brightness adjusting device and electronic equipment Download PDF

Info

Publication number
CN112289278A
CN112289278A CN202011166454.8A CN202011166454A CN112289278A CN 112289278 A CN112289278 A CN 112289278A CN 202011166454 A CN202011166454 A CN 202011166454A CN 112289278 A CN112289278 A CN 112289278A
Authority
CN
China
Prior art keywords
brightness value
brightness
value
screen
factor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011166454.8A
Other languages
Chinese (zh)
Inventor
罗楚成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011166454.8A priority Critical patent/CN112289278A/en
Publication of CN112289278A publication Critical patent/CN112289278A/en
Pending legal-status Critical Current

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)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a screen brightness adjusting method, a screen brightness adjusting device and electronic equipment, and belongs to the technical field of terminals. The screen brightness adjusting method comprises the following steps: determining an initial brightness value according to the ambient brightness; obtaining a target brightness value according to the brightness adjusting parameter and the initial brightness value; wherein the brightness adjustment parameters include: the brightness value and/or the sight angle of the current display image in the screen; the sight line angle is an included angle between a sight line of a user watching the screen and the screen; and adjusting the current brightness value of the screen to the target brightness value. According to the method and the device, the brightness value and/or the sight angle of the current display image in the screen are/is used as parameters corresponding to some special scenes, so that the parameters corresponding to the special scenes are taken into consideration, and the screen with the target brightness value can meet the user requirements in the special scenes.

Description

Screen brightness adjusting method, screen brightness adjusting device and electronic equipment
Technical Field
The application belongs to the technical field of terminals, and particularly relates to a screen brightness adjusting method, a screen brightness adjusting device and electronic equipment.
Background
With the rapid development of terminal technology, the terminal devices are used more and more widely in life. Taking a cell phone as an example, most people often spend hours working, entertaining, and living on a cell phone each day.
At present, the brightness of a screen of a mobile phone is automatically adjusted based on the brightness of the environment where the mobile phone is located. Specifically, the brightness of the environment is detected through an environment light sensor arranged in the mobile phone, so that the brightness of the mobile phone screen is adjusted according to the brightness of the environment. For example, in a dim environment, the brightness of the mobile phone screen is adjusted to a lower value due to the lower ambient brightness, so that the stimulation to human eyes due to the higher brightness of the mobile phone screen is avoided.
However, in some special scenarios, although the ambient brightness is not changed, the screen brightness still needs to be adjusted to meet the user's needs.
Disclosure of Invention
The embodiment of the application aims to provide a screen brightness adjusting method, a screen brightness adjusting device and electronic equipment, and can solve the problem that a screen brightness adjusting mode in the prior art cannot meet user requirements in some special scenes.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a screen brightness adjusting method, where the screen brightness adjusting method includes:
determining an initial brightness value according to the ambient brightness;
obtaining a target brightness value according to the brightness adjusting parameter and the initial brightness value; wherein the brightness adjustment parameters include: the brightness value and/or the sight angle of the current display image in the screen; the sight line angle is an included angle between a sight line of a user watching the screen and the screen;
and adjusting the current brightness value of the screen to the target brightness value.
Optionally, in a case that the brightness adjustment parameter only includes a brightness value of a currently displayed image in a screen, obtaining a target brightness value according to the brightness adjustment parameter and the initial brightness value includes:
determining the average brightness value of the pixel points according to the brightness value of each pixel point in the current display image;
determining the ratio of the brightness average value to the maximum brightness value as a first adjusting factor; the maximum brightness value is the maximum value in the value range of the brightness value of the pixel point;
obtaining a target brightness value according to a first preset formula, the first adjusting factor and the initial brightness value; under the condition that the initial brightness value is not changed, the larger the first adjusting factor is, the smaller the obtained target brightness value is; and the target brightness value obtained when the first adjustment factor is greater than a preset threshold value is smaller than the initial brightness value, and the target brightness value obtained when the first adjustment factor is smaller than a preset threshold value is greater than the initial brightness value.
Optionally, the first preset formula includes: luminescence _ final ═ luminescence _ base × (1.25-0.5 × factor 1);
wherein the luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor1 represents a first adjustment factor.
Optionally, in a case that the brightness adjustment parameter only includes a view angle, obtaining a target brightness value according to the brightness adjustment parameter and the initial brightness value includes:
determining the sine value of the complementary angle of the sight line angle as a second adjusting factor;
obtaining a target brightness value according to a second preset formula, the second adjusting factor and the initial brightness value; under the condition that the initial brightness value is not changed, the larger the second adjusting factor is, the larger the obtained target brightness value is; and the resulting target luminance value is greater than or equal to the initial luminance value.
Optionally, the second preset formula includes: luminescence _ final ═ luminescence _ base × (1+ factor 2);
wherein the luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor2 represents a second regulatory factor.
Optionally, obtaining a target brightness value according to the brightness adjustment parameter and the initial brightness value under the condition that the brightness adjustment parameter includes a brightness value of a current display image in a screen and the view angle, includes:
determining the average brightness value of the pixel points according to the brightness value of each pixel point in the current display image;
determining the ratio of the brightness average value to the maximum brightness value as a first adjusting factor; the maximum brightness value is the maximum value in the value range of the brightness value of the pixel point;
determining the sine value of the complementary angle of the sight line angle as a second adjusting factor;
obtaining a target brightness value according to a third preset formula, the first adjusting factor, the second adjusting factor and the initial brightness value;
wherein the third preset formula comprises: luminescence _ final ═ luminescence _ base × (1.25-0.5 × factor1) + (1+ factor 2); luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor1 represents the first regulatory factor and factor2 represents the second regulatory factor.
In a second aspect, an embodiment of the present application provides a screen brightness adjusting apparatus, including:
the first brightness value module is used for determining an initial brightness value according to the environment brightness;
the second brightness value module is used for obtaining a target brightness value according to the brightness adjusting parameter and the initial brightness value; wherein the brightness adjustment parameters include: the brightness value and/or the sight angle of the current display image in the screen; the sight line angle is an included angle between a sight line of a user watching the screen and the screen;
and the adjusting module is used for adjusting the current brightness value of the screen to the target brightness value.
Optionally, in a case that the brightness adjustment parameter only includes a brightness value of a currently displayed image in a screen, the second brightness value module includes:
the first determining unit is used for determining the average brightness value of the pixel points according to the brightness value of each pixel point in the current display image;
the second determining unit is used for determining the ratio of the brightness average value to the maximum brightness value as a first adjusting factor; the maximum brightness value is the maximum value in the value range of the brightness value of the pixel point;
the first brightness value unit is used for obtaining a target brightness value according to a first preset formula, the first adjusting factor and the initial brightness value; under the condition that the initial brightness value is not changed, the larger the first adjusting factor is, the smaller the obtained target brightness value is; and the target brightness value obtained when the first adjustment factor is greater than a preset threshold value is smaller than the initial brightness value, and the target brightness value obtained when the first adjustment factor is smaller than a preset threshold value is greater than the initial brightness value.
Optionally, the first preset formula includes: luminescence _ final ═ luminescence _ base × (1.25-0.5 × factor 1);
wherein the luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor1 represents a first adjustment factor.
Optionally, in a case that the brightness adjustment parameter only includes a line of sight angle, the second brightness value module includes:
a third determining unit, configured to determine a sine value of a residual angle of the gaze angle as a second adjustment factor;
the second brightness value unit is used for obtaining a target brightness value according to a second preset formula, the second adjusting factor and the initial brightness value; under the condition that the initial brightness value is not changed, the larger the second adjusting factor is, the larger the obtained target brightness value is; and the resulting target luminance value is greater than or equal to the initial luminance value.
Optionally, the second preset formula includes: luminescence _ final ═ luminescence _ base × (1+ factor 2);
wherein the luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor2 represents a second regulatory factor.
Optionally, in a case that the brightness adjustment parameter includes a brightness value of a currently displayed image on a screen and the view angle, the second brightness value module includes:
the first determining unit is used for determining the average brightness value of the pixel points according to the brightness value of each pixel point in the current display image;
the second determining unit is used for determining the ratio of the brightness average value to the maximum brightness value as a first adjusting factor; the maximum brightness value is the maximum value in the value range of the brightness value of the pixel point;
a third determining unit, configured to determine a sine value of a residual angle of the gaze angle as a second adjustment factor;
the third brightness unit is used for obtaining a target brightness value according to a third preset formula, the first adjusting factor, the second adjusting factor and the initial brightness value;
wherein the third preset formula comprises: luminescence _ final ═ luminescence _ base × (1.25-0.5 × factor1) + (1+ factor 2); luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor1 represents the first regulatory factor and factor2 represents the second regulatory factor.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or an instruction stored on the memory and executable on the processor, and when the program or the instruction is executed by the processor, the method of adjusting screen brightness according to the first aspect is implemented.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the steps of the screen brightness adjustment method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the screen brightness adjustment method according to the first aspect.
In the embodiment of the application, the brightness value and/or the sight angle of the currently displayed image in the screen are used as parameters corresponding to some special scenes. After the initial brightness value is determined according to the environment brightness, the target brightness value is obtained according to the initial brightness value and the parameters corresponding to the special scene, and the parameters corresponding to the special scene are taken into account, so that the screen with the target brightness value can meet the user requirements in the special scene.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for adjusting screen brightness according to an embodiment of the present disclosure;
FIG. 2 is a comparison diagram of the display effect of the screen under the same ambient brightness;
FIG. 3 is a schematic illustration of the complement of the gaze angle;
fig. 4 is a block diagram of a screen brightness adjusting device provided in an embodiment of the present application;
fig. 5 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure.
Fig. 6 is a second schematic diagram of a hardware structure of an electronic 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 some, but not all, embodiments of the present application. 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 in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The screen brightness adjusting method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
As shown in fig. 1, a screen brightness adjusting method provided in an embodiment of the present application includes:
step 101, determining an initial brightness value according to the ambient brightness.
In this step, different ambient brightness values correspond to different initial brightness values. Acquiring an environment brightness value environment _ lux1 of the environment where the electronic device is located through an environment photosensitive sensor; and then determining the screen brightness luminous _ base corresponding to the environment _ lux1 according to a preset mapping table of the environment brightness and the screen brightness in the electronic equipment, wherein the numerical value of the luminous _ base is the initial brightness value determined according to the environment brightness.
And 102, obtaining a target brightness value according to the brightness adjusting parameter and the initial brightness value.
In this step, the brightness adjustment parameters include: the brightness value and/or the sight angle of the current display image in the screen; the sight angle is an included angle between the sight line of the user when the user watches the screen and the screen. And taking the brightness value and/or the sight angle of the current display image in the screen as parameters corresponding to some special scenes, and adjusting the initial brightness value according to the parameters corresponding to the special scenes to obtain a target brightness value. Here, the target luminance value may be greater than, less than, or equal to the initial luminance value.
Step 103, adjusting the current brightness value of the screen to a target brightness value.
In this step, the brightness of the screen is adjusted by adjusting the current brightness value to the target brightness value. Preferably, the steps 101 to 103 can be executed in a loop to adjust the screen brightness in real time, but is not limited thereto.
In the embodiment of the application, the brightness value and/or the sight angle of the current display image in the screen are/is used as parameters corresponding to some special scenes. After the initial brightness value is determined according to the environment brightness, the target brightness value is obtained according to the initial brightness value and the parameters corresponding to the special scene, and the parameters corresponding to the special scene are taken into account, so that the screen with the target brightness value can meet the user requirements in the special scene.
Optionally, in a case that the brightness adjustment parameter only includes a brightness value of a currently displayed image in the screen, obtaining a target brightness value according to the brightness adjustment parameter and the initial brightness value includes:
and determining the average brightness value of the pixel points according to the brightness value of each pixel point in the current display image.
In this step, the brightness value of each pixel in the current display image is obtained first, and then the average value operation is performed to obtain the brightness average value. Here, the luminance value of each pixel in the currently displayed image may be the luminance value of the pixel determined when the image is generated; the brightness values of the pixels in the frame buffer after mapping the image to the frame buffer may also be used. When the brightness value of the pixel is obtained, if the image or the frame buffer carries out color coding based on a YUV pixel format, the brightness value of the pixel can be directly obtained; where Y in YUV denotes luminance and UV denotes color and chrominance, respectively. If the image or the frame buffer carries out color coding based on the RGB pixel format, the RGB pixel format can be converted into the YUV pixel format, and then the brightness value of the pixel is obtained; where R in RGB represents red, G represents green, and B represents blue.
And determining the ratio of the brightness average value to the maximum brightness value as a first adjusting factor.
In this step, the maximum brightness value is the maximum value in the value range of the brightness value of the pixel point. The value range of the brightness value of the pixel point is determined according to the bit depth. Where bit depth refers to the bit depth that a computer actually needs for each pixel when recording the color of a digital image. If the bit depth is 8, the value range of the brightness value of the pixel point is [0, 2 ]8-1]Then the maximum value in the value range is 281, i.e. 255. Therefore, the value range of the first adjustment factor obtained by calculation is [0, 1]]. Wherein, the larger the value of the first adjustment factor is, the brighter the current display image is; a smaller value of the first adjustment factor indicates a darker current display image itself.
And obtaining a target brightness value according to a first preset formula, a first adjusting factor and an initial brightness value.
In this step, under the condition that the initial brightness value is not changed, the larger the first adjustment factor is, the smaller the obtained target brightness value is; and the target brightness value obtained under the condition that the first adjusting factor is greater than the preset threshold value is less than the initial brightness value, and the target brightness value obtained under the condition that the first adjusting factor is less than the preset threshold value is greater than the initial brightness value. Since the larger the value of the first adjustment factor is, the brighter the currently displayed image itself is, when the value is greater than the preset threshold, the image displayed in the screen can be seen clearly without the need of too large screen brightness, and the target brightness value can be determined to be a value smaller than the initial brightness value. Similarly, the smaller the value of the first adjustment factor is, the darker the currently displayed image itself is, when the value of the first adjustment factor is smaller than the preset threshold, the image displayed in the screen can be seen clearly by increasing the screen brightness, and the target brightness value can be determined to be a value larger than the initial brightness value. The preset threshold value can be determined according to the value range of the first adjusting factor.
Specifically, the first preset formula includes: luminescence _ final ═ luminescence _ base × (1.25-0.5 × factor 1);
wherein the luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor1 represents a first adjustment factor. The first preset formula comprises information of a preset threshold, and when the value of the first adjusting factor is greater than 0.5, the luminance _ final is smaller than the luminance _ base; when the value of the first adjustment factor is less than 0.5, the luminance _ final is greater than the luminance _ base, so the preset threshold is 0.5. The preset threshold is not limited to 0.5, and may be any value greater than 0 and less than 1. It should be noted that, according to different preset thresholds, the above first preset formula may be modified so that the target brightness value obtained when the first adjustment factor is greater than the preset threshold is smaller than the initial brightness value, and the target brightness value obtained when the first adjustment factor is smaller than the preset threshold is greater than the initial brightness value.
For example, the first preset formula may also be: luminescence _ final ═ luminescence _ base × (1.3-0.5 × factor 1); wherein the luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor1 represents a first adjustment factor. At this time, the preset threshold is 0.6.
As shown in fig. 2, three of the drawings are drawings that are all played by the electronic device in an environment with the same ambient brightness. The first image from the left in fig. 2 is an effect image when the screen displays an image of a daytime scene; the second graph is an effect graph when the screen displays an image of a night scene when the screen brightness is not changed; the third graph is an effect graph when the screen displays an image of a night scene after the screen brightness is adjusted. Therefore, the screen brightness adjusting method can enable a user to see the image displayed on the screen more easily.
In the embodiment of the application, a first adjusting factor indicating the brightness of the image is determined according to the brightness value in the current display image. The initial brightness value is adjusted according to the first adjusting factor to obtain the target brightness value, the screen display brightness can be flexibly adjusted according to the brightness of the image under the scene of watching images with different brightness, and the phenomenon that human eyes are stimulated due to overlarge screen brightness is avoided while the user can clearly see the image in the screen is guaranteed.
Optionally, obtaining the target brightness value according to the brightness adjustment parameter and the initial brightness value under the condition that the brightness adjustment parameter only includes the view angle, includes:
and determining the sine value of the complementary angle of the sight line angle as a second adjusting factor.
In this step, the viewing angle is an angle between a straight line and a plane, and the angle is an acute angle or a right angle. The complement of the viewing angle can be seen in fig. 3, where the included angle a is the complement of the viewing angle. It is understood that the value of the second adjustment factor is [0, 1 ]. The smaller the value of the second adjustment factor, the closer the user looks at the screen, the more the state of the screen is vertical.
And obtaining a target brightness value according to a second preset formula, a second adjusting factor and the initial brightness value.
In this step, under the condition that the initial brightness value is not changed, the larger the second adjustment factor is, the larger the obtained target brightness value is; and the resulting target luminance value is greater than or equal to the initial luminance value. The smaller the value of the second adjustment factor is, the closer the sight line of the user is to the state of being vertical to the screen when the user watches the screen is, and the more light rays emitted by the screen enter the eyes of the user at the moment, so that the larger screen brightness does not need to be improved. Since the larger the value of the second adjustment factor is, the farther the user looks at the screen from the vertical screen, the less light rays emitted from the screen enter the eyes of the user, and thus the greater the screen brightness needs to be improved.
Specifically, the second preset formula includes: luminescence _ final ═ luminescence _ base × (1+ factor 2);
wherein the luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor2 represents a second regulatory factor. Of course, the second preset formula is not limited thereto, and may be any formula satisfying the target condition; under the condition that the initial brightness value is not changed, the larger the second adjusting factor is, the larger the obtained target brightness value is; and the resulting target luminance value is greater than or equal to the initial luminance value. For example, the second preset formula may be: luminescence _ final ═ luminescence _ base × (1+0.5 × factor 2); wherein the luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor2 represents a second regulatory factor.
In the embodiment of the application, the condition of the sight angle is indicated through the second adjusting factor. The initial brightness value is adjusted according to the second adjusting factor to obtain the target brightness value, the display brightness of the screen can be flexibly adjusted according to the sight angles in the scene of watching the screen at different sight angles, and the phenomenon that human eyes are irritated due to overlarge screen brightness is avoided while the user can clearly see images in the screen is guaranteed.
Optionally, under the condition that the brightness adjustment parameter includes a brightness value of a current display image in the screen and the view angle, obtaining a target brightness value according to the brightness adjustment parameter and the initial brightness value, including:
and determining the average brightness value of the pixel points according to the brightness value of each pixel point in the current display image.
In this step, the brightness value of each pixel in the current display image is obtained first, and then the average value operation is performed to obtain the brightness average value. Here, the luminance value of each pixel in the currently displayed image may be the luminance value of the pixel determined when the image is generated; the brightness values of the pixels in the frame buffer after mapping the image to the frame buffer may also be used. When the brightness value of the pixel is obtained, if the image or the frame buffer carries out color coding based on a YUV pixel format, the brightness value of the pixel can be directly obtained; where Y in YUV denotes luminance and UV denotes color and chrominance, respectively. If the image or the frame buffer carries out color coding based on the RGB pixel format, the RGB pixel format can be converted into the YUV pixel format, and then the brightness value of the pixel is obtained; where R in RGB represents red, G represents green, and B represents blue.
And determining the ratio of the brightness average value to the maximum brightness value as a first adjusting factor.
In this step, the maximum brightness value is the maximum value in the value range of the brightness value of the pixel point. The value range of the brightness value of the pixel point is determined according to the bit depth. Where bit depth refers to the bit depth that a computer actually needs for each pixel when recording the color of a digital image. If the bit depth is 8, the value range of the brightness value of the pixel point is [0, 2 ]8-1]Then the maximum value in the value range is 281, i.e. 255. Therefore, the value range of the first adjustment factor obtained by calculation is [0, 1]]. Wherein, the larger the value of the first adjustment factor is, the brighter the current display image is; a smaller value of the first adjustment factor indicates a darker current display image itself.
And determining the sine value of the complementary angle of the sight line angle as a second adjusting factor.
In this step, the viewing angle is an angle between a straight line and a plane, and the angle is an acute angle or a right angle. Here, the complement of the viewing angle can be seen in fig. 2, where the angle a is the complement of the viewing angle. It is understood that the value of the second adjustment factor is [0, 1 ]. The smaller the value of the second adjustment factor, the closer the user looks at the screen, the more the state of the screen is vertical.
Obtaining a target brightness value according to a third preset formula, the first adjusting factor, the second adjusting factor and the initial brightness value;
wherein the third preset formula comprises: luminescence _ final ═ luminescence _ base × (1.25-0.5 × factor1) + (1+ factor 2); luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor1 represents the first regulatory factor and factor2 represents the second regulatory factor.
In the embodiment of the application, a first adjusting factor indicating the brightness of the image is determined according to the brightness value in the current display image. While indicating the condition of the gaze angle by a second adjustment factor. The initial brightness value is adjusted according to the first adjustment factor and the second adjustment factor to obtain the target brightness value, the screen display brightness can be flexibly adjusted according to the brightness of the image and the sight angle under the scene of watching images with different brightness and the scene of watching a screen under different sight angles, and the phenomenon that human eyes are stimulated due to overlarge screen brightness is avoided while the user can clearly see the images in the screen is guaranteed.
It should be noted that, in the screen brightness adjusting method provided in the embodiment of the present application, the execution main body may be a screen brightness adjusting device, or a control module in the screen brightness adjusting device for executing the screen brightness adjusting method. In the embodiment of the present application, a method for executing screen brightness adjustment by a screen brightness adjustment device is taken as an example to describe the screen brightness adjustment device provided in the embodiment of the present application.
As shown in fig. 4, an embodiment of the present application further provides a screen brightness adjusting apparatus, including:
a first brightness value module 41, configured to determine an initial brightness value according to the ambient brightness;
the second brightness value module 42 is configured to obtain a target brightness value according to the brightness adjustment parameter and the initial brightness value; wherein the brightness adjustment parameters include: the brightness value and/or the sight angle of the current display image in the screen; the sight angle is an included angle between the sight and the screen when the user watches the screen;
and an adjusting module 43, configured to adjust the current brightness value of the screen to a target brightness value.
Alternatively, in the case that the brightness adjustment parameter only includes the brightness value of the currently displayed image on the screen, the second brightness value module 42 includes:
the first determining unit is used for determining the average brightness value of the pixel points according to the brightness value of each pixel point in the current display image;
a second determining unit for determining a ratio of the luminance average value to the maximum luminance value as a first adjustment factor; the maximum brightness value is the maximum value in the value range of the brightness value of the pixel point;
the first brightness value unit is used for obtaining a target brightness value according to a first preset formula, a first adjusting factor and an initial brightness value; under the condition that the initial brightness value is not changed, the larger the first adjusting factor is, the smaller the obtained target brightness value is; and the target brightness value obtained under the condition that the first adjusting factor is greater than the preset threshold value is less than the initial brightness value, and the target brightness value obtained under the condition that the first adjusting factor is less than the preset threshold value is greater than the initial brightness value.
Optionally, the first preset formula includes: luminescence _ final ═ luminescence _ base × (1.25-0.5 × factor 1);
wherein the luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor1 represents a first adjustment factor.
Optionally, in a case that the brightness adjustment parameter only includes the viewing angle, the second brightness value module 42 includes:
a third determining unit, configured to determine a sine value of a residual angle of the gaze angle as a second adjustment factor;
the second brightness value unit is used for obtaining a target brightness value according to a second preset formula, a second adjusting factor and the initial brightness value; under the condition that the initial brightness value is not changed, the larger the second adjusting factor is, the larger the obtained target brightness value is; and the resulting target luminance value is greater than or equal to the initial luminance value.
Optionally, the second preset formula includes: luminescence _ final ═ luminescence _ base × (1+ factor 2);
wherein the luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor2 represents a second regulatory factor.
Optionally, in a case that the brightness adjustment parameter includes a brightness value of a currently displayed image on the screen and a view angle, the second brightness value module 42 includes:
the first determining unit is used for determining the average brightness value of the pixel points according to the brightness value of each pixel point in the current display image;
a second determining unit for determining a ratio of the luminance average value to the maximum luminance value as a first adjustment factor; the maximum brightness value is the maximum value in the value range of the brightness value of the pixel point;
a third determining unit, configured to determine a sine value of a residual angle of the gaze angle as a second adjustment factor;
the third brightness unit is used for obtaining a target brightness value according to a third preset formula, the first adjusting factor, the second adjusting factor and the initial brightness value;
wherein the third preset formula comprises: luminescence _ final ═ luminescence _ base × (1.25-0.5 × factor1) + (1+ factor 2); luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor1 represents the first regulatory factor and factor2 represents the second regulatory factor.
In the embodiment of the application, the brightness value and/or the sight angle of the current display image in the screen are/is used as parameters corresponding to some special scenes. After the initial brightness value is determined according to the environment brightness, the target brightness value is obtained according to the initial brightness value and the parameters corresponding to the special scene, and the parameters corresponding to the special scene are taken into account, so that the screen with the target brightness value can meet the user requirements in the special scene.
The screen brightness adjusting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The screen brightness adjusting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The screen brightness adjusting device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 5, an electronic device 500 is further provided in this embodiment of the present application, and includes a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and executable on the processor 501, where the program or the instruction is executed by the processor 501 to implement each process of the foregoing method for adjusting screen brightness, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and the like.
Those skilled in the art will appreciate that the electronic device 600 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
A processor 610 for determining an initial brightness value according to the ambient brightness;
the processor 610 is further configured to obtain a target brightness value according to the brightness adjustment parameter and the initial brightness value; wherein the brightness adjustment parameters include: the brightness value and/or the sight angle of the current display image in the screen; the sight line angle is an included angle between a sight line of a user watching the screen and the screen;
the processor 610 is further configured to adjust the current brightness value of the screen to the target brightness value.
In the embodiment of the application, the brightness value and/or the sight angle of the current display image in the screen are/is used as parameters corresponding to some special scenes. After the initial brightness value is determined according to the environment brightness, the target brightness value is obtained according to the initial brightness value and the parameters corresponding to the special scene, and the parameters corresponding to the special scene are taken into account, so that the screen with the target brightness value can meet the user requirements in the special scene.
It is to be understood that, in the embodiment of the present application, the input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics Processing Unit 6041 processes image data of a still picture or a video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes a touch panel 6071 and other input devices 6072. A touch panel 6071, also referred to as a touch screen. The touch panel 6071 may include two parts of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 609 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 610 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned method for adjusting screen brightness, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing screen brightness adjustment method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A screen brightness adjusting method is characterized by comprising the following steps:
determining an initial brightness value according to the ambient brightness;
obtaining a target brightness value according to the brightness adjusting parameter and the initial brightness value; wherein the brightness adjustment parameters include: the brightness value and/or the sight angle of the current display image in the screen; the sight line angle is an included angle between a sight line of a user watching the screen and the screen;
and adjusting the current brightness value of the screen to the target brightness value.
2. The screen brightness adjustment method according to claim 1, wherein in a case where the brightness adjustment parameter only includes a brightness value of a currently displayed image on the screen, the obtaining a target brightness value according to the brightness adjustment parameter and the initial brightness value comprises:
determining the average brightness value of the pixel points according to the brightness value of each pixel point in the current display image;
determining the ratio of the brightness average value to the maximum brightness value as a first adjusting factor; the maximum brightness value is the maximum value in the value range of the brightness value of the pixel point;
obtaining a target brightness value according to a first preset formula, the first adjusting factor and the initial brightness value; under the condition that the initial brightness value is not changed, the larger the first adjusting factor is, the smaller the obtained target brightness value is; and the target brightness value obtained when the first adjustment factor is greater than a preset threshold value is smaller than the initial brightness value, and the target brightness value obtained when the first adjustment factor is smaller than a preset threshold value is greater than the initial brightness value.
3. The screen brightness adjustment method of claim 1, wherein in the case that the brightness adjustment parameter only includes a line-of-sight angle, the obtaining a target brightness value according to the brightness adjustment parameter and the initial brightness value comprises:
determining the sine value of the complementary angle of the sight line angle as a second adjusting factor;
obtaining a target brightness value according to a second preset formula, the second adjusting factor and the initial brightness value; under the condition that the initial brightness value is not changed, the larger the second adjusting factor is, the larger the obtained target brightness value is; and the resulting target luminance value is greater than or equal to the initial luminance value.
4. The screen brightness adjustment method according to claim 1, wherein in a case where the brightness adjustment parameter includes a brightness value of a currently displayed image on a screen and the view angle, the obtaining a target brightness value according to the brightness adjustment parameter and the initial brightness value includes:
determining the average brightness value of the pixel points according to the brightness value of each pixel point in the current display image;
determining the ratio of the brightness average value to the maximum brightness value as a first adjusting factor; the maximum brightness value is the maximum value in the value range of the brightness value of the pixel point;
determining the sine value of the complementary angle of the sight line angle as a second adjusting factor;
obtaining a target brightness value according to a third preset formula, the first adjusting factor, the second adjusting factor and the initial brightness value;
wherein the third preset formula comprises: luminescence _ final ═ luminescence _ base × (1.25-0.5 × factor1) + (1+ factor 2); luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor1 represents the first regulatory factor and factor2 represents the second regulatory factor.
5. A screen brightness adjustment apparatus, comprising:
the first brightness value module is used for determining an initial brightness value according to the environment brightness;
the second brightness value module is used for obtaining a target brightness value according to the brightness adjusting parameter and the initial brightness value; wherein the brightness adjustment parameters include: the brightness value and/or the sight angle of the current display image in the screen; the sight line angle is an included angle between a sight line of a user watching the screen and the screen;
and the adjusting module is used for adjusting the current brightness value of the screen to the target brightness value.
6. The screen brightness adjusting apparatus according to claim 5, wherein in the case where the brightness adjusting parameter includes only a brightness value of a currently displayed image on the screen, the second brightness value module includes:
the first determining unit is used for determining the average brightness value of the pixel points according to the brightness value of each pixel point in the current display image;
the second determining unit is used for determining the ratio of the brightness average value to the maximum brightness value as a first adjusting factor; the maximum brightness value is the maximum value in the value range of the brightness value of the pixel point;
the first brightness value unit is used for obtaining a target brightness value according to a first preset formula, the first adjusting factor and the initial brightness value; under the condition that the initial brightness value is not changed, the larger the first adjusting factor is, the smaller the obtained target brightness value is; and the target brightness value obtained when the first adjustment factor is greater than a preset threshold value is smaller than the initial brightness value, and the target brightness value obtained when the first adjustment factor is smaller than a preset threshold value is greater than the initial brightness value.
7. The screen brightness adjusting apparatus according to claim 5, wherein in the case where the brightness adjusting parameter includes only a line-of-sight angle, the second brightness value module includes:
a third determining unit, configured to determine a sine value of a residual angle of the gaze angle as a second adjustment factor;
the second brightness value unit is used for obtaining a target brightness value according to a second preset formula, the second adjusting factor and the initial brightness value; under the condition that the initial brightness value is not changed, the larger the second adjusting factor is, the larger the obtained target brightness value is; and the resulting target luminance value is greater than or equal to the initial luminance value.
8. The screen brightness adjusting apparatus according to claim 5, wherein in the case where the brightness adjusting parameter includes a brightness value of a currently displayed image on a screen and the view angle, the second brightness value module includes:
the first determining unit is used for determining the average brightness value of the pixel points according to the brightness value of each pixel point in the current display image;
the second determining unit is used for determining the ratio of the brightness average value to the maximum brightness value as a first adjusting factor; the maximum brightness value is the maximum value in the value range of the brightness value of the pixel point;
a third determining unit, configured to determine a sine value of a residual angle of the gaze angle as a second adjustment factor;
the third brightness unit is used for obtaining a target brightness value according to a third preset formula, the first adjusting factor, the second adjusting factor and the initial brightness value;
wherein the third preset formula comprises: luminescence _ final ═ luminescence _ base × (1.25-0.5 × factor1) + (1+ factor 2); luminance _ final represents a target luminance value; luminance _ base represents an initial luminance value; factor1 represents the first regulatory factor and factor2 represents the second regulatory factor.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the screen brightness adjustment method according to any one of claims 1-4.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the screen brightness adjustment method according to any one of claims 1 to 4.
CN202011166454.8A 2020-10-27 2020-10-27 Screen brightness adjusting method, screen brightness adjusting device and electronic equipment Pending CN112289278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011166454.8A CN112289278A (en) 2020-10-27 2020-10-27 Screen brightness adjusting method, screen brightness adjusting device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011166454.8A CN112289278A (en) 2020-10-27 2020-10-27 Screen brightness adjusting method, screen brightness adjusting device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112289278A true CN112289278A (en) 2021-01-29

Family

ID=74373447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011166454.8A Pending CN112289278A (en) 2020-10-27 2020-10-27 Screen brightness adjusting method, screen brightness adjusting device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112289278A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113593495A (en) * 2021-07-23 2021-11-02 北京字节跳动网络技术有限公司 Calibration method and device and electronic equipment
CN114242023A (en) * 2021-12-30 2022-03-25 维沃移动通信有限公司 Display screen brightness adjusting method, display screen brightness adjusting device and electronic equipment
CN114242021A (en) * 2021-12-17 2022-03-25 惠州视维新技术有限公司 Display control method, display control device, electronic equipment and storage medium
CN116017009A (en) * 2022-12-15 2023-04-25 深圳市鸿合创新信息技术有限责任公司 Screen image data acquisition method of remote desktop and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383139A (en) * 2008-06-27 2009-03-11 青岛海信电器股份有限公司 Luminance control method for display screen
CN104240679A (en) * 2013-06-19 2014-12-24 联想(北京)有限公司 Method for adjusting display unit and electronic device
CN107799093A (en) * 2017-12-08 2018-03-13 深圳市金立通信设备有限公司 Adjust method, terminal and the computer-readable recording medium of screen luminance of terminal
CN110275612A (en) * 2019-05-28 2019-09-24 Oppo广东移动通信有限公司 Brightness adjusting method, device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383139A (en) * 2008-06-27 2009-03-11 青岛海信电器股份有限公司 Luminance control method for display screen
CN104240679A (en) * 2013-06-19 2014-12-24 联想(北京)有限公司 Method for adjusting display unit and electronic device
CN107799093A (en) * 2017-12-08 2018-03-13 深圳市金立通信设备有限公司 Adjust method, terminal and the computer-readable recording medium of screen luminance of terminal
CN110275612A (en) * 2019-05-28 2019-09-24 Oppo广东移动通信有限公司 Brightness adjusting method, device, electronic equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113593495A (en) * 2021-07-23 2021-11-02 北京字节跳动网络技术有限公司 Calibration method and device and electronic equipment
CN113593495B (en) * 2021-07-23 2022-11-15 北京字节跳动网络技术有限公司 Calibration method and device and electronic equipment
CN114242021A (en) * 2021-12-17 2022-03-25 惠州视维新技术有限公司 Display control method, display control device, electronic equipment and storage medium
CN114242023A (en) * 2021-12-30 2022-03-25 维沃移动通信有限公司 Display screen brightness adjusting method, display screen brightness adjusting device and electronic equipment
CN116017009A (en) * 2022-12-15 2023-04-25 深圳市鸿合创新信息技术有限责任公司 Screen image data acquisition method of remote desktop and electronic equipment

Similar Documents

Publication Publication Date Title
CN112289278A (en) Screen brightness adjusting method, screen brightness adjusting device and electronic equipment
CN106710540B (en) Liquid crystal display method and device
CN106710539B (en) Liquid crystal display method and device
CN107993604A (en) Display screen adjusting method and device
CN111816139B (en) Screen refresh rate switching method and electronic equipment
CN117079610A (en) Display device and adjustment method thereof
CN109544441B (en) Image processing method and device, and skin color processing method and device in live broadcast
CN111901519B (en) Screen light supplement method and device and electronic equipment
CN113808120A (en) Image processing method, image processing device, electronic equipment and storage medium
CN111835937A (en) Image processing method and device and electronic equipment
CN110473156B (en) Image information processing method and device, storage medium and electronic equipment
CN114242023A (en) Display screen brightness adjusting method, display screen brightness adjusting device and electronic equipment
CN112565909B (en) Video playing method and device, electronic equipment and readable storage medium
CN112511890A (en) Video image processing method and device and electronic equipment
CN117692788B (en) Image processing method and electronic equipment
CN112969088A (en) Screen projection control method and device, electronic equipment and readable storage medium
CN117935712A (en) Pixel contrast control system and method
CN113962840A (en) Image processing method, image processing device, electronic equipment and storage medium
CN113781959A (en) Interface processing method and device
CN112102765A (en) Display parameter adjusting method and device and electronic equipment
CN113114930B (en) Information display method, device, equipment and medium
CN112073617B (en) Light supplement method, light supplement device, computer readable storage medium and electronic equipment
CN117119316B (en) Image processing method, electronic device, and readable storage medium
CN114143448B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN117097855A (en) Video playing method, device, electronic equipment and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210129

RJ01 Rejection of invention patent application after publication