Method and apparatus for displaying interface image

A method of displaying an interface image includes: acquiring a currently displayed interface image, and determining a grayscale of each pixel point of the interface image; in the grayscales of all the pixel points, determining the number of each grayscale; acquiring N grayscales, the numbers of the N grayscales being the first N largest numbers, where N is a preset positive integer; when each difference between the N grayscales exceeds a first preset value, and a ratio of a sum of the numbers of the N grayscales to a sum of the numbers of all the grayscales exceeds a second preset value, determining a brightness adjustment parameter corresponding to the interface image; and reducing a current backlight brightness based on the brightness adjustment parameter.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to Chinese Patent Application No. 201711265222.6, filed Dec. 5, 2017, the disclosure of which is hereby incorporated by reference in its entirety.

BACKGROUND

With the development of computer technologies, mobile phones and other mobile terminals have become modern essential items, and play an increasingly important role in daily lives.

SUMMARY

The present disclosure relates generally to the field of computer technologies, and more specifically to a method and apparatus for displaying an interface image.

The inventors of the present disclosure have recognized that, with the increasing size of screens of the mobile phones, the screens of the mobile phone have become the most important part of the overall power consumption of the mobile phones. Therefore, there is an urgent need for a method for reducing the power consumption of the screens of the mobile phone.

Various embodiments of the present disclosure provide a method and apparatus for displaying an interface image.

In a first aspect, a method is provided for displaying an interface image, including:acquiring a currently displayed interface image, and determining a grayscale of each pixel point of the interface image;in the grayscales of all the pixel points, determining the number of each grayscale;acquiring N grayscales, the numbers of the N grayscales being the first N largest numbers, where N is a preset positive integer;when each difference between the N grayscales exceeds a first preset value, and a ratio of a sum of the numbers of the N grayscales to a sum of the numbers of all the grayscales exceeds a second preset value, determining a brightness adjustment parameter corresponding to the interface image; andreducing a current backlight brightness based on the brightness adjustment parameter.

In some embodiments, the determining the brightness adjustment parameter corresponding to the interface image includes:determining a contrast of the interface image; anddetermining a brightness adjustment parameter corresponding to a contrast range to which the contrast of the interface image belongs according to a pre-stored corresponding relationship between the contrast range and the brightness adjustment parameter.

In some embodiments, the determining the brightness adjustment parameter corresponding to the contrast range to which the contrast of the interface image belongs according to the pre-stored corresponding relationship between the contrast range and the brightness adjustment parameter includes:acquiring a current ambient light brightness; anddetermining the brightness adjustment parameter corresponding to the interface image according to the current ambient light brightness, the contrast of the interface image, and a pre-stored corresponding relationship among the contrast range, the ambient light brightness range and the brightness adjustment parameter.

In some embodiments, the determining the brightness adjustment parameter corresponding to the contrast range to which the contrast of the interface image belongs according to the pre-stored corresponding relationship between the contrast range and the brightness adjustment parameter includes:acquiring a current backlight brightness;determining the brightness adjustment parameter corresponding to the interface image according to the current backlight brightness, the contrast corresponding to the interface image, and a pre-stored corresponding relationship among the contrast range, the backlight brightness range, and the brightness adjustment parameter.

In some embodiments, prior to the determining the grayscale of each pixel point of the interface image, the method further includes:acquiring a current ambient light brightness; anddetermining whether the current ambient brightness is within a preset brightness range.

In some embodiments, prior to the determining the grayscale of each pixel point of the interface image, the method further includes:acquiring a current backlight brightness; anddetermining whether the current backlight brightness is greater than a third preset value.

In some embodiments, the brightness adjustment parameter is an adjustment brightness; andthe reducing the current backlight brightness according to the brightness adjustment parameter includes:subtracting the adjustment brightness corresponding to the interface image from the current backlight brightness to obtain a reduced backlight brightness.

In some embodiments, the brightness adjustment parameter is an adjustment ratio; andthe reducing the current backlight brightness according to the brightness adjustment parameter includes:multiplying the current backlight brightness by the adjustment ratio corresponding to the interface image to obtain a reduced backlight brightness; orcalculating a product of the current backlight brightness and the adjustment ratio corresponding to the interface image, and subtracting the product from the current backlight brightness to obtain a reduced backlight brightness.

In some embodiments, prior to the determining the grayscale of each pixel point of the interface image, the method further includes:mapping the interface image to an HSV space or a YUV space;the determining the grayscale of each pixel point of the interface image includes:determining the grayscale of each pixel point of the interface image based on lightness information of the HSV space or lightness information of the YUV space.

