CN117334156B - Pixel compensation method, device, computer equipment and storage medium - Google Patents
Pixel compensation method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN117334156B CN117334156B CN202210748064.4A CN202210748064A CN117334156B CN 117334156 B CN117334156 B CN 117334156B CN 202210748064 A CN202210748064 A CN 202210748064A CN 117334156 B CN117334156 B CN 117334156B
- Authority
- CN
- China
- Prior art keywords
- pixel
- value
- compensation
- pixels
- acquiring
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000012545 processing Methods 0.000 claims abstract description 48
- 238000004590 computer program Methods 0.000 claims description 25
- 230000000694 effects Effects 0.000 abstract description 5
- 229920001621 AMOLED Polymers 0.000 description 7
- 230000008859 change Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000003068 static effect Effects 0.000 description 2
- 239000010409 thin film Substances 0.000 description 2
- 101100510695 Arabidopsis thaliana LUT2 gene Proteins 0.000 description 1
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000002238 attenuated effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 229910052799 carbon Inorganic materials 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/22—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
- G09G3/30—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
- G09G3/32—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
- G09G3/3208—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
- G09G3/3225—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED] using an active matrix
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0693—Calibration of display systems
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2360/00—Aspects of the architecture of display systems
- G09G2360/14—Detecting light within display terminals, e.g. using a single or a plurality of photosensors
- G09G2360/145—Detecting light within display terminals, e.g. using a single or a plurality of photosensors the light originating from the display screen
- G09G2360/147—Detecting light within display terminals, e.g. using a single or a plurality of photosensors the light originating from the display screen the originated light output being determined for each pixel
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
The application relates to a pixel compensation method, a pixel compensation device, a computer device and a storage medium. The method comprises the following steps: acquiring first gray values corresponding to first pixels contained in a current row and second gray values corresponding to second pixels adjacent to the first pixels; acquiring a first target pixel from the first pixel according to the first gray value and the second gray value, and determining the pixel number of the first target pixel; if the number of the pixels meets the number condition, acquiring a first pixel mean value of a first target pixel and a second pixel mean value of a second target pixel adjacent to the first target pixel in the second pixel; acquiring a difference value between the first pixel mean value and the second pixel mean value, and determining a pixel compensation value according to the difference value and the pixel number; and acquiring a pixel compensation area corresponding to the current line, and performing pixel compensation processing on pixels in the pixel compensation area based on the pixel compensation value. By adopting the method, the pixel compensation precision can be improved, and the crosstalk phenomenon eliminating effect can be improved.
Description
Technical Field
The present application relates to the field of image display technology, and in particular, to a pixel compensation method, apparatus, computer device, storage medium, and computer program product.
Background
With the development of image display technology, a technology of displaying images by using an AMOLED display device has emerged, in which light emission is realized by using sub-pixels, each of which may be formed of sub-pixel thin film transistors, and each of which light emission may be realized by driving the thin film transistors together with a gray-scale voltage and a common electrode.
Currently, for an AMOLED display device, when the pixel values of adjacent rows jump, a crosstalk phenomenon may occur, and at this time, a displayed image may have a bright and dark border phenomenon, for example, when a screen displays a white background and a black rectangle is arranged in the middle, bright and dark borders in four directions caused by the crosstalk phenomenon may occur, thereby affecting the effect of the screen display. In order to eliminate the crosstalk phenomenon, compensation is generally required for the pixels on the display device to implement the correction. However, the pixel compensation method currently applied to the AMOLED display device has low pixel compensation accuracy, so the effect of eliminating the crosstalk phenomenon is poor.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a pixel compensation method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve pixel compensation accuracy.
In a first aspect, the present application provides a pixel compensation method, the method comprising:
acquiring first gray values respectively corresponding to first pixels contained in a current row and second gray values respectively corresponding to second pixels adjacent to the first pixels in the display device;
acquiring a first target pixel from the first pixel according to the first gray value and the second gray value, and determining the number of pixels of the first target pixel;
If the number of the pixels meets the preset number condition, acquiring a first pixel mean value corresponding to the first target pixel and a second pixel mean value corresponding to a second target pixel adjacent to the first target pixel in the second pixel;
Acquiring a difference value between the first pixel mean value and the second pixel mean value, and determining a pixel compensation value according to the difference value and the pixel quantity;
and acquiring a pixel compensation area corresponding to the current line, and performing pixel compensation processing on pixels in the pixel compensation area based on the pixel compensation value.
In one embodiment, the acquiring the first target pixel from the first pixels includes: determining a current first pixel and a current second pixel adjacent to the current first pixel in the second pixels; acquiring a first gray value corresponding to the current first pixel and a second gray value corresponding to the current second pixel; and if the gray difference value between the first gray value corresponding to the current first pixel and the second gray value corresponding to the current second pixel is larger than a preset gray difference threshold value, taking the current first pixel as the first target pixel.
In one embodiment, the obtaining the first pixel mean value corresponding to the first target pixel if the number of pixels meets a preset number condition includes: acquiring a preset pixel quantity threshold value; and if the pixel number of the first target pixel is larger than the pixel number threshold, acquiring a first pixel mean value corresponding to the first target pixel.
In one embodiment, the determining the pixel compensation value according to the difference value and the pixel number includes: acquiring a first pixel compensation value corresponding to the difference value based on a preset first compensation value lookup table; acquiring second pixel compensation values corresponding to the number of pixels based on a preset second compensation value lookup table; and obtaining the pixel compensation value according to the first pixel compensation value and the second pixel compensation value.
In one embodiment, the obtaining the pixel compensation value according to the first pixel compensation value and the second pixel compensation value includes: acquiring a first compensation weight set for the first pixel compensation value and a second compensation weight set for the second pixel compensation value; and carrying out weighted summation processing on the first pixel compensation value and the second pixel compensation value based on the first compensation weight and the second compensation weight to obtain the pixel compensation value.
In one embodiment, the second compensation value lookup table stores correspondence between different reference pixel numbers and reference pixel compensation values; the obtaining, based on a preset second compensation value lookup table, a second pixel compensation value corresponding to the number of pixels includes: acquiring a first reference pixel number and a second reference pixel number corresponding to the pixel number from the reference pixel number; acquiring a first reference pixel compensation value corresponding to the first reference pixel number and a second reference pixel compensation value corresponding to the second reference pixel number from the second compensation value lookup table; and obtaining the second pixel compensation value based on the pixel number, the first reference pixel number, the second reference pixel number, the first reference pixel compensation value and the second reference pixel compensation value.
In one embodiment, the obtaining the pixel compensation area corresponding to the current line includes: acquiring a row position of the current row in the display device and a column position of each first target pixel contained in the current row; and obtaining the pixel compensation area corresponding to the current row by utilizing the row position and the column position based on a preset relative row-column position relation.
In one embodiment, the number of the pixel compensation areas is a plurality; the pixel compensation processing for the pixels in the pixel compensation area based on the pixel compensation value includes: acquiring compensation value attenuation coefficients of each pixel compensation area corresponding to the relative row-column position relationship according to the relative row-column position relationship; and carrying out attenuation processing on the pixel compensation value according to the compensation value attenuation coefficient, and carrying out pixel compensation processing on the pixels in each pixel compensation area by utilizing the pixel compensation value after the attenuation processing.
In a second aspect, the present application also provides a pixel compensation apparatus, the apparatus comprising:
the pixel gray scale acquisition module is used for acquiring first gray scale values respectively corresponding to first pixels contained in the current row and second gray scale values respectively corresponding to second pixels adjacent to the first pixels in the display device;
a target pixel obtaining module, configured to obtain a first target pixel from the first pixel according to the first gray value and the second gray value, and determine the number of pixels of the first target pixel;
the pixel mean value obtaining module is used for obtaining a first pixel mean value corresponding to the first target pixel and a second pixel mean value corresponding to a second target pixel adjacent to the first target pixel in the second pixel if the number of pixels meets a preset number condition;
The pixel compensation acquisition module is used for acquiring a difference value between the first pixel mean value and the second pixel mean value, and determining a pixel compensation value according to the difference value and the pixel quantity;
and the pixel compensation processing module is used for acquiring a pixel compensation area corresponding to the current line, and carrying out pixel compensation processing on pixels in the pixel compensation area based on the pixel compensation value.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring first gray values respectively corresponding to first pixels contained in a current row and second gray values respectively corresponding to second pixels adjacent to the first pixels in the display device;
acquiring a first target pixel from the first pixel according to the first gray value and the second gray value, and determining the number of pixels of the first target pixel;
If the number of the pixels meets the preset number condition, acquiring a first pixel mean value corresponding to the first target pixel and a second pixel mean value corresponding to a second target pixel adjacent to the first target pixel in the second pixel;
Acquiring a difference value between the first pixel mean value and the second pixel mean value, and determining a pixel compensation value according to the difference value and the pixel quantity;
and acquiring a pixel compensation area corresponding to the current line, and performing pixel compensation processing on pixels in the pixel compensation area based on the pixel compensation value.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring first gray values respectively corresponding to first pixels contained in a current row and second gray values respectively corresponding to second pixels adjacent to the first pixels in the display device;
acquiring a first target pixel from the first pixel according to the first gray value and the second gray value, and determining the number of pixels of the first target pixel;
If the number of the pixels meets the preset number condition, acquiring a first pixel mean value corresponding to the first target pixel and a second pixel mean value corresponding to a second target pixel adjacent to the first target pixel in the second pixel;
Acquiring a difference value between the first pixel mean value and the second pixel mean value, and determining a pixel compensation value according to the difference value and the pixel quantity;
and acquiring a pixel compensation area corresponding to the current line, and performing pixel compensation processing on pixels in the pixel compensation area based on the pixel compensation value.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
acquiring first gray values respectively corresponding to first pixels contained in a current row and second gray values respectively corresponding to second pixels adjacent to the first pixels in the display device;
acquiring a first target pixel from the first pixel according to the first gray value and the second gray value, and determining the number of pixels of the first target pixel;
If the number of the pixels meets the preset number condition, acquiring a first pixel mean value corresponding to the first target pixel and a second pixel mean value corresponding to a second target pixel adjacent to the first target pixel in the second pixel;
Acquiring a difference value between the first pixel mean value and the second pixel mean value, and determining a pixel compensation value according to the difference value and the pixel quantity;
and acquiring a pixel compensation area corresponding to the current line, and performing pixel compensation processing on pixels in the pixel compensation area based on the pixel compensation value.
The pixel compensation method, the device, the computer equipment, the storage medium and the computer program product are characterized in that a first gray value respectively corresponding to each first pixel contained in the current row and a second gray value respectively corresponding to each second pixel adjacent to each first pixel in the display device are obtained; acquiring a first target pixel from the first pixel according to the first gray value and the second gray value, and determining the pixel number of the first target pixel; if the number of the pixels meets the preset number condition, acquiring a first pixel mean value corresponding to the first target pixel and a second pixel mean value corresponding to a second target pixel adjacent to the first target pixel in the second pixel; acquiring a difference value between the first pixel mean value and the second pixel mean value, and determining a pixel compensation value according to the difference value and the pixel number; and acquiring a pixel compensation area corresponding to the current line, and performing pixel compensation processing on pixels in the pixel compensation area based on the pixel compensation value. According to the application, the first target pixel can be screened out through the gray value of the first pixel in the current row and the gray value of the second pixel adjacent to the first pixel, the pixel number of the first target pixel is counted, meanwhile, the pixel compensation value can be obtained by utilizing the difference value of the pixel mean value between the first target pixel and the second target pixel and the pixel number of the first target pixel, and further, the pixel compensation can be realized by utilizing the pixel compensation value.
Drawings
FIG. 1 is a flow chart of a pixel compensation method according to an embodiment;
FIG. 2 is a flow chart of a first embodiment of acquiring a first target pixel from a first pixel;
FIG. 3 is a flow chart of determining pixel compensation values in one embodiment;
FIG. 4 is a flowchart of acquiring a pixel compensation area corresponding to a current line in an embodiment;
FIG. 5 is a flow chart of a pixel compensation process for a pixel compensation area according to one embodiment;
FIG. 6 is a flow chart of a crosstalk cancellation method applied to an AMOLED screen in an application example;
FIG. 7 is a schematic view of the area of the compensation area determined in one example of application;
FIG. 8 is a block diagram of a pixel compensation apparatus in one embodiment;
fig. 9 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In one embodiment, as shown in fig. 1, a pixel compensation method is provided, and this embodiment is applied to a terminal for illustration, where the terminal may be various personal computers, notebook computers, smartphones, tablet computers and portable wearable devices, and it is understood that the method may also be applied to a server, and may also be applied to a system including a terminal and a server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes the steps of:
Step S101, obtaining a first gray value corresponding to each first pixel included in the current row and a second gray value corresponding to each second pixel adjacent to each first pixel in the display device.
The display device refers to an image display device for displaying an image, for example, may be an AMOLED display device, where a plurality of pixels may be included in the display device and arranged in rows and columns, and a current row may be any one of a plurality of pixel rows in the display device, where a pixel included in the pixel row may be a first pixel, and pixels adjacent to each first pixel, that is, pixels included in a row adjacent to the current row may be second pixels. The first gray scale value and the second gray scale value refer to the gray scale value corresponding to each first pixel and each second pixel respectively.
For example, the display device includes pixel 1, pixel 2, pixel 3, pixel 4, pixel 5, pixel 6, pixel 7, pixel 8 and pixel 9, where pixel 1, pixel 2 and pixel 3 are located in a first row, pixel 4, pixel 5 and pixel 6 are located in a second row, and pixel 7, pixel 8 and pixel 9 are located in a third row, if the current row is the first row, then the first pixel may be pixel 1, pixel 2 and pixel 3, and the second pixel adjacent thereto may be pixel 4, pixel 5 and pixel 6 located in the second row.
Step S102, according to the first gray level value and the second gray level value, a first target pixel is obtained from the first pixel, and the number of pixels of the first target pixel is determined.
The first target pixel may be a pixel selected from the first pixels, for example, when the screen is displayed as a white background and a black rectangle is displayed in the middle, a pixel corresponding to a rectangular edge of the black rectangle may be used as the first target pixel. The pixel may represent a sudden change in color and may therefore be determined from its own first gray value and the second gray value of its neighboring pixels, e.g. may be screened from the difference between the first gray value and the second gray value. The number of pixels refers to the number of first target pixels in the current row, and meanwhile, since not all pixels in the current row are used for displaying the rectangular sides of the black rectangle, after the first target pixels are screened out, the number of the first target pixels can be counted, so that the number of the pixels of the first target pixels is determined.
Step S103, if the number of pixels meets the preset number condition, a first pixel mean value corresponding to the first target pixel and a second pixel mean value corresponding to a second target pixel adjacent to the first target pixel in the second pixels are obtained.
The number condition refers to a preset condition that the number of pixels needs to be met, and the second target pixel refers to a pixel adjacent to the first target pixel in the second pixel, for example, a pixel 1 located in the first row is adjacent to a pixel 4 located in the second row, a pixel 2 located in the first row is adjacent to a pixel 5 located in the second row, and a pixel 3 located in the first row is adjacent to a pixel 6 located in the second row, and if it is determined that the first target pixel is the pixel 1 and the pixel 2, the corresponding second target pixel may be the pixel 4 and the pixel 5. The first pixel mean value refers to a pixel value mean value corresponding to each first target pixel, namely a pixel mean value between the pixel 1 and the pixel 2, and the second pixel mean value refers to a pixel value mean value corresponding to each second target pixel, namely a pixel mean value between the pixel 4 and the pixel 5.
Specifically, after determining the number of pixels of the first target pixels in the current row, it may be determined whether the number of pixels satisfies a preset number condition, and if so, a pixel mean value of each first target pixel may be obtained as a first pixel mean value, and a pixel mean value of a second target pixel adjacent to the first target pixel in the second pixel may be obtained as a second pixel mean value.
Step S104, obtaining a difference value between the first pixel mean value and the second pixel mean value, and determining a pixel compensation value according to the difference value and the pixel number.
The pixel compensation value refers to a compensation value that needs to compensate the pixel, and the value can be determined by the difference between the first pixel mean value and the second pixel mean value, and the number of pixels of the first target pixel. Specifically, after the first pixel mean value and the second pixel mean value are obtained in step S103, a difference between the first pixel mean value and the second pixel mean value may be calculated, and the corresponding pixel compensation value may be calculated by using the difference and the number of pixels determined in step S102.
Step S105, a pixel compensation area corresponding to the current line is obtained, and pixel compensation processing is performed on pixels in the pixel compensation area based on the pixel compensation value.
The pixel compensation area refers to an area corresponding to a pixel that needs to be subjected to pixel compensation, and in this embodiment, not all pixels in the display device need to be subjected to pixel compensation, but only a part of pixels in the display device, and the area position of the pixel compensation area may be adapted to the position of the current line. Specifically, after determining the current line, the terminal may find a corresponding pixel compensation area according to the position of the current line, and perform pixel compensation processing on pixels in the pixel compensation area by using the pixel compensation value.
In the pixel compensation method, a first gray value corresponding to each first pixel included in a current row and a second gray value corresponding to each second pixel adjacent to each first pixel in the display device are obtained; acquiring a first target pixel from the first pixel according to the first gray value and the second gray value, and determining the pixel number of the first target pixel; if the number of the pixels meets the preset number condition, acquiring a first pixel mean value corresponding to the first target pixel and a second pixel mean value corresponding to a second target pixel adjacent to the first target pixel in the second pixel; acquiring a difference value between the first pixel mean value and the second pixel mean value, and determining a pixel compensation value according to the difference value and the pixel number; and acquiring a pixel compensation area corresponding to the current line, and performing pixel compensation processing on pixels in the pixel compensation area based on the pixel compensation value. According to the application, the first target pixel can be screened out through the gray value of the first pixel in the current row and the gray value of the second pixel adjacent to the first pixel, the pixel number of the first target pixel is counted, meanwhile, the pixel compensation value can be obtained by utilizing the difference value of the pixel mean value between the first target pixel and the second target pixel and the pixel number of the first target pixel, and further, the pixel compensation can be realized by utilizing the pixel compensation value.
In one embodiment, as shown in fig. 2, step S102 may further include:
In step S201, a current first pixel and a current second pixel adjacent to the current first pixel among the second pixels are determined.
The current first pixel may refer to any one of the first pixels, and the current second pixel refers to a pixel adjacent to the current first pixel in the second pixels. For example, pixel 1 in the first row is adjacent to pixel 4 in the second row, pixel 2 in the first row is adjacent to pixel 5 in the second row, and pixel 3 in the first row is adjacent to pixel 6 in the second row, and if the current first pixel is pixel 1, the current second pixel may be pixel 4, and if the current first pixel is pixel 2, the current second pixel may be pixel 5. In this embodiment, any one of the plurality of first pixels may be determined as the current first pixel, and a second pixel adjacent to the current first pixel may be determined as the current second pixel.
Step S202, a first gray value corresponding to a current first pixel and a second gray value corresponding to a current second pixel are obtained;
In step S303, if the gray-level difference between the first gray-level value corresponding to the current first pixel and the second gray-level value corresponding to the current second pixel is greater than the preset gray-level difference threshold, the current first pixel is used as the first target pixel.
Then, the terminal may obtain the determined first gray value corresponding to the current first pixel and the second gray value corresponding to the current second pixel adjacent to the first gray value, calculate a gray difference value between the first gray value and the second gray value to represent a difference between the current first pixel and the current second pixel, and if the gray difference value is greater than a preset gray difference value threshold, may be set to 100, that is, if the difference between the current first pixel and the current second pixel is greater, may use the current first pixel as the first target pixel.
In this embodiment, the first target pixel may be screened out according to a preset gray level difference threshold, so that accuracy of screening the first target pixel may be improved.
Further, step S103 may further include: acquiring a preset pixel quantity threshold value; and if the pixel number of the first target pixel is larger than the pixel number threshold value, acquiring a first pixel mean value corresponding to the first target pixel.
The pixel number threshold is a condition value for identifying the number of pixels, and the value may be preset, for example, 170, and since the severity of the crosstalk phenomenon is proportional to the length of the rectangular side of the black rectangle in the screen, and the length of the rectangular side is short, that is, the number of pixels of the first target pixel is small, the crosstalk phenomenon is not serious, and therefore, the acquisition of the pixel average value is performed only when the number of pixels of the first target pixel reaches a certain level, so as to perform the compensation of the pixels.
Specifically, after determining the number of pixels corresponding to the first target pixel, the number of pixels may be further compared with a preset threshold of the number of pixels, and only when the number of pixels of the first target pixel is greater than the threshold of the number of pixels, the number of pixels of the first target pixel reaches a certain degree, the acquisition of the first pixel mean value corresponding to the first target pixel is performed to implement pixel compensation.
In this embodiment, the pixel compensation process is performed only when the number of pixels corresponding to the first target pixel reaches the threshold value of the number of pixels, that is, the pixel compensation is performed only when the crosstalk phenomenon is serious, so that the data operand caused by the pixel compensation can be reduced, and the efficiency of image display can be improved.
In one embodiment, as shown in fig. 3, step S104 may further include:
Step S301, a first pixel compensation value corresponding to the difference value is obtained based on a preset first compensation value lookup table.
The first pixel compensation value refers to a pixel compensation value determined by a difference between the first pixel mean value and the second pixel mean value, and in this embodiment, the pixel compensation value is composed of two parts, namely a pixel compensation value determined by a difference between the first pixel mean value and the second pixel mean value, and a pixel compensation value determined by the number of pixels of the first target pixel, wherein the pixel compensation value determined by the difference between the first pixel mean value and the second pixel mean value can be used as the first pixel compensation value. The first compensation value lookup table is a table for obtaining the first pixel compensation value, and the table may store a correspondence between the difference values of the pixel mean values and the pixel compensation values.
Specifically, after the terminal obtains the difference value between the first pixel mean value and the second pixel mean value, the pixel compensation value corresponding to the difference value can be found by querying a pre-established first compensation value lookup table to be used as the first pixel compensation value. For example, the first compensation value lookup table may store a correspondence between the difference value a and the compensation value a, a correspondence between the difference value B and the compensation value B, and a correspondence between the difference value C and the compensation value C, and when determining that the difference value between the first pixel mean value and the second pixel mean value is the difference value B, the compensation value B may be determined to be the first pixel compensation value.
Step S302, obtaining second pixel compensation values corresponding to the number of pixels based on a preset second compensation value lookup table;
Step S303, obtaining the pixel compensation value according to the first pixel compensation value and the second pixel compensation value.
The second pixel compensation value refers to a compensation value determined by the number of pixels of the first target pixel, that is, a portion of the final pixel compensation value determined by the number of pixels of the first target pixel, and the second compensation value lookup table is a table for obtaining the second pixel compensation value, where a correspondence relationship between a plurality of groups of pixel numbers and pixel compensation values may be stored.
Similarly to step S301, after determining the number of pixels of the first target pixel, the terminal may determine, as the second pixel compensation value, a compensation value corresponding to the number of pixels of the first target pixel from the second compensation value lookup table by referring to the second compensation value lookup table, and may determine, as the above pixel compensation value, a final pixel compensation value based on the first pixel compensation value obtained in step S301 and the second pixel compensation value obtained in step S302, for example, an average value of the first pixel compensation value and the second pixel compensation value.
In this embodiment, after determining the difference between the first pixel mean value and the second pixel mean value and the number of pixels of the first target pixel, the first compensation value lookup table and the second compensation value lookup table may be used to determine the corresponding first pixel compensation value and second pixel compensation value, and obtain the final pixel compensation value according to the first pixel compensation value and the second pixel compensation value, so that the efficiency of obtaining the pixel compensation value may be improved.
Further, step S303 may further include: acquiring a first compensation weight set for a first pixel compensation value and a second compensation weight set for a second pixel compensation value; and carrying out weighted summation processing on the first pixel compensation value and the second pixel compensation value based on the first compensation weight and the second compensation weight to obtain the pixel compensation value.
The first compensation weight refers to a compensation value weighting weight set for the first pixel compensation value, and the second compensation weight is a compensation value weighting weight set for the second pixel compensation value, in this embodiment, corresponding weighting weights may be allocated to the first pixel compensation value and the second pixel compensation value in advance, as the first compensation weight and the second compensation weight, respectively, and weighted summation processing for the first pixel compensation value and the second pixel compensation value may be performed by using the first compensation weight and the second compensation weight, so as to obtain a final pixel compensation value.
For example, the compensation value may be calculated by the following formula:
Wherein gamma represents the final determined pixel compensation value, Representing the difference between the first pixel mean and the second pixel mean,Then represents the first pixel compensation value, cnt represents the number of pixels of the first target pixel, LUT2 (Cnt) represents the second pixel compensation value, and α and β represent the first compensation weight and the second compensation weight, respectively.
In this embodiment, the pixel compensation value is obtained by performing weighted summation processing on the first pixel compensation value and the second pixel compensation value obtained in step S301 and step S302 through the first compensation weight and the second compensation weight, so that the accuracy of the determined pixel compensation value can be further improved.
In addition, the second compensation value lookup table stores the corresponding relation between different reference pixel numbers and reference pixel compensation values; step S302 may further include: acquiring a first reference pixel number and a second reference pixel number corresponding to the pixel number from the reference pixel numbers; acquiring a first reference pixel compensation value corresponding to the first reference pixel number and a second reference pixel compensation value corresponding to the second reference pixel number from a second compensation value lookup table; and obtaining a second pixel compensation value based on the pixel number, the first reference pixel number, the second reference pixel number, the first reference pixel compensation value and the second reference pixel compensation value.
The reference pixel number refers to the number of pixels stored in the second compensation value lookup table, and since the number of the pixel numbers is larger, for example, from 100 to 400, if the second compensation value of each pixel number from 100 to 400 needs to be stored, a large amount of storage space is required, so in this embodiment, the second compensation value lookup table may only store a correspondence between a few pixel numbers and the second compensation value, where the pixel number may be used as the reference pixel number, and the corresponding second compensation value may be used as the reference pixel compensation value. The first reference pixel number and the second reference pixel number refer to reference pixel numbers located at both ends of the pixel number of the first target pixel among the reference pixel numbers, for example, the reference pixel numbers may be 100, 200, 300, and 400, and if it is determined that the pixel number of the first target pixel is 250, 200 and 300 may be regarded as the first reference pixel number and the second reference pixel number, respectively.
Specifically, after the number of pixels of the first target pixel is obtained, the first reference pixel number and the second reference pixel number corresponding to the number of pixels of the first target pixel and the reference pixel compensation value corresponding to the first reference pixel number and the second reference pixel number may be selected from the plurality of reference pixel numbers stored in the second compensation value lookup table, and the first reference pixel compensation value and the second reference pixel compensation value may be used as the first reference pixel compensation value and the second reference pixel compensation value, and the final second pixel compensation value may be obtained by further using the number of pixels, the first reference pixel number, the second reference pixel number, the first reference pixel compensation value and the second reference pixel compensation value.
For example, the second pixel compensation value may be calculated by the following formula:
lut_cnt_X=(count-yq[i])/(yq[i+1]-yq[i])*(xq[i+1]-xq[i])+xq[i]
wherein lut _cnt_x denotes the second pixel compensation value, count denotes the number of pixels of the first target pixel, yq [ i ] and yq [ i+1] denote the first reference pixel number and the second reference pixel number, respectively, and xq [ i ] and xq [ i+1] denote the first reference pixel compensation value and the second reference pixel compensation value, respectively.
In this embodiment, the second pixel compensation value may be calculated according to a corresponding relationship between the number of reference pixels and the reference pixel compensation value in the second compensation value lookup table, so that on the premise of ensuring the accuracy of the second pixel compensation value, the storage space of the second compensation value lookup table may be saved.
In one embodiment, as shown in fig. 4, step S105 may further include:
In step S401, a row position of the current row in the display device and a column position of each first target pixel included in the current row are acquired.
The row position refers to the row number position of the current row in the display device, for example, the row number position may be represented by the row number information of the current row, and the column position where the first target pixel is located refers to the column number position where each first target pixel is located in the display device in the current row, and may be represented by the column number information of each first target pixel. In this embodiment, the terminal may obtain a line position of the current line in the display device, and each of the current lines includes a line position of the current line in the display device, so as to determine a pixel position of each of the first target pixels, and obtain a pixel region of the first target pixel in the display device.
Step S402, based on the preset relative row-column position relationship, the pixel compensation area corresponding to the current row is obtained by utilizing the row position and the column position.
The relative row and column position information refers to relative sub-information of the pixel compensation area and the pixel area of the first target pixel, and in this embodiment, the relative row and column position information may be preset, so that the pixel compensation area adapted to the first target pixel determined based on the row position and the column position can be found in the pixel area of the display device. For example, the relative line position information may include first relative line position information for characterizing a pixel region formed by other first pixels in the current line than the pixel region corresponding to the first target pixel, then after determining the pixel region of the first target pixel in the current line in the display device, the corresponding first pixel compensation region may be determined based on the first relative line position information, while the relative line position information may include second relative line position information for characterizing a pixel region formed by other pixels adjacent to the pixel included in the first pixel compensation region, and then after determining the pixel region of the first target pixel in the current line in the display device, the corresponding second pixel compensation region may be determined based on the second relative line position information.
In this embodiment, a relative row-column position relationship may be preset, and the position of the pixel compensation area may be determined by using the relative row-column position relationship and the position of the first target pixel, so that the efficiency of acquiring the pixel compensation area may be improved.
Further, the number of pixel compensation areas is plural; as shown in fig. 5, step S105 may further include:
Step S501, according to the relative row-column positional relationship, the compensation value attenuation coefficient of each pixel compensation area corresponding to the relative row-column positional relationship is obtained.
The compensation value attenuation coefficient is a coefficient for performing attenuation processing on the determined pixel compensation value, and since the influence degree of the crosstalk phenomenon in different pixel compensation areas is also different, the pixel compensation values used for compensating the pixels in different pixel compensation areas may also be different.
For example, the compensation value attenuation coefficient may be set according to different line numbers where the pixel compensation area is located, the first line area where pixel compensation is required may be set as the pixel compensation area by setting the reference line number, and then the pixel compensation areas of other line numbers may be determined according to the line number difference between the line change and the first line. The compensation value attenuation coefficients corresponding to the line number difference values can be set, or only the compensation value attenuation coefficients corresponding to a few line number difference values can be set, and the compensation value attenuation coefficients corresponding to the rest line number difference values can be calculated in an interpolation mode.
In step S502, the pixel compensation value is attenuated according to the compensation value attenuation coefficient, and the pixel compensation process is performed on the pixels in each pixel compensation region by using the pixel compensation value after the attenuation process.
And then, carrying out attenuation processing on the determined pixel compensation values by utilizing the attenuation coefficients of the compensation values, so as to obtain a plurality of pixel compensation values after the attenuation processing, and carrying out pixel compensation processing on the pixels in the corresponding pixel compensation areas by utilizing the pixel compensation values after the attenuation processing.
For example, the pixel compensation area may include a pixel compensation area a, a pixel compensation area B, and a pixel compensation area C, where the pixel compensation area a is a pixel compensation area determined according to a relative line-column position relationship a, the pixel compensation area B is a pixel compensation area determined according to a relative line-column position relationship B, and the pixel compensation area C is a pixel compensation area determined according to a relative line-column position relationship C, in this embodiment, the relative line-column position relationship a, the relative line-column position relationship B, and the relative line-column position relationship C may be set in advance, and the corresponding compensation value attenuation coefficient a, the compensation value attenuation coefficient B, and the compensation value attenuation coefficient C may be set, so that the pixel compensation value a, the pixel compensation value B, and the pixel compensation value C after the attenuation processing may be obtained based on the compensation value attenuation coefficient, respectively, so that the pixel compensation processing may be performed on the pixels in the pixel compensation area a, the pixel compensation area B, and the pixel compensation area C.
In this embodiment, the attenuation coefficient of the compensation value corresponding to the relative row-column position relationship may be set, and the attenuation processing may be performed on the pixel compensation values by using the attenuation coefficient to obtain the attenuation-processed pixel compensation values corresponding to the pixel compensation regions, so that the effect of performing the pixel compensation processing on the pixels in the pixel compensation regions may be further improved, that is, the effect of eliminating the crosstalk phenomenon may be further improved,
In an application example, a crosstalk elimination method applied to an AMOLED screen is further provided, the method realizes that average pixel differences of adjacent rows are counted in a segmented mode, when the pixel gray level differences of the adjacent rows reach a certain set value TH1, and the number of elements with the same characteristics in one row is larger than a certain set value TH2, a crosstalk phenomenon is possibly indicated, so that conditions for eliminating the crosstalk phenomenon are triggered, namely adjacent areas are compensated, the determination of compensation values considers the number of elements with the same characteristics except for the background gray level differences before and after, and the weighted sum of the 2 factors is considered in compensation. As shown in fig. 6, the method may specifically include the following steps:
Step 1: it is determined whether the threshold difference of the adjacent pixels is greater than a set threshold TH1.
The background is set to be high gray level, the rectangular area is set to be low gray level, the brightness data difference between the front gray level and the rear gray level is obtained, and experiments show that the crosstalk phenomenon is not obvious when the gray level difference is smaller than 100, so that compensation is not performed, and th1=100.
Step 2: counting the number of adjacent pixels with the same characteristic, and compensating the crosstalk phenomenon if the counted number Cnt is larger than a set threshold TH2
The number of elements of the same characteristics in one row is counted, and since the severity of the crosstalk phenomenon is proportional to the width of the central rectangle, it is necessary to set a critical threshold value at which a significant crosstalk phenomenon occurs, and here, set the threshold value TH2 to 170 pixels.
Step3: calculating the average value difference between the average value of the adjacent characteristic pixels of the current row and the sum of the adjacent pixels with the same length in the previous row (and the next row)
Calculating the average value difference between the average value of the adjacent characteristic pixels of the current row and the sum of the adjacent pixels with the same length in the previous row (and the next row)As shown in fig. 7, the areas a and B represent bright line areas, the area C represents a dark line area, and the area where the crosstalk phenomenon occurs is divided into a white-black junction (black rectangular upper boundary), and a black-white junction (black rectangular lower boundary). The upper boundary appears bright lines, the compensation value is negative, the lower boundary appears dark lines, and the compensation value is positive. Step 3 requires calculating the difference in pixel mean at the black-white (and white-black) junction
Meanwhile, for the compensation value a2 of the region B, the compensation value a1 at the reference region a is additionally increased by an attenuation coefficient δ such that a2=a1×δ.
Step 4, the pixels to be compensated for the current line are based on the average value differenceAnd the pixel number Cnt, looking up the LUT to obtain the compensation.
Pixels to be compensated for the current line are based on the average differenceAnd the pixel number Cnt is checked in the LUT to obtain the compensation.
The calculation mode of the set compensation area is as follows:
Wherein, gamma is the compensation value of the judging compensation line, alpha is the compensation value weighting corresponding to the front and back background difference at the line edge, and beta is the compensation value weighting of the same number of characteristic elements counted in the line.
In addition, the pixels to be compensated for the current line are based on the averageAnd the pixel number Cnt is checked in the LUT to obtain the compensation. Such asLUT _cnt_x=lut 2 (cnt), and the query range of the pixel count is cross talk_cnt: [0,120,160,200,240,400,480,560,640,680] and the respectively corresponding compensation value may be cross talk_ lut _cnt: [0,10,20,30,40,50,60,70,90,100] then the index range in the cross talk_cnt can be looked up according to the count value, and the index can be interpolated in the cross talk_ lut _cnt, for example, the count=300, and the corresponding compensation can be obtained by linear interpolation because the index is between 240 and 400 and between 40 and 50. Can be calculated by the following formula:
lut_cnt_X=(count-yq[i])/(yq[i+1]-yq[i])*(xq[i+1]-xq[i])+xq[i]
Here, since count is 300, Y [ i ] =240, Y [ i+1] =400, xq [ i ] =40, xq [ i+1] =50.
In addition, in the present application example, a pixel area of 15 rows is considered to be compensated, so the determined compensation value γ is subjected to attenuation processing, where the final compensation value of each row can be calculated by the following formula:
γ′=γ*lut_buf_ratio(row-row1)/lut_buf_ratio(row1)
Where row1 represents the first row number to be compensated, row represents the other row numbers to be compensated, since 15 rows need to be compensated in total, i.e. row ranges are [0,15], a table look-up mode may be performed with (row-row 1) as a row index, so that the corresponding index value lut _buf_ratio (row-row 1) may be used, and lut _buf_ratio (row-row 1)/lut _buf_ratio (row 1) may be used as the final attenuation coefficient.
For example, buf_ratio_ind [0,2,4,6,10,15] and the attenuation compensation range are stored in advance in the table: the correspondence between lut _buf_ratio: [62,49,38,15,13,1], i.e. lut _buf_ratio (row 1) =62, lut_buf_ratio (row 3) =49, lut_buf_ratio (row 5) =38, etc., and some lines may not be obtained by table lookup, then the corresponding attenuation coefficient may be calculated by interpolation method, for example, the coefficient of the second line is located between 62 and 49, i.e. 55.5, the coefficient of the lut _buf_ratio (row 2) =55.5, the coefficient of the fourth line is located between 49 and 38, i.e. 43.5, and then lut _buf_ratio (row 4) =43.5, etc., so as to obtain the index value of each line.
In the above application example, for crosstalk phenomenon compensation of the AMOLED screen, two factors of gray level differences of the front and rear areas and the number of the same characteristic elements of the rows are considered for weighting, so that boundary bright-dark line defects can be effectively solved.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a pixel compensation device for realizing the pixel compensation method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the pixel compensation device or devices provided below may be referred to the limitation of the pixel compensation method hereinabove, and will not be repeated here.
In one embodiment, as shown in fig. 8, there is provided a pixel compensation apparatus including: a pixel gray scale acquisition module 801, a target pixel acquisition module 802, a pixel mean acquisition module 803, a pixel compensation acquisition module 804, and a pixel compensation processing module 805, wherein:
A pixel gray level obtaining module 801, configured to obtain first gray level values corresponding to first pixels included in a current row and second gray level values corresponding to second pixels adjacent to the first pixels in the display device;
a target pixel obtaining module 802, configured to obtain a first target pixel from the first pixel according to the first gray value and the second gray value, and determine the number of pixels of the first target pixel;
The pixel mean value obtaining module 803 is configured to obtain a first pixel mean value corresponding to a first target pixel and a second pixel mean value corresponding to a second target pixel adjacent to the first target pixel in the second pixels if the number of pixels meets a preset number condition;
A pixel compensation obtaining module 804, configured to obtain a difference between the first pixel mean value and the second pixel mean value, and determine a pixel compensation value according to the difference and the number of pixels;
The pixel compensation processing module 805 is configured to obtain a pixel compensation area corresponding to the current line, and perform pixel compensation processing on pixels in the pixel compensation area based on the pixel compensation value.
In one embodiment, the target pixel acquisition module 802 is further configured to determine a current first pixel, and a current second pixel adjacent to the current first pixel from the second pixels; acquiring a first gray value corresponding to a current first pixel and a second gray value corresponding to a current second pixel; and if the gray difference value of the first gray value corresponding to the current first pixel and the second gray value corresponding to the current second pixel is larger than the preset gray difference value threshold, taking the current first pixel as a first target pixel.
In one embodiment, the pixel mean value obtaining module 803 is further configured to obtain a preset pixel number threshold; and if the pixel number of the first target pixel is larger than the pixel number threshold value, acquiring a first pixel mean value corresponding to the first target pixel.
In one embodiment, the pixel compensation obtaining module 804 is further configured to obtain a first pixel compensation value corresponding to the difference value based on a preset first compensation value lookup table; acquiring second pixel compensation values corresponding to the number of pixels based on a preset second compensation value lookup table; and obtaining a pixel compensation value according to the first pixel compensation value and the second pixel compensation value.
In one embodiment, the pixel compensation obtaining module 804 is further configured to obtain a first compensation weight set for the first pixel compensation value and a second compensation weight set for the second pixel compensation value; and carrying out weighted summation processing on the first pixel compensation value and the second pixel compensation value based on the first compensation weight and the second compensation weight to obtain the pixel compensation value.
In one embodiment, the second compensation value lookup table stores correspondence between different reference pixel numbers and reference pixel compensation values; the pixel compensation obtaining module 804 is further configured to obtain a first reference pixel number and a second reference pixel number corresponding to the pixel number from the reference pixel numbers; acquiring a first reference pixel compensation value corresponding to the first reference pixel number and a second reference pixel compensation value corresponding to the second reference pixel number from a second compensation value lookup table; and obtaining a second pixel compensation value based on the pixel number, the first reference pixel number, the second reference pixel number, the first reference pixel compensation value and the second reference pixel compensation value.
In one embodiment, the pixel compensation processing module 805 is further configured to obtain a row location of the current row in the display device, and a column location of each first target pixel included in the current row; and obtaining a pixel compensation area corresponding to the current row by utilizing the row position and the column position based on a preset relative row-column position relation.
In one embodiment, the number of pixel compensation areas is a plurality; the pixel compensation processing module 805 is further configured to obtain a compensation value attenuation coefficient of each pixel compensation area corresponding to the relative row-column position relationship according to the relative row-column position relationship; and carrying out attenuation processing on the pixel compensation value according to the compensation value attenuation coefficient, and carrying out pixel compensation processing on the pixels in each pixel compensation area by utilizing the pixel compensation value after the attenuation processing.
The respective modules in the above-described pixel compensation apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 9. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured 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 and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a pixel compensation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 9 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
The user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.
Claims (12)
1. A method of pixel compensation, the method comprising:
acquiring first gray values respectively corresponding to first pixels contained in a current row and second gray values respectively corresponding to second pixels adjacent to the first pixels in the display device;
acquiring a first target pixel from the first pixel according to the first gray value and the second gray value, and determining the number of pixels of the first target pixel;
If the number of the pixels meets the preset number condition, acquiring a first pixel mean value corresponding to the first target pixel and a second pixel mean value corresponding to a second target pixel adjacent to the first target pixel in the second pixel;
Acquiring a difference value between the first pixel mean value and the second pixel mean value, and determining a pixel compensation value according to the difference value and the pixel quantity;
and acquiring a pixel compensation area corresponding to the current line, and performing pixel compensation processing on pixels in the pixel compensation area based on the pixel compensation value.
2. The method of claim 1, wherein the acquiring a first target pixel from the first pixels comprises:
Determining a current first pixel and a current second pixel adjacent to the current first pixel in the second pixels;
acquiring a first gray value corresponding to the current first pixel and a second gray value corresponding to the current second pixel;
And if the gray difference value between the first gray value corresponding to the current first pixel and the second gray value corresponding to the current second pixel is larger than a preset gray difference threshold value, taking the current first pixel as the first target pixel.
3. The method according to claim 2, wherein the obtaining a first pixel mean value corresponding to the first target pixel if the number of pixels satisfies a preset number condition includes:
acquiring a preset pixel quantity threshold value;
And if the pixel number of the first target pixel is larger than the pixel number threshold, acquiring a first pixel mean value corresponding to the first target pixel.
4. The method of claim 1, wherein said determining a pixel compensation value based on said difference value and said number of pixels comprises:
acquiring a first pixel compensation value corresponding to the difference value based on a preset first compensation value lookup table;
Acquiring second pixel compensation values corresponding to the number of pixels based on a preset second compensation value lookup table;
And obtaining the pixel compensation value according to the first pixel compensation value and the second pixel compensation value.
5. The method of claim 4, wherein obtaining the pixel compensation value from the first pixel compensation value and the second pixel compensation value comprises:
acquiring a first compensation weight set for the first pixel compensation value and a second compensation weight set for the second pixel compensation value;
And carrying out weighted summation processing on the first pixel compensation value and the second pixel compensation value based on the first compensation weight and the second compensation weight to obtain the pixel compensation value.
6. The method of claim 4, wherein the second compensation value lookup table stores correspondence between different numbers of reference pixels and reference pixel compensation values;
the obtaining, based on a preset second compensation value lookup table, a second pixel compensation value corresponding to the number of pixels includes:
acquiring a first reference pixel number and a second reference pixel number corresponding to the pixel number from the reference pixel number;
acquiring a first reference pixel compensation value corresponding to the first reference pixel number and a second reference pixel compensation value corresponding to the second reference pixel number from the second compensation value lookup table;
and obtaining the second pixel compensation value based on the pixel number, the first reference pixel number, the second reference pixel number, the first reference pixel compensation value and the second reference pixel compensation value.
7. The method of claim 1, wherein the obtaining the pixel compensation area corresponding to the current line comprises:
Acquiring a row position of the current row in the display device and a column position of each first target pixel contained in the current row;
And obtaining the pixel compensation area corresponding to the current row by utilizing the row position and the column position based on a preset relative row-column position relation.
8. The method of claim 7, wherein the number of pixel compensation areas is a plurality;
The pixel compensation processing for the pixels in the pixel compensation area based on the pixel compensation value includes:
Acquiring compensation value attenuation coefficients of each pixel compensation area corresponding to the relative row-column position relationship according to the relative row-column position relationship;
and carrying out attenuation processing on the pixel compensation value according to the compensation value attenuation coefficient, and carrying out pixel compensation processing on the pixels in each pixel compensation area by utilizing the pixel compensation value after the attenuation processing.
9. A pixel compensation apparatus, the apparatus comprising:
the pixel gray scale acquisition module is used for acquiring first gray scale values respectively corresponding to first pixels contained in the current row and second gray scale values respectively corresponding to second pixels adjacent to the first pixels in the display device;
a target pixel obtaining module, configured to obtain a first target pixel from the first pixel according to the first gray value and the second gray value, and determine the number of pixels of the first target pixel;
the pixel mean value obtaining module is used for obtaining a first pixel mean value corresponding to the first target pixel and a second pixel mean value corresponding to a second target pixel adjacent to the first target pixel in the second pixel if the number of pixels meets a preset number condition;
The pixel compensation acquisition module is used for acquiring a difference value between the first pixel mean value and the second pixel mean value, and determining a pixel compensation value according to the difference value and the pixel quantity;
and the pixel compensation processing module is used for acquiring a pixel compensation area corresponding to the current line, and carrying out pixel compensation processing on pixels in the pixel compensation area based on the pixel compensation value.
10. 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 one of claims 1 to 8 when the computer program is executed.
11. 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 8.
12. 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 one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210748064.4A CN117334156B (en) | 2022-06-29 | 2022-06-29 | Pixel compensation method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210748064.4A CN117334156B (en) | 2022-06-29 | 2022-06-29 | Pixel compensation method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117334156A CN117334156A (en) | 2024-01-02 |
CN117334156B true CN117334156B (en) | 2024-07-26 |
Family
ID=89288979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210748064.4A Active CN117334156B (en) | 2022-06-29 | 2022-06-29 | Pixel compensation method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117334156B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101095183A (en) * | 2004-05-13 | 2007-12-26 | 夏普株式会社 | Crosstalk elimination circuit, liquid crystal display apparatus, and display control method |
CN102243849A (en) * | 2011-06-14 | 2011-11-16 | 华映视讯(吴江)有限公司 | Driving system and driving method of display panel |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3877694B2 (en) * | 2003-03-28 | 2007-02-07 | 三洋電機株式会社 | Display processing device |
JP4375468B2 (en) * | 2007-09-26 | 2009-12-02 | エプソンイメージングデバイス株式会社 | Two-screen display device |
KR100943954B1 (en) * | 2008-03-28 | 2010-02-26 | 삼성모바일디스플레이주식회사 | Pseudocontour detection device and method |
KR20120109805A (en) * | 2011-03-28 | 2012-10-09 | 삼성디스플레이 주식회사 | Method of driving display panel and display apparatus for performing the same |
CN103426412A (en) * | 2012-05-24 | 2013-12-04 | 群康科技(深圳)有限公司 | Image display system and pixel value adjusting method |
KR101606709B1 (en) * | 2013-07-31 | 2016-04-11 | 엘지디스플레이 주식회사 | Display Device Integrated With Touch Screen and Method for Driving The Same |
CN110033728B (en) * | 2019-04-24 | 2022-10-11 | 京东方科技集团股份有限公司 | Crosstalk eliminating method and device, display equipment and storage medium |
KR102666060B1 (en) * | 2019-05-17 | 2024-05-16 | 삼성디스플레이 주식회사 | Display device compensating for horizontal crosstalk |
CN111415618B (en) * | 2020-04-29 | 2021-08-17 | 京东方科技集团股份有限公司 | Display driving method and display device |
CN112614468B (en) * | 2020-12-23 | 2022-05-24 | 天马微电子股份有限公司 | Brightness compensation method and system of display panel |
CN113284470B (en) * | 2021-05-26 | 2023-04-25 | 惠科股份有限公司 | Public voltage compensation method and liquid crystal display device |
-
2022
- 2022-06-29 CN CN202210748064.4A patent/CN117334156B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101095183A (en) * | 2004-05-13 | 2007-12-26 | 夏普株式会社 | Crosstalk elimination circuit, liquid crystal display apparatus, and display control method |
CN102243849A (en) * | 2011-06-14 | 2011-11-16 | 华映视讯(吴江)有限公司 | Driving system and driving method of display panel |
Also Published As
Publication number | Publication date |
---|---|
CN117334156A (en) | 2024-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102417070B1 (en) | Method of compensating for non-uniformity of luminance of a display panel and display device employing the same | |
US10971065B2 (en) | Display device, and method of determining a power supply voltage | |
CN107591120B (en) | Compensation method of display panel, compensation equipment and storage equipment thereof | |
CN112767891B (en) | Mura compensation method, display panel and display device | |
CN107545868A (en) | Display device | |
CN110246470B (en) | Method for performing image adaptive tone mapping and display apparatus employing the same | |
CN111161684B (en) | Backlight control method and device, backlight module and display device | |
CN110246129B (en) | Image detection method, device, computer readable storage medium and computer equipment | |
CN114495812B (en) | Display panel brightness compensation method and device, electronic equipment and readable storage medium | |
US10930232B2 (en) | Method for color shift compensation based on abnormal image detection | |
CN113990267B (en) | Pixel brightness compensation method and device, storage medium and display panel | |
CN117334156B (en) | Pixel compensation method, device, computer equipment and storage medium | |
CN115312010A (en) | An overdrive device and method | |
CN116645428B (en) | Image display method, device, computer equipment and storage medium | |
KR102234795B1 (en) | Method of processing image data and display system for display power reduction | |
CN117594025A (en) | Image brightness compensation method, display device and storage medium | |
CN118014845B (en) | Image processing method, apparatus, computer device, storage medium, and program product | |
CN115565488A (en) | Brightness compensation method and device, computer-readable storage medium | |
CN107005622B (en) | A kind of image display method, device, electronic equipment and storage medium | |
US20140340413A1 (en) | Layer access method, data access device and layer access arrangement method | |
CN117037709A (en) | Display panel control method, device, computer equipment and storage medium | |
CN116594581B (en) | Image display method, apparatus, computer device and storage medium | |
CN116594582B (en) | Image display method, apparatus, computer device and storage medium | |
CN116665591A (en) | Brightness curve calibration method, device, computer equipment and storage medium | |
CN114613329B (en) | Data processing method and device, and brightness compensation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Country or region after: China Address after: 200135, 11th Floor, Building 3, No. 889 Bibo Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai Applicant after: Granfei Intelligent Technology Co.,Ltd. Address before: 200135 Room 201, No. 2557, Jinke Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai Applicant before: Gryfield Intelligent Technology Co.,Ltd. Country or region before: China |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |