Brightness compensation method and device, computer device, readable storage medium and program product

By employing intra-frame detection and brightness compensation methods, the problem of inaccurate brightness control in AMOLED screens was solved, achieving smooth transitions and consistent display effects for image brightness.

CN119296478BActive Publication Date: 2026-05-12GLENFLY TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GLENFLY TECH CO LTD
Filing Date
2024-10-09
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

Parasitic capacitance in the driving circuit of AMOLED screens can cause inaccurate brightness control, affecting the accuracy of image display.

Method used

The target pixel is determined by intra-frame detection, the brightness difference is calculated, and the brightness compensation value is obtained by querying or interpolating in the preset brightness compensation table. The target pixel is then compensated to ensure brightness consistency.

Benefits of technology

It effectively eliminates brightness jumps between frames, improves the smoothness and consistency of image transitions, and enhances display performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119296478B_ABST
    Figure CN119296478B_ABST
Patent Text Reader

Abstract

The application relates to a brightness compensation method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: acquiring a current to-be-processed frame image and a target frame image; the current to-be-processed frame image and the target frame image respectively comprise a plurality of first pixel blocks and a plurality of second pixel blocks; the target frame image is a front preset frame image of the current to-be-processed frame image; each first pixel point in each first pixel block is one-to-one corresponding to each second pixel point in each second pixel block; performing intra-frame detection on the current to-be-processed frame image to determine a target pixel point; if the first pixel point is the target pixel point, a first difference value between a brightness value corresponding to the target pixel point and a first block-in-brightness target value is calculated; the first block-in-brightness target value is a block-in-brightness target value corresponding to the second pixel block where the second pixel point is located; and if the first difference value is greater than a first preset threshold value, the target pixel point is compensated. The method can improve the accuracy of image compensation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image technology, and in particular to a brightness compensation method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Technology

[0002] AMOLED (Active-matrix organic light-emitting diode) display technology has been widely used in smartphones, televisions and other electronic devices due to its advantages such as self-illumination, high contrast and good color saturation.

[0003] However, the driving circuit of an AMOLED screen typically contains multiple MOSFETs and capacitors to control the brightness of the light-emitting diodes. The parasitic capacitance in this circuit structure often causes problems with inaccurate brightness control. Summary of the Invention

[0004] Therefore, it is necessary to provide a brightness compensation method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve the accuracy of image compensation in order to address the above-mentioned technical problems.

[0005] In a first aspect, this application provides a brightness compensation method, the method comprising:

[0006] Obtain the current frame image to be processed and the target frame image; the current frame image to be processed and the target frame image respectively include a plurality of first pixel blocks and second pixel blocks; the target frame image is a preset frame image preceding the current frame image to be processed; each first pixel in each first pixel block and each second pixel in each second pixel block are in one-to-one correspondence;

[0007] Intra-frame detection is performed on the current frame image to be processed to determine the target pixel.

[0008] If the first pixel is a target pixel, calculate the first difference between the brightness value corresponding to the target pixel and the brightness target value within the first block; the brightness target value within the first block is the brightness target value within the block corresponding to the second pixel block where the second pixel is located.

[0009] If the first difference is greater than the first preset threshold, the target pixel is compensated.

[0010] In one embodiment, the compensation of the target pixel includes:

[0011] Based on the second block brightness target value and the first block brightness target value, the initial brightness compensation value is obtained by looking up the preset brightness compensation table; the second block brightness target value is the block brightness target value corresponding to the first pixel block where the target pixel point is located;

[0012] The initial brightness compensation value is used as the target brightness compensation value, and the target pixel is compensated based on the target brightness compensation value.

[0013] In one embodiment, the method further includes:

[0014] If the initial brightness compensation value is not found in the preset brightness compensation table, a reference value is determined based on the brightness target value in the second block and the brightness target value in the first block.

[0015] The reference brightness compensation value is obtained by looking up the reference value in the preset brightness compensation table.

[0016] Based on the reference brightness compensation value, the target brightness value within the first block is interpolated to obtain the target brightness compensation value.

[0017] The target pixel is compensated according to the target brightness compensation value.

[0018] In one embodiment, the step of performing intra-frame detection on the current frame image to determine the target pixel includes:

[0019] Intra-frame detection is performed on the current frame image to determine the differences between each first pixel and the first pixel block in which the first pixel is located.

[0020] If the difference exists, the first pixel is taken as the target pixel.

[0021] In one embodiment, intra-frame detection is performed on the current frame image to determine the differences between each first pixel and the first pixel block containing that first pixel, including:

[0022] The brightness value corresponding to each first pixel is compared with the brightness target value within the third block corresponding to each first pixel to obtain a second difference; the brightness target value within the third block is the brightness target value within the block corresponding to the first pixel block where the first pixel is located.

[0023] If the second difference is less than the second preset threshold, it is determined that there is a difference between the first pixel and the target brightness value in the third block.

[0024] In one embodiment, obtaining the current frame image to be processed includes:

[0025] Get the grayscale image of the current frame;

[0026] The grayscale values ​​corresponding to each pixel in the current frame grayscale image are converted into luminance values ​​to obtain the current frame image to be processed.

[0027] Secondly, this application provides a brightness compensation device, the device comprising:

[0028] The acquisition module is used to acquire the current frame image to be processed and the target frame image; the current frame image to be processed and the target frame image respectively include a plurality of first pixel blocks and second pixel blocks; the target frame image is a preset frame image preceding the current frame image to be processed; each first pixel in each first pixel block and each second pixel in each second pixel block are in one-to-one correspondence;

[0029] The intra-frame detection module is used to perform intra-frame detection on the current frame image to determine the target pixel.

[0030] The first difference calculation module is used to calculate the first difference between the brightness value corresponding to the target pixel and the brightness target value within the first block if the first pixel is a target pixel; the brightness target value within the first block is the brightness target value within the block corresponding to the second pixel block where the second pixel is located.

[0031] The compensation module is used to compensate the target pixel if the first difference is greater than a first preset threshold.

[0032] Thirdly, this application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described method.

[0033] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.

[0034] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method.

[0035] The aforementioned brightness compensation method, apparatus, computer equipment, computer-readable storage medium, and computer program product first determine the target pixel in the current frame through intra-frame detection, and then compare the brightness of this pixel with the average brightness of the block containing the corresponding pixel in a previous preset frame. When a brightness difference exceeds a preset threshold, the system compensates for the target pixel in the current frame to make it closer to the brightness of the target frame. This compensation method, based on the brightness change of corresponding positions between two consecutive frames, can effectively eliminate brightness jumps between frames, ensure smooth and consistent image transitions, and thus improve display effects. Attached Figure Description

[0036] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0037] Figure 1 This is a diagram illustrating the application environment of a brightness compensation method in one embodiment;

[0038] Figure 2 This is a flowchart illustrating a brightness compensation method in one embodiment;

[0039] Figure 3 This is a schematic diagram showing the situation before and after compensation in one embodiment;

[0040] Figure 4 This is a structural block diagram of a brightness compensation device in one embodiment;

[0041] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0043] The brightness compensation method provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed on a cloud or other network server. Server 104 acquires the current frame image to be processed and the target frame image; the current frame image to be processed and the target frame image respectively include several first pixel blocks and second pixel blocks; the target frame image is a preset frame image preceding the current frame image to be processed; each first pixel in each first pixel block corresponds one-to-one with each second pixel in each second pixel block. Server 104 performs intra-frame detection on the current frame image to be processed to determine the target pixel; if the first pixel is the target pixel, server 104 calculates a first difference between the brightness value corresponding to the target pixel and the brightness target value within the first block; the brightness target value within the first block is the brightness target value within the block corresponding to the second pixel block where the second pixel is located. If the first difference is greater than a first preset threshold, server 104 compensates for the target pixel. The terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. The server 104 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing cloud computing services.

[0044] In one exemplary embodiment, such as Figure 2 As shown, a brightness compensation method is provided, which is applied to... Figure 1 Taking server 104 as an example, the explanation includes the following steps S202 to S206. Wherein:

[0045] S202, acquire the current frame image to be processed and the target frame image. The current frame image to be processed and the target frame image each include several first pixel blocks and several second pixel blocks. The target frame image is a preset frame image preceding the current frame image to be processed. Each first pixel in each first pixel block corresponds one-to-one with each second pixel in each second pixel block.

[0046] Here, the currently pending frame image refers to one frame out of a series of images displayed consecutively on the display panel. For example, one frame out of a series of images displayed consecutively on an AMOLED screen.

[0047] The target frame image is the preset frame image preceding the current frame image to be processed. This can be understood as the frame image preceding the current frame image to be processed, or the nth frame image preceding the current frame image to be processed. For example, if multiple frames are displayed consecutively on an AMOLED screen, and the current frame image to be processed is the 4th frame image, then the target frame image could be the 3rd frame image preceding the 4th frame image, the 2nd frame image preceding the 4th frame image, or the 1st frame image preceding the 4th frame image.

[0048] The current frame image to be processed includes several first pixel blocks. Each first pixel block is a block composed of at least one pixel in the current frame image to be processed. The size of the first pixel block can be set manually, meaning the number of pixels in the first pixel block can be preset. The target frame image includes several second pixel blocks. Each second pixel block is a block composed of at least one pixel in the target frame image. The number of pixels in the second pixel block is the same as the number of pixels in the first pixel block. By dividing the current frame image to be processed into multiple first pixel blocks and the target frame image into multiple second pixel blocks, the identification of target pixels in multiple first pixel blocks can be processed simultaneously when determining the target pixel, thereby improving the identification of target pixels in the current frame image to be processed.

[0049] Each first pixel in each first pixel block corresponds one-to-one with each second pixel in each second pixel block. This means that there is a one-to-one correspondence between each first pixel block and each second pixel block, and within each corresponding first pixel block and second pixel block, there is also a one-to-one correspondence between each first pixel and each second pixel. For example, in multiple first pixel blocks and multiple second pixel blocks, first pixel block A corresponds to second pixel block B, and in the multiple first pixels of first pixel block A and the multiple second pixels of second pixel block B, first pixel C corresponds to second pixel D.

[0050] Correspondence can be understood as both representing the same location or the same region. For example, continuing the example above, the first pixel block A and the second pixel block B correspond to the region where the first pixel block A is located in the current frame image to be processed and the region where the second pixel block B is located in the target frame image, which is the same region E. The first pixel point C and the second pixel point D correspond to the position of the first pixel point C in region E and the position of the second pixel point D in region E, which is the same position.

[0051] Optionally, the server obtains the current frame image to be processed from the displayed multi-frame images and uses the previous frame image of the current frame image to be processed as the target frame image. The current frame image to be processed includes several first pixel blocks, and the target frame image includes several second pixel blocks. Each first pixel block corresponds to each second pixel block, and within each corresponding first pixel block and second pixel block, each first pixel point and each second pixel point also corresponds to each other.

[0052] S204, Perform intra-frame detection on the current frame image to determine the target pixel.

[0053] Intra-frame detection refers to determining the target pixel based on the luminance value of the first pixel in the current frame image to be processed and the intra-block luminance target value of the first pixel block to which the first pixel is located. The intra-block luminance target value of the first pixel block includes, but is not limited to, the average luminance value among the first pixels in the first pixel block and the median luminance value among the first pixels in the first pixel block.

[0054] Optionally, the server determines the target pixel in the current frame image based on the brightness value of each first pixel in the current frame image and the target brightness value within the first pixel block where the first pixel is located.

