CN112950495A - Display panel demura compensation method, device, equipment and medium - Google Patents
Display panel demura compensation method, device, equipment and medium Download PDFInfo
- Publication number
- CN112950495A CN112950495A CN202110170124.4A CN202110170124A CN112950495A CN 112950495 A CN112950495 A CN 112950495A CN 202110170124 A CN202110170124 A CN 202110170124A CN 112950495 A CN112950495 A CN 112950495A
- Authority
- CN
- China
- Prior art keywords
- vertex
- rectangle
- target
- region
- fitted
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000004590 computer program Methods 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 claims description 8
- 230000009466 transformation Effects 0.000 claims description 7
- 230000000694 effects Effects 0.000 abstract description 15
- 238000010586 diagram Methods 0.000 description 11
- 238000004422 calculation algorithm Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000004576 sand Substances 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/80—Geometric correction
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application discloses a display panel demura compensation method, device, equipment and medium, including: determining a target contour in an original image; determining a fitted rectangle vertex corresponding to the target contour; correcting the vertex of the fitted rectangle to obtain the vertex of a target rectangle; determining a target rectangular area by using all the target rectangular vertexes; and performing demura compensation based on the target rectangular area. Therefore, the vertex of the fitted rectangle corresponding to the target contour in the original image is determined firstly, then correction is carried out to obtain the accurate vertex of the rectangle, and the rectangular area in the original image can be accurately determined, so that the compensation effect on the fine mura is improved.
Description
Technical Field
The present application relates to the field of display panel technologies, and in particular, to a method, an apparatus, a device, and a medium for demura compensation of a display panel.
Background
Mura refers to a phenomenon that the brightness of a display panel is not uniform when the display panel is displayed, the shape of Mura is various and comprises a strip shape, a cloud shape, a sand grain shape and the like, while Demura is an algorithm for eliminating the Mura of the display panel, the brightness information of the display panel is firstly obtained through an original image before the Demura is carried out, then the algorithm processing can be carried out, and intercepting the brightness data of the display panel from an original image is a very important link in the Demura algorithm, so that the quality of a subsequent compensation effect is determined.
The existing Demura algorithm has a good effect of compensating large-area Mura, but when a large amount of tiny Mura with the width of the order of single-bit pixels exist in the display panel, after the existing Demura algorithm is used for compensation, the Mura of the display panel is not compensated, but new stereoscopic gravel-like Mura is generated, and the Mura compensation effect cannot be achieved.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, a device and a medium for compensating for a display panel demura, which can improve the compensation effect for the fine mura. The specific scheme is as follows:
in a first aspect, the present application discloses a display panel demura compensation method, including:
determining a target contour in an original image;
determining a fitted rectangle vertex corresponding to the target contour;
correcting the vertex of the fitted rectangle to obtain the vertex of a target rectangle;
determining a target rectangular area by using all the target rectangular vertexes;
and performing demura compensation based on the target rectangular area.
Optionally, the correcting the vertex of the fitted rectangle to obtain a target rectangle vertex includes:
determining the position information and the offset of the vertex of the fitted rectangle relative to the vertex of the actual rectangle;
and correcting the corresponding fitted rectangle vertex based on the position information and the offset to obtain a target rectangle vertex.
Optionally, the determining the position information and the offset of the vertex of the fitted rectangle relative to the vertex of the actual rectangle includes:
determining a corresponding square area by taking each vertex of the fitted rectangle as a center;
determining position information and an offset of the vertex of the corresponding fitted rectangle relative to the vertex of the actual rectangle based on pixel values of a first region, a second region, a third region and a fourth region in each square region; the first region is a region above a vertex of the fitted rectangle in the square region, the second region is a region below the vertex of the fitted rectangle in the square region, the third region is a region to the left of the vertex of the fitted rectangle in the square region, and the fourth region is a region to the right of the vertex of the fitted rectangle in the square region.
Optionally, the method further includes:
and judging whether the vertex of the fitting rectangle is coincident with the vertex of the actual rectangle or not, and if not, triggering the step of correcting the vertex of the fitting rectangle to obtain the vertex of the target rectangle.
Optionally, the determining the vertex of the fitted rectangle corresponding to the target contour includes:
and determining a circumscribed rectangle of the target contour to obtain the vertex of the fitted rectangle.
Optionally, the determining the vertex of the fitted rectangle corresponding to the target contour includes:
and fitting a Hough straight line based on the target contour to obtain the vertex of the fitted rectangle.
Optionally, the determining a target rectangular region by using all the vertices of the target rectangle includes:
and performing transmission transformation on all the target rectangular vertexes to obtain the target rectangular area.
In a second aspect, the present application discloses a display panel demura compensation apparatus, comprising:
the target contour determining module is used for determining a target contour in the original image;
a fitted rectangle vertex determining module, configured to determine a fitted rectangle vertex corresponding to the target contour;
the fitting rectangle vertex correction module is used for correcting the fitting rectangle vertex to obtain a target rectangle vertex;
the target rectangular area determining module is used for determining a target rectangular area by using all the target rectangular vertexes;
and the demura compensation module is used for performing demura compensation on the basis of the target rectangular area.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the display panel demura compensation method.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program which, when executed by a processor, implements the aforementioned display panel demura compensation method.
Therefore, the target contour is determined in an original image, then the vertex of the fitting rectangle corresponding to the target contour is determined, then the vertex of the fitting rectangle is corrected to obtain the vertex of the target rectangle, then the target rectangular area is determined by using all the vertices of the target rectangle, and finally demura compensation is performed based on the target rectangular area. That is, the fitted rectangle vertex corresponding to the target contour in the original image is determined firstly, and then the correction is carried out to obtain the accurate rectangle vertex, so that the rectangular area in the original image can be accurately determined, and the compensation effect on the fine mura is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for demomura compensation of a display panel according to the present disclosure;
FIG. 2 is a schematic diagram of a relative position relationship between a vertex of a specific fitting rectangle and a vertex of an actual rectangle disclosed in the present application;
FIG. 3 is a schematic diagram of a specific square disclosed herein;
FIG. 4 is a particular square area division of the present disclosure;
FIG. 5 is a diagram of a specific offset determination disclosed herein;
FIG. 6 is a flowchart of a specific method for demora compensation of a display panel according to the present disclosure;
FIG. 7 is a diagram of the effect of demura compensation according to the present disclosure;
FIG. 8 is a schematic structural diagram of a display panel demura compensation apparatus disclosed in the present application;
fig. 9 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, an embodiment of the present application discloses a display panel demura compensation method, including:
step S11: the target contour is determined in the original image.
In a specific embodiment, the raw image may be obtained by shooting with a CCD camera. And carrying out binarization processing on the original image, and determining the target contour in the original image.
It should be noted that in other embodiments, the target contour may be determined by other methods, and is not limited herein.
Step S12: and determining the vertex of the fitting rectangle corresponding to the target contour.
In a specific embodiment, a circumscribed rectangle of the target contour may be determined, and vertices of the fitted rectangle may be obtained. Thus, the four vertices of the circumscribed rectangle are the four vertices of the fitted rectangle.
In another specific embodiment, a hough straight line may be fitted based on the target contour, and the vertex of the fitted rectangle may be obtained. That is, four sides of the rectangle may be fitted based on the hough straight line method, and the intersection points of the four straight lines are four vertices of the fitted rectangle.
Step S13: and correcting the vertex of the fitted rectangle to obtain the vertex of the target rectangle.
In a specific implementation manner, the embodiment may determine position information and an offset of a vertex of the fitted rectangle with respect to a vertex of an actual rectangle; correcting the corresponding fitted rectangle vertex based on the position information and the offset to obtain a target rectangle vertex;
the step of determining the position information and the offset of the vertex of the fitted rectangle relative to the vertex of the actual rectangle may specifically include:
step S00: and determining a corresponding square area by taking the vertex of each fitted rectangle as the center.
In a particular embodiment, a square size parameter may be obtained; and determining a corresponding square area based on the square size parameters by taking each vertex of the fitted rectangle as a center.
It should be noted that, the rectangular region defined by the circumscribed rectangle and the hough linear method may have a deviation of several pixels, and when a large amount of fine mura with a width of the order of one-bit pixel exists in the display panel, the pre-processing deviation of several pixels may cause the mura of the display panel after demura compensation not only to be not compensated, but also to generate new stereoscopic gravel-like mura, resulting in poor compensation effect. Wherein, the square size parameter can be ten or more pixels. If the deviation is too large, the circumscribed rectangle and the Hough linear method have problems.
Step S01: determining position information and an offset of the vertex of the corresponding fitted rectangle relative to the vertex of the actual rectangle based on pixel values of a first region, a second region, a third region and a fourth region in each square region; the first region is a region above a vertex of the fitted rectangle in the square region, the second region is a region below the vertex of the fitted rectangle in the square region, the third region is a region to the left of the vertex of the fitted rectangle in the square region, and the fourth region is a region to the right of the vertex of the fitted rectangle in the square region.
In a specific embodiment, the offset may be determined by determining pixels of a first region, a second region, a third region, and a fourth region in each square region and position information of a vertex of the corresponding fitted rectangle relative to a vertex of an actual rectangle, and determining the offset based on the number of non-zero pixels in the first region, the second region, the third region, and the fourth region.
For example, referring to fig. 2, fig. 2 is a schematic diagram illustrating a relative position relationship between a specific fitted rectangle vertex and an actual rectangle vertex, which is disclosed in the embodiment of the present application. Assuming that the vertex obtained by fitting is not coincident with the actual vertex, taking the fitting vertex P0 point at the upper left corner of the rectangle as an example, only 4 cases are shown in fig. 2, and the fitting intersection points are respectively at four positions of the upper left, lower left, upper right and lower right of the actual vertex. Therefore, if a square with n × n around the fitting vertex coordinates is shown in fig. 3, where n is the number of pixels, fig. 3 is a specific schematic diagram of the square disclosed in the embodiment of the present application. Referring to fig. 4, fig. 4 is a specific square area division diagram disclosed in the embodiment of the present application. And judging the relative positions of the vertex of the fitted rectangle and the vertex of the actual rectangle according to whether the pixel sum of the four partial areas is zero or not. Specifically, the method comprises the following steps:
(1) when the first region is equal to 0, the second region is greater than 0, the third region is equal to 0, and the fourth region is greater than 0, the fitting intersection point is at the upper left of the actual intersection point;
(2) when the first region >0, the second region >0, the third region is 0, and the fourth region >0, the fitting intersection point is left and below the actual intersection point;
(3) when the first region is 0, the second region is >0, the third region is >0, and the fourth region is >0, the fitting intersection point is right above the actual intersection point;
(4) when the first region >0, the second region >0, the third region >0, the fourth region >0, then the fitting intersection point is to the lower right of the actual intersection point.
Referring to fig. 5, fig. 5 is a specific offset determination diagram disclosed in the embodiment of the present application, taking a case where a vertex of a fitting rectangle is above and to the left of a vertex of an actual rectangle as an example, a pixel sum is not zero because the second region and the fourth region of the square overlap with a target rectangle, and the pixel sum is zero because the first region and the third region do not overlap with the target rectangle. And finally, calculating the Offset of the vertex of the fitting rectangle according to the number of non-zero pixels in the second area and the fourth area, namely the number of the Offset pixels, Offset _ x and Offset _ y, and calculating to obtain the corrected coordinates according to the Offset, wherein the formula is specifically as follows:
P0'_x=P0_x+[(n-1)/2-offset_x];
P0'_y=P0_y-[(n-1)/2-offset_y]。
the size of the square area is n × n, the coordinates of the vertex P0 of the fitting rectangle are (P0_ x, P0_ y), the corrected target vertex coordinates are (P0'_ x, P0' _ y), offset _ x is the x-axis offset amount, and offset _ y is the y-axis offset amount.
It should be noted that, the coordinate correction methods of the other three vertices P1, P2, and P3 may refer to the coordinate correction method of P0 disclosed above, but there is a slight difference between the specific determination condition of the relative position and the calculation formula, and specifically, there is a difference between the case of determining whether the pixel sum of each region is zero in the determination of the relative position and the addition and subtraction processing of Offset _ x and Offset _ y, which is not described herein again.
In this embodiment, the number of pixels of the square shown in fig. 4 and 5 is only an example, and the specific size of the square can be adjusted according to actual situations.
Step S14: and determining a target rectangular area by using all the target rectangular vertexes.
In a specific embodiment, the target rectangular region may be obtained by performing transmission transformation on all vertices of the target rectangle.
Step S15: and performing demura compensation based on the target rectangular area.
For example, referring to fig. 6, fig. 6 is a flowchart illustrating a specific method for demora compensation of a display panel according to an embodiment of the present disclosure. Firstly, obtaining an original image photographed by a CCD (charge coupled device), obtaining a target contour by a binarization method, then fitting four rectangular sides by a Hough straight line method, obtaining four vertexes of a rectangle according to the intersection points of the four straight lines, correcting the four vertexes to obtain corrected vertexes, and then performing transmission transformation to obtain a target rectangle. Referring to fig. 7, fig. 7 is a diagram illustrating a specific demura compensation effect disclosed in the embodiment of the present application. From left to right, the situation of the display panel uncompensated, direct hough straight line fitting rectangular vertex Demura compensation, and Demura compensation of the method of the present embodiment are respectively shown, and the picture of the first row is a schematic local enlargement of the same position of the display panel, and the picture of the second row is a schematic local enlargement of the same position of the display panel with a larger enlargement coefficient. When the display panel is not compensated, a large amount of fine mura exist; when the existing demura technology is used for compensation, the fine mura is not compensated, but new stereoscopic gravel-like mura is generated, and the display effect of a panel is poor; when the method disclosed by the embodiment is used for compensation, a large amount of fine mura is compensated, and the display effect of the panel is good. Therefore, the method disclosed by the embodiment can effectively reduce the error of the fitting coordinate, improve the precision of the Demura compensation and increase the fineness of the display panel after the compensation.
In addition, the embodiment of the application can judge whether the vertex of the fitting rectangle is overlapped with the vertex of the actual rectangle, and if not, trigger the step of correcting the vertex of the fitting rectangle to obtain the vertex of the target rectangle.
Therefore, in the embodiment of the application, the target contour is determined in the original image, then the vertex of the fitting rectangle corresponding to the target contour is determined, then the vertex of the fitting rectangle is corrected to obtain the vertex of the target rectangle, then the target rectangular area is determined by using all the vertices of the target rectangle, and finally demura compensation is performed based on the target rectangular area. That is, the embodiment of the application determines the fitted rectangular vertex corresponding to the target contour in the original image, and then corrects the fitted rectangular vertex to obtain the accurate rectangular vertex, so that the rectangular region in the original image can be accurately determined, and the compensation effect on the fine mura is improved.
Referring to fig. 8, an embodiment of the present application discloses a display panel demura compensation apparatus, including:
a target contour determining module 11, configured to determine a target contour in the original image;
a fitted rectangle vertex determining module 12, configured to determine a fitted rectangle vertex corresponding to the target contour;
the fitting rectangle vertex correction module 13 is used for correcting the fitting rectangle vertex to obtain a target rectangle vertex;
a target rectangular region determining module 14, configured to determine a target rectangular region by using all vertices of the target rectangle;
and the demura compensation module 15 is used for performing demura compensation on the basis of the target rectangular area.
Therefore, in the embodiment of the application, the target contour is determined in the original image, then the vertex of the fitting rectangle corresponding to the target contour is determined, then the vertex of the fitting rectangle is corrected to obtain the vertex of the target rectangle, then the target rectangular area is determined by using all the vertices of the target rectangle, and finally demura compensation is performed based on the target rectangular area. That is, the embodiment of the application determines the fitted rectangular vertex corresponding to the target contour in the original image, and then corrects the fitted rectangular vertex to obtain the accurate rectangular vertex, so that the rectangular region in the original image can be accurately determined, and the compensation effect on the fine mura is improved.
In a specific embodiment, the fitting rectangle vertex correction module 13 specifically includes:
the relative position and offset determining submodule is used for determining the position information and the offset of the vertex of the fitting rectangle relative to the vertex of the actual rectangle;
and the fitting rectangle vertex determining submodule is used for correcting the corresponding fitting rectangle vertex based on the position information and the offset to obtain a target rectangle vertex.
Wherein, relative position and offset confirm the submodule specifically to include:
a square region determining unit, configured to determine a corresponding square region with each vertex of the fitted rectangle as a center;
a relative position and offset determining unit, configured to determine position information and an offset of a vertex of the fitted rectangle with respect to a vertex of an actual rectangle based on pixel values of a first region, a second region, a third region, and a fourth region in each square region; the first region is a region above a vertex of the fitted rectangle in the square region, the second region is a region below the vertex of the fitted rectangle in the square region, the third region is a region to the left of the vertex of the fitted rectangle in the square region, and the fourth region is a region to the right of the vertex of the fitted rectangle in the square region.
Further, the device further includes a determining module, configured to determine whether the vertex of the fitted rectangle coincides with the vertex of the actual rectangle, and if not, trigger the fitting rectangle vertex correcting module 13 to perform correction on the vertex of the fitted rectangle, so as to obtain a target rectangle vertex.
In a specific embodiment, the fitted rectangle vertex determining module 12 is specifically configured to determine a circumscribed rectangle of the target contour, and obtain the vertices of the fitted rectangle.
In another specific embodiment, the fitting rectangle vertex determining module 12 is specifically configured to fit a hough straight line based on the target contour to obtain the fitting rectangle vertex.
The target rectangular region determining module 14 is specifically configured to perform transmission transformation on all vertices of the target rectangle to obtain the target rectangular region.
The target contour determining module 11 is specifically configured to perform binarization processing on the original image, and determine the target contour in the original image.
In addition, the device also comprises an original image acquisition module which is used for shooting by utilizing a CCD camera to obtain the original image.
And, the square region determination unit is specifically configured to:
obtaining a square size parameter;
and determining a corresponding square area based on the square size parameters by taking each vertex of the fitted rectangle as a center.
Referring to fig. 9, an embodiment of the present application discloses an electronic device 20, which includes a processor 21 and a memory 22; wherein, the memory 22 is used for saving computer programs; the processor 21 is configured to execute the computer program to implement the following steps:
determining a target contour in an original image; determining a fitted rectangle vertex corresponding to the target contour; correcting the vertex of the fitted rectangle to obtain the vertex of a target rectangle; determining a target rectangular area by using all the target rectangular vertexes; and performing demura compensation based on the target rectangular area.
Therefore, in the embodiment of the application, the target contour is determined in the original image, then the vertex of the fitting rectangle corresponding to the target contour is determined, then the vertex of the fitting rectangle is corrected to obtain the vertex of the target rectangle, then the target rectangular area is determined by using all the vertices of the target rectangle, and finally demura compensation is performed based on the target rectangular area. That is, the embodiment of the application determines the fitted rectangular vertex corresponding to the target contour in the original image, and then corrects the fitted rectangular vertex to obtain the accurate rectangular vertex, so that the rectangular region in the original image can be accurately determined, and the compensation effect on the fine mura is improved.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: determining the position information and the offset of the vertex of the fitted rectangle relative to the vertex of the actual rectangle; correcting the corresponding fitted rectangle vertex based on the position information and the offset to obtain a target rectangle vertex;
in this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: determining a corresponding square area by taking each vertex of the fitted rectangle as a center; determining position information and an offset of the vertex of the corresponding fitted rectangle relative to the vertex of the actual rectangle based on pixel values of a first region, a second region, a third region and a fourth region in each square region; the first region is a region above a vertex of the fitted rectangle in the square region, the second region is a region below the vertex of the fitted rectangle in the square region, the third region is a region to the left of the vertex of the fitted rectangle in the square region, and the fourth region is a region to the right of the vertex of the fitted rectangle in the square region.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: and judging whether the vertex of the fitting rectangle is coincident with the vertex of the actual rectangle or not, and if not, triggering the step of correcting the vertex of the fitting rectangle to obtain the vertex of the target rectangle.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: and determining a circumscribed rectangle of the target contour to obtain the vertex of the fitted rectangle.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: and fitting a Hough straight line based on the target contour to obtain the vertex of the fitted rectangle.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: and performing transmission transformation on all the target rectangular vertexes to obtain the target rectangular area.
The memory 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, and the storage mode may be a transient storage mode or a permanent storage mode.
In addition, the electronic device 20 further includes a power supply 23, a communication interface 24, an input-output interface 25, and a communication bus 26; the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel with an external device for the server 20, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to a specific application requirement, which is not specifically limited herein.
Further, an embodiment of the present application also discloses a computer readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the following steps:
determining a target contour in an original image; determining a fitted rectangle vertex corresponding to the target contour; correcting the vertex of the fitted rectangle to obtain the vertex of a target rectangle; determining a target rectangular area by using all the target rectangular vertexes; and performing demura compensation based on the target rectangular area.
Therefore, in the embodiment of the application, the target contour is determined in the original image, then the vertex of the fitting rectangle corresponding to the target contour is determined, then the vertex of the fitting rectangle is corrected to obtain the vertex of the target rectangle, then the target rectangular area is determined by using all the vertices of the target rectangle, and finally demura compensation is performed based on the target rectangular area. That is, the embodiment of the application determines the fitted rectangular vertex corresponding to the target contour in the original image, and then corrects the fitted rectangular vertex to obtain the accurate rectangular vertex, so that the rectangular region in the original image can be accurately determined, and the compensation effect on the fine mura is improved.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: determining the position information and the offset of the vertex of the fitted rectangle relative to the vertex of the actual rectangle; correcting the corresponding fitted rectangle vertex based on the position information and the offset to obtain a target rectangle vertex;
in this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: determining a corresponding square area by taking each vertex of the fitted rectangle as a center; determining position information and an offset of the vertex of the corresponding fitted rectangle relative to the vertex of the actual rectangle based on pixel values of a first region, a second region, a third region and a fourth region in each square region; the first region is a region above a vertex of the fitted rectangle in the square region, the second region is a region below the vertex of the fitted rectangle in the square region, the third region is a region to the left of the vertex of the fitted rectangle in the square region, and the fourth region is a region to the right of the vertex of the fitted rectangle in the square region.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: and judging whether the vertex of the fitting rectangle is coincident with the vertex of the actual rectangle or not, and if not, triggering the step of correcting the vertex of the fitting rectangle to obtain the vertex of the target rectangle.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: and determining a circumscribed rectangle of the target contour to obtain the vertex of the fitted rectangle.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: and fitting a Hough straight line based on the target contour to obtain the vertex of the fitted rectangle.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: and performing transmission transformation on all the target rectangular vertexes to obtain the target rectangular area.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above detailed description is provided for a display panel demura compensation method, apparatus, device and medium, and a specific example is applied in this document to explain the principle and implementation of the present application, and the description of the above embodiment is only used to help understanding the method and core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A display panel demura compensation method is characterized by comprising the following steps:
determining a target contour in an original image;
determining a fitted rectangle vertex corresponding to the target contour;
correcting the vertex of the fitted rectangle to obtain the vertex of a target rectangle;
determining a target rectangular area by using all the target rectangular vertexes;
and performing demura compensation based on the target rectangular area.
2. The method for demura compensation of a display panel as claimed in claim 1, wherein said correcting said fitted rectangle vertices to obtain target rectangle vertices comprises:
determining the position information and the offset of the vertex of the fitted rectangle relative to the vertex of the actual rectangle;
and correcting the corresponding fitted rectangle vertex based on the position information and the offset to obtain a target rectangle vertex.
3. The method for demura compensation of a display panel as claimed in claim 2, wherein said determining the position information and offset of the vertex of said fitted rectangle relative to the vertex of the actual rectangle comprises:
determining a corresponding square area by taking each vertex of the fitted rectangle as a center;
determining position information and an offset of the vertex of the corresponding fitted rectangle relative to the vertex of the actual rectangle based on pixel values of a first region, a second region, a third region and a fourth region in each square region; the first region is a region above a vertex of the fitted rectangle in the square region, the second region is a region below the vertex of the fitted rectangle in the square region, the third region is a region to the left of the vertex of the fitted rectangle in the square region, and the fourth region is a region to the right of the vertex of the fitted rectangle in the square region.
4. The method for demura compensation of a display panel of claim 1, further comprising:
and judging whether the vertex of the fitting rectangle is coincident with the vertex of the actual rectangle or not, and if not, triggering the step of correcting the vertex of the fitting rectangle to obtain the vertex of the target rectangle.
5. The method for demura compensation of a display panel as claimed in claim 1, wherein said determining vertices of a fitted rectangle corresponding to said target contour comprises:
and determining a circumscribed rectangle of the target contour to obtain the vertex of the fitted rectangle.
6. The method for demura compensation of a display panel as claimed in claim 1, wherein said determining vertices of a fitted rectangle corresponding to said target contour comprises:
and fitting a Hough straight line based on the target contour to obtain the vertex of the fitted rectangle.
7. The method for demura compensation of a display panel according to any of claims 1 to 6, wherein said determining a target rectangular area by using all of said target rectangular vertices comprises:
and performing transmission transformation on all the target rectangular vertexes to obtain the target rectangular area.
8. A display panel demura compensation apparatus, comprising:
the target contour determining module is used for determining a target contour in the original image;
a fitted rectangle vertex determining module, configured to determine a fitted rectangle vertex corresponding to the target contour;
the fitting rectangle vertex correction module is used for correcting the fitting rectangle vertex to obtain a target rectangle vertex;
the target rectangular area determining module is used for determining a target rectangular area by using all the target rectangular vertexes;
and the demura compensation module is used for performing demura compensation on the basis of the target rectangular area.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing said computer program for implementing the display panel demura compensation method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program which, when executed by a processor, implements the display panel demura compensation method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110170124.4A CN112950495B (en) | 2021-02-05 | 2021-02-05 | Display panel demura compensation method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110170124.4A CN112950495B (en) | 2021-02-05 | 2021-02-05 | Display panel demura compensation method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112950495A true CN112950495A (en) | 2021-06-11 |
CN112950495B CN112950495B (en) | 2024-05-14 |
Family
ID=76243351
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110170124.4A Active CN112950495B (en) | 2021-02-05 | 2021-02-05 | Display panel demura compensation method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112950495B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108074238A (en) * | 2017-12-29 | 2018-05-25 | 惠州市华星光电技术有限公司 | Mura detection methods and detecting system in face based on Hough transformation and Gauss curve fitting |
CN109147668A (en) * | 2018-09-25 | 2019-01-04 | 京东方科技集团股份有限公司 | External compensation method, driving unit and the display panel of display panel |
CN110176209A (en) * | 2018-02-27 | 2019-08-27 | 京东方科技集团股份有限公司 | Optical compensation method and optical compensation equipment for display panel |
US20200168167A1 (en) * | 2018-11-27 | 2020-05-28 | Incoflex Semiconductor Technology Co., Ltd. | Optical compensation method of a display panel and associated system |
CN112233633A (en) * | 2020-10-28 | 2021-01-15 | 福州京东方光电科技有限公司 | Brightness compensation method, device, equipment and readable storage medium |
-
2021
- 2021-02-05 CN CN202110170124.4A patent/CN112950495B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108074238A (en) * | 2017-12-29 | 2018-05-25 | 惠州市华星光电技术有限公司 | Mura detection methods and detecting system in face based on Hough transformation and Gauss curve fitting |
CN110176209A (en) * | 2018-02-27 | 2019-08-27 | 京东方科技集团股份有限公司 | Optical compensation method and optical compensation equipment for display panel |
CN109147668A (en) * | 2018-09-25 | 2019-01-04 | 京东方科技集团股份有限公司 | External compensation method, driving unit and the display panel of display panel |
US20200168167A1 (en) * | 2018-11-27 | 2020-05-28 | Incoflex Semiconductor Technology Co., Ltd. | Optical compensation method of a display panel and associated system |
CN112233633A (en) * | 2020-10-28 | 2021-01-15 | 福州京东方光电科技有限公司 | Brightness compensation method, device, equipment and readable storage medium |
Non-Patent Citations (3)
Title |
---|
WEI-CHEN LI ST.AL.: ""Defect Inspection in Low-Contrast LCD Images Using Hough Transform-Based Nonstationary Line Detection"", 《IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS 》, vol. 7, no. 1, pages 136, XP011334335, DOI: 10.1109/TII.2009.2034844 * |
姚杏枝: ""基于CCD图像的OLED光学补偿算法研究与实现"", 中国优秀硕士学位论文全文数据库 信息科技辑》, vol. 2019, no. 01, pages 135 - 633 * |
孙玉凤: "" AMOLED显示面板Mura缺陷视觉检测算法研究"", 《中国优秀硕士学位论文全文数据库信息科技辑》, vol. 2020, no. 02, pages 136 - 205 * |
Also Published As
Publication number | Publication date |
---|---|
CN112950495B (en) | 2024-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200366838A1 (en) | Panoramic image generation method and device | |
CN109977949B (en) | Frame fine adjustment text positioning method and device, computer equipment and storage medium | |
US7102637B2 (en) | Method of seamless processing for merging 3D color images | |
CN110996081B (en) | Projection picture correction method and device, electronic equipment and readable storage medium | |
CN111093067B (en) | Projection apparatus, lens distortion correction method, distortion correction device, and storage medium | |
US9070034B2 (en) | Method and system for correcting QR code image | |
CN111554233B (en) | LED display screen correction method, terminal and storage medium | |
US7932939B2 (en) | Apparatus and method for correcting blurred images | |
CN108198222B (en) | Wide-angle lens calibration and image correction method | |
US20070247672A1 (en) | One-dimensional lens shading correction | |
CN112950495A (en) | Display panel demura compensation method, device, equipment and medium | |
CN113283543B (en) | WebGL-based image projection fusion method, device, storage medium and equipment | |
CN116485645A (en) | Image stitching method, device, equipment and storage medium | |
CN109272914B (en) | Method for compensating elliptical R angle in display area | |
CN110363723B (en) | Image processing method and device for improving image boundary effect | |
CN113077478A (en) | Alignment method, compensation method and system of display panel and readable storage medium | |
CN116645275A (en) | Method, device, projector and storage medium for correcting projection image | |
CN114741188A (en) | Graphic element processing method and device, electronic equipment and storage medium | |
JPH11242753A (en) | Method and device for three-dimensional plotting | |
CN113409196A (en) | High-speed global chromatic aberration correction method for real-time video splicing | |
KR20080099490A (en) | Method for enhancing contrast of image | |
US9917972B2 (en) | Image processor, image-processing method and program | |
EP4357932A1 (en) | Self-adaptive table creation method and apparatus, electronic device and storage medium | |
KR102655332B1 (en) | Device and method for image correction | |
CN112767472B (en) | Method for positioning lamp beads in display screen image, computing equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |