Search

CN-119296478-B - Brightness compensation method, apparatus, computer device, readable storage medium, and program product

CN119296478BCN 119296478 BCN119296478 BCN 119296478BCN-119296478-B

Abstract

The present application relates to a brightness compensation method, apparatus, computer device, computer readable storage medium and computer program product. The method comprises the steps of obtaining a current frame image to be processed and a target frame image, wherein 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 pre-set 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 one by one, intra-frame detection is conducted on the current frame image to be processed, the target pixel point is determined, 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 brightness target value in the first block is calculated, and if the first difference value is larger than a first preset threshold value, the target pixel point is compensated. The method can improve the accuracy of the compensation of the image.

Inventors

  • LI JIAJUN
  • HUANG LONG

Assignees

  • 格兰菲智能科技股份有限公司

Dates

Publication Date
20260512
Application Date
20241009

Claims (10)

  1. 1. A method of brightness compensation, the method comprising: The method comprises the steps of obtaining a current frame image to be processed and a target frame image, wherein the current frame image to be processed and the target frame image respectively comprise a plurality of first pixel blocks and second pixel blocks, and the target frame image is a pre-set frame image of the current frame image to be processed; Performing intra-frame detection on the current frame image to be processed, and determining a target pixel point; if the first pixel point is a target pixel point, calculating a first difference value between a brightness value corresponding to the target pixel point and a first intra-block brightness target value, wherein the first intra-block brightness target value is an intra-block brightness target value corresponding to the second pixel block where the second pixel point is located; if the first difference value is larger than a first preset threshold value, compensating the target pixel point; The step of performing intra-frame detection on the current frame image to be processed to determine a target pixel point includes: performing intra-frame detection on the current frame image to be processed, and determining the difference condition between each first pixel point and the first pixel block where the first pixel point is located; If the difference condition is that the difference exists, the first pixel point is used as the target pixel point; performing intra-frame detection on the current frame image to be processed, determining a difference condition between each first pixel point and the first pixel block where the first pixel point is located, including: comparing the brightness value corresponding to each first pixel point with a third intra-block brightness target value corresponding to each first pixel point to obtain a second difference value, wherein the third intra-block brightness target value is the intra-block brightness target value corresponding to the first pixel block where the first pixel point is located; and if the second difference value is larger than a second preset threshold value, judging that the difference exists between the first pixel point and the brightness target value in the third block.
  2. 2. The method of claim 1, wherein the step of determining the position of the substrate comprises, the compensating the target pixel point includes: Inquiring in a preset brightness compensation table according to a second intra-block brightness target value and the first intra-block brightness target value to obtain an initial brightness compensation value, wherein the second intra-block brightness target value is the intra-block brightness target value corresponding to the first pixel block where the target pixel point is located; And taking the initial brightness compensation value as a target brightness compensation value, and compensating the target pixel point based on the target brightness compensation value.
  3. 3. The method according to claim 2, wherein the method further comprises: If the initial brightness compensation value is not queried in the preset brightness compensation table, determining a reference value according to the second intra-block brightness target value and the first intra-block brightness target value; inquiring in the preset brightness compensation table according to the reference value to obtain a reference brightness compensation value; 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; And compensating the target pixel point according to the target brightness compensation value.
  4. 4. The method of claim 1, wherein acquiring the current frame image to be processed comprises: acquiring a gray-scale image of a current frame; and converting the gray value corresponding to each pixel point in the gray image of the current frame into a brightness value to obtain the image of the current frame to be processed.
  5. 5. A brightness compensation device, the device comprising: the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for 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 pre-preset frame image of the current frame image to be processed, and each first pixel point in each first pixel block corresponds to each second pixel point in each second pixel block one by one; The intra-frame detection module is used for carrying out intra-frame detection on the current frame image to be processed and determining a target pixel point; the first difference value calculation module is used for calculating a first difference value between a brightness value corresponding to the target pixel point and a first intra-block brightness target value if the first pixel point is the target pixel point, wherein the first intra-block brightness target value is the intra-block brightness target value corresponding to the second pixel block where the second pixel point is located; the compensation module is used for compensating the target pixel point if the first difference value is larger than a first preset threshold value; the intra-frame detection module includes: The intra-frame detection unit is used for carrying out intra-frame detection on the current frame image to be processed and determining the difference condition between each first pixel point and the first pixel block where the first pixel point is located; a pixel point determining unit, configured to take the first pixel point as the target pixel point if the difference situation is that there is a difference; the intra-frame detection unit includes: The comparing subunit is used for comparing the brightness value corresponding to each first pixel point with a third intra-block brightness target value corresponding to each first pixel point to obtain a second difference value, wherein the third intra-block brightness target value is the intra-block brightness target value corresponding to the first pixel block where the first pixel point is located; And the difference judging unit is used for judging that the difference exists between the first pixel point and the brightness target value in the third block if the second difference is larger than a second preset threshold value.
  6. 6. The apparatus of claim 5, wherein the compensation module comprises: the first query unit is used for querying a preset brightness compensation table according to a second intra-block brightness target value and the first intra-block brightness target value to obtain an initial brightness compensation value, wherein the second intra-block brightness target value is an intra-block brightness target value corresponding to the first pixel block where the target pixel point is located; and the first compensation unit is used for taking the initial brightness compensation value as a target brightness compensation value and compensating the target pixel point based on the target brightness compensation value.
  7. 7. The apparatus of claim 6, wherein the compensation means further comprises: A reference value determining unit, configured to determine a reference value according to the second intra-block luminance target value and the first intra-block luminance target value if the initial luminance compensation value is not queried in the preset luminance compensation table; The second query unit is used for querying in the preset brightness compensation table according to the reference value to obtain a reference brightness compensation value; A compensation value determining unit, configured to perform interpolation calculation on the first intra-block luminance target value based on the reference luminance compensation value, to obtain the target luminance compensation value; and the second compensation unit is used for compensating the target pixel point according to the target brightness compensation value.
  8. 8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the computer program is executed.
  9. 9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
  10. 10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of any of claims 1 to 4.