[0055] S206, if the first pixel is the target pixel, calculate the first difference between the brightness value corresponding to the target pixel and the target brightness value within the first block. The target brightness value within the first block is the target brightness value within the block corresponding to the second pixel block where the second pixel is located.

[0056] Whether the first pixel is the target pixel is determined based on intra-frame detection of the current frame image to be processed.

[0057] The target brightness value within the first block includes, but is not limited to, the average brightness value among all second pixels in the second pixel block, and the median brightness value among all second pixels in the second pixel block.

[0058] The number of target pixels may be multiple, one, or zero. If there are multiple target pixels, the first difference between the brightness value of each target pixel and the brightness target value in the first block must be calculated to perform brightness compensation for each target pixel.

[0059] Optionally, the server determines the target pixels in the current frame image based on the intra-frame detection results. If there are multiple target pixels, the server calculates a first difference between the luminance value corresponding to each target pixel and the luminance target value within the first block. The luminance target value within the first block includes, but is not limited to, the average luminance value among the second pixels in the second pixel block and the median luminance value among the second pixels in the second pixel block.

[0060] S208, if the first difference is greater than the first preset threshold, compensate the target pixel.

[0061] The first preset threshold can be pre-set and stored in the server's storage component.

[0062] Compensation refers to adjusting the brightness value of a target pixel. For example, increasing the brightness value of a target pixel. The compensated brightness value can be set manually or determined by consulting a preset brightness compensation table, such as... Figure 3 The diagram shows the brightness values ​​before and after compensation.

[0063] Optionally, if the server detects that the first difference corresponding to the target pixel is greater than the first preset threshold, it performs compensation processing on the brightness value of the target pixel.

[0064] In the aforementioned brightness compensation method, the target pixel in the current frame is first determined through intra-frame detection. Then, the average brightness of this pixel is compared with the average brightness of the block containing the corresponding pixel in a previous preset frame. When a brightness difference exceeds a preset threshold, the system compensates for the target pixel in the current frame, making it closer to the brightness of the target frame. This compensation method, based on brightness changes at corresponding positions between two consecutive frames, effectively eliminates brightness jumps between frames, ensuring smooth and consistent image transitions, thereby improving display quality.

[0065] In some embodiments, when performing brightness compensation, the server performs brightness compensation from the RGB (Red, Green, Blue) channels of the current frame image to be processed and the target frame image. The brightness compensation of each channel can be performed simultaneously or sequentially.

[0066] In one exemplary embodiment, compensation for the target pixel includes:

[0067] Based on the target brightness values ​​of the second and first blocks, the initial brightness compensation value is obtained by looking up the value in the preset brightness compensation table. The target brightness value of the second block is the target brightness value within the block corresponding to the first pixel block where the target pixel is located.

[0068] The initial brightness compensation value is used as the target brightness compensation value, and the target pixels are compensated based on the target brightness compensation value.

[0069] The target brightness value in the second block includes, but is not limited to, the average brightness value among the first pixels in the first pixel block where the target pixel is located, and the median value of the brightness value of each first pixel.

[0070] The preset brightness compensation table is a table pre-set and stored in the server's storage component, allowing users to query target brightness compensation values. The initial brightness compensation value is the compensation value retrieved from the preset brightness compensation table, indexed by the target brightness values ​​of the second and first blocks. For example, as shown in Table 1, `pre` represents the target brightness value of the first block, and `cur` represents the target brightness value of the second block. When the target brightness value of the first block is 0 and the target brightness value of the second block is 16, the initial brightness compensation value of 24 can be directly retrieved from the preset brightness compensation table using 0 and 16 as indexes.

[0071] Table 1 Preset Brightness Compensation Table

[0072]

[0073] Compensating a target pixel based on its target brightness compensation value means changing the target brightness compensation value based on the target pixel's current brightness value. For example, increasing the target brightness compensation value based on the target pixel's current brightness value to compensate for the target pixel's brightness.

[0074] Optionally, the server uses the determined target brightness value of the second block and the target brightness value of the first block as indexes to query a pre-set brightness compensation table to obtain an initial brightness compensation value. The server uses the initial brightness compensation value as the target brightness compensation value, and adjusts the target brightness compensation value based on the current brightness value of the target pixel to compensate for the brightness of the target pixel.

[0075] In this embodiment, by querying the initial brightness compensation value in the preset brightness compensation table based on the second inner brightness target value and the first inner brightness target value, and using the initial brightness compensation value as the target brightness compensation value, the accuracy of brightness compensation for the target pixel can be improved.

[0076] In one exemplary embodiment, the brightness compensation method further includes:

[0077] If the initial brightness compensation value is not found in the preset brightness compensation table, the reference value is determined based on the target brightness value of the second block and the target brightness value of the first block.

[0078] The reference brightness compensation value is obtained by looking up the reference value in the preset brightness compensation table.

[0079] The target brightness compensation value is obtained by interpolating the target brightness value of the first block based on the reference brightness compensation value.

[0080] The target pixels are compensated based on the target brightness compensation value.

[0081] The main reasons why the initial brightness compensation value cannot be found in the preset brightness compensation table include: the second inner brightness target value does not exist in the preset brightness compensation table; the first inner brightness target value does not exist in the preset brightness compensation table; or both the second and first inner brightness target values ​​do not exist in the preset brightness compensation table. Therefore, it is necessary to determine a reference value and then determine a reference brightness compensation value based on the reference value to determine the target brightness compensation value.

[0082] Reference values ​​refer to at least two values ​​in the preset brightness compensation table that are adjacent to the target brightness value of the second block, and at least two values ​​in the preset brightness compensation table that are adjacent to the target brightness value of the second block. For example, as shown in Table 1, when the target brightness value of the first block is 8 and the target brightness value of the second block is 24, there is no node with pre=8 or cur=24 in the preset brightness compensation table. Therefore, the adjacent nodes 0 and 16 can be selected as reference values ​​based on the target brightness value of 8 in the first block, and the adjacent nodes 16 and 32 can be selected as reference values ​​based on the target brightness value of 24 in the second block.

