Backlight adjusting method and device, terminal and storage medium

By upsampling the target image of the LCD display using curves and brightness histograms, and adjusting the backlight brightness to match the image requirements, the problem of power waste in LCD displays is solved, achieving more efficient energy use and display effects.

CN115713919BActive Publication Date: 2026-01-02BEIJING ESWIN COMPUTING TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211486518.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-24
Publication Date
2026-01-02
Estimated Expiration
2042-11-24

AI Technical Summary

Technical Problem

In current technology, the backlight is always turned on at maximum brightness in LCD displays, regardless of what image is being displayed, resulting in wasted power consumption and poor display quality.

Method used

By acquiring the first curve and brightness histogram of the target image, upsampling is performed based on neutral gray, and the backlight brightness of the display screen is adjusted to match the image brightness requirements.

Benefits of technology

Accurately adjusting backlight brightness reduces power consumption and improves display quality, avoiding unnecessary energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115713919B_ABST
    Figure CN115713919B_ABST
Patent Text Reader

Abstract

The application provides a backlight adjustment method and device, a terminal and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: acquiring a target image, a first curve diagram of the target image and a first brightness histogram of the target image; based on the neutral gray of the target image, the first curve diagram and the first brightness histogram are respectively up-sampled to obtain a second curve diagram and a second brightness histogram; and based on the second curve diagram and the second brightness histogram, the backlight brightness of a display screen is adjusted. The above technical solution can accurately determine the appropriate backlight brightness when displaying a target image, thereby adjusting the backlight brightness of the display screen when displaying the target image. Compared with the case where the backlight brightness is adjusted to the maximum when displaying any image, the power consumption can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to a backlight adjusting 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 displaying images through liquid crystal displays. When displaying images through liquid crystal displays, since liquid crystals do not emit light by themselves, the backlight of the liquid crystal display needs to be turned on to display images. In the traditional liquid crystal display technology, no matter what image is displayed, the backlight of the liquid crystal display is turned on to the maximum brightness. In the case of displaying an image with only a few highlights, it will cause a waste of power consumption. SUMMARY

[0003] Embodiments of the present application provide a backlight adjusting method and device, a terminal and a storage medium, which can accurately determine the appropriate backlight brightness when displaying a target image, so as to adjust the backlight brightness of the display screen when displaying the target image, thereby reducing power consumption compared to the case of adjusting the backlight brightness to the maximum when displaying any image. The technical solution is as follows:

[0004] In one aspect, a backlight adjusting method is provided, and the method comprises:

[0005] obtaining a target image, a first curve graph of the target image and a first brightness histogram of the target image, the first curve graph being used to indicate the corresponding relationship between the brightness of the target image and the backlight brightness of the display screen, and the first brightness histogram being used to indicate the relationship between the number of pixels and the brightness of the pixels in the target image;

[0006] based on the neutral gray of the target image, respectively upsampling the first curve graph and the first brightness histogram to obtain a second curve graph and a second brightness histogram;

[0007] based on the second curve graph and the second brightness histogram, adjusting the backlight brightness of the display screen.

[0008] In another aspect, a backlight adjusting device is provided, and the device comprises:

[0009] a first obtaining module, configured to obtain a target image, a first curve graph of the target image and a first brightness histogram of the target image, the first curve graph being used to indicate the corresponding relationship between the brightness of the target image and the backlight brightness of the display screen, and the first brightness histogram being used to indicate the relationship between the number of pixels and the brightness of the pixels in the target image;

[0010] The first sampling module is configured to sample the first curve diagram and the first brightness histogram based on the neutral gray of the target image to obtain a second curve diagram and a second brightness histogram.

[0011] The first adjusting module is configured to adjust the backlight brightness of the display screen based on the second curve diagram and the second brightness histogram.

[0012] In some embodiments, the first sampling module is configured to divide the first curve diagram into two curve regions and divide the first brightness histogram into two histogram regions based on the neutral gray of the target image; and sample the two curve regions at different scales to obtain the second curve diagram and sample the two histogram regions at different scales to obtain the second brightness histogram.

[0013] In some embodiments, the apparatus further comprises:

[0014] The first determining module is configured to determine a scale of sampling for any curve region of the two curve regions based on a size relationship between the neutral gray and the brightness of the image in the curve region.

[0015] The second determining module is configured to determine a scale of sampling for any histogram region of the two histogram regions based on a size relationship between the neutral gray and the brightness of the pixel in the histogram region.

[0016] In some embodiments, the first adjusting module comprises:

[0017] The first determining unit is configured to determine a target brightness of the target image based on the second brightness histogram and the neutral gray.

[0018] The second determining unit is configured to determine a target backlight brightness corresponding to the target brightness from the second curve diagram.

[0019] The adjusting unit is configured to adjust the backlight brightness of the display screen to the target backlight brightness.

[0020] In some embodiments, the first determining unit is configured to determine a plurality of first candidate brightnesses based on the second brightness histogram, the number of pixels corresponding to the first candidate brightnesses being greater than a number threshold; determine a maximum brightness of the plurality of first candidate brightnesses as a second candidate brightness; and in a case where the second candidate brightness is less than the neutral gray, determine the second candidate brightness as the target brightness of the target image.

[0021] In some embodiments, the apparatus further comprises:

[0022] The third determining module is configured to determine a maximum brightness in a brightness group to which the second candidate brightness belongs as the target brightness of the target image, in a case where the second candidate brightness is not less than the neutral gray.

[0023] In some embodiments, the apparatus further includes:

[0024] The second obtaining module is configured to obtain the target image, a third curve diagram of the target image, and a third brightness histogram of the target image, the third curve diagram being used to indicate a corresponding relationship between brightness of the target image and backlight brightness of the display screen, and the third brightness histogram being used to indicate a relationship between a number of pixels and brightness of the pixels in the target image.

[0025] The second sampling module is configured to sample down the third curve diagram and the third brightness histogram based on the neutral gray, to obtain the first curve diagram and the first brightness histogram.

[0026] The storage module is configured to store the target image, the first curve diagram of the target image, and the first brightness histogram of the target image.

[0027] In some embodiments, the apparatus further includes:

[0028] The second adjusting module is configured to adjust brightness of the pixels in the target image based on the backlight brightness of the display screen.

[0029] The display module is configured to display the target image based on the brightness of the pixels in the target image and the backlight brightness of the display screen.

[0030] In another aspect, a terminal is provided, which includes a processor and a memory, the memory being configured to store at least one piece of computer program, the at least one piece of computer program being loaded and executed by the processor to implement the backlight adjustment method in the embodiments of the present application.

[0031] In another aspect, a computer readable storage medium is provided, which stores at least one piece of computer program, the at least one piece of computer program being loaded and executed by a processor to implement the backlight adjustment method in the embodiments of the present application.

[0032] In another aspect, a computer program product is provided, which includes a computer program, the computer program being executed by a processor to implement the backlight adjustment method provided in the embodiments of the present application.

