Brightness adjustment method and device, and storage medium

By increasing the backlight level and dividing the brightness of pixels when the terminal screen is lit, combined with mask adjustment, the problem of low contrast between bright and dark images on the terminal screen is solved, achieving clear display of bright and dark details and improving the user experience.

CN117597726BActive Publication Date: 2026-02-06BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202280004162.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-17
Publication Date
2026-02-06
Estimated Expiration
2042-06-17

AI Technical Summary

Technical Problem

The image displayed on the terminal screen has low contrast between light and dark areas, and the details in both light and dark areas are not clear, which affects the user's viewing experience.

Method used

When the terminal screen is lit, the backlight level of the screen image is increased to the target backlight level, the pixels are divided into a first category and a second category, the brightness of the first category pixels is kept unchanged, the brightness of the second category pixels is reduced, and a mask is added to non-image content to adjust the backlight level.

Benefits of technology

Enhance the contrast between bright and dark areas in the screen image, making details clearer and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117597726B_ABST
    Figure CN117597726B_ABST
Patent Text Reader

Abstract

The present disclosure provides a brightness adjustment method and device, and a storage medium. The brightness adjustment method comprises: in the case that the screen of the terminal is lighted, increasing the backlight level of the screen image from an initial backlight level to a target backlight level; dividing all pixel points included in the screen image into first type pixel points and second type pixel points based on the first brightness value of any pixel point included in the screen image under the target backlight level; maintaining the first brightness value of the first type pixel points unchanged, and reducing the brightness value of the second type pixel points from the first brightness value to a second brightness value. The brightness adjustment method of the present disclosure can enhance the contrast of bright and dark parts in the screen image, and make the bright and dark details in the screen image clearer.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The technical solution of the present disclosure relates to the field of image processing, and particularly relates to a brightness adjustment method and device and a storage medium. BACKGROUND

[0002] Generally, users are extremely sensitive to the brightness of images displayed on a terminal screen, and thus the brightness effect of images displayed on the terminal screen will seriously affect the subjective perception of the user on the terminal performance.

[0003] However, in actual applications, the images displayed on the terminal screen often show low brightness contrast and unclear brightness details, which affects the visual experience of the user. SUMMARY

[0004] Therefore, the present disclosure provides a brightness adjustment method and device and a storage medium.

[0005] According to a first aspect of the present disclosure, a brightness adjustment method is provided, and the method comprises:

[0006] in the case that the screen of the terminal is lighted up, increasing the backlight level of the screen image from an initial backlight level to a target backlight level;

[0007] based on a first brightness value of any pixel point included in the screen image under the target backlight level, dividing all pixel points included in the screen image into first type pixel points and second type pixel points; wherein the first brightness value of the first type pixel points is greater than or equal to a preset brightness value, and the first brightness value of the second type pixel points is less than the preset brightness value;

[0008] maintaining the first brightness value of the first type pixel points unchanged, and reducing the brightness value of the second type pixel points from the first brightness value to a second brightness value.

[0009] According to any embodiment provided by the present disclosure, after the backlight level of the screen image is increased from the initial backlight level to the target backlight level, the method further comprises:

[0010] adding a mask layer to a target layer in which non-image content in the screen image is located; wherein the mask layer is used to adjust the backlight level of the non-image content from the target backlight level back to the initial backlight level.

[0011] According to any embodiment provided by the present disclosure, before the backlight level of the screen image is increased from the initial backlight level to the target backlight level, the method further comprises:

[0012] determine the target backlight level based on the first maximum luminance value, the second maximum luminance value and the initial backlight level, wherein the first maximum luminance value is a maximum luminance value of the terminal in a highlight mode, and the second maximum luminance value is a maximum luminance value of the terminal in a non-highlight mode.

[0013] In combination with any of the embodiments provided in the present disclosure, the determination of the target backlight level based on the first maximum luminance value, the second maximum luminance value and the initial backlight level comprises:

[0014] determining a first quotient value of the first maximum luminance value and the second maximum luminance value;

[0015] determining the target backlight level based on a product of the first quotient value and the initial backlight level.

[0016] In combination with any of the embodiments provided in the present disclosure, the preset luminance value is half of a third maximum luminance value allowed by a first color space, and the first color space at least includes a luminance channel.

[0017] In combination with any of the embodiments provided in the present disclosure, before the division of all pixel points included in the screen image into the first type of pixel points and the second type of pixel points, the method further comprises:

[0018] converting the screen image from a second color space to the first color space;

[0019] determining, in the first color space, a first luminance value of each pixel point included in the screen image based on a value of the luminance channel of the each pixel point.

[0020] In combination with any of the embodiments provided in the present disclosure, before the reduction of the luminance value of the second type of pixel points to a second luminance value, the method further comprises:

[0021] determining a second quotient value of the target backlight level and the initial backlight level;

[0022] determining a third quotient value of the first luminance value of the second type of pixel points and the preset luminance value;

[0023] determining the second luminance value corresponding to each of the second type of pixel points with the third quotient value as a base and the second quotient value as an index.

[0024] In combination with any of the embodiments provided in the present disclosure, the method further comprises:

[0025] In the first color space, after the luminance value of the second type of pixel points is reduced to the target luminance value, the screen image after luminance adjustment is converted from the first color space back to the second color space and displayed on the screen.

[0026] According to a second aspect of the present disclosure, a luminance adjustment device is provided, the device comprising:

[0027] A backlight level increasing module configured to increase a backlight level of the screen image from an initial backlight level to a target backlight level in a case where a screen of the terminal is lighted up.

[0028] A pixel point division module configured to divide all pixel points comprised by the screen image into first type of pixel points and second type of pixel points based on a first luminance value of any pixel point comprised by the screen image under the target backlight level, wherein the first luminance value of the first type of pixel points is greater than or equal to a preset luminance value, and the first luminance value of the second type of pixel points is less than the preset luminance value.

[0029] A luminance value adjustment module configured to maintain the first luminance value of the first type of pixel points unchanged, and reduce a luminance value of the second type of pixel points from the first luminance value to a second luminance value.

[0030] According to a third aspect of the present disclosure, a computer readable storage medium is provided, the machine readable storage medium stores machine readable instructions, when the machine readable instructions are called and executed by a processor, the processor is caused to implement the luminance adjustment method of any embodiment of the present disclosure.

[0031] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising

[0032] A processor;

[0033] A memory for storing processor executable instructions;

[0034] The processor is configured to execute the luminance adjustment method of any embodiment of the present disclosure.

[0035] The technical solutions provided by the embodiments of the present disclosure can include the following beneficial effects:

[0036] The brightness adjustment method and device provided by the embodiments of the present disclosure, the storage medium, in the case that the screen of the terminal is lighted, the backlight level of the screen image is increased from an initial backlight level to a target backlight level; based on a first brightness value of any pixel point included in the screen image under the target backlight level, all pixel points included in the screen image are divided into first type pixel points and second type pixel points; the first brightness value of the first type pixel points is maintained unchanged, and the brightness value of the second type pixel points is decreased from the first brightness value to a second brightness value. The brightness adjustment method of the embodiments of the present disclosure can enhance the contrast of bright and dark parts in the screen image, and make the bright and dark details in the screen image clearer.

[0037] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0038] The accompanying drawings incorporated in the specification and forming a part of it, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0039] Figure 1 is a flowchart of a brightness adjustment method according to an exemplary embodiment of the present disclosure;

[0040] Figure 2 is a flowchart of another brightness adjustment method according to an exemplary embodiment of the present disclosure;

[0041] Figure 3 is a schematic diagram of an image according to an exemplary embodiment of the present disclosure;

[0042] Figure 4 is a structural schematic diagram of a brightness adjustment device according to an exemplary embodiment of the present disclosure;

[0043] Figure 5 is a structural schematic diagram of another brightness adjustment device according to an exemplary embodiment of the present disclosure;

[0044] Figure 6 is a structural schematic diagram of another brightness adjustment device according to an exemplary embodiment of the present disclosure;

[0045] Figure 7 is a structural schematic diagram of another brightness adjustment device according to an exemplary embodiment of the present disclosure;

[0046] Figure 8 is a structural schematic diagram of another brightness adjustment device according to an exemplary embodiment of the present disclosure;

[0047] Figure 9is a structural schematic diagram of another luminance adjustment device according to an exemplary embodiment of the present disclosure;

