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

Through intra detection and brightness compensation table query, the problem of inaccurate brightness control in AMOLED display technology is used to achieve accurate compensation of image brightness, solve the problem of inter-frame brightness jump, and improve the display effect.

CN119296478AActive Publication Date: 2025-01-10GLENFLY TECH CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202411406488.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-01-10
Estimated Expiration
2044-10-09

AI Technical Summary

Technical Problem

In AMOLED display technology, parasitic capacitance in the driving circuit causes inaccurate brightness control, affecting the display effect of the image.

Method used

The target pixel point is determined through intra-frame detection, and compensated according to the brightness difference of the corresponding positions of the first and last two frames. The preset brightness compensation table is used to query the initial or reference brightness compensation value for brightness adjustment to ensure smoothness and consistency of image transitions.

Benefits of technology

Effectively eliminate inter-frame brightness jumps, improve the accuracy of image display effect and brightness compensation, and ensure smoothness and consistency of image transitions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119296478A_ABST
    Figure CN119296478A_ABST
Patent Text Reader

Abstract

The invention 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 frame image to be processed and a target frame image; the current frame image to be processed and the target frame image respectively comprise a plurality of first pixel blocks and second pixel blocks; the target frame image is a previous preset frame image of the current to-be-processed frame image; each first pixel point in each first pixel block is in one-to-one correspondence with each second pixel point in each second pixel block; performing intra-frame detection on the current to-be-processed frame image, and determining a target pixel point; if the first pixel point is the target pixel point, calculating a first difference value between a brightness value corresponding to the target pixel point and a brightness target value in the first block; the first in-block brightness target value is an in-block brightness target value corresponding to a second pixel block where the second pixel point is located; and if the first difference value is greater than a first preset threshold value, compensating the target pixel point. According to the method, the accuracy of image compensation can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

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

[0003] However, the driving circuit of an AMOLED screen usually includes multiple MOS tubes and capacitors to control the brightness of the light-emitting diodes. The parasitic capacitance in this circuit structure often causes inaccurate brightness control. Summary of the invention

[0004] Based on this, it is necessary to provide a brightness compensation method, apparatus, computer equipment, computer-readable storage medium and computer program product that can improve the accuracy of image compensation in order to solve the above technical problems.

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

[0006] Acquire a current frame image to be processed and a target frame image; the current frame image to be processed and the target frame image respectively include a plurality of first pixel blocks and a plurality of second pixel blocks; the target frame image is a previous preset frame image of the current frame image to be processed; each first pixel point in each first pixel block corresponds to each second pixel point in each second pixel block;

[0007] Performing intra-frame detection on the current frame image to be processed to determine target pixel points;

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

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

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

[0011] According to the brightness target value in the second block and the brightness target value in the first block, an initial brightness compensation value is obtained by searching in a preset brightness compensation table; the brightness target value in the second block is the brightness target value in the block corresponding to the first pixel block where the target pixel point is located;

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

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

[0014] If the initial brightness compensation value is not found in the preset brightness compensation table, determining a reference value according to the brightness target value in the second block and the brightness target value in the first block;

[0015] According to the reference value, a reference brightness compensation value is obtained by searching the preset brightness compensation table;

[0016] Performing interpolation calculation on the brightness target value in the first block based on the reference brightness compensation value to obtain the target brightness compensation value;

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

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

[0019] Performing intra-frame detection on the current frame image to be processed to determine the difference between each of the first pixel points and the first pixel block where the first pixel point is located;

[0020] If the difference situation is that there is a difference, the first pixel point is used as the target pixel point.

[0021] In one embodiment, performing intra-frame detection on the current frame image to be processed to determine the difference between each of the first pixel points and the first pixel block where the first pixel point is located includes:

[0022] Compare the brightness value corresponding to each of the first pixel points with the brightness target value in the third block corresponding to each of the first pixel points to obtain a second difference value; 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 point is located;

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

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

[0025] Get the current frame grayscale image;

[0026] The grayscale value corresponding to each pixel in the current frame grayscale image is converted into a brightness value to obtain the current frame image to be processed.

[0027] In a second aspect, the present application provides a brightness compensation device, the device comprising:

[0028] An acquisition module is used to acquire a current frame image to be processed and a target frame image; the current frame image to be processed and the target frame image respectively include a plurality of first pixel blocks and a second pixel block; the target frame image is a previous preset frame image of the current frame image to be processed; each first pixel point in each first pixel block corresponds to each second pixel point in each second pixel block;

[0029] An intra-frame detection module is used to perform intra-frame detection on the current frame image to be processed to determine the target pixel point;

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

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

[0032] In a third aspect, the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0033] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0034] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.

[0035] The above-mentioned brightness compensation method, device, computer equipment, computer-readable storage medium and computer program product first determine the target pixel point of the current frame through intra-frame detection, and then compare the brightness average of the pixel point with the block where the corresponding pixel point in the previous preset frame is located. When it is detected that the brightness difference exceeds the preset threshold, the system will compensate the target pixel point in the current frame to make it closer to the brightness of the target frame. This compensation method based on the brightness change of the corresponding position of the previous and next frames can effectively eliminate the brightness jump between frames, ensure the smoothness and consistency of the image transition, and thus improve the display effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 A diagram showing an application environment of a brightness compensation method in an embodiment;

[0038] Figure 2 is a schematic flow chart of a brightness compensation method in one embodiment;

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

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

[0041] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0043] The brightness compensation method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The server 104 obtains 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 a second pixel block; the target frame image is the previous preset frame image of the current frame image to be processed; each first pixel point in each first pixel block corresponds to each second pixel point in each second pixel block. The server 104 performs intra-frame detection on the current frame image to be processed to determine the target pixel point; if the first pixel point is the target pixel point, the server 104 calculates the first difference between the brightness value corresponding to the target pixel point 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 point is located. If the first difference is greater than the first preset threshold, the server 104 compensates the target pixel point. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The server 104 may be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.

[0044] In an exemplary embodiment, Figure 2 As shown, a brightness compensation method is provided, which is applied to Figure 1 The server 104 in the example is used as an example to illustrate, including the following S202 to S206. Among them:

[0045] S202, obtaining 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 a plurality of second pixel blocks. The target frame image is a previous preset frame image of the current frame image to be processed. Each first pixel point in each first pixel block corresponds to each second pixel point in each second pixel block.

[0046] The current frame image to be processed refers to one frame image among multiple frame images continuously displayed on the display panel, for example, one frame image among multiple frame images continuously displayed on an AMOLED screen.

[0047] The target frame image is the preset frame image before the current frame image to be processed, which can be understood as the target frame image being the previous frame image of the current frame image to be processed, or the target frame image being the nth frame image before the current frame image to be processed. For example, if multiple frames of images are displayed continuously on the AMOLED screen, and the current frame image to be processed is the 4th frame image, then the target frame image can be the 3rd frame image before the 4th frame image, the 2nd frame image before the 4th frame image, or the 1st frame image before the 4th frame image.

[0048] The current frame image to be processed includes a number of first pixel blocks. The first pixel block is a block composed of at least one pixel point in the current frame image to be processed. The size of the first pixel block can be set by itself, that is, the number of pixels in the first pixel block can be set in advance by itself. The target frame image includes a number of second pixel blocks. The second pixel block is a block composed of at least one pixel point 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 a plurality of first pixel blocks and dividing the target frame image into a plurality of second pixel blocks, when determining the target pixel points, the confirmation work of the target pixel points in the plurality of first pixel blocks can be processed simultaneously, thereby improving the confirmation work of the target pixel points in the current frame image to be processed.

[0049] The one-to-one correspondence between each first pixel point in each first pixel block and each second pixel point in each second pixel block means that each first pixel block corresponds to each second pixel block, and each first pixel point corresponds to each second pixel point in the corresponding first pixel block and second pixel block. For example, among the plurality of first pixel blocks and the plurality of second pixel blocks, the first pixel block A corresponds to the second pixel block B, and among the plurality of first pixel points in the first pixel block A and the plurality of second pixel points in the second pixel block B, the first pixel point C corresponds to the second pixel point D.

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

[0051] Optionally, the server obtains the current frame image to be processed from the displayed multiple frames of 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 a plurality of first pixel blocks, and the target frame image includes a plurality of second pixel blocks, each first pixel block corresponds to each second pixel block, and each first pixel point corresponds to each second pixel point in the corresponding first pixel block and second pixel block.

[0052] S204, performing intra-frame detection on the current frame image to be processed to determine target pixel points.

[0053] Among them, the intra-frame detection refers to determining the target pixel point according to the brightness value of the first pixel point of the current frame image to be processed and the intra-block brightness target value of the first pixel block where the first pixel point is located. The intra-block brightness target value of the first pixel block includes but is not limited to the brightness mean value between the first pixel points in the first pixel block and the median value of the brightness value of the first pixel points in the first pixel block.

[0054] Optionally, the server determines the target pixel point in the current frame image to be processed according to the brightness value of each first pixel point of the current frame image to be processed and the intra-block brightness target value of the first pixel block where the first pixel point is located.

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

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

[0057] The brightness target value in the first block includes, but is not limited to, a brightness mean value between the second pixel points in the second pixel block and a median value of the brightness values ​​of the second pixel points in the second pixel block.

[0058] The number of target pixels may be multiple, one, or zero. In the case where the number of target pixels is multiple, the first difference between the brightness value corresponding to each target pixel and the brightness target value in the first block is calculated to perform brightness compensation on each target pixel.

[0059] Optionally, the server determines the target pixel in the current frame image to be processed according to the result of the in-frame detection of the current frame image to be processed. When there are multiple target pixel points, the server calculates the first difference between the brightness value corresponding to each target pixel and the brightness target value in the first block. The brightness target value in the first block includes but is not limited to the brightness mean value between each second pixel in the second pixel block and the median value of the brightness value of each second pixel in the second pixel block.

[0060] S208: If the first difference is greater than a first preset threshold, the target pixel is compensated.

[0061] The first preset threshold may be pre-set and stored in a storage component of the server.

[0062] Compensation refers to compensating the brightness value of the target pixel. For example, increasing the brightness value of the target pixel. The compensated brightness value can be set by yourself or determined by querying a preset brightness compensation table, such as Figure 3 Shown is a schematic diagram of brightness values ​​before and after compensation.

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

[0064] In the above brightness compensation method, the target pixel of the current frame is first determined by intra-frame detection, and then the average brightness of the pixel is compared with the block where the corresponding pixel in the previous preset frame is located. When it is detected that the brightness difference exceeds the preset threshold, the system will compensate 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 the corresponding position of the previous and next frames can effectively eliminate the brightness jump between frames, ensure the smoothness and consistency of the image transition, and thus improve the display effect.

[0065] In some embodiments, when performing brightness compensation, the server performs brightness compensation on 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 an exemplary embodiment, compensating a target pixel includes:

[0067] According to the second block brightness target value and the first block brightness target value, the initial brightness compensation value is obtained by searching in 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.

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

[0069] The brightness target value in the second block includes but is not limited to the brightness mean value between the first pixels in the first pixel block where the target pixel is located, and the median value of the brightness values ​​of the first pixels.

[0070] The preset brightness compensation table is a table that is pre-set and stored in a storage component of the server and can be used to query the target brightness compensation value. The initial brightness compensation value is the compensation value queried in the preset brightness compensation table with the brightness target value in the second block and the brightness target value in the first block as indexes. For example, the preset brightness compensation table is shown in Table 1, where pre represents the brightness target value in the first block, and cur represents the brightness target value in the second block. When the brightness target value in the first block is 0 and the brightness target value in the second block is 16, the initial brightness compensation value can be directly queried from the preset brightness compensation table with 0 and 16 as indexes to find that it is 24.

[0071] Table 1 Preset brightness compensation table

[0072]

[0073] Compensating the target pixel based on the target brightness compensation value means changing the target brightness compensation value based on the current brightness value of the target pixel. For example, based on the current brightness value of the target pixel, the target brightness compensation value is increased to compensate the brightness of the target pixel.

[0074] Optionally, the server uses the determined second block internal brightness target value and the first block internal brightness target value as indexes to query from a 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 based on the current brightness value of the target pixel point, changes the target brightness compensation value to perform brightness compensation on the target pixel point.

[0075] In this embodiment, by searching for an initial brightness compensation value in a preset brightness compensation table according to the brightness target value in the second block and the brightness target value in the first block, 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 an exemplary embodiment, the brightness compensation method further includes:

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

[0078] The reference brightness compensation value is obtained by searching in a preset brightness compensation table according to the reference value.

[0079] An interpolation calculation is performed on the brightness target value in the first block based on the reference brightness compensation value to obtain a target brightness compensation value.

[0080] Compensate the target pixel according to the target brightness compensation value.

[0081] Among them, the reasons why the initial brightness compensation value is not found in the preset brightness compensation table mainly include that the brightness target value in the second block does not exist in the preset brightness compensation table, or the brightness target value in the first block does not exist in the preset brightness compensation table, or the brightness target value in the second block and the brightness target value in the first block do not exist in the preset brightness compensation table. Therefore, it is necessary to determine a reference value, and determine the reference brightness compensation value through the reference value to determine the target brightness compensation value.

[0082] The reference value refers to at least two values ​​adjacent to the brightness target value in the second block in the preset brightness compensation table, and at least two values ​​adjacent to the brightness target value in the second block in the preset brightness compensation table. For example, as shown in Table 1, when the brightness target value in the first block is 8 and the brightness target value in the second block is 24, there is no node with pre=8 and no node with cur=24 in the preset brightness compensation table, so the adjacent nodes 0 and 16 can be selected as reference values ​​through the brightness target value 8 in the first block, and the adjacent nodes 16 and 32 can be selected as reference values ​​through the brightness target value 24 in the second block.

[0083] The reference brightness compensation value is a brightness compensation value queried in a preset brightness compensation table with reference value corresponding to the brightness target value in the second block and reference value corresponding to the brightness target value in the first block as index. For example, following the above example, four reference brightness compensation values ​​can be selected, namely, reference brightness compensation value 24 selected based on reference value 0 corresponding to brightness target value 8 in the first block and reference value 16 corresponding to brightness target value 24 in the second block, reference brightness compensation value 40 selected based on reference value 0 corresponding to brightness target value 8 in the first block and reference value 32 corresponding to brightness target value 24 in the second block, reference brightness compensation value 16 selected based on reference value 16 corresponding to brightness target value 8 in the first block and reference value 16 corresponding to brightness target value 24 in the second block, and reference brightness compensation value 38 selected based on reference value 16 corresponding to brightness target value 8 in the first block and reference value 32 corresponding to brightness target value 24 in the second block.

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

[0085] Compensating the target pixel point according to the target brightness compensation value refers to changing the target brightness compensation value based on the current brightness value of the target pixel point.

[0086] Optionally, if the initial brightness compensation value is not found in the preset brightness compensation table, the server determines at least two values ​​in the preset brightness compensation table that are adjacent to the brightness target value in the second block, and at least two values ​​in the preset brightness compensation table that are adjacent to the brightness target value in the second block as reference values. The server uses the reference value corresponding to the brightness target value in the second block and the reference value corresponding to the brightness target value in the first block as indexes to query the preset brightness compensation table to obtain a reference brightness compensation value. The server interpolates the brightness target value in the first block based on the reference brightness compensation value to obtain a 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 according to the brightness target value in the second block and the brightness target value in the first block. The preset brightness compensation table is searched according to the reference value to obtain a reference brightness compensation value, and the reference brightness compensation value is used as the target brightness compensation value. The target pixel point is compensated according to the target brightness compensation value. In this way, the time for determining the target brightness compensation value can be saved, and the brightness compensation of the target pixel point can be quickly performed.

[0088] In this embodiment, when the initial brightness compensation value is not found in the preset brightness compensation table, the reference value is determined according to the brightness target value in the second block and the brightness target value in the first block, so that the reference brightness compensation value can be found based on the reference value. When the brightness target value in the first block is interpolated based on the reference brightness compensation value, when there is no corresponding initial brightness compensation value in the preset brightness compensation table, the closest reference brightness compensation value can be used to calculate a suitable target brightness compensation value, thereby achieving compensation for the target pixel point.

[0089] In an exemplary embodiment, performing intra-frame detection on the current frame image to be processed to determine the target pixel point includes:

[0090] An intra-frame detection is performed on the current frame image to be processed to determine the difference between each first pixel point and the first pixel block where the first pixel point is located.

[0091] If the difference is that there is a difference, the first pixel point is used as the target pixel point.

[0092] The intra-frame detection refers to determining the difference according to the brightness value of the first pixel of the current frame image to be processed and the intra-block brightness target value of the first pixel block where the first pixel is located.