[0033] The embodiment of the present application provides a backlight adjusting method, which can expand the first luminance histogram and the first curve diagram based on the luminance of pixels in the image by up-sampling the first curve diagram and the first luminance histogram of the target image based on the neutral gray of the target image, and obtain the second curve diagram and the second luminance histogram with more sampling points. Since the luminance histogram is used for indicating the relationship between the number of pixels in the target image and the luminance of the pixels, and the curve diagram is used for indicating the corresponding relationship between the luminance of the target image and the backlight luminance, therefore, the appropriate backlight luminance when displaying the target image can be determined based on the rich sampling points in the second luminance histogram and the second curve diagram, so that the backlight luminance when the display displays the target image is adjusted, and compared with the case that the backlight luminance is adjusted to the maximum when displaying any image, the power consumption can be reduced. BRIEF DESCRIPTION OF DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used 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.

[0035] Figure 1 It is an implementation environment schematic diagram of a backlight adjusting method provided by the embodiment of the present application;

[0036] Figure 2 It is a flowchart of a backlight adjusting method provided by the embodiment of the present application;

[0037] Figure 3 It is a flowchart of another backlight adjusting method provided by the embodiment of the present application;

[0038] Figure 4 It is a schematic diagram of a target image provided by the embodiment of the present application;

[0039] Figure 5 It is a schematic diagram of a third curve diagram of a target image provided by the embodiment of the present application;

[0040] Figure 6 It is a schematic diagram of a first curve diagram obtained by down-sampling the third curve diagram provided by the embodiment of the present application;

[0041] Figure 7 It is a schematic diagram of a third luminance histogram of a target image provided by the embodiment of the present application;

[0042] Figure 8 It is a schematic diagram of a first luminance histogram obtained by down-sampling the third luminance histogram provided by the embodiment of the present application;

[0043] Figure 9 is a schematic diagram for determining target backlight brightness based on target brightness according to an embodiment of the present application;

[0044] Figure 10 is a block diagram of a backlight adjustment device according to an embodiment of the present application;

[0045] Figure 11 is a block diagram of another backlight adjustment device according to an embodiment of the present application;

[0046] Figure 12 is a structural schematic diagram of a terminal according to an embodiment of the present application. DETAILED DESCRIPTION

[0047] 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.

[0048] The terms "first", "second", and the like as used herein can be used 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 concept. For example, a first brightness histogram can be referred to as a second brightness histogram without departing from the scope of the present application, and similarly, a second brightness histogram can be referred to as a first brightness histogram.

[0049] Wherein, at least one refers to one or more than one, for example, at least one second brightness can be one second brightness, two second brightness, three second brightness, or any integer greater than or equal to one second brightness. Multiple refers to two or more than two, for example, multiple second brightness can be two second brightness, three second brightness, or any integer greater than or equal to two second brightness. Each refers to each of at least one, for example, each second brightness refers to each of the multiple second brightness, if the multiple second brightness is 3 second brightness, each second brightness refers to each of the 3 second brightness.

[0050] The term "at least one" in the present application refers to one or more, and the meaning of "multiple" refers to two or more. 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, the curve diagram of the target image and the brightness histogram of the target image involved in the present application are obtained under sufficient authorization.

[0051] The backlight adjustment method provided in this application embodiment can be executed by a terminal. Figure 1 This is a schematic diagram illustrating the implementation environment of a backlight adjustment method according to an embodiment of this application. See also... Figure 1 The implementation environment includes terminal 101 and server 102.

[0052] Terminal 101 can be at least one of the following devices: LCD monitor, smartphone, smartwatch, desktop computer, laptop, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), and laptop computer. An application can be installed and run on terminal 101 to display the target image. Users can log in to the application through terminal 101 to view the target image. Terminal 101 can be connected to server 102 via a wireless network or wired network.

[0053] Terminal 101 can refer to one of multiple terminals; this embodiment uses terminal 101 as an example. Those skilled in the art will understand that the number of terminals can be more or less. For example, there may be several terminals, or dozens or hundreds, or even more. This embodiment does not limit the number of terminals or the type of devices. The application is associated with server 102, which provides background services.

[0054] 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 first curve diagram of the target image, and the first 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. The TCON 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) processor of the terminal. Or, after receiving 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 external server processes the first curve diagram of the target image and the first brightness histogram of the target image based on the backlight adjustment method provided in the embodiments of the present application, and determines the backlight brightness of the display screen when displaying the target image. The embodiments of the present application do not limit this.

[0055] 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.

[0056] Figure 2 is a flowchart of a backlight adjustment method according to an embodiment of the present application, as shown in Figure 2It is shown that the terminal is taken as an example in the embodiments of the present application. The method comprises the following steps:

[0057] 201. The terminal acquires a target image, a first curve diagram of the target image, and a first brightness histogram of the target image. The first curve diagram is used to indicate the corresponding relationship between the brightness of the target image and the backlight brightness of the display screen. The first brightness histogram is used to indicate the relationship between the number of pixels in the target image and the brightness of the pixels.

[0058] In the embodiments of the present application, the terminal is a device with a display screen, such as a mobile phone, a desktop computer, a notebook computer, a smart television, etc. 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. Since the display screen will always turn the backlight to the maximum when displaying any image, it causes waste of power consumption and makes the display effect of some images not good. Therefore, the terminal needs to adjust the backlight of the display screen when displaying the image. In the embodiments of the present application, the terminal can acquire the target image, the first curve diagram of the target image, and the first brightness histogram from the local storage or the server.

[0059] Since the display screen itself does not emit light, the terminal needs to turn on the backlight of the display screen to display the image. The target image contains a plurality of pixels, and the brightness of different pixels is different. In the first brightness histogram, the abscissa is the brightness of the pixels of the target image, and the ordinate is the number of the pixels of the target image. In the first curve diagram, the abscissa is the brightness of the target image, and the ordinate is the backlight brightness of the display screen. In the related technology, the abscissa of the curve diagram represents the highest brightness of the pixels in the corresponding image, while in the embodiments of the present application, the brightness of the target image is one of the brightness 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 value of the preset threshold can be 80%, 70% or 60% of the total number of pixels in the target image, and the embodiments of the present application do not limit the value of the preset threshold. Since the first curve diagram and the first brightness histogram can reflect the relationship between the pixel brightness, the target image brightness and the display screen backlight brightness, the terminal adjusts the backlight brightness based on the pixel brightness and the image brightness by processing the first curve diagram and the first brightness histogram. By acquiring the target image, the first curve diagram of the target image and the first brightness histogram, the first curve diagram and the first brightness histogram can be processed, and then the backlight adjustment is realized.

[0060] 202. The terminal respectively up-samples the first curve diagram and the first brightness histogram based on the neutral gray of the target image, to obtain a second curve diagram and a second brightness histogram.

[0061] In the embodiments of the present application, taking a target image of 10 bits as an example, for the target image of 10 bits, the neutral gray of the target image is 512 nit. Since the first curve graph and the first luminance histogram have different change trends below the neutral gray and above the neutral gray, the terminal can perform upsampling on the first curve graph and the first luminance histogram based on the neutral gray of the target image, and insert sampling points in the first curve graph and the first luminance histogram respectively to obtain a second curve graph and a second luminance histogram. For the first curve graph, the inserted sampling points can indicate the luminance of the image and the backlight luminance of the display screen; for the first luminance histogram, the inserted sampling points can indicate the luminance of the pixels of the target image and the number of the pixels. By upsampling the first curve graph and the first luminance histogram, the number of sampling points in the first curve graph and the first luminance histogram can be increased. By upsampling the first curve graph and the first luminance histogram based on the neutral gray, the second curve graph and the second luminance histogram with rich sampling points are obtained.

[0062] 203、The terminal adjusts the backlight luminance of the display screen based on the second curve graph and the second luminance histogram.

[0063] In the embodiments of the present application, based on the corresponding relationship between the number of the pixels and the luminance of the pixels in the target image indicated by the second luminance histogram, the terminal determines a luminance from the second luminance histogram through the number of the pixels in the target image. Then, based on the corresponding relationship between the luminance of the target image and the backlight luminance of the display screen indicated by the second curve graph, the terminal determines the backlight luminance of the display screen corresponding to the luminance from the second curve graph, so as to determine the appropriate backlight luminance when displaying the target image. The terminal adjusts the backlight luminance of the display screen to display the target image.

[0064] The embodiments of the present application provide a backlight adjustment method. By upsampling the first curve graph and the first luminance histogram of the target image based on the neutral gray of the target image, the first luminance histogram and the first curve graph can be expanded more accurately based on the luminance of the pixels in the image, and the second curve graph and the second luminance histogram with more sampling points are obtained. Since the luminance histogram is used to indicate the relationship between the number of the pixels and the luminance of the pixels in the target image, and the curve graph is used to indicate the corresponding relationship between the luminance of the target image and the backlight luminance, the appropriate backlight luminance when displaying the target image can be determined more accurately based on the rich sampling points in the second luminance histogram and the second curve graph, so as to adjust the backlight luminance of the display screen when displaying the target image. Compared with the case that the backlight luminance is adjusted to the maximum when displaying any image, the power consumption can be reduced.

[0065] Figure 3 is a flowchart of another backlight adjustment method according to the embodiments of the present application, as shown in Figure 3As shown, in the embodiments of the present application, the terminal is taken as an example for illustration. The method comprises the following steps:

[0066] 301. The terminal acquires a target image, a third curve diagram of the target image, and a third brightness histogram of the target image, the third curve diagram being used to indicate the corresponding relationship between the brightness of the target image and the backlight brightness of the display screen, and the third brightness histogram being used to indicate the relationship between the number of pixels and the brightness of the pixels in the target image.

[0067] In the embodiments of the present application, the target image can be an image to be displayed, or any frame image in a video to be displayed. The terminal can lower the backlight brightness of the display screen to a proper backlight brightness based on the target image, the third curve diagram of the target image, and the third brightness histogram acquired from the server, so as to save power consumption. Wherein, the uncompressed processing means that the initial sampling points are retained, and correspondingly, the number of sampling points will be reduced after the compression processing (such as the sampling processing).

[0068] For example, Figure 4 is a schematic diagram of a target image according to the embodiments of the present application. As shown in Figure 4 Since only part of the pixels in the target image have large brightness, the backlight brightness of the display screen will be turned to the maximum when the target image is displayed, which will cause power consumption waste.

[0069] In some embodiments, the terminal can directly adjust the backlight brightness of the display screen when displaying the target image based on the third curve diagram and the third brightness histogram, without performing the following steps 302 to 310. Correspondingly, the terminal determines a brightness from the third brightness histogram. Then, the terminal determines the backlight brightness of the display screen corresponding to the brightness from the third curve diagram. Then, the terminal adjusts the backlight brightness of the display screen to display the target image.

[0070] It should be noted that since the third curve diagram is not subjected to the compression processing, the third brightness histogram is also not subjected to the compression processing. The sampling points in the third curve diagram can indicate the brightness of the target image corresponding to the sampling points and the backlight brightness of the display screen corresponding to the sampling points, and the sampling points in the third brightness histogram can indicate the brightness of the pixels corresponding to the sampling points and the number of the pixels corresponding to the sampling points. The storage space occupied by the third curve diagram and the third brightness histogram is large, and the terminal can perform the compression processing on the third curve diagram and the third brightness histogram by performing the following steps 302 and 303, and the embodiments of the present application take the downsampling of the third curve diagram and the third brightness histogram as an example for illustration, so as to reduce the storage space occupied by the third curve diagram and the third brightness histogram.

[0071] It should be noted that the sampling manner of the third curve diagram and the sampling manner of the third luminance histogram can be consistent or inconsistent when the terminal performs the step 302 and the step 303, that is, when the third curve diagram and the third luminance histogram are respectively down-sampled. The sampling manner can be that the sampling points of the abscissa of the third curve diagram and the abscissa of the third luminance histogram are merged. When the sampling manner is consistent, that is, when the abscissa of the third curve diagram and the abscissa of the third luminance histogram are merged, the number of the merged sampling points is the same.

[0072] 302. The terminal down-samples the third curve diagram and the third luminance histogram based on the neutral gray, to obtain a first curve diagram and a first luminance histogram.

[0073] In the embodiment of the present application, the terminal can determine whether the target image is a bright-state image or a dark-state image based on the neutral gray of the target image. Taking the luminance range of the pixels in the target image as an example, the neutral gray of the target image is 512 nit. The bright-state image refers to an image in which most of the pixels are greater than 512 nit, and the dark-state image refers to an image in which most of the pixels are less than 512 nit. Since the sensitivity of the human eye to different luminances is different, and according to the characteristics that the dark-state part of the curve diagram is very steep and the bright-state part is very gentle, the terminal can down-sample the third curve diagram and the third luminance histogram based on the neutral gray, to obtain a first curve diagram and a first luminance histogram. By down-sampling the third curve diagram and the third luminance histogram based on the neutral gray, the first curve diagram and the first luminance histogram are obtained, so that the occupied storage space is reduced.

[0074] In some embodiments, since the curve trend of the part of the third curve diagram that is lower than the neutral gray is steep, the difference in the backlight luminance of the display screen is large, the influence on the display effect is large, and the human eye is easy to perceive; the curve trend of the part that is higher than the neutral gray is gentle, the difference in the backlight luminance of the display screen is small, the influence on the display effect is small, and the human eye is not easy to perceive. Accordingly, the terminal can divide the third curve diagram into two curve regions based on the neutral gray. Then, for any curve region, the terminal determines the proportion of down-sampling of the curve region based on the size relationship between the neutral gray and the luminance of the image in the curve region. Then, the terminal down-samples the two curve regions at different proportions based on the down-sampling proportions of the two curve regions, to obtain a first curve diagram. By dividing the third curve diagram into two curve regions based on the neutral gray and down-sampling the two curve regions at different proportions to obtain the first curve diagram, the compression of the third curve diagram is realized, so that the occupied storage space is reduced.

[0075] For example, Figure 5 is a schematic diagram of a third curve diagram of a target image according to an embodiment of the present application. As shown in FIG. 3, the third curve diagram is divided into two curve regions based on the neutral gray, and the two curve regions are down-sampled at different proportions, to obtain a first curve diagram. Figure 5As shown, the third curve diagram includes 2 10 sample points. The abscissa of the sample points in the third curve diagram is 0-1023 nit. The abscissa is used to indicate the luminance of the target image corresponding to the 1024 sample points, and the ordinate is used to indicate the backlight luminance of the display screen corresponding to the luminance of the target image. For the curve region of the target image luminance less than the neutral gray indicated by the abscissa, the terminal down-samples the curve region with a down-sampling interval of 8, that is, in the curve region, the luminance of every adjacent 8 target images on the abscissa is combined into the same group; for the curve region of the target image luminance not less than the neutral gray indicated by the abscissa, the terminal down-samples the curve region with a down-sampling interval of 32, that is, in the curve region, the luminance of every adjacent 32 target images on the abscissa is combined into the same group. For example, 0-7 nit is the first group, and the group number is 1; 8 nit-15 nit is the second group, and the group number is 2; 16 nit-23 nit is the third group, and the group number is 3. The terminal can take the group number of each group as the abscissa of the luminance group, and take the backlight luminance of the display screen corresponding to the maximum luminance in the luminance range of the luminance group as the ordinate of the luminance group. Assuming that the luminance of a target image on the abscissa in the third curve diagram is 42 nit, which belongs to the sixth group in the curve region with the luminance less than the neutral gray, that is, the luminance of the target image is within the luminance range 40 nit-47 nit of the combined luminance group, the terminal accumulates the luminance of the target image to the sixth group. The abscissa of the sixth group is 6, and the ordinate is the backlight luminance of the display screen corresponding to 47 nit. By analogy, the first curve diagram as shown in Figure 6 is obtained. Figure 6 is a schematic diagram of a first curve diagram obtained by down-sampling a third curve diagram according to an embodiment of the present application. As shown in Figure 6 , by down-sampling the two curve regions of the third curve diagram with different sampling ratios, the first curve diagram after down-sampling can be obtained, and the storage space occupied by the first curve diagram is smaller than that of the third curve diagram.

[0076] In some embodiments, the terminal can take the maximum luminance in the luminance range of the luminance group as the abscissa of the luminance group, and take the backlight luminance of the display screen corresponding to the maximum luminance as the ordinate of the luminance group. For example, for the sixth group after grouping described above, the luminance range corresponding to the sixth group is 40 nit-47 nit. Then the terminal can take 47 nit as the abscissa of the sixth group, and take the backlight luminance of the display screen corresponding to 47 nit as the ordinate of the sixth group.

[0077] In some embodiments, since the histogram change trend of the part of the third luminance histogram below the neutral gray is steep, and the histogram change trend of the part of the third luminance histogram above the neutral gray is slow. Therefore, the terminal can down-sample the third luminance histogram based on the neutral gray. Accordingly, the terminal can divide the third luminance histogram into two histogram regions based on the neutral gray. Then, for any histogram region, the terminal determines the proportion of down-sampling of the histogram region based on the size relationship between the neutral gray and the luminance of the pixels in the histogram region. Then, the terminal down-samples the two histogram regions at different proportions based on the down-sampling proportions of the two histogram regions, to obtain the first luminance histogram. By dividing the third luminance histogram into two histogram regions based on the neutral gray, and down-sampling the two histogram regions at different proportions to obtain the first luminance histogram, the compression of the third luminance histogram is realized, so that the storage space occupied is reduced.

[0078] For example, Figure 7 is a schematic diagram of a third luminance histogram of a target image according to an embodiment of the present application. As shown in Figure 7 , the third luminance histogram includes 2 10 sampling points. The abscissa of the sampling points in the third luminance histogram is 0-1023 nit. The abscissa is used to indicate the luminance of the pixels of the target image corresponding to the 1024 sampling points, and the ordinate is used to indicate the number of pixels corresponding to the luminance of the pixels of the target image. For the histogram region where the pixel luminance represented by the abscissa is less than the neutral gray, the terminal down-samples the histogram region with a down-sampling interval of 1, that is, in the histogram region, every adjacent 1 luminance on the abscissa is combined into the same group; for the histogram region where the pixel luminance represented by the abscissa is not less than the neutral gray, the terminal down-samples the histogram region with a down-sampling interval of 16, that is, in the histogram region, every 16 luminance on the abscissa is combined into the same group. For example, 1 nit is the first group, and the group number is 1; 2 nit is the second group, and the group number is 2; 3 nit is the third group, and the group number is 3. The terminal takes the group number of each group as the abscissa of the luminance group, and takes the number of pixels in the luminance range of the luminance group as the ordinate of the luminance group. Assuming that the luminance of any pixel in the target image is 522 nit, which belongs to the first group in the histogram region where the abscissa is not less than the neutral gray, that is, the luminance of the pixel is in the luminance range 512 nit-527 nit corresponding to the combined luminance group, then the luminance of the pixel is accumulated to the first group, and the number of pixels in the first group is added by 1. In this way, the first luminance histogram as shown in Figure 8 is obtained. Figure 8 is a schematic diagram of a first luminance histogram obtained by down-sampling a third luminance histogram according to an embodiment of the present application. As shown in Figure 8As shown, the first luminance histogram is obtained by downsampling the two histogram regions of the third luminance histogram with different sampling ratios, and the first luminance histogram occupies less storage space than the third luminance histogram.

[0079] In some embodiments, the terminal can take the maximum luminance in the luminance range of a luminance group as the abscissa of the luminance group, and take the number of pixels in the luminance range as the ordinate of the luminance group. For example, for a first group in the histogram region with abscissa no less than neutral gray, the luminance range of the luminance group is 512 nit-527 nit. The terminal can take 527 nit as the abscissa of the luminance group, and take the number of pixels in the luminance range of 512 nit-527 nit as the ordinate of the luminance group.

[0080] 303、The terminal stores the target image, the first curve diagram of the target image, and the first luminance histogram of the target image.

[0081] In the embodiments of the present application, the terminal stores the target image, the first curve diagram of the target image, and the first luminance histogram of the target image, to prepare for subsequent display of the target image. Since the first curve diagram and the first luminance histogram are obtained by downsampling, the storage space occupied is reduced.

[0082] Taking a target image with a pixel resolution of 1080*1920 and a luminance range of 10 bits, i.e., 0-1023 nit, as an example, the terminal can calculate the storage space occupied by the first curve diagram by using the following formula (1).

[0083]

[0084] In the formula, size1 represents the storage space occupied by the first curve diagram, 4port (port) represents that 4 pixels can be processed in parallel, and port represents R (Red), G (Green), and B (Blue) three channels of each pixel.

[0085] The terminal can calculate the storage space occupied by the first luminance histogram by using the following formula (2).

[0086]

[0087] In the formula, size2 represents the storage space occupied by the first luminance histogram, 4port (port) represents that 4 pixels can be processed in parallel, and port represents R (Red), G (Green), and B (Blue) three channels of each pixel.

[0088] The storage space occupied by the first curve graph and the first brightness histogram can be calculated by the following formula (3).

[0089] size3 = size1 + size2 = 5696 bits (3)

[0090] size3 represents the storage space occupied by the first curve graph and the first brightness histogram; size1 represents the storage space occupied by the first curve graph; and size2 represents the storage space occupied by the first brightness histogram.

[0091] Compared with storing the third curve graph and the third brightness histogram without down-sampling, the terminal can reduce the storage space of 13760 bits by storing the first curve graph and the first brightness histogram.

[0092] 304. The terminal acquires a target image, a first curve graph of the target image, and a first brightness histogram of the target image, the first curve graph being used to indicate a corresponding relationship between brightness of the target image and backlight brightness of the display screen, and the first brightness histogram being used to indicate a relationship between a number of pixels in the target image and brightness of the pixels.