In another aspect, an apparatus is provided for displaying an interface image, including:an acquisition portion or module configured to acquire a currently displayed interface image, and determine a grayscale of each pixel point of the interface image;the acquisition module is further configured to determine the number of each grayscale in the grayscales of all the pixel points;the acquisition module is further configured to acquire N grayscales, the numbers of the N grayscales being the first N largest numbers, where N is a preset positive integer;the acquisition module is further configured to, when each difference between the N grayscales exceeds a first preset value, and a ratio of a sum of the numbers of the N grayscales to a sum of the numbers of all the grayscales exceeds a second preset value, determine a brightness adjustment parameter corresponding to the interface image; andan adjustment module configured to reduce a current backlight brightness based on the brightness adjustment parameter.

Alternatively, the acquisition module is further configured to:determine a contrast of the interface image; anddetermine a brightness adjustment parameter corresponding to a contrast range to which the contrast of the interface image belongs according to a pre-stored corresponding relationship between the contrast range and the brightness adjustment parameter.

In a third aspect, a non-transitory computer-readable storage medium is provided, wherein at least one instruction, at least one program, code set or instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the method for displaying an interface image according to the above first aspect.

In some embodiments, the determining the brightness adjustment parameter corresponding to the interface image includes:determining a contrast of the interface image; anddetermining a brightness adjustment parameter corresponding to a contrast range to which the contrast of the interface image belongs according to a pre-stored corresponding relationship between the contrast range and the brightness adjustment parameter; andwherein the determining the brightness adjustment parameter corresponding to the contrast range to which the contrast of the interface image belongs according to the pre-stored corresponding relationship between the contrast range and the brightness adjustment parameter includes:acquiring a current ambient light brightness; anddetermining the brightness adjustment parameter corresponding to the interface image according to the current ambient light brightness, the contrast of the interface image, and a pre-stored corresponding relationship among the contrast range, the ambient light brightness range and the brightness adjustment parameter.

In a fourth aspect, an apparatus is provided for displaying an interface image, including: a processor and memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the method for displaying an interface image according to the above first aspect.

In some embodiments, the processor is further configured to perform:determining a contrast of the interface image; anddetermining a brightness adjustment parameter corresponding to a contrast range to which the contrast of the interface image belongs according to a pre-stored corresponding relationship between the contrast range and the brightness adjustment parameter.

In some embodiments, the processor is further configured to perform:acquiring a current ambient light brightness; anddetermining the brightness adjustment parameter corresponding to the interface image according to the current ambient light brightness, the contrast of the interface image, and a pre-stored corresponding relationship among the contrast range, the ambient light brightness range and the brightness adjustment parameter.

In some embodiments, the processor is further configured to perform:acquiring a current backlight brightness;determining the brightness adjustment parameter corresponding to the interface image according to the current backlight brightness, the contrast corresponding to the interface image, and a pre-stored corresponding relationship among the contrast range, the backlight brightness range, and the brightness adjustment parameter.

In some embodiments, the processor is further configured to perform:acquiring a current ambient light brightness; anddetermining that the current ambient brightness is within a preset brightness range.

In some embodiments, the processor is further configured to perform:acquiring a current backlight brightness; anddetermining that the current backlight brightness is greater than a third preset value.

In some embodiments, the brightness adjustment parameter is an adjustment brightness; andwherein the processor is further configured to perform:subtracting the adjustment brightness corresponding to the interface image from the current backlight brightness to obtain a reduced backlight brightness.

In some embodiments, the brightness adjustment parameter is an adjustment ratio; andwherein the processor is further configured to perform:multiplying the current backlight brightness by the adjustment ratio corresponding to the interface image to obtain a reduced backlight brightness; orcalculating a product of the current backlight brightness and the adjustment ratio corresponding to the interface image, and subtracting the product from the current backlight brightness to obtain a reduced backlight brightness.

In some embodiments, the processor is further configured to perform:mapping the interface image to an HSV space or a YUV space; andthe determining the grayscale of each pixel point of the interface image, comprises:determining the grayscale of each pixel point of the interface image based on lightness information of the HSV space or lightness information of the YUV space.

It is to be understood that the above general description and the below detailed description are only illustrative and explanatory, and are not intended to limit the present disclosure.

Specific embodiments in this disclosure have been shown by way of examples in the drawings and are hereinafter described in detail. The figures and written description are not intended to limit the scope of the inventive concepts in any manner. Rather, they are provided to illustrate the inventive concepts to a person skilled in the art by reference to particular embodiments.

DETAILED DESCRIPTION

Various embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure can be easily understood by those skilled in the field of technology from the contents disclosed in this specification. The following description refers to the accompanying drawings in which same numeral references in different drawings may represent the same or similar elements unless otherwise indicated. Apparently, the described embodiments are only a part of embodiments in the present disclosure, rather than all of them. The present disclosure can also be implemented or applied through different specific embodiments, and various details of the specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present disclosure.

