CN115798418A - Image display method, device, terminal and storage medium - Google Patents

Image display method, device, terminal and storage medium Download PDF

Info

Publication number
CN115798418A
CN115798418A CN202211486028.1A CN202211486028A CN115798418A CN 115798418 A CN115798418 A CN 115798418A CN 202211486028 A CN202211486028 A CN 202211486028A CN 115798418 A CN115798418 A CN 115798418A
Authority
CN
China
Prior art keywords
brightness
target image
luminance
pixels
backlight
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211486028.1A
Other languages
Chinese (zh)
Inventor
程琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Yisiwei Computing Technology Co ltd
Beijing Eswin Computing Technology Co Ltd
Original Assignee
Hefei Yisiwei Computing Technology Co ltd
Beijing Eswin Computing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Yisiwei Computing Technology Co ltd, Beijing Eswin Computing Technology Co Ltd filed Critical Hefei Yisiwei Computing Technology Co ltd
Priority to CN202211486028.1A priority Critical patent/CN115798418A/en
Publication of CN115798418A publication Critical patent/CN115798418A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application provides an image display method, an image display device, a terminal and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: determining a first brightness in a brightness histogram of the target image based on a pixel quantity threshold, wherein the brightness histogram is used for indicating the relation between the quantity of pixels in the target image and the brightness of the pixels, the first brightness is the brightness when the quantity of the pixels is accumulated in the brightness histogram from large to small according to the brightness, and the accumulated quantity of the pixels is not less than the pixel quantity threshold for the first time; determining a first backlight brightness of the first brightness from a plot of the target image; and displaying the target image through the display screen based on the first backlight brightness. The method can control the number of distorted pixels of the target image by setting a pixel number threshold value, and reduce power consumption by adjusting the backlight brightness of the display screen.

Description

Image display method, device, terminal and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an image display method, an image display apparatus, a terminal, and a storage medium.
Background
With the development of liquid crystal display technology, users are increasingly pursuing the quality of images displayed by liquid crystal displays. When an image is displayed on the display screen of the liquid crystal display, the liquid crystal itself does not emit light, and thus the image needs to be displayed by turning on the backlight of the display screen. In the related art, when displaying an image, the lcd usually turns on the backlight of the display screen to the maximum brightness. However, when an image having only a few pixels with high luminance is displayed, waste of power consumption is caused.
Disclosure of Invention
The embodiment of the application provides an image display method, an image display 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 scheme is as follows:
in one aspect, an image display method is provided, the method including:
determining a first brightness in a brightness histogram of the target image based on a pixel quantity threshold, wherein the brightness histogram is used for indicating the relation between the quantity of pixels in the target image and the brightness of the pixels, the first brightness is the brightness when the quantity of the pixels is accumulated in the brightness histogram from large to small according to the brightness, and the accumulated quantity of the pixels is not less than the pixel quantity threshold for the first time;
determining a first backlight brightness of the first brightness from a graph of the target image, wherein the graph is used for indicating the corresponding relation between the brightness of the target image and the backlight brightness of a display screen;
and displaying the target image through the display screen based on the first backlight brightness.
In another aspect, there is provided an image display apparatus, the apparatus including:
the brightness determining module is used for determining first brightness in a brightness histogram of the target image based on a pixel quantity threshold, wherein the brightness histogram is used for indicating the relation between the quantity of pixels in the target image and the brightness of the pixels, the first brightness is the brightness obtained by accumulating the quantity of the pixels according to the brightness from large to small in the brightness histogram, and the accumulated quantity of the pixels is not smaller than the pixel quantity threshold for the first time;
the backlight determination module is used for determining first backlight brightness of the first brightness from a graph of the target image, wherein the graph is used for indicating the corresponding relation between the brightness of the target image and the backlight brightness of a display screen;
and the image display module is used for displaying the target image through the display screen based on the first backlight brightness.
In some embodiments, the image display module is configured to determine a second luminance in the luminance histogram based on the threshold of the number of pixels, where the second luminance is a maximum luminance among a plurality of candidate luminances, and the number of pixels corresponding to the candidate luminances is not less than the threshold of the number of pixels; determining a second backlight brightness of the second brightness from the graph; determining an average value of the first backlight brightness and the second backlight brightness as a third backlight brightness; and displaying the target image through the display screen based on the third backlight brightness.
In some embodiments, the image display module is configured to determine a second luminance in the luminance histogram based on the threshold of the number of pixels, where the second luminance is a maximum luminance among a plurality of candidate luminances, and the number of pixels corresponding to the candidate luminances is greater than the threshold of the number of pixels; determining an average value of the first luminance and the second luminance as a third luminance; determining a fourth backlight brightness of the third brightness from the graph; and displaying the target image through the display screen based on the fourth backlight brightness under the condition that the difference value between the fourth backlight brightness and the first backlight brightness is smaller than a difference value threshold value.
In some embodiments, the image display module comprises:
a brightness adjusting unit, configured to adjust brightness of a pixel in the target image based on the first backlight brightness;
and the image display unit is used for displaying the target image through the display screen based on the first backlight brightness and the brightness of the pixels in the target image.
In some embodiments, the brightness adjusting unit is configured to determine a brightness reduction ratio of the backlight brightness of the display screen based on the first backlight brightness and the maximum backlight brightness of the display screen; the brightness adjustment proportion of the pixels in the target image is determined based on the brightness reduction proportion and the brightness corresponding relation, and the brightness corresponding relation is used for representing the corresponding relation between the backlight brightness of the display screen and the brightness of the pixels; the brightness adjusting device is used for adjusting the brightness of the pixels in the target image based on the brightness adjusting proportion.
In some embodiments, the luminance adjusting unit is configured to, for any one pixel, adjust the luminance of the pixel based on the luminance adjustment ratio in a case where the luminance of the pixel is not greater than a luminance threshold value, the luminance threshold value being determined based on the luminance adjustment ratio.
In some embodiments, the apparatus further comprises:
a threshold determination module to determine the pixel quantity threshold based on a quantity of pixels in the target image and an image type of the target image.
In another aspect, a terminal is provided that includes a processor and a memory; the memory stores at least one program code for execution by the processor to implement the image display method as described in the above aspect.
In another aspect, a computer-readable storage medium is provided, the storage medium storing at least one program code for execution by a processor to implement the image display method as described in the above aspect.
In another aspect, a computer program product is provided, comprising a computer program that is loaded and executed by a processor to implement the image display method according to the above aspect.
The embodiment of the application provides an image display method, wherein a brightness histogram is used for indicating a relation between the number of pixels in a target image and the brightness of the pixels, and a pixel number threshold is used for controlling the number of distorted pixels in the target image, so that a first brightness representing the brightness of most pixels in the target image can be determined from the brightness histogram based on the pixel number threshold, and further, when backlight brightness is determined based on the first brightness, the number of the distorted pixels in the target image cannot be different with different display images, and the number of the distorted pixels is ensured to be within a number threshold range acceptable to human eyes. Since the graph of the target image is used to indicate the correspondence between the luminance of the target image and the backlight luminance of the display screen, based on the graph and the first luminance, an appropriate backlight luminance at the time of displaying the target image can be determined, and power consumption of the display screen can be reduced compared to a case where the backlight luminance is maximized in comparison with displaying any image.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
fig. 2 is a flowchart of an image display method provided in an embodiment of the present application;
FIG. 3 is a flowchart of another image display method provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a target image provided by an embodiment of the present application;
fig. 5 is a schematic diagram of a luminance histogram provided in an embodiment of the present application;
fig. 6 is a schematic diagram of a luminance cumulative histogram according to an embodiment of the present application;
FIG. 7 is a schematic diagram of another target image provided by an embodiment of the present application;
FIG. 8 is a diagram of another luminance histogram provided in an embodiment of the present application;
fig. 9 is a block diagram of an image display device according to an embodiment of the present application;
fig. 10 is a block diagram of another image display device according to an embodiment of the present application;
fig. 11 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It will be understood that the terms "first," "second," and the like as used herein may be used herein to describe various concepts, which are not limited by these terms unless otherwise specified. These terms are only used to distinguish one concept from another. For example, the first luminance may be referred to as a second luminance, and similarly, the second luminance may be referred to as the first luminance, without departing from the scope of the present application.
For example, the at least one second brightness may be any integer of one or more second brightness, two second brightness, three second brightness, and the like. The plurality of second luminances means two or more, and for example, the plurality of second luminances may be any integer number of second luminances equal to or greater than two, such as two second luminances, three second luminances, and the like. Each means each of the at least one, for example, each second brightness means each of the plurality of second brightnesses, and if the plurality of second brightnesses is 3 second brightnesses, each second brightness means each of the 3 second brightnesses.
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 referred to in this application are authorized by the user or fully authorized by various parties, and the collection, use and processing of the relevant data are subject to relevant laws and regulations and standards in relevant countries and regions. For example, the target images referred to in this application are all acquired with sufficient authorization.
Fig. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to fig. 1, the implementation environment includes a terminal 101 and a server 102.
The terminal 101 may 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, motion Picture Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4), a laptop computer, and the like. An application program for displaying a target image may be installed and run on the terminal 101. The user can check the target image by logging in the application program through the terminal 101. The terminal 101 may be connected to the server 102 through a wireless network or a wired network.
The terminal 101 may be generally referred to as one of a plurality of terminals, and the embodiment is illustrated with the terminal 101. Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer. For example, the number of the terminals may be several, or the number of the terminals may be several tens or several hundreds, or more, and the number of the terminals and the type of the device are not limited in the embodiments of the present application. The application is associated with the server 102 and the server 102 provides background services.
The server 102 is an independent physical server, may be a server cluster or a distributed system configured by a plurality of physical servers, and may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a web service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), and a big data and artificial intelligence platform. The server 102 is associated with the application program, and the server 102 is used for providing background services for the application program. In some embodiments, the terminal 101 acquires the target image, the graph of the target image, and the luminance 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 TCON receives the target image, the first graph of the target image, and the first luminance histogram of the target image sent by the server 102, and then determines the backlight luminance of the display screen when the target image is displayed based on the backlight adjustment method provided in the embodiment of the present application, converts the target image into a timing signal required by the display to display the target image, and then transmits the pixel data of the target image and the backlight luminance of the display screen to the display, thereby achieving the purpose that the display displays the target image based on the backlight luminance. Optionally, the backlight adjusting method provided in the embodiment of the present application may be further executed by a Central Processing Unit (CPU) of the terminal. Or, after the target image, the first graph of the target image, and the first luminance histogram of the target image, which are sent by the server 102, are received by the external server, the first graph of the target image and the first luminance histogram of the target image are processed based on the backlight adjusting method provided in the embodiment of the application, and the backlight luminance of the display screen when the target image is displayed is determined. The embodiment of the present application does not limit this.
In some embodiments, the server 102 undertakes primary computing work and the terminal 101 undertakes secondary computing work; or, the server 102 undertakes the secondary computing work, and the terminal 101 undertakes the primary computing work; alternatively, the server 102 and the terminal 101 perform cooperative computing by using a distributed computing architecture. The server 102 may be connected to the terminal 101 and other terminals through a wireless network or a wired network, and optionally, the number of the servers may be more or less, which is not limited in the embodiment of the present application. Of course, the server 102 may also include other functional servers to provide more comprehensive and diverse services.
Fig. 2 is a flowchart of an image display method according to an embodiment of the present application. The method is performed by a terminal, and referring to fig. 2, the method includes:
201. the terminal determines a first brightness in a brightness histogram of the target image based on the pixel number threshold, wherein the brightness histogram is used for indicating the relation between the number of pixels in the target image and the brightness of the pixels, the first brightness is the brightness when the pixel number is accumulated according to the brightness from large to small in the brightness histogram, and the accumulated pixel number is not smaller than the pixel number threshold for the first time.
In the embodiment of the application, the terminal is a mobile phone, a desktop computer, a notebook computer, an intelligent television and other various types of equipment with a display screen. The target image may be an image to be displayed, or may be an image of any frame in a video to be displayed. Accordingly, the terminal may display the target image through the display screen. Optionally, the display screen is a liquid crystal display screen. Wherein the threshold number of pixels is related to the size of the target image and the energy saving intensity. The threshold number of pixels may be 10%, 20%, 30%, etc. of the total number of pixels in the target image. If the threshold value of the number of pixels is higher, the determined first brightness is lower, and the energy-saving intensity is higher; and if the pixel number threshold is lower, the determined first brightness is higher, and the energy-saving intensity is lower. The pixel number threshold may be set by a terminal, or may be input to the terminal by a user, and the source of the pixel number threshold is not limited in the embodiment of the present application.
The target image includes a plurality of pixels, and the brightness of different pixels is also different. In the luminance histogram, the abscissa is the luminance of a pixel, and the ordinate is the number of pixels. Therefore, the number of pixels corresponding to the case where the luminance of a pixel is any luminance can be determined based on the luminance histogram, and the terminal can accumulate the pixels in the luminance histogram from the maximum luminance toward the minimum luminance based on the threshold value of the number of pixels. And under the condition that the total number of the accumulated pixels is not less than the threshold value of the number of the pixels for the first time, determining the brightness represented by the abscissa corresponding to the number of the pixels accumulated for the last time as the first brightness. In the luminance histogram, the total number of pixels with abscissa greater than the first luminance is smaller than the pixel number threshold, and the total number of pixels with abscissa not smaller than the first luminance is not smaller than the pixel number threshold.
202. The terminal determines a first backlight brightness of the first brightness from a graph of the target image, the graph indicating a correspondence between the brightness of the target image and the backlight brightness of the display screen.
In the embodiment of the present application, the abscissa of a point on the curve in the graph is the luminance of the target image, and the ordinate is the backlight luminance of the display screen. In the related art, the abscissa of the graph represents the highest brightness of the pixel in the corresponding image, and in the embodiment of the present application, the brightness of the target image is one of the brightness of all the pixels in the target image, and the brightness can represent the brightness of the pixel in the target image, which is greater than the preset threshold. The preset threshold may be 60%, 70%, or 80% of the total number of pixels in the target image, and the specific number of the preset threshold is not limited in the embodiment of the present application. Since the brightness of the target image is positively correlated with the backlight brightness of the display screen. The larger the brightness of the target image is, the larger the backlight brightness of the display screen is; the smaller the brightness of the target image, the smaller the backlight brightness of the display screen. The terminal is thus able to determine a first backlight brightness of the first brightness from the graph. That is, the first backlight luminance is the backlight luminance corresponding to the ordinate when the abscissa is the first luminance in the graph of the target image. And the first brightness of the target image can reflect the brightness of most pixels in the target image, so after the terminal determines the first brightness of the target image, the first backlight brightness of the first brightness is determined from the graph. Wherein, the first backlight brightness is suitable backlight brightness when the target image is displayed.
The target image, the luminance histogram of the target image and the graph of the target image may be stored in the terminal, and the terminal locally obtains the target image, the luminance histogram of the target image and the graph of the target image. The target image, the luminance histogram of the target image, and the graph of the target image may also be stored in the server, and the terminal acquires the target image, the luminance histogram of the target image, and the graph of the target image from the server.
203. The terminal displays the target image through the display screen based on the first backlight brightness.
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. Correspondingly, after the terminal determines the first backlight brightness, the terminal adjusts the backlight brightness of the display screen to the first backlight brightness, and displays the target image based on the first backlight brightness. In comparison with the case where the backlight luminance is adjusted to the maximum when any image is displayed, the first backlight luminance of the display target image is determined and the backlight luminance of the display screen is adjusted to the first backlight luminance, so that power consumption can be reduced.
The embodiment of the application provides an image display method, wherein a brightness histogram is used for indicating a relation between the number of pixels in a target image and the brightness of the pixels, and a pixel number threshold is used for controlling the number of distorted pixels in the target image, so that a first brightness representing the brightness of most pixels in the target image can be determined from the brightness histogram based on the pixel number threshold, and further, when backlight brightness is determined based on the first brightness, the number of the distorted pixels in the target image cannot be different with different display images, and the number of the distorted pixels is ensured to be within a number threshold range acceptable to human eyes. Since the graph of the target image is used to indicate the correspondence between the luminance of the target image and the backlight luminance of the display screen, based on the graph and the first luminance, an appropriate backlight luminance at the time of displaying the target image can be determined, and power consumption of the display screen can be reduced compared to a case where the backlight luminance is maximized in comparison with displaying any image.
Fig. 3 is a flowchart of another image display method according to an embodiment of the present application. The method is performed by a terminal, and referring to fig. 3, the method includes:
301. the terminal determines first brightness in a brightness histogram of the target image based on the pixel number threshold, wherein the brightness histogram is used for indicating the relation between the number of pixels in the target image and the brightness of the pixels, the first brightness is the brightness when the pixel number is accumulated from large to small according to the brightness in the brightness histogram, and the accumulated pixel number is not smaller than the pixel number threshold for the first time.
In the embodiment of the present application, the total number of pixels greater than the first luminance in the luminance histogram is less than the threshold value of the number of pixels, and the total number of pixels not less than the first luminance is not less than the threshold value of the number of pixels. Therefore, the terminal sequentially accumulates the pixels in the luminance histogram from the maximum luminance toward the minimum luminance based on the pixel number threshold. And under the condition that the total number of the accumulated pixels is not less than the threshold value of the number of the pixels for the first time, determining the brightness represented by the abscissa corresponding to the number of the pixels accumulated for the last time as the first brightness.
For example, referring to the target image shown in fig. 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 includes a large number of highlight pixels with different brightness. As shown in fig. 5, when the threshold value of the number of pixels is 4000, the luminance histogram of the target image is obtained by sequentially accumulating the pixels in the luminance histogram from the maximum luminance toward the minimum luminance based on the threshold value of the number of pixels, as shown in fig. 6. Wherein the abscissa is the luminance of the pixels and the ordinate is the total number of the accumulated pixels. The total number of pixels in the range of 855-1023nit is 3855, which is less than the pixel number threshold, and thus, continuing to sum up, the total number of pixels in the range of 854-1023nit is 4251, which is greater than the pixel number threshold, which results in the first luminance being 854nit.
In some embodiments, the threshold number of pixels is related to factors such as the size, type, etc. of the image. Accordingly, the terminal may determine the pixel number threshold based on the number of pixels in the target image and the image type of the target image. Under the condition that the total number of the pixels is large, the threshold value of the number of the pixels can be increased; in the case where the total number of pixels is small, the pixel number threshold may be lowered. When the target image includes a large number of pixels with low brightness, that is, when the target image is a dark image, the threshold value of the number of pixels can be increased; in the case where a large number of pixels having high luminance are included in the target image, that is, when the target image is a bright image, the threshold value of the number of pixels may be lowered. Wherein the threshold value of the number of pixels may be 10%, 20%, 30%, or the like of the total number of pixels. The pixel number threshold may be set by a terminal, or may be input to the terminal by a user, and the source of the pixel number threshold is not limited in the embodiment of the present application.
302. The terminal determines a first backlight brightness of the first brightness from a graph of the target image, the graph indicating a correspondence between the brightness of the target image and the backlight brightness of the display screen.
In the embodiment of the present application, the graph is used to indicate the correspondence between the brightness of the target image and the backlight brightness of the display screen, and the brightness of the target image and the backlight brightness of the display screen are positively correlated. Therefore, the terminal can determine the first backlight brightness corresponding to the first brightness based on the graph of the target image after determining the first brightness. The first backlight brightness is the backlight brightness corresponding to the ordinate when the abscissa in the graph of the target image is the first brightness. And the first brightness of the target image can reflect the brightness of most pixels in the target image, so that the first backlight brightness is the proper backlight brightness when the target image is displayed.
303. The terminal adjusts the brightness of the pixel in the target image based on the first backlight brightness.
In the embodiment of the present application, the product between the luminance adjustment ratio of the backlight luminance of the display screen and the luminance adjustment ratio of the pixels in the target image is 1, that is, BL × OC =1. Where 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. In addition, the terminal determines the brightness adjustment ratio of the display screen based on the first backlight brightness of the display screen, so that the terminal can determine the brightness adjustment ratio of the pixels in the target image based on the brightness adjustment ratio and further adjust the brightness of the pixels in the target image based on the brightness adjustment ratio.
In some embodiments, since the product between 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 correspondence between the backlight luminance of the display screen and the luminance of the pixel. Accordingly, the terminal adjusts the brightness of the pixel in the target image through the following steps (1) - (3).
(1) The terminal determines a brightness reduction ratio of the backlight brightness of the display screen based on the first backlight brightness and the maximum backlight brightness of the display screen.
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 graph, the luminance reduction ratio of the display backlight luminance can be determined based on the first backlight luminance and the maximum backlight luminance.
(2) The terminal determines the brightness adjustment proportion of the pixels in the target image based on the brightness reduction proportion and the brightness corresponding relation, wherein the brightness corresponding relation is used for expressing the corresponding relation between the backlight brightness of the display screen and the brightness of the pixels.
In the embodiment of the present application, the brightness correspondence relationship is that the product of the brightness adjustment ratio of the backlight brightness of the display screen and the brightness adjustment ratio of the pixel in the target image is 1. Therefore, the terminal can determine the brightness adjustment ratio of the pixels in the target image based on the brightness correspondence after determining the brightness reduction ratio of the backlight brightness of the display screen.
(3) And the terminal adjusts the brightness of the pixel in the target image based on the brightness adjustment proportion.
In the embodiment of the application, after determining the brightness adjustment proportion of the pixels in the target image, the terminal adjusts the brightness of the pixels in the target image based on the brightness adjustment proportion.
For example, in the case where the first backlight luminance is 772nit, the luminance reduction ratio of the backlight luminance of the display screen is calculated to be 75.5% based on the maximum luminance 1023nit and the first backlight luminance, that is, in the case where the backlight luminance of the display screen is adjusted from the maximum backlight luminance to the first backlight luminance, the backlight luminance of the display screen is reduced to 75.5% of the maximum backlight luminance. Based on the brightness correspondence relationship and the brightness reduction ratio, it is possible to obtain a brightness adjustment ratio of 32% for the pixels in the target image, and adjust the brightness of the pixels in the target image to 1.32 times the original brightness based on the brightness adjustment ratio.
In some embodiments, the terminal determines whether to adjust the brightness of the pixel based on the brightness adjustment ratio according to the magnitude relation between the brightness of the pixel and the brightness threshold. Accordingly, for any pixel, in the case where the luminance of the pixel is not greater than the luminance threshold value, the terminal adjusts the luminance of the pixel based on the luminance adjustment ratio, and the luminance threshold value is determined based on the luminance adjustment ratio. The terminal adjusts the brightness represented by the brightness threshold based on the brightness adjustment ratio, and then the obtained brightness is equal to the maximum brightness. Therefore, in the case where the luminance of the pixel is not greater than the luminance threshold value, the luminance of the adjusted pixel obtained based on the luminance adjustment ratio is not greater than the maximum luminance, that is, the pixel is not distorted and overflowed. If 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 is greater than the maximum brightness, and the pixel is distorted and overflowed.
304. And 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.
In the embodiment of the application, after the backlight brightness of the display screen is adjusted, the terminal can adjust the brightness of the pixel in the target image based on the first backlight brightness. The target image is then displayed based on the first backlight brightness and the brightness of the pixels in the target image. The terminal adjusts the backlight brightness of the display screen to a first backlight brightness, and the brightness of the display screen when displaying the target image is dark because the first backlight brightness is less than the maximum backlight brightness. In order to keep the display effect of the display screen when the target image is displayed unchanged, the terminal can adjust the brightness of the pixel to enable the display effect of the display screen when the target image is displayed to be the same as the display effect before the backlight brightness is adjusted.
In some embodiments, after determining the first backlight brightness of the display screen, the terminal can further determine, from the brightness histogram of the target image, a maximum brightness, i.e., the second brightness, at which the number of pixels is greater than the pixel number threshold based on the pixel number threshold. And determines the backlight brightness corresponding to the second brightness, i.e., the second backlight brightness, from the graph. The terminal then determines an average of the first backlight brightness and the second backlight brightness as the backlight brightness of the display screen. Correspondingly, the terminal determines a second brightness in the brightness histogram based on the threshold of the number of pixels, wherein the second brightness is the maximum brightness in the multiple candidate brightnesses, and the number of pixels corresponding to the candidate brightness is not less than the threshold of the number of pixels; determining a second backlight brightness of the second brightness from the graph; and determining the average value of the first backlight brightness and the second backlight brightness as a third backlight brightness. And displaying the target image through the display screen based on the third backlight brightness. And the terminal can determine at least one brightness with the number of pixels larger than a threshold value of the number of pixels in the brightness histogram based on the brightness histogram and takes the at least one brightness as the alternative brightness. And the terminal selects the maximum candidate brightness from the plurality of candidate brightnesses as the second brightness of the target image. Since the graph indicates a correspondence between the luminance of the target image and the backlight luminance of the display screen, the terminal can determine, from the graph, a second backlight luminance corresponding to a second luminance, which is a backlight luminance corresponding to the ordinate when the abscissa is the second luminance in the graph of the target image. And determining an average value between the second backlight brightness and the first backlight brightness as a third backlight brightness, determining the third backlight brightness as the backlight brightness of the display screen when the target image is displayed, and then adjusting the backlight brightness of the display screen to the third backlight brightness by the terminal.
In some embodiments, the terminal can determine, from the luminance histogram of the target image, the maximum luminance, i.e., the second luminance, at which the number of pixels is greater than the pixel number threshold, based on the pixel number threshold. And determining an average value of the second brightness and the first brightness as the brightness of the target image, and then the terminal determines the backlight brightness from the graph with the average value. And determining the backlight brightness as the backlight brightness of the display screen under the condition that the difference value between the backlight brightness and the first backlight brightness is smaller than the difference value threshold value. Accordingly, the terminal determines the backlight brightness of the display screen through the following steps (1) - (4).
(1) The terminal determines a second brightness in the brightness histogram based on the threshold of the number of pixels, wherein the second brightness is the maximum brightness in the multiple candidate brightnesses, and the number of pixels corresponding to the candidate brightnesses is larger than the threshold of the number of pixels.
In the embodiment of the application, the terminal determines at least one brightness of which the number of pixels in the brightness histogram is greater than a threshold value of the number of pixels based on the brightness histogram, and takes the at least one brightness as the alternative brightness. And the terminal selects the maximum candidate brightness from the plurality of candidate brightnesses as the second brightness of the target image.
(2) The terminal determines an average value of the first luminance and the second luminance as a third luminance.
In the embodiment of the present application, since the second luminance is the maximum luminance when the number of pixels is greater than the threshold value of the number of pixels, the first luminance is the luminance represented by the abscissa corresponding to the number of pixels accumulated last time when the total number of pixels is not less than the threshold value of the number of pixels for the first time. The second brightness is therefore not greater than the first brightness. The lower the brightness of the target image, the higher the energy saving intensity. Therefore, in the case where the second luminance is smaller 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 the total number of the pixels with the brightness larger than the second brightness is larger than the total number of the pixels with the brightness larger than the first brightness, that is, the number of the distorted pixels when the brightness of the target image is the second brightness is larger than the number of the distorted pixels when the brightness of the target image is the first brightness. The distorted pixel is a pixel in which the brightness of the pixel in the target image is adjusted based on the backlight brightness of the display screen, and the brightness of the pixel exceeds the maximum brightness 1023 nit. Therefore, in order to reduce the number of distorted pixels in the target image while improving the power saving strength, the terminal determines an average value of the first luminance and the second luminance as a 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 may determine the first luminance as the third luminance, may determine the second luminance as the third luminance, and may determine an average value of the second luminance and the first luminance as the third luminance.
See, for example, the luminance histogram shown in fig. 5. When the threshold value of the number of pixels is 4000, the terminal finds the luminance of the pixel when the number of the first pixels is larger than the threshold value of the number of pixels in the luminance histogram from the maximum luminance to the minimum luminance, and the luminance of the pixel is 772nit, that is, the second luminance is 772nit. The terminal then finds a first luminance of 854nit in the luminance cumulative histogram as shown in fig. 6. At this time, the second luminance is smaller than the first luminance, and thus, the average value of the first luminance and the second luminance is determined as the third luminance, i.e., the third luminance is 813nit.
(3) The terminal determines a fourth backlight luminance of the third luminance from the graph.
In the embodiment of the present application, the terminal determines an average value 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 graph. And the fourth backlight brightness is the backlight brightness corresponding to the ordinate when the abscissa in the graph of the target image is the third brightness.
(4) And under the condition that the difference value between the fourth backlight brightness and the first backlight brightness is smaller than the difference threshold value, the terminal displays the target image through the display screen based on the fourth backlight brightness.
In the embodiment of the present application, since the second luminance is smaller than the first luminance, an average value of the first luminance and the second luminance, that is, the third luminance is also smaller than the first luminance. Since the brightness of the target image in the graph is positively correlated with the backlight brightness of the display screen, the fourth backlight brightness of the third brightness is smaller than the first backlight brightness of the first brightness. The terminal can be capable of a difference between the fourth backlight brightness and the first backlight brightness based on the fourth backlight brightness and the first backlight brightness. Since the difference between the fourth backlight luminance and the first backlight luminance is smaller than the difference threshold value, the curve in the graph changes more slowly at this time. 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 larger under the condition that the difference between the fourth backlight luminance and the first backlight luminance is not smaller than the difference threshold, the change speed of the curve in the graph is faster at this time. Accordingly, the terminal can determine the first backlight brightness as the backlight brightness of the display screen. The difference threshold is related to the change speed of the curve, and can be set to be a small value under the condition that the change speed of the curve is high; in the case where the change speed of the curve is slow, the difference threshold value may be set to a large value. The difference threshold value can be set according to an actual application scene, and the size of the difference threshold value is not limited in the embodiment of the application. The difference threshold may be set by the terminal, or may be input to the terminal by the user, and the source of the difference threshold is not limited in the embodiment of the present application.
In some embodiments, the terminal determines a backlight brightness from the graph corresponding to the second brightness and displays the target image based on the backlight brightness. And if the second brightness is determined as the brightness of the target image. In one case, for a target image including a large number of high-luminance pixels having different luminances, the luminance of some of the pixels in the target image is greater than the second luminance. Therefore, after the brightness of the pixels in the target image is adjusted based on the backlight brightness of the second brightness, the brightness of some pixels in the target image will exceed the maximum brightness 1023nit, and thus the pixels will be distorted and overflow. In another case, for a target image including a small number of highlighted pixels having different brightnesses, only a small number of pixels in the target image have a brightness greater than the second brightness. Therefore, after the brightness of the pixels in the target image is adjusted based on the backlight brightness, the brightness of only a small number of pixels in the target image exceeds the maximum brightness 1023nit, so that the number of distorted pixels is small and within a threshold range acceptable to human eyes, and therefore, the number of distorted pixels can be ignored.
For example, referring to the target image shown in fig. 4, the target image includes a large number of highlight pixels having different brightness. In the case where the pixel number threshold is 4000, the second luminance of the target image determined from the histogram shown in fig. 5 is 772nit based on the pixel number threshold. However, in the target image map, the number of pixels in the luminance range of 772 to 1023nit is about forty thousand. If the second luminance is taken as the luminance of the target image, the luminances of forty thousand pixels are greater than 772nit, so after the pixel compensation is performed on the target image, the luminances of forty thousand pixels are greater than the maximum luminance 1023nit, that is, forty thousand pixels in the target image are distorted and overflowed. Referring to fig. 7, another object image is shown, which includes a small number of highlighted pixels having different brightness. In the case where the threshold value of the number of pixels is 4000, the second luminance of the target image determined from another histogram shown in fig. 8 is 540nit based on the threshold value of the number of pixels. In the target image, the number of pixels in the luminance range of 540 to 1023nit is only 1. Therefore, after the pixel compensation is performed on the target image, the luminance of only 1 pixel is larger than the maximum luminance 1023nit, which can be ignored.
The embodiment of the application provides an image display method, wherein a brightness histogram is used for indicating a relation between the number of pixels in a target image and the brightness of the pixels, and a pixel number threshold is used for controlling the number of distorted pixels in the target image, so that a first brightness representing the brightness of most pixels in the target image can be determined from the brightness histogram based on the pixel number threshold, and further, when backlight brightness is determined based on the first brightness, the number of the distorted pixels in the target image cannot be different with different display images, and the number of the distorted pixels is ensured to be within a number threshold range acceptable to human eyes. Since the graph of the target image is used to indicate the correspondence between the luminance of the target image and the backlight luminance of the display screen, based on the graph and the first luminance, an appropriate backlight luminance at the time of displaying the target image can be determined, and power consumption of the display screen can be reduced compared to a case where the backlight luminance is maximized in comparison with a case where any image is displayed.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 9 is a block diagram of an image display device according to an embodiment of the present application. Referring to fig. 9, the apparatus includes: a brightness determination module 901, a backlight determination module 902 and an image display module 903.
A brightness determining module 901, configured to determine, based on a pixel number threshold, a first brightness in a brightness histogram of a target image, where the brightness histogram is used to indicate a relationship between the number of pixels in the target image and the brightness of the pixels, where the first brightness is a brightness obtained by accumulating the number of pixels in the brightness histogram according to the brightness from large to small, and the number of accumulated pixels is not less than the pixel number threshold for the first time;
a backlight determining module 902, configured to determine a first backlight brightness of the first brightness from a graph of the target image, where the graph is used to indicate a correspondence between the brightness of the target image and the backlight brightness of the display screen;
and an image display module 903, configured to display the target image through the display screen based on the first backlight brightness.
The embodiment of the application provides an image display device, because a brightness histogram is used for indicating the relation between the number of pixels in a target image and the brightness of the pixels, and a pixel number threshold is used for controlling the number of distorted pixels in the target image, based on the pixel number threshold, a first brightness representing the brightness of most pixels in the target image can be determined from the brightness histogram, and further, when backlight brightness is determined based on the first brightness, the number of distorted pixels in the target image cannot be different from one display image to another, and the number of distorted pixels is ensured to be within a number threshold range acceptable to human eyes. Since the graph of the target image is used to indicate the correspondence between the luminance of the target image and the backlight luminance of the display screen, based on the graph and the first luminance, an appropriate backlight luminance at the time of displaying the target image can be determined, and power consumption of the display screen can be reduced compared to a case where the backlight luminance is maximized in comparison with a case where any image is displayed.
In some embodiments, the image display module 903 is configured to determine a second luminance in the luminance histogram based on a threshold of the number of pixels, where the second luminance is a maximum luminance among a plurality of candidate luminances, and the number of pixels corresponding to the candidate luminances is not less than the threshold of the number of pixels; determining a second backlight brightness corresponding to the second brightness from the graph; determining an average value of the first backlight brightness and the second backlight brightness as a third backlight brightness; and displaying the target image through the display screen based on the third backlight brightness.
In some embodiments, the image display module 903 is configured to determine a second luminance in the luminance histogram based on a threshold of the number of pixels, where the second luminance is a maximum luminance among a plurality of candidate luminances, and the number of pixels corresponding to the candidate luminances is greater than the threshold of the number of pixels; an average value of the first luminance and the second luminance is determined as a third luminance; determining a fourth backlight brightness of the third brightness from the graph; and under the condition that the difference value between the fourth backlight brightness and the first backlight brightness is smaller than the difference value threshold value, displaying the target image through the display screen based on the fourth backlight brightness.
In some embodiments, fig. 10 is a block diagram of another image display device provided in an embodiment of the present application. Referring to fig. 10, the image display module 903 includes:
a luminance adjusting unit 1001 for adjusting the luminance of a pixel in the target image based on the first backlight luminance;
and an image display unit 1002, configured to display the target image through the display screen based on the first backlight brightness and the brightness of the pixel in the target image.
In some embodiments, the brightness adjusting unit 1001 is configured to determine a brightness reduction ratio of the backlight brightness of the display screen based on the first backlight brightness and the maximum backlight brightness of the display screen; determining the brightness adjustment proportion of the pixels in the target image based on the brightness reduction proportion and the brightness corresponding relation, wherein the brightness corresponding relation is used for expressing the corresponding relation between the backlight brightness of the display screen and the brightness of the pixels; and adjusting the brightness of the pixel in the target image based on the brightness adjustment proportion.
In some embodiments, the brightness adjusting unit 1002 is configured to, for any pixel, adjust the brightness of the pixel based on a brightness adjustment ratio in a case where the brightness of the pixel is not greater than a brightness threshold, where the brightness threshold is determined based on the brightness adjustment ratio.
In some embodiments, with continued reference to fig. 10, the apparatus further comprises:
a threshold determination module 904 for determining a pixel quantity threshold based on the quantity of pixels in the target image and the image type of the target image.
It should be noted that, when the device provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the terminal may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
The embodiment of the application provides a terminal, which comprises a processor and a memory; the memory stores at least one program code for execution by the processor to implement the image display method provided by the various method embodiments described above.
Fig. 11 is a block diagram of a terminal according to an embodiment of the present application. In some embodiments, the terminal 1100 is a smartphone, tablet, wearable device, or the like capable of accessing a wireless local area network as a wireless station. The terminal 1100 includes: a processor 1101, and a memory 1102.
Processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1101 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1101 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in a wake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and rendering content that the display screen needs to display. In some embodiments, the processor 1101 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1102 may include one or more computer-readable storage media, which may be non-transitory. Memory 1102 can also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1102 is used to store at least one program code for execution by the processor 1101 to implement the image display methods provided by the method embodiments of the present application.
In some embodiments, the terminal 1100 may further include: a peripheral interface 1103 and at least one peripheral. The processor 1101, memory 1102 and peripheral interface 1103 may be connected by a bus or signal lines. Various peripheral devices may be connected to the peripheral interface 1103 by buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1104, display screen 1105, camera assembly 1106, audio circuitry 1107, positioning assembly 1108, and power supply 1109.
The peripheral interface 1103 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, memory 1102, and 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 device interface 1103 can be implemented on separate chips or circuit boards, which is not limited by the present embodiment.
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 communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1104 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. 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 chipset, an object identity module card, and so forth. The radio frequency circuit 1104 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1104 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1105 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1105 is a touch display screen, the display screen 1105 also has the ability to capture touch signals on or over the surface of the display screen 1105. The touch signal may be input to the processor 1101 as a control signal for processing. At this point, the display screen 1105 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 1105 may be one, providing the front panel of terminal 1100; in other embodiments, the display screens 1105 can be at least two, respectively disposed on different surfaces of the terminal 1100 or in a folded design; in other embodiments, display 1105 may be a flexible display disposed on a curved surface or a folded surface of terminal 1100. Even further, the display screen 1105 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display screen 1105 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
Camera assembly 1106 is used to capture images or video. Optionally, camera assembly 1106 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1106 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp and can be used for light compensation under different color temperatures.
The audio circuitry 1107 may include a microphone and a speaker. The microphone is used for collecting sound waves of a subject and an environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1101 for processing or inputting the electric signals to the radio frequency circuit 1104 to achieve voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1100. The microphone may also be an array microphone or an omni-directional acquisition microphone. The speaker is used to convert electrical signals from the processor 1101 or the radio frequency circuit 1104 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1107 may also include a headphone jack.
Power supply 1108 is used to provide power to various components within terminal 1100. The power source 1108 may be alternating current, direct current, disposable or rechargeable. When the power source 1108 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
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: acceleration sensor 1110, gyro sensor 1111, pressure sensor 1112, optical sensor 1113, and proximity sensor 1114.
The acceleration sensor 1110 can detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the terminal 1100. For example, the acceleration sensor 1110 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1101 may 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 may also be used for game or user motion data acquisition.
The gyro sensor 1111 may detect the body direction and the rotation angle of the terminal 1100, and the gyro sensor 1111 may acquire the 3D motion of the user on the terminal 1100 in cooperation with the acceleration sensor 1110. From the data collected by the gyro sensor 1111, the processor 1101 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization while shooting, game control, and inertial navigation.
Pressure sensors 1112 may be disposed on side borders of terminal 1100 and/or underlying display screen 1105. When the pressure sensor 1112 is disposed on a side frame of the terminal 1100, a holding signal of the user to the terminal 1100 can be detected, and the processor 1101 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1112. When the pressure sensor 1112 is disposed at a lower layer of the display screen 1105, the processor 1101 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 1105. The operability control comprises at least one of a button control, a scroll bar control, an icon control, and a menu control.
The optical sensor 1113 is used to collect the ambient light intensity. In one embodiment, the processor 1101 may control the display brightness of the display screen 1105 according to the ambient light intensity collected by the optical sensor 1113. Optionally, when the ambient light intensity is higher, 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 reduced. In another embodiment, the processor 1101 may also dynamically adjust the shooting parameters of the camera assembly 1106 according to the ambient light intensity collected by the optical sensor 1113.
A proximity sensor 1114, also called a distance sensor, is disposed on a front panel of the terminal 1100. Proximity sensor 1114 is used to capture the distance between the user and the front face of terminal 1100. In one embodiment, when proximity sensor 1114 detects that the distance between the user and the front surface of terminal 1100 is gradually decreasing, display screen 1105 is controlled by processor 1101 to switch from a bright screen state to a dark screen state; when the proximity sensor 1114 detects that the distance between the user and the front surface of the terminal 1100 is gradually increased, the display screen 1105 is controlled by the processor 1101 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 11 does not constitute a limitation of terminal 1100, and may include more or fewer components than those shown, or may combine certain components, or may employ a different arrangement of components.
The present embodiments also provide a computer-readable storage medium, in which at least one program code is stored, and the at least one program code is loaded and executed by the processor to implement the image display method as shown in the above embodiments.
The embodiments of the present application also provide a computer program product, which includes a computer program, and the computer program is loaded and executed by a processor to implement the image display method as shown in the above embodiments.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps in the image display method implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing associated hardware to implement the steps. The present application is intended to cover various modifications, alternatives, and equivalents, which may be included within the spirit and scope of the present application.