[0093] In the embodiments of the present application, the terminal can acquire the target image, the first curve graph of the target image, and the first brightness histogram of the target image from a local storage or a server. By acquiring the target image, the first curve graph of the target image, and the first brightness histogram of the target image, the first curve graph and the first brightness histogram can be processed, and then backlight adjustment can be realized.

[0094] In some embodiments, the terminal can acquire the target image, the first curve graph of the target image, and the first brightness histogram of the target image from the local storage based on a preloading instruction for the target image. Accordingly, the terminal can trigger the preloading instruction for the target object when displaying a previous frame of image of the target image, or can trigger the preloading instruction for the target object when displaying N frames of image of the target image. N is an integer greater than 2.

[0095] In some embodiments, the terminal acquires the target image, the first curve graph of the target image, and the first brightness histogram of the target image from the server. Accordingly, the terminal can not perform the steps 301 to 304.

[0096] It should be noted that after the terminal obtains the target image, the first curve diagram of the target image and the first brightness histogram of the target image, the terminal can respectively perform upsampling on the first curve diagram and the first brightness histogram, see steps 305 to 307, and then perform backlight adjustment based on the upsampled curve diagram and brightness histogram. Alternatively, the terminal can also not perform upsampling on the first brightness histogram, only perform step 306, not perform step 307, and then perform backlight adjustment based on the first brightness histogram and the upsampled curve diagram.

[0097] 305. The terminal divides the first curve diagram into two curve regions and divides the first brightness histogram into two histogram regions based on the neutral gray of the target image.

[0098] In the embodiment of the present application, since the first curve diagram and the first brightness histogram have different change trends below the neutral gray and above the neutral gray, the terminal can divide the first curve diagram into two curve regions and divide the first brightness histogram into two histogram regions based on the neutral gray of the target image. By dividing the first curve diagram and the first brightness histogram based on the neutral gray, different regions can be processed differently.

[0099] It should be noted that the terminal can perform step 307 to upsample the first brightness histogram, or can not perform step 307 and only perform step 306 to upsample the first curve diagram. If the terminal does not upsample the first brightness histogram and only upsample the first curve diagram, the terminal can directly determine the target brightness from the first brightness histogram. Then, the terminal determines the target backlight brightness corresponding to the target brightness from the upsampled curve diagram, thereby realizing backlight adjustment.

[0100] 306. The terminal respectively performs different proportions of upsampling on the two curve regions to obtain a second curve diagram.

[0101] In the embodiment of the present application, since the change speeds of the curves in the two curve regions of the first curve diagram are different, in order to restore the first curve diagram as much as possible to the third curve diagram described above Figure 1 , the terminal can perform different proportions of upsampling on the two curve regions. Correspondingly, the terminal respectively performs different proportions of upsampling on the two curve regions to obtain a second curve diagram. By respectively performing different proportions of upsampling on the two curve regions, a second curve diagram with rich sampling points is obtained.

[0102] For example, the terminal divides the first curve graph into two curve regions based on the neutral gray 512 nit. For the curve region in which the luminance of the target image represented by the abscissa is less than 512 nit, 7 luminances are inserted between the adjacent two luminances in the curve region; for the curve region in which the luminance of the target image represented by the abscissa is not less than 512 nit, 31 luminances are inserted between the adjacent two luminances in the curve region. For example, when the adjacent two luminances are 0 and 8 nit, 7 luminances are inserted between 0-8 nit at equal intervals: 1 nit, 2 nit, 3 nit, 4 nit, 5 nit, 6 nit and 7 nit.

[0103] 307. The terminal respectively performs different proportion up-sampling on the two histogram regions to obtain a second luminance histogram.

[0104] In the embodiment of the present application, because the change speeds of the curves in the two curve regions of the first curve graph are different, and the curve regions correspond to the histogram regions, the terminal respectively performs different proportion up-sampling on the two histogram regions based on the histogram regions corresponding to different curve regions. By respectively performing different proportion up-sampling on the two histogram regions, the second luminance histogram with rich sampling points is obtained.

[0105] For example, the terminal divides the first luminance histogram into two histogram regions based on the neutral gray 512 nit. For the histogram region in which the luminance of the pixel represented by the abscissa is less than 512 nit, the terminal does not insert luminance in the histogram region; for the histogram region in which the luminance of the pixel represented by the abscissa is not less than 512 nit, 15 luminances are inserted between the adjacent two luminances in the histogram region. For example, when the adjacent two luminances are 512 nit and 528 nit, 15 luminances are inserted between 512 nit-528 nit at equal intervals: 513 nit, 514 nit, 515 nit, 516 nit, 517 nit, 518 nit, 519 nit, 520 nit, 521 nit, 522 nit, 523 nit, 524 nit, 525 nit, 526 nit and 527 nit.

[0106] 308. The terminal determines the target luminance of the target image based on the second luminance histogram and the neutral gray.

[0107] In the embodiments of the present application, since the second luminance histogram is used to indicate the relationship between the luminance and the number of pixels of the target image, the terminal can determine a target luminance from the second luminance histogram. Since the sensitivity of the human eye to the image with luminance lower than the neutral gray and the image with luminance higher than the neutral gray is different, the terminal can determine a target luminance when displaying the target image based on the size relationship between the pixel luminance and the neutral gray. By determining the target luminance based on the second luminance histogram and the neutral gray, the appropriate backlight luminance when displaying the target image can be determined by the target luminance, so as to realize the backlight adjustment.

[0108] In some embodiments, the terminal can determine a plurality of first candidate luminances from the second luminance histogram. Wherein the number of pixels corresponding to the first candidate luminance is greater than the number threshold. Then, the terminal determines the maximum luminance in the plurality of first candidate luminances as the second candidate luminance. Then, the terminal can determine the target luminance of the target image based on the size relationship between the second candidate luminance and the neutral gray. Accordingly, in the case that the second candidate luminance is less than the neutral gray, the second candidate luminance is determined as the target luminance of the target image. Or, in the case that the second candidate luminance is not less than the neutral gray, the maximum luminance in the luminance group to which the second candidate luminance belongs is determined as the target luminance of the target image. Wherein the luminance group refers to the luminance group obtained by merging in the above down-sampling process. By determining the target luminance based on the first candidate luminance, the second candidate luminance and the neutral gray, the display effect can be improved and the power consumption can be reduced on the premise of ensuring the quality of the target image.

[0109] For example, taking 200 as the number threshold, the terminal can determine a plurality of first candidate luminances with the number of pixels greater than the number threshold from the second luminance histogram. Then, the terminal determines the second candidate luminance with the maximum luminance from the plurality of first candidate luminances. Assuming that the second candidate luminance is 360 nit, which is less than the neutral gray 512 nit, the terminal determines the second candidate luminance as the target luminance of the target image. Assuming that the second candidate luminance is 520 nit, which is greater than the neutral gray 512 nit, and the luminance group to which 520 nit belongs is 512 nit-527 nit, the terminal determines 527 nit as the target luminance of the target image.

[0110] 309、The terminal determines the target backlight luminance corresponding to the target luminance from the second curve.

[0111] In the embodiment of the present application, the second curve diagram can indicate the corresponding relationship between the brightness of the target image and the backlight brightness of the display screen. Since the target brightness of the target image can reflect the brightness of most pixels in the target image, after the terminal determines the target brightness of the target image, the terminal can determine the target backlight brightness corresponding to the target brightness from the second curve diagram, and the target backlight brightness is the appropriate backlight brightness when displaying the target image. By determining the target backlight brightness corresponding to the target brightness, the target image can be displayed under the appropriate backlight brightness of the display screen, improving the display effect and reducing power consumption.