[0048] Figure 10 is a structural schematic diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0049] The exemplary embodiments will be described in detail herein with reference to the attached drawings. In the following description, unless otherwise indicated, like numbers in the attached drawings refer to the same or similar elements. The following detailed description includes specific details for the purpose of providing a thorough understanding of the exemplary embodiments. However, it will be apparent to those skilled in the art that the exemplary embodiments can be practiced without these specific details. In some instances, well-known structures and components are not described in detail in order to avoid obscuring the understanding of the present disclosure.

[0050] The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the present disclosure. As used in the present disclosure and the appended claims, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0051] It is to be understood that the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. It is to be further understood that the terms "comprise," "comprising," "comprises," and / or "comprising" when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It is to be understood that the terms "if' and "as if' as used herein can be interpreted either as "when" or "when a" or "in response to determining."

[0052] The luminance adjustment method of the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0053] Figure 1 is a flowchart of a luminance adjustment method according to an exemplary embodiment of the present disclosure. As shown in the flowchart, the exemplary embodiment method can be applied to a terminal, including but not limited to a mobile phone, a notebook computer, a desktop computer, an iPad, etc. Specifically, the exemplary embodiment method can be executed by an operating system of the terminal, including but not limited to an Android system, an IOS system, etc. The method can include the following steps: Figure 1

[0054] In step 100, in a case where the screen of the terminal is lighted, the backlight level of the screen image is increased from an initial backlight level to a target backlight level.​

[0055] The screen image is an entire image displayed on a terminal screen. The initial backlight level is a backlight level corresponding to a current brightness bar state of the terminal. The target backlight level is a backlight level at which the screen image can be clearly displayed. The target backlight level is higher than the initial backlight level.

[0056] The backlight level corresponds to brightness of the screen image. The higher the backlight level, the brighter the screen image.

[0057] In step 102, all pixel points included in the screen image are divided into first-type pixel points and second-type pixel points based on a first brightness value of any pixel point included in the screen image under the target backlight level.

[0058] The first brightness value of the first-type pixel point is greater than or equal to a preset brightness value, and the first brightness value of the second-type pixel point is less than the preset brightness value.

[0059] The first brightness value is an initial brightness value corresponding to each pixel point in the screen image under the target backlight level. The preset brightness value is a demarcation value of brightness values of the first-type pixel points and the second-type pixel points. When the brightness value of a pixel point is greater than or equal to the preset brightness value, the pixel point is determined as the first-type pixel point. When the brightness value of a pixel point is less than the preset brightness value, the pixel point is determined as the second-type pixel point.

[0060] In step 104, the first brightness value of the first-type pixel point is maintained unchanged, and the first brightness value of the second-type pixel point is reduced to a second brightness value.

[0061] The second brightness value is a brightness value that can make the brightness of the second-type pixel points darker.

[0062] The brightness adjustment method provided by the embodiments of the present disclosure can increase the difference between the brightness values of the first-type pixel points and the second-type pixel points by maintaining the brightness value of the first-type pixel points unchanged, and reducing the brightness value of the second-type pixel points from the first brightness value to the second brightness value. That is, the contrast of bright and dark parts in the screen image can be enhanced, and the bright and dark details in the screen image can be made clearer.

[0063] Figure 2is a flowchart of yet another brightness adjustment method according to an exemplary embodiment of the present disclosure. In this embodiment, the complete process of the brightness adjustment method will be described in further detail. Where the same steps as in the foregoing embodiments, this embodiment will be simply described and will not be described in detail, and can be referred to any of the foregoing embodiments. As shown in FIG. 13, the exemplary embodiment method can include the following steps: Figure 2

[0064] In step 200, the target backlight level is determined based on the first maximum brightness value, the second maximum brightness value, and the initial backlight level.

[0065] The first maximum brightness value is the maximum brightness value of the terminal in a high-light mode, and the second maximum brightness value is the maximum brightness value of the terminal in a non-high-light mode.

[0066] The high-light mode refers to a terminal mode exhibited by the terminal when some special functions are triggered. For example, when the terminal plays an HDR (High-Dynamic Range) video, the mode exhibited by the terminal is the high-light mode.

[0067] Corresponding to the foregoing high-light mode, the non-high-light mode refers to a terminal brightness mode exhibited by the terminal under normal circumstances.