[0093] The difference situation refers to the difference between the brightness value of the first pixel point and the brightness target value within the first pixel block where the first pixel point is located. The brightness target value within the first pixel block includes but is not limited to the brightness mean value between the first pixel points in the first pixel block and the median value of the brightness value of the first pixel points in the first pixel block. For example, each first pixel point of the first pixel block is detected point by point. If there is a difference between the brightness value of the first pixel point A and the brightness target value within the first pixel block, the first pixel point A is the target pixel point.

[0094] In some embodiments, the differences between each first pixel point and the first pixel block in which it is located may be determined sequentially or simultaneously.

[0095] Optionally, the server determines the difference between each first pixel and the first pixel block where the first pixel is located based on the brightness value of the first pixel of the current frame image to be processed and the intra-block brightness target value of the first pixel block where the first pixel is located. If there is a difference between the brightness value of the first pixel and the intra-block brightness target value of the first pixel block where 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 point that is different from the first pixel block where the first pixel point is located as the target pixel point, pixels that are significantly different from other pixels can be screened out, thereby ensuring that compensation is only for pixels with large brightness deviations.

[0097] In an exemplary embodiment, performing intra-frame detection on the current frame image to be processed to determine the difference between each first pixel point and the first pixel block where the first pixel point is located includes:

[0098] Compare the brightness value corresponding to each first pixel point with the brightness target value in the third block where each first pixel point is located to obtain a second difference value; 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 point is located;

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

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

[0101] The brightness target value within the third block includes the brightness target value within the first pixel block where the first pixel point is located. The brightness target value within the third block includes but is not limited to the brightness mean value between the first pixel points in the first pixel block where the first pixel point is located and the median value of the brightness values ​​of the first pixel points in the first pixel block where the first pixel point is located.

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

[0103] In some embodiments, when comparing brightness values, the brightness values ​​corresponding to each first pixel point may be compared with the brightness target value in the third block corresponding to each first pixel point in sequence, or the brightness values ​​corresponding to multiple first pixel points may be compared with the brightness target value in the third block corresponding to each first pixel point at the same time. Comparing the brightness values ​​corresponding to multiple first pixel points with the brightness target value in the third block corresponding to each first pixel point at the same time may speed up the process of obtaining the second difference value corresponding to each first pixel point.

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

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

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

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

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

[0109] The grayscale value corresponding to each pixel in the current frame grayscale image is converted into a brightness value to obtain the current frame image to be processed.

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

[0111] Methods for converting the grayscale value corresponding to each pixel in the current frame grayscale image into a brightness value 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, presetting a color mapping table, querying the corresponding brightness value according to 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 a brightness value through LUTA (Look-Up Table).

[0112] In some embodiments, acquiring a target frame image includes: acquiring a target frame grayscale image; converting the grayscale value corresponding to each pixel in the target frame grayscale image into a brightness value to obtain the target frame image. The method of converting the grayscale value corresponding to each pixel in the target frame grayscale image into a brightness value includes but is not limited to dividing the grayscale value of each pixel in the target frame grayscale image by the maximum possible grayscale value, presetting a color mapping table, querying the corresponding brightness value according to the grayscale value of each pixel in the current frame grayscale image, and converting the grayscale value of each pixel in the target frame grayscale image into a brightness value through LUTA (Look-Up Table).

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

[0114] In this embodiment, by converting the grayscale value corresponding to each pixel in the current frame grayscale image into a brightness value, the current frame grayscale image can be enhanced, so that the current frame to be processed is more suitable for the brightness compensation scenario.

[0115] The present application also provides an application scenario, which applies the above-mentioned system performance test method. Specifically, the application of the system performance test method in this application scenario is as follows: the server obtains a current frame grayscale image that only contains grayscale values ​​but not color information, and converts the grayscale value of each pixel in the current frame grayscale image into a brightness value through 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 a number of first pixel blocks according to the preset size, and divides the target frame image into a number of second pixel blocks, wherein each first pixel block corresponds to each second pixel block, and each first pixel point corresponds to each second pixel point in the corresponding first pixel block and second pixel block.