Description

Brightness compensation method, apparatus, computer device, readable storage medium, and program product Technical Field The present application relates to the field of image technology, and in particular, to a brightness compensation method, apparatus, computer device, computer readable storage medium, and computer program product. Background 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, good color saturation. However, the driving circuit of the AMOLED screen usually includes a plurality of MOS transistors and capacitors for controlling the brightness of the light emitting diode, and the parasitic capacitance in the circuit structure often causes the problem of inaccurate brightness control. Disclosure of Invention In view of the foregoing, it is desirable to provide a brightness compensation method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve the accuracy of compensation for images. In a first aspect, the present application provides a brightness compensation method, the method comprising: The method comprises the steps of obtaining a current frame image to be processed and a target frame image, wherein the current frame image to be processed and the target frame image respectively comprise a plurality of first pixel blocks and second pixel blocks, and the target frame image is a pre-set frame image of the current frame image to be processed; Performing intra-frame detection on the current frame image to be processed, and determining a target pixel point; if the first pixel point is a target pixel point, calculating a first difference value between a brightness value corresponding to the target pixel point and a first intra-block brightness target value, wherein the first intra-block brightness target value is an intra-block brightness target value corresponding to the second pixel block where the second pixel point is located; and if the first difference value is larger than a first preset threshold value, compensating the target pixel point. In one embodiment, the compensating the target pixel includes: Inquiring in a preset brightness compensation table according to a second intra-block brightness target value and the first intra-block brightness target value to obtain an initial brightness compensation value, wherein the second intra-block brightness target value is the intra-block brightness target value corresponding to the first pixel block where the target pixel point is located; And taking the initial brightness compensation value as a target brightness compensation value, and compensating the target pixel point based on the target brightness compensation value. In one embodiment, the method further comprises: If the initial brightness compensation value is not queried in the preset brightness compensation table, determining a reference value according to the second intra-block brightness target value and the first intra-block brightness target value; inquiring in the preset brightness compensation table according to the reference value to obtain a reference brightness compensation value; 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; And compensating the target pixel point according to the target brightness compensation value. In one embodiment, the performing intra-frame detection on the current frame image to be processed to determine a target pixel includes: performing intra-frame detection on the current frame image to be processed, and determining the difference condition between each first pixel point and the first pixel block where the first pixel point is located; And if the difference condition is that the difference exists, taking the first pixel point as the target pixel point. In one embodiment, performing intra-frame detection on the current frame image to be processed, and determining a difference condition between each first pixel point and the first pixel block where the first pixel point is located includes: comparing the brightness value corresponding to each first pixel point with a third intra-block brightness target value corresponding to each first pixel point to obtain a second difference value, wherein the third intra-block brightness target value is the intra-block brightness target value corresponding to the first pixel block where the first pixel point is located; And if the second difference value is smaller than a second preset threshold value, judging that the difference exists between the first pixel point and the brightness target value in the third block. In one embodiment, acquiring a current frame image to be processed includes: acquiring a gray-scale image of a current frame; and conver