Defect simulation display method and device
By simulating the display defect method, the display defect data of the display module is generated and written, which solves the problem of insufficient sample library in the existing technology, establishes a multi-sample display defect library, and improves the detection quality.
Patent Information
- Application Number
- CN202410741509.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, the display defect detection sample library of display modules is insufficient, making it difficult to meet the demand for high-quality display.
By simulating display defects, we obtain the reference screen data of the display module, set the characteristic parameters of the display defects, generate and write display data, and control the display defects of the display module to expand the sample library.
Through simulation, a library of display defect samples containing a large number of types and quantities is established, which improves the accuracy and efficiency of detection.
Smart Images

Figure CN118567598A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and in particular to a method and device for simulating display defects. Background Art
[0002] As display modules are used more and more widely, the requirements for display quality of display modules are getting higher and higher. Therefore, the detection of display defects of display modules, such as mura, is becoming more and more important.
[0003] In the related art, the display defect detection of the display module is usually to find the display module with display defects to establish a sample library. However, this method has the problem of insufficient sample library. Summary of the invention
[0004] The invention provides a method and device for simulating display defects to expand a display defect sample library of a display module.
[0005] According to one aspect of the present invention, there is provided a method for simulating display defects, comprising:
[0006] Obtaining brightness information of the reference picture data of the display module;
[0007] Set characteristic parameters for displaying defects;
[0008] Generate display data corresponding to the display defect according to the brightness information of the reference picture data and the characteristic parameter;
[0009] Writing the display data corresponding to the display defect into the display module;
[0010] The display module is controlled to display the display defect.
[0011] Optionally, the setting of characteristic parameters for displaying defects includes:
[0012] Set the defect type, defect location and defect size of the displayed defect.
[0013] Optionally, generating the display data corresponding to the display defect according to the brightness information of the reference picture data and the characteristic parameter includes:
[0014] Acquire first color data of a first color channel corresponding to the reference picture data;
[0015] Generate first channel data of the display defect according to the characteristic parameter and the first color data;
[0016] Preferably, the first color channel is a green channel;
[0017] Preferably, the first color data is floating point data.
[0018] Optionally, after generating the first channel data of the display defect according to the characteristic parameter and the first color data, the method further includes:
[0019] Synchronizing the first channel data to the second color channel of the display defect to obtain second channel data;
[0020] Synchronizing the first channel data to the third color channel of the display defect to obtain third channel data;
[0021] Preferably, the second color channel is a red channel;
[0022] Preferably, the third color channel is a blue channel.
[0023] Optionally, before synchronizing the first channel data to the second color channel showing the defect to obtain the second channel data, the method further includes:
[0024] If the number of data of the first color channel is greater than the number of data of the second color channel, interpolating the data of the second color channel to obtain an updated second color channel; wherein the number of data of the second color channel after the update is equal to the number of data of the first color channel;
[0025] Before synchronizing the first channel data to the third color channel of the display defect to obtain the third channel data, the method further includes:
[0026] If the number of data of the first color channel is greater than the number of data of the third color channel, the data of the third color channel is interpolated to obtain an updated third color channel; wherein the number of data of the updated third color channel is equal to the number of data of the first color channel.
[0027] Optionally, generating the first channel data of the display defect according to the characteristic parameter and the first color data includes:
[0028] If the display defect is a block defect, the first channel data is generated in the following manner:
[0029] Calculating the radius of the circumscribed circle of the block defect;
[0030] Generate an expansion circle corresponding to the circumscribed circle, wherein R1=K*R2, R1 is the number of first color sub-pixels corresponding to the radius of the expansion circle, R2 is the number of first color sub-pixels corresponding to the radius of the circumscribed circle, and K is greater than 1;
[0031] Obtaining an average grayscale of the expanded circle excluding a portion corresponding to the block defect;
[0032] Setting the grayscale gradient of the block defect;
[0033] Divide the block defect into a plurality of annular areas, set the grayscale of the annular area at the center according to a preset coefficient and the average grayscale, set the grayscale of the annular area at the edge to the average grayscale, and set the direction from the edge of the block defect to the center so that the grayscales of different annular areas change gradually according to the grayscale gradient;
[0034] Preferably, the step of setting the grayscale gradient of the block defects comprises:
[0035] Setting the grayscale gradient N of the block defect, N=(GrayMax1-MeanGray1) / (R2-1), wherein GrayMax1 is the grayscale of the annular area at the center, and MeanGray1 is the average grayscale;
[0036] Preferably, the block defect is divided into a plurality of annular areas, the grayscale of the annular area at the center is set according to a preset coefficient and the average grayscale, the grayscale of the annular area at the edge is set to the average grayscale, and the direction along the edge of the block defect pointing to the center is set, and the grayscale of different annular areas changes gradually with the grayscale gradient, including:
[0037] Set the grayscale Gray(1) of the first annular area of the block defect to: Gray(1)
[0038] =MeanGray1+Scale*MeanGray1; wherein Scale is the preset coefficient; the first annular area is a circle having the same center as the expansion circle and a radius corresponding to the number of first color sub-pixels being 1;
[0039] Set the grayscale Gray(i) of the i-th annular region of the block defect to: Gray(i)
[0040] =MeanGray1+N*((R2+1)-i); wherein i is an integer and i≥2, the i-th annular area is a circle having the same center as the expansion circle and the number of first color sub-pixels corresponding to the radius being i, excluding the part of the circle having the same center as the expansion circle and the number of first color sub-pixels corresponding to the radius being i-1;
[0041] Preferably, the value range of K is 1.1 to 1.2.
[0042] Optionally, generating the first channel data of the display defect according to the characteristic parameter and the first color data includes:
[0043] If the display defect is a strip defect, the first channel data is generated in the following manner:
[0044] Determining the length direction and width direction of the strip-shaped defect;
[0045] Determine an average grayscale of a portion of the first color data corresponding to the strip-shaped defect;
[0046] Determine the display data of the first color sub-pixel located at the center among the first color sub-pixels located on the same straight line in the width direction by the following formula;
[0047] GrayMax2=MeanGray2+Scale*MeanGray2; wherein GrayMax2 is the display data of the first color sub-pixel located at the center, MeanGray2 is the average grayscale, and Scale is a preset coefficient;
[0048] The display data of the first color sub-pixels located at the edge of the first color sub-pixels located on the same straight line in the width direction is the average grayscale;
[0049] Setting a direction from the first color sub-pixel located at the edge to the first color sub-pixel located at the center, so that the grayscale gradient displayed by the first color sub-pixel changes;
[0050] Preferably, the change gradient of the grayscale gradient displayed by the first color sub-pixel is calculated by the following formula:
[0051] GrayStep=(GrayMax2-MeanGray2) / (Length / 2), wherein GrayStep is the change gradient, and Length is the number of first color sub-pixels located on the same straight line along the width direction in the strip-shaped defect.
[0052] Optionally, writing the display data corresponding to the display defect into the display module includes:
[0053] The display data corresponding to the display defect is written into a register corresponding to the driving chip of the display module.
[0054] Optionally, controlling the display module to display the display defect includes:
[0055] Adjusting the minimum perceptible difference of the display defect according to a preset condition, and adjusting the gain value of the reference picture;
[0056] After controlling the display module to display the display defect, the method further includes:
[0057] Switch the display screen and determine the minimum perceptible difference of the display module to establish a sample library.
[0058] According to another aspect of the present invention, there is provided a device for simulating display defects, comprising:
[0059] An acquisition module, used to acquire brightness information of reference picture data of a display module;
[0060] An input module is used to set characteristic parameters of displayed defects;
[0061] A processing module, configured to generate display data corresponding to the display defect according to the brightness information of the reference picture data and the characteristic parameter;
[0062] A burning module, used for writing the display data corresponding to the display defect into the display module;
[0063] The display module is used to display the display defect.
[0064] The technical solution of the embodiment of the present invention adopts a method for simulating display defects, including: obtaining brightness information of the reference picture data of the display module; setting characteristic parameters of the display defect; generating display data corresponding to the display defect according to the brightness information and characteristic parameters of the reference picture data; writing the display data corresponding to the display defect into the display module; and controlling the display module to display the display defect. By means of simulation, a large number of display defects of various types and quantities can be obtained, so that a sample library containing enough defect samples can be established.
[0065] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] 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 creative work.
[0067] Figure 1 A flowchart of a method for simulating and displaying defects provided by an embodiment of the present invention;
[0068] Figure 2 A schematic diagram of a block defect provided by an embodiment of the present invention;
[0069] Figure 3 A schematic diagram of a display module and a strip-shaped defect provided by an embodiment of the present invention;
[0070] Figure 4 for Figure 3 A partial enlarged view of
[0071] Figure 5 A schematic diagram of a display module and another type of strip-shaped defect provided by an embodiment of the present invention;
[0072] Figure 6 for Figure 5 A magnified image of
[0073] Figure 7 A schematic diagram of the structure of a device for simulating and displaying defects provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0074] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0075] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0076] Figure 1 A flowchart of a method for simulating display defects provided by an embodiment of the present invention, referring to Figure 1 Methods for displaying defects through simulation include:
[0077] Step S110, obtaining brightness information of reference picture data of the display module;
[0078] Specifically, the display module internally stores reference picture data corresponding to a variety of reference pictures, such as 32 grayscale data, 64 grayscale data, or 128 grayscale data; when the display module displays an image, such as an image used to determine the mura condition of the display module, the reference picture data will be called for display. Of course, it should be noted that when the display module is displayed, it may contain more grayscales, for example, the displayed grayscale is 0 grayscale to 255 grayscale, and the corresponding data will be obtained by interpolation method. The reference picture data is stored in the driver chip of the display module, and more specifically, in the corresponding register in the driver chip. The reference picture data may be different in different driver chips, and this embodiment does not specifically limit this.
[0079] In addition, the reference picture corresponding to the reference picture data can be displayed by controlling the display module, and then the brightness information corresponding to the reference picture data can be obtained by taking a picture with a camera.
[0080] Step S120, setting characteristic parameters of display defects;
[0081] Specifically, the characteristic parameters of the display defect are used to define the type of the display defect, the corresponding relationship with the reference picture, etc. The characteristic parameters can be set by the user.
[0082] Step S130, generating display data corresponding to the display defect according to the brightness information and characteristic parameters of the reference picture data;
[0083] Specifically, the display data corresponding to the display defect is the brightness information corresponding to the display defect when it is displayed on the reference picture. The display data corresponding to the display defect is related to the brightness information and characteristic parameters of the reference picture data. There are various specific calculation methods, and several achievable calculation methods will be introduced later.
[0084] Step S140, writing display data corresponding to the display defect into the display module;
[0085] Specifically, after the display data corresponding to the display defect is obtained through calculation, the display data is directly written into the display module, and can be used to load the display defect data at the reference picture data level later.
[0086] Step S150, controlling the display module to display the display defect.
[0087] Specifically, when displaying the display defect, the display module can display it based on the reference picture data, that is, directly display the reference picture; or it can display it based on other test pictures, but because the data of the test picture is related to the data of the reference picture, that is, the reference picture data is also needed when displaying the test picture. By setting a variety of display defects for the same display module or different display modules, a large number of display defects can be simulated by simulation, that is, a sample library containing enough defect samples can be established.
[0088] In addition, in this embodiment, the reference picture data is used to generate display data corresponding to the display defect, and the display data is written into the display module. When an image with a display defect is subsequently displayed, the reference data used to display the image includes the display defect, so an image with any JND (Just-noticeable difference) can be obtained. In the method of directly generating defect data on other images, since the reference data used to display the image does not include the defect data, the defect is only displayed at the display level, and the accuracy of the image data is limited, an image with any JND cannot be obtained.
[0089] The technical solution of this embodiment adopts a method for simulating display defects, including: obtaining brightness information of the reference picture data of the display module; setting characteristic parameters of the display defect; generating display data corresponding to the display defect according to the brightness information and characteristic parameters of the reference picture data; writing the display data corresponding to the display defect into the display module; and controlling the display module to display the display defect. Through simulation, a large number of display defects can be obtained, so that a sample library containing enough defect samples can be established.
[0090] Optionally, setting characteristic parameters of the display defect includes: setting a defect type, a defect position, and a defect size of the display defect.
[0091] Specifically, defect types include block defects, strip defects, and hole area runway defects, etc. Among them, the shape of block defects is, for example, elliptical; the shape of strip defects is long strips; hole area runway defects can also be understood as a type of strip defect, which is mainly formed in the hole area of the display module and is also strip-shaped. The defect position includes, for example, the center coordinates of the display defect; the defect size includes, for example, the area of the display defect. The above characteristic parameters can all be set by the user.
[0092] Optionally, generating display data corresponding to the display defect according to the brightness information and characteristic parameters of the reference picture data includes:
[0093] The first color data of the first color channel corresponding to the reference picture data is acquired; and the first channel data showing the defect is generated according to the characteristic parameter and the first color data.
[0094] Specifically, the first color channel is, for example, a green channel, that is, the first color is green. The display module includes first color sub-pixels, second color sub-pixels, and third color sub-pixels arranged in a predetermined manner. The resolution of the first color sub-pixels (such as green sub-pixels) is closest to the overall pixel resolution of the display module. In other words, the position and arrangement of each sub-pixel in the first color channel can be equivalent to the position and arrangement of pixels in the display module. The reference picture data contains data of three color channels. If defect data is calculated for the data of each channel, the amount of calculation will be greatly increased. This embodiment uses the data of the first color channel to calculate the display data corresponding to the display defect, which can not only reduce the amount of calculation, but also ensure that the calculated display data of the display defect can match the position and number of pixels.
[0095] Optionally, after generating the first channel data of the display defect according to the characteristic parameters and the first color data, it also includes: synchronizing the first channel data to the second color channel of the display defect to obtain the second channel data; synchronizing the first channel data to the third color channel of the display defect to obtain the third channel data.
[0096] Specifically, the second color channel is, for example, a red channel, and the third color channel is, for example, a blue channel. In the above implementation, after obtaining the first channel data, the first channel data is directly used as the second channel data, and the first channel data is used as the third channel data.
[0097] Optionally, before synchronizing the first channel data to the second color channel to obtain the second channel data, it also includes: if the number of data in the first color channel is greater than the number of data in the second color channel, interpolating the data in the second color channel to obtain an updated second color channel; wherein the number of data in the updated second color channel is the same as the number of data in the first color channel.
[0098] Specifically, the first color channel contains m*2n data, and the second color channel contains m*n data. In this case, the number of data in the first color channel is different from that in the second color channel. If the first channel data is directly synchronized to the second color channel, a mismatch problem will occur. Therefore, the data type of the second color channel can be updated to m*2n by interpolation, such as linear interpolation, to avoid the problem of data mismatch.
[0099] Optionally, before synchronizing the first channel data to the third color channel to obtain the third channel data, it also includes: if the number of data in the first color channel is greater than the number of data in the third color channel, interpolating the data in the third color channel to obtain an updated second color channel; wherein the number of data in the updated second color channel is the same as the number of data in the first color channel.
[0100] Specifically, the first color channel contains m*2n data, and the third color channel contains m*n data. In this case, the number of data in the first color channel is different from that in the third color channel. If the first channel data is directly synchronized to the third color channel, a mismatch problem will occur. Therefore, the data type of the third color channel can be updated to m*2n by interpolation, such as linear interpolation, to avoid the problem of data mismatch.
[0101] Of course, it should be noted that after interpolation is used to make the number of data in each color channel the same, before finally displaying it through the display module, it is necessary to reduce the number of data in the first color channel and the second color channel to the original number through interpolation to ensure that the display module can display normally.
[0102] Based on the above implementations, several specific calculation methods for display defects will be introduced below.
[0103] Optionally, generating first channel data showing defects according to the characteristic parameter and the first color data includes:
[0104] If the displayed defect is a block defect, the first channel data is generated as follows:
[0105] Calculate the circumscribed circle radius of block defects;
[0106] Specifically, Figure 2 As shown, Figure 2 A schematic diagram of a block defect provided in an embodiment of the present invention. The block defect Block can be an ellipse, a rectangle, etc. First, determine the circumscribed circle C1 of the block defect Block, and calculate the number R2 of the first color sub-pixels corresponding to the radius of the circumscribed circle. It should be noted that in this embodiment, R2 is the value with the largest number of first color sub-pixels corresponding to the radius. Then generate an expansion circle C2 corresponding to the circumscribed circle C1, where R1=K*R2, and R1 is the number of first color sub-pixels corresponding to the radius of the expansion circle C2. K is greater than 1, for example, the value range of K is 1.1 to 1.2, and a more preferred value of K may be 1.1.
[0107] Obtain the average grayscale of the portion of the expanded circle C2 that corresponds to the block defect removed;
[0108] Specifically, Figure 2As shown, the grayscale of the first color sub-pixel of the portion Zk where the expansion circle C2 does not overlap with the block defect Block is traversed, and the maximum grayscale and the average grayscale MeanGray1 are calculated. The portion Zk where the expansion circle C2 does not overlap with the block defect Block is the peripheral area of the block defect Block. In actual display, its grayscale information has an important influence on the grayscale information of the block defect Block.
[0109] Set the grayscale gradient of block defects;
[0110] Optionally, setting the grayscale gradient of the block defect includes: setting the grayscale gradient N of the block defect, N=(GrayMax1-MeanGray1) / (R2-1), wherein GrayMax1 is the grayscale of the annular area located in the center, which has the largest grayscale difference with the average grayscale and can be considered as the maximum grayscale. MeanGray1 is the average grayscale.
[0111] The block defect is divided into multiple annular areas, the grayscale of the annular area at the center is set according to the average grayscale and the preset coefficient, the grayscale of the annular area at the edge is set to the average grayscale, and the direction along the edge of the block defect pointing to the center is set, and the grayscale of different annular areas changes gradually with a grayscale gradient.
[0112] Specifically, the grayscale Gray(1) of the first annular area Z1 is set to: Gray(1)
[0113] =MeanGray1+Scale*MeanGray1, where Scale is a preset coefficient; the first annular area Z1 is a circle with the same center as the expansion circle C2 and the number of first color sub-pixels corresponding to the radius being 1. Scale can be included in the characteristic parameters of the display defect. It can be a negative number or a positive number. When the value is a negative number, the block defect can be a black block defect; when the value is a positive number, the block defect can be a white block defect. A preset coefficient can be set, that is, Scale is greater than or equal to -5 and less than or equal to 5.
[0114] Set the grayscale Gray(i) of the i-th annular region of the block defect to: Gray(i)
[0115] =MeanGray1+N*((R2+1)-i); wherein, i≥2, the i-th annular area is a circle having the same center as the expansion circle and whose number of first color sub-pixels corresponding to the radius is i, excluding the part of the circle having the same center as the expansion circle and whose number of first color sub-pixels corresponding to the radius is i-1.
[0116] Specifically, Figure 2 As shown, Figure 2In the example, block defects include the first annular area Z1, the second annular area Z2, the third annular area Z3, the fourth annular area Z4, the fifth annular area Z5 and the sixth annular area Z6. The grayscale of the second annular area Z2 is MeanGray1+N*(R2+1-2). It can be understood that when the preset coefficient Scale is a negative number, the corresponding grayscale gradient N is also a negative number, then the grayscale of the i-th annular area calculated by the above formula is less than the grayscale of the i+1-th annular area. That is, through the above formula, whether under white block defects or black block defects, multiple annular areas with gradient grayscale changes can be obtained. Of course, in the above embodiment, in order to simulate the display defects more realistically, the calculated grayscales of different sub-pixels in each annular area can be multiplied by a random number, and the value range of the random number is 0.995~1.
[0117] Optionally, generating first channel data showing defects according to the characteristic parameter and the first color data includes:
[0118] If the displayed defect is a strip defect, the first channel data is generated as follows:
[0119] Determine the length and width directions of the strip defect;
[0120] Specifically, when the display defect is a strip defect, the characteristic parameters of the display defect include the length along the first direction X and the length along the second direction Y. The length direction and the width direction of the strip defect can be automatically determined based on the two lengths. Figures 3 to 6 As shown, Figure 3 A schematic diagram of a display module and a strip-shaped defect provided by an embodiment of the present invention, Figure 4 for Figure 3 A partial enlarged view of Figure 5 A schematic diagram of a display module and another strip-shaped defect provided by an embodiment of the present invention, Figure 6 for Figure 5 A magnified image of Figure 3 and Figure 4 In the characteristic parameter, the length of the strip defect Wire along the first direction x is greater than the length along the second direction y, then the length direction of the strip defect Wire is determined to be the first direction x, and the width direction is the second direction y. Figure 5 and Figure 6 In the embodiment, if the length of the strip defect Wire set in the characteristic parameter along the first direction x is less than the length along the second direction y, then it is determined that the length direction of the strip defect Wire is the second direction y, and the width direction is the first direction x.
[0121] Determine an average grayscale of a portion of the first color data corresponding to the strip-shaped defect;
[0122] Specifically, all data of the portion corresponding to the band-shaped defect in the original first color data may be traversed, and the average value may be obtained.
[0123] Determine display data of a first color sub-pixel located at the center among first color sub-pixels located on the same straight line in the width direction by the following formula;
[0124] GrayMax2=MeanGray2+Scale*MeanGray2; wherein GrayMax2 is the display data of the first color sub-pixel located at the center, MeanGray2 is the average grayscale, and Scale is a preset coefficient;
[0125] Specifically, the preset coefficient Scale may be included in the characteristic parameters and set by the user, and the Scale may be a positive number or a negative number. The preset coefficient may be set, that is, the Scale may be greater than or equal to -5 and less than or equal to 5.
[0126] The display data of the first color sub-pixels located at the edge of the first color sub-pixels located on the same straight line in the width direction is the average grayscale;
[0127] Setting a direction from the first color sub-pixel located at the edge to the first color sub-pixel located at the center, so that the grayscale gradient displayed by the first color sub-pixel changes;
[0128] Preferably, the change gradient of the grayscale gradient displayed by the first color sub-pixel is calculated by the following formula:
[0129] GrayStep=(GrayMax2-MeanGray2) / (Length / 2), where GrayStep is the change gradient, and Length is the number of first color sub-pixels in the strip defect that are located on the same straight line along the width direction. Figure 4 and Figure 6 That is, along the width direction, the difference between the first color sub-pixel located in the center and the average grayscale is the largest, and the difference between the first color sub-pixel located closer to the edge and the average grayscale is smaller.
[0130] Optionally, in the above implementation, writing the display data corresponding to the display defect into the display module includes: writing the display data corresponding to the display defect into a register corresponding to the driver chip of the display module. That is, in this embodiment, the display defect is directly set at the register level, and compared with setting the display defect only at the image level, an image of any JND can be obtained.
[0131] Optionally, controlling the display module to display a display defect includes:
[0132] Adjust the Just Noticeable Difference (JND) of the displayed defect according to the preset adjustment, and adjust the gain value of the reference picture.
[0133] Specifically, display data corresponding to a variety of display defects can be written in the display module. When displaying the display defects, different display data corresponding to different display defects are called according to different judges to adjust the minimum perceptible difference JND of the display defects, so as to facilitate the judges to make judgments. Of course, the reference picture corresponds to a gain value, and different gain values have different brightness of the reference picture. Therefore, the display effect of the reference picture can be adjusted by adjusting the gain value, so as to make it easier for the judges to make judgments.
[0134] After controlling the display module to display the display defect, the method further includes:
[0135] Switch the display screen and determine the minimum perceptible difference of the display module to establish a sample library.
[0136] Specifically, the minimum noticeable difference JND of the display defect adjusted as above is the theoretical JND, and the actual JND needs to be determined by a judge. The judge can confirm the actual JND by switching multiple screens, such as switching multiple reference screens, thereby establishing a sample library corresponding to the display defects.
[0137] The embodiment of the present invention also provides a device for simulating display defects, such as Figure 7 As shown, Figure 7 A schematic diagram of the structure of a device for simulating and displaying defects provided by an embodiment of the present invention. The device comprises:
[0138] An acquisition module 310 is used to acquire brightness information of reference picture data of a display module;
[0139] An input module 320 is used to set characteristic parameters of display defects;
[0140] A processing module 330, configured to generate display data corresponding to the display defect according to brightness information and characteristic parameters of the reference picture data;
[0141] The burning module 340 is used to write the display data corresponding to the display defect into the display module;
[0142] The display module 350 is used to display the display defect.
[0143] The device for simulating display defects of this embodiment is used to execute the method for simulating display defects of the embodiment of the present invention. The specific working principle can be referred to the description of the method for simulating display defects of the present invention, which will not be repeated here. This embodiment can obtain a large number of display defects in types and quantities through simulation, so that a sample library containing enough defect samples can be established.
[0144] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0145] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for simulating and displaying defects, It is characterized in that include: Obtaining brightness information of the reference picture data of the display module; Set characteristic parameters for displaying defects; Generate display data corresponding to the display defect according to the brightness information of the reference picture data and the characteristic parameter; Writing the display data corresponding to the display defect into the display module; The display module is controlled to display the display defect.
2. The method for simulating and displaying defects according to claim 1, It is characterized in that The characteristic parameters for setting the display defect include: Set the defect type, defect location and defect size of the displayed defect.
3. The method for simulating and displaying defects according to claim 1, It is characterized in that Generating the display data corresponding to the display defect according to the brightness information of the reference picture data and the characteristic parameter comprises: Acquire first color data of a first color channel corresponding to the reference picture data; Generate first channel data of the display defect according to the characteristic parameter and the first color data; Preferably, the first color channel is a green channel; Preferably, the first color data is floating point data.
4. The method for simulating and displaying defects according to claim 3, It is characterized in that After generating the first channel data of the display defect according to the characteristic parameter and the first color data, the method further includes: Synchronizing the first channel data to the second color channel of the display defect to obtain second channel data; Synchronizing the first channel data to the third color channel of the display defect to obtain third channel data; Preferably, the second color channel is a red channel; Preferably, the third color channel is a blue channel.
5. The method for simulating and displaying defects according to claim 4, It is characterized in that Before synchronizing the first channel data to the second color channel showing the defect to obtain the second channel data, the method further includes: If the number of data of the first color channel is greater than the number of data of the second color channel, interpolating the data of the second color channel to obtain an updated second color channel; wherein the number of data of the second color channel after the update is equal to the number of data of the first color channel; Before synchronizing the first channel data to the third color channel of the display defect to obtain the third channel data, the method further includes: If the number of data of the first color channel is greater than the number of data of the third color channel, the data of the third color channel is interpolated to obtain an updated third color channel; wherein the number of data of the updated third color channel is equal to the number of data of the first color channel.
6. The method for simulating and displaying defects according to any one of claims 3 to 5, It is characterized in that The generating the first channel data of the display defect according to the characteristic parameter and the first color data comprises: If the display defect is a block defect, the first channel data is generated in the following manner: Calculating the radius of the circumscribed circle of the block defect; Generate an expansion circle corresponding to the circumscribed circle, wherein R1=K*R2, R1 is the number of first color sub-pixels corresponding to the radius of the expansion circle, R2 is the number of first color sub-pixels corresponding to the radius of the circumscribed circle, and K is greater than 1; Obtaining an average grayscale of the expanded circle excluding a portion corresponding to the block defect; Setting the grayscale gradient of the block defect; Divide the block defect into a plurality of annular areas, set the grayscale of the annular area at the center according to a preset coefficient and the average grayscale, set the grayscale of the annular area at the edge to the average grayscale, and set the direction from the edge of the block defect to the center so that the grayscales of different annular areas change gradually according to the grayscale gradient; Preferably, the step of setting the grayscale gradient of the block defects comprises: Setting the grayscale gradient N of the block defect, N=(GrayMax1-MeanGray1) / (R2-1), wherein GrayMax1 is the grayscale of the annular area at the center, and MeanGray1 is the average grayscale; Preferably, the block defect is divided into a plurality of annular areas, the grayscale of the annular area at the center is set according to a preset coefficient and the average grayscale, the grayscale of the annular area at the edge is set to the average grayscale, and the direction along the edge of the block defect pointing to the center is set, and the grayscale of different annular areas changes gradually with the grayscale gradient, including: The grayscale Gray(1) of the first annular area of the block defect is set to: Gray(1)=MeanGray1+Scale*MeanGray1; wherein Scale is the preset coefficient; the first annular area is a circle having the same center as the expansion circle and a radius corresponding to a number of first color sub-pixels of 1; The grayscale Gray(i) of the i-th annular region of the block defect is set to: Gray(i)=MeanGray1+N*((R2+1)-i); wherein i is an integer and i≥2, and the i-th annular region is a circle having the same center as the expansion circle and the number of first color sub-pixels corresponding to the radius being i, excluding the part of the circle having the same center as the expansion circle and the number of first color sub-pixels corresponding to the radius being i-1; Preferably, the value range of K is 1.1 to 1.
2.
7. The method for simulating and displaying defects according to any one of claims 3 to 5, It is characterized in that The generating the first channel data of the display defect according to the characteristic parameter and the first color data comprises: If the display defect is a strip defect, the first channel data is generated in the following manner: Determining the length direction and width direction of the strip-shaped defect; Determine an average grayscale of a portion of the first color data corresponding to the strip-shaped defect; Determine the display data of the first color sub-pixel located at the center among the first color sub-pixels located on the same straight line in the width direction by the following formula; GrayMax2=MeanGray2+Scale*MeanGray2; wherein GrayMax2 is the display data of the first color sub-pixel located at the center, MeanGray2 is the average grayscale, and Scale is a preset coefficient; The display data of the first color sub-pixels located at the edge of the first color sub-pixels located on the same straight line in the width direction is the average grayscale; Setting a direction from the first color sub-pixel located at the edge to the first color sub-pixel located at the center, so that the grayscale gradient displayed by the first color sub-pixel changes; Preferably, the change gradient of the grayscale gradient displayed by the first color sub-pixel is calculated by the following formula: GrayStep=(GrayMax2-MeanGray2) / (Length / 2), wherein GrayStep is the change gradient, and Length is the number of first color sub-pixels located on the same straight line along the width direction in the strip-shaped defect.
8. The method for simulating and displaying defects according to claim 1, It is characterized in that Writing the display data corresponding to the display defect into the display module comprises: The display data corresponding to the display defect is written into a register corresponding to the driving chip of the display module.
9. The method for simulating and displaying defects according to claim 1, It is characterized in that The controlling the display module to display the display defect comprises: Adjusting the minimum perceptible difference of the display defect according to a preset condition, and adjusting the gain value of the reference picture; After controlling the display module to display the display defect, the method further includes: Switch the display screen and determine the minimum perceptible difference of the display module to establish a sample library.
10. A device for simulating and displaying defects, It is characterized in that include: An acquisition module, used to acquire brightness information of reference picture data of a display module; An input module is used to set characteristic parameters of displayed defects; A processing module, configured to generate display data corresponding to the display defect according to the brightness information of the reference picture data and the characteristic parameter; A burning module, used for writing the display data corresponding to the display defect into the display module; The display module is used to display the display defect.