[0116] The server simultaneously compares the brightness value corresponding to each first pixel with the brightness target value in the third block corresponding to the first pixel block where each first pixel is located, and obtains a first difference between the brightness value corresponding to each first pixel and the brightness target value in the third block corresponding to each first pixel. The server compares the second difference corresponding to each first pixel with the second preset threshold value, respectively, to obtain multiple comparison results. When the comparison result indicates that the second difference is less than the second preset threshold value, the server determines that there is a difference between the first pixel corresponding to the second difference and the brightness target value in the third block. When there is a difference between the brightness value of the first pixel and the brightness target value in the first pixel block where the first pixel is located, the server determines the first pixel with the difference as the target pixel.

[0117] When there are multiple target pixel points, the server calculates the first difference between the brightness value corresponding to each target pixel point and the brightness target value in the first block.

[0118] When the server detects that the first difference value corresponding to the target pixel is greater than the first preset threshold, the server uses the brightness target value in the block corresponding to the first pixel block where the target pixel is located as the brightness target value in the second block. The server uses the determined brightness target value in the second block and the brightness target value in the first block as indexes to query from a 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 changes 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 ​​in the preset brightness compensation table that are adjacent to the brightness target value in the second block, and at least two values ​​in the preset brightness compensation table that are adjacent to the brightness target value in the second block as reference values. The server uses the reference value corresponding to the brightness target value in the second block and the reference value corresponding to the brightness target value in the first block as indexes to query the preset brightness compensation table to obtain a reference brightness compensation value. The server interpolates the brightness target value in the first block based on the reference brightness compensation value to obtain a 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.

[0120] In the above brightness compensation method, by comparing the pixel points of the current frame to be processed with the corresponding pixel points in the target frame, the pixel points with brightness deviation are accurately located. In addition, the first difference between the brightness value corresponding to the target pixel point and the brightness target value in the first block is calculated to ensure that compensation is only for pixels with large brightness deviation. This can effectively avoid unnecessary compensation when there is no obvious brightness difference, thereby improving the accuracy of compensation. In addition, using the pixel block of the previous preset frame image as a reference when calculating the first difference can better maintain the visual consistency of the image between frames, reduce brightness jumps, and thus improve the accuracy of image compensation.

[0121] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0122] Based on the same inventive concept, the embodiment of the present application further provides a brightness compensation device for implementing the brightness compensation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more brightness compensation device embodiments provided below can refer to the limitations on the brightness compensation method above, and will not be repeated here.

[0123] In an exemplary embodiment, 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 respectively include a plurality of first pixel blocks and a second pixel block. The target frame image is a previous preset frame image of the current frame image to be processed. Each first pixel point in each first pixel block corresponds to each second pixel point 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 be processed to determine the target pixel point.

[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 in the first block if the first pixel is the target pixel. The brightness target value in the first block is the brightness target value in the second pixel block where the second pixel is located.

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

[0128] In the above brightness compensation device, by comparing the pixel points of the current frame to be processed with the corresponding pixel points in the target frame, the pixel points with brightness deviation are accurately located. In addition, the first difference between the brightness value corresponding to the target pixel point and the brightness target value in the first block is calculated to ensure that compensation is only performed on the pixel points with large brightness deviation. This can effectively avoid unnecessary compensation when there is no obvious brightness difference, thereby improving the accuracy of compensation. In addition, when calculating the first difference, the pixel block of the previous preset frame image is used as a reference, which can better maintain the visual consistency of the image between frames, reduce brightness jumps, and thus improve the accuracy of image compensation.

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

[0130] The first query unit is used to query the preset brightness compensation table according to 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.

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

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

[0133] The reference value determining unit is used to determine the reference value according to the second block internal brightness target value and the first block internal brightness target value if the initial brightness compensation value is not found in the preset brightness compensation table.

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

[0135] The compensation value determination unit is used to perform interpolation calculation on the brightness target value in the first block based on the reference brightness compensation value to obtain a target brightness compensation value.

[0136] The second compensation unit is used to compensate the target pixel point 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 be processed to determine the difference between each first pixel point and the first pixel block where the first pixel point is located.

[0139] The pixel point determination unit is used to take the first pixel point as the target pixel point if the difference situation is that there is a difference.

[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 in the third block corresponding to each first pixel to obtain a second difference value. The brightness target value in the third block is the brightness target value in 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 first pixel point and the brightness target value in the third block if the second difference value is less than a second preset threshold value.

[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 above brightness compensation device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0147] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 5As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the current frame image to be processed, the target frame image, the target pixel point, the brightness value corresponding to the target pixel point, the brightness target value in the first block, the first difference, and the first preset threshold. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a brightness compensation method is implemented.

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

[0149] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[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 a plurality of first pixel blocks and a plurality of second pixel blocks; the target frame image is a previously preset frame image of the current frame image to be processed; each first pixel point in each first pixel block corresponds to each second pixel point in each second pixel block in a one-to-one manner; perform intra-frame detection on the current frame image to be processed to determine the target pixel point; if the first pixel point is the target pixel point, calculate the first difference between the brightness value corresponding to the target pixel point and the brightness target value in the first block; the brightness target value in the first block is the intra-block brightness target value corresponding to the second pixel block where the second pixel point is located; if the first difference is greater than a first preset threshold, compensate the target pixel point.

[0151] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0152] According to the brightness target value in the second block and the brightness target value in the first block, an initial brightness compensation value is obtained by searching in a preset brightness compensation table; the brightness target value in the second block is the brightness target value in the block 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 point is compensated based on the target brightness compensation value.

[0153] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0154] If the initial brightness compensation value is not found in the preset brightness compensation table, determine the reference value according to the brightness target value in the second block and the brightness target value in the first block; query in the preset brightness compensation table according to the reference value to obtain the reference brightness compensation value; interpolate the brightness target value in the first block based on the reference brightness compensation value to obtain the target brightness compensation value; compensate the target pixel point according to the target brightness compensation value.

[0155] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0156] An intra-frame detection is performed on the current frame image to be processed to determine the difference between each first pixel point and the first pixel block where the first pixel point is located; if the difference is that there is a difference, the first pixel point is used as the target pixel point.

[0157] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

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

[0159] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0160] Obtain the current frame grayscale image; 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.

[0161] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[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 a plurality of first pixel blocks and a plurality of second pixel blocks; the target frame image is a previously preset frame image of the current frame image to be processed; each first pixel point in each first pixel block corresponds to each second pixel point in each second pixel block in a one-to-one manner; perform intra-frame detection on the current frame image to be processed to determine the target pixel point; if the first pixel point is the target pixel point, calculate the first difference between the brightness value corresponding to the target pixel point and the brightness target value in the first block; the brightness target value in the first block is the intra-block brightness target value corresponding to the second pixel block where the second pixel point is located; if the first difference is greater than a first preset threshold, compensate the target pixel point.

[0163] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0164] According to the brightness target value in the second block and the brightness target value in the first block, an initial brightness compensation value is obtained by searching in a preset brightness compensation table; the brightness target value in the second block is the brightness target value in the block 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 point is compensated based on the target brightness compensation value.

[0165] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0166] If the initial brightness compensation value is not found in the preset brightness compensation table, determine the reference value according to the brightness target value in the second block and the brightness target value in the first block; query in the preset brightness compensation table according to the reference value to obtain the reference brightness compensation value; interpolate the brightness target value in the first block based on the reference brightness compensation value to obtain the target brightness compensation value; compensate the target pixel point according to the target brightness compensation value.

[0167] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0168] An intra-frame detection is performed on the current frame image to be processed to determine the difference between each first pixel point and the first pixel block where the first pixel point is located; if the difference is that there is a difference, the first pixel point is used as the target pixel point.

[0169] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

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

[0171] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0172] Obtain the current frame grayscale image; 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.

[0173] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements 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 a plurality of first pixel blocks and a plurality of second pixel blocks; the target frame image is a previously preset frame image of the current frame image to be processed; each first pixel point in each first pixel block corresponds to each second pixel point in each second pixel block in a one-to-one manner; perform intra-frame detection on the current frame image to be processed to determine the target pixel point; if the first pixel point is the target pixel point, calculate the first difference between the brightness value corresponding to the target pixel point and the brightness target value in the first block; the brightness target value in the first block is the intra-block brightness target value corresponding to the second pixel block where the second pixel point is located; if the first difference is greater than a first preset threshold, compensate the target pixel point.

[0175] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0176] According to the brightness target value in the second block and the brightness target value in the first block, an initial brightness compensation value is obtained by searching in a preset brightness compensation table; the brightness target value in the second block is the brightness target value in the block 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 point is compensated based on the target brightness compensation value.