Various embodiments of the present disclosure provide a method for displaying an interface image, where an execution body of the method may be a terminal. The terminal may be a mobile terminal used by a user, such as a mobile phone. The terminal may be provided with a processor, memory, a transceiver, and the like.

The processor may be used to process the procedure of displaying an interface image, and the memory may be used to store the data required during the process of displaying the interface image and the generated data, and the transceiver may be used to receive and send data. The terminal may also be provided with an input/output device such as a screen, a light sensor, etc. The screen may be used for displaying an interface of an application program, etc. The light sensor may be used for detecting an ambient light intensity. In this embodiment, the technical solutions will be described in detail by using a mobile phone as the terminal for example. The detailed description is similar to other situations and will not be described in this embodiment.

As shown inFIG. 1, the process flow of the method may include the following steps.

In step101, a currently displayed interface image is acquired, and a grayscale of each pixel point of the interface image is determined.

The interface image refers to a content displayed on a screen of the terminal, and the grayscale represents a level of brightness from the darkest to the brightest, generally being 0-255, and there being a total of 256 levels.

In the implementation, as shown inFIG. 2, an automatic adjustment option is set in setting options of the terminal, and the user may operate to enable the automatic adjustment option, and then the terminal may determine that the function of automatic adjusting the backlight brightness is turned on. The terminal may obtain the currently displayed interface image, determine R (Red), G (Green), and B (Blue) of each pixel point of the interface image, and then use the R, G, and B of each pixel point to determine grayscales to which individual pixels of the interface image belong respectively.

Optionally, based on a YUV space or an HSV space, the grayscales of individual pixel points of the interface image may be determined, and the corresponding process may be as follows:mapping the interface image to the HSV space or the YUV space, and based on lightness information of the HSV space or lightness information of the YUV space, determining the grayscale of each of all pixel points of the interface image.

The HSV space is a color space created by A. R. Smith in 1978 based on the intuitive characteristics of color, also called the Hexcone Model. The color parameters in this model are: hue (H), saturation (S), and brightness (Value, V). The YUV space is a color-coding method (belonging to PAL) adopted by European television system, and is a color space adopted by PAL and SECAM analog color television systems. In the YUV space, the lightness signal Y and the color signals U and V are separated.

In an implementation, after the terminal acquires the currently displayed interface image, the terminal may determine R, G, and B of each pixel point of the interface image, and then use the R, G, and B of each pixel point to map the interface image to the HSV space, to obtain a value of V, a value of H, and a value of S for each pixel point. The value of V is the brightness information in the HSV space, generally V=max (R, G, B), and then the brightness information is used to determine the grayscale of each pixel (This is the same as the related art and will not be repeated herein.).

Alternatively, after the terminal acquires the currently displayed interface image, R, G, and B of each pixel point of the interface image may be determined. For any pixel point of the interface image, the formulas Y=0.299R+0.587G+0.114B, U=−0.147R−0.289G+0.436B, and V=0.615R−0.515G−0.100B may be used to determine Y, U, V of the pixel point. Based on the same way, the Y, U and V of all the pixel points may be calculated. Y is the lightness information of the pixel in the YUV space. For the pixel point, if the value of Y is a decimal, it may be corresponded to the grayscale by rounding. Based on the same manner, the grayscale to which a respective one of the pixel points belongs may be determined. For example, for a certain pixel point, R is 180, G is 78, and B is 100, the determined Y is 111.006, its rounding is 111, and the grayscale to which this pixel point belongs is 111.

Optionally, prior to determining the grayscale of each pixel point of the interface image, an ambient light brightness needs to be determined. The corresponding processing may be as follows:acquiring a current ambient light brightness, determining that the current ambient light brightness is within a preset brightness range, and determining the grayscale of each pixel point of the interface image.

The preset brightness range may be preset by the technician and stored in the terminal, such as 50 lux˜500 lux.

During implementation, after acquiring the currently displayed interface image, the terminal may use a light sensor to detect the ambient light brightness, then determine whether the detected ambient light brightness is within a preset brightness range, and if the ambient light brightness is within the preset brightness range, the grayscale of each pixel point of the interface image may be determined (the determination method has been described in detail above, and will not be repeated here).

Optionally, when the current backlight brightness is relatively large, the brightness of the backlight is adjusted, and the processing of the corresponding step101may be as follows:acquiring a current backlight brightness, determining that the current backlight brightness is greater than a third preset value, and determining the grayscale of each pixel point of the interface image.

The third preset value may be preset by a technician and stored in the terminal.

