Screen brightness adjusting method and device, electronic equipment and storage medium
The method optimizes screen brightness by categorizing display areas based on content type and adjusting brightness accordingly, addressing inconsistent brightness issues and enhancing user experience.
Patent Information
- Application Number
- CN202310735869.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-20
- Publication Date
- 2024-12-20
AI Technical Summary
Current screen brightness adjustment methods fail to account for the differences in display content categories, leading to inconsistent and suboptimal display brightness across different areas on a screen, affecting visibility and user experience.
A method and device that determine the category of each display area based on the content and adjust brightness accordingly, using category-specific brightness adjustment information to optimize display brightness for each area, ensuring better alignment with the content type.
Enhances display clarity and user experience by ensuring appropriate brightness levels for different content types, preventing overly bright or dim areas, and improving eye protection.
Smart Images

Figure CN119169948A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a screen brightness adjustment method, device, electronic device and storage medium. Background Art
[0002] With the continuous development of computer technology, more and more electronic devices have the function of automatic adjustment of display brightness, that is, electronic devices can automatically control the change of screen display brightness according to the change of ambient light. However, the current screen brightness adjustment method still has limitations. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a screen brightness adjustment method, device, electronic device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a screen brightness adjustment method is provided, the method comprising:
[0005] Based on the displayed content on the screen of the electronic device, determining a category corresponding to at least one display area in the displayed content, where different display areas correspond to different categories, and the category corresponding to the display area is used to characterize the category to which the content displayed in the display area belongs;
[0006] Based on the category corresponding to each of the display areas, the display brightness of each of the display areas is adjusted.
[0007] In some embodiments, adjusting the display brightness of each of the display areas based on the category corresponding to each of the display areas includes:
[0008] Obtaining brightness adjustment information of the category corresponding to each of the display areas, wherein the brightness adjustment information of different categories is different, and the brightness adjustment information of the category is used to represent: the display brightness of the display area corresponding to the category under each ambient light illumination;
[0009] Based on the brightness adjustment information of each of the categories, the display brightness of each of the display areas is adjusted.
[0010] In some embodiments, the screen includes a first display area and a second display area, the content displayed in the first display area belongs to a first category, and the content displayed in the second display area belongs to a second category, wherein under the same ambient light illumination, the display brightness of the display area corresponding to the first category is greater than the display brightness of the display area corresponding to the second category;
[0011] The determining, based on the displayed content on the screen of the electronic device, a category corresponding to at least one display area in the displayed content includes:
[0012] Obtaining a first ratio of the first display area to the screen;
[0013] When the first ratio is less than or equal to a preset ratio, determining that the first display area and the second display area correspond to the second category;
[0014] When the first ratio is greater than the preset ratio, it is determined that the first display area corresponds to the first category and the second display area corresponds to the second category.
[0015] In some embodiments, adjusting the display brightness of each of the display areas based on the brightness adjustment information of each of the categories includes:
[0016] When it is determined that the first display area and the second display area correspond to the second category, adjusting the display brightness of the first display area and the second display area based on the brightness adjustment information of the second category; or,
[0017] When it is determined that the first display area corresponds to the first category and the second display area corresponds to the second category, the display brightness of the first display area is adjusted based on the brightness adjustment information of the first category, and the display brightness of the second display area is adjusted based on the brightness adjustment information of the second category.
[0018] In some embodiments, there are multiple display areas in the display content, and adjusting the display brightness of each display area based on the brightness adjustment information of each category includes:
[0019] Selecting first brightness adjustment information from the plurality of categories of brightness adjustment information, wherein, under the same ambient light illumination, the display brightness represented by the first brightness adjustment information is greater than the display brightness represented by other brightness adjustment information;
[0020] Adjusting a screen backlight parameter of the electronic device based on the first brightness adjustment information;
[0021] Based on the first brightness adjustment information and the second brightness adjustment information, the pixel value of the third display area is adjusted, wherein the third display area is a display area where content belonging to a third category is located, and the third category is the category corresponding to the second brightness adjustment information.
[0022] In some embodiments, adjusting the pixel value of the third display area based on the first brightness adjustment information and the second brightness adjustment information includes:
[0023] Acquire a first pixel value of a fourth display area, where the fourth display area is a display area where content belonging to a fourth category is located, and the fourth category is a category corresponding to the first brightness adjustment information;
[0024] Acquire a first display brightness and a second display brightness, wherein the first display brightness is the display brightness represented by the second brightness adjustment information under the current ambient light illumination, and the second display brightness is the display brightness represented by the first brightness adjustment information under the current ambient light illumination;
[0025] determining a ratio between the first display brightness and the second display brightness;
[0026] Based on the first pixel value and the ratio, a second pixel value is determined, and the pixel value of the third display area is adjusted to the second pixel value.
[0027] In some embodiments, the display content includes multiple display areas, and the method further includes:
[0028] In response to detecting a brightness bar display operation, a corresponding brightness bar is displayed in each of the display areas, and the brightness bar is used to adjust the display brightness of the display area where the brightness bar is located.
[0029] In some embodiments, the method further comprises:
[0030] A target function is turned on, where the target function is a function of adjusting display brightness based on a category to which the displayed content on the screen belongs.
[0031] According to a second aspect of an embodiment of the present disclosure, a screen brightness adjustment device is provided, the device comprising:
[0032] a category determination module, configured to determine, based on the displayed content on the screen of the electronic device, a category corresponding to at least one display area in the displayed content, wherein different display areas correspond to different categories, and the category corresponding to the display area is used to characterize the category to which the content displayed in the display area belongs;
[0033] The brightness adjustment module is configured to adjust the display brightness of each of the display areas based on the category corresponding to each of the display areas.
[0034] In some embodiments, the brightness adjustment module includes:
[0035] An information acquisition unit is configured to acquire brightness adjustment information of the category corresponding to each of the display areas, wherein the brightness adjustment information of different categories is different, and the brightness adjustment information of the category is used to represent: the display brightness of the display area corresponding to the category under each ambient light illumination;
[0036] The brightness adjustment unit is configured to adjust the display brightness of each of the display areas based on the brightness adjustment information of each category.
[0037] In some embodiments, the screen includes a first display area and a second display area, the content displayed in the first display area belongs to a first category, and the content displayed in the second display area belongs to a second category, wherein under the same ambient light illumination, the display brightness of the display area corresponding to the first category is greater than the display brightness of the display area corresponding to the second category;
[0038] The category determination module is configured to:
[0039] Obtaining a first ratio of the first display area to the screen;
[0040] When the first ratio is less than or equal to a preset ratio, determining that the first display area and the second display area correspond to the second category;
[0041] When the first ratio is greater than the preset ratio, it is determined that the first display area corresponds to the first category and the second display area corresponds to the second category.
[0042] In some embodiments, the brightness adjustment unit is configured to:
[0043] When it is determined that the first display area and the second display area correspond to the second category, adjusting the display brightness of the first display area and the second display area based on the brightness adjustment information of the second category; or,
[0044] When it is determined that the first display area corresponds to the first category and the second display area corresponds to the second category, the display brightness of the first display area is adjusted based on the brightness adjustment information of the first category, and the display brightness of the second display area is adjusted based on the brightness adjustment information of the second category.
[0045] In some embodiments, the brightness adjustment unit is configured to:
[0046] Selecting first brightness adjustment information from the plurality of categories of brightness adjustment information, wherein, under the same ambient light illumination, the display brightness represented by the first brightness adjustment information is greater than the display brightness represented by other brightness adjustment information;
[0047] Adjusting a screen backlight parameter of the electronic device based on the first brightness adjustment information;
[0048] Based on the first brightness adjustment information and the second brightness adjustment information, the pixel value of the third display area is adjusted, wherein the third display area is a display area where content belonging to a third category is located, and the third category is the category corresponding to the second brightness adjustment information.
[0049] In some embodiments, the brightness adjustment unit is configured to:
[0050] Acquire a first pixel value of a fourth display area, where the fourth display area is a display area where content belonging to a fourth category is located, and the fourth category is a category corresponding to the first brightness adjustment information;
[0051] Acquire a first display brightness and a second display brightness, wherein the first display brightness is the display brightness represented by the second brightness adjustment information under the current ambient light illumination, and the second display brightness is the display brightness represented by the first brightness adjustment information under the current ambient light illumination;
[0052] determining a ratio between the first display brightness and the second display brightness;
[0053] Based on the first pixel value and the ratio, a second pixel value is determined, and the pixel value of the third display area is adjusted to the second pixel value.
[0054] In some embodiments, the display content includes multiple display areas, and the device further includes:
[0055] The brightness bar display module is configured to display a corresponding brightness bar in each of the display areas in response to detecting a brightness bar display operation, wherein the brightness bar is used to adjust the display brightness of the display area where the brightness bar is located.
[0056] In some embodiments, the apparatus further comprises:
[0057] The function activation module is configured to activate a target function, wherein the target function is a function of adjusting display brightness based on a category to which the display content on the screen belongs.
[0058] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0059] processor;
[0060] a memory for storing processor-executable instructions;
[0061] The processor is configured to execute the method as described in the first aspect of the embodiment of the present disclosure.
[0062] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in the first aspect of the embodiment of the present disclosure.
[0063] The above method of the present disclosure has the following beneficial effects:
[0064] The method provided by the embodiment of the present disclosure determines, based on the display content on the screen of the electronic device, a category corresponding to at least one display area in the display content, the category corresponding to the display area is used to characterize the category to which the content displayed in the display area belongs, and then adjusts the display brightness of each display area based on the category corresponding to each display area, that is, it is possible to implement regional display brightness adjustment for display content belonging to different categories, so that the display brightness of different display areas is more matched with the display content in the display area, thereby improving the display effect of the display content on the screen. Moreover, for the user, it is possible to avoid the situation where there are multiple display contents on the screen but the display brightness of different display areas is the same, so that some display contents appear to the user to have too high display brightness, or some display contents appear to the user to have too low display brightness, thereby having a better eye protection effect and improving the user experience.
[0065] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0067] Figure 1 is a flow chart of a method for adjusting screen brightness according to an exemplary embodiment;
[0068] Figure 2 is a flow chart of another method for adjusting screen brightness according to an exemplary embodiment;
[0069] Figure 3 is a schematic diagram of a display interface according to an exemplary embodiment;
[0070] Figure 4 is a schematic diagram of another display interface according to an exemplary embodiment;
[0071] Figure 5 is a schematic diagram showing a brightness adjustment curve according to an exemplary embodiment;
[0072] Figure 6is a schematic diagram showing a different display area according to an exemplary embodiment;
[0073] Figure 7 is a block diagram of a screen brightness adjustment device according to an exemplary embodiment;
[0074] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0075] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0076] The screen brightness adjustment method provided in the embodiment of the present disclosure is executed by an electronic device with a display screen, and the electronic device is a terminal device such as a mobile phone, a tablet computer, a laptop computer, a wearable smart device, etc.
[0077] Figure 1 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment, which is executed by an electronic device, see Figure 1 The method comprises the following steps S101-S102:
[0078] Step S101, based on the displayed content on the screen of the electronic device, determine the category corresponding to at least one display area in the displayed content, different display areas correspond to different categories, and the category corresponding to the display area is used to represent the category to which the content displayed in the display area belongs.
[0079] In the disclosed embodiments, a variety of contents may be displayed on the screen of the electronic device. For example, the contents displayed on the screen may be at least one of videos, images, text, game screens, and the like. Under the same ambient light illumination, if different contents are to be displayed in a clearer manner, a single display brightness on the screen obviously cannot meet the requirement. For example, a video and text are displayed on the screen. Since the video is dynamically changing and contains more colors and details than the text, under the same display brightness, if the text can be displayed clearly, some details in the video may not be displayed clearly, or, if the video can be displayed clearly, the display brightness will be too bright for the text. Therefore, different display brightness adjustment methods may be applied to different contents.
[0080] The display area in the displayed content refers to the area where the content belonging to any category is located. The content displayed in the same display area belongs to the same category, and the content displayed in different display areas belongs to different categories. The category corresponding to the display area is the category to which the content displayed in the display area belongs. The category is a pre-set category of the displayed content, for example, the category includes a video category, an image category, a text category, a game category, etc.
[0081] Step S102: adjusting the display brightness of each display area based on the category corresponding to each display area.
[0082] After determining the category corresponding to each display area, for each display area, based on the category corresponding to the display area, the display brightness of the display area is adjusted; here, there is no specific limitation on how to adjust the display brightness of the display area based on the category corresponding to the display area, such as determining the brightness adjustment curve corresponding to the current display area category based on the pre-set correspondence between the display area category and the brightness adjustment curve, so as to adjust the display brightness of the display area according to the determined brightness adjustment curve. Among them, the way different categories are used to adjust the display brightness of the corresponding display areas can be the same or different.
[0083] The method provided by the embodiment of the present disclosure determines, based on the display content on the screen of the electronic device, a category corresponding to at least one display area in the display content, the category corresponding to the display area is used to characterize the category to which the content displayed in the display area belongs, and then adjusts the display brightness of each display area based on the category corresponding to each display area, that is, it is possible to implement regional display brightness adjustment for display content belonging to different categories, so that the display brightness of different display areas is more matched with the display content in the display area, thereby improving the display effect of the display content on the screen. Moreover, for the user, it is possible to avoid the situation where there are multiple display contents on the screen but the display brightness of different display areas is the same, so that some display contents appear to the user to have too high display brightness, or some display contents appear to the user to have too low display brightness, thereby having a better eye protection effect and improving the user experience.
[0084] Figure 2 is a flowchart of another method for adjusting screen brightness according to an exemplary embodiment, which is executed by an electronic device, see Figure 2 , the method comprises the following steps:
[0085] Step S201 , starting a target function, where the target function is a function of adjusting display brightness based on the category to which the displayed content on the screen belongs.
[0086] In the embodiment of the present disclosure, in order to achieve the purpose of adjusting the display brightness of display content belonging to different categories in different regions, a target function is provided, that is, a function of adjusting the display brightness based on the category to which the display content on the screen belongs. Before adjusting the display brightness, the target function is turned on first.
[0087] In some embodiments, a brightness adjustment switch is provided in the electronic device, and when the brightness adjustment switch is turned on, the target function is determined to be turned on, and when the brightness adjustment switch is turned off, the target function is determined to be turned off. For example, the brightness adjustment switch is provided in the system settings of the electronic device.
[0088] Optionally, when the target function is turned off, the electronic device adjusts the display brightness of each display area in the screen based on the single brightness adjustment information, and the display brightness of each display area is the same after the adjustment. The single brightness adjustment information may be a brightness adjustment curve for adjusting the display brightness of the screen, and the brightness adjustment curve is used to uniformly adjust the display brightness of each display area in the screen.
[0089] In the disclosed embodiment, the user can freely choose whether to adjust the display brightness in different regions or to uniformly adjust the brightness of the entire screen, thereby improving the flexibility of display brightness adjustment.
[0090] It should be noted that step S201 is an optional operation. In some embodiments, step S201 may not be performed. The electronic device turns on the target function by default and directly performs the following screen brightness adjustment process.
[0091] Step S202: determining, based on the displayed content on the screen of the electronic device, a category corresponding to at least one display area in the displayed content.
[0092] For the displayed content on the screen, the displayed content may include content belonging to at least one category.
[0093] In some embodiments, when the electronic device displays the display content on the screen, it reads at least one category corresponding to the display content and the display area where the content belonging to each category is located from the program running in the background, thereby determining the category corresponding to at least one display area in the display content. For example, if the electronic device displays both video and text, the text category to which the text belongs and the video category to which the video belongs, as well as the display area where the text is located and the display area where the video is located can be read from the program running in the background.
[0094] In some embodiments, the electronic device identifies the displayed content on the screen, identifies the category to which each content in the displayed content belongs, and the display area where the content belonging to each category is located.
[0095] In some embodiments, the screen includes a first display area and a second display area, the content displayed in the first display area belongs to a first category, and the content displayed in the second display area belongs to a second category. The first category is different from the second category, and under the same ambient light illumination, the display brightness of the display area corresponding to the first category is greater than the display brightness of the display area corresponding to the second category. For example, the first category is a video category, and the second category is a text category, or the first category is an image category, and the second category is a text category, or the first category is a video category, and the second category is an image category.
[0096] In this case, based on the displayed content on the screen of the electronic device, determining the category corresponding to at least one display area in the displayed content includes: obtaining a first proportion of the first display area in the screen; when the first proportion is less than or equal to a preset proportion, determining that the first display area and the second display area correspond to the second category; when the first proportion is greater than the preset proportion, determining that the first display area corresponds to the first category and the second display area corresponds to the second category. The preset proportion is a preset proportion, for example, the preset proportion is 35%, 30% or other smaller proportions.
[0097] When the first ratio is less than or equal to the preset ratio, it means that the first display area occupies a smaller area on the screen, and the second display area occupies a larger area on the screen, and under the same ambient light illumination, the display brightness of the display area corresponding to the first category is greater than the display brightness of the display area corresponding to the second category, that is, under the same ambient light illumination, the first display area is brighter than the second display area, which will lead to a problem that the display brightness is brighter but the user cannot see the details of the content because the displayed content is too small. In order to avoid this problem, it is determined that the first display area and the second display area correspond to the second category, that is, the display brightness of the first display area and the second display area are adjusted according to the second category, so that the display brightness of the first display area will not be too bright, thereby saving some power consumption while ensuring the user experience as much as possible.
[0098] For example, see Figure 3 In the schematic diagram of the display interface shown in FIG. 1 , a “video playback area” is displayed in the upper left corner of the display interface. The video playback area is the first display area, which corresponds to the video category. The other display areas except the video playback area are the second display areas, which correspond to the text category. Figure 3 It can be seen that the first display area occupies a relatively small area in the entire display interface. In this case, the display brightness of the video playback area and other display areas is adjusted according to the text category.
[0099] When the first ratio is greater than the preset ratio, it means that the first display area occupies a larger area of the screen, and the user can clearly see the details of the content displayed in the first display area. Therefore, it is determined that the first display area corresponds to the first category and the second display area corresponds to the second category, that is, the display brightness of the first display area is adjusted according to the first category, and the display brightness of the second display area is adjusted according to the second category, so that the user can better view the details of the content displayed in the first display area.
[0100] For example, see Figure 4 The schematic diagram of the display interface shown in the figure is a video playback interface. In the video playback interface, most of the area is the video playback area, and a small part of the area displays other information. The video playback area is the first display area, and the first display area corresponds to the video category. The other display areas except the video playback area are the second display areas, and the second display area corresponds to the text category. Figure 4 It can be seen that the first display area occupies a relatively large area in the entire display interface. In this case, the video playback area is adjusted for display brightness according to the video category, and the brightness of other display areas is adjusted according to the text category.
[0101] In some embodiments, the first proportion of the first display area in the screen is obtained using the following formula:
[0102]
[0103] Ratio1 represents the first ratio, W1 represents the length of the first display area, H1 represents the width of the first display area, and W Screen Indicates the length of the screen, H Screen Indicates the width of the screen.
[0104] Among them, W1, H1, W Screen and H Screen It can be read from the program code running in the background, or recognized by the electronic device.
[0105] It should be noted that the above-mentioned embodiment is only described by taking the screen including the first display area and the second display area, that is, the screen having two display areas corresponding to the categories as an example. In another embodiment, when the screen includes three, four or even more display areas, the proportion of each display area in the screen is determined respectively. For each display area, when the proportion of the display area in the screen is less than or equal to the preset proportion, the display brightness of the display area is adjusted according to the second category, and when the proportion of the display area in the screen is greater than the preset proportion, the display brightness of the display area is adjusted according to the category corresponding to the display area. Among them, the second category is a text category, or the second category is the category with the darkest display brightness among the categories corresponding to multiple display areas, that is, under the same ambient light illumination, the display brightness of the display area corresponding to the second category is less than the display brightness of the display areas corresponding to other categories.
[0106] Step S203, obtaining brightness adjustment information of a category corresponding to each display area.
[0107] The brightness adjustment information of different categories is different, and the brightness adjustment information of a category is used to represent: the display brightness of the display area corresponding to the category under each ambient light illumination.
[0108] In some embodiments, the brightness adjustment information is a brightness adjustment curve, which represents the corresponding relationship between each ambient light illumination and the display brightness, wherein each category has a corresponding brightness adjustment curve.
[0109] For example, referring to the following Table 1, the categories of displayed content include video category, image category and text category:
[0110] Table 1
[0111] Display content categories Brightness adjustment curve Video Category Curve A Image Category Curve B Text category Curve C
[0112] See also Figure 5 The schematic diagram of the brightness adjustment curve shown in FIG. 1 is a diagram of the brightness adjustment curve of the video category. Figure 5 Curve A in the figure, the brightness adjustment curve of the image category is Figure 5 Curve B in the figure, the brightness adjustment curve of the text category is Figure 5 Curve C in .
[0113] Optionally, for the above Figure 5 The curves A, B and C shown can be determined by the following formula:
[0114] For the video category, since the video is dynamically changing and contains more colors and content details than images and text, the color or content details of the video may not be presented at a lower brightness. Therefore, the video category corresponds to the brightest brightness adjustment curve A, from Figure 5 It can be seen that under the same ambient light illumination, the display brightness corresponding to curve A is greater than the display brightness corresponding to curve B and curve C. The expression of curve A is shown in the following formula, which shows that the display brightness corresponding to the video category is controlled by the functional relationship composed of ambient light illumination and three constants:
[0115]
[0116] Among them, Lv A Indicates the display brightness corresponding to the video category, I env Indicates the ambient light intensity, A A , B A and C A There are three preset constants.
[0117] For the image category, since the image is static, the color and details of the image can be clearly seen without reaching the display brightness of the video category. Therefore, the image category corresponds to the brightness adjustment curve B with moderate brightness. Figure 5 It can be seen that under the same ambient light illumination, the display brightness corresponding to curve B is greater than the display brightness corresponding to curve C, but less than the display brightness corresponding to curve A. The expression of curve B is shown in the following formula, which shows that the display brightness corresponding to the image category is controlled by the functional relationship composed of ambient light illumination and three constants:
[0118]
[0119] Among them, Lv B Indicates the display brightness corresponding to the image category, I env Indicates the ambient light intensity, A B , B B and C B There are three preset constants.
[0120] For the text category, all display contents except videos and images are defined as text. Since most scenes use white background and black font to display text, it has a very high contrast and does not require high brightness. Therefore, the text category corresponds to the darkest brightness adjustment curve C. Figure 5 It can be seen that under the same ambient light illumination, the display brightness corresponding to curve C is smaller than the display brightness corresponding to curve A and curve C. The expression of curve C is shown in the following formula, which shows that the display brightness corresponding to the text category is controlled by the functional relationship composed of ambient light illumination and three constants:
[0121]
[0122] Among them, Lv C Indicates the display brightness corresponding to the text category, I env Indicates the ambient light intensity, A C , B C and C C There are three preset constants.
[0123] It should be noted that the three constants preset in the above three formulas are different.
[0124] In some embodiments, the brightness adjustment information is a correspondence table, which includes a plurality of ambient light illuminations and a display brightness corresponding to each ambient light illumination, wherein each category has its own correspondence table.
[0125] In some embodiments, brightness adjustment information of each category is stored in the electronic device, and when the display brightness needs to be adjusted, the stored brightness adjustment information is called.
[0126] It should be noted that in the embodiments of the present disclosure, the brightness adjustment information is only described as a brightness adjustment curve or a corresponding relationship table. In another embodiment, the brightness adjustment information can also be in other forms. The embodiments of the present disclosure do not limit the specific form of the brightness adjustment information.
[0127] Step S204: adjusting the display brightness of each display area based on the brightness adjustment information of each category.
[0128] In the disclosed embodiment, since each category has its own brightness adjustment information, when adjusting the display brightness of the display area corresponding to each category, the display brightness of the display area corresponding to the category can be adjusted directly based on the brightness adjustment information of the category.
[0129] In some embodiments, for each category, the display brightness of the display area corresponding to the category is adjusted to the display brightness represented by the brightness adjustment information of the category.
[0130] In some embodiments, for the above-mentioned implementation of determining the categories corresponding to the first display area and the second display area, when it is determined that the first display area and the second display area correspond to the second category, the display brightness of the first display area and the second display area is adjusted based on the brightness adjustment information of the second category; or, when it is determined that the first display area corresponds to the first category and the second display area corresponds to the second category, the display brightness of the first display area is adjusted based on the brightness adjustment information of the first category, and the display brightness of the second display area is adjusted based on the brightness adjustment information of the second category. By adjusting the display brightness according to the determined category, it can be ensured that the display brightness of each display area is suitable for the display brightness of the display area, so that the user can better view the display content at the display brightness.
[0131] In the embodiments of the present disclosure, it is taken into consideration that when adjusting the display brightness, if the display brightness of the screen in hardware does not reach the required maximum display brightness, then no matter how the pixel value is adjusted, the display brightness cannot reach the maximum display brightness. Therefore, it is necessary to first make the display brightness reach the required maximum display brightness in hardware, and then reduce the display brightness of certain display areas by adjusting the pixel value, so that the display brightness of each display area can be adjusted to an appropriate display brightness.
[0132] In some embodiments, there are multiple display areas in the display content, and based on the brightness adjustment information of each category, the display brightness of each display area is adjusted, including: selecting the first brightness adjustment information from the brightness adjustment information of multiple categories, wherein, under the same ambient light illumination, the display brightness represented by the first brightness adjustment information is greater than the display brightness represented by other brightness adjustment information. Based on the first brightness adjustment information, the screen backlight parameter of the electronic device is adjusted, and the screen backlight parameter is a parameter for adjusting the display brightness on the hardware of the electronic device. The display brightness can be adjusted on the hardware by adjusting the screen backlight parameter. Then, based on the first brightness adjustment information and the second brightness adjustment information, the pixel value of the third display area is adjusted, wherein the third display area is the display area where the content belonging to the third category is located, and the third category is the category corresponding to the second brightness adjustment information, that is, after the overall display brightness of the screen is adjusted on the hardware, for some display areas whose display brightness does not need to reach the display brightness, the display brightness of the display area is dimmed according to the brightness adjustment information corresponding to the display area.
[0133] In some embodiments, based on the first brightness adjustment information and the second brightness adjustment information, the pixel value of the third display area is adjusted, including: obtaining the first pixel value of the fourth display area, the fourth display area is the display area where the content belonging to the fourth category is located, and the fourth category is the category corresponding to the first brightness adjustment information; obtaining the first display brightness and the second display brightness, the first display brightness is the display brightness represented by the second brightness adjustment information under the current ambient light illumination, and the second display brightness is the display brightness represented by the first brightness adjustment information under the current ambient light illumination; determining the ratio between the first display brightness and the second display brightness; determining the second pixel value based on the first pixel value and the ratio, and adjusting the pixel value of the third display area to the second pixel value. The ratio can represent the difference in display brightness between the third display area and the fourth display area, and the second pixel value is determined according to the ratio and the first pixel value of the fourth display area, and the second pixel value is the pixel value of the third display area.
[0134] Optionally, the pixel value is an RGB value, and the pixel value of the third display area is determined by the following formula:
[0135]
[0136]
[0137]
[0138] Among them, R1, G1 and B1 represent the RGB values of the third display area, R0, G0 and B0 represent the RGB values of the fourth display area, It represents the ratio between the first display brightness and the second display brightness, Lv1 is the first display brightness, and Lv0 is the second display brightness.
[0139] For example, see Figure 6 Schematic diagram of different display areas shown in FIG. 1 . For the video playback area and the comment area, the video playback area corresponds to curve A, and the comment area corresponds to curve C. When the ambient light remains unchanged, curve A is always higher than curve C. When adjusting the display brightness of the screen, the screen backlight parameters are adjusted based on curve A. At this time, the display brightness of the video playback area is adjusted to Figure 6 The display brightness shown in , and the display brightness of the comment area is adjusted based on curve C. At this time, the screen backlight parameters are fixed. Then, according to the display brightness difference between curve A and curve C, the display brightness difference is converted into RGB value difference. The pixel value of the comment area is determined based on the above formula, and the pixel value of the comment area is adjusted to the determined pixel value. At this time, the display brightness of the comment area is adjusted to Figure 6 The display brightness shown in Figure 6 It can be seen that the display brightness of the video playback area is significantly higher than that of the comment area.
[0140] Step S205 , in response to detecting a brightness bar display operation, displaying a corresponding brightness bar in each display area, wherein the brightness bar is used to adjust the display brightness of the display area where the brightness bar is located.
[0141] In the disclosed embodiment, when there are multiple display areas, if the user needs to manually adjust the display brightness, after triggering the brightness bar display operation, the electronic device displays a corresponding brightness bar in each display area, each brightness bar is used to adjust the display brightness of the display area where the brightness bar is located, that is, for multiple display areas, when the display brightness of a display area is adjusted through the brightness bar corresponding to the display area, the display brightness of other display areas remains unchanged. By setting the brightness bar in different areas, the user can flexibly adjust the display brightness of each display area, thereby improving the flexibility of manually adjusting the display brightness.
[0142] For example, see Figure 6 , corresponding brightness bars are displayed in the video playback area and the comment area respectively. The display brightness of the video playback area can be adjusted through the brightness bar of the video playback area. When the display brightness of the video playback area changes, the display brightness of the comment area remains unchanged; or, the display brightness of the comment area can be adjusted through the brightness bar of the comment area. When the display brightness of the comment area changes, the display brightness of the video playback area remains unchanged.
[0143] It should be noted that the above step S205 is an optional implementation.
[0144] The method provided by the embodiment of the present disclosure determines, based on the display content on the screen of the electronic device, a category corresponding to at least one display area in the display content, the category corresponding to the display area is used to characterize the category to which the content displayed in the display area belongs, and then adjusts the display brightness of each display area based on the category corresponding to each display area, that is, it is possible to implement regional display brightness adjustment for display content belonging to different categories, so that the display brightness of different display areas is more matched with the display content in the display area, thereby improving the display effect of the display content on the screen. Moreover, for the user, it is possible to avoid the situation where there are multiple display contents on the screen but the display brightness of different display areas is the same, so that some display contents appear to the user to have too high display brightness, or some display contents appear to the user to have too low display brightness, thereby having a better eye protection effect and improving the user experience.
[0145] Figure 7 is a block diagram of a screen brightness adjustment device according to an exemplary embodiment. Figure 7 , the device comprises:
[0146] The category determination module 701 is configured to determine, based on the displayed content on the screen of the electronic device, a category corresponding to at least one display area in the displayed content, where different display areas correspond to different categories, and the category corresponding to the display area is used to represent the category to which the content displayed in the display area belongs;
[0147] The brightness adjustment module 702 is configured to adjust the display brightness of each display area based on the category corresponding to each display area.
[0148] The device provided by the embodiment of the present disclosure determines, based on the display content on the screen of the electronic device, a category corresponding to at least one display area in the display content, wherein the category corresponding to the display area is used to characterize the category to which the content displayed in the display area belongs, and then adjusts the display brightness of each display area based on the category corresponding to each display area, that is, it is possible to implement regional display brightness adjustment for display content belonging to different categories, so that the display brightness of different display areas is more matched with the display content in the display area, thereby improving the display effect of the display content on the screen. Moreover, for the user, it is possible to avoid the situation where there are multiple display contents on the screen but the display brightness of different display areas is the same, so that some display contents appear to the user to have too high display brightness, or some display contents appear to the user to have too low display brightness, thereby having a better eye protection effect and improving the user experience.
[0149] In some embodiments, the brightness adjustment module 702 includes:
[0150] An information acquisition unit is configured to acquire brightness adjustment information of a category corresponding to each display area, wherein the brightness adjustment information of different categories is different, and the brightness adjustment information of a category is used to represent: the display brightness of the display area corresponding to the category under each ambient light illumination;
[0151] The brightness adjustment unit is configured to adjust the display brightness of each display area based on the brightness adjustment information of each category.
[0152] In some embodiments, the screen includes a first display area and a second display area, the content displayed in the first display area belongs to a first category, and the content displayed in the second display area belongs to a second category, wherein under the same ambient light illumination, the display brightness of the display area corresponding to the first category is greater than the display brightness of the display area corresponding to the second category;
[0153] The category determination module 701 is configured to:
[0154] Obtaining a first proportion of the first display area in the screen;
[0155] When the first ratio is less than or equal to the preset ratio, determining that the first display area and the second display area correspond to the second category;
[0156] When the first ratio is greater than the preset ratio, it is determined that the first display area corresponds to the first category and the second display area corresponds to the second category.
[0157] In some embodiments, the brightness adjustment unit is configured to:
[0158] When it is determined that the first display area and the second display area correspond to the second category, based on the brightness adjustment information of the second category, the display brightness of the first display area and the second display area is adjusted; or,
[0159] When it is determined that the first display area corresponds to the first category and the second display area corresponds to the second category, the display brightness of the first display area is adjusted based on the brightness adjustment information of the first category, and the display brightness of the second display area is adjusted based on the brightness adjustment information of the second category.
[0160] In some embodiments, the brightness adjustment unit is configured to:
[0161] Selecting first brightness adjustment information from multiple categories of brightness adjustment information, wherein, under the same ambient light illumination, the display brightness represented by the first brightness adjustment information is greater than the display brightness represented by other brightness adjustment information;
[0162] Adjusting a screen backlight parameter of the electronic device based on the first brightness adjustment information;
[0163] Based on the first brightness adjustment information and the second brightness adjustment information, the pixel value of the third display area is adjusted, wherein the third display area is a display area where content belonging to a third category is located, and the third category is a category corresponding to the second brightness adjustment information.
[0164] In some embodiments, the brightness adjustment unit is configured to:
[0165] Acquire a first pixel value of a fourth display area, where the fourth display area is a display area where content belonging to a fourth category is located, and the fourth category is a category corresponding to the first brightness adjustment information;
[0166] Acquire a first display brightness and a second display brightness, wherein the first display brightness is the display brightness represented by the second brightness adjustment information under the current ambient light illumination, and the second display brightness is the display brightness represented by the first brightness adjustment information under the current ambient light illumination;
[0167] determining a ratio between a first display brightness and a second display brightness;
[0168] Based on the first pixel value and the ratio, a second pixel value is determined, and the pixel value of the third display area is adjusted to the second pixel value.
[0169] In some embodiments, the display content includes multiple display areas, and the device further includes:
[0170] The brightness bar display module is configured to display a corresponding brightness bar in each display area in response to detecting a brightness bar display operation, wherein the brightness bar is used to adjust the display brightness of the display area where the brightness bar is located.
[0171] In some embodiments, the apparatus further comprises:
[0172] The function activation module is configured to activate a target function, where the target function is a function of adjusting display brightness based on a category to which the display content on the screen belongs.
[0173] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0174] An embodiment of the present disclosure also provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the screen brightness adjustment method in the above embodiment.
[0175] Figure 8 is a block diagram of an electronic device 800 according to an exemplary embodiment.
[0176] Reference Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0177] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0178] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0179] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0180] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0181] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0182] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0183] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0184] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0185] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0186] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0187] The embodiments of the present disclosure also provide a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the screen brightness adjustment method in the above embodiment.
[0188] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0189] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A screen brightness adjustment method, characterized in that: The method comprises: Based on the displayed content on the screen of the electronic device, determining a category corresponding to at least one display area in the displayed content, where different display areas correspond to different categories, and the category corresponding to the display area is used to characterize the category to which the content displayed in the display area belongs; Based on the category corresponding to each of the display areas, the display brightness of each of the display areas is adjusted.
2. The method according to claim 1, characterized in that The adjusting the display brightness of each of the display areas based on the category corresponding to each of the display areas includes: Obtaining brightness adjustment information of the category corresponding to each of the display areas, wherein the brightness adjustment information of different categories is different, and the brightness adjustment information of the category is used to represent: the display brightness of the display area corresponding to the category under each ambient light illumination; Based on the brightness adjustment information of each of the categories, the display brightness of each of the display areas is adjusted.
3. The method according to claim 2, characterized in that The screen includes a first display area and a second display area, the content displayed in the first display area belongs to a first category, and the content displayed in the second display area belongs to a second category, wherein under the same ambient light illumination, the display brightness of the display area corresponding to the first category is greater than the display brightness of the display area corresponding to the second category; The determining, based on the displayed content on the screen of the electronic device, a category corresponding to at least one display area in the displayed content includes: Obtaining a first ratio of the first display area to the screen; When the first ratio is less than or equal to a preset ratio, determining that the first display area and the second display area correspond to the second category; When the first ratio is greater than the preset ratio, it is determined that the first display area corresponds to the first category and the second display area corresponds to the second category.
4. The method according to claim 3, characterized in that The step of adjusting the display brightness of each of the display areas based on the brightness adjustment information of each of the categories includes: When it is determined that the first display area and the second display area correspond to the second category, adjusting the display brightness of the first display area and the second display area based on the brightness adjustment information of the second category; or, When it is determined that the first display area corresponds to the first category and the second display area corresponds to the second category, the display brightness of the first display area is adjusted based on the brightness adjustment information of the first category, and the display brightness of the second display area is adjusted based on the brightness adjustment information of the second category.
5. The method according to claim 2, characterized in that: There are multiple display areas in the display content, and adjusting the display brightness of each display area based on the brightness adjustment information of each category includes: Selecting first brightness adjustment information from the plurality of categories of brightness adjustment information, wherein, under the same ambient light illumination, the display brightness represented by the first brightness adjustment information is greater than the display brightness represented by other brightness adjustment information; Adjusting a screen backlight parameter of the electronic device based on the first brightness adjustment information; Based on the first brightness adjustment information and the second brightness adjustment information, the pixel value of the third display area is adjusted, wherein the third display area is a display area where content belonging to a third category is located, and the third category is the category corresponding to the second brightness adjustment information.
6. The method according to claim 5, characterized in that The adjusting the pixel value of the third display area based on the first brightness adjustment information and the second brightness adjustment information includes: Acquire a first pixel value of a fourth display area, where the fourth display area is a display area where content belonging to a fourth category is located, and the fourth category is a category corresponding to the first brightness adjustment information; Acquire a first display brightness and a second display brightness, wherein the first display brightness is the display brightness represented by the second brightness adjustment information under the current ambient light illumination, and the second display brightness is the display brightness represented by the first brightness adjustment information under the current ambient light illumination; determining a ratio between the first display brightness and the second display brightness; Based on the first pixel value and the ratio, a second pixel value is determined, and the pixel value of the third display area is adjusted to the second pixel value.
7. The method according to any one of claims 1 to 6, characterized in that: The display content includes a plurality of display areas, and the method further includes: In response to detecting a brightness bar display operation, a corresponding brightness bar is displayed in each of the display areas, and the brightness bar is used to adjust the display brightness of the display area where the brightness bar is located.
8. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: A target function is turned on, where the target function is a function of adjusting display brightness based on a category to which the displayed content on the screen belongs.
9. A screen brightness adjustment device, characterized in that: The device comprises: a category determination module, configured to determine, based on the displayed content on the screen of the electronic device, a category corresponding to at least one display area in the displayed content, wherein different display areas correspond to different categories, and the category corresponding to the display area is used to characterize the category to which the content displayed in the display area belongs; The brightness adjustment module is configured to adjust the display brightness of each of the display areas based on the category corresponding to each of the display areas.
10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method as claimed in any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 8.