[0177] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0178] If the initial brightness compensation value is not found in the preset brightness compensation table, determine the reference value according to the brightness target value in the second block and the brightness target value in the first block; query in the preset brightness compensation table according to the reference value to obtain the reference brightness compensation value; interpolate the brightness target value in the first block based on the reference brightness compensation value to obtain the target brightness compensation value; compensate the target pixel point according to the target brightness compensation value.

[0179] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0180] An intra-frame detection is performed on the current frame image to be processed to determine the difference between each first pixel point and the first pixel block where the first pixel point is located; if the difference is that there is a difference, the first pixel point is used as the target pixel point.

[0181] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

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

[0183] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0184] Obtain the current frame grayscale image; 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.

[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, stored data, displayed data, 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 relevant data must comply with relevant regulations.

[0186] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0187] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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 above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A brightness compensation method, characterized in that: The method comprises: Acquire a current frame image to be processed and a target frame image; the current frame image to be processed and the target frame image respectively include a plurality of first pixel blocks and a plurality of second pixel blocks; the target frame image is a previous preset frame image of the current frame image to be processed; each first pixel point in each first pixel block corresponds to each second pixel point in each second pixel block; Performing intra-frame detection on the current frame image to be processed to determine target pixel points; If the first pixel is a target pixel, a first difference between a brightness value corresponding to the target pixel and a brightness target value in a first block is calculated; the brightness target value in the first block is a brightness target value in a block corresponding to the second pixel block where the second pixel is located; If the first difference is greater than a first preset threshold, the target pixel is compensated.

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

3. The method according to claim 2, characterized in that The method further comprises: If the initial brightness compensation value is not found in the preset brightness compensation table, determining a reference value according to the brightness target value in the second block and the brightness target value in the first block; According to the reference value, a reference brightness compensation value is obtained by searching the preset brightness compensation table; Performing interpolation calculation on the brightness target value in the first block based on the reference brightness compensation value 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: The performing intra-frame detection on the current frame image to be processed to determine the target pixel point includes: Performing intra-frame detection on the current frame image to be processed to determine the difference between each of the first pixel points and the first pixel block where the first pixel point is located; If the difference situation is that there is a difference, the first pixel point is used as the target pixel point.

5. The method according to claim 4, characterized in that Performing intra-frame detection on the current frame image to be processed to determine the difference between each of the first pixel points and the first pixel block where the first pixel point is located, includes: Compare the brightness value corresponding to each of the first pixel points with the brightness target value in the third block corresponding to each of the first pixel points to obtain a second difference value; 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 point is located; If the second difference is less than a second preset threshold, it is determined that there is a difference between the first pixel point and the brightness target value in the third block.

6. The method according to claim 1, characterized in that Get the current frame image to be processed, including: Get the current frame grayscale image; The grayscale value corresponding to each pixel in the current frame grayscale image is converted into a brightness value to obtain the current frame image to be processed.

7. A brightness compensation device, characterized in that: The device comprises: An acquisition module is used to acquire a current frame image to be processed and a target frame image; the current frame image to be processed and the target frame image respectively include a plurality of first pixel blocks and a second pixel block; the target frame image is a previous preset frame image of the current frame image to be processed; each first pixel point in each first pixel block corresponds to each second pixel point in each second pixel block; An intra-frame detection module is used to perform intra-frame detection on the current frame image to be processed to determine the target pixel point; A first difference calculation module is used to calculate a first difference between a brightness value corresponding to the target pixel point and a brightness target value in a first block if the first pixel point is a target pixel point; the brightness target value in the first block is a brightness target value in a block corresponding to the second pixel block where the second pixel point is located; A compensation module is used to compensate the target pixel if the first difference is greater than a first preset threshold.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, 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 6 are implemented.

10. A computer program product, comprising a computer program, 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 6 are implemented.

Citation Information

Patent Citations

  • Method and apparatus for illumination compensation and method and apparatus for encoding and decoding image

    CN101325715A

  • Organic light emitting display device and driving method thereof

    CN103854604A

  • Method and device for compensating for gray-scale luminance of images

    CN107610669A

  • Backlight brightness processing method and system, backlight brightness adjusting method, and storage medium

    CN108389552A

  • Local brightness compensation method and device and computer readable storage medium

    CN112911301A