During implementation, after the terminal acquires the currently displayed interface image, the terminal may determine a current of the current backlight source, and then use the current of the backlight source to determine the corresponding backlight brightness as the current backlight brightness. Then, the terminal may determine whether the current backlight brightness is greater than a third preset value. If the current backlight brightness is greater than the third preset value, the terminal may determine the grayscale of each pixel point of the interface image (the determination method has been described in detail above, and will not be repeated here).

In step102, the number of each grayscale is determined in the grayscales of all the pixel points.

During implementation, after the terminal determines the grayscale of each pixel point of the interface image, the terminal may perform statistics on the number of each grayscale in the grayscales of all the pixel points. For example, the interface image includes 1024 pixel points. The number of the grayscale 30 is 500, the number of the grayscale 120 is 100, and the number of the grayscale 234 is 424.

In step103, N grayscales are acquired, the numbers of the N grayscales being the first N largest numbers, where N is a preset positive integer.

N is a preset positive integer, which may be preset by a technician and stored in the terminal, such as 2 and the like.

During implementation, after the terminal determines the number of each grayscale, the terminal may acquire N grayscales with the first N largest number. For example, N is 2, the interface image includes 1024 pixel points, the number of grayscale 30 is 500, the number of grayscale 120 is 100, and the number of grayscale 234 is 424, then 2 grayscales with the maximum number are 30, and 234.

In step104, if each difference between the N grayscales exceeds a first preset value, and a ratio of a sum of the numbers of the N grayscales to a sum of the numbers of all the grayscales exceeds a second preset value, the brightness adjustment parameter corresponding to the interface image is determined.

Both the first preset value and the second preset value may be preset by a technician and stored in the terminal. The first preset value may be 12 and the second preset value may be 80%.

During implementation, after the terminal acquires the N grayscales with maximum numbers, the terminal may calculate the difference between the N grayscales, calculate the sum of the numbers of the N grayscales, and then determine whether each difference between N grayscales exceeds the first preset value and determine whether the ratio of the sum of the numbers of the N grayscales to the sum of the total number of grayscales exceeds the second preset value.

If the difference between the N grayscales exceeds the first preset value, and the ratio of the sum of the numbers of the N grayscales to the sum of the numbers of all the grayscales exceeds the second preset value, the terminal may determine the brightness adjustment parameter corresponding to the currently displayed interface image, and the brightness adjustment parameter may be a fixed value, which is the same for any interface image that satisfies the above conditions.

For example, the first preset value may be 12, the second preset value may be 80%, N is 2, the interface image includes 1024 pixel points, the number of the grayscale 30 is 500, the number of the grayscale 120 is 100, the number of the grayscale 234 is 424, then the two grayscales having the maximum numbers are the grayscales 30 and 234, and the difference between the two grayscales is 204, which exceeds the first preset value. The sum of the two grayscales is equal to 924. The proportion of the sum of the two grayscales to the sum of the numbers of all the grayscales is 90%, exceeding 80%. Then the terminal may determine the brightness adjustment parameter corresponding to the currently displayed interface image.

Optionally, the method for determining the brightness adjustment parameter corresponding to the interface image may be as follows:determining a contrast of the interface image, and determining the brightness adjustment parameter corresponding to the contrast range to which the contrast of the interface image belongs according to a pre-stored corresponding relationship between the contrast range and the brightness adjustment parameter.

During implementation, the terminal stores in advance the corresponding relationship between the contrast range and the brightness adjustment parameter, which corresponding relationship may be preset by the technician and stored in the terminal, as shown in Table 1.

When the terminal determines that all the differences between the N grayscales exceed the first preset value, and the proportion of the sum of the N grayscales to the sum of the total grayscales exceeds the second preset value, the terminal may use the contrast formula C=(Lbrightness+R)/(Ldarkness+R) to calculate the contrast of the currently displayed interface image, wherein R is a reflection brightness of the screen, and is a fixed value for one terminal, Lbrightness is the brightness of the brightest content of the interface image, and Ldarkness is the brightness of the darkest content of the interface image. After the terminal determines the maximum grayscale and the minimum grayscale of the interface image, the Gamma response curve may be used to determine the brightness corresponding to the maximum grayscale, that is, the brightness of the brightest content of the interface image, and use the Gamma response curve to determine the brightness corresponding to the minimum grayscale, that is the brightness of the darkest content of the interface image.

After determining the contrast of the currently displayed interface image, the terminal may obtain a corresponding relationship between the contrast range and the brightness adjustment parameter. First, from the corresponding relationship, a contrast range to which the currently displayed interface image belongs is found, and then the brightness adjustment parameter corresponding to the contrast range is determined, i.e., the brightness adjustment parameter of the currently displayed interface image.