Claims (11)

1. An image display method, characterized in that the method comprises:
determining a first brightness in a brightness histogram of the target image based on a pixel quantity threshold, wherein the brightness histogram is used for indicating the relation between the quantity of pixels in the target image and the brightness of the pixels, the first brightness is the brightness when the quantity of the pixels is accumulated in the brightness histogram from large to small according to the brightness, and the accumulated quantity of the pixels is not less than the pixel quantity threshold for the first time;
determining a first backlight brightness of the first brightness from a graph of the target image, wherein the graph is used for indicating the corresponding relation between the brightness of the target image and the backlight brightness of a display screen;
and displaying the target image through the display screen based on the first backlight brightness.
2. The method of claim 1, wherein displaying the target image through the display screen based on the first backlight brightness comprises:
determining a second brightness in the brightness histogram based on the pixel number threshold, wherein the second brightness is the maximum brightness in a plurality of candidate brightnesses, and the number of pixels corresponding to the candidate brightnesses is not less than the pixel number threshold;
determining a second backlight brightness of the second brightness from the graph;
determining an average value of the first backlight brightness and the second backlight brightness as a third backlight brightness;
and displaying the target image through the display screen based on the third backlight brightness.
3. The method of claim 1, wherein displaying the target image through the display screen based on the first backlight brightness comprises:
determining a second brightness in the brightness histogram based on the threshold of the number of pixels, where the second brightness is a maximum brightness among a plurality of candidate brightnesses, and the number of pixels corresponding to the candidate brightnesses is greater than the threshold of the number of pixels;
determining an average value of the first luminance and the second luminance as a third luminance;
determining a fourth backlight luminance of the third luminance from the graph;
and displaying the target image through the display screen based on the fourth backlight brightness under the condition that the difference value between the fourth backlight brightness and the first backlight brightness is smaller than a difference value threshold value.
4. The method of claim 1, wherein the displaying the target image through the display screen based on the first backlight brightness comprises:
adjusting the brightness of pixels in the target image based on the first backlight brightness;
and displaying the target image through the display screen based on the first backlight brightness and the brightness of the pixels in the target image.
5. The method of claim 4, wherein adjusting the brightness of the pixel in the target image based on the first backlight brightness comprises:
determining a brightness reduction ratio of the backlight brightness of the display screen based on the first backlight brightness and the maximum backlight brightness of the display screen;
determining the brightness adjustment proportion of the pixels in the target image based on the brightness reduction proportion and the brightness corresponding relation, wherein the brightness corresponding relation is used for representing the corresponding relation between the backlight brightness of the display screen and the brightness of the pixels;
and adjusting the brightness of the pixels in the target image based on the brightness adjustment proportion.
6. The method of claim 5, wherein adjusting the brightness of the pixel in the target image based on the brightness adjustment scale comprises:
for any pixel, in the case where the luminance of the pixel is not greater than a luminance threshold value, the luminance of the pixel is adjusted based on the luminance adjustment ratio, the luminance threshold value being determined based on the luminance adjustment ratio.
7. The method of claim 1, wherein prior to determining the first luminance in the luminance histogram of the target image based on a pixel number threshold for controlling a number of distorted pixels in the target image, the method further comprises:
determining the pixel quantity threshold based on the quantity of pixels in the target image and the image type of the target image.
8. An image display apparatus, characterized in that the apparatus comprises:
the brightness determining module is used for determining first brightness in a brightness histogram of the target image based on a pixel number threshold, wherein the brightness histogram is used for indicating the relation between the number of pixels in the target image and the brightness of the pixels, the first brightness is the brightness when the pixel number is accumulated in the brightness histogram from large to small according to the brightness, and the accumulated pixel number is not less than the pixel number threshold for the first time;
the backlight determination module is used for determining first backlight brightness of the first brightness from a graph of the target image, wherein the graph is used for indicating the corresponding relation between the brightness of the target image and the backlight brightness of a display screen;
and the image display module is used for displaying the target image through the display screen based on the first backlight brightness.
9. A terminal, characterized in that the terminal comprises a processor and a memory; the memory stores at least one program code for execution by the processor to implement the image display method of any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the storage medium stores at least one program code for execution by a processor to implement the image display method according to any one of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that the computer program product has stored at least one program code for execution by a processor for implementing an image display method as claimed in any one of claims 1 to 7.
CN202211486028.1A 2022-11-24 2022-11-24 Image display method, device, terminal and storage medium Pending CN115798418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211486028.1A CN115798418A (en) 2022-11-24 2022-11-24 Image display method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211486028.1A CN115798418A (en) 2022-11-24 2022-11-24 Image display method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN115798418A true CN115798418A (en) 2023-03-14

Family

ID=85441255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211486028.1A Pending CN115798418A (en) 2022-11-24 2022-11-24 Image display method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115798418A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116912606A (en) * 2023-09-14 2023-10-20 网思科技股份有限公司 Tea cake damp analysis method and device based on convolutional neural network and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116912606A (en) * 2023-09-14 2023-10-20 网思科技股份有限公司 Tea cake damp analysis method and device based on convolutional neural network and storage medium
CN116912606B (en) * 2023-09-14 2024-01-05 网思科技股份有限公司 Tea cake damp analysis method and device based on convolutional neural network and storage medium

Similar Documents

Publication Publication Date Title
CN109712224B (en) Virtual scene rendering method and device and intelligent device
CN111372126B (en) Video playing method, device and storage medium
CN109191549B (en) Method and device for displaying animation
CN109829864B (en) Image processing method, device, equipment and storage medium
CN108449641B (en) Method, device, computer equipment and storage medium for playing media stream
CN110602321A (en) Application program switching method and device, electronic device and storage medium
CN109948581B (en) Image-text rendering method, device, equipment and readable storage medium
CN110839174A (en) Image processing method and device, computer equipment and storage medium
CN108845777B (en) Method and device for playing frame animation
CN111182236A (en) Image synthesis method and device, storage medium and terminal equipment
CN113038165A (en) Method, apparatus and storage medium for determining a set of coding parameters
CN109636715B (en) Image data transmission method, device and storage medium
CN111353946B (en) Image restoration method, device, equipment and storage medium
CN110619614A (en) Image processing method and device, computer equipment and storage medium
CN110769120A (en) Method, device, equipment and storage medium for message reminding
CN115798418A (en) Image display method, device, terminal and storage medium
CN111275607B (en) Interface display method and device, computer equipment and storage medium
CN115798417A (en) Backlight brightness determination method, device, equipment and computer readable storage medium
CN111860064A (en) Target detection method, device and equipment based on video and storage medium
CN114594885A (en) Application icon management method, device and equipment and computer readable storage medium
CN112260845B (en) Method and device for accelerating data transmission
CN107992230B (en) Image processing method, device and storage medium
CN112560903A (en) Method, device and equipment for determining image aesthetic information and storage medium
CN112489006A (en) Image processing method, image processing device, storage medium and terminal
CN111464829A (en) Method, device and equipment for switching media data and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination