Image display method, device, terminal and storage medium
By determining the appropriate backlight brightness using brightness histograms and curves, the problem of power waste in LCD displays when showing high-brightness images is solved, achieving effective energy efficiency improvement and distortion control.
Patent Information
- Application Number
- CN202211486028.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-24
- Publication Date
- 2026-01-09
- Estimated Expiration
- 2042-11-24
AI Technical Summary
When displaying bright images, existing LCD monitors typically have their backlight brightness set to maximum, resulting in wasted power consumption and an uncontrolled number of distorted pixels.
The appropriate backlight brightness for the target image is determined by using brightness histograms and curves, thereby controlling the number of distorted pixels and reducing display power consumption.
Effectively control the number of distorted pixels within an acceptable range for the human eye, reduce display power consumption, and improve energy efficiency.
Smart Images

Figure CN115798418B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computers, and in particular to an image display method and device, a terminal, and a storage medium. BACKGROUND
[0002] With the development of liquid crystal display technology, users are increasingly pursuing the quality of images displayed by liquid crystal displays. When displaying an image through a display screen of a liquid crystal display, the liquid crystal itself does not emit light, and therefore the image can be displayed only by turning on the backlight of the display screen. In the related art, when displaying an image, a liquid crystal display usually turns on the backlight of the display screen to the maximum brightness. However, when displaying an image having only a small number of pixels with high brightness, power consumption is wasted. SUMMARY
[0003] Embodiments of the present application provide an image display method and device, a terminal, and a storage medium, which can control the number of distorted pixels of a target image and reduce the power consumption of a display screen. The technical solutions are as follows.
[0004] In one aspect, an image display method is provided, and the method includes:
[0005] determining a first brightness in a brightness histogram of the target image based on a pixel number threshold, the brightness histogram being used to indicate a relationship between the number of pixels and the brightness of the pixels in the target image, and the first brightness being the brightness when the accumulated number of pixels is first not less than the pixel number threshold in the brightness histogram according to the brightness from large to small;
[0006] determining a first backlight brightness of the first brightness from a curve graph of the target image, the curve graph being used to indicate a corresponding relationship between the brightness of the target image and the backlight brightness of the display screen;
[0007] displaying the target image through the display screen based on the first backlight brightness.
[0008] In another aspect, an image display device is provided, and the device includes:
[0009] a brightness determination module configured to determine a first brightness in a brightness histogram of the target image based on a pixel number threshold, the brightness histogram being used to indicate a relationship between the number of pixels and the brightness of the pixels in the target image, and the first brightness being the brightness when the accumulated number of pixels is first not less than the pixel number threshold in the brightness histogram according to the brightness from large to small;
[0010] determine a first backlight brightness of the first brightness from a curve graph of the target image, the curve graph being used to indicate a corresponding relationship between brightness of the target image and backlight brightness of a display screen;
[0011] display the target image through the display screen based on the first backlight brightness.
[0012] In some embodiments, the image display module is configured to determine a second brightness in the brightness histogram based on the pixel quantity threshold, the second brightness being a maximum brightness in a plurality of alternative brightnesses, a quantity of pixels corresponding to the alternative brightnesses being not less than the pixel quantity threshold; determine a second backlight brightness of the second brightness from the curve graph; determine a third backlight brightness as an average of the first backlight brightness and the second backlight brightness; and display the target image through the display screen based on the third backlight brightness.
[0013] In some embodiments, the image display module is configured to determine a second brightness in the brightness histogram based on the pixel quantity threshold, the second brightness being a maximum brightness in a plurality of alternative brightnesses, a quantity of pixels corresponding to the alternative brightnesses being greater than the pixel quantity threshold; determine a third brightness as an average of the first brightness and the second brightness; determine a fourth backlight brightness of the third brightness from the curve graph; and display the target image through the display screen based on the fourth backlight brightness in a case where a difference between the fourth backlight brightness and the first backlight brightness is less than a difference threshold.
[0014] In some embodiments, the image display module comprises:
[0015] a brightness adjustment unit configured to adjust brightness of pixels in the target image based on the first backlight brightness;
[0016] an image display unit configured to display the target image through the display screen based on the first backlight brightness and the brightness of the pixels in the target image.
[0017] In some embodiments, the brightness adjustment unit is configured to determine a brightness reduction ratio of the backlight brightness of the display screen based on the first backlight brightness and a maximum backlight brightness of the display screen; determine a brightness adjustment ratio of the pixels in the target image based on the brightness reduction ratio and a brightness corresponding relationship, the brightness corresponding relationship being used to represent a corresponding relationship between the backlight brightness of the display screen and the brightness of the pixels; and adjust the brightness of the pixels in the target image based on the brightness adjustment ratio.
[0018] In some embodiments, the luminance adjusting unit is configured to, for any pixel, adjust the luminance of the pixel based on the luminance adjustment ratio, if the luminance of the pixel is not greater than a luminance threshold, the luminance threshold being determined based on the luminance adjustment ratio.
[0019] In some embodiments, the apparatus further comprises:
[0020] The threshold determining module is configured to determine the pixel quantity threshold based on a quantity of pixels in the target image and an image type of the target image.
[0021] In another aspect, a terminal is provided, the terminal comprising a processor and a memory; the memory stores at least one program code, the at least one program code being used to be executed by the processor to implement the image display method according to the above aspect.
[0022] In another aspect, a computer readable storage medium is provided, the storage medium storing at least one program code, the at least one program code being used to be executed by a processor to implement the image display method according to the above aspect.
[0023] In another aspect, a computer program product is provided, comprising a computer program, the computer program being loaded and executed by a processor to implement the image display method according to the above aspect.
[0024] The embodiments of the present application provide an image display method. Since the luminance histogram is used to indicate the relationship between the quantity of pixels in the target image and the luminance of the pixels, and the pixel quantity threshold is used to control the quantity of distorted pixels in the target image, the first luminance representing the luminance of most pixels in the target image can be determined from the luminance histogram based on the pixel quantity threshold, and then the quantity of distorted pixels in the target image can be ensured not to change with different displayed images when the backlight luminance is determined based on the first luminance, so that the quantity of distorted pixels is ensured to be within the quantity threshold acceptable by the human eye. Since the curve diagram of the target image is used to indicate the corresponding relationship between the luminance of the target image and the backlight luminance of the display screen, the appropriate backlight luminance when the target image is displayed can be determined based on the curve diagram and the first luminance, and compared with the case that the backlight luminance is adjusted to the maximum when any image is displayed, the power consumption of the display screen can be reduced. BRIEF DESCRIPTION OF DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0026] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0027] Figure 2 is a flowchart of an image display method provided by an embodiment of the present application;
[0028] Figure 3 is a flowchart of another image display method provided by an embodiment of the present application;
[0029] Figure 4 is a schematic diagram of a target image provided by an embodiment of the present application;
[0030] Figure 5 is a schematic diagram of a luminance histogram provided by an embodiment of the present application;
[0031] Figure 6 is a schematic diagram of a cumulative luminance histogram provided by an embodiment of the present application;
[0032] Figure 7 is a schematic diagram of another target image provided by an embodiment of the present application;
[0033] Figure 8 is a schematic diagram of another luminance histogram provided by an embodiment of the present application;
[0034] Figure 9 is a structural block diagram of an image display device provided by an embodiment of the present application;
[0035] Figure 10 is a structural block diagram of another image display device provided by an embodiment of the present application;
[0036] Figure 11 is a structural block diagram of a terminal provided by an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the drawings.
[0038] It can be understood that the terms "first", "second", etc. used in the present application can be used herein to describe various concepts, but unless specifically stated, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the present application, a first luminance can be referred to as a second luminance, and similarly, a second luminance can be referred to as a first luminance.
[0039] At least one refers to one or more than one, for example, at least one second brightness can be one second brightness, two second brightnesses, three second brightnesses, or any integer greater than or equal to one second brightness. Multiple refers to two or more than two, for example, multiple second brightnesses can be two second brightnesses, three second brightnesses, or any integer greater than or equal to two second brightnesses. Each refers to each of at least one, for example, each second brightness refers to each of the multiple second brightnesses, if the multiple second brightnesses are three second brightnesses, each second brightness refers to each of the three second brightnesses.
[0040] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions. For example, the target image involved in the present application is obtained under sufficient authorization.
[0041] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to Figure 1 The implementation environment includes a terminal 101 and a server 102.
[0042] The terminal 101 can be at least one of a liquid crystal display, a smart phone, a smart watch, a desktop computer, a laptop computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), and a laptop computer. The terminal 101 can have an application program installed and running thereon, which is used to display a target image. A user can log in to the application program through the terminal 101 to view the target image. The terminal 101 can be connected to the server 102 through a wireless network or a wired network.
[0043] The terminal 101 can generally refer to one of a plurality of terminals, and the present embodiment takes the terminal 101 as an example. Those skilled in the art can know that the number of the above-mentioned terminals can be more or less. For example, the above-mentioned terminals can be several, or the above-mentioned terminals can be dozens or hundreds, or more, and the number of terminals and the type of equipment are not limited in the present embodiment. The application program is associated with the server 102, and the server 102 provides background services.
[0044] The server 102 is a stand-alone physical server, can also be a server cluster or distributed system composed of multiple physical servers, and can also be a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN (Content Delivery Network), and big data and artificial intelligence platform. The server 102 is associated with the application program, and the server 102 is configured to provide background service for the application program. In some embodiments, the terminal 101 obtains the target image, the curve diagram of the target image, and the brightness histogram of the target image from the server 102 based on the application program, and displays the target image through the application program. In some embodiments, the terminal 101 includes a TCON (Timing Controller) and a display. The display is configured to display the target image, and the TCON receives the target image, the first curve diagram of the target image, and the first brightness histogram of the target image sent by the server 102, and determines the backlight brightness of the display screen when displaying the target image based on the backlight adjustment method provided in the embodiments of the present application, converts the target image into a timing signal required for the display to display the target image, and then transmits the pixel data of the target image and the backlight brightness of the display screen to the display, so as to achieve the purpose that the display displays the target image based on the backlight brightness. Alternatively, the backlight adjustment method provided in the embodiments of the present application can also be executed by the CPU (Central Processing Unit) of the terminal. Or, after the external server receives the target image, the first curve diagram of the target image, and the first brightness histogram of the target image sent by the server 102, the backlight adjustment method provided in the embodiments of the present application is used to process the first curve diagram of the target image and the first brightness histogram of the target image, and determine the backlight brightness of the display screen when displaying the target image. The embodiments of the present application do not limit this.
[0045] In some embodiments, the server 102 undertakes the main computing work, and the terminal 101 undertakes the secondary computing work; or the server 102 undertakes the secondary computing work, and the terminal 101 undertakes the main computing work; or the server 102 and the terminal 101 cooperatively compute in a distributed computing architecture. The server 102 can be connected with the terminal 101 and other terminals through a wireless network or a wired network. Optionally, the number of the servers can be more or less, and the embodiments of the present application do not limit this. Of course, the server 102 can also include other functional servers, so as to provide more comprehensive and diversified services.
[0046] Figure 2 FIG. 1 is a flowchart of an image display method provided in the embodiments of the present application. The method is executed by a terminal, and the details are shown in FIG. 1. Figure 2The method comprises:
[0047] 201. The terminal determines a first brightness in a brightness histogram of the target image based on a pixel quantity threshold, the brightness histogram being used to indicate a relationship between a quantity of pixels and brightness of the pixels in the target image, the first brightness being a brightness at which the quantity of pixels is first not less than the pixel quantity threshold when the quantity of pixels is accumulated from large to small according to the brightness in the brightness histogram.
[0048] In the embodiments of the present application, the terminal is a mobile phone, a desktop computer, a notebook computer, a smart television or the like, which is a device of multiple types having a display screen. The target image can be an image to be displayed or an image of any frame in a video to be displayed. Correspondingly, the terminal can display the target image through the display screen. Optionally, the display screen is a liquid crystal display screen. The pixel quantity threshold is related to the size of the target image and the energy saving intensity. The pixel quantity threshold can be 10%, 20% or 30% or the like of the total quantity of pixels in the target image. The higher the pixel quantity threshold, the lower the first brightness determined, and the higher the energy saving intensity. The lower the pixel quantity threshold, the higher the first brightness determined, and the lower the energy saving intensity. The pixel quantity threshold can be set by the terminal or input by a user to the terminal, and the source of the pixel quantity threshold is not limited in the embodiments of the present application.
[0049] The target image contains multiple pixels, and the brightness of different pixels is also different. In the brightness histogram, the abscissa is the brightness of the pixels, and the ordinate is the quantity of the pixels. Therefore, based on the brightness histogram, the quantity of the pixels corresponding to any brightness of the pixels can be determined, so that the terminal can accumulate the pixels in the brightness histogram from the maximum brightness to the minimum brightness direction based on the pixel quantity threshold. In the case that the total quantity of the pixels accumulated is first not less than the pixel quantity threshold, the brightness represented by the abscissa corresponding to the quantity of the pixels accumulated last time is determined as the first brightness. In the brightness histogram, the total quantity of the pixels with the abscissa greater than the first brightness is less than the pixel quantity threshold, and the total quantity of the pixels with the abscissa not less than the first brightness is not less than the pixel quantity threshold.
[0050] 202. The terminal determines a first backlight brightness of the first brightness from a curve graph of the target image, the curve graph being used to indicate a corresponding relationship between the brightness of the target image and the backlight brightness of the display screen.
[0051] In the embodiment of the present application, the abscissa of the point on the curve in the curve diagram is the brightness of the target image, and the ordinate is the backlight brightness of the display screen. In the related art, the abscissa of the curve diagram represents the highest brightness of the pixel in the corresponding image, while in the embodiment of the present application, the brightness of the target image is one of the brightnesses of all the pixels in the target image, which can represent the brightness of the pixels in the target image greater than a preset threshold. The preset threshold can be 60%, 70% or 80% of the total number of pixels in the target image, and the embodiment of the present application does not limit the specific number of the preset threshold. Since the brightness of the target image is positively correlated with the backlight brightness of the display screen, the greater the brightness of the target image, the greater the backlight brightness of the display screen; the smaller the brightness of the target image, the smaller the backlight brightness of the display screen. Therefore, the terminal can determine the first backlight brightness of the first brightness from the curve diagram. That is, the first backlight brightness is the backlight brightness corresponding to the ordinate when the abscissa of the curve diagram of the target image is the first brightness. And since the first brightness of the target image can reflect the brightness of most of the pixels in the target image, the terminal determines the first backlight brightness of the first brightness from the curve diagram after determining the first brightness of the target image. The first backlight brightness is the appropriate backlight brightness for displaying the target image.
[0052] The target image, the brightness histogram of the target image and the curve diagram of the target image can be stored in the terminal, and the terminal obtains the target image, the brightness histogram of the target image and the curve diagram of the target image from the local. The target image, the brightness histogram of the target image and the curve diagram of the target image can also be stored in the server, and the terminal obtains the target image, the brightness histogram of the target image and the curve diagram of the target image from the server. The embodiment of the present application does not limit the way the terminal obtains the target image, the brightness histogram of the target image and the curve diagram of the target image.
[0053] 203. The terminal displays the target image through the display screen based on the first backlight brightness.
[0054] In the embodiment of the present application, since the display screen itself does not emit light, the terminal needs to turn on the backlight of the display screen to display the target image. Accordingly, after the terminal determines the first backlight brightness, the backlight brightness of the display screen is adjusted to the first backlight brightness, and the target image is displayed based on the first backlight brightness. Compared with the case where the backlight brightness is adjusted to the maximum when any image is displayed, determining the first backlight brightness for displaying the target image and adjusting the backlight brightness of the display screen to the first backlight brightness can reduce power consumption.
[0055] The embodiment of the present application provides a kind of image display method, since luminance histogram is used to indicate the relationship between the number of pixels in target image and the luminance of pixel, and pixel quantity threshold is used to control the number of distorted pixels in target image, so based on pixel quantity threshold, the first luminance representing the luminance of most pixels in the target image can be determined from luminance histogram, and then it can be guaranteed that when the backlight luminance is determined based on the first luminance, the number of distorted pixels in the target image will not be different with different display images, and ensure that the number of distorted pixels is within the number threshold range acceptable by human eyes. Since the graph of target image is used to indicate the corresponding relationship between the luminance of the target image and the backlight luminance of display screen, so based on the graph and the first luminance, the appropriate backlight luminance when displaying the target image can be determined, compared with the case of adjusting the backlight luminance to the maximum when displaying any image, the power consumption of display screen can be reduced.
[0056] Figure 3 It is another flow chart of the image display method provided by the embodiment of the present application. The method is executed by terminal, see Figure 3 , the method comprises:
[0057] 301, terminal determines first luminance in the luminance histogram of target image based on pixel quantity threshold, luminance histogram is used to indicate the relationship between the number of pixels in target image and the luminance of pixel, and the first luminance is the luminance when the number of pixels is accumulated according to luminance from large to small in luminance histogram, and the number of accumulated pixels is first not less than pixel quantity threshold.
[0058] In the embodiment of the present application, since the total number of pixels greater than the first luminance in the luminance histogram is less than the pixel quantity threshold, and the total number of pixels not less than the first luminance is not less than the pixel quantity threshold. Therefore, the terminal sequentially accumulates the pixels in the luminance histogram from the direction of maximum luminance to minimum luminance based on the pixel quantity threshold. In the case that the total number of accumulated pixels is first not less than the pixel quantity threshold, the luminance represented by the abscissa corresponding to the number of pixels last accumulated is determined as the first luminance.
[0059] For example, see Figure 4 The pixel resolution of the target image is 1080*1920, that is, the total number of pixels in the target image is 2073600, and the target image contains a large number of highlight pixels with different luminances. The luminance histogram of the target image is as shown in Figure 5 In the case that the pixel quantity threshold is 4000, the pixels in the luminance histogram are sequentially accumulated from the direction of maximum luminance to minimum luminance based on the pixel quantity threshold, and the luminance histogram is obtained as shown in Figure 6The luminance cumulative histogram of the target image is shown. Wherein, the horizontal coordinate is the luminance of the pixel, and the vertical coordinate is the total number of the cumulative pixels. The total number of the pixels in the luminance range of 855-1023 nit is 3855, which is less than the pixel number threshold, so the accumulation continues, and the total number of the pixels in the luminance range of 854-1023 nit is 4251, which is greater than the pixel number threshold, so the first luminance can be obtained as 854 nit.
[0060] In some embodiments, the pixel number threshold is related to the size, type and other factors of the image. Accordingly, the terminal can determine the pixel number threshold based on the number of pixels in the target image and the image type of the target image. Wherein, in the case of a large total number of pixels, the pixel number threshold can be increased; in the case of a small total number of pixels, the pixel number threshold can be reduced. In the case that the target image contains a large number of low luminance pixels, that is, the target image is a dark state image, the pixel number threshold can be increased; in the case that the target image contains a large number of high luminance pixels, that is, the target image is a bright state image, the pixel number threshold can be reduced. Wherein, the pixel number threshold can be 10%, 20% or 30% of the total number of pixels, etc. The pixel number threshold can be set by the terminal, or can be input by the user to the terminal, and the source of the pixel number threshold is not limited in the embodiments of the present application.
[0061] 302、The terminal determines the first backlight luminance of the first luminance from the curve of the target image, and the curve is used to indicate the corresponding relationship between the luminance of the target image and the backlight luminance of the display screen.
[0062] In the embodiments of the present application, since the curve is used to indicate the corresponding relationship between the luminance of the target image and the backlight luminance of the display screen, and the luminance of the target image is positively correlated with the backlight luminance of the display screen. Therefore, after determining the first luminance, the terminal can determine the first backlight luminance corresponding to the first luminance based on the curve of the target image. The first backlight luminance is the backlight luminance corresponding to the vertical coordinate when the horizontal coordinate is the first luminance in the curve of the target image. And since the first luminance of the target image can reflect the luminance of most of the pixels in the target image, the first backlight luminance is the appropriate backlight luminance for displaying the target image.
[0063] 303、The terminal adjusts the luminance of the pixels in the target image based on the first backlight luminance.
[0064] In the embodiment of the present application, the product of the luminance adjustment ratio of the backlight luminance of the display screen and the luminance adjustment ratio of the pixel in the target image is 1, that is, BL*OC=1. Wherein, BL is used to represent the luminance adjustment ratio of the backlight luminance, and OC is used to represent the luminance adjustment ratio of the pixel. And the terminal determines the luminance adjustment ratio of the display screen based on the first backlight luminance of the display screen, so that the terminal can determine the luminance adjustment ratio of the pixel in the target image based on the luminance adjustment ratio, and further adjust the luminance of the pixel in the target image based on the luminance adjustment ratio.
[0065] In some embodiments, since the product of the luminance adjustment ratio of the backlight luminance of the display screen and the luminance adjustment ratio of the pixel in the target image is 1, the terminal can adjust the luminance of the pixel in the target image based on the corresponding relationship between the backlight luminance and the luminance of the pixel of the display screen. Correspondingly, the terminal adjusts the luminance of the pixel in the target image through the following steps (1)-(3).
[0066] (1) The terminal determines the luminance reduction ratio of the backlight luminance of the display screen based on the first backlight luminance and the maximum backlight luminance of the display screen.
[0067] In the embodiment of the present application, the maximum backlight luminance is 1023nit, and after the terminal determines the first backlight luminance corresponding to the first luminance from the curve, the terminal can determine the luminance reduction ratio of the backlight luminance based on the first backlight luminance and the maximum backlight luminance.
[0068] (2) The terminal determines the luminance adjustment ratio of the pixel in the target image based on the luminance reduction ratio and the luminance corresponding relationship, and the luminance corresponding relationship is used to represent the corresponding relationship between the backlight luminance of the display screen and the luminance of the pixel.
[0069] In the embodiment of the present application, the product of the luminance adjustment ratio of the backlight luminance of the display screen and the luminance adjustment ratio of the pixel in the target image is 1. Therefore, after the terminal determines the luminance reduction ratio of the backlight luminance of the display screen, the terminal can determine the luminance adjustment ratio of the pixel in the target image based on the luminance corresponding relationship.
[0070] (3) The terminal adjusts the luminance of the pixel in the target image based on the luminance adjustment ratio.
[0071] In the embodiment of the present application, after the terminal determines the luminance adjustment ratio of the pixel in the target image, the terminal adjusts the luminance of the pixel in the target image based on the luminance adjustment ratio.
[0072] For example, in the case that the first backlight brightness is 772 nits, based on the maximum brightness 1023 nits and the first backlight brightness, the brightness reduction ratio of the backlight brightness of the display screen is calculated to be 75.5%, that is, in the case that the backlight brightness of the display screen is adjusted from the maximum backlight brightness to the first backlight brightness, the backlight brightness of the display screen is reduced to 75.5% of the maximum backlight brightness. Based on the brightness corresponding relationship and the brightness reduction ratio, the brightness adjustment ratio of the pixels in the target image is obtained to be 32%, and based on the brightness adjustment ratio, the brightness of the pixels in the target image is adjusted to be 1.32 times of the original brightness.
[0073] In some embodiments, the terminal determines whether to adjust the brightness of the pixel based on the brightness adjustment ratio according to the size relationship between the brightness of the pixel and the brightness threshold. Correspondingly, for any pixel, in the case that the brightness of the pixel is not greater than the brightness threshold, the terminal adjusts the brightness of the pixel based on the brightness adjustment ratio, and the brightness threshold is determined based on the brightness adjustment ratio. Wherein, since the terminal adjusts the brightness represented by the brightness threshold based on the brightness adjustment ratio, the obtained brightness is equal to the maximum brightness. Therefore, in the case that the brightness of the pixel is not greater than the brightness threshold, the adjusted brightness of the pixel based on the brightness adjustment ratio is not greater than the maximum brightness, that is, the pixel will not be distorted and overflow. In the case that the brightness of the pixel is greater than the brightness threshold, if the brightness of the pixel is adjusted based on the brightness adjustment ratio, the adjusted brightness of the pixel will be greater than the maximum brightness, and the pixel will be distorted and overflow, therefore, in order to avoid the adjusted pixel being distorted and overflowing, in the case that the brightness of the pixel is greater than the brightness threshold, the terminal will not adjust the brightness of the pixel.
[0074] 304、The terminal displays the target image through the display screen based on the first backlight brightness and the brightness of the pixel in the target image.
[0075] In the embodiments of the present application, after adjusting the backlight brightness of the display screen, the terminal can adjust the brightness of the pixel in the target image based on the first backlight brightness. Then the target image is displayed based on the first backlight brightness and the brightness of the pixel in the target image. Wherein, the terminal adjusts the backlight brightness of the display screen to the first backlight brightness, and since the first backlight brightness is less than the maximum backlight brightness, the brightness of the display screen when displaying the target image is darkened. In order to keep the display effect of the display screen when displaying the target image unchanged, the terminal can adjust the brightness of the pixel so that the display effect of the display screen when displaying the target image is the same as the display effect before adjusting the backlight brightness.
[0076] In some embodiments, after determining the first backlight brightness of the display screen, the terminal is further capable of determining, based on a pixel quantity threshold, a maximum luminance, i.e., a second luminance, from the luminance histogram of the target image when the number of pixels is greater than the pixel quantity threshold. And determining, from the curve graph, a backlight brightness corresponding to the second luminance, i.e., a second backlight brightness. Then the terminal determines the average of the first backlight brightness and the second backlight brightness as the backlight brightness of the display screen. Accordingly, the terminal determines the second luminance from the luminance histogram based on the pixel quantity threshold, the second luminance being the maximum luminance in a plurality of candidate luminances, the number of pixels corresponding to the candidate luminance being not less than the pixel quantity threshold; determines the second backlight brightness corresponding to the second luminance from the curve graph; and determines the average of the first backlight brightness and the second backlight brightness as the third backlight brightness. The target image is displayed by the display screen based on the third backlight brightness. Wherein, based on the luminance histogram, the terminal is capable of determining at least one luminance in the luminance histogram, the number of pixels corresponding to the at least one luminance being greater than the pixel quantity threshold, and taking the at least one luminance as a candidate luminance. The terminal selects the maximum candidate luminance from the plurality of candidate luminances as the second luminance of the target image. Since the curve graph is used to indicate the corresponding relationship between the luminance of the target image and the backlight brightness of the display screen, the terminal is capable of determining the second backlight brightness corresponding to the second luminance from the curve graph, the second backlight brightness being the backlight brightness corresponding to the ordinate when the abscissa is the second luminance in the curve graph of the target image. And the average between the second backlight brightness and the first backlight brightness is determined as the third backlight brightness, and the third backlight brightness is determined as the backlight brightness of the display screen when displaying the target image, and then the terminal adjusts the backlight brightness of the display screen to the third backlight brightness.
[0077] In some embodiments, the terminal is capable of determining, based on a pixel quantity threshold, a maximum luminance, i.e., a second luminance, from the luminance histogram of the target image when the number of pixels is greater than the pixel quantity threshold. And determining the average of the second luminance and the first luminance as the luminance of the target image, and then the terminal determines the backlight brightness corresponding to the average from the curve graph. And in the case that the difference between the backlight brightness and the first backlight brightness is less than the difference threshold, the backlight brightness is determined as the backlight brightness of the display screen. Accordingly, the terminal determines the backlight brightness of the display screen through the following steps (1)-(4).
[0078] (1) The terminal determines, based on a pixel quantity threshold, a second luminance from the luminance histogram, the second luminance being the maximum luminance in a plurality of candidate luminances, the number of pixels corresponding to the candidate luminance being greater than the pixel quantity threshold.
[0079] In the embodiments of the present application, based on the luminance histogram, the terminal determines at least one luminance in the luminance histogram, the number of pixels corresponding to the at least one luminance being greater than the pixel quantity threshold, and takes the at least one luminance as a candidate luminance. The terminal selects the maximum candidate luminance from the plurality of candidate luminances as the second luminance of the target image.
[0080] (2) The terminal determines the average of the first luminance and the second luminance as the third luminance.
[0081] In the embodiment of the present application, the second luminance is the maximum luminance when the number of pixels is greater than the pixel number threshold, and the first luminance is obtained by sequentially adding the luminance from the maximum luminance. In the case where the total number of pixels is first not less than the pixel number threshold, the luminance represented by the abscissa corresponding to the number of pixels of the last time of addition. Therefore, the second luminance is not greater than the first luminance. Since the lower the luminance of the target image, the higher the energy saving intensity. Therefore, in the case where the second luminance is less than the first luminance, the energy saving intensity when the luminance of the target image is the second luminance is higher than the energy saving intensity when the luminance of the target image is the first luminance. And because the total number of pixels with luminance greater than the second luminance is greater than the total number of pixels with luminance greater than the first luminance, that is, the number of distorted pixels when the luminance of the target image is the second luminance is greater than the number of distorted pixels when the luminance of the target image is the first luminance. Wherein, the distorted pixel refers to the pixel whose luminance exceeds the maximum luminance 1023 nit after adjusting the luminance of the pixel in the target image based on the backlight luminance of the display screen. Therefore, in order to improve the energy saving intensity while reducing the number of distorted pixels in the target image, the terminal determines the average of the first luminance and the second luminance as the third luminance, and determines the third luminance as the luminance of the target image. In the case where the second luminance is equal to the first luminance, the energy saving intensity when the luminance of the target image is the second luminance is equal to the energy saving intensity when the luminance of the target image is the first luminance, and the number of distorted pixels when the luminance of the target image is the second luminance is equal to the number of distorted pixels when the luminance of the target image is the first luminance, so the terminal can determine the first luminance as the third luminance, or determine the second luminance as the third luminance, or determine the average of the second luminance and the first luminance as the third luminance.
[0082] For example, referring to the luminance histogram shown in Figure 5 When the pixel number threshold is 4000, the terminal finds the luminance of the pixel when the number of pixels is greater than the pixel number threshold in the direction from the maximum luminance to the minimum luminance in the luminance histogram, and the luminance of the pixel is 772 nit, that is, the second luminance is 772 nit. Then the terminal obtains the first luminance as 854 nit in the luminance accumulation histogram as shown in Figure 6 At this time, the second luminance is less than the first luminance, so the average of the first luminance and the second luminance is determined as the third luminance, that is, the third luminance is 813 nit.
[0083] (3) The terminal determines the fourth backlight luminance corresponding to the third luminance from the curve graph.
[0084] In the embodiment of the present application, the terminal determines an average of the first luminance and the second luminance as a third luminance, and then determines a fourth backlight luminance of the third luminance from the curve diagram. The fourth backlight luminance is the backlight luminance corresponding to the vertical coordinate when the horizontal coordinate is the third luminance in the curve diagram of the target image.
[0085] (4) In a case where a difference between the fourth backlight luminance and the first backlight luminance is less than a difference threshold, the terminal displays the target image through the display screen based on the fourth backlight luminance.
[0086] In the embodiment of the present application, since the second luminance is less than the first luminance, the average of the first luminance and the second luminance, i.e., the third luminance, is also less than the first luminance. Since the luminance of the target image in the curve diagram is positively correlated with the backlight luminance of the display screen, the fourth backlight luminance of the third luminance is less than the first backlight luminance of the first luminance. The terminal can determine the difference between the fourth backlight luminance and the first backlight luminance based on the fourth backlight luminance and the first backlight luminance. Since the difference between the fourth backlight luminance and the first backlight luminance is less than the difference threshold in a case where the difference between the fourth backlight luminance and the first backlight luminance is less than the difference threshold, it indicates that the difference between the fourth backlight luminance and the first backlight luminance is small, and at this time, the change speed of the curve in the curve diagram is relatively slow. Therefore, the terminal can determine the fourth backlight luminance as the backlight luminance of the display screen. Since the difference between the fourth backlight luminance and the first backlight luminance is not less than the difference threshold in a case where the difference between the fourth backlight luminance and the first backlight luminance is not less than the difference threshold, it indicates that the difference between the fourth backlight luminance and the first backlight luminance is large, and at this time, the change speed of the curve in the curve diagram is relatively fast. Therefore, the terminal can determine the first backlight luminance as the backlight luminance of the display screen. The difference threshold is related to the change speed of the curve, and in a case where the change speed of the curve is fast, the difference threshold can be set to a small value; in a case where the change speed of the curve is slow, the difference threshold can be set to a large value. The difference threshold can be set by the terminal or input by the user to the terminal, and the source of the difference threshold is not limited in the embodiment of the present application.
[0087] In some embodiments, the terminal determines the backlight brightness corresponding to the second luminance from the histogram, and displays the target image based on the backlight brightness. Wherein, the second luminance is determined as the luminance of the target image. In one case, for a target image including a large number of highlight pixels with different luminances, since the luminance of part of the pixels in the target image is greater than the second luminance. Therefore, after adjusting the luminance of the pixels in the target image based on the backlight brightness corresponding to the second luminance, the luminance of part of the pixels in the target image exceeds the maximum luminance 1023 nit, and thus these pixels will be distorted and overflow. In another case, for a target image including a small number of highlight pixels with different luminances, since only a small number of pixels in the target image have luminance greater than the second luminance. Therefore, after adjusting the luminance of the pixels in the target image based on the backlight brightness, only a small number of pixels in the target image have luminance exceeding the maximum luminance 1023 nit, and thus the number of distorted pixels is small, within the threshold range acceptable to the human eye, and thus can be ignored.
[0088] For example, referring to the target image shown in FIG. 10, the target image includes a large number of highlight pixels with different luminances. In the case of a pixel number threshold of 4000, the second luminance of the target image is determined from the histogram shown in FIG. 11 based on the pixel number threshold. The second luminance of the target image is 772 nit. However, in the target image, the number of pixels in the luminance range of 772-1023 nit is about forty thousand. If the second luminance is taken as the luminance of the target image, the luminance of forty thousand pixels will be greater than 772 nit, and thus after pixel compensation of the target image, the luminance of forty thousand pixels will be greater than the maximum luminance 1023 nit, i.e., forty thousand pixels in the target image will be distorted and overflow. Figure 4 For example, referring to the target image shown in FIG. 10, the target image includes a large number of highlight pixels with different luminances. In the case of a pixel number threshold of 4000, the second luminance of the target image is determined from the histogram shown in FIG. 11 based on the pixel number threshold. The second luminance of the target image is 772 nit. However, in the target image, the number of pixels in the luminance range of 772-1023 nit is about forty thousand. If the second luminance is taken as the luminance of the target image, the luminance of forty thousand pixels will be greater than 772 nit, and thus after pixel compensation of the target image, the luminance of forty thousand pixels will be greater than the maximum luminance 1023 nit, i.e., forty thousand pixels in the target image will be distorted and overflow. Figure 5 For example, referring to the target image shown in FIG. 10, the target image includes a large number of highlight pixels with different luminances. In the case of a pixel number threshold of 4000, the second luminance of the target image is determined from the histogram shown in FIG. 11 based on the pixel number threshold. The second luminance of the target image is 772 nit. However, in the target image, the number of pixels in the luminance range of 772-1023 nit is about forty thousand. If the second luminance is taken as the luminance of the target image, the luminance of forty thousand pixels will be greater than 772 nit, and thus after pixel compensation of the target image, the luminance of forty thousand pixels will be greater than the maximum luminance 1023 nit, i.e., forty thousand pixels in the target image will be distorted and overflow. Figure 7 For example, referring to the target image shown in FIG. 10, the target image includes a large number of highlight pixels with different luminances. In the case of a pixel number threshold of 4000, the second luminance of the target image is determined from the histogram shown in FIG. 11 based on the pixel number threshold. The second luminance of the target image is 772 nit. However, in the target image, the number of pixels in the luminance range of 772-1023 nit is about forty thousand. If the second luminance is taken as the luminance of the target image, the luminance of forty thousand pixels will be greater than 772 nit, and thus after pixel compensation of the target image, the luminance of forty thousand pixels will be greater than the maximum luminance 1023 nit, i.e., forty thousand pixels in the target image will be distorted and overflow. Figure 8 For example, referring to the target image shown in FIG. 10, the target image includes a large number of highlight pixels with different luminances. In the case of a pixel number threshold of 4000, the second luminance of the target image is determined from the histogram shown in FIG. 11 based on the pixel number threshold. The second luminance of the target image is 772 nit. However, in the target image, the number of pixels in the luminance range of 772-1023 nit is about forty thousand. If the second luminance is taken as the luminance of the target image, the luminance of forty thousand pixels will be greater than 772 nit, and thus after pixel compensation of the target image, the luminance of forty thousand pixels will be greater than the maximum luminance 1023 nit, i.e., forty thousand pixels in the target image will be distorted and overflow.
[0089] The embodiment of the present application provides a kind of image display method, since luminance histogram is used to indicate the relationship between the number of pixels in target image and the luminance of pixel, and pixel quantity threshold is used to control the number of distorted pixels in target image, so based on pixel quantity threshold, the first luminance representing the luminance of most pixels in the target image can be determined from the luminance histogram, and then it can be guaranteed that when the backlight luminance is determined based on the first luminance, the number of distorted pixels in the target image will not be different with different display images, and the number of distorted pixels is ensured to be within the number threshold range acceptable to human eyes. Since the graph of target image is used to indicate the corresponding relationship between the luminance of the target image and the backlight luminance of display screen, so based on the graph and the first luminance, the appropriate backlight luminance when displaying the target image can be determined, compared with the case that the backlight luminance is adjusted to maximum when displaying any image, the power consumption of display screen can be reduced.
[0090] All the optional technical solutions described above can be combined to form optional embodiments of the present application, which will not be described here.
[0091] The following is an embodiment of the device of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0092] Figure 9 is a structural block diagram of an image display device provided by an embodiment of the present application. Referring to Figure 9 The device comprises a luminance determination module 901, a backlight determination module 902 and an image display module 903.
[0093] The luminance determination module 901 is used to determine a first luminance in the luminance histogram of a target image based on a pixel quantity threshold, the luminance histogram is used to indicate the relationship between the number of pixels in the target image and the luminance of pixel, and the first luminance is the luminance when the accumulated number of pixels is first not less than the pixel quantity threshold according to the number of pixels from large to small in the luminance histogram;
[0094] The backlight determination module 902 is used to determine the first backlight luminance of the first luminance from the graph of the target image, and the graph is used to indicate the corresponding relationship between the luminance of the target image and the backlight luminance of display screen.
[0095] The image display module 903 is used to display the target image through the display screen based on the first backlight luminance.
[0096] The embodiment of the present application provides a kind of image display device, since luminance histogram is used to indicate the relationship between the number of pixels in target image and the luminance of pixel, and pixel quantity threshold is used to control the number of distorted pixels in target image, so based on pixel quantity threshold, the first luminance representing the luminance of most pixels in the target image can be determined from the luminance histogram, and further ensure that the number of distorted pixels in the target image will not be different with different display images when determining the backlight luminance based on the first luminance, ensure that the number of distorted pixels is within the number threshold range acceptable to human eyes. Since the graph of target image is used to indicate the corresponding relationship between the luminance of the target image and the backlight luminance of display screen, the appropriate backlight luminance when displaying the target image can be determined based on the graph and the first luminance, compared with the case of adjusting the backlight luminance to maximum when displaying any image, the power consumption of display screen can be reduced.
[0097] In some embodiments, the image display module 903 is configured to determine a second luminance in the luminance histogram based on the pixel quantity threshold, the second luminance being the maximum luminance in a plurality of candidate luminances, and the number of pixels corresponding to the candidate luminance being not less than the pixel quantity threshold; determine a second backlight luminance corresponding to the second luminance from the graph; determine a third backlight luminance as the average of the first backlight luminance and the second backlight luminance; and display the target image through the display screen based on the third backlight luminance.
[0098] In some embodiments, the image display module 903 is configured to determine a second luminance in the luminance histogram based on the pixel quantity threshold, the second luminance being the maximum luminance in a plurality of candidate luminances, and the number of pixels corresponding to the candidate luminance being greater than the pixel quantity threshold; determine a third luminance as the average of the first luminance and the second luminance; determine a fourth backlight luminance of the third luminance from the graph; and display the target image through the display screen based on the fourth backlight luminance when the difference between the fourth backlight luminance and the first backlight luminance is less than the difference threshold.
[0099] In some embodiments, Figure 10 is another structural block diagram of an image display device according to the embodiment of the present application. Referring to Figure 10 , the image display module 903 comprises:
[0100] The luminance adjustment unit 1001 is configured to adjust the luminance of pixels in the target image based on the first backlight luminance.
[0101] The image display unit 1002 is configured to display the target image through the display screen based on the first backlight luminance and the luminance of pixels in the target image.
[0102] In some embodiments, the luminance adjustment unit 1001 is configured to determine a luminance reduction ratio of the backlight luminance of the display screen based on the first backlight luminance and a maximum backlight luminance of the display screen; determine a luminance adjustment ratio of the pixel in the target image based on the luminance reduction ratio and a luminance correspondence relationship, the luminance correspondence relationship being used to represent a correspondence relationship between the backlight luminance of the display screen and the luminance of the pixel; and adjust the luminance of the pixel in the target image based on the luminance adjustment ratio.
[0103] In some embodiments, the luminance adjustment unit 1002 is configured to, for any pixel, in a case where the luminance of the pixel is not greater than a luminance threshold value, adjust the luminance of the pixel based on the luminance adjustment ratio, the luminance threshold value being determined based on the luminance adjustment ratio.
[0104] In some embodiments, please continue to refer to Figure 10 The apparatus further includes:
[0105] The threshold value determination module 904 is configured to determine a pixel quantity threshold value based on the quantity of the pixels in the target image and an image type of the target image.
[0106] It should be noted that the apparatus provided in the above embodiments, in realizing its functions, only takes the above-mentioned division of each functional module as an example, and in actual application, the above-mentioned functions can be completed by different functional modules according to needs, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the above-described functions. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.
[0107] The present embodiment provides a terminal, which includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to realize the image display method provided in each method embodiment.
[0108] Figure 11 is a structural block diagram of a terminal provided in the present embodiment. In some embodiments, the terminal 1100 is a smart phone, a tablet computer, a wearable device, or the like, which can access a wireless local area network as a wireless station. The terminal 1100 includes a processor 1101 and a memory 1102.
[0109] The processor 1101 can include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1101 can be implemented in at least one of a hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), a PLA (Programmable Logic Array). The processor 1101 can also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also known as a CPU (Central Processing Unit), and the coprocessor being a low-power processor for processing data in a standby state. In some embodiments, the processor 1101 can be integrated with a GPU (Graphics Processing Unit) for rendering and drawing content required to be displayed by the display screen. In some embodiments, the processor 1101 can also include an AI (Artificial Intelligence) processor for processing machine learning-related computing operations.
[0110] The memory 1102 can include one or more computer-readable storage media that can be non-transitory. The memory 1102 can also include a high-speed random access memory, and a nonvolatile memory such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1102 is used to store at least one program code for being executed by the processor 1101 to implement the image display method provided by the method embodiments in the present application.
[0111] In some embodiments, the terminal 1100 can also optionally include a peripheral device interface 1103 and at least one peripheral device. The processor 1101, the memory 1102, and the peripheral device interface 1103 can be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 1103 through a bus, a signal line, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1104, a display screen 1105, a camera assembly 1106, an audio circuit 1107, a positioning assembly 1108, and a power supply 1109.
[0112] The peripheral interface 1103 can be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, the memory 1102 and the peripheral interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102 and the peripheral interface 1103 can be implemented on a separate chip or circuit board, and the present embodiment is not limited in this regard.
[0113] The radio frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1104 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1104 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chip set, an object identity module card, and the like. The radio frequency circuit 1104 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G and 5G), wireless local area networks and / or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1104 can also include NFC (Near Field Communication) related circuitry, which is not limited by the present application.
[0114] The display screen 1105 is configured to display a UI (User Interface). The UI can include graphics, text, icons, video, and any combination thereof. When the display screen 1105 is a touch display screen, the display screen 1105 is further configured to capture touch signals on or above the surface of the display screen 1105. The touch signals can be input to the processor 1101 as control signals for processing. In this case, the display screen 1105 can also be configured to provide virtual buttons and / or virtual keyboard, also known as soft buttons and / or soft keyboard. In some embodiments, the display screen 1105 can be one, arranged on the front panel of the terminal 1100; in other embodiments, the display screen 1105 can be at least two, arranged on different surfaces of the terminal 1100 or in a folding design; in other embodiments, the display screen 1105 can be a flexible display screen, arranged on a curved surface or a folding surface of the terminal 1100. Even, the display screen 1105 can also be arranged in an irregular shape, i.e. a special-shaped screen. The display screen 1105 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.
[0115] The camera assembly 1106 is configured to capture images or videos. Optionally, the camera assembly 1106 includes a front-facing camera and a rear-facing camera. The front-facing camera is arranged on the front panel of the terminal, and the rear-facing camera is arranged on the back of the terminal. In some embodiments, the rear-facing camera is at least two, which is any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, to realize the background blur function of the main camera and the depth-of-field camera, the panoramic shooting and VR (Virtual Reality) shooting function of the main camera and the wide-angle camera, or other fusion shooting functions. In some embodiments, the camera assembly 1106 can further include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. The dual-color temperature flash refers to the combination of a warm light flash and a cold light flash, which can be used for light compensation under different color temperatures.
[0116] The audio circuit 1107 can include a microphone and a speaker. The microphone is used to collect sound waves of an object and an environment, and convert the sound waves into an electrical signal input to the processor 1101 for processing, or input to the radio frequency circuit 1104 to realize voice communication. For the purpose of stereo sound collection or noise reduction, the microphone can be multiple, respectively arranged at different parts of the terminal 1100. The microphone can also be an array microphone or an omnidirectional collection type microphone. The speaker is used to convert an electrical signal from the processor 1101 or the radio frequency circuit 1104 into sound waves. The speaker can be a traditional diaphragm speaker, or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only can the electrical signal be converted into a sound wave audible to humans, but also can be converted into a sound wave inaudible to humans for ranging purposes. In some embodiments, the audio circuit 1107 can also include a headphone jack.
[0117] The power supply 1108 is used to supply power to each component in the terminal 1100. The power supply 1108 can be alternating current, direct current, disposable battery or rechargeable battery. When the power supply 1108 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0118] In some embodiments, the terminal 1100 also includes one or more sensors 1109. The one or more sensors 1109 include, but are not limited to, an acceleration sensor 1110, a gyroscope sensor 1111, a pressure sensor 1112, an optical sensor 1113, and a proximity sensor 1114.
[0119] The acceleration sensor 1110 can detect the acceleration magnitude in three coordinate axes of the coordinate system established by the terminal 1100. For example, the acceleration sensor 1110 can be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 1101 can control the display screen 1105 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1110. The acceleration sensor 1110 can also be used for game or user motion data collection.
[0120] The gyroscope sensor 1111 can detect the body direction and rotation angle of the terminal 1100, and the gyroscope sensor 1111 can collect 3D actions of the user on the terminal 1100 in cooperation with the acceleration sensor 1110. The processor 1101 can realize the following functions according to the data collected by the gyroscope sensor 1111: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization when shooting, game control, and inertial navigation.
[0121] The pressure sensor 1112 can be disposed on the side bezel of the terminal 1100 and / or on the lower layer of the display screen 1105. When the pressure sensor 1112 is disposed on the side bezel of the terminal 1100, it can detect the user's grip signal on the terminal 1100, and the processor 1101 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1112. When the pressure sensor 1112 is disposed on the lower layer of the display screen 1105, the processor 1101 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1105. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0122] An optical sensor 1113 is used to collect ambient light intensity. In one embodiment, the processor 1101 can control the display brightness of the display screen 1105 based on the ambient light intensity collected by the optical sensor 1113. Optionally, when the ambient light intensity is high, the display brightness of the display screen 1105 is increased; when the ambient light intensity is low, the display brightness of the display screen 1105 is decreased. In another embodiment, the processor 1101 can also dynamically adjust the shooting parameters of the camera assembly 1106 based on the ambient light intensity collected by the optical sensor 1113.
[0123] The proximity sensor 1114, also known as the distance sensor, is installed on the front panel of the terminal 1100. The proximity sensor 1114 is used to detect the distance between the user and the front of the terminal 1100. In one embodiment, when the proximity sensor 1114 detects that the distance between the user and the front of the terminal 1100 is gradually decreasing, the processor 1101 controls the display screen 1105 to switch from a screen-on state to a screen-off state; when the proximity sensor 1114 detects that the distance between the user and the front of the terminal 1100 is gradually increasing, the processor 1101 controls the display screen 1105 to switch from a screen-off state to a screen-on state.
[0124] Those skilled in the art will understand that Figure 11 The structure shown does not constitute a limitation on terminal 1100 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0125] This application also provides a computer-readable storage medium storing at least one piece of program code, which is loaded and executed by the processor to implement the image display methods shown in the above embodiments.
[0126] This application also provides a computer program product, including a computer program that is loaded and executed by a processor to implement the image display methods shown in the above embodiments.
[0127] The above sequence numbers of the embodiments of the present application are only for description, and do not represent advantages or disadvantages of the embodiments.
[0128] Those skilled in the art can understand that all or part of the steps in the image display method of the above-mentioned embodiments can be completed by hardware, or can be completed by a program instructing the relevant hardware, and the program can be stored in a computer readable storage medium. The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk. The above is only an optional embodiment of the present application, and is not used to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. An image display method characterized by, The method comprises: determining a pixel quantity threshold based on a quantity of pixels in a target image and an image type of the target image, the pixel quantity threshold being positively correlated with the quantity, the image type comprising a bright-state image and a dark-state image, the pixel quantity threshold corresponding to the dark-state image being greater than the pixel quantity threshold corresponding to the bright-state image; determining a first brightness in a brightness histogram of the target image based on the pixel quantity threshold, the brightness histogram being used to indicate a relationship between a quantity of pixels in the target image and brightness of the pixels, the first brightness being a brightness at which an accumulated quantity of pixels is not less than the pixel quantity threshold for the first time according to brightness from large to small in the brightness histogram; determining a second brightness in the brightness histogram based on the pixel quantity threshold, the second brightness being a maximum brightness in a plurality of candidate brightnesses, a quantity of pixels corresponding to the candidate brightness not being less than the pixel quantity threshold; determining a first backlight brightness of the first brightness and a second backlight brightness of the second brightness from a curve graph of the target image, the curve graph being used to indicate a corresponding relationship between brightness of the target image and a backlight brightness of a display screen; determining an average value of the first backlight brightness and the second backlight brightness as a third backlight brightness; displaying the target image through the display screen based on the third backlight brightness.
2. The method of claim 1, wherein, The method further comprises: determining an average value of the first brightness and the second brightness as a third brightness; determining a fourth backlight brightness of the third brightness from the curve graph; in a case where a difference between the fourth backlight brightness and the first backlight brightness is less than a difference threshold, displaying the target image through the display screen based on the fourth backlight brightness.
3. The method of claim 1, wherein, The displaying the target image through the display screen based on the third backlight brightness comprises: adjusting brightness of pixels in the target image based on the third backlight brightness; displaying the target image through the display screen based on the third backlight brightness and the brightness of the pixels in the target image.
4. The method of claim 3, wherein, The adjusting the brightness of the pixels in the target image based on the third backlight brightness comprises: determining a brightness reduction ratio of the backlight brightness of the display screen based on the third backlight brightness and a maximum backlight brightness of the display screen; determining a brightness adjustment ratio of the pixels in the target image based on the brightness reduction ratio and a brightness corresponding relationship, the brightness corresponding relationship being used to represent a corresponding relationship between the backlight brightness of the display screen and the brightness of the pixels; adjusting the brightness of the pixels in the target image based on the brightness adjustment ratio.
5. The method of claim 4, wherein, The adjusting the brightness of the pixels in the target image based on the brightness adjustment ratio comprises: for any pixel, in a case where the brightness of the pixel is not greater than a brightness threshold, adjusting the brightness of the pixel based on the brightness adjustment ratio, the brightness threshold being determined based on the brightness adjustment ratio.
6. An image display device, characterized by comprising: The apparatus comprises: The threshold determination module is configured to determine a pixel quantity threshold based on a quantity of pixels in a target image and an image type of the target image, the pixel quantity threshold being positively correlated with the quantity, and the image type including a bright-state image and a dark-state image, and a pixel quantity threshold corresponding to the dark-state image being greater than a pixel quantity threshold corresponding to the bright-state image. The brightness determination module is configured to determine a first brightness in a brightness histogram of the target image based on the pixel quantity threshold, the brightness histogram being used to indicate a relationship between a quantity of pixels in the target image and brightness of the pixels, and the first brightness being a brightness at which an accumulated quantity of pixels is first not less than the pixel quantity threshold when the quantity of pixels is accumulated from large to small according to the brightness in the brightness histogram. The image display module is configured to determine a second brightness in the brightness histogram based on the pixel quantity threshold, the second brightness being a maximum brightness in a plurality of candidate brightnesses, and a quantity of pixels corresponding to the candidate brightnesses not being less than the pixel quantity threshold. The backlight determination module is configured to determine a first backlight brightness of the first brightness and a second backlight brightness of the second brightness from a curve graph of the target image, the curve graph being used to indicate a corresponding relationship between brightness of the target image and backlight brightness of a display screen. The image display module is further configured to determine an average value of the first backlight brightness and the second backlight brightness as a third backlight brightness, and display the target image through the display screen based on the third backlight brightness.
7. A terminal, characterized by comprising: The terminal includes a processor and a memory, and the memory stores at least one program code for being executed by the processor to implement the image display method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The storage medium stores at least one program code for being executed by a processor to implement the image display method according to any one of claims 1 to 5.
9. A computer program product comprising a computer program, characterized in that, The computer program product stores at least one program code for being executed by a processor to implement the image display method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for adjusting display image based on backlight brightness
CN108257580A
Global backlight dimming method and liquid crystal display using the same
KR101076449B1