Optionally, the method for determining the brightness adjustment parameter corresponding to the interface image based on the ambient light brightness and the contrast of the interface image may be as follows:acquiring the current ambient light brightness, and determining the brightness adjustment parameter corresponding to the interface image according to the current ambient light brightness, the contrast corresponding to the interface image, and a pre-stored corresponding relationship among the contrast range, the ambient light brightness range, and the brightness adjustment parameter.

During implementation, the terminal stores in advance the corresponding relationship among the ambient light brightness range, the contrast range, and the brightness adjustment parameter. The corresponding relationship may be preset by the technician and stored in the terminal, as shown in Table 2.

After the terminal determines a contrast of the currently displayed interface image, the terminal may acquire the corresponding relationship among the ambient light brightness range, the contrast range, and the brightness adjustment parameter. Firstly, the contrast range to which the contrast of the currently displayed interface image belongs is found from the corresponding relationship, then, the ambient light brightness range to which the current ambient light brightness belongs is found, and then the brightness adjustment parameter corresponding to the determined contrast range and ambient light brightness range is found from the corresponding relationship, that is, the brightness adjustment parameter of the currently displayed interface image.

Optionally, the method for determining the brightness adjustment parameter corresponding to the interface image based on the current backlight brightness and the contrast of the interface image may be as follows:obtaining the current backlight brightness, and determining the brightness adjustment parameters corresponding to the interface image according to the current backlight brightness, the contrast corresponding to the interface image, and the pre-stored corresponding relationship among the contrast range, the backlight brightness range, and the brightness adjustment parameter.

During implementation, the terminal stores in advance the corresponding relationship among the ambient light brightness range, the contrast range, and the brightness adjustment parameter. The corresponding relationship may be preset by the technician and stored in the terminal.

After the terminal determines the contrast of the currently displayed interface image, the terminal may obtain the corresponding relationship among the backlight brightness range, the contrast range and the brightness adjustment parameter. Firstly, the contrast range to which the contrast of the currently displayed interface image belongs is searched from the corresponding relationship. Then, the backlight brightness range to which the current backlight brightness belongs is searched. And then the brightness adjustment parameter corresponding to the determined contrast range and the backlight brightness range is searched from the corresponding relationship, that is, the brightness adjustment parameter of the currently displayed interface image.

In step105, the current backlight brightness is reduced based on the brightness adjustment parameter.

During implementation, after the terminal determines the brightness adjustment parameter corresponding to the currently displayed interface image, the terminal may determine a current of the current backlight source (i.e., backlight), and then use the current of the backlight source to determine the corresponding backlight brightness, i.e., the current backlight brightness, and then use the brightness adjustment parameter corresponding to the currently displayed interface image to reduce the current backlight brightness. After the reduction, the current of the corresponding backlight source also decreases, which can reduce the power consumption of the terminal.

Optionally, the brightness adjustment parameter may be an adjustment brightness, and the corresponding processing of step102may be as follows:subtracting the adjustment brightness corresponding to the interface image from the current backlight brightness to obtain a reduced backlight brightness.

The brightness adjustment parameter may be an adjustment brightness, such as 10 lux.

During implementation, after the terminal determines the adjustment brightness corresponding to the currently displayed interface image, the terminal may determine the current of the current backlight source, and then use the current of the backlight source to determine the corresponding backlight brightness, that is, the current backlight brightness. By subtracting the adjustment brightness from the current backlight brightness to obtain the reduced backlight brightness, and then using the backlight brightness to determine the corresponding current and applying the current to the backlight source, the backlight brightness is the backlight brightness after the reduction, which can reduce the backlight brightness. For example, the current backlight brightness is 100 lux, and the adjustment brightness is 10 lux, then the reduced backlight brightness is 90 lux.

Optionally, the brightness adjustment parameter may be an adjustment ratio, and the processing of the corresponding step105may be as follows:based on the adjustment ratio, reducing the current backlight brightness.

The brightness adjustment parameter may be an adjustment ratio, such as 10%.

During implementation, after the terminal determines the adjustment ratio corresponding to the currently displayed interface image, the terminal may determine the current of the current backlight source, and then use the current of the backlight source to determine the corresponding backlight brightness, that is, the current backlight brightness.

By reducing the adjustment ratio based on the current backlight brightness, i.e., calculating the product of the current backlight brightness and the adjustment ratio corresponding to the interface image, and then subtracting the calculated product from the current backlight brightness to obtain the reduced backlight brightness, or multiplying the adjustment ratio corresponding to the interface image based on the current backlight brightness to obtain the reduced backlight brightness, and then using the backlight brightness to determine the corresponding current and applying the current to the backlight source, the backlight brightness is the backlight brightness after the reduction, which can reduce the backlight brightness.

For example, the current backlight brightness is 100 lux, and the adjustment ratio is 10%, then the reduced backlight brightness is 100 lux*(1−10)%, that is, 90 lux. Alternatively, the current backlight brightness is 100 lux, and the adjustment ratio is 90%, then the adjusted backlight brightness is 100 lux*90%, i.e., 90 lux.

In some the embodiments of the present disclosure, a rule for setting the brightness adjustment parameter is also provided.

For an image, the existing contrast formula is C=(Lbrightness+R)/(Ldarkness+R), R is the reflection brightness of the screen, which is a fixed value for a terminal, Lbrightness is the brightness of the brightest content of the image, and Ldarkness is the brightness of the darkest content of the image. If the contrast of an image is relatively high.

For example, Lbrightness is 200, Ldarkness is 10, R is 10, and then the contrast is C1=(200+10)/(10+10)=10.5, if the backlight brightness of this image is reduced by 10%, then Lbrightness is changed to 180, Ldarkness is changed to 9, and the contrast is C2=(180+10)/(9+10)=10. After the reduction, the contrast is still relatively high, and the user can still see the content clearly.

If the contrast of an image is relatively low, for example, Lbrightness is 200, Ldarkness is 190, R is 10, and the contrast is C1=(200+10)/(190+10)=1.05, if the backlight brightness is reduced by 10%, then Lbrightness changes to 180, Ldarkness becomes 171, and the contrast is C2=(180+10)/(171+10)=1.049. After the reduction, the contrast becomes smaller, and the content may not be clear.

Based on the above conclusions, for a content having a relatively high contrast, power consumption can be reduced by reducing the backlight brightness.

Therefore, when the technician sets the corresponding relationship between the contrast range and the brightness adjustment parameter, generally, for an interface having a relatively high contrast, the reduced amount of the backlight brightness is relatively large; and for a content having a relatively low contrast, the backlight brightness is not processed, or the reduced amount of the backlight brightness is relatively small. The interface images with a relatively high contrast generally include a chat window, a word document, an email interface, and the like. The interface image with a relatively low contrast includes a product list interface in a shopping application, and the like.

In some embodiments of the present disclosure, the currently displayed interface image is acquired, and the grayscale of each pixel point of the interface image is determined; in the grayscales of all the pixel points, the number of each grayscale is determined; N grayscales are acquired, the numbers of the N grayscales being the first N largest numbers, where N is a preset positive integer; when each difference between the N grayscales exceeds a first preset value, and a ratio of a sum of the numbers of the N grayscales to a sum of the numbers of all the grayscales exceeds a second preset value, a brightness adjustment parameter corresponding to the interface image is determined; and a current backlight brightness is reduced based on the brightness adjustment parameter. In this way, when certain interface images are displayed, the backlight brightness can be reduced, so that the current of the backlight source can be reduced, which in turn can reduce the power consumption and provide a method for reducing the power consumption of the screen of the mobile phone.

Based on the same technical concept, another exemplary embodiment of the present disclosure further provides an apparatus for displaying an interface image. As shown inFIG. 3, the apparatus includes: an acquisition portion310, and an adjustment portion320.

The various portions may have modular configurations, or are composed of discrete components, but nonetheless may be referred to as “modules.”

The acquisition module310is configured to acquire a currently displayed interface image, and determine a grayscale of each pixel point of the interface image.

The acquisition module310is further configured to determine the number of each grayscale in the grayscales of all the pixel points.

The acquisition module310is further configured to acquire N grayscales, the numbers of the N grayscales being the first N largest numbers, where N is a preset positive integer.

The acquisition module310is further configured to, when each difference between the N grayscales exceeds a first preset value, and a ratio of a sum of the numbers of the N grayscales to a sum of the numbers of all the grayscales exceeds a second preset value, determine a brightness adjustment parameter corresponding to the interface image.

The adjustment module320is configured to reduce a current backlight brightness based on the brightness adjustment parameter.

Optionally, the acquisition module310is further configured to:determine a contrast of the interface image; anddetermine a brightness adjustment parameter corresponding to a contrast range to which the contrast of the interface image belongs according to a pre-stored corresponding relationship between the contrast range and the brightness adjustment parameter.

Optionally, the acquisition module310is further configured to:acquire a current ambient light brightness; anddetermine the brightness adjustment parameter corresponding to the interface image according to the current ambient light brightness, the contrast of the interface image, and a pre-stored corresponding relationship among the contrast range, the ambient light brightness range, and the brightness adjustment parameter.

Optionally, the acquisition module310is further configured to:acquire a current backlight brightness; anddetermine the brightness adjustment parameter corresponding to the interface image according to the current backlight brightness, the contrast corresponding to the interface image, and a pre-stored corresponding relationship among the contrast range, the backlight brightness range, and the brightness adjustment parameter.

Optionally, the acquisition module310is further configured to:acquire a current ambient light brightness; anddetermine that the current ambient brightness is within a preset brightness range.

