Display defect compensation method and device, medium and program product
By collecting display module images, extracting linear features and performing iterative compensation, the problem of linear defects in the display screen is solved, and the display effect and user experience are improved.
Patent Information
- Application Number
- CN202510719734.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-09-19
AI Technical Summary
Linear defects in display screens, such as bright lines, dark lines, or colored lines, affect display effects and user experience, and existing technologies are difficult to effectively compensate for them.
By collecting display module images, extracting linear features, determining defect location information, and performing iterative compensation until the iteration end conditions are met, including steps such as image rotation, filtering, edge detection, and binarization, pixel brightness and voltage are adjusted to improve the display effect.
It effectively reduces the probability of misjudgment of linear defects, improves display effects and user experience, and can effectively compensate for serious defects and intercept them before they leave the factory.
Smart Images

Figure CN120669944A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and in particular to a display defect compensation method, device, medium and program product. Background Art
[0002] In the display field, due to the characteristics of display devices, some displays have linear defects. In displays, a linear defect refers to an abnormal area extending along a single dimension (horizontally or vertically) on the screen, manifesting as bright lines, dark lines, colored lines, or touch failure lines. These defects are typically caused by material, process, or circuit issues, directly affecting the display quality and user experience. Summary of the Invention
[0003] The present invention provides a display defect compensation method, device, medium and program product, which are used to determine the position information of the defect by extracting the linear features in the module image, thereby iteratively compensating the linear defect at the position to improve the display effect and user experience.
[0004] In a first aspect, an embodiment of the present invention provides a display defect compensation method, the method comprising:
[0005] Acquiring a module image of a display module displaying a preset screen;
[0006] Extracting linear features from the module image and determining position information of target linear features corresponding to the linear defects;
[0007] Iteratively compensate for the linear defects of the display module according to the position information of the target linear feature until an iteration end condition is met.
[0008] As an optional implementation, the module image includes at least a portion of the boundary content of the display module; before extracting the linear features in the module image, the method further includes:
[0009] Rotating the module image within a preset display area to crop at least a portion of the boundary content of the display module in the module image; extracting line features from the rotated module image; or,
[0010] At least a portion of the boundary content of the display module in the module image is cropped, and line features are extracted from the cropped module image.
[0011] As an optional implementation, before extracting the line features in the module image, the method further includes:
[0012] performing filtering processing on the module image;
[0013] The size of the filter template for the filtering process is determined according to interference features in the template image, and the size of the filter template varies with the size of the interference features in the template image; and / or,
[0014] The filtering coefficients of the filtering process are determined according to the interference features in the template image.
[0015] As an optional implementation, extracting the linear features in the module image and determining the position information of the target linear features corresponding to the linear defects includes:
[0016] Performing edge detection on the module image to obtain a second image;
[0017] binarizing the second image to obtain a third image;
[0018] The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the third image.
[0019] As an optional implementation, the position information of the target linear feature is determined by:
[0020] Determining the position information of the linear feature, except the first position information, as the position information of the target linear feature;
[0021] The first position information is position information of the linear feature that matches an edge position of the display module.
[0022] As an optional implementation, the position information of the linear feature is determined by:
[0023] Hough transform is used to detect linear features in the module image to obtain at least one set of position information corresponding to at least one linear feature, wherein one linear feature corresponds to one set of position information.
[0024] As an optional implementation, extracting the linear features in the module image and determining the position information of the target linear features corresponding to the linear defects includes:
[0025] Binarizing the module image to obtain a binary image;
[0026] The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the binary image.
[0027] As an optional implementation, iteratively compensating the linear defects of the display module until an iteration end condition is met includes:
[0028] Determining compensation data for an i-th time based on a difference between the display brightness of the target linear feature in the display module and the reference brightness, where i is an integer greater than 0;
[0029] Performing an i-th iteration compensation on the linear defect using the i-th compensation data to obtain the i+1-th display brightness of the target linear feature;
[0030] Based on the difference between the i+1th display brightness and the reference brightness, the i+1th iterative compensation is continued until the difference between the i+1th and i-th display brightness is less than the first threshold, or the iterative compensation is stopped when i+1 is equal to the maximum number of iterations.
[0031] As an optional implementation, the compensation data for each iterative compensation is determined in the following manner:
[0032] determining a source voltage adjustment value corresponding to each pixel according to a difference between a display brightness of each pixel corresponding to the target linear characteristic and a reference brightness;
[0033] determining a grayscale compensation value corresponding to each pixel according to the source voltage adjustment value corresponding to each pixel;
[0034] The grayscale compensation value corresponding to each pixel is determined as the compensation data for this iterative compensation.
[0035] As an optional implementation, the method further includes:
[0036] If the difference between the display brightness of the target linear characteristic corresponding to the last iterative compensation and the reference brightness is greater than a second threshold, the voltage of the display module is adjusted to compensate for the linear defect of the display module.
[0037] As an optional implementation, the method further includes:
[0038] Accumulate the compensation data of each iterative compensation to obtain defect compensation data;
[0039] The defect compensation data is written into the storage space of the display module.
[0040] In a second aspect, an embodiment of the present invention provides a display device, comprising a display module obtained by performing defect compensation based on any one of the methods described in the first aspect.
[0041] The display device includes a display module obtained by performing defect compensation based on any one of the methods described in the first aspect.
[0042] In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, wherein the memory is used to store a program executable by the processor, and the processor is used to read the program in the memory and perform the following steps:
[0043] Acquiring a module image of a display module displaying a preset screen;
[0044] Extracting linear features from the module image and determining position information of target linear features corresponding to the linear defects;
[0045] Iteratively compensate for the linear defects of the display module according to the position information of the target linear feature until an iteration end condition is met.
[0046] As an optional implementation, the module image includes at least a portion of the boundary content of the display module; before extracting the linear features in the module image, the processor is further configured to execute:
[0047] Rotating the module image within a preset display area to crop at least a portion of the boundary content of the display module in the module image; extracting line features from the rotated module image; or,
[0048] At least a portion of the boundary content of the display module in the module image is cropped, and line features are extracted from the cropped module image.
[0049] As an optional implementation, before extracting the line features in the module image, the processor is further configured to execute:
[0050] performing filtering processing on the module image;
[0051] The size of the filter template for the filtering process is determined according to interference features in the template image, and the size of the filter template varies with the size of the interference features in the template image; and / or,
[0052] The filtering coefficients of the filtering process are determined according to the interference features in the template image.
[0053] As an optional implementation, the processor is specifically configured to execute:
[0054] Performing edge detection on the module image to obtain a second image;
[0055] binarizing the second image to obtain a third image;
[0056] The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the third image.
[0057] As an optional implementation manner, the processor is specifically configured to determine the position information of the target linear feature in the following manner:
[0058] Determining the position information of the linear feature, except the first position information, as the position information of the target linear feature;
[0059] The first position information is position information of the linear feature that matches an edge position of the display module.
[0060] As an optional implementation manner, the processor is specifically configured to determine the position information of the linear feature in the following manner:
[0061] Hough transform is used to detect linear features in the module image to obtain at least one set of position information corresponding to at least one linear feature, wherein one linear feature corresponds to one set of position information.
[0062] As an optional implementation, the processor is specifically configured to execute:
[0063] Binarizing the module image to obtain a binary image;
[0064] The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the binary image.
[0065] As an optional implementation, the processor is specifically configured to execute:
[0066] Determining compensation data for an i-th time based on a difference between the display brightness of the target linear feature in the display module and the reference brightness, where i is an integer greater than 0;
[0067] Performing an i-th iteration compensation on the linear defect using the i-th compensation data to obtain the i+1-th display brightness of the target linear feature;
[0068] Based on the difference between the i+1th display brightness and the reference brightness, the i+1th iterative compensation is continued until the difference between the i+1th and i-th display brightness is less than the first threshold, or the iterative compensation is stopped when i+1 is equal to the maximum number of iterations.
[0069] As an optional implementation manner, the processor is specifically configured to determine the compensation data for each iterative compensation in the following manner:
[0070] determining a source voltage adjustment value corresponding to each pixel according to a difference between a display brightness of each pixel corresponding to the target linear characteristic and a reference brightness;
[0071] determining a grayscale compensation value corresponding to each pixel according to the source voltage adjustment value corresponding to each pixel;
[0072] The grayscale compensation value corresponding to each pixel is determined as the compensation data for this iterative compensation.
[0073] As an optional implementation manner, the processor is further configured to execute:
[0074] If the difference between the display brightness of the target linear characteristic corresponding to the last iterative compensation and the reference brightness is greater than a second threshold, the voltage of the display module is adjusted to compensate for the linear defect of the display module.
[0075] As an optional implementation manner, the processor is further configured to execute:
[0076] Accumulate the compensation data of each iterative compensation to obtain defect compensation data;
[0077] The defect compensation data is written into the storage space of the display module.
[0078] In a fourth aspect, an embodiment of the present invention further provides a display defect compensation device, the device comprising:
[0079] An image acquisition module, used for acquiring a module image of a display module displaying a preset image;
[0080] A defect determination module is used to extract linear features from the module image and determine position information of target linear features corresponding to the linear defects;
[0081] The defect compensation module is used to iteratively compensate the linear defects of the display module according to the position information of the target linear feature, and stop when an iteration end condition is met.
[0082] As an optional embodiment, the module image includes at least a portion of the boundary content of the display module; before extracting the linear features in the module image, a cropping unit is further included to:
[0083] Rotating the module image within a preset display area to crop at least a portion of the boundary content of the display module in the module image; extracting line features from the rotated module image; or,
[0084] At least a portion of the boundary content of the display module in the module image is cropped, and line features are extracted from the cropped module image.
[0085] As an optional implementation, before extracting the linear features in the module image, a filtering unit is further included to:
[0086] performing filtering processing on the module image;
[0087] The size of the filter template for the filtering process is determined according to interference features in the template image, and the size of the filter template varies with the size of the interference features in the template image; and / or,
[0088] The filtering coefficients of the filtering process are determined according to the interference features in the template image.
[0089] As an optional implementation manner, the defect determination module is specifically configured to:
[0090] Performing edge detection on the module image to obtain a second image;
[0091] binarizing the second image to obtain a third image;
[0092] The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the third image.
[0093] As an optional implementation manner, the defect determination module is specifically configured to determine the position information of the target linear feature in the following manner:
[0094] Determining the position information of the linear feature, except the first position information, as the position information of the target linear feature;
[0095] The first position information is position information of the linear feature that matches an edge position of the display module.
[0096] As an optional implementation manner, the defect determination module is specifically configured to determine the position information of the linear feature in the following manner:
[0097] Hough transform is used to detect linear features in the module image to obtain at least one set of position information corresponding to at least one linear feature, wherein one linear feature corresponds to one set of position information.
[0098] As an optional implementation manner, the defect determination module is specifically configured to:
[0099] Binarizing the module image to obtain a binary image;
[0100] The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the binary image.
[0101] As an optional implementation manner, the defect compensation module is specifically configured to:
[0102] Determining compensation data for an i-th time based on a difference between the display brightness of the target linear feature in the display module and the reference brightness, where i is an integer greater than 0;
[0103] Performing an i-th iteration compensation on the linear defect using the i-th compensation data to obtain the i+1-th display brightness of the target linear feature;
[0104] Based on the difference between the i+1th display brightness and the reference brightness, the i+1th iterative compensation is continued until the difference between the i+1th and i-th display brightness is less than the first threshold, or the iterative compensation is stopped when i+1 is equal to the maximum number of iterations.
[0105] As an optional implementation manner, the defect compensation module is specifically configured to determine compensation data for each iterative compensation in the following manner:
[0106] determining a source voltage adjustment value corresponding to each pixel according to a difference between a display brightness of each pixel corresponding to the target linear characteristic and a reference brightness;
[0107] determining a grayscale compensation value corresponding to each pixel according to the source voltage adjustment value corresponding to each pixel;
[0108] The grayscale compensation value corresponding to each pixel is determined as the compensation data for this iterative compensation.
[0109] As an optional implementation manner, the defect compensation module is further configured to:
[0110] If the difference between the display brightness of the target linear characteristic corresponding to the last iterative compensation and the reference brightness is greater than a second threshold, the voltage of the display module is adjusted to compensate for the linear defect of the display module.
[0111] As an optional implementation, the data writing module is further included to:
[0112] Accumulate the compensation data of each iterative compensation to obtain defect compensation data;
[0113] The defect compensation data is written into the storage space of the display module.
[0114] In a fifth aspect, an embodiment of the present invention further provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, is used to implement the steps of the method described in any one of the above-mentioned first aspects.
[0115] In a sixth aspect, the present application provides a computer program product, comprising: a computer program code, which, when executed on a computer, enables the computer to execute any one of the methods described in the first aspect.
[0116] These and other aspects of the present application will be more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0117] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0118] Figure 1 A flowchart of an implementation method of a display defect compensation method provided by an embodiment of the present invention;
[0119] Figure 2 A schematic diagram of a module image provided by an embodiment of the present invention;
[0120] Figures 3A-3B A schematic diagram of module image processing provided by an embodiment of the present invention;
[0121] Figure 4 A schematic diagram of a filter template for Gaussian filtering provided in an embodiment of the present invention;
[0122] Figure 5 A schematic diagram of an edge detection template provided by an embodiment of the present invention;
[0123] Figure 6 A schematic diagram of detecting linear defects according to an embodiment of the present invention;
[0124] Figures 7A-7D A schematic diagram of an implementation of linear defect detection provided by an embodiment of the present invention;
[0125] Figure 8 A flowchart of an implementation method of a display defect compensation method provided by an embodiment of the present invention;
[0126] Figure 9 A schematic structural diagram of a display device provided by an embodiment of the present invention;
[0127] Figure 10 A schematic structural diagram of an electronic device provided by an embodiment of the present invention;
[0128] Figure 11 A schematic structural diagram of a display defect compensation device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0129] To make the objectives, technical solutions, and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings. It is apparent that the embodiments described are only some, not all, of the present invention. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without creative effort are intended to fall within the scope of protection of the present invention.
[0130] In embodiments of the present invention, the term "and / or" describes the association relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0131] The application scenarios described in the embodiments of the present invention are intended to more clearly illustrate the technical solutions of the embodiments of the present invention and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. Persons skilled in the art will appreciate that as new application scenarios emerge, the technical solutions provided by the embodiments of the present invention will also be applicable to similar technical problems. In the description of the present invention, unless otherwise specified, "multiple" means two or more.
[0132] Before introducing the display defect compensation method provided by the embodiment of the present application, in order to facilitate understanding, the technical background of the embodiment of the present application is first introduced in detail below.
[0133] In the display field, due to the characteristics of display devices, some displays have linear defects. In displays, a linear defect refers to an abnormal area extending along a single dimension (horizontally or vertically) on the screen, manifesting as bright lines, dark lines, colored lines, or touch failure lines. These defects are typically caused by material, process, or circuit issues, directly affecting the display quality and user experience.
[0134] To address linear defects in display devices, embodiments of this application provide a display defect compensation method. This method extracts linear features from module images to determine the location of the defect, iteratively compensating for the linear defect at that location to improve display quality and user experience. This application also identifies defects based on their location, effectively preventing screens from shipping if they have defects so severe that they cannot be fully compensated.
[0135] like Figure 1 As shown, the implementation process of a display defect compensation method provided by this embodiment is as follows:
[0136] Step 100: Capture a module image of a display module displaying a preset image;
[0137] Optionally, in this embodiment, a camera module is used to capture images of a display module displaying a preset picture. The shooting angle of the camera module is usually directed toward the center of the display module so that the captured module image is positive, and the captured display module is guaranteed not to be deformed.
[0138] Optionally, the display module in this embodiment includes but is not limited to at least one of a display module of a terminal (such as a mobile phone), a display module of a computer, a display module of a tablet, a display module of a handwriting notebook, and a display module of a large-screen display device.
[0139] Optionally, the preset image in this embodiment includes, but is not limited to, a display image with a specified grayscale value, for example, a display image with the same grayscale values for the RGB channels, i.e., a white image. For example, the grayscale values for the RGB channels may be 255, 128, or 32. Since linear defects are generally bright or dark, the preset image can be set to white and then the display image of the display module can be captured to obtain a module image.
[0140] It should be noted that the acquired module image includes the complete display screen and at least part of the boundary of the display module. Figure 2 As shown, this embodiment provides a schematic diagram of a module image, in which a preset screen (such as a white screen) is lit for the display module, and the display module displaying the white screen is photographed by an industrial camera on the production line to obtain a module image when the display module lights up the white screen for subsequent image processing.
[0141] Step 101: extracting linear features from the module image and determining position information of target linear features corresponding to linear defects;
[0142] In some embodiments, the module image includes at least a portion of the boundary content of the display module; before extracting the linear features in the module image, this embodiment may further perform any of the following methods:
[0143] Method a: rotating the module image within a preset display area to crop at least a portion of the boundary content of the display module in the module image; and extracting linear features from the rotated module image.
[0144] In some embodiments, the angle of rotation of the module image is greater than 0 degrees and less than 90 degrees. This embodiment does not impose too many restrictions on the rotation direction of the module image.
[0145] During implementation, the module image includes not only the content of the display screen, but also at least part of the boundary content of the display module. In order to avoid misdetecting the boundary content of the display module in the module image as a linear defect, the module image can be rotated before detection. Since the boundary of the display module in the module image will be cropped after rotation, the boundary of the display module is not easily detected as a linear defect, thereby reducing the probability of misjudgment of linear defects.
[0146] In this embodiment, rotating a module image within a preset display area refers to changing the on-screen display of the module image by changing the angle of the view. This rotation operation changes the display orientation of the module image's view, potentially causing portions of the module image to extend beyond the screen boundaries or be cropped. For example, if a rectangular view is rotated 45 degrees clockwise, the four corners originally on the screen will extend beyond the screen and disappear (i.e., be cropped).
[0147] like Figures 3A-3B As shown, this embodiment provides a schematic diagram of a module image processing, see Figure 3A , display the module image in the preset display area, rotate the module image and jump to Figure 3B In this case, the module image clips the module border, making it less likely to be misidentified as a linear defect. This is especially true for linear defects that run horizontally through the display screen. Because the length of the linear defect is the same as the width of the display interface, even after the display module is rotated, the module image clips the border, but the linear defect remains in the rotated module image.
[0148] Method b: cropping at least a portion of the boundary content of the display module in the module image, and extracting line features in the cropped module image.
[0149] Optionally, in this embodiment, when cropping the module image, the cropping direction and the direction of the horizontal boundary of the display module in the module image form an angle greater than 0 degrees and less than 90 degrees.
[0150] During implementation, at least part of the border of the module image can be cropped first. For example, after cropping a small part of each of the four borders of the module image, the linear features of the borders are shorter than the length of the linear defect features after the borders are cropped, making it less likely that the border of the display module will be misjudged as a linear defect.
[0151] It should be noted that when shooting the display module, due to the long shooting distance of the camera module, there will be black parts at the edge of the display screen in the captured module image, such as the border of the display module and other contents. When the border is wide, part of the border of the display module close to the display screen and other contents may also be captured. Therefore, when extracting linear features, in order to avoid the linear features of the border of the display module interfering with the linear features in the display screen, at least part of the boundary of the module image can be cropped off to avoid interference with linear defect detection caused by the border of the display module, thereby reducing the probability of misjudgment when performing linear defect detection.
[0152] This embodiment can better distinguish between boundaries and linear defects by cropping out part of the boundary of the display module in the module image, and by cropping so that the length of the boundary is shorter than the length of the linear defect, the probability of misjudgment of linear defect detection is effectively reduced.
[0153] In some embodiments, before extracting the linear features in the module image, the present embodiment further performs the following steps:
[0154] performing filtering processing on the module image;
[0155] The size of the filter template of the filtering process is determined according to the interference features in the template image, and the size of the filter template varies with the size of the interference features in the template image; and / or, the filter coefficients of the filtering process are determined according to the interference features in the template image.
[0156] In practice, interference features in this embodiment include, but are not limited to, interference noise caused by impurities in the camera module lens. Impurities in the camera module lens during capture can cause interference noise in the captured module image. To better detect linear defects, this embodiment can also filter the module image to remove interference noise.
[0157] Optionally, the filtering process in this embodiment includes but is not limited to Gaussian filtering and median filtering, wherein filtering processes of corresponding filtering methods may be performed according to different interference noises, thereby filtering out different interference noises through different filtering methods.
[0158] During implementation, the size of the filter template can be adjusted based on actual conditions. Specifically, the size of the filter template is determined based on the size of the interference features in the template image, where the size of the filter template increases as the interference features in the template image increase. Furthermore, the filter coefficients can be adaptively adjusted based on the size of the interference features to better filter out interference noise.
[0159] Taking the low-pass filter based on Gaussian blur as an example, Gaussian blur is effective in suppressing noise that obeys the normal distribution. Gaussian blur filters out the high-frequency components in the module image (i.e., the details in the module image) and retains the low-frequency components in the module image (i.e., the smooth area in the module image). Therefore, when Gaussian blur is performed on the module image, the module image will become blurred. However, the purpose of Gaussian low-pass filtering in this application is to detect linear defects, and even after the module image is blurred, the characteristics of the linear defects are still very obvious, so it does not affect the subsequent processing of linear defect detection. The size of the filter template of the Gaussian filter can be adjusted according to the actual situation. For example, the size of the filter template can be selected as 3×3, or 9×9. The size of the filter template can be adaptively adjusted according to the size of the interference feature. See Figure 4, this embodiment provides a schematic diagram of a filter template of Gaussian filtering, which is used to filter out interference noise in a module image, and the filter coefficient in the filter template can be set independently.
[0160] In some embodiments, the following steps are performed to extract the linear features in the module image and determine the position information of the target linear features corresponding to the linear defects:
[0161] Step a, performing edge detection on the module image to obtain a second image;
[0162] In practice, edge detection is a basic tool in image processing and computer vision, mainly used for feature extraction and detection of points in an image where brightness changes significantly. The purpose of edge detection is to identify pixels in a digital image where brightness changes dramatically. These points usually reflect the outline or boundary of an object in the image. This embodiment can extract edge features of a module image through edge detection for subsequent processing steps. Among them, the edge detection algorithm detects edges by calculating the gradient information of pixel values in the module image. Commonly used algorithms include the Sobel operator, the Canny operator, the Laplace operator, and the like. Since the Sobel template has the characteristic of better noise suppression and is easy to implement, this application can use the Sobel operator to perform edge detection on the module image after Gaussian filtering.
[0163] See also Figure 5 , a schematic diagram of an edge detection template provided in this embodiment, detects edge features in a module image through edge detection. Since edge features include linear features, all edge features in the module image can be obtained through edge detection, including but not limited to: linear features and boundary features of the display module.
[0164] It should be noted that after edge detection of the module image, all linear features in the module image can be detected, including the display module edge features. Through subsequent steps, the target linear features are screened out from the detected linear features, thereby obtaining the location information of the linear defects.
[0165] Step b, binarizing the second image to obtain a third image;
[0166] During implementation, edge detection is performed on the module image to detect all linear features in the module image. Then, a binarization process is performed to filter out all linear features in the module image. For example, the pixel values of detected linear features are set to 1, while the pixel values of other non-linear features are set to 0. The third image in this embodiment is a binary image, and linear features in the module image are represented by pixels with a pixel value of 1.
[0167] Step c: determining the position information of the target linear feature corresponding to the linear defect based on the position information of the linear feature in the third image.
[0168] During implementation, the position information of all linear features in the module image is screened out, and the position information of linear defects is further screened out.
[0169] In some embodiments, the present embodiment determines the position information of the target linear feature by:
[0170] The position information of the linear feature, except the first position information, is determined as the position information of the target linear feature; wherein the first position information is the position information of the linear feature that matches the edge position of the display module.
[0171] During implementation, the position information of one or more linear defects (i.e., target linear features) is removed from the position information of all filtered linear features. The position of the display module boundary in the module image is known, and the linear features that match the boundary position in the linear feature position information are determined as boundary features, while the linear features that do not match the boundary position are determined as target linear features, i.e., linear defect features.
[0172] In some embodiments, the present embodiment determines the position information of the linear feature in the following manner:
[0173] Hough transform is used to detect linear features in the module image to obtain at least one set of position information corresponding to at least one linear feature, wherein one linear feature corresponds to one set of position information.
[0174] Optionally, the number of position information included in a set of position information is used to represent the length of the corresponding line feature.
[0175] In practice, the Hough transform is an algorithm for detecting the boundary shape of discontinuity points (such as straight lines). Its basic principle is to transform curves (including straight lines) in the image space into the parameter space to achieve straight line and curve fitting. By detecting the extreme points in the parameter space, the descriptive parameters of the curve are determined, thereby extracting the regular curve in the image. That is, the Hough transform uses the duality of points and lines to transform a given curve in the original image space into a point in the parameter space through a curve expression. In this way, the detection problem of a given curve in the original image is transformed into the problem of finding a peak in the parameter space. Hough transforms generally include two types: one is a parameter space based on a Cartesian coordinate system, and the other is a parameter space based on a polar coordinate system.
[0176] This embodiment takes the reference space based on the polar coordinate system as an example to illustrate the specific implementation steps of detecting line features based on the Hough transform as follows:
[0177] In the parameter space (ρ, θ) of the polar coordinate system, for any point (x0, y0) in the image space, the cluster of straight lines passing through the point can be expressed as formula (1):
[0178] ρ=x0cosθ+y0sinθ formula (1);
[0179] A point in the image space corresponds to a curve in the parameter space (ρ, θ), and a line defined by two points in the image space is represented in the polar coordinate parameter space as a point defined by the intersection of the two curves. In theory, a point corresponds to an infinite number of lines or lines in any direction, but in practice, the number of lines (i.e., a finite number of directions) must be limited for calculations to be possible. Therefore, in this embodiment, the direction θ of the line is discretized into a finite number of equally spaced discrete values, and the parameter ρ corresponds to the finite number of discretized values. As a result, the parameter space is no longer continuous, but is instead discretized into grid cells of equal size.
[0180] After transforming the coordinates of each pixel in the image space (Cartesian coordinate system) to the polar coordinate parameter space, the resulting value will fall within a certain grid cell, causing the cumulative counter of that grid cell to increase by 1. After all pixels in the image space have undergone the Hough transform, the grid cells are checked. The grid with the largest cumulative count value, or the grid with a cumulative count value greater than a threshold, has the coordinate value (ρ0, θ0) in the parameter space corresponding to the straight line (i.e., linear feature) sought in the image space.
[0181] Hough transform is used to detect linear features in the module image and output multiple sets of position information, one of which represents a detected linear feature. Based on each set of position information, it is ultimately determined which are the position information of linear defects (i.e., target linear features). Taking a linear defect that runs through the source voltage direction of the display driver as an example, the straight line determined by the point with the maximum accumulated count value in the calculated parameter space is compared with the edge position of the display module in the module image. If the straight line is not the edge of the display module, it is determined to be a linear defect. See Figure 6 , this embodiment provides a schematic diagram of detecting linear defects, wherein the detected straight line is the detected linear defect.
[0182] See also Figures 7A-7D This embodiment provides a schematic diagram of the implementation of line defect detection, wherein a module image of a display module displaying a white screen is collected, and the module image is rotated and jumped to a predetermined display area. Figure 7A , filter the rotated module image and jump to Figure 7B , see Figure 7C Perform edge detection on the filtered module image to obtain the second image, see Figure 7D , binarize the second image to obtain a third image, and determine the position information of the target linear feature corresponding to the linear defect based on the position information of the linear feature in the third image.
[0183] In some embodiments, the linear features may be extracted and the position information of the target linear features may be determined by binarization. The specific implementation steps are as follows:
[0184] Binarizing the module image to obtain a binary image;
[0185] The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the binary image.
[0186] During implementation, when the edge features of a display module differ significantly from those of a linear defect, the target linear features of the linear defect can be screened out by binarizing the module image. Specifically, a binarization threshold is set to distinguish the target linear features corresponding to the linear defect from the edge features in the module image. For example, when a pixel value in the module image meets the threshold for the target linear feature, the corresponding pixel value is set to 1; when a pixel value in the module image meets the threshold for the edge feature, the corresponding pixel value is set to 0.
[0187] After detecting and obtaining the position information of all linear features in the module image, position information in the linear feature position information other than the first position information is determined as the position information of the target linear feature; wherein the first position information is the position information in the linear feature position information that matches the edge position of the display module.
[0188] Step 102 : Iteratively compensate for the linear defects of the display module according to the position information of the target linear feature, and stop when an iteration end condition is met.
[0189] Typically, compensable linear defects have a central portion with a heavier defect (a significant difference in brightness between the linear defect location and the normal display brightness) and a peripheral portion with lighter defects. Since linear defects are typically not evenly distributed, this embodiment performs multiple image data acquisitions and iterative compensation to better compensate for linear defects. The normal display brightness of the same batch of display modules is fixed, and the compensation data required for defect compensation is determined by comparing the brightness difference between the linear defect and the normal display brightness.
[0190] In some embodiments, this embodiment performs iterative compensation for linear defects through the following steps:
[0191] Step a, determining the i-th compensation data according to the difference between the i-th display brightness of the target linear feature in the display module and the reference brightness, where i is an integer greater than 0;
[0192] In practice, the baseline brightness is determined based on the normal display brightness of display modules from the same batch as the current display module. Typically, the normal display brightness of display modules from the same batch is fixed. The average of the normal display brightness of a small number of n display modules can be calculated and used as the baseline brightness, where 1 ≤ n ≤ 5, and n is an integer. The brightness difference value is determined by calculating the difference between the displayed brightness of the target linear feature and the baseline brightness, and compensation data is determined based on this brightness difference value.
[0193] Optionally, if the difference between the i-th display brightness of the target linear feature in the display module and the reference brightness exceeds a brightness threshold, compensation data for the i-th display is determined based on the difference between the display brightness and the reference brightness. If the difference between the i-th display brightness of the target linear feature in the display module and the reference brightness does not exceed the brightness threshold, it indicates that the difference between the display brightness of the target linear feature and the reference brightness is not large, and no compensation data needs to be determined, and no compensation needs to be performed.
[0194] In some embodiments, the compensation data for each iterative compensation is determined by the following steps:
[0195] Step a1: determining a source voltage adjustment value corresponding to each pixel according to a difference between the display brightness of each pixel corresponding to the target linear characteristic and the reference brightness;
[0196] During implementation, the difference between the display brightness of each pixel corresponding to the target linear feature and the reference brightness can be calculated, and the source voltage adjustment value corresponding to each pixel can be determined based on the difference corresponding to the pixel. By adjusting the source voltage at the pixel level corresponding to the linear defect (i.e., the target linear feature), the size of the pixel grayscale value is changed, thereby changing the brightness change and reducing the display effect of the linear defect.
[0197] Step a2: determining a grayscale compensation value corresponding to each pixel according to the source voltage adjustment value corresponding to each pixel;
[0198] The source voltage adjustment value in this embodiment is at the pixel level, so that the grayscale of each pixel in the linear defect can be adjusted, thereby reducing the display effect of the linear defect and making the display brightness of the linear defect close to the reference brightness.
[0199] Step a3: Determine the grayscale compensation value corresponding to each pixel as compensation data for this iterative compensation.
[0200] In practice, steps a1 to a3 can be used to determine compensation data for each iteration, thereby performing multiple compensations for linear defects. Furthermore, since compensation is performed at the pixel level, each pixel of the linear defect can be compensated more accurately during each compensation iteration.
[0201] Step b, performing the i-th iterative compensation on the linear defect using the i-th compensation data to obtain the i+1-th display brightness of the target linear feature;
[0202] During implementation, after obtaining the source voltage adjustment value corresponding to each pixel in the target linear feature, the grayscale value can be changed by adjusting the source voltage of the pixel, that is, the grayscale compensation value corresponding to each pixel in the target linear feature is obtained, and the grayscale compensation value corresponding to each pixel is superimposed with the grayscale value of the pixel itself, thereby achieving compensation for linear defects.
[0203] Step c: Based on the difference between the display brightness at the i+1th time and the reference brightness, continue to perform the iterative compensation for the i+1th time until the difference between the display brightness at the i+1th time and the i-th time is less than a first threshold, or stop the iterative compensation when i+1 is equal to the maximum number of iterations.
[0204] During implementation, first, a module image of the display module is collected through a camera or other imaging module; the module image is rotated or cropped, filtered, edge detected, binarized, Hough transformed, etc., to determine the position information of the target linear feature corresponding to the linear defect of the display module; each linear defect is iteratively compensated, and it is calculated whether the severity of the defect of the target linear feature corresponding to each linear defect exceeds the brightness threshold. If it exceeds the brightness threshold, the compensation data is calculated for iterative compensation. When the difference in brightness of each pixel in the linear defect calculated after the last compensation and this compensation is less than the first threshold, it means that the compensation has reached the limit value. If the difference in brightness of each pixel in the linear defect after this compensation and the reference brightness still exceeds the brightness threshold, the current display module is determined to be NG (unqualified) and intercepted.
[0205] In this embodiment, when multiple compensations are performed, the sizes of the compensation data (including the source voltage adjustment value) for different compensations may be different. The adjustment is specifically performed according to the brightness difference. The compensation data is not fixed, and the source voltage adjustment values at different pixel positions may also be different for each compensation.
[0206] In some embodiments, after determining the compensation data for each iterative compensation, the present embodiment further performs the following steps:
[0207] The compensation data of each iterative compensation are accumulated to obtain defect compensation data; and the defect compensation data are written into the storage space of the display module.
[0208] During implementation, after iteratively compensating for the linear defects of the display module based on the position information of the target linear features, the compensation data of each iterative compensation can be accumulated, and the accumulated defect compensation data can be used as the defect compensation data required for the linear defects of the current display module. The defect compensation data can be written into the storage space of the display module, so that when the display module is powered on, the defect compensation data can be read and the display screen can be compensated using the defect compensation data.
[0209] Optionally, the defect compensation data is written into the storage space of the display module, such as an IC (integrated circuit) of the display module, through a lighting fixture.
[0210] This embodiment uses a camera module to capture module images, sends the module images to a PC, uses the PC to test the display module, determines the compensation data for each iterative compensation, and accumulates the compensation data for each iterative compensation to obtain defect compensation data, which is written into the storage space of the display module through a lighting fixture.
[0211] In some embodiments, when the present embodiment cannot compensate for linear defects through iterative compensation, compensation can also be performed through the following methods:
[0212] If the difference between the display brightness of the target linear characteristic corresponding to the last iterative compensation and the reference brightness is greater than a second threshold, the voltage of the display module is adjusted to compensate for the linear defect of the display module.
[0213] During implementation, linear defects are first compensated iteratively. If the difference between the display brightness of the target linear feature corresponding to the last iterative compensation and the reference brightness is greater than the second threshold, it means that the iterative compensation cannot effectively improve the problem of linear defects at this time. The overall voltage of the display module can also be adjusted, and the adjusted voltage can be set. When the display module is powered on, it is directly started and displayed according to the set adjusted voltage. At this time, the linear defects can still be improved and compensated by the adjusted voltage.
[0214] like Figure 8 As shown, this embodiment provides an implementation process of a display defect compensation method, as shown below:
[0215] Step 800: Capture a module image of a display module displaying a preset image;
[0216] Step 801: Rotate the module image within a preset display area to crop at least a portion of the boundary content of the display module in the module image;
[0217] Step 802: Perform Gaussian filtering on the module image;
[0218] Step 803: Perform edge detection on the module image to obtain a second image, and binarize the second image to obtain a third image;
[0219] Step 804: Detect linear features in the third image using Hough transform to obtain at least one set of position information corresponding to at least one linear feature, wherein one linear feature corresponds to one set of position information;
[0220] Step 805: Determine the position information of the linear feature except the first position information as the position information of the target linear feature, wherein the first position information is the position information of the linear feature that matches the edge position of the display module;
[0221] Step 806: Determine the i-th compensation data based on the difference between the i-th display brightness of the target linear feature in the display module and the reference brightness. Perform the i-th iterative compensation on the linear defect using the i-th compensation data to obtain the i+1-th display brightness of the target linear feature. Continue performing the i+1-th iterative compensation based on the difference between the i+1-th display brightness and the reference brightness until the difference between the i+1-th and i-th display brightness is less than a first threshold, or the iterative compensation is terminated when i+1 equals the maximum number of iterations.
[0222] Step 807: Accumulate the compensation data of each iterative compensation to obtain defect compensation data; write the defect compensation data into the storage space of the display module;
[0223] Step 808: If the difference between the display brightness of the target linear feature corresponding to the last iterative compensation and the reference brightness is greater than a second threshold, the voltage of the display module is adjusted to compensate for the linear defect of the display module.
[0224] This embodiment can detect and compensate for linear defects on display devices. It uses a camera to capture defect data in module images, calculates the location and size of the detected linear defect, and then compensates for the defect by adjusting the source voltage at the location corresponding to the linear defect. This can also effectively intercept display modules with defects so severe that they cannot be fully compensated.
[0225] Based on the same inventive concept, an embodiment of the present invention further provides a display device. Since the device is the device in the method in the embodiment of the present invention, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0226] like Figure 9 As shown, the display device includes a display module 900; the display module 900 is obtained by performing defect compensation in the following manner:
[0227] Acquiring a module image of a display module displaying a preset screen;
[0228] Extracting linear features from the module image and determining position information of target linear features corresponding to the linear defects;
[0229] Iteratively compensate for the linear defects of the display module according to the position information of the target linear feature until an iteration end condition is met.
[0230] As an optional implementation manner, the display device is further configured to execute:
[0231] The defect compensation data stored in the display module is read, and the display image is compensated using the defect compensation data.
[0232] As an optional implementation, the module image includes at least a portion of the boundary content of the display module; before extracting the linear features in the module image, the method further includes:
[0233] Rotating the module image within a preset display area to crop at least a portion of the boundary content of the display module in the module image; extracting line features from the rotated module image; or,
[0234] At least a portion of the boundary content of the display module in the module image is cropped, and line features are extracted from the cropped module image.
[0235] As an optional implementation manner, before extracting the line features in the module image, the method further includes:
[0236] performing filtering processing on the module image;
[0237] The size of the filter template for the filtering process is determined according to interference features in the template image, and the size of the filter template varies with the size of the interference features in the template image; and / or,
[0238] The filtering coefficients of the filtering process are determined according to the interference features in the template image.
[0239] As an optional implementation, extracting the linear features in the module image and determining the position information of the target linear features corresponding to the linear defects includes:
[0240] Performing edge detection on the module image to obtain a second image;
[0241] binarizing the second image to obtain a third image;
[0242] The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the third image.
[0243] As an optional implementation, the position information of the target linear feature is determined by:
[0244] Determining the position information of the linear feature, except the first position information, as the position information of the target linear feature;
[0245] The first position information is position information of the linear feature that matches an edge position of the display module.
[0246] As an optional implementation, the position information of the linear feature is determined by:
[0247] Hough transform is used to detect linear features in the module image to obtain at least one set of position information corresponding to at least one linear feature, wherein one linear feature corresponds to one set of position information.
[0248] As an optional implementation, extracting the linear features in the module image and determining the position information of the target linear features corresponding to the linear defects includes:
[0249] Binarizing the module image to obtain a binary image;
[0250] The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the binary image.
[0251] As an optional implementation, iteratively compensating the linear defects of the display module until an iteration end condition is met includes:
[0252] Determining compensation data for an i-th time based on a difference between the display brightness of the target linear feature in the display module and the reference brightness, where i is an integer greater than 0;
[0253] Performing an i-th iteration compensation on the linear defect using the i-th compensation data to obtain the i+1-th display brightness of the target linear feature;
[0254] Based on the difference between the i+1th display brightness and the reference brightness, the i+1th iterative compensation is continued until the difference between the i+1th and i-th display brightness is less than the first threshold, or the iterative compensation is stopped when i+1 is equal to the maximum number of iterations.
[0255] As an optional implementation, the compensation data for each iterative compensation is determined in the following manner:
[0256] determining a source voltage adjustment value corresponding to each pixel according to a difference between a display brightness of each pixel corresponding to the target linear characteristic and a reference brightness;
[0257] determining a grayscale compensation value corresponding to each pixel according to the source voltage adjustment value corresponding to each pixel;
[0258] The grayscale compensation value corresponding to each pixel is determined as the compensation data for this iterative compensation.
[0259] As an optional implementation, the method further includes:
[0260] If the difference between the display brightness of the target linear characteristic corresponding to the last iterative compensation and the reference brightness is greater than a second threshold, the voltage of the display module is adjusted to compensate for the linear defect of the display module.
[0261] As an optional implementation, the method further includes:
[0262] Accumulate the compensation data of each iterative compensation to obtain defect compensation data;
[0263] The defect compensation data is written into the storage space of the display module.
[0264] Based on the same inventive concept, an embodiment of the present invention also provides an electronic device. Since the electronic device is the electronic device in the method in the embodiment of the present invention, and the principle of solving the problem by the electronic device is similar to that of the method, the implementation of the electronic device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0265] like Figure 10 As shown, the electronic device includes a processor 1000 and a memory 1001, wherein the memory 1001 is used to store a program executable by the processor 1000, and the processor 1000 is used to read the program in the memory 1001 and perform the following steps:
[0266] Acquiring a module image of a display module displaying a preset screen;
[0267] Extracting linear features from the module image and determining position information of target linear features corresponding to the linear defects;
[0268] Iteratively compensate for the linear defects of the display module according to the position information of the target linear feature until an iteration end condition is met.
[0269] As an optional implementation, the module image includes at least a portion of the boundary content of the display module; before extracting the linear features in the module image, the processor 1000 is further configured to execute:
[0270] Rotating the module image within a preset display area to crop at least a portion of the boundary content of the display module in the module image; extracting line features from the rotated module image; or,
[0271] At least a portion of the boundary content of the display module in the module image is cropped, and line features are extracted from the cropped module image.
[0272] As an optional implementation, before extracting the line features in the module image, the processor 1000 is further configured to execute:
[0273] performing filtering processing on the module image;
[0274] The size of the filter template for the filtering process is determined according to interference features in the template image, and the size of the filter template varies with the size of the interference features in the template image; and / or,
[0275] The filtering coefficients of the filtering process are determined according to the interference features in the template image.
[0276] As an optional implementation manner, the processor 1000 is specifically configured to execute:
[0277] Performing edge detection on the module image to obtain a second image;
[0278] binarizing the second image to obtain a third image;
[0279] The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the third image.
[0280] As an optional implementation, the processor 1000 is specifically configured to determine the position information of the target linear feature in the following manner:
[0281] Determining the position information of the linear feature, except the first position information, as the position information of the target linear feature;
[0282] The first position information is position information of the linear feature that matches an edge position of the display module.
[0283] As an optional implementation manner, the processor 1000 is specifically configured to determine the position information of the linear feature in the following manner:
[0284] Hough transform is used to detect linear features in the module image to obtain at least one set of position information corresponding to at least one linear feature, wherein one linear feature corresponds to one set of position information.
[0285] As an optional implementation manner, the processor 1000 is specifically configured to execute:
[0286] Binarizing the module image to obtain a binary image;
[0287] The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the binary image.
[0288] As an optional implementation manner, the processor 1000 is specifically configured to execute:
[0289] Determining compensation data for an i-th time based on a difference between the display brightness of the target linear feature in the display module and the reference brightness, where i is an integer greater than 0;
[0290] Performing an i-th iteration compensation on the linear defect using the i-th compensation data to obtain the i+1-th display brightness of the target linear feature;
[0291] Based on the difference between the i+1th display brightness and the reference brightness, the i+1th iterative compensation is continued until the difference between the i+1th and i-th display brightness is less than the first threshold, or the iterative compensation is stopped when i+1 is equal to the maximum number of iterations.
[0292] As an optional implementation manner, the processor 1000 is specifically configured to determine the compensation data for each iterative compensation in the following manner:
[0293] determining a source voltage adjustment value corresponding to each pixel according to a difference between a display brightness of each pixel corresponding to the target linear characteristic and a reference brightness;
[0294] determining a grayscale compensation value corresponding to each pixel according to the source voltage adjustment value corresponding to each pixel;
[0295] The grayscale compensation value corresponding to each pixel is determined as the compensation data for this iterative compensation.
[0296] As an optional implementation manner, the processor 1000 is further configured to execute:
[0297] If the difference between the display brightness of the target linear characteristic corresponding to the last iterative compensation and the reference brightness is greater than a second threshold, the voltage of the display module is adjusted to compensate for the linear defect of the display module.
[0298] As an optional implementation manner, the processor 1000 is further configured to execute:
[0299] Accumulate the compensation data of each iterative compensation to obtain defect compensation data;
[0300] The defect compensation data is written into the storage space of the display module.
[0301] Based on the same inventive concept, an embodiment of the present invention also provides a display defect compensation device. Since the device is the device in the method in the embodiment of the present invention, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0302] like Figure 11 As shown, the device includes:
[0303] An image acquisition module 1100 is configured to acquire a module image of a display module displaying a preset image;
[0304] The defect determination module 1101 is configured to extract linear features from the module image and determine position information of target linear features corresponding to the linear defects;
[0305] The defect compensation module 1102 is configured to iteratively compensate the linear defects of the display module according to the position information of the target linear feature, and stop when an iteration end condition is met.
[0306] As an optional embodiment, the module image includes at least a portion of the boundary content of the display module; before extracting the linear features in the module image, a cropping unit is further included to:
[0307] Rotating the module image within a preset display area to crop at least a portion of the boundary content of the display module in the module image; extracting line features from the rotated module image; or,
[0308] At least a portion of the boundary content of the display module in the module image is cropped, and line features are extracted from the cropped module image.
[0309] As an optional implementation, before extracting the linear features in the module image, a filtering unit is further included to:
[0310] performing filtering processing on the module image;
[0311] The size of the filter template for the filtering process is determined according to interference features in the template image, and the size of the filter template varies with the size of the interference features in the template image; and / or,
[0312] The filtering coefficients of the filtering process are determined according to the interference features in the template image.
[0313] As an optional implementation manner, the defect determination module 1101 is specifically configured to:
[0314] Performing edge detection on the module image to obtain a second image;
[0315] binarizing the second image to obtain a third image;
[0316] The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the third image.
[0317] As an optional implementation manner, the defect determination module 1101 is specifically configured to determine the position information of the target linear feature in the following manner:
[0318] Determining the position information of the linear feature, except the first position information, as the position information of the target linear feature;
[0319] The first position information is position information of the linear feature that matches an edge position of the display module.
[0320] As an optional implementation manner, the defect determination module 1101 is specifically configured to determine the position information of the linear feature in the following manner:
[0321] Hough transform is used to detect linear features in the module image to obtain at least one set of position information corresponding to at least one linear feature, wherein one linear feature corresponds to one set of position information.
[0322] As an optional implementation manner, the defect determination module 1101 is specifically configured to:
[0323] Binarizing the module image to obtain a binary image;
[0324] The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the binary image.
[0325] As an optional implementation manner, the defect compensation module 1102 is specifically configured to:
[0326] Determining compensation data for an i-th time based on a difference between the display brightness of the target linear feature in the display module and the reference brightness, where i is an integer greater than 0;
[0327] Performing an i-th iteration compensation on the linear defect using the i-th compensation data to obtain the i+1-th display brightness of the target linear feature;
[0328] Based on the difference between the i+1th display brightness and the reference brightness, the i+1th iterative compensation is continued until the difference between the i+1th and i-th display brightness is less than the first threshold, or the iterative compensation is stopped when i+1 is equal to the maximum number of iterations.
[0329] As an optional implementation manner, the defect compensation module 1102 is specifically configured to determine compensation data for each iterative compensation in the following manner:
[0330] determining a source voltage adjustment value corresponding to each pixel according to a difference between a display brightness of each pixel corresponding to the target linear characteristic and a reference brightness;
[0331] determining a grayscale compensation value corresponding to each pixel according to the source voltage adjustment value corresponding to each pixel;
[0332] The grayscale compensation value corresponding to each pixel is determined as the compensation data for this iterative compensation.
[0333] As an optional implementation manner, the defect compensation module 1102 is further configured to:
[0334] If the difference between the display brightness of the target linear characteristic corresponding to the last iterative compensation and the reference brightness is greater than a second threshold, the voltage of the display module is adjusted to compensate for the linear defect of the display module.
[0335] As an optional implementation, the data writing module is further included to:
[0336] Accumulate the compensation data of each iterative compensation to obtain defect compensation data;
[0337] The defect compensation data is written into the storage space of the display module.
[0338] Based on the same inventive concept, embodiments of the present disclosure provide a computer storage medium comprising computer program code. When executed on a computer, the computer program code causes the computer to execute any of the display defect compensation methods discussed above. Because the principles underlying the problems solved by the computer storage medium are similar to those of the display defect compensation methods, the implementation of the computer storage medium can be referenced to the implementation of the methods, and any repetitions will not be repeated.
[0339] In a specific implementation process, computer storage media may include: Universal Serial Bus Flash Drive (USB), mobile hard disk, Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk or optical disk, and other storage media that can store program code.
[0340] Based on the same inventive concept, embodiments of the present disclosure further provide a computer program product comprising computer program code that, when executed on a computer, causes the computer to execute any of the display defect compensation methods discussed above. Because the principles underlying the problems solved by the aforementioned computer program products are similar to those of the display defect compensation methods, the implementation of the aforementioned computer program products can be referenced to the implementation of the methods, and any repetitive details will not be repeated.
[0341] The computer program product can employ any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0342] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage and optical storage, etc.) containing computer-usable program code.
[0343] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that performs the functions specified in one or more boxes.
[0344] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0345] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0346] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if such changes and modifications fall within the scope of the claims and their equivalents, the present invention is intended to include such changes and modifications.
Claims
1. A display defect compensation method, characterized in that: The method includes: Acquiring a module image of a display module displaying a preset screen; Extracting linear features from the module image and determining position information of target linear features corresponding to the linear defects; Iteratively compensate for the linear defects of the display module according to the position information of the target linear feature until an iteration end condition is met.
2. The method according to claim 1, characterized in that The module image includes at least a portion of the boundary content of the display module; before extracting the line features in the module image, the method further includes: Rotating the module image within a preset display area to crop at least a portion of the boundary content of the display module in the module image; extracting line features from the rotated module image; or, At least a portion of the boundary content of the display module in the module image is cropped, and line features are extracted from the cropped module image.
3. The method according to claim 1 or 2, characterized in that Before extracting the line features in the module image, the method further includes: performing filtering processing on the module image; The size of the filter template for the filtering process is determined according to interference features in the template image, and the size of the filter template varies with the size of the interference features in the template image; and / or, The filtering coefficients of the filtering process are determined according to the interference features in the template image.
4. The method according to claim 1, wherein Extracting linear features from the module image and determining position information of target linear features corresponding to the linear defects include: Performing edge detection on the module image to obtain a second image; binarizing the second image to obtain a third image; The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the third image.
5. The method according to claim 1 or 4, characterized in that The location information of the target linear feature is determined as follows: Determining the position information of the linear feature, except the first position information, as the position information of the target linear feature; The first position information is position information of the linear feature that matches an edge position of the display module.
6. The method according to claim 5, characterized in that The position information of the line feature is determined by: Hough transform is used to detect linear features in the module image to obtain at least one set of position information corresponding to at least one linear feature, wherein one linear feature corresponds to one set of position information.
7. The method according to claim 1, characterized in that Extracting linear features from the module image and determining position information of target linear features corresponding to the linear defects include: Binarizing the module image to obtain a binary image; The position information of the target linear feature corresponding to the linear defect is determined according to the position information of the linear feature in the binary image.
8. The method according to claim 1, characterized in that Iteratively compensating the linear defects of the display module until an iteration end condition is met, comprising: Determining compensation data for an i-th time based on a difference between the display brightness of the target linear feature in the display module and the reference brightness, where i is an integer greater than 0; Performing an i-th iteration compensation on the linear defect using the i-th compensation data to obtain the i+1-th display brightness of the target linear feature; Based on the difference between the i+1th display brightness and the reference brightness, the i+1th iterative compensation is continued until the difference between the i+1th and i-th display brightness is less than the first threshold, or the iterative compensation is stopped when i+1 is equal to the maximum number of iterations.
9. The method according to claim 8, characterized in that The compensation data for each iteration is determined as follows: determining a source voltage adjustment value corresponding to each pixel according to a difference between a display brightness of each pixel corresponding to the target linear characteristic and a reference brightness; determining a grayscale compensation value corresponding to each pixel according to the source voltage adjustment value corresponding to each pixel; The grayscale compensation value corresponding to each pixel is determined as the compensation data for this iterative compensation.
10. The method according to claim 8, characterized in that The method further includes: If the difference between the display brightness of the target linear characteristic corresponding to the last iterative compensation and the reference brightness is greater than a second threshold, the voltage of the display module is adjusted to compensate for the linear defect of the display module.
11. The method according to claim 1 or 8, characterized in that The method further includes: Accumulate the compensation data of each iterative compensation to obtain defect compensation data; The defect compensation data is written into the storage space of the display module.
12. A display device, characterized in that: The display device includes a display module obtained by performing defect compensation based on the method according to any one of claims 1 to 11.
13. The display device according to claim 12, wherein: The display device is further configured to perform: The defect compensation data stored in the display module is read, and the display image is compensated using the defect compensation data.
14. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory is used to store a program executable by the processor, and the processor is used to read the program in the memory and execute the steps of any one of the methods of claims 1 to 11.
15. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
16. A computer program product, characterized in that The computer program product comprises: a computer program code, and when the computer program code is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Picture quality controling system
CN101017255A
Method and apparatus for compensating for display defect of flat panel display
CN101281302A
Splicing bright and dark line compensating method of LED display screen
CN104778920A
Splicing bright and dark line compensation method and device
CN104992669A
Splicing bright / dark line adjustment method
CN106373522A