Brightness compensation method and device, equipment and storage medium
By acquiring and weighting the expected brightness matrix of the MiniLED backlight display, flexible adjustment of the brightness of each frame is achieved, solving the problem that the light control algorithm cannot meet different display needs, and improving the backlight light following and display quality of the display effect.
Patent Information
- Application Number
- CN202310524796.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-10
- Publication Date
- 2024-11-12
AI Technical Summary
The light control algorithm of MiniLED backlight display cannot flexibly adjust the brightness of the backlight layer according to the display needs of the image, resulting in the fact that it can only be turned on or off as a whole during product debugging, and cannot meet the flexible adjustment of different display needs.
By obtaining the expected brightness matrix of the target frame, the first frame and the second frame in the backlight partition, determining the elements to be compensated and their weighting weights, and weighting processing is performed to achieve brightness compensation for the target frame, realizing the identification of the display requirements for each frame and Coefficient adjustment.
It realizes flexible adjustment of the brightness of the backlight layer of the MiniLED backlight display, improves the backlight follow-up of the display effect, and solves the adverse phenomena of small objects flickering, high-speed motion tailing and distinct black and white display effects.
Smart Images

Figure CN118942407A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of MiniLED backlight technology. Specifically, the present application relates to a brightness compensation method, device, equipment and storage medium. Background Art
[0002] MiniLED backlight displays are in a booming stage and are gradually occupying the high-end market in the display field. Among them, MiniLED backlight displays use MiniLED backlight technology. Compared with ordinary LCD displays, displays based on MiniLED backlight technology have excellent display effects such as high brightness, high contrast, high refresh rate and rich color performance.
[0003] At present, the main principle of MiniLED backlight technology is to control the backlight layer of the LCD display based on the light control algorithm, which cooperates with the image displayed on the panel to form a better display effect.
[0004] However, due to the limitations of the functions of the light control algorithm, the light control algorithm can only be turned on or off as a whole during product debugging, and cannot be flexibly adjusted according to the display requirements of the image. Summary of the invention
[0005] The purpose of the embodiments of the present application is to solve one of the above-mentioned technical problems.
[0006] According to one aspect of an embodiment of the present application, a brightness compensation method is provided, the method comprising:
[0007] Obtain a first matrix, a second matrix and an expected matrix, wherein the elements in the first matrix, the second matrix and the expected matrix correspond to the backlight partitions of the backlight layer one by one; the elements in the first matrix represent the expected brightness of the first frame before the target frame in the corresponding backlight partition, and the elements in the second matrix represent the expected brightness of the second frame before the first frame in the corresponding backlight partition; the elements in the expected matrix represent the expected brightness of the target frame in the corresponding backlight partition. According to at least one of the first matrix and the second matrix, determine the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated. For each element to be compensated, weight the expected brightness represented by the element to be compensated according to the weighted weight corresponding to the element to be compensated, and use the weighted expected matrix as the target matrix of the target frame, and the elements in the target matrix represent the brightness after compensating the corresponding expected brightness.
[0008] Optionally, determining the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated according to at least one of the first matrix and the second matrix includes:
[0009] Determine the first object from the first matrix and the second matrix; the number of elements corresponding to the contour of the first object in the first matrix and the second matrix is not greater than the first contour threshold. Determine the first element and the second element; the first element is an element that characterizes the expected brightness of the target part on the contour of the first object in the corresponding backlight partition, and the second element is an element that characterizes the expected brightness of the target part on the contour of the first object in the corresponding backlight partition. If the position of the first element is inconsistent with the position of the second element, determine the element to be compensated in the expected matrix and the weighted weight corresponding to the element to be compensated.
[0010] Optionally, determining the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated includes:
[0011] At least one third element is obtained from the first matrix, and the third element represents the expected brightness of the first object in the first frame in the corresponding backlight partition. For each third element, the element at the same position as the third element in the expected matrix is used as the element to be compensated. The first position difference between the position of the first element and the position of the second element is determined. According to the first position difference, the corresponding weight is determined from the first preset weight set, and the corresponding weight is used as the weighted weight corresponding to each element to be compensated, the first preset weight set includes a plurality of weights, each weight corresponds to a position difference interval, and the size of the weight is negatively correlated with the position difference interval.
[0012] Optionally, for each element to be compensated, weighting the expected brightness represented by the element to be compensated according to the weighted weight corresponding to the element to be compensated includes:
[0013] For each element to be compensated, the expected brightness represented by the corresponding third element in the first matrix is weighted according to the corresponding weighted weight to obtain the weighted amount of the expected brightness represented by the element to be compensated. For each element to be compensated in the expected matrix, adjustment is made according to the corresponding weighted amount and the expected brightness represented by the element to be compensated to obtain a weighted expected matrix.
[0014] Optionally, determining the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated according to at least one of the first matrix and the second matrix includes:
[0015] The second object is determined according to the first matrix and the second matrix; the number of elements corresponding to the contour of the second object in the first matrix and the second matrix is greater than the second contour threshold. The second position difference between the position of the fourth element and the position of the fifth element is determined, the fourth element is the element in the first matrix that represents the expected brightness of the target part on the contour of the second object in the corresponding backlight partition, and the fifth element is the element in the second matrix that represents the expected brightness of the target part on the contour of the second object in the corresponding backlight partition. If the second position difference is not less than the preset position difference threshold, the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated are determined.
[0016] Optionally, determining the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated includes:
[0017] Determine the target direction from the fifth element to the fourth element. Determine at least one sixth element from the expected matrix, the sixth element characterizing the expected brightness of the outline of the second object in the target frame in the corresponding backlight partition. Determine at least one first target element from the expected matrix, and at least one second target element corresponding to each first target element; the first target element is the sixth element, the second target element is the element in the expected matrix except the sixth element and the element surrounded by the sixth element, and the position difference between the position of the first target element and the position of the corresponding second target element is not greater than the second position difference; the direction from the first target element to the corresponding second target element is the target direction, and the first target element and a second target element are adjacent; each second target element is determined as an element to be compensated. For each element to be compensated, determine the corresponding weighted weight from the second preset weight set according to the positional relationship between the element to be compensated and the corresponding first target element, the second preset weight set includes multiple weights, each weight corresponding to a positional relationship between elements.
[0018] Optionally, for each element to be compensated in the expected matrix, weighting the expected brightness represented by the element to be compensated according to the weighted weight corresponding to the element to be compensated includes:
[0019] For each element to be compensated, the expected brightness represented by the element to be compensated is replaced by the expected brightness represented by the corresponding first target element to obtain the replaced element to be compensated. For each replaced element to be compensated in the expected matrix, the expected brightness represented by the replaced element to be compensated is weighted according to the corresponding weighted weight to obtain a weighted expected matrix.
[0020] Optionally, determining the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated according to at least one of the first matrix and the second matrix includes:
[0021] Perform grayscale conversion on the elements in the first matrix to obtain a third matrix, wherein the elements in the third matrix represent the grayscale of the first frame in the corresponding backlight partition. Count the first number of the seventh element and the second number of the eighth element in the third matrix, wherein the grayscale corresponding to the seventh element is not less than the first grayscale threshold, and the grayscale corresponding to the eighth element is not greater than the second grayscale threshold. If the first number is not less than the first number threshold, and the second number is not less than the second number threshold, determine the elements to be compensated in the expected matrix, and the weighted weights corresponding to the elements to be compensated.
[0022] Optionally, determining the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated includes:
[0023] Perform grayscale conversion on the elements in the expected matrix to obtain a fourth matrix; the elements in the fourth matrix represent the grayscale of the target frame in the corresponding backlight partition. Determine at least one seventh element from the expected matrix, and the at least one seventh element represents the grayscale corresponding to the boundary in the target frame. For each seventh element in the at least one seventh element, the seventh element is used as the element to be compensated, and the eighth element adjacent to the seventh element is used as the element to be compensated. Determine a third number of corresponding seventh elements in all elements to be compensated, and a fourth number of corresponding eighth elements, determine a weight from a third preset weight set according to the third number and the fourth number, and use the determined weight as the weighted weight corresponding to each element to be compensated.
[0024] Optionally, for each element to be compensated, weighting the expected brightness represented by the element to be compensated according to the weighted weight corresponding to the element to be compensated includes:
[0025] For each element to be compensated in the expected matrix, the element to be compensated is mean filtered according to the elements in the expected matrix within a preset range centered on the element to be compensated, and the filtered element to be compensated is obtained; the elements in the preset range include the seventh element and the eighth element adjacent to the element to be compensated. For each filtered element to be compensated, the expected brightness represented by the filtered element to be compensated is weighted according to the corresponding weighted weight to obtain a weighted expected matrix.
[0026] According to another aspect of an embodiment of the present application, a brightness compensation device is provided, the device comprising:
[0027] An acquisition module is used to acquire a first matrix, a second matrix and an expected matrix, wherein the elements in the first matrix, the second matrix and the expected matrix correspond one-to-one to the backlight partitions of the backlight layer; the elements in the first matrix represent the expected brightness of the first frame before the target frame in the corresponding backlight partition, and the elements in the second matrix represent the expected brightness of the second frame before the first frame in the corresponding backlight partition; the elements in the expected matrix represent the expected brightness of the target frame in the corresponding backlight partition.
[0028] The determination module is used to determine the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated according to at least one of the first matrix and the second matrix.
[0029] The weighting module is used to weight the expected brightness represented by each element to be compensated according to the weighted weight corresponding to the element to be compensated, and use the weighted expected matrix as the target matrix of the target frame, and the elements in the target matrix represent the brightness after compensating the corresponding expected brightness.
[0030] An embodiment of the present application also provides an electronic device, which includes: a memory, a processor, and a computer program stored in the memory, characterized in that the processor executes the computer program to implement the steps of a brightness processing method provided in an embodiment of the present application.
[0031] The embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of a brightness processing method provided in the embodiment of the present application are implemented.
[0032] The beneficial effects of the technical solution provided by the embodiment of the present application are:
[0033] A third matrix representing the expected brightness of the target frame in the corresponding backlight partition is obtained, as well as a first matrix and a second matrix representing the expected brightness of the first frame and the second frame before the target frame in the corresponding backlight partition, and the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated are determined according to at least one of the first matrix and the first matrix. Since the display content of each frame is different, that is, the display requirements of each frame are different, each frame is taken as a target frame, and the elements to be compensated and the weighted weights are determined for the target frame, which is essentially to realize the identification of the display requirements of each frame. For each element to be compensated, the expected brightness represented by the element to be compensated is weighted according to the weighted weight corresponding to the element to be compensated, and the weighted expected matrix is used as the target matrix of the target frame, and the elements in the target matrix represent the brightness after the corresponding expected brightness is compensated. That is, the expected brightness represented by the expected matrix is weighted in a weighted manner, and weighting is a coefficient adjustment method, that is, the purpose of coefficient adjustment of the expected brightness of the target frame in the backlight partition of the backlight layer is achieved.
[0034] Furthermore, by controlling the brightness of the backlight partitions of the backlight layer based on the target matrix of the target frame, a good backlight following effect can be achieved on the display interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.
[0036] Figure 1 A schematic diagram of a MiniLED backlight display system architecture is provided for an embodiment of the present application;
[0037] Figure 2 A schematic diagram of a flow chart of a brightness compensation method provided in an embodiment of the present application;
[0038] Figure 3a A schematic diagram of a display effect before compensation in a first compensation mode provided in an embodiment of the present application;
[0039] Figure 3b A schematic diagram of a display effect after compensation in a first compensation mode provided in an embodiment of the present application;
[0040] Figure 4a A schematic diagram of a display effect before compensation in a second compensation mode provided in an embodiment of the present application;
[0041] Figure 4b A schematic diagram of a display effect after compensation in a second compensation mode provided in an embodiment of the present application;
[0042] Figure 5a A schematic diagram of a display effect before compensation in a third compensation mode provided in an embodiment of the present application;
[0043] Figure 5b A schematic diagram of a display effect after compensation in a third compensation mode provided in an embodiment of the present application;
[0044] Figure 6 A schematic diagram of the structure of a brightness compensation device provided in an embodiment of the present application;
[0045] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0047] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" indicates that it is implemented as "A", or is implemented as "A", or is implemented as "A and B".
[0048] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0049] MiniLED backlight display: a desktop display device that uses MiniLED backlight technology.
[0050] MiniLED backlight technology: By reducing the size of the LED lamp beads in the backlight layer of the display panel, the panel can accommodate more lamp beads while keeping the area unchanged, so as to achieve a high-brightness display effect. Among them, the fundamental reason why the LCD screen can display the picture is the existence of the light source, and its light source is the backlight layer. The main effect of MiniLED backlight technology is on the backlight layer of the LCD, specifically the backlight lamp beads (also called backlight LEDs) of the backlight layer. Because the backlight layer is a module composed of many backlight lamp beads and can emit white light, the number of backlight lamp beads in the module will have a crucial impact on the maximum brightness and uniformity of the screen.
[0051] Backlight partition: It includes the partition of multiple backlight LEDs, and is also a parameter of MiniLED backlight display. Taking a 4K resolution MiniLED backlight LCD display as an example, the total number of screen pixels is 3840×2160=8294400; if the backlight partition is 384, each backlight area corresponds to 8294400÷384=21,600 pixels. If the backlight partition is 2304, the pixels corresponding to each backlight partition will become 8294,00÷2304=3,600. A backlight partition can have one or more backlight LEDs.
[0052] Light control signal: a signal that controls the brightness of the backlight partition, including the brightness value of the backlight partition. Among them, the first matrix is the expected light control signal of the first frame, the second matrix is the expected light control signal of the second frame, the expected matrix is the expected light control signal of the target frame, and the target matrix is the light control signal after compensation of the target frame. Among them, the embodiment of the present application represents the light control signal through a matrix, such as the first matrix and the second matrix are the light control signals.
[0053] Signal source: the source of the image signal. After being processed by the signal processing device, the image signal source can be separated into an image signal and a light control signal. The image signal will be transmitted to the display panel for image display, while the light control signal will be transmitted to the zone light control panel for backlight zone control.
[0054] Mean filtering: A typical linear filtering algorithm, which refers to giving a template to the target pixel in the image. The template includes the surrounding adjacent pixels (the 8 pixels around the target pixel as the center constitute a filtering template, which also includes the target pixel itself), and then using the average value of the pixel values of each pixel in the template to replace the original pixel value of the target pixel.
[0055] The embodiment of the present application provides a method for processing the brightness of the backlight layer, which can be implemented by a partitioned light control processing device of a MiniLED display system. The partitioned light control processing device involved in the embodiment of the present application can process the light control signal of each video frame and output a new light control signal, so that the technical solution of the embodiment of the present application can achieve a good light following effect of the backlight layer.
[0056] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.
[0057] Figure 1 A schematic diagram of a MiniLED backlight display system architecture provided in an embodiment of the present application.
[0058] The system includes a signal source 101 , a signal processing device 102 , a signal conversion device 103 , a display panel 104 , a zone light control processing device 105 , a signal distribution device 106 , and a zone light control lamp board 107 .
[0059] The signal source 101 generates a frame signal and sends the frame signal to the signal processing device. The signal processing device receives the frame signal, processes and separates the frame signal, and obtains an image signal and a light control signal.
[0060] The signal processing device 102 transmits the image signal to the signal conversion device 103. After receiving the image signal, the signal conversion device 103 performs signal conversion on the image signal to obtain a signal that can control the display content of the display panel. The signal conversion device 103 transmits the obtained signal to the display panel 104. The display panel 104 displays according to the received signal.
[0061] The signal processing device 102 transmits the light control signal to the partition light control processing device 105 . The partition light control processing device 105 receives the light control signal, performs compensation processing on the light control signal, obtains a new light control signal, and sends the new light control signal to the signal distribution device 106 .
[0062] The signal distribution device 106 receives the light control signal and distributes the light control signal to each sub-area light control lamp board 107 of the backlight area. After receiving the light control signal, the sub-area light control lamp board 107 controls the brightness of the backlight lamp beads of the backlight sub-area according to the light control signal.
[0063] In order to more clearly understand the application of a brightness compensation method in the system 10, the present application also provides an example for detailed description. This example includes the following steps S1001 to S1005. The target frame is any frame signal.
[0064] S1001, the signal processing device 101 obtains video data of a target frame.
[0065] S1002, the signal processing device 101 analyzes the target frame, obtains the light control signal of the target frame, and sends it to the partition light control processing device.
[0066] S1003, the partitioned light control processing device 105 receives the light control signal expected in the target frame, and obtains a compensation mode of the light control signal.
[0067] If the first compensation mode exists in the compensation modes, the flicker compensation algorithm is started and the expected light control signal is processed. If not, the flicker compensation algorithm is turned off.
[0068] If the second compensation mode exists in the compensation mode, the direction prediction algorithm is started and the expected light control signal is processed. If not, the direction prediction algorithm is turned off.
[0069] If the third compensation mode exists in the compensation mode, the mean filter algorithm is started and the expected light control signal is processed. If not, the mean filter algorithm is turned off.
[0070] Finally, the target light control signal of the target frame is obtained.
[0071] S1004 , the partitioned light control processing device 105 transmits a target light control signal of a target frame to the signal distribution device 106 .
[0072] S1005 , the signal distribution device 106 performs a timing synchronization adjustment process so that the target light control signal and the image signal are output synchronously.
[0073] Since the transmission of the target light control signal is low-speed transmission and requires more transmission time, the image signal and the target light control signal need to be synchronously adjusted before output.
[0074] Figure 2 A schematic flow chart of a brightness compensation method is shown, wherein the method comprises the following steps S210 to S230.
[0075] S210, obtaining a first matrix, a second matrix and an expected matrix, wherein the elements in the first matrix, the second matrix and the expected matrix correspond one-to-one to the backlight partitions of the backlight layer; the elements in the first matrix represent the expected brightness of the first frame before the target frame in the corresponding backlight partition, and the elements in the second matrix represent the expected brightness of the second frame before the first frame in the corresponding backlight partition; the elements in the expected matrix represent the expected brightness of the target frame in the corresponding backlight partition.
[0076] Since the light control signal is transmitted via low-speed SPI and the image signal is transmitted via high-speed VBO / eDP signal, when the image signal arrives at the signal conversion device, the light control signal has not yet arrived at the signal distribution device. Before transmitting the light control signal of the target frame to the signal distribution device, the expected light control signal of the target frame needs to be processed in steps S210 to S230. In other words, it is necessary to process the light control signal of the target frame, that is, the expected matrix, before transmitting the image signal of the target frame. Generally speaking, low-speed SPI transmission will be 3 to 5 frames slower than high-speed VBO / eDP signal transmission. Therefore, the target frame can be selected as the 3rd to 5th frame after the current frame in order to synchronize with the image signal.
[0077] Optionally, after determining the target frame, the frame before the target frame can be used as the first frame, and the frame before the previous frame can be used as the second frame, that is, the second frame, the first frame, and the target frame are three frames displayed continuously.
[0078] S220: Determine, according to at least one of the first matrix and the second matrix, elements to be compensated in the expected matrix and weighted weights corresponding to the elements to be compensated.
[0079] S230, for each element to be compensated, weight the expected brightness represented by the element to be compensated according to the weighted weight corresponding to the element to be compensated, and use the weighted expected matrix as the target matrix of the target frame, and the elements in the target matrix represent the brightness after compensating the corresponding expected brightness.
[0080] Since the content of each frame signal is different, that is, the display requirements of each frame are different, each frame is taken as a target frame, and the elements to be compensated and the weighted weights are determined for the target frame, which is essentially to realize the recognition of the display requirements of each frame. The expected brightness represented by the expected matrix is weighted in a weighted manner. Weighting is a coefficient adjustment. Therefore, this method also achieves the purpose of coefficient adjustment of the expected brightness of the backlight partition of the target frame in the backlight layer, and because the coefficient varies with the content of each target frame, it also achieves the purpose of flexible coefficient adjustment.
[0081] The existing light control algorithm causes the display to have the following undesirable display effects: when a small object (e.g., the pixels occupied are smaller than the pixels corresponding to a backlight partition) moves, a flickering display effect is presented. If the expected display effect of multiple consecutive frames is the movement of a small object, and the actual control logic of the backlight layer is that the backlight lamp beads are alternately lit and extinguished in sequence, and the display interface presents a flickering display effect of a small object moving, this is obviously different from the expected display effect.
[0082] Optionally, an embodiment of the present application provides a first compensation mode to solve the above technical problem.
[0083] In a possible implementation of this embodiment, it is determined whether the target frame needs to be processed by the first compensation mode according to at least one of the first matrix and the second matrix. Specifically, the following steps Sa11 to Sa13 are included.
[0084] Sa11, determine the first object from the first matrix and the second matrix.
[0085] Optionally, the first matrix and the second matrix are processed according to a preset contour determination method to obtain an element set of the respective contours of at least one object in the first frame in the first matrix, and an element set of the respective contours of at least one object in the second frame in the second matrix, wherein each element set includes contour elements of the contour of an object in the corresponding matrix.
[0086] Optionally, the preset contour determination method includes: counting multiple initial contour elements in the matrix, where the initial contour element is an element whose expected brightness difference represented by at least one adjacent element is greater than a preset brightness difference. In one example, the preset brightness difference is 128 nits. Starting from the first initial contour element, multiple initial contour elements matching the initial contour element are determined in the matrix, and the first initial contour element and the matching multiple initial contour elements are used as contour elements of the first object in the first matrix to obtain an element set of the first object in the first matrix; wherein the multiple initial contour elements matching an initial contour element can be connected into a closed area. The element set of the second object is obtained in the same way until the last initial contour element, and finally the element set of each object contour in the matrix in the first frame is obtained.
[0087] Optionally, two element sets associated with the first object are screened out, and the two associated element sets are element sets of the contour of the first object in the first matrix and the second matrix, respectively, and the number of elements in the two element sets is not greater than the first contour threshold. Optionally, the first contour threshold is any value below 10. Among them, there is a one-to-one correspondence between the two element sets associated with the first object. Optionally, the two element sets associated with the first object each include at least one characteristic element, and each characteristic element corresponds to each other. Any pair of one-to-one corresponding two characteristic elements not only represents the same expected brightness, but also has a consistent positional relationship with other elements in the corresponding element set. Among them, at least one characteristic element can be all elements in the element set, or it can be an element that meets the preset characteristics. The preset characteristics can be determined according to the expected brightness of the element.
[0088] Sa12, determine the first element and the second element; the first element is an element characterizing the expected brightness of the target part on the contour of the first object in the corresponding backlight partition, and the second element is an element characterizing the expected brightness of the target part on the contour of the first object in the corresponding backlight partition.
[0089] The target part can be determined by two element sets associated with the first object. Specifically, an element that meets the preset condition is screened out from the element set of the contour of the first object in the first matrix, the element is determined as the first element, and the part on the contour corresponding to the first element is determined as the target part. Optionally, the preset condition includes: the expected brightness represented by the element is greater than a preset brightness threshold. Then, the second element is determined from the element set of the contour of the first object in the second matrix according to the first element. The expected brightness represented by the first element and the second element corresponding to the target part of the first object is consistent.
[0090] Sa13, if the position of the first element is inconsistent with the position of the second element, determine the element to be compensated in the expected matrix and the weighted weight corresponding to the element to be compensated.
[0091] Wherein, when the first element and the second element are inconsistent and the number of elements of the two element sets associated with the first object is not greater than the first contour threshold, it can be determined that the first compensation mode is required to perform compensation processing.
[0092] In an implementation of this embodiment, determining the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated may include the following steps Sa21 to Sa24.
[0093] Sa21, obtain at least one third element from the first matrix, where the third element represents the expected brightness of the first object in the corresponding backlight subarea in the first frame.
[0094] Specifically, according to the element set of the first object in the first matrix, elements surrounded by all contour elements in the element set are obtained, and both the surrounded elements and the elements in the element set are used as the third element.
[0095] Sa22, for each third element, the element at the same position as the third element in the expected matrix is used as the element to be compensated.
[0096] Sa23, determine the first position difference between the position of the first element and the position of the second element.
[0097] Specifically, the position of the first element in the first matrix is obtained, and the position of the second element in the second matrix is obtained, and the first position difference is determined according to the position of the first element and the position of the second element.
[0098] Sa24, determines the corresponding weight from the first preset weight set according to the first position difference, and uses the corresponding weight as the weighted weight corresponding to each element to be compensated. The first preset weight set includes multiple weights, each weight corresponds to a position difference interval, and the size of the weight is negatively correlated with the position difference interval.
[0099] A first preset weight set is exemplarily provided, as shown in Table 1.
[0100] Table 1
[0101] Position difference interval 1≤X<4 4≤X<10 10≤X1<20 20≤X1 Weighted Weight 0.78 0.5 0.2 0
[0102] In a possible implementation of this embodiment, step S230 includes the following steps Sa31 to Sa32.
[0103] Sa31, for each element to be compensated, weight the expected brightness represented by the corresponding third element in the first matrix according to the corresponding weighted weight to obtain a weighted amount of the expected brightness represented by the element to be compensated.
[0104] Sa32, for each element to be compensated in the expected matrix, adjustment is performed according to the corresponding weighted amount and the expected brightness represented by the element to be compensated, to obtain a weighted expected matrix.
[0105] Specifically, for each element to be compensated, the corresponding weighted amount is added to the expected brightness represented by the corresponding element to be compensated to obtain the weighted element to be compensated. The expected matrix including multiple weighted elements to be compensated is used as the weighted expected matrix.
[0106] In order to more clearly understand the compensation process of the first compensation mode, the present application also provides an example for detailed description. This example includes Figure 3a and Figure 3b . Figure 3a and Figure 3bThe white square in the figure is the first object, and the white square is in motion.
[0107] Figure 3a In the video, the front backlight of the white square has poor tracking performance, the brightness of the backlight points is not smooth and there are stutters, and there is an effect that the white square is flickering during movement. Figure 3b In the figure, the front light of the white square follows the light better, the backlight turns on smoothly, and there is no flickering effect when the white square moves.
[0108] Based on the existing light control algorithm, the display still has the following poor display effects: for high-speed moving objects, poor backlight tailing will occur. Specifically, the light control signal is a low-speed SPI transmission, and the image signal is a high-speed VBO / eDP signal. Since the light control signal and the image signal are transmitted using different physical links and transmission protocols, there will be a slight time difference between the image display and the backlight partition display (generally 3 to 5 frames). If the expected display effect of multiple consecutive frames is that the object is moving at high speed, due to the high speed of the object, the slight time difference will cause a large position difference between the image display and the brightness display of the backlight partition, and this position difference presents a poor tailing phenomenon.
[0109] Optionally, an embodiment of the present application provides a second compensation mode to solve the above technical problem.
[0110] In a possible implementation of this embodiment, whether the target frame needs to be processed by the second compensation mode is determined according to at least one of the first matrix and the second matrix. Specifically, the following steps Sb11 to Sb13 are included.
[0111] Sb11, determining a second object from the first matrix and the second matrix; the number of elements corresponding to the contour of the second object in the first matrix and the second matrix are both greater than the second contour threshold.
[0112] Specifically, two element sets associated with the second object are screened out, the two associated element sets are element sets of the contour of the second object in the first matrix and the second matrix respectively, and the number of elements in the two element sets is not greater than the second contour threshold.
[0113] Sb12 determines a second position difference between the position of the fourth element and the position of the fifth element.
[0114] Among them, the fourth element is an element in the first matrix that represents the expected brightness of the target part on the contour of the second object in the corresponding backlight partition, and the fifth element is an element in the second matrix that represents the expected brightness of the target part on the contour of the second object in the corresponding backlight partition. The determination process of the fourth element and the fifth element can refer to the determination process of the first element and the second element, and for the sake of simplicity, it will not be repeated here.
[0115] Sb13: If the second position difference is not less than the preset position difference threshold, determine the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated.
[0116] The second position difference can be understood as the distance moved by the second object from the second frame to the first frame. When the distance reaches a certain distance threshold, the second object can be judged to be a high-speed moving object. Therefore, if the second position difference is not less than the preset position difference threshold, it can be understood that the second object is moving at a high speed.
[0117] In a possible implementation of this embodiment, step S220 includes the following steps Sb21 to Sb24.
[0118] Sb21, determine the target direction from the fifth element to the fourth element. Specifically, obtain the direction from the position of the fifth element and the position of the fourth element and use it as the target direction.
[0119] Sb22, determining at least one sixth element from the expected matrix, where the sixth element represents the expected brightness of the contour of the second object in the target frame in the corresponding backlight partition.
[0120] Specifically, the expected matrix is processed according to a preset contour determination method to obtain an element set of each object in the at least one object in the target frame in the expected matrix, an element set of the second object in the expected matrix is determined, and an element in the determined element set is used as the sixth element.
[0121] Sb23 determines at least one first target element from the expected matrix, and at least one second target element corresponding to each first target element.
[0122] Among them, the first target element is the sixth element, the second target element is the element in the expected matrix except the sixth element and the elements surrounded by the sixth element, the position difference between the position of the first target element and the corresponding second target element is not greater than the second position difference; the direction from the first target element to the corresponding second target element is the target direction, and the first target element and one second target element are adjacent; each second target element is determined as an element to be compensated.
[0123] Sb24, for each element to be compensated, determine the corresponding weighted weight from the second preset weight set according to the positional relationship between the element to be compensated and the corresponding first target element, the second preset weight set includes multiple weights, each weight corresponds to a positional relationship between elements.
[0124] Among them, the weighted weight of the element to be compensated is determined according to the positional relationship between the element to be compensated and the corresponding first target element, and the weighted weight is proportional to whether the positional relationship is close, that is, the closer the positional relationship, the higher the weighted weight, and vice versa.
[0125] A second preset weight set is exemplarily provided, as shown in Table 2. Wherein, X is the number of the eighth elements, and X2 is the number of the seventh elements.
[0126] Table 2
[0127] The number of elements between 0 1 2 3 4 5 6 7 8 9 Weighted Weight 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0
[0128] In one implementation of this embodiment, step S230 includes the following steps Sb31 to Sb32.
[0129] Sb31, for each element to be compensated, replace the expected brightness represented by the element to be compensated with the expected brightness represented by the corresponding first target element to obtain the replaced element to be compensated.
[0130] Sb32, for each replaced element to be compensated in the expected matrix, weight the expected brightness represented by the replaced element to be compensated according to the corresponding weighted weight to obtain a weighted expected matrix.
[0131] In order to more clearly understand the compensation process for the small object flicker pattern, this application also provides an example for detailed description. This example includes Figure 4a and Figure 4b , the white oval is the second object.
[0132] Figure 4a In the middle, the backlight in front of the white oval block is obviously delayed, resulting in dark areas, and the brightness of the backlight points is not smooth and stuttering. Figure 4b In the middle, the front backlight of the white oval block has good tracking performance, and the brightness of the front backlight point is relatively smooth.
[0133] The existing light control algorithm also causes the following undesirable display effects: for display content with distinct black and white, dark edges will appear on the edges. Since the existing light control algorithm does not fixedly enable edge compensation of the backlight partition for the edges of the display content, for display content with the expected display effect of distinct black and white, based on the existing light control algorithm, the actual display effect is a dark edge effect at the edge of the black and white boundary of the display content, rather than the expected display effect of distinct black and white.
[0134] Optionally, an embodiment of the present application provides a third compensation mode to solve the above technical problem.
[0135] In a possible implementation of this embodiment, step S220 includes: determining whether the target frame needs to be processed by the third compensation mode according to at least one of the first matrix and the second matrix. Specifically, it includes the following steps Sc11 to Sc13.
[0136] Sc1, grayscale conversion is performed on the elements in the first matrix to obtain a third matrix, where the elements in the third matrix represent the grayscale of the first frame in the corresponding backlight subarea.
[0137] Specifically, grayscale conversion is performed on each element in the first matrix, and a matrix is constructed according to each converted element, so as to obtain the third matrix.
[0138] Sc2, counting the first number of the seventh element and the second number of the eighth element in the third matrix.
[0139] The grayscale corresponding to the seventh element is not less than the first grayscale threshold, and the grayscale corresponding to the eighth element is not greater than the second grayscale threshold. The brightness corresponding to the first grayscale threshold is close to the maximum brightness, and the brightness corresponding to the second grayscale threshold is close to the minimum brightness.
[0140] Sc3: If the first number is not less than the first number threshold, and the second number is not less than the second number threshold, determine the elements to be compensated in the expected matrix, and the weighted weights corresponding to the elements to be compensated.
[0141] Optionally, Sc2 includes: counting multiple groups of two adjacent elements in the third matrix to obtain a first quantity and a second quantity. The two adjacent elements are the seventh element and the eighth element. Since the seventh element and the eighth element are adjacent to a boundary edge in the corresponding target frame, a dark edge effect will be presented at the boundary edge. This optional method is to determine whether such a boundary edge exists in the target frame.
[0142] In an implementation of this embodiment, determining the elements to be compensated in the expected matrix and the weights corresponding to the elements to be compensated may include the following steps Sc21 to Sc24.
[0143] Sc21, performing grayscale conversion on the elements in the expected matrix to obtain a fourth matrix; the elements in the fourth matrix represent the grayscale of the target frame in the corresponding backlight partition.
[0144] Sc22, determine at least one seventh element from the expected matrix, and the at least one seventh element represents the grayscale corresponding to the boundary in the target frame.
[0145] Sc23, for each seventh element in the at least one seventh element, take the seventh element as the element to be compensated, and take the eighth element adjacent to the seventh element as the element to be compensated.
[0146] Sc24, determine the third number of the corresponding seventh elements among all the elements to be compensated, and the fourth number of the corresponding eighth elements, determine a weight from the third preset weight set according to the third number and the fourth number, and use the determined weight as the weighted weight corresponding to each element to be compensated.
[0147] A third preset weight set is exemplarily provided, as shown in Table 3. Wherein, X1 is the number of eighth elements, and X2 is the number of seventh elements.
[0148] Table 3
[0149]
[0150] In an implementation of this embodiment, step S230 includes the following steps Sc31 to Sc32.
[0151] Sc31, for each element to be compensated in the expected matrix, perform mean filtering on the element to be compensated according to the elements in the expected matrix within a preset range centered on the element to be compensated, to obtain the filtered element to be compensated.
[0152] The elements within the preset range include the seventh element and the eighth element adjacent to the element to be compensated. Optionally, taking the element to be compensated as the center, elements of rows and columns with preset values are obtained, and mean filtering is performed to obtain the filtered element to be compensated.
[0153] Sc32, for each filtered element to be compensated, weight the expected brightness represented by the filtered element to be compensated according to the corresponding weighted weight to obtain a weighted expected matrix.
[0154] Specifically, the expected brightness represented by the element to be compensated is weighted by the weighted weight to obtain the weighted element to be compensated, and the expected brightness represented by the element to be compensated is replaced by the expected brightness represented by the weighted element to be compensated. Finally, a weighted expected matrix is obtained.
[0155] In order to more clearly understand whether the target frame needs to be processed in the third compensation mode, the present application also provides an example for detailed description. This example includes Figure 5a and Figure 5b According to Table 3, the first quantity threshold can be set to 10 and the second quantity threshold can be set to 1.
[0156] Figure 5a There are seventh and eighth elements, the number of the seventh element is obviously greater than 10, and the number of the eighth element is greater than 1, which can be processed by the third compensation mode. Figure 5b In , there is no eighth element, so there is no need to process it through the third compensation mode.
[0157] Figure 6 A brightness compensation device is shown, which includes an acquisition module 610, a determination module 620 and a weighting module 630.
[0158] The acquisition module 610 is used to acquire a first matrix, a second matrix and an expected matrix, wherein the elements in the first matrix, the second matrix and the expected matrix correspond one-to-one to the backlight partitions of the backlight layer; the elements in the first matrix represent the expected brightness of the first frame before the target frame in the corresponding backlight partition, and the elements in the second matrix represent the expected brightness of the second frame before the first frame in the corresponding backlight partition; the elements in the expected matrix represent the expected brightness of the target frame in the corresponding backlight partition.
[0159] The determination module 620 is used to determine the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated according to at least one of the first matrix and the second matrix.
[0160] The weighting module 630 is used to weight the expected brightness represented by each element to be compensated according to the weighted weight corresponding to the element to be compensated, and use the weighted expected matrix as the target matrix of the target frame, and the elements in the target matrix represent the brightness after compensating the corresponding expected brightness.
[0161] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0162] An electronic device is provided in an embodiment of the present application, including a memory, a processor, and a computer program stored in the memory. The processor executes the above-mentioned computer program to implement the steps of a brightness compensation method, which can achieve good backlight tracking performance compared with the prior art.
[0163] See also Figure 7 The present application also provides a specific example of an electronic device. Figure 7 The electronic device 7000 shown includes: a processor 7001 and a memory 7003. The processor 7001 and the memory 7003 are connected, such as through a bus 7002. Optionally, the electronic device 7000 may also include a transceiver 7004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 7004 is not limited to one, and the structure of the electronic device 7000 does not constitute a limitation on the embodiments of the present application.
[0164] Processor 7001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 7001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0165] The bus 7002 may include a path to transmit information between the above components. The bus 7002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 7002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0166] The memory 7003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.
[0167] The memory 7003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 7001. The processor 7001 is used to execute the computer program stored in the memory 7003 to implement the steps shown in the above method embodiment.
[0168] Among them, electronic devices include but are not limited to: MiniLED displays.
[0169] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.
[0170] The embodiment of the present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiment when executed by a processor.
[0171] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0172] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. A brightness compensation method, It is characterized in that include: Acquire a first matrix, a second matrix and an expected matrix, wherein the elements in the first matrix, the second matrix and the expected matrix correspond one-to-one to the backlight partitions of the backlight layer; The elements in the first matrix represent the expected brightness of the first frame before the target frame in the corresponding backlight subarea, and the elements in the second matrix represent the expected brightness of the second frame before the first frame in the corresponding backlight subarea; The elements in the expected matrix represent the expected brightness of the target frame in the corresponding backlight partition; Determine, according to at least one of the first matrix and the second matrix, elements to be compensated in the expected matrix and weighted weights corresponding to the elements to be compensated; For each element to be compensated, the expected brightness represented by the element to be compensated is weighted according to the weighted weight corresponding to the element to be compensated, and the weighted expected matrix is used as the target matrix of the target frame, and the elements in the target matrix represent the brightness after compensating the corresponding expected brightness.
2. The method according to claim 1, It is characterized in that The determining, according to at least one of the first matrix and the second matrix, the to-be-compensated elements in the expected matrix and the weighted weights corresponding to the to-be-compensated elements comprises: Determine a first object from the first matrix and the second matrix; the number of elements corresponding to the contour of the first object in the first matrix and the second matrix is not greater than a first contour threshold; Determine a first element and a second element; the first element is an element characterizing the expected brightness of the target part on the contour of the first object in the corresponding backlight partition, and the second element is an element characterizing the expected brightness of the target part on the contour of the first object in the corresponding backlight partition; If the position of the first element is inconsistent with the position of the second element, determine the elements to be compensated in the expected matrix and the weights corresponding to the elements to be compensated.
3. The method according to claim 2, It is characterized in that The determining of the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated includes: Obtain at least one third element from the first matrix, wherein the third element represents an expected brightness of the first object in the corresponding backlight subarea in the first frame; For each third element, taking the element in the expected matrix at the same position as the third element as the element to be compensated; determining a first position difference between a position of the first element and a position of the second element; According to the first position difference, a corresponding weight is determined from a first preset weight set, and the corresponding weight is used as a weighted weight corresponding to each element to be compensated. The first preset weight set includes multiple weights, each weight corresponds to a position difference interval, and the size of the weight is negatively correlated with the position difference interval.
4. The method according to claim 2, It is characterized in that The step of weighting the expected brightness represented by each element to be compensated according to the weighted weight corresponding to the element to be compensated includes: For each element to be compensated, weighting the expected brightness represented by the corresponding third element in the first matrix according to the corresponding weighted weight, to obtain a weighted amount of the expected brightness represented by the element to be compensated; For each element to be compensated in the expected matrix, adjustment is performed according to the corresponding weighted amount and the expected brightness represented by the element to be compensated, so as to obtain the weighted expected matrix.
5. The method according to claim 1, It is characterized in that The determining, according to at least one of the first matrix and the second matrix, the to-be-compensated elements in the expected matrix and the weighted weights corresponding to the to-be-compensated elements comprises: Determine a second object according to the first matrix and the second matrix; the number of elements corresponding to the contour of the second object in the first matrix and the second matrix is greater than a second contour threshold; Determine a second position difference between a position of a fourth element and a position of a fifth element, wherein the fourth element is an element in the first matrix representing an expected brightness of a target portion on the contour of the second object in a corresponding backlight partition, and the fifth element is an element in the second matrix representing an expected brightness of a target portion on the contour of the second object in a corresponding backlight partition; If the second position difference is not less than a preset position difference threshold, the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated are determined.
6. The method according to claim 5, It is characterized in that The determining of the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated includes: Determine a target direction from the fifth element to the fourth element; Determine at least one sixth element from the expected matrix, wherein the sixth element represents an expected brightness of the contour of the second object in the target frame in the corresponding backlight partition; Determine at least one first target element and at least one second target element corresponding to each first target element from the expected matrix; the first target element is the sixth element, the second target element is an element in the expected matrix other than the sixth element and the elements surrounded by the sixth element, the position difference between the position of the first target element and the position of the corresponding second target element is not greater than the second position difference; the direction from the first target element to the corresponding second target element is the target direction, and the first target element is adjacent to a second target element; determine each second target element as the element to be compensated; For each element to be compensated, a corresponding weighted weight is determined from a second preset weight set according to a positional relationship between the element to be compensated and the corresponding first target element, wherein the second preset weight set includes a plurality of weights, each weight corresponding to a positional relationship between elements.
7. The method according to claim 6, It is characterized in that The step of weighting the expected brightness represented by each to-be-compensated element in the expected matrix according to the weighted weight corresponding to the to-be-compensated element comprises: For each element to be compensated, replacing the expected brightness represented by the element to be compensated with the expected brightness represented by the corresponding first target element to obtain the replaced element to be compensated; For each replaced element to be compensated in the expected matrix, the expected brightness represented by the replaced element to be compensated is weighted according to the corresponding weighted weight to obtain the weighted expected matrix.
8. The method according to claim 1, It is characterized in that The determining, according to at least one of the first matrix and the second matrix, the to-be-compensated elements in the expected matrix and the weighted weights corresponding to the to-be-compensated elements comprises: Performing grayscale conversion on elements in the first matrix to obtain a third matrix, wherein the elements in the third matrix represent the grayscale of the first frame in the corresponding backlight subarea; Counting a first number of seventh elements and a second number of eighth elements in the third matrix, the grayscale corresponding to the seventh element is not less than a first grayscale threshold, and the grayscale corresponding to the eighth element is not greater than a second grayscale threshold; If the first number is not less than a first number threshold, and the second number is not less than a second number threshold, determine the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated.
9. The method according to claim 8, It is characterized in that The determining of the elements to be compensated in the expected matrix and the weighted weights corresponding to the elements to be compensated includes: Performing grayscale conversion on the elements in the expected matrix to obtain a fourth matrix; the elements in the fourth matrix represent the grayscale of the target frame in the corresponding backlight partition; Determine at least one seventh element from the expected matrix, wherein the at least one seventh element represents a grayscale corresponding to a boundary in the target frame; For each seventh element in the at least one seventh element, taking the seventh element as the element to be compensated, and taking the eighth element adjacent to the seventh element as the element to be compensated; Determine a third number of corresponding seventh elements among all elements to be compensated, and a fourth number of corresponding eighth elements, determine a weight from a third preset weight set according to the third number and the fourth number, and use the determined weight as the weighted weight corresponding to each element to be compensated.
10. The method according to claim 9, It is characterized in that The step of weighting the expected brightness represented by each element to be compensated according to the weighted weight corresponding to the element to be compensated includes: For each element to be compensated in the expected matrix, performing mean filtering on the element to be compensated according to the elements in the expected matrix within a preset range centered on the element to be compensated, to obtain a filtered element to be compensated; the elements in the preset range include the seventh element and the eighth element adjacent to the element to be compensated; For each filtered element to be compensated, the expected brightness represented by the filtered element to be compensated is weighted according to the corresponding weighted weight to obtain the weighted expected matrix.
11. A brightness compensation device, It is characterized in that The method comprises: An acquisition module is used to acquire a first matrix, a second matrix and an expected matrix, wherein the elements in the first matrix, the second matrix and the expected matrix correspond to the backlight partitions of the backlight layer one by one; the elements in the first matrix represent the expected brightness of the first frame before the target frame in the corresponding backlight partition, the elements in the second matrix represent the expected brightness of the second frame before the first frame in the corresponding backlight partition; the elements in the expected matrix represent the expected brightness of the target frame in the corresponding backlight partition; A determination module, configured to determine, according to at least one of the first matrix and the second matrix, elements to be compensated in the expected matrix and weighted weights corresponding to the elements to be compensated; A weighting module is used to weight the expected brightness represented by each element to be compensated according to the weighted weight corresponding to the element to be compensated, and use the weighted expected matrix as the target matrix of the target frame, wherein the elements in the target matrix represent the brightness after compensating the corresponding expected brightness.
12. An electronic device comprising a memory, a processor and a computer program stored in the memory, It is characterized in that The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 10.
13. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
