Screen brightness adjustment method, electronic device and storage medium
By calculating the brightness compensation value based on the current and previous frame images in the display, the brightness changes are smoothed, solving the screen flicker problem caused by rapid image changes in backlight partition displays and improving the user experience.
Patent Information
- Application Number
- CN202310319852.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2043-03-28
AI Technical Summary
In a backlight partition display, rapid image changes cause the backlight partition brightness value to change too much, causing the screen to flicker and affecting the user's viewing experience.
By obtaining image partitions with increased and decreased brightness based on the current frame image and the previous frame image, calculating corresponding brightness compensation values, and performing brightness compensation, sudden changes in screen brightness values are reduced.
Effectively reduces screen flicker, improves user viewing experience, and reduces flicker risk through smooth brightness changes.
Smart Images

Figure CN118737061B_ABST
Abstract
Description
Technical field
[0001] The embodiments of the present application relate to the field of display technology, and in particular to a screen brightness adjustment method, an electronic device, and a storage medium. [Background Technology]
[0002] In a display with backlight partitioning, the display has multiple backlight zones, each with its own independent light source. When displaying an image, the display partitions the image, obtains the brightness value corresponding to each backlight zone, and adjusts the light source in that backlight zone based on the brightness value to achieve image display. This display method can make bright areas of the image brighter and dark areas darker, thereby improving image contrast and reducing power consumption.
[0003] However, when the brightness value of the backlight partition changes too much due to rapid changes in the image, the transition of the backlight partition is abrupt and uneven, which easily causes flickering on the display screen. [Summary of the invention]
[0004] The embodiments of the present application provide a screen brightness adjustment method, an electronic device, and a storage medium, which can slow down the brightness change of the screen and reduce the screen flickering phenomenon when the screen image changes rapidly.
[0005] In a first aspect, an embodiment of the present application provides a method for adjusting screen brightness, comprising:
[0006] Acquire a first image subarea with increased brightness and a brightness increase value of the first image subarea based on a current frame image and a previous frame image, and acquire a second image subarea with decreased brightness and a brightness decrease value of the second image subarea, wherein the image includes at least two image subareas;
[0007] Obtaining a first brightness compensation value based on the brightness increase value, and obtaining a second brightness compensation value based on the brightness decrease value, wherein the first brightness compensation value is smaller than the brightness increase value, and the second brightness compensation value is smaller than the brightness decrease value;
[0008] performing brightness compensation on the first image subregion of the image based on the first brightness compensation value, and performing brightness compensation on the second image subregion of the image based on the second brightness compensation value;
[0009] The display partitions of the screen are adjusted based on the compensated brightness of the image partitions, and the image partitions and the display partitions have a corresponding relationship.
[0010] In some embodiments, obtaining a first brightness compensation value based on the brightness increase value includes:
[0011] The brightness increase value is multiplied by a first compensation coefficient to obtain the first brightness compensation value, where the first compensation coefficient is less than 1.
[0012] In some embodiments, obtaining a second brightness compensation value based on the brightness reduction value includes:
[0013] The brightness reduction value is multiplied by a second compensation coefficient to obtain the second brightness compensation value, where the second compensation coefficient is less than 1.
[0014] In some embodiments, performing brightness compensation on the first image subarea of the image based on the first brightness compensation value includes:
[0015] The brightness value of the first image subarea of the previous frame image is added to the first brightness compensation value of the first image subarea to serve as the brightness value of the first image subarea of the current frame image.
[0016] In some embodiments, performing brightness compensation on the second image subarea of the image based on the second brightness compensation value includes:
[0017] The brightness value of the second image subarea of the current frame image is added to the second brightness compensation value of the second image subarea to obtain the brightness value of the second image subarea of the current frame image.
[0018] In some embodiments, acquiring the first image subarea with increased brightness and the brightness increase value of the first image subarea based on the current frame image and the previous frame image includes:
[0019] The brightness value of each image partition of the current frame image is subtracted from the brightness value of each image partition of the previous frame image to obtain the brightness difference value of each image partition, wherein the image partition whose brightness difference value is greater than 0 is the first image partition, and the brightness difference value corresponding to the first image partition is the brightness increase value of the first image partition.
[0020] In some embodiments, acquiring a second image subarea with reduced brightness and a brightness reduction value of the second image subarea based on the current frame image and the previous frame image includes:
[0021] The brightness value of each image partition of the previous frame image is subtracted from the brightness value of each image partition of the current frame image to obtain the brightness difference value of each image partition, wherein the image partition whose brightness difference value is greater than 0 is the second image partition, and the brightness difference value corresponding to the second image partition is the brightness reduction value of the second image partition.
[0022] In some embodiments, the method further comprises:
[0023] Partitioning the image based on the display partitions of the screen to obtain at least two image partitions of the image;
[0024] Obtaining brightness values of pixels in the image partition, and calculating the maximum brightness and average brightness of each pixel in the image partition;
[0025] The maximum brightness value and the average brightness value are weightedly added to obtain the brightness value of the image partition.
[0026] In a second aspect, an embodiment of the present application further provides an electronic device, including:
[0027] monitor;
[0028] a processor and a memory communicatively connected to the processor;
[0029] The memory stores computer program instructions, which, when called by the processor, enable the processor to execute the above method.
[0030] In a third aspect, an embodiment of the present application further provides a storage medium, wherein the storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a processor to execute the method described above.
[0031] Compared to the prior art, the embodiments of the present application obtain, based on the current frame image and the previous frame image, a first image partition with increased brightness and a brightness increase value of the first image partition, as well as a second image partition with decreased brightness and a brightness decrease value of the second image partition, respectively. A first brightness compensation value is obtained based on the brightness increase value, and a second brightness compensation value is obtained based on the brightness decrease value. The first image partition and the second image partition of the image are compensated based on the first brightness compensation value and the second brightness compensation value, respectively. Because the first brightness compensation value is less than the brightness increase value and the second brightness compensation value is less than the brightness decrease value, sudden changes in screen brightness can be reduced, resulting in smoother changes in brightness and reduced screen flicker.
[0032] At the same time, since the embodiment of the present application takes into account both the situation of increasing brightness and decreasing brightness, the embodiment of the present application can reduce the sudden increase and decrease of screen brightness, and can also reduce the screen flickering phenomenon caused by the sudden increase and sudden decrease of brightness.
Brief Description of the Drawings
[0033] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0034] Figure 1 Schematic diagram of the hardware structure of the electronic device in the embodiment of the present application;
[0035] Figure 2 A schematic diagram showing the partitions in the embodiment of the present application;
[0036] Figure 3 This is a schematic diagram of image partitioning in an embodiment of the present application;
[0037] Figure 4 A schematic diagram of an application scenario of an embodiment of the present application;
[0038] Figure 5 This is a schematic diagram of a sudden change in brightness in an application scenario of an embodiment of the present application;
[0039] Figure 6 This is a flow chart of the screen brightness adjustment method according to an embodiment of the present application;
[0040] Figure 7 2 is a schematic diagram of a brightness increase matrix in an embodiment of the present application. [Specific implementation method]
[0041] To make the objectives, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of them. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0042] The technical features involved in the various embodiments of the present application described below do not conflict with each other and can be combined with each other.
[0043] In addition, although the functional modules are divided in the device schematics and the logical order is shown in the flowcharts, in some cases, the modules may be divided differently from those in the device, or the steps may be performed in an order different from that shown in the flowcharts.
[0044] The words "first," "second," and "third" used herein do not limit the data, devices, or execution order, but are merely used to distinguish between identical or similar items having substantially the same functions and effects. Unless otherwise defined, the technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art. The terms used in this specification are intended to describe specific embodiments only and are not intended to limit this application. The term "and / or" used herein includes any and all combinations of one or more of the associated listed items.
[0045] The screen brightness adjustment method of the embodiment of the present application can be applied to electronic devices, and the electronic device can be any electronic device with a display, such as an interactive smart device, including an interactive smart tablet, a large-screen smart display device, a tablet computer, a personal computer, a laptop computer, a smart phone, etc.
[0046] Figure 1 shows a hardware structure of an electronic device. Figure 1 The electronic device includes a processor 10, a memory 20 and a display 30, which are connected via a line. Figure 1 In the illustrated embodiment, the processor 10, the memory 20, and the display 30 are connected via a bus.
[0047] The memory 20 is used to store software programs, computer-executable program instructions, etc. The memory 20 may include a program storage area and a data storage area. The program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the electronic device.
[0048] The memory 20 may be a read-only memory (ROM), or other types of static storage devices that can store static information and instructions; a random access memory (RAM), or other types of dynamic storage devices that can store information and instructions; or an electrically erasable programmable read-only memory (EEPROM), and the specifics are not limited here.
[0049] For example, the memory 20 may be a double data rate synchronous dynamic random access memory (DDR SDRAM). The memory 20 may exist independently but be connected to the processor 10. Alternatively, the memory 20 may be integrated with the processor 10, for example, within one or more chips.
[0050] In some embodiments, the memory 20 may include a memory remote from the processor 10, which may be connected to the electronic device via a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0051] The processor 10 uses various interfaces and lines to connect various parts of the entire electronic device 100, and performs various functions of the electronic device and processes data by running or executing software programs stored in the memory 20, and calling data stored in the memory 20, such as implementing the method described in any embodiment of the present application.
[0052] The processor 10 may be a field programmable gate array (FPGA), a digital signal processor (DSP), a central processing unit (CPU), or the like.
[0053] The processor 10 can be a single-core processor or a multi-core processor. For example, the processor 10 can be composed of multiple FPGAs or multiple DSPs. In addition, the processor 10 can refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions). The processor 10 can be a separate semiconductor chip or integrated into a semiconductor chip together with other circuits. For example, it can form a system-on-a-chip (SoC) with other circuits (such as codec circuits, hardware acceleration circuits, or various bus and interface circuits). Alternatively, it can be integrated into an application-specific integrated circuit (ASIC) as a built-in processor of the ASIC. The ASIC with the integrated processor can be packaged separately or together with other circuits.
[0054] Figure 1 The figure only schematically shows that the display 30 is connected to the bus. In actual applications, the display 30 can also be connected to the bus through a display controller or other interfaces.
[0055] Those skilled in the art will understand that the above is only an example of the hardware structure of the electronic device. In actual applications, more components may be provided according to actual functional requirements. Of course, one or more components may be omitted according to functional requirements.
[0056] Current electronic devices mostly use local dimming to adjust the brightness of the display. For example, the display area of the display is divided into multiple display partitions, each display partition is provided with brightness by an independent light source, and the brightness of each display partition can be independently controlled.
[0057] The display area can be partitioned in a variety of ways, such as a 2D partitioning method, a 1D partitioning method, etc. The so-called 2D partitioning method means that the display area is divided into M*N display partitions. Figure 2 This partitioning method is used in the example shown. Figure 2 The partitioning scheme shown divides the display area into 9 x 6 display partitions. A one-dimensional partitioning scheme divides the display area into multiple zones along the width or length of the display. In addition to the two schemes described above, other partitioning schemes can also be used based on specific application scenarios.
[0058] The light source of each display partition can be backlit, side-lit or self-luminous.
[0059] When the display displays an image, the image is analyzed and the image partitions are correspondingly divided based on the partitioning method of the display area of the display. For example, when the display area is divided into M*N display partitions, the image is correspondingly divided into M*N image partitions, and there is a one-to-one correspondence between the image partitions and the display partitions at corresponding positions. Figure 3 An image partitioning method is shown as an example.
[0060] Each image partition can have a brightness value. The brightness value of each image partition can be obtained, and the light source of the corresponding display partition can be adjusted based on the brightness value to achieve image display. When the image is partitioned into one dimension, the image brightness value can be a one-dimensional array. When the image is partitioned into two dimensions, the image brightness value can be a brightness matrix. For example, when the image is divided into M*N image partitions, the image brightness value is an M*N brightness matrix.
[0061] The brightness value may be, for example, a grayscale value, an RGB value, or the like.
[0062] Local dimming can brighten bright areas and dark areas in an image, thereby improving image contrast and reducing power consumption. However, when the brightness of a display partition fluctuates significantly due to rapid image changes—for example, when a display partition changes from bright to dark or from dark to bright—the light source needs to be controlled to turn on and off, or off and on. This can easily cause sudden brightness changes, creating a visual flicker.
[0063] Figure 4 An application scenario is shown. Figure 4 When a white square slider is quickly dragged from one position to another on the display shown, local dimming is used, causing the image partition corresponding to the white square slider before sliding to suddenly change from bright to dark, and the display partition corresponding to the white square slider after sliding to suddenly change from dark to bright, causing the display to flicker and affecting the user's viewing experience.
[0064] Figure 4 The left side shows the image before the white square slider is moved. Figure 5 The left side exemplarily shows the brightness matrix of the image before sliding, and each image partition can be represented by a number between 0 and 255. Figure 4 The right side shows the image after the white square slider is moved. Figure 5 The right side shows an example of the brightness matrix of the image after sliding. As can be seen from the figure, the image partition corresponding to the square slider before sliding will suddenly change from bright to dark after sliding, while the image partition corresponding to the square slider after sliding will suddenly change from dark to bright after sliding.
[0065] An embodiment of the present application provides a method for adjusting screen brightness. Based on a current frame image and a previous frame image, a first image partition with increased brightness and a brightness increase value of the first image partition are obtained, as well as brightness decrease values of the second image partition and the second image partition with decreased brightness are obtained. A first brightness compensation value is obtained based on the brightness increase value, and a second brightness compensation value is obtained based on the brightness decrease value. The first image partition and the second image partition of the image are compensated based on the first brightness compensation value and the second brightness compensation value. Because the first brightness compensation value is less than the brightness increase value and the second brightness compensation value is less than the brightness decrease value, sudden changes in screen brightness can be reduced, resulting in smoother changes in brightness and reduced screen flicker.
[0066] At the same time, since the embodiment of the present application takes into account both the situations of increasing brightness and decreasing brightness, brightness increase compensation and brightness decrease compensation are performed respectively, and then the compensated images are superimposed, the sudden increase and decrease of the screen brightness can be reduced, and the screen flickering phenomenon caused by the sudden increase and sudden decrease of brightness can be reduced at the same time.
[0067] The following describes the screen brightness adjustment method of each embodiment of the present application.
[0068] The present application embodiment provides a method for adjusting screen brightness, which can be performed by the electronic device in any of the above embodiments. Figure 6 , the method comprising:
[0069] 101: Acquire a first image subarea with increased brightness and a brightness increase value of the first image subarea based on a current frame image and a previous frame image, and acquire a second image subarea with decreased brightness and a brightness decrease value of the second image subarea.
[0070] Image partitioning can be performed based on the display partitions of the screen. For example, if the screen is divided into several display partitions along the length of the screen, the image can be divided into the same number of image partitions along the length of the image. If the screen is divided into several display partitions along the width of the screen, the image can be divided into the same number of image partitions along the width of the image. If the screen is divided into M*N display partitions, the image can be correspondingly divided into M*N image partitions, and so on. In the following embodiments, the screen is divided into M*N display partitions and the image is divided into M*N image partitions as an example.
[0071] The above M and N can be positive integers. For example, if M is 20 and N is 24, the image is divided into 480 image partitions of 20*24.
[0072] The image partitions and the display partitions have a one-to-one correspondence, and the image partitions and the display partitions at the same position have a correspondence, for example, the image partition at the first row and third column has a correspondence with the display partition at the first row and third column.
[0073] The previous frame image may be the frame image before the current frame image. In other embodiments, it may also be the two frames image before the current frame image.
[0074] In some embodiments, the brightness difference of each image partition can be obtained by subtracting the brightness value of each image partition of the previous frame image from the brightness value of each image partition of the current frame image. That is, the brightness values of the image partitions at the same position in the current frame image and the previous frame image are subtracted. Among them, the image partition with a brightness difference greater than 0 is an image partition with increased brightness and can be recorded as the first image partition. The brightness difference value corresponding to the first image partition is the brightness increase value of the first image partition.
[0075] The brightness difference of each image partition can be obtained by subtracting the brightness value of each image partition of the current frame from the brightness value of each image partition of the previous frame. That is, the brightness values of the image partitions at the same position in the previous and current frames are subtracted. The image partition with a brightness difference greater than 0 is an image partition with reduced brightness and can be recorded as the second image partition. The brightness difference corresponding to the second image partition is the brightness reduction value of the second image partition.
[0076] The first image partition may be one image partition or include two or more image partitions, and the second image partition may be one image partition or include two or more image partitions.
[0077] Taking an image including M*N image partitions as an example, in practical applications, the brightness matrix of the previous frame image can be subtracted from the brightness matrix of the current frame image to obtain a brightness difference matrix. The image partition corresponding to the brightness difference values greater than 0 in the brightness difference matrix is the first image partition. In some embodiments, the values in the brightness difference matrix with brightness differences less than 0 can be set to 0, and the resulting matrix is a brightness increase matrix.
[0078] The brightness matrix of the current frame image can be subtracted from the brightness matrix of the previous frame image to obtain a brightness difference matrix. The image partitions corresponding to brightness differences greater than 0 in the brightness difference matrix are the second image partitions. In some embodiments, the values of brightness differences less than 0 in the brightness difference matrix can be set to 0, and the resulting matrix is a brightness reduction matrix.
[0079] The brightness value of an image partition can be the average brightness of each pixel in the image partition, or the maximum brightness of each pixel. It can also be a weighted sum of the average brightness and the maximum brightness. The weight of the average brightness can be less than the weight of the maximum brightness. For example, the weight of the average brightness is 0.3, and the weight of the maximum brightness is 0.7. In other embodiments, the weight of the average brightness can be greater than or equal to the weight of the maximum brightness.
[0080] In some embodiments, the brightness value of a pixel point can be a grayscale value with a value range of 0-255, where 0 represents the darkest brightness and 255 represents the brightest brightness. In other embodiments, the brightness value can also be the sum of the RGB values of the pixel point, or the weighted sum of the RGB values, etc.
[0081] It should be noted that when there is no image area with increased brightness, only the second image area with decreased brightness and the brightness reduction value of the second image area are obtained; when there is no image area with decreased brightness, only the first image area with increased brightness and the brightness increase value of the first image area are obtained.
[0082] 102: Obtain a first brightness compensation value based on the brightness increase value, and obtain a second brightness compensation value based on the brightness decrease value.
[0083] In order to make the image brightness change smoothly and reduce sudden brightness changes, the first brightness compensation value can be less than the brightness increase value, and the second brightness compensation value can be less than the brightness decrease value. In this way, after compensating the image with the first brightness compensation value and the second brightness compensation value, the image brightness change can be made relatively smooth.
[0084] In some embodiments, the brightness increase value can be multiplied by a first compensation coefficient less than 1 to obtain a first brightness compensation value, and / or the brightness decrease value can be multiplied by a second compensation coefficient less than 1 to obtain a second brightness compensation value. The first compensation coefficient and the second compensation coefficient can be the same or different. In some embodiments, the first compensation coefficient is smaller than the second compensation coefficient. For example, the first compensation coefficient is 0.52 and the second compensation coefficient is 0.8.
[0085] In other embodiments, a fixed constant may be subtracted from the brightness increase value to make the first brightness compensation value smaller than the brightness increase value, and / or a fixed constant may be subtracted from the brightness decrease value to make the second brightness compensation value smaller than the brightness decrease value. Alternatively, other methods of reducing the brightness increase value to obtain the first brightness compensation value and reducing the brightness decrease value to obtain the second brightness compensation value may be used.
[0086] It should be noted that when there is no image area with increased brightness, the second brightness compensation value is obtained based only on the brightness reduction value; when there is no image area with decreased brightness, the first brightness compensation value is obtained based only on the brightness increase value.
[0087] There may be one or more first brightness compensation values, and the first brightness compensation values have a corresponding relationship with the first image subareas, and the number of the first image subareas is the same as that of the first image subareas. There may be one or more second brightness compensation values, and the second brightness compensation values have a corresponding relationship with the second image subareas, and the number of the second image subareas is the same as that of the second image subareas.
[0088] 103: Perform brightness compensation on the first image subregion of the image based on the first brightness compensation value, and perform brightness compensation on the second image subregion of the image based on the second brightness compensation value.
[0089] In some embodiments, the brightness value of the first image subarea of the previous frame image may be added to the first brightness compensation value of the first image subarea to obtain the brightness value of the first image subarea of the current frame image. The brightness value of the second image subarea of the current frame image may be added to the second brightness compensation value of the second image subarea to obtain the brightness value of the second image subarea of the current frame image.
[0090] For example, if there are three first image subareas and two second image subareas, the brightness values of the three first image subareas of the previous frame image are added to their respective first brightness compensation values to obtain the brightness values of the three first image subareas of the current frame image. The brightness values of the two second image subareas of the current frame image are added to their respective second brightness compensation values to obtain the brightness values of the two second image subareas of the current frame image.
[0091] For the third image partition other than the first image partition and the second image partition, since the brightness value has not changed, the brightness value of the third image partition of the current frame image can be used as the brightness value of the third image partition of the current frame image, or the brightness value of the third image partition of the previous frame image can be used as the brightness value of the third image partition of the current frame image.
[0092] It should be noted that when there is no image area with increased brightness, it is only necessary to perform brightness compensation on the second image area based on the second brightness compensation value of the second image area. When there is no image area with decreased brightness, it is only necessary to perform brightness compensation on the first image area based on the first brightness compensation value of the first image area.
[0093] In an embodiment using a brightness matrix, using grayscale values as an example, the brightness values of the second image subarea in the brightness matrix of the previous frame image can be set to 0, and the brightness values of the first and third image subareas in the brightness matrix of the current frame image can be set to 0, that is, only the brightness value of the second image subarea is retained. The brightness matrix of the current frame image is then added to the adjusted brightness matrix of the previous frame image and the brightness matrix of the current frame image to obtain the brightness matrix of the current frame image.
[0094] In other embodiments, the brightness values of the second image subarea in the brightness matrix of the previous frame image may be set to 0, and the brightness values of the third image subarea may be set to 0, that is, only the brightness values of the first image subarea are retained. The brightness values of the first image subarea in the brightness matrix of the current frame image may be set to 0, and then the brightness matrix of the previous frame image and the brightness matrix of the current frame image after adjustment are added to the brightness increase matrix and the brightness decrease matrix to obtain the brightness matrix of the current frame image.
[0095] When there is no image area with increased brightness, it is only necessary to add the brightness matrix of the current frame image to the brightness reduction matrix to obtain the brightness matrix of the current frame image. When there is no image area with decreased brightness, it is only necessary to add the brightness matrix of the previous frame image to the brightness increase matrix to obtain the brightness matrix of the current frame image.
[0096] 104: Adjusting each display partition of the screen based on the compensated brightness of each image partition, wherein the image partition and the display partition have a corresponding relationship.
[0097] The light source of each display subarea can be adjusted based on the compensated brightness value of each image subarea, turning the light source on or off. That is, the brightness of display subareas at the same location can be adjusted based on the brightness value of the image subarea. For example, the light source of the display subarea in the first row and third column can be adjusted based on the brightness value of the image subarea in the first row and third column.
[0098] It should be noted that the numbers of the above steps are only used to identify the steps and are not used to indicate the order of the steps. In addition to the order presented in the text, the steps can also be in other orders.
[0099] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, for example Figure 1 A processor 10 in the embodiment may enable the one or more processors to execute the method in any of the above method embodiments.
[0100] An embodiment of the present application also provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a terminal device, the terminal device executes the method of any of the above embodiments.
[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Under the concept of the present invention, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations in different aspects of the present invention as described above. For the sake of simplicity, they are not provided in detail. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A screen brightness adjustment method, characterized in that: include: Acquire a first image subarea with increased brightness and a brightness increase value of the first image subarea based on a current frame image and a previous frame image, and acquire a second image subarea with decreased brightness and a brightness decrease value of the second image subarea, wherein the image includes at least two image subareas; Obtaining a first brightness compensation value based on the brightness increase value, and obtaining a second brightness compensation value based on the brightness decrease value, wherein the first brightness compensation value is smaller than the brightness increase value, and the second brightness compensation value is smaller than the brightness decrease value; performing brightness compensation on the first image subregion of the image based on the first brightness compensation value, and performing brightness compensation on the second image subregion of the image based on the second brightness compensation value; The display partitions of the screen are adjusted based on the compensated brightness of the image partitions, and the image partitions and the display partitions have a corresponding relationship.
2. The method according to claim 1, characterized in that The obtaining of a first brightness compensation value based on the brightness increase value includes: The brightness increase value is multiplied by a first compensation coefficient to obtain the first brightness compensation value, where the first compensation coefficient is less than 1.
3. The method according to claim 1, characterized in that The obtaining a second brightness compensation value based on the brightness reduction value includes: The brightness reduction value is multiplied by a second compensation coefficient to obtain the second brightness compensation value, where the second compensation coefficient is less than 1.
4. The method according to any one of claims 1 to 3, characterized in that The performing brightness compensation on the first image subarea of the image based on the first brightness compensation value includes: The brightness value of the first image subarea of the previous frame image is added to the first brightness compensation value of the first image subarea to serve as the brightness value of the first image subarea of the current frame image.
5. The method according to any one of claims 1 to 3, characterized in that The performing brightness compensation on the second image subarea of the image based on the second brightness compensation value includes: The brightness value of the second image subarea of the current frame image is added to the second brightness compensation value of the second image subarea to obtain the brightness value of the second image subarea of the current frame image.
6. The method according to claim 1, characterized in that The acquiring, based on the current frame image and the previous frame image, a first image subarea with increased brightness and a brightness increase value of the first image subarea, includes: The brightness value of each image partition of the current frame image is subtracted from the brightness value of each image partition of the previous frame image to obtain the brightness difference value of each image partition, wherein the image partition whose brightness difference value is greater than 0 is the first image partition, and the brightness difference value corresponding to the first image partition is the brightness increase value of the first image partition.
7. The method according to claim 1, characterized in that Acquiring a second image subarea with reduced brightness and a brightness reduction value of the second image subarea based on a current frame image and a previous frame image, comprising: The brightness value of each image partition of the previous frame image is subtracted from the brightness value of each image partition of the current frame image to obtain the brightness difference value of each image partition, wherein the image partition whose brightness difference value is greater than 0 is the second image partition, and the brightness difference value corresponding to the second image partition is the brightness reduction value of the second image partition.
8. The method according to claim 1, characterized in that Also includes: Partitioning the image based on the display partitions of the screen to obtain at least two image partitions of the image; Obtaining brightness values of pixels in the image partition, and calculating the maximum brightness and average brightness of each pixel in the image partition; The maximum brightness value and the average brightness value are weightedly added to obtain the brightness value of the image partition.
9. An electronic device, characterized in that: include: monitor; a processor and a memory communicatively connected to the processor; The memory stores computer program instructions, which, when called by the processor, enable the processor to execute the method according to any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a processor to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Liquid crystal display brightness control method and device, and liquid crystal display equipment
CN105139809A
Display device, backlight brightness compensation system and backlight brightness compensation method
CN115171614A