[0112] For example, Figure 9 is a schematic diagram for determining a target backlight brightness based on a target brightness according to an embodiment of the present application. As shown in Figure 9 When the target brightness of the target image is 540 nit, the terminal can determine from the second curve diagram that the target backlight brightness corresponding to the target brightness is 850 nit.

[0113] 310、The terminal adjusts the backlight brightness of the display screen to the target backlight brightness.

[0114] In the embodiment of the present application, after the terminal determines the target backlight brightness, the terminal adjusts the backlight brightness of the display screen to the target backlight brightness. Compared with the case where the backlight brightness is adjusted to the maximum when displaying any image, determining the target backlight brightness for displaying the target image and adjusting the backlight brightness of the display screen to the target backlight brightness can reduce power consumption.

[0115] In some embodiments, after the terminal adjusts the backlight brightness of the display screen, the terminal can also perform pixel compensation. Based on the backlight brightness of the display screen, the terminal can adjust the brightness of the pixels in the target image, and then the terminal displays the target image based on the brightness of the pixels in the target image and the backlight brightness of the display screen. The product of the proportion of the adjustment of the backlight brightness of the display screen and the proportion of the adjustment of the brightness of the pixels in the target image is 1.

[0116] For example, the backlight brightness of the display screen is reduced from 1023 nit to 850 nit, and the backlight brightness is reduced to 83.1% of the original. Correspondingly, the terminal can increase the brightness of the pixels in the target image by 1.2 times. By adjusting the brightness of the pixels in the target image, it can be avoided that the picture of the target image is too dark due to the reduction of the backlight brightness of the display screen.

[0117] The embodiment of the present application provides a backlight adjusting method, which can expand the first luminance histogram and the first curve diagram based on the luminance of pixels in the image by upsampling the first curve diagram and the first luminance histogram of the target image based on the neutral gray of the target image, and obtain the second curve diagram and the second luminance histogram with more sampling points. Since the luminance histogram is used for indicating the relationship between the number of pixels in the target image and the luminance of the pixels, and the curve diagram is used for indicating the corresponding relationship between the luminance of the target image and the backlight luminance, therefore, the appropriate backlight luminance when displaying the target image can be determined based on the rich sampling points in the second luminance histogram and the second curve diagram, so that the backlight luminance when the display displays the target image is adjusted, and compared with the case that the backlight luminance is adjusted to the maximum when displaying any image, the power consumption can be reduced.

[0118] Figure 10 is a block diagram of a backlight adjusting device provided by the embodiment of the present application. The device is used for executing the steps in the method, and the steps are described with reference to Figure 10 , the device comprises:

[0119] The first acquisition module 1001 is used for acquiring a target image, a first curve diagram of the target image and a first luminance histogram of the target image, the first curve diagram is used for indicating the corresponding relationship between the luminance of the target image and the backlight luminance of the display screen, and the first luminance histogram is used for indicating the relationship between the number of pixels in the target image and the luminance of the pixels.

[0120] The first sampling module 1002 is used for upsampling the first curve diagram and the first luminance histogram based on the neutral gray of the target image, and obtaining a second curve diagram and a second luminance histogram.

[0121] The first adjustment module 1003 is used for adjusting the backlight luminance of the display screen based on the second curve diagram and the second luminance histogram.

[0122] In some embodiments, the first sampling module 1001 is used for dividing the first curve diagram into two curve regions and dividing the first luminance histogram into two histogram regions based on the neutral gray of the target image; the two curve regions are respectively upsamled at different scales to obtain the second curve diagram; and the two histogram regions are respectively upsamled at different scales to obtain the second luminance histogram.

[0123] In some embodiments, Figure 11 is another block diagram of a backlight adjusting device provided by the embodiment of the present application. As shown in Figure 11 , the device further comprises:

[0124] The first determination module 1004 is configured to determine, for any one of the two curve regions, a sampling ratio for up-sampling the curve region based on a size relationship between the neutral gray and the luminance of the image in the curve region.

[0125] The second determination module 1005 is configured to determine, for any one of the two histogram regions, a sampling ratio for up-sampling the histogram region based on a size relationship between the neutral gray and the luminance of the pixel in the histogram region.

[0126] In some embodiments, the first adjustment module 1003 includes:

[0127] The first determination unit 1101 is configured to determine a target luminance of the target image based on the second luminance histogram and the neutral gray.

[0128] The second determination unit 1102 is configured to determine a target backlight luminance corresponding to the target luminance from the second curve graph.

[0129] The adjustment unit 1103 is configured to adjust the backlight luminance of the display screen to the target backlight luminance.

[0130] In some embodiments, the first determination unit 1101 is configured to determine a plurality of first candidate luminances based on the second luminance histogram, the number of pixels corresponding to each of the first candidate luminances being greater than a number threshold; determine a second candidate luminance as the maximum luminance in the plurality of first candidate luminances; and in a case where the second candidate luminance is less than the neutral gray, determine the second candidate luminance as the target luminance of the target image.

[0131] In some embodiments, referring to Figure 11 as shown, the apparatus further includes:

[0132] The third determination module 1006 is configured to, in a case where the second candidate luminance is not less than the neutral gray, determine a maximum luminance in a luminance group to which the second candidate luminance belongs as the target luminance of the target image.

[0133] In some embodiments, referring to Figure 11 as shown, the apparatus further includes:

[0134] The second acquisition module 1007 is configured to acquire a target image, a third curve graph of the target image, and a third luminance histogram of the target image, the third curve graph being used to indicate a corresponding relationship between the luminance of the target image and the backlight luminance of the display screen, and the third luminance histogram being used to indicate a relationship between the number of pixels and the luminance of the pixel in the target image.

[0135] The second sampling module 1008 is configured to, based on the neutral gray, down-sample the third curve graph and the third luminance histogram respectively to obtain a first curve graph and a first luminance histogram.

[0136] The storage module 1009 is configured to store the target image, the first curve diagram of the target image, and the first brightness histogram of the target image.

[0137] In some embodiments, referring to Figure 11 The device further includes, as shown in the figure:

[0138] The second adjustment module 1010 is configured to adjust the brightness of the pixels in the target image based on the backlight brightness of the display screen.

[0139] The display module 1011 is configured to display the target image based on the brightness of the pixels in the target image and the backlight brightness of the display screen.

[0140] The embodiments of the present application provide a backlight adjustment device. The first curve diagram and the first brightness histogram of a target image are up-sampled based on the neutral gray of the target image. The first brightness histogram and the first curve diagram are expanded based on the brightness of the pixels in the image, and the second curve diagram and the second brightness histogram with more sampling points are obtained. Since the brightness histogram is used to indicate the relationship between the number of pixels in the target image and the brightness of the pixels, and the curve diagram is used to indicate the corresponding relationship between the brightness of the target image and the backlight brightness, the appropriate backlight brightness when the target image is displayed can be accurately determined based on the rich sampling points in the second brightness histogram and the second curve diagram, so that the backlight brightness when the display screen displays the target image is adjusted. Compared with the case where the backlight brightness is adjusted to the maximum when any image is displayed, the power consumption can be reduced.