Optionally, the acquisition module310is further configured to:acquire a current backlight brightness; anddetermine that the current backlight brightness is greater than a third preset value.

Optionally, the brightness adjustment parameter is an adjustment brightness; andthe adjustment module320is configured to:subtract the adjustment brightness corresponding to the interface image from the current backlight brightness to obtain a reduced backlight brightness.

Optionally, the brightness adjustment parameter is an adjustment ratio; andthe adjustment module320is configured to:multiply the current backlight brightness by the adjustment ratio corresponding to the interface image to obtain a reduced backlight brightness; orcalculate a product of the current backlight brightness and the adjustment ratio corresponding to the interface image, and subtract the product from the current backlight brightness to obtain the reduced backlight brightness.

Optionally, as shown inFIG. 4, the apparatus further includes:a mapping module330configured to map the interface image to an HSV space or a YUV space; andthe acquisition module310is configured to:determine the grayscale of each pixel point of the interface image based on lightness information of the HSV space or lightness information of the YUV space.

In some embodiments of the present disclosure, the currently displayed interface image is acquired, and the grayscale of each pixel point of the interface image is determined; in the grayscales of all the pixel points, the number of each grayscale is determined; N grayscales are acquired, the numbers of the N grayscales being the first N largest numbers, where N is a preset positive integer; when each difference between the N grayscales exceeds a first preset value, and a ratio of a sum of the numbers of the N grayscales to a sum of the numbers of all the grayscales exceeds a second preset value, a brightness adjustment parameter corresponding to the interface image is determined; and a current backlight brightness is reduced based on the brightness adjustment parameter.

In this way, when certain interface images are displayed, the backlight brightness can be reduced, so that the current of the backlight source can be reduced, which in turn can reduce the power consumption and provide a method for reducing the power consumption of the screen of the mobile phone.

It should be noted that the apparatus for displaying an interface image provided by the above embodiments, when displaying the interface image, is only illustrated by using the division of the above-mentioned functional modules. In practical applications, the above functions may be assigned and completed by different functions according to requirements.

That is, the internal structure of the apparatus that displays the interface image is divided into different functional portions, modules, or blocks to complete all or some of the functions described above. In addition, the apparatus configured to display an interface image provided in the above embodiment and the method embodiment for displaying an interface image belong to the same concept, and for a specific implementation process thereof, reference is made to the method embodiment, which is not described herein again.

Yet another exemplary embodiment of the present disclosure provides a schematic structural diagram of a terminal. The terminal may be a mobile phone or the like.

Referring toFIG. 5, the terminal500may include one or more of the following components: a processing component602, a memory604, a power component606, a multimedia component608, an audio component610, an input/output (I/O) interface612, a sensor component614, and a communication component616.

The processing component602typically controls overall operations of the terminal500, such as the operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component602may include one or more processors620to execute instructions to perform all or part of the steps in the above described methods.

Moreover, the processing component602may include one or more modules which facilitate the interaction between the processing component602and other components. For instance, the processing component602may include a multimedia module to facilitate the interaction between the multimedia component608and the processing component602.

The memory604is configured to store various types of data to support the operation of the terminal500. Examples of such data include instructions for any applications or methods operated on the terminal500, contact data, phonebook data, messages, pictures, video, etc.

The power component606provides power to various components of the terminal500. The power component606may include a power management system, one or more power sources, and any other components associated with the generation, management, and distribution of power in the terminal500.

The multimedia component608includes a screen providing an output interface between the terminal500and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP).

In some embodiments, other types of displays, such as a light-emitting diode (LED) display, an organic LED (OLED) display, a micro LED (μLED) display, a quantum-dot LED (QLED) display, etc. The displays can be touch screens as well.

The audio component610is configured to output and/or input audio signals. For example, the audio component610includes a microphone (“MIC”) configured to receive an external audio signal when the device500is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in the memory604or transmitted via the communication component616.

The sensor component614includes one or more sensors to provide status assessments of various aspects of the terminal500. For instance, the sensor component614may detect an open/closed status of the terminal500, relative positioning of components, e.g., the display and the keypad, of the terminal500, a change in position of the terminal500or a component of the terminal500, a presence or absence of user contact with the terminal500, an orientation or an acceleration/deceleration of the terminal500, and a change in temperature of the terminal500.

The sensor component614may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component614may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component614may also include an accelerometer sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication component616is configured to facilitate communication, wired or wirelessly, between the terminal500and other devices. The terminal500can access a wireless network based on a communication standard, such as WiFi, 2G or 3G or a combination thereof. In one exemplary embodiment, the communication component616receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel.