[0068] In actual operation, the brightness value of the terminal screen can be adjusted by adjusting the brightness bar of the terminal, so that the brightness value of the terminal screen reaches the second maximum brightness value. The second maximum brightness value is less than the first maximum brightness value. The first maximum brightness value and the second maximum brightness value are determined by the performance of the terminal screen. The first maximum brightness value and the second maximum brightness value of different terminals can be the same or different, and the present disclosure does not limit this.

[0069] The initial backlight level can be obtained according to the brightness bar of the terminal. Specifically, the current brightness bar state of the terminal can be automatically read by the operating system of the terminal, and the corresponding backlight level can be determined from the read brightness bar state, which is the initial backlight level. Different brightness bar states correspond to different backlight levels one-to-one, and this mapping relationship can be pre-stored in the operating system of the terminal. When the current brightness bar state is read, the corresponding backlight level can be determined from the mapping relationship.

[0070] In an optional example, the detailed process of determining the target backlight level from the first maximum brightness value, the second maximum brightness value, and the initial backlight level can be as follows:

[0071] ​First, a first quotient value of the first maximum luminance value and the second maximum luminance value is determined.

[0072] For convenience of description, Lv max represents the first maximum luminance value, Lv normal represents the second maximum luminance value, and C1 represents the first quotient value. The above relationship can be represented as:

[0073]

[0074] After the first quotient value C1 is determined according to the above formula (1), a target backlight level can be further determined based on a product of the first quotient value C1 and the initial backlight level.

[0075] Similarly, S can be used to represent the initial backlight level, and D can be used to represent the target backlight level. The above relationship can be represented as:

[0076]

[0077] Thus, the target backlight level D can be obtained.

[0078] In step 202, in a case where the screen of the terminal is lighted, the backlight level of the screen image is increased from the initial backlight level to the target backlight level.

[0079] After the target backlight level D is obtained, the operating system of the terminal can increase the backlight level of the screen image from the initial backlight level S to the target backlight level D.

[0080] As described above, the first maximum luminance value Lv max is greater than the second maximum luminance value Lv normal Therefore, the first quotient value C1 is greater than 1, that is, the luminance value of the target backlight level D is higher than the luminance value of the initial backlight level S. Therefore, after being increased from the initial backlight level S to the target backlight level D, the luminance value of the screen image can be improved.

[0081] In step 204, a mask layer is added for a target layer in the screen image where non-image content is located.

[0082] The mask layer is used to adjust the backlight level from the target backlight level back to the initial backlight level.

[0083] The non-image content refers to background content in the screen image other than image content. For example, Figure 3As shown in the picture, the entire picture is the screen image, the picture of the puppy is the image content, and the background content other than the picture of the puppy is the non-image content.

[0084] In an optional example, the image content can also be video image content. Specifically, the brightness adjustment method of the embodiment of the present disclosure can be used for each frame of image in the video image content.

[0085] The image content and the non-image content can be stored in different layers. In this example, the layer storing the non-image content is referred to as the target layer. In actual operation, the layer storing the non-image content can be identified by the operating system of the terminal according to parameters such as size, position, color, and encoding format of different layers, and the layer is the target layer.

[0086] It should be noted that adding the mask layer can make the brightness of the non-image content part in the screen image close to the initial brightness value in visual effect, but actually does not reduce the brightness value of the pixel point corresponding to the non-image content part. That is, after the brightness value of each pixel point included in the screen image is increased in step 202, the mask layer does not reduce the brightness value of the pixel point of the non-image content part.

[0087] In this example, by adding the mask layer to the target layer where the non-image content in the screen image is located, the situation that the screen image is bright and dark alternately can be prevented, and the user experience is enhanced.

[0088] In step 206, the screen image is converted from the second color space to the first color space.

[0089] The first color space includes at least a brightness channel. The value of each pixel point in the screen image in the brightness channel is used to represent the brightness value of the pixel point.

[0090] In an optional example, the second color space can be an RGB (Red Green Blue) color space, and the first color space can be an ICtCp (Iuma CtCp) color space. The ICtCp color space includes a brightness channel, and generally, I can be used to represent the brightness value of the brightness channel.

[0091] Specifically, the operating system of the terminal can obtain the value of each pixel in the screen image in the RGB color space from the color lookup table of the terminal, and then convert it to the ICtCp color space by using a mathematical method. For example, the value of each pixel in the screen image obtained in the RGB color space can be multiplied by a 3x3 matrix to obtain the value in the ICtCp color space.

[0092] It should be noted that the above description of the conversion from the RGB color space to the ICtCp color space is only illustrative, and is intended to enable a person skilled in the art to better understand the technical solutions of the embodiments of the present disclosure. In actual application, other conversion methods can also be used, which are not limited by the present disclosure.

[0093] In step 208, in the first color space, a first luminance value of each pixel included in the screen image is determined based on the value of the luminance channel of the pixel.

[0094] The above example continues to be taken as an example. Since the ICtCp color space includes a luminance channel, after each pixel in the screen image is converted from the RGB color space to the ICtCp color space, the luminance value I of each pixel included in the screen image in the luminance channel can be obtained. Further, the luminance value I of each pixel in the luminance channel can be determined as the first luminance value of each pixel.

[0095] In step 210, based on the first luminance value of any pixel included in the screen image, all pixels included in the screen image are divided into first type pixels and second type pixels.

[0096] The first luminance value of the first type pixel is greater than or equal to a preset luminance value, and the first luminance value of the second type pixel is less than the preset luminance value.

[0097] In an optional example, the preset luminance value can be half of a third maximum luminance value allowed by the first color space.

[0098] The third maximum luminance value can be 255 or 254, which is not limited by the present disclosure.

[0099] Taking the third maximum luminance value of 254 as an example, the preset luminance value is 127. When the first luminance value of the first pixel point in the screen image is 120, since 120 is less than the preset luminance value 127, the first pixel point is divided into the second type of pixel points. When the first luminance value of the second pixel point in the screen image is 160, since 160 is greater than the preset luminance value 127, the second pixel point is divided into the first type of pixel points.

[0100] In step 212, based on the target backlight level, the initial backlight level, the preset luminance value, and the first luminance value of the second type of pixel points, a second luminance value corresponding to the second type of pixel points is determined.

[0101] Specifically, the process of obtaining the second luminance value corresponding to the second type of pixel points can be as follows:

[0102] First, a second quotient value of the target backlight level and the initial backlight level is determined.

[0103] As described above, S can be used to represent the initial backlight level, D can be used to represent the target backlight level, and C2 can be used to represent the second quotient value. Then the above relationship can be represented as:

[0104]

[0105] Then, a third quotient value of the first luminance value of the second type of pixel points and the preset luminance value can be determined.

[0106] For convenience of description, X can be used to represent the first luminance value of the second type of pixel points, A can be used to represent the preset luminance value, and C3 can be used to represent the third quotient value.

[0107] As described above, the preset luminance value A is half of the third maximum luminance value allowed by the terminal screen in the first color space, which can be represented as: max I represents the third maximum luminance value.

[0108] Then

[0109] The above relationship can be represented as:

[0110]

[0111] As described above, generally, I can be used to represent the ICtCp color space, i.e. the luminance value corresponding to the luminance channel in the first color space. The value range of I can be pre-set. Specifically, the value range of I can be represented as [0, Imax].

[0112] As can be seen from the above, the preset luminance value And the first luminance value of the second type of pixel point is less than the preset luminance value, the value range of the first luminance value x of the second type of pixel point can be represented as

[0113] After obtaining the third entropy value C3, the second luminance value corresponding to each second type of pixel point can be further determined according to the second quotient value C2 and the third quotient value C3.

[0114] Specifically, the third quotient value C3 can be used as the base, and the second quotient value C2 can be used as the index to determine the second luminance value corresponding to each second type of pixel point.

[0115] The second luminance value can be represented by B, and the above relationship can be represented as:

[0116]

[0117] As can be seen from the above, the luminance value of the second type of pixel point is less than That is, x in formula (6) is less than

[0118] Through formula (6), the luminance value of the second type of pixel point can be reduced. That is, no matter what the value of the first luminance value x of the second type of pixel point is, after calculation by the above formula (6), the second luminance value B less than the first luminance value x can be obtained.

[0119] In step 214, the first luminance value of the first type of pixel point is maintained unchanged, and the luminance value of the second type of pixel point is reduced from the first luminance value to the second luminance value.

[0120] In step 216, the screen image after luminance adjustment is converted from the first color space back to the second color space in the first color space and displayed on the screen.

[0121] Then continue with the above example, after reducing the luminance value of the second type of pixel point to the second luminance value in the ICtCp color space, that is, reducing the value of each pixel point in the second type of pixel point in the luminance channel, the reduced value in the ICtCp color space can be converted to the RGB color space to obtain a new color lookup table, and the luminance of the image displayed on the screen is adjusted according to the value in the new color lookup table.

[0122] The brightness adjustment method provided by the embodiments of the present disclosure can increase the difference between the brightness values of the first type of pixel points and the second type of pixel points, i.e., can enhance the contrast of bright and dark parts in the screen image, so that the bright and dark details in the screen image become clearer.

[0123] For each of the foregoing method embodiments, in order to simply describe, it is expressed as a combination of a series of actions, but those skilled in the art should know that the present disclosure is not limited by the order of the described actions, because according to the present disclosure, certain steps can be performed in other orders or simultaneously.

[0124] Secondly, those skilled in the art should know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.

[0125] Corresponding to the foregoing application function implementation method embodiments, the present disclosure also provides application function implementation device and corresponding terminal embodiments.

[0126] Figure 4 is a structural schematic diagram of a brightness adjustment device according to an exemplary embodiment of the present disclosure, which is applied to a terminal, such as Figure 4 As shown in the figure, the brightness adjustment device can include:

[0127] The backlight level increasing module 41 is configured to increase the backlight level of the screen image from an initial backlight level to a target backlight level when the screen of the terminal is lighted up;

[0128] The pixel point division module 42 is configured to divide all pixel points included in the screen image into first type of pixel points and second type of pixel points based on the first brightness value of any pixel point included in the screen image under the target backlight level; wherein the first brightness value of the first type of pixel points is greater than or equal to a preset brightness value, and the first brightness value of the second type of pixel points is less than the preset brightness value;

[0129] The brightness value adjustment module 43 is configured to maintain the first brightness value of the first type of pixel points unchanged, and reduce the brightness value of the second type of pixel points from the first brightness value to a second brightness value.

[0130] Optionally, as shown in Figure 5 Based on the modules shown in Figure 4 The brightness adjustment device can further include:

[0131] The masking module 51 is configured to add a mask to the target layer containing non-image content in the screen image; wherein the mask is used to adjust the backlight level of the non-image content from the target backlight level back to the initial backlight level.

[0132] Optional, such as Figure 6 As shown, in Figure 4 Based on the module shown, the brightness adjustment device may further include:

[0133] The target backlight level determination module 61 is configured to determine the target backlight level based on a first maximum brightness value, a second maximum brightness value, and the initial backlight level; wherein the first maximum brightness value is the maximum brightness value of the terminal in high brightness mode, and the second maximum brightness value is the maximum brightness value of the terminal in non-high brightness mode.

[0134] Optionally, when the target backlight level determination module 61 is configured to determine the target backlight level based on a first maximum brightness value, a second maximum brightness value, and the initial backlight level, it includes:

[0135] Determine a first quotient between the first maximum brightness value and the second maximum brightness value;

[0136] The target backlight level is determined based on the product of the first quotient and the initial backlight level.

[0137] Optionally, the preset brightness value is half of the third maximum brightness value allowed by the first color space, and the first color space includes at least a brightness channel.

[0138] Optional, such as Figure 7 As shown, in Figure 4 Based on the module shown, the brightness adjustment device may further include:

[0139] The first conversion module 71 is configured to convert the screen image from the second color space to the first color space;

[0140] The first brightness value determination module 72 is configured to determine the first brightness value of each pixel in the first color space based on the value of each pixel in the brightness channel of the screen image.

[0141] Optional, such as Figure 8 As shown, in Figure 7 Based on the module shown, the brightness adjustment device may further include:

[0142] The second entropy value determination module 81 is configured to determine a second quotient between the target backlight level and the initial backlight level;

[0143] The third entropy value determination module 82 is configured to determine a third quotient value of the first luminance value of the second type of pixel point and the preset luminance value.

[0144] The second luminance value determination module 83 is configured to determine the second luminance value corresponding to each of the second type of pixel point according to the second quotient value and the third quotient value.

[0145] Optionally, as shown in Figure 9 As shown in Figure 8 The luminance adjustment device can further include:

[0146] The second conversion module 91 is configured to, after reducing the luminance value of the second type of pixel point to the second luminance value in the first color space, convert the screen image with adjusted luminance from the first color space back to the second color space and display it on the screen.

[0147] For the device embodiment, since it basically corresponds to the method embodiment, the related parts can be referred to the part of the method embodiment. The device embodiment described above is only illustrative, wherein the units described above as separate components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., they can be located in one place, or distributed on multiple network units. According to actual needs, part or all of the modules can be selected to achieve the purpose of the present disclosure. Those skilled in the art can understand and implement it without creative labor.

[0148] Correspondingly, the present disclosure provides an electronic device. Including:

[0149] A processor;

[0150] A memory for storing processor-executable instructions;

[0151] The processor is configured to execute the luminance adjustment method of any embodiment of the present disclosure.

[0152] Figure 10 FIG. 1 is a structural schematic diagram of an electronic device 1000 according to an exemplary embodiment. For example, the electronic device 1000 can be a user equipment, which can specifically be a mobile phone, a computer, a tablet device, etc.

[0153] Referring to Figure 10The electronic device 1000 can include one or more of the following components: a processing component 1002, a memory 1004, a power component 1006, a multimedia component 1008, an audio component 1010, an input / output (I / O) interface 1012, a sensor component 1014, and a communication component 1016.

[0154] The processing component 1002 usually controls overall operations of the electronic device 1000, such as operations associated with displaying, making phone calls, data communications, camera operations and recording operations. The processing component 1002 can include one or more processors 1020 to execute instructions to complete all or part of steps of the methods described above. In addition, the processing component 1002 can include one or more modules to facilitate

[0155] The memory 1004 is configured to store various types of data to support operations of the electronic device 1000. Examples of these data include instructions for any application or method operating on the electronic device 1000, contact data, phonebook data, messages, pictures, videos, etc. The memory 1004 can be implemented by any type of volatile or non-volatile storage devices 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 storage, flash memory, magnetic or optical disk.

[0156] The power component 1006 provides power to various components of the electronic device 1000. The power component 1006 can include a power management system, one or more power sources, and other components associated with generating, managing and distributing power for the electronic device 1000.

[0157] The multimedia component 1008 includes a screen to provide an output interface between the electronic device 1000 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. When the electronic device 1000 is in an operating mode, such as a capturing mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0158] The audio component 1010 is configured to output and / or input an audio signal. For example, the audio component 1010 includes a microphone (MIC) to receive an external audio signal when the electronic device 1000 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, the audio component 1010 further includes a speaker to output an audio signal.

[0159] The I / O interface 1012 provides an interface between the processing component 1002 and a peripheral interface module, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0160] The sensor component 1014 includes one or more sensors for providing status assessments for various aspects of the electronic device 1000. For example, the sensor component 1014 can detect an open / closed position of the electronic device 1000, relative positioning of components, such as the display and keypad of the electronic device 1000 described above, changes in position of the electronic device 1000 or a component of the electronic device 1000, presence or absence of user contact with the electronic device 1000, orientation or acceleration / deceleration / g-force and temperature changes of the electronic device 1000. The sensor component 1014 can include a proximity sensor configured to detect presence of nearby objects without any physical touch. The sensor component 1014 can further include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1014 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0161] The communication component 1016 is configured to facilitate wired or wireless communication between the electronic device 1000 and other devices. The electronic device 1000 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, 4G LTE, 5G NR, or a combination thereof. In an example embodiment, the communication component 1016 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 1016 can further include 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 technology.

[0162] In an example embodiment, the electronic device 1000 can be implemented with 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, micro-controllers, microprocessors, or other electronic elements to perform the above-described methods.

[0163] In an example embodiment, a non-transitory computer-readable storage medium, such as the memory 1004 including instructions, is also provided, which when executed by the processor 1020 of the electronic device 1000, enables the electronic device 1000 to perform the brightness adjustment method of any embodiment of the present disclosure.

[0164] The non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.

[0165] Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the features disclosed herein. It is intended that the disclosure be construed as including any patents, patent applications, publications, publications, aspects, sub-combinations, variations, modifications, additions, and / or omissions falling within the spirit and scope of the disclosure. The specification and examples given are intended as illustrative only and are not intended to limit the true scope and spirit of the disclosure as defined in the claims.

[0166] It is to be understood that the disclosure is not limited to the precise structures herein described and illustrated in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the disclosure is limited only by the claims appended hereto.

Claims

1. A brightness adjustment method, characterized in that, The method is applied to a terminal, and the method includes: When the screen of the terminal is lit, the backlight level of the screen image is increased from the initial backlight level to the target backlight level. Based on the first brightness value of any pixel in the screen image at the target backlight level, all pixels in the screen image are divided into a first type of pixel and a second type of pixel; wherein the first brightness value of the first type of pixel is greater than or equal to a preset brightness value, and the first brightness value of the second type of pixel is less than the preset brightness value. The brightness value of the first type of pixel remains unchanged, and the brightness value of the second type of pixel is reduced from the first brightness value to the second brightness value; Before increasing the backlight level of the screen image from an initial backlight level to a target backlight level, the method further includes: The target backlight level is determined based on the first maximum brightness value, the second maximum brightness value, and the initial backlight level; wherein, the first maximum brightness value is the maximum brightness value of the terminal in high brightness mode, and the second maximum brightness value is the maximum brightness value of the terminal in non-high brightness mode.

2. The method according to claim 1, characterized in that, After increasing the backlight level of the screen image from an initial backlight level to a target backlight level, the method further includes: Add a mask to the target layer containing non-image content in the screen image; wherein the mask is used to adjust the backlight level of the non-image content from the target backlight level back to the initial backlight level.

3. The method according to claim 1, characterized in that, Determining the target backlight level based on the first maximum brightness value, the second maximum brightness value, and the initial backlight level includes: Determine a first quotient between the first maximum brightness value and the second maximum brightness value; The target backlight level is determined based on the product of the first quotient and the initial backlight level.

4. The method according to any one of claims 1-3, characterized in that, The preset brightness value is half of the third maximum brightness value allowed by the first color space, and the first color space includes at least a brightness channel.

5. The method according to claim 4, characterized in that, Before dividing all pixels in the screen image into a first category of pixels and a second category of pixels, the method further includes: The screen image is converted from the second color space to the first color space; In the first color space, a first brightness value for each pixel is determined based on the value of each pixel in the brightness channel of the screen image.

6. The method according to claim 5, characterized in that, Before reducing the brightness value of the second type of pixels to the second brightness value, the method further includes: Determine a second quotient between the target backlight level and the initial backlight level; Determine a third quotient between the first brightness value and the preset brightness value of the second type of pixel; The second brightness value corresponding to each second type of pixel is determined based on the second quotient and the third quotient.

7. The method according to claim 6, characterized in that, The method further includes: In the first color space, after reducing the brightness value of the second type of pixel to the second brightness value, the screen image with adjusted brightness is converted from the first color space back to the second color space and displayed on the screen.

8. A brightness adjustment device, characterized in that, The device is used in a terminal, and the device includes: The backlight level enhancement module is configured to increase the backlight level of the screen image from an initial backlight level to a target backlight level when the screen of the terminal is lit. The pixel division module is configured to divide all pixels in the screen image into a first type of pixel and a second type of pixel based on the first brightness value of any pixel in the screen image at the target backlight level; wherein the first brightness value of the first type of pixel is greater than or equal to a preset brightness value, and the first brightness value of the second type of pixel is less than the preset brightness value. The brightness value adjustment module is configured to maintain the first brightness value of the first type of pixels unchanged, and to reduce the brightness value of the second type of pixels from the first brightness value to the second brightness value; The device further includes: The target backlight level determination module is configured to determine the target backlight level based on a first maximum brightness value, a second maximum brightness value, and the initial backlight level; wherein the first maximum brightness value is the maximum brightness value of the terminal in high brightness mode, and the second maximum brightness value is the maximum brightness value of the terminal in non-high brightness mode.

9. A computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the method of any one of claims 1 to 7.

10. An electronic device, comprising: processor; Memory used to store processor-executable instructions; The processor is configured to perform the brightness adjustment method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Backlight adjusting method and device and display device

    CN111179863A