[0083] The reference brightness compensation value is the brightness compensation value retrieved from a preset brightness compensation table, indexed by the reference value corresponding to the second internal brightness target value and the reference value corresponding to the first internal brightness target value. For example, following the above example, four reference brightness compensation values ​​can be selected: reference brightness compensation value 24, selected based on reference value 0 corresponding to the first internal brightness target value 8 and reference value 16 corresponding to the second internal brightness target value 24; reference brightness compensation value 40, selected based on reference value 0 corresponding to the first internal brightness target value 8 and reference value 32 corresponding to the second internal brightness target value 24; reference brightness compensation value 16, selected based on reference value 16 corresponding to the first internal brightness target value 8 and reference value 16 corresponding to the second internal brightness target value 24; and reference brightness compensation value 38, selected based on reference value 16 corresponding to the first internal brightness target value 8 and reference value 32 corresponding to the second internal brightness target value 24.

[0084] Interpolation calculation refers to the method of estimating the value of a data point to be confirmed based on the relationship between known data points. That is, the target brightness compensation value is determined according to the relationship between the reference value and the reference brightness compensation value. For example, continuing the example above, the reference brightness compensation value from the first inner brightness target value 8 to the second inner brightness target value 16 is determined by interpolation calculation as (16-24)*(8-0) / (16-0)+24=20, and the reference brightness compensation value from the first inner brightness target value 8 to the second inner brightness target value 32 is (38-40)*(8-0) / (16-0)+40=39. Then, the reference brightness compensation value from the first inner brightness target value 8 to the second inner brightness target value 24 is calculated as (39-20)*(24-16) / (32-16)+20=29.5.

[0085] Compensating a target pixel based on its current brightness compensation value means changing the target brightness compensation value based on the current brightness value of the target pixel.

[0086] Optionally, if the initial brightness compensation value is not found in the preset brightness compensation table, the server determines at least two values ​​adjacent to the target brightness value of the second block in the preset brightness compensation table, and at least two values ​​adjacent to the target brightness value of the second block in the preset brightness compensation table, as reference values. The server uses the reference values ​​corresponding to the target brightness value of the second block and the target brightness value of the first block as indexes to query the preset brightness compensation table and obtain the reference brightness compensation value. The server performs interpolation calculations on the target brightness value of the first block based on the reference brightness compensation value to obtain the target brightness compensation value. The server changes the target brightness compensation value based on the current brightness value of the target pixel to perform brightness compensation on the target pixel.

[0087] In some embodiments, if the initial brightness compensation value is not found in the preset brightness compensation table, a reference value is determined based on the target brightness value within the second block and the target brightness value within the first block. The reference value is then used to retrieve the reference brightness compensation value from the preset brightness compensation table, and this reference brightness compensation value is used as the target brightness compensation value. Compensation is then applied to the target pixels based on the target brightness compensation value. This saves time in determining the target brightness compensation value and allows for rapid brightness compensation of the target pixels.

[0088] In this embodiment, when no initial brightness compensation value is found in the preset brightness compensation table, a reference value is determined based on the target brightness value within the second block and the target brightness value within the first block. This allows a reference brightness compensation value to be found based on the reference value. By interpolating the target brightness value within the first block based on the reference brightness compensation value, a suitable target brightness compensation value can be calculated using the closest reference brightness compensation value when no corresponding initial brightness compensation value is found in the preset brightness compensation table. This achieves compensation for the target pixel.

[0089] In an exemplary embodiment, intra-frame detection is performed on the current frame image to determine the target pixel, including:

[0090] Intra-frame detection is performed on the current frame image to determine the differences between each first pixel and the first pixel block to which the first pixel is located.

[0091] If the difference exists, the first pixel is taken as the target pixel.

[0092] Intra-frame detection refers to determining the difference based on the brightness value of the first pixel of the current frame image to be processed and the target brightness value within the first pixel block where the first pixel is located.

[0093] The difference refers to the difference between the brightness value of a first pixel and the target brightness value within the first pixel block to which the first pixel belongs. The target brightness value within the first pixel block includes, but is not limited to, the average brightness value among all first pixels in the first pixel block and the median brightness value among all first pixels in the first pixel block. For example, if each first pixel in the first pixel block is detected point by point, and there is a difference between the brightness value of first pixel A and the target brightness value within the first pixel block, then first pixel A is the target pixel.

[0094] In some embodiments, the differences between each first pixel and the first pixel block can be determined sequentially or simultaneously.

[0095] Optionally, the server determines the difference between each first pixel and the first pixel block based on the brightness value of the first pixel of the current frame image to be processed and the target brightness value within the first pixel block to which the first pixel is located. If there is a difference between the brightness value of the first pixel and the target brightness value within the first pixel block to which the first pixel is located, the server determines the first pixel with the difference as the target pixel.

[0096] In this embodiment, by using the first pixel that differs from the first pixel in the first pixel block as the target pixel, pixels that are significantly different from other pixels can be selected, thereby ensuring that compensation is only applied to pixels with large brightness deviations.

[0097] In an exemplary embodiment, intra-frame detection is performed on the current frame image to determine the differences between each first pixel and the first pixel block to which the first pixel is located, including:

[0098] The brightness value corresponding to each first pixel is compared with the brightness target value in the third block where each first pixel is located to obtain the second difference; the brightness target value in the third block is the brightness target value in the block corresponding to the first pixel block where the first pixel is located.

[0099] If the second difference is less than the second preset threshold, it is determined that there is a difference between the brightness target value of the first pixel and the third block.

[0100] Specifically, comparing the luminance value corresponding to each first pixel with the target luminance value within the third block corresponding to each first pixel means comparing the luminance value corresponding to each first pixel with the target luminance value within the third block corresponding to the first pixel block in which the first pixel is located. For example, if first pixel A and first pixel B exist in first pixel block a, and first pixel C and first pixel D exist in first pixel block b, then the luminance value corresponding to first pixel A is compared with the target luminance value within the third block of first pixel block a, the luminance value corresponding to first pixel B is compared with the target luminance value within the third block of first pixel block a, the luminance value corresponding to first pixel C is compared with the target luminance value within the third block of first pixel block b, and the luminance value corresponding to first pixel D is compared with the target luminance value within the third block of first pixel block b.

[0101] The third block's internal brightness target value is the internal brightness target value of the first pixel block where the first pixel point is located. The third block's internal brightness target value includes, but is not limited to, the average brightness value among the first pixels in the first pixel block and the median brightness value of the first pixels in the first pixel block.

[0102] Each first pixel corresponds to a second difference value. The second preset threshold can be preset and stored in the server's storage component.

[0103] In some embodiments, when comparing brightness values, the brightness value corresponding to each first pixel can be compared sequentially with the target brightness value within the third block corresponding to each first pixel, or the brightness values ​​corresponding to multiple first pixels can be compared simultaneously with the target brightness values ​​within the third block corresponding to each first pixel. Simultaneously comparing the brightness values ​​corresponding to multiple first pixels with the target brightness values ​​within the third block corresponding to each first pixel can speed up the process of obtaining the second difference value corresponding to each first pixel.

[0104] In some embodiments, if it is determined that there is a difference between the first pixel and the target brightness value in the third block, the first pixel can be identified as the target pixel.

[0105] Optionally, the server simultaneously compares the brightness value corresponding to each first pixel with the target brightness value within the third block corresponding to the first pixel block where each first pixel is located, to obtain a first difference between the brightness value corresponding to each first pixel and the target brightness value within the third block. The server then compares the second difference corresponding to each first pixel with a second preset threshold, obtaining multiple comparison results. When the comparison result indicates that the second difference is less than the second preset threshold, the server determines that there is a difference between the first pixel corresponding to the second difference and the target brightness value within the third block.

[0106] In this embodiment, by comparing the brightness value corresponding to each first pixel with the brightness target value in the third block corresponding to each first pixel, and determining that there is a difference between the first pixel and the brightness target value in the third block when the second difference is less than the second preset threshold, the pixels that are significantly different from other pixels can be accurately screened out, thereby ensuring that the compensation is only for pixels with large brightness deviations.

[0107] In one exemplary embodiment, obtaining the current frame image to be processed includes:

[0108] Get the grayscale image of the current frame;

[0109] Convert the grayscale values ​​of each pixel in the current frame grayscale image into luminance values ​​to obtain the current frame image to be processed.

[0110] The current frame grayscale image is an image that contains only grayscale values ​​and no color information. In the current frame grayscale image, the value of each pixel represents a brightness level between pure black and pure white. The current frame grayscale image only needs one channel to store the information of all pixels.

[0111] Methods for converting the grayscale values ​​of each pixel in the current frame grayscale image into luminance values ​​include, but are not limited to, dividing the grayscale value of each pixel in the current frame grayscale image by the maximum possible grayscale value, using a preset color mapping table, querying the corresponding luminance value based on the grayscale value of each pixel in the current frame grayscale image, and converting the grayscale value of each pixel in the current frame grayscale image into luminance values ​​using a LUTA (Look-Up Table).

[0112] In some embodiments, obtaining a target frame image includes: obtaining a target frame grayscale image; converting the grayscale values ​​corresponding to each pixel in the target frame grayscale image into luminance values ​​to obtain the target frame image. The methods for converting the grayscale values ​​corresponding to each pixel in the target frame grayscale image into luminance values ​​include, but are not limited to, dividing the grayscale values ​​of each pixel in the target frame grayscale image by the maximum possible grayscale value, using a preset color mapping table, querying the corresponding luminance values ​​based on the grayscale values ​​of each pixel in the current frame grayscale image, and converting the grayscale values ​​of each pixel in the target frame grayscale image into luminance values ​​using a LUTA (Look-Up Table).

[0113] Optionally, the server obtains the current frame grayscale image containing only grayscale values ​​and not color information, and converts the grayscale values ​​of each pixel in the current frame grayscale image into luminance values ​​through LUTA to obtain the current frame image to be processed.

[0114] In this embodiment, by converting the grayscale values ​​corresponding to each pixel in the current frame grayscale image into brightness values, image enhancement can be performed on the current frame grayscale image, making the current frame image to be processed more suitable for brightness compensation scenarios.

[0115] This application also provides an application scenario in which the above-described system performance testing method is applied. Specifically, the system performance testing method is applied in this scenario as follows: The server acquires a current frame grayscale image containing only grayscale values ​​and no color information, and converts the grayscale values ​​of each pixel in the current frame grayscale image into luminance values ​​using LUTA to obtain the current frame image to be processed. The server presets a size and divides the previous frame image to be processed into several first pixel blocks according to the preset size, and divides the target frame image into several second pixel blocks, wherein each first pixel block and each second pixel block corresponds to each other, and within the corresponding first pixel block and second pixel block, each first pixel and each second pixel also corresponds to each other.

[0116] The server simultaneously compares the brightness value corresponding to each first pixel with the target brightness value within the third block corresponding to the first pixel block containing that first pixel, obtaining a first difference between the brightness value corresponding to each first pixel and the target brightness value within the third block. The server then compares the second difference corresponding to each first pixel with a second preset threshold, obtaining multiple comparison results. When a comparison result indicates that the second difference is less than the second preset threshold, the server determines that there is a difference between the first pixel corresponding to the second difference and the target brightness value within the third block. If there is a difference between the brightness value of a first pixel and the target brightness value within the first pixel block containing that first pixel, the server identifies the first pixel with the difference as the target pixel.

[0117] When there are multiple target pixels, the server calculates the first difference between the brightness value of each target pixel and the brightness target value of the first block.

[0118] When the server detects that the first difference corresponding to the target pixel is greater than a first preset threshold, the server uses the intra-block brightness target value of the first pixel block containing the target pixel as the second intra-block brightness target value. Using the determined second intra-block brightness target value and the first intra-block brightness target value as indexes, the server queries a pre-set preset brightness compensation table to obtain an initial brightness compensation value. The server uses the initial brightness compensation value as the target brightness compensation value, and adjusts the target brightness compensation value based on the current brightness value of the target pixel to perform brightness compensation on the target pixel.

[0119] If the initial brightness compensation value is not found in the preset brightness compensation table, the server determines at least two values ​​adjacent to the second block's internal brightness target value in the preset brightness compensation table, as well as at least two values ​​adjacent to the second block's internal brightness target value in the preset brightness compensation table, as reference values. The server uses the reference values ​​corresponding to the second block's internal brightness target value and the first block's internal brightness target value as indexes to query the preset brightness compensation table and obtain the reference brightness compensation value. The server performs interpolation calculations on the first block's internal brightness target value based on the reference brightness compensation value to obtain the target brightness compensation value. The server then adjusts the target brightness compensation value based on the current brightness value of the target pixel to compensate for the brightness of the target pixel.

[0120] In the aforementioned brightness compensation method, pixels with brightness deviations are accurately located by comparing them with corresponding pixels in the target frame. Furthermore, the difference between the brightness value of the target pixel and the target brightness value within the first block is calculated to ensure that compensation only applies to pixels with significant brightness deviations. This effectively avoids unnecessary compensation when there are no obvious brightness differences, thereby improving the accuracy of the compensation. Additionally, using pixel blocks from the previous preset frame image as a reference when calculating the first difference better maintains visual consistency between frames, reduces brightness jumps, and thus improves the accuracy of image compensation.

[0121] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0122] Based on the same inventive concept, this application also provides a brightness compensation device for implementing the brightness compensation method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more brightness compensation device embodiments provided below can be found in the limitations of the brightness compensation method described above, and will not be repeated here.

[0123] In one exemplary embodiment, such as Figure 4 As shown, a brightness compensation device is provided, comprising:

[0124] The acquisition module 402 is used to acquire the current frame image to be processed and the target frame image. The current frame image to be processed and the target frame image each include a number of first pixel blocks and second pixel blocks. The target frame image is a preset frame image preceding the current frame image to be processed. Each first pixel in each first pixel block corresponds one-to-one with each second pixel in each second pixel block.

[0125] The intra-frame detection module 404 is used to perform intra-frame detection on the current frame image to determine the target pixel.

[0126] The first difference calculation module 406 is used to calculate the first difference between the brightness value corresponding to the target pixel and the brightness target value within the first block if the first pixel is the target pixel. The brightness target value within the first block is the brightness target value within the block corresponding to the second pixel block where the second pixel is located.

[0127] The compensation module 408 is used to compensate the target pixel if the first difference is greater than the first preset threshold.

[0128] In the aforementioned brightness compensation device, pixels with brightness deviations are accurately located by comparing the pixels in the current frame to be processed with the corresponding pixels in the target frame. Furthermore, a first difference between the brightness value corresponding to the target pixel and the target brightness value within the first block is calculated to ensure that compensation is only applied to pixels with significant brightness deviations. This effectively avoids unnecessary compensation when there is no obvious brightness difference, thereby improving the accuracy of compensation. Additionally, using pixel blocks from a previously preset frame image as a reference when calculating the first difference better maintains visual consistency between frames, reduces brightness jumps, and thus improves the accuracy of image compensation.

[0129] In some embodiments, the compensation module includes:

[0130] The first query unit is used to look up the initial brightness compensation value in a preset brightness compensation table based on the second block brightness target value and the first block brightness target value. The second block brightness target value is the block brightness target value corresponding to the first pixel block where the target pixel is located.

[0131] The first compensation unit is used to take the initial brightness compensation value as the target brightness compensation value and compensate the target pixel based on the target brightness compensation value.

[0132] In some embodiments, the brightness compensation device further includes:

[0133] The reference value determination unit is used to determine a reference value based on the target brightness value in the second block and the target brightness value in the first block if the initial brightness compensation value is not found in the preset brightness compensation table.

[0134] The second query unit is used to query the preset brightness compensation table based on the reference value to obtain the reference brightness compensation value.

[0135] The compensation value determination unit is used to interpolate the target brightness value of the first block based on the reference brightness compensation value to obtain the target brightness compensation value.

[0136] The second compensation unit is used to compensate the target pixels according to the target brightness compensation value.

[0137] In some embodiments, the intra-frame detection module includes:

[0138] The intra-frame detection unit is used to perform intra-frame detection on the current frame image to determine the differences between each first pixel and the first pixel block to which the first pixel is located.

[0139] A pixel determination unit is used to determine the first pixel as the target pixel if the difference exists.

[0140] In some embodiments, the intra-frame detection unit includes:

[0141] The comparison subunit is used to compare the brightness value corresponding to each first pixel with the brightness target value within the third block corresponding to each first pixel to obtain a second difference. The brightness target value within the third block is the brightness target value within the block corresponding to the first pixel block where the first pixel is located.

[0142] The difference determination unit is used to determine that there is a difference between the brightness target value of the first pixel and the third block if the second difference is less than the second preset threshold.

[0143] In some embodiments, the acquisition module includes:

[0144] The first acquisition unit is used to acquire the grayscale image of the current frame.

[0145] The second acquisition unit is used to convert the grayscale value corresponding to each pixel in the current frame grayscale image into a brightness value to obtain the current frame image to be processed.

[0146] Each module in the aforementioned brightness compensation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0147] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 5As shown, the computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage medium. The database stores the current frame image to be processed, the target frame image, the target pixel, the brightness value corresponding to the target pixel, the first intra-block brightness target value, the first difference, and the first preset threshold. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a brightness compensation method.

[0148] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0149] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0150] Acquire the current frame image to be processed and the target frame image; the current frame image to be processed and the target frame image respectively include several first pixel blocks and second pixel blocks; the target frame image is the preset frame image before the current frame image to be processed; each first pixel in each first pixel block and each second pixel in each second pixel block are in one-to-one correspondence; perform intra-frame detection on the current frame image to be processed to determine the target pixel; if the first pixel is the target pixel, calculate the first difference between the brightness value corresponding to the target pixel and the brightness target value in the first block; the brightness target value in the first block is the brightness target value in the block corresponding to the second pixel block where the second pixel is located; if the first difference is greater than the first preset threshold, compensate the target pixel.

[0151] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0152] Based on the target brightness value of the second block and the target brightness value of the first block, the initial brightness compensation value is obtained by querying the preset brightness compensation table; the target brightness value of the second block is the target brightness value of the block corresponding to the first pixel block where the target pixel is located; the initial brightness compensation value is used as the target brightness compensation value, and the target pixel is compensated based on the target brightness compensation value.

[0153] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0154] If the initial brightness compensation value is not found in the preset brightness compensation table, a reference value is determined based on the target brightness value of the second block and the target brightness value of the first block; the reference value is then used to look up the reference brightness compensation value in the preset brightness compensation table; the target brightness compensation value is obtained by interpolation calculation based on the reference brightness compensation value; and the target pixel is compensated based on the target brightness compensation value.

[0155] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0156] Perform intra-frame detection on the current frame image to determine the difference between each first pixel and the first pixel block containing the first pixel; if the difference exists, the first pixel is taken as the target pixel.

[0157] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0158] The brightness value corresponding to each first pixel is compared with the brightness target value of the third block corresponding to each first pixel to obtain a second difference; the brightness target value of the third block is the brightness target value of the block corresponding to the first pixel block where the first pixel is located; if the second difference is less than the second preset threshold, it is determined that there is a difference between the brightness target value of the first pixel and the brightness target value of the third block.

[0159] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0160] Obtain the grayscale image of the current frame; convert the grayscale value of each pixel in the current frame grayscale image into a brightness value to obtain the current frame image to be processed.

[0161] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0162] Acquire the current frame image to be processed and the target frame image; the current frame image to be processed and the target frame image respectively include several first pixel blocks and second pixel blocks; the target frame image is the preset frame image before the current frame image to be processed; each first pixel in each first pixel block and each second pixel in each second pixel block are in one-to-one correspondence; perform intra-frame detection on the current frame image to be processed to determine the target pixel; if the first pixel is the target pixel, calculate the first difference between the brightness value corresponding to the target pixel and the brightness target value in the first block; the brightness target value in the first block is the brightness target value in the block corresponding to the second pixel block where the second pixel is located; if the first difference is greater than the first preset threshold, compensate the target pixel.

[0163] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0164] Based on the target brightness value of the second block and the target brightness value of the first block, the initial brightness compensation value is obtained by querying the preset brightness compensation table; the target brightness value of the second block is the target brightness value of the block corresponding to the first pixel block where the target pixel is located; the initial brightness compensation value is used as the target brightness compensation value, and the target pixel is compensated based on the target brightness compensation value.

[0165] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0166] If the initial brightness compensation value is not found in the preset brightness compensation table, a reference value is determined based on the target brightness value of the second block and the target brightness value of the first block; the reference value is then used to look up the reference brightness compensation value in the preset brightness compensation table; the target brightness compensation value is obtained by interpolation calculation based on the reference brightness compensation value; and the target pixel is compensated based on the target brightness compensation value.

[0167] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0168] Perform intra-frame detection on the current frame image to determine the difference between each first pixel and the first pixel block containing the first pixel; if the difference exists, the first pixel is taken as the target pixel.

[0169] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0170] The brightness value corresponding to each first pixel is compared with the brightness target value of the third block corresponding to each first pixel to obtain a second difference; the brightness target value of the third block is the brightness target value of the block corresponding to the first pixel block where the first pixel is located; if the second difference is less than the second preset threshold, it is determined that there is a difference between the brightness target value of the first pixel and the brightness target value of the third block.

[0171] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0172] Obtain the grayscale image of the current frame; convert the grayscale value of each pixel in the current frame grayscale image into a brightness value to obtain the current frame image to be processed.

[0173] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0174] Acquire the current frame image to be processed and the target frame image; the current frame image to be processed and the target frame image respectively include several first pixel blocks and second pixel blocks; the target frame image is the preset frame image before the current frame image to be processed; each first pixel in each first pixel block and each second pixel in each second pixel block are in one-to-one correspondence; perform intra-frame detection on the current frame image to be processed to determine the target pixel; if the first pixel is the target pixel, calculate the first difference between the brightness value corresponding to the target pixel and the brightness target value in the first block; the brightness target value in the first block is the brightness target value in the block corresponding to the second pixel block where the second pixel is located; if the first difference is greater than the first preset threshold, compensate the target pixel.

[0175] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0176] Based on the target brightness value of the second block and the target brightness value of the first block, the initial brightness compensation value is obtained by querying the preset brightness compensation table; the target brightness value of the second block is the target brightness value of the block corresponding to the first pixel block where the target pixel is located; the initial brightness compensation value is used as the target brightness compensation value, and the target pixel is compensated based on the target brightness compensation value.

[0177] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0178] If the initial brightness compensation value is not found in the preset brightness compensation table, a reference value is determined based on the target brightness value of the second block and the target brightness value of the first block; the reference value is then used to look up the reference brightness compensation value in the preset brightness compensation table; the target brightness compensation value is obtained by interpolation calculation based on the reference brightness compensation value; and the target pixel is compensated based on the target brightness compensation value.