In some embodiments, the communication component616further includes a near field communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on a radio frequency identification (RFID) technology, an infrared data association (IrDA) technology, an ultra-wideband (UWB) technology, a Bluetooth (BT) technology, and other technologies.

In some embodiments, a non-transitory computer-readable storage medium is provided including instructions, such as the memory604including instructions, the above instructions are executable by the processor620in the device500, for performing the above-described methods. For example, the non-transitory computer-readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, optical data storage equipment, a flash drive such as a USB drive or an SD card, and the like.

The non-transitory computer readable storage medium, when instructions in the storage medium is executed by the processor of the terminal, enables the terminal to perform the above-mentioned method, the method including:acquiring a currently displayed interface image, and determining a grayscale of each pixel point of the interface image;in the grayscales of all the pixel points, determining the number of each grayscale;acquiring N grayscales, the numbers of the N grayscales being the first N largest numbers, where N is a preset positive integer;when each difference between the N grayscales exceeds a first preset value, and a ratio of a sum of the numbers of the N grayscales to a sum of the numbers of all the grayscales exceeds a second preset value, determining a brightness adjustment parameter corresponding to the interface image; andreducing a current backlight brightness based on the brightness adjustment parameter.

Alternatively, the determining the brightness adjustment parameter corresponding to the interface image includes:determining a contrast of the interface image; anddetermining a brightness adjustment parameter corresponding to a contrast range to which the contrast of the interface image belongs according to a pre-stored corresponding relationship between the contrast range and the brightness adjustment parameter.

Alternatively, the determining the brightness adjustment parameter corresponding to the contrast range to which the contrast of the interface image belongs according to the pre-stored corresponding relationship between the contrast range and the brightness adjustment parameter includes:acquiring a current ambient light brightness; anddetermining the brightness adjustment parameter corresponding to the interface image according to the current ambient light brightness, the contrast of the interface image, and a pre-stored corresponding relationship among the contrast range, the ambient light brightness range and the brightness adjustment parameter.

Alternatively, the determining the brightness adjustment parameter corresponding to the contrast range to which the contrast of the interface image belongs according to the pre-stored corresponding relationship between the contrast range and the brightness adjustment parameter includes:acquiring a current backlight brightness;determining the brightness adjustment parameter corresponding to the interface image according to the current backlight brightness, the contrast corresponding to the interface image, and a pre-stored corresponding relationship among the contrast range, the backlight brightness range, and the brightness adjustment parameter.

Alternatively, before determining the grayscale of each pixel point of the interface image, the method further includes:acquiring a current ambient light brightness; anddetermining that the current ambient brightness is within a preset brightness range.

Alternatively, before determining the grayscale of each pixel point of the interface image, the method further includes:acquiring a current backlight brightness; anddetermining that the current backlight brightness is greater than a third preset value.

Alternatively, the brightness adjustment parameter is an adjustment brightness; andthe reducing the current backlight brightness according to the brightness adjustment parameter, includes:subtracting the adjustment brightness corresponding to the interface image from the current backlight brightness to obtain a reduced backlight brightness.

Alternatively, the brightness adjustment parameter is an adjustment ratio; andthe reducing the current backlight brightness according to the brightness adjustment parameter, includes:multiplying the current backlight brightness by the adjustment ratio corresponding to the interface image to obtain a reduced backlight brightness; orcalculating a product of the current backlight brightness and the adjustment ratio corresponding to the interface image, and subtracting the product from the current backlight brightness to obtain a reduced backlight brightness.

Alternatively, before determining the grayscale of each pixel point of the interface image, the method further includes:mapping the interface image to an HSV space or a YUV space; andthe determining the grayscale of each pixel point of the interface image, includes:determining the grayscale of each pixel point of the interface image based on lightness information of the HSV space or lightness information of the YUV space.

In some embodiments of the present disclosure, the currently displayed interface image is acquired, and the grayscale of each pixel point of the interface image is determined; in the grayscales of all the pixel points, the number of each grayscale is determined; N grayscales are acquired, the numbers of the N grayscales being the first N largest numbers, where N is a preset positive integer; when each difference between the N grayscales exceeds a first preset value, and a ratio of a sum of the numbers of the N grayscales to a sum of the numbers of all the grayscales exceeds a second preset value, a brightness adjustment parameter corresponding to the interface image is determined; and a current backlight brightness is reduced based on the brightness adjustment parameter. In this way, when certain interface images are displayed, the backlight brightness can be reduced, so that the current of the backlight source can be reduced, which in turn can reduce the power consumption and provide a method for reducing the power consumption of the screen of the mobile phone.

The apparatuses and devices can also include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, a cross-platform runtime environment, a virtual machine, or a combination of one or more of them. The devices and execution environment can realize various different computing model infrastructures, such as web services, distributed computing, and grid computing infrastructures.

Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.