[0141] It should be noted that the backlight adjustment device provided in the above embodiments is used to run an application. In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the backlight adjustment device and the backlight adjustment method provided in the above embodiments belong to the same concept, and the specific implementation process is described in the method embodiments, which will not be repeated here.

[0142] In the embodiments of the present application, the computer device can be configured as a terminal or a server. When the computer device is configured as a terminal, the terminal can be used as an execution subject to implement the technical solutions provided in the embodiments of the present application. When the computer device is configured as a server, the server can be used as an execution subject to implement the technical solutions provided in the embodiments of the present application. The technical solutions provided in the present application can also be implemented through the interaction between the terminal and the server, and the embodiments of the present application do not limit this.

[0143] Figure 12 A structure schematic diagram of a terminal 1200 provided in an embodiment of the present application is shown.

[0144] The terminal 1200 comprises a processor 1201 and a memory 1202.

[0145] The processor 1201 can comprise one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1201 can be implemented in the form of at least one of a DSP (Digital Signal Processing), an FPGA (Field Programmable Gate Array), a PLA (Programmable Logic Array). The processor 1201 can also comprise a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit). The coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1201 can be integrated with a GPU (Graphics Processing Unit) for rendering and drawing content to be displayed by a display screen. In some embodiments, the processor 1201 can further comprise an AI (Artificial Intelligence) processor for processing machine learning-related computing operations.

[0146] The memory 1202 can comprise one or more computer-readable storage media that can be non-transitory. The memory 1202 can also include high-speed random access memory and nonvolatile, computer-readable storage media such as one or more magnetic disk storage devices, flash memory devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1202 is used to store at least one computer program for being executed by the processor 1201 to implement the backlight adjustment method provided by the method embodiments in the present application.

[0147] In some embodiments, the terminal 1200 can also optionally comprise a peripheral device interface 1203 and at least one peripheral device. The processor 1201, the memory 1202 and the peripheral device interface 1203 can be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 1203 through a bus, a signal line or a circuit board. Optionally, the peripheral device comprises at least one of a radio frequency circuit 1204, a display screen 1205, a camera assembly 1206, an audio circuit 1207 and a power supply 1208.

[0148] The peripheral interface 1203 can be used to connect at least one I / O (Input / Output) related peripheral device to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, the memory 1202 and the peripheral interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202 and the peripheral interface 1203 can be implemented on a separate chip or circuit board, and the present embodiments are not limited in this regard.

[0149] The radio frequency circuit 1204 is configured to receive and send RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1204 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 1204 converts electric signals into electromagnetic signals for transmission, or converts electromagnetic signals received into electric signals. Optionally, the radio frequency circuit 1204 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. The radio frequency circuit 1204 can communicate with other devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to, a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network, and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1204 can also include NFC (Near Field Communication) related circuitry, and the present application is not limited in this regard.

[0150] The display screen 1205 is configured to display a UI (User Interface). The UI can include graphics, text, icons, video, and any combination thereof. When the display screen 1205 is a touch display screen, the display screen 1205 is further configured to capture touch signals on or above the surface of the display screen 1205. The touch signals can be input to the processor 1201 as control signals for processing. In this case, the display screen 1205 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 1205 can be one, disposed on the front panel of the terminal 1200; in other embodiments, the display screen 1205 can be at least two, respectively disposed on different surfaces of the terminal 1200 or in a folding design; in other embodiments, the display screen 1205 can be a flexible display screen, disposed on a curved surface or a folding surface of the terminal 1200. Even, the display screen 1205 can also be disposed in an irregular shape, i.e., a special-shaped screen. The display screen 1205 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.

[0151] The camera assembly 1206 is configured to capture images or videos. Optionally, the camera assembly 1206 includes a front camera and a rear camera. The front camera is disposed on the front panel of the terminal 1200, and the rear camera is disposed on the back of the terminal 1200. In some embodiments, the rear 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 1206 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.

[0152] The audio circuit 1207 can include a microphone and a speaker. The microphone is used to collect sound waves of a user and an environment, and convert the sound waves into an electrical signal input to the processor 1201 for processing, or input to the radio frequency circuit 1204 to realize voice communication. The microphone can be multiple for the purpose of stereo sound collection or noise reduction, and be arranged at different parts of the terminal 1200 respectively. The microphone can also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert an electrical signal from the processor 1201 or the radio frequency circuit 1204 into sound waves. The speaker can be a traditional diaphragm speaker, or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert an electrical signal into a sound wave audible to humans, but also convert an electrical signal into a sound wave inaudible to humans for ranging purposes. In some embodiments, the audio circuit 1207 can also include a headphone jack.

[0153] The power supply 1208 is used to supply power to various components in the terminal 1200. The power supply 1208 can be alternating current, direct current, disposable batteries or rechargeable batteries. When the power supply 1208 includes rechargeable batteries, the rechargeable batteries can support wired charging or wireless charging. The rechargeable batteries can also be used to support fast charging technology.

[0154] In some embodiments, the terminal 1200 also includes one or more sensors 1209. The one or more sensors 1209 include, but are not limited to, an acceleration sensor 1210, a gyroscope sensor 1211, a pressure sensor 1212, an optical sensor 1213, and a proximity sensor 1214.

[0155] The acceleration sensor 1210 can detect the acceleration magnitude in three coordinate axes of a coordinate system established by the terminal 1200. For example, the acceleration sensor 1210 can be used to detect the components of gravitational acceleration in three coordinate axes. The processor 1201 can control the display screen 1205 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1210. The acceleration sensor 1210 can also be used for game or user motion data collection.

[0156] The gyroscope sensor 1211 can detect the body orientation and rotation angle of the terminal 1200, and the gyroscope sensor 1211 can collect 3D actions of the user on the terminal 1200 in cooperation with the acceleration sensor 1210. The processor 1201 can realize the following functions according to the data collected by the gyroscope sensor 1211: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization when shooting, game control, and inertial navigation.

[0157] The pressure sensor 1212 can be disposed on the side bezel of the terminal 1200 and / or on the lower layer of the display screen 1205. When the pressure sensor 1212 is disposed on the side bezel of the terminal 1200, it can detect the user's grip signal on the terminal 1200, and the processor 1201 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1212. When the pressure sensor 1212 is disposed on the lower layer of the display screen 1205, the processor 1201 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1205. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

[0158] Optical sensor 1213 is used to collect ambient light intensity. In one embodiment, processor 1201 can control the display brightness of display screen 1205 based on the ambient light intensity collected by optical sensor 1213. Optionally, when the ambient light intensity is high, the display brightness of display screen 1205 is increased; when the ambient light intensity is low, the display brightness of display screen 1205 is decreased. In another embodiment, processor 1201 can also dynamically adjust the shooting parameters of camera assembly 1206 based on the ambient light intensity collected by optical sensor 1213.

[0159] The proximity sensor 1214, also known as a distance sensor, is installed on the front panel of the terminal 1200. The proximity sensor 1214 is used to detect the distance between the user and the front of the terminal 1200. In one embodiment, when the proximity sensor 1214 detects that the distance between the user and the front of the terminal 1200 is gradually decreasing, the processor 1201 controls the display screen 1205 to switch from a screen-on state to a screen-off state; when the proximity sensor 1214 detects that the distance between the user and the front of the terminal 1200 is gradually increasing, the processor 1201 controls the display screen 1205 to switch from a screen-off state to a screen-on state.