[0179] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0180] Perform intra-frame detection on the current frame image to determine the difference between each first pixel and the first pixel block containing the first pixel; if the difference exists, the first pixel is taken as the target pixel.

[0181] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0182] The brightness value corresponding to each first pixel is compared with the brightness target value of the third block corresponding to each first pixel to obtain a second difference; the brightness target value of the third block is the brightness target value of the block corresponding to the first pixel block where the first pixel is located; if the second difference is less than the second preset threshold, it is determined that there is a difference between the brightness target value of the first pixel and the brightness target value of the third block.

[0183] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0184] Obtain the grayscale image of the current frame; convert the grayscale value of each pixel in the current frame grayscale image into a brightness value to obtain the current frame image to be processed.

[0185] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0186] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0187] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0188] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A brightness compensation method, characterized in that, The method includes: Obtain the current frame image to be processed and the target frame image; the current frame image to be processed and the target frame image respectively include a plurality of first pixel blocks and second pixel blocks; the target frame image is a preset frame image preceding the current frame image to be processed; each first pixel in each first pixel block and each second pixel in each second pixel block are in one-to-one correspondence; Intra-frame detection is performed on the current frame image to be processed to determine the target pixel. If the first pixel is a target pixel, calculate the first difference between the brightness value corresponding to the target pixel and the brightness target value within the first block; the brightness target value within the first block is the brightness target value within the block corresponding to the second pixel block where the second pixel is located. If the first difference is greater than the first preset threshold, the target pixel is compensated; The step of performing intra-frame detection on the current frame image to determine the target pixel includes: Intra-frame detection is performed on the current frame image to determine the differences between each first pixel and the first pixel block in which the first pixel is located. If the difference exists, the first pixel is taken as the target pixel. Intra-frame detection is performed on the current frame image to determine the differences between each first pixel and the first pixel block containing that first pixel, including: The brightness value corresponding to each first pixel is compared with the brightness target value within the third block corresponding to each first pixel to obtain a second difference; the brightness target value within the third block is the brightness target value within the block corresponding to the first pixel block where the first pixel is located. If the second difference is greater than the second preset threshold, it is determined that there is a difference between the first pixel and the target brightness value in the third block.

2. The method according to claim 1, characterized in that, The compensation for the target pixel includes: Based on the second block brightness target value and the first block brightness target value, the initial brightness compensation value is obtained by looking up the preset brightness compensation table; the second block brightness target value is the block brightness target value corresponding to the first pixel block where the target pixel point is located; The initial brightness compensation value is used as the target brightness compensation value, and the target pixel is compensated based on the target brightness compensation value.

3. The method according to claim 2, characterized in that, The method further includes: If the initial brightness compensation value is not found in the preset brightness compensation table, a reference value is determined based on the brightness target value in the second block and the brightness target value in the first block. The reference brightness compensation value is obtained by looking up the reference value in the preset brightness compensation table. Based on the reference brightness compensation value, the target brightness value within the first block is interpolated to obtain the target brightness compensation value. The target pixel is compensated according to the target brightness compensation value.

4. The method according to claim 1, characterized in that, Obtain the current frame image to be processed, including: Get the grayscale image of the current frame; The grayscale values ​​corresponding to each pixel in the current frame grayscale image are converted into luminance values ​​to obtain the current frame image to be processed.

5. A brightness compensation device, characterized in that, The device includes: The acquisition module is used to acquire the current frame image to be processed and the target frame image; the current frame image to be processed and the target frame image respectively include a plurality of first pixel blocks and second pixel blocks; the target frame image is a preset frame image preceding the current frame image to be processed; each first pixel in each first pixel block and each second pixel in each second pixel block are in one-to-one correspondence; The intra-frame detection module is used to perform intra-frame detection on the current frame image to determine the target pixel. The first difference calculation module is used to calculate the first difference between the brightness value corresponding to the target pixel and the brightness target value within the first block if the first pixel is a target pixel; the brightness target value within the first block is the brightness target value within the block corresponding to the second pixel block where the second pixel is located. The compensation module is used to compensate the target pixel if the first difference is greater than a first preset threshold. The intra-frame detection module includes: An intra-frame detection unit is used to perform intra-frame detection on the current frame image to be processed, and to determine the differences between each first pixel and the first pixel block in which the first pixel is located. A pixel determination unit is used to determine the first pixel as the target pixel if the difference condition is that a difference exists. The intra-frame detection unit includes: The comparison subunit is used to compare the brightness value corresponding to each first pixel with the brightness target value within the third block corresponding to each first pixel to obtain a second difference; the brightness target value within the third block is the brightness target value within the block corresponding to the first pixel block where the first pixel is located. The difference determination unit is used to determine that there is a difference between the first pixel and the brightness target value in the third block if the second difference is greater than the second preset threshold.

6. The apparatus according to claim 5, characterized in that, The compensation module includes: The first query unit is used to query a preset brightness compensation table based on the second block brightness target value and the first block brightness target value to obtain an initial brightness compensation value; the second block brightness target value is the block brightness target value corresponding to the first pixel block where the target pixel point is located; The first compensation unit is used to take the initial brightness compensation value as the target brightness compensation value and compensate the target pixel based on the target brightness compensation value.

7. The apparatus according to claim 6, characterized in that, The compensation device further includes: A reference value determination unit is used to determine a reference value based on the target brightness value in the second block and the target brightness value in the first block if the initial brightness compensation value is not found in the preset brightness compensation table. The second query unit is used to query the preset brightness compensation table according to the reference value to obtain the reference brightness compensation value; The compensation value determination unit is used to interpolate the target brightness value within the first block based on the reference brightness compensation value to obtain the target brightness compensation value; The second compensation unit is used to compensate the target pixel based on the target brightness compensation value.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.