[0160] Those skilled in the art will understand that Figure 12 The structure shown does not constitute a limitation on terminal 1200 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0161] This application also provides a computer-readable storage medium storing at least one computer program, which is loaded and executed by a processor to implement the backlight adjustment method of the above embodiments.

[0162] The embodiment of the present application further provides a computer program product comprising a computer program, which is loaded and executed by a processor to implement the backlight adjustment method of the above embodiment. In some embodiments, the computer program related by the embodiment of the present application can be deployed on a terminal for execution, or on multiple terminals located in one place for execution, or on multiple terminals distributed in multiple places and interconnected through a communication network for execution, and the multiple terminals distributed in multiple places and interconnected through a communication network can constitute a blockchain system.

[0163] Those of ordinary skill in the art can understand that all or part of the steps of the above-mentioned embodiments can be completed by hardware, or by a program instructing relevant hardware, and the program can be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk or an optical disk.

[0164] The above is only optional embodiments of the present application, and is not used to limit the present application, and any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A backlight adjustment method, characterized in that, The method includes: Acquire a target image, a first curve of the target image, and a first brightness histogram of the target image. The horizontal axis of the first curve represents the brightness of the target image, and the vertical axis represents the backlight brightness of the display screen. The brightness of the target image is the brightness of one of all pixels in the target image. The brightness represents the brightness of pixels in the target image that are greater than a preset proportion of the total number of pixels. The first brightness histogram is used to indicate the relationship between the number of pixels and the brightness of pixels in the target image. Based on the neutral gray of the target image, the first curve is divided into a first curve region and a second curve region, and the first brightness histogram is divided into a first histogram region and a second histogram region, with the neutral gray as the dividing point between the first curve region and the second curve region. Based on the neutral gray and the image brightness within the first curve region, a first upsampling ratio is determined for the first curve region; Based on the neutral gray and the image brightness within the second curve region, a second upsampling ratio is determined for the second curve region, wherein the first upsampling ratio is different from the second upsampling ratio; The first curve region is upsampled based on the first upsampling ratio, and the second curve region is upsampled based on the second upsampling ratio to obtain the second curve graph; Based on the neutral gray and the image brightness within the first histogram region, a third upsampling ratio is determined for the first histogram region; Based on the neutral gray and the image brightness within the second histogram region, a fourth upsampling ratio is determined for the second histogram region, wherein the third upsampling ratio is different from the fourth upsampling ratio; Since the curves change at different rates in the two curve regions of the first curve graph and the curve regions correspond to each other with the histogram regions, for the two histogram regions corresponding to different curve regions, the first histogram region is upsampled based on the third upsampling ratio, and the second histogram region is upsampled based on the fourth upsampling ratio to obtain the second brightness histogram. Based on the second curve and the second brightness histogram, adjust the backlight brightness of the display screen.

2. The method according to claim 1, characterized in that, Adjusting the backlight brightness of the display screen based on the second curve and the second brightness histogram includes: The target brightness of the target image is determined based on the second brightness histogram and the neutral gray. Determine the target backlight brightness corresponding to the target brightness from the second curve graph; Adjust the backlight brightness of the display screen to the target backlight brightness.

3. The method according to claim 2, characterized in that, Determining the target brightness of the target image based on the second brightness histogram and the neutral gray includes: Based on the second brightness histogram, multiple first candidate brightness values ​​are determined, and the number of pixels corresponding to the first candidate brightness values ​​is greater than a number threshold. The brightness with the largest value among the plurality of first candidate brightness values ​​is determined as the second candidate brightness value; If the second candidate brightness is less than the neutral gray, the second candidate brightness is determined to be the target brightness of the target image.

4. The method according to claim 3, characterized in that, The method further includes: If the second candidate brightness is not less than the neutral gray, the maximum brightness in the brightness group to which the second candidate brightness belongs is determined as the target brightness of the target image.

5. The method according to claim 1, characterized in that, Before acquiring the target image, the first curve of the target image, and the first brightness histogram of the target image, the method further includes: The target image, a third curve of the target image, and a third brightness histogram of the target image are obtained. The third curve is used to indicate the correspondence between the brightness of the target image and the backlight brightness of the display screen, and the third brightness histogram is used to indicate the relationship between the number of pixels in the target image and the brightness of the pixels. Based on the neutral gray, the third curve and the third brightness histogram are downsampled respectively to obtain the first curve and the first brightness histogram; The target image, a first curve of the target image, and a first brightness histogram of the target image are stored.

6. The method according to claim 1, characterized in that, After adjusting the backlight brightness of the display screen based on the second curve and the second brightness histogram, the method further includes: Adjust the brightness of pixels in the target image based on the backlight brightness of the display screen; The target image is displayed based on the brightness of the pixels in the target image and the backlight brightness of the display screen.

7. A backlight adjustment device, characterized in that, The device includes: The first acquisition module is used to acquire a target image, a first curve of the target image, and a first brightness histogram of the target image. The horizontal axis of the first curve is the brightness of the target image, and the vertical axis is the backlight brightness of the display screen. The brightness of the target image is the brightness of one of the pixels in the target image. The brightness represents the brightness of pixels in the target image that are greater than a preset proportion of the total number of pixels. The first brightness histogram is used to indicate the relationship between the number of pixels in the target image and the brightness of the pixels. The first sampling module is used to divide the first curve into a first curve region and a second curve region based on the neutral gray of the target image, and to divide the first brightness histogram into a first histogram region and a second histogram region, with the neutral gray as the dividing point between the first curve region and the second curve region. The first sampling module is further configured to determine a first upsampling ratio for the first curve region based on the neutral gray and the image brightness within the first curve region. The first sampling module is further configured to determine a second upsampling ratio for the second curve region based on the neutral gray and the image brightness within the second curve region, wherein the first upsampling ratio is different from the second upsampling ratio; The first sampling module is further configured to upsample the first curve region based on the first upsampling ratio and upsample the second curve region based on the second upsampling ratio to obtain a second curve graph; The first sampling module is further configured to determine a third upsampling ratio for the first histogram region based on the neutral gray and the image brightness within the first histogram region. The first sampling module is further configured to determine a fourth upsampling ratio for the second histogram region based on the neutral gray and the image brightness within the second histogram region, wherein the third upsampling ratio is different from the fourth upsampling ratio; The first sampling module is further configured to, since the curves in the two curve regions of the first curve graph change at different rates and the curve regions correspond to the histogram regions, upsample the first histogram region based on the third upsampling ratio and upsample the second histogram region based on the fourth upsampling ratio for the two histogram regions corresponding to different curve regions, to obtain a second brightness histogram. The first adjustment module is used to adjust the backlight brightness of the display screen based on the second curve and the second brightness histogram.

8. A terminal, characterized in that, The terminal includes a processor and a memory, the memory being used to store at least one computer program, the at least one computer program being loaded by the processor and executed as the backlight adjustment method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store at least one computer program for performing the backlight adjustment method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the backlight adjustment method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Backlight brightness control method, backlight brightness control device and display terminal

    CN105047145A

  • Method and device for adjusting display image based on backlight brightness

    CN108257580A

  • Backlight control method and device and display equipment

    CN114420059A