Test method, device, equipment and medium for low-gray display effect of display screen
Through the mapping relationship between image pixel points and display pixel points, the low gray display effect of LED screen is automatically evaluated, solving the problems of accuracy and low efficiency caused by manual visual judgments, and achieving efficient and accurate low gray display testing.
Patent Information
- Application Number
- CN202110902544.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-06
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2041-08-06
AI Technical Summary
In the prior art, the low gray display effect test of LED screens relies on manual visual judgment, resulting in poor accuracy and low efficiency of test results. Especially in a single box, the problem of insignificant display is difficult to detect, and manual adjustment of grayscale value is time-consuming.
By determining the mapping relationship between the image to be tested and the display screen, using the mapping of the image pixel points and the pixel points of the display screen, the pixel values of each pixel point to be tested and the average of the entire screen are quantized and compared, and the low-gray display effect is automatically evaluated.
It improves the testing efficiency and accuracy of the low-gray display effect of the LED screen, quantifies the color cast problem of the display, and reduces artificial errors and test time.
Smart Images

Figure CN115705807B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of display technology, and in particular to a method, device, equipment and medium for testing the low-gray display effect of a display screen. Background Art
[0002] With the continuous development of display device technology, multi-level grayscale display technology has emerged on displays such as LED screens. This improvement in grayscale greatly enhances the screen's display fineness, but as a display device, LED screens are critical for low-grayscale display quality. This refers to the display quality of the LED screen when each pixel has a low grayscale value. Common low-grayscale display issues include a dark first line, uneven low-grayscale blocks, and dark lines appearing during low-grayscale gradient displays.
[0003] Therefore, it is necessary to test the display effect of LED screens at low grayscale values during the LED R&D and production testing stages. Existing technology mainly relies on manual visual judgment and manual adjustment of the grayscale level of the LED screen, for example, setting the grayscale from 1 to 50 or 100 one by one, and observing the display effect of the LED at different low grayscale levels.
[0004] However, due to the varying experience of different staff members, this method also suffers from uneven low-grayscale display in some color blocks, a dark first line, and dark gradient lines in low-grayscale. These problems are only apparent when the entire LED screen is spliced together, and are not obvious in a single LED screen cabinet. This affects the accuracy of the test results and can easily lead to missed detections. Furthermore, to test the display effects at different low-grayscale levels, the grayscale values need to be manually adjusted one by one, resulting in low test efficiency. Summary of the Invention
[0005] The embodiments of the present invention provide a method, device, equipment and medium for testing the low-gray display effect of a display screen, thereby improving the testing efficiency and accuracy of the low-gray display effect of the display screen.
[0006] In a first aspect, an embodiment of the present invention provides a method for testing a low-gray display effect of a display screen, comprising:
[0007] Determine that the image displayed by the display screen to be tested in a preset low grayscale parameter configuration is the image to be tested;
[0008] Based on a pre-established mapping relationship between image pixels of the image to be tested and pixels to be tested of the display screen to be tested, determining the pixel value of each pixel to be tested in the display screen to be tested according to the pixel values of the image pixels in the image to be tested;
[0009] According to the comparison result of the pixel value of each pixel point to be tested and the average pixel value of the entire screen of the display screen to be tested, the low gray display effect test result of the display screen to be tested under the preset low gray parameter is determined.
[0010] In a second aspect, an embodiment of the present invention further provides a device for testing the low-gray display effect of a display screen, comprising:
[0011] A module for determining an image to be tested, configured to determine that an image displayed by the display screen to be tested in a preset low grayscale parameter configuration is an image to be tested;
[0012] a pixel value determination module, configured to determine the pixel value of each pixel to be tested in the display screen to be tested according to the pixel values of the image pixels in the image to be tested, based on a pre-established mapping relationship between the image pixels of the image to be tested and the pixel pixels to be tested in the display screen to be tested;
[0013] The display effect test module is used to determine the low gray display effect test result of the display screen to be tested under the preset low gray scale parameters according to the comparison result of the pixel value of each pixel point to be tested and the average pixel value of the entire screen of the display screen to be tested.
[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, including:
[0015] one or more processors;
[0016] a storage device for storing one or more programs,
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for testing the low-gray display effect of a display screen as described in any embodiment of the present invention.
[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for testing the low-gray display effect of a display screen as described in any embodiment of the present invention.
[0019] The embodiment of the present invention determines that the image of the display screen to be tested when it is displayed in a preset low grayscale parameter configuration is the image to be tested; based on the pre-established mapping relationship between the image pixel points of the image to be tested and the test pixel points of the display screen to be tested, the pixel value of each test pixel point in the display screen to be tested is determined according to the pixel value of the image pixel point in the image to be tested; based on the comparison result of the pixel value of each test pixel point with the average value of the entire screen pixel of the display screen to be tested, the low gray display effect test result of the display screen to be tested under the preset low grayscale parameters is determined. The image pixel points are mapped to the display screen pixel points through an image algorithm, and the low gray display effect is quantitatively tested using the comparison result of the pixel value of each pixel point of the display screen with the average value of the entire screen, thereby improving the test efficiency and accuracy of the low gray display effect of the display screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a flow chart of a method for testing a low-gray display effect of a display screen in Embodiment 1 of the present invention;
[0021] Figure 2 Schematic diagram of a test device for low-gray display effect of an LED screen in Example 1 of the present invention;
[0022] Figure 3 This is a schematic diagram of determining the actual pixel luminous range of the pixel to be tested on the LED screen in the first embodiment of the present invention;
[0023] Figure 4 Schematic diagram of the sub-region division of the actual image pixel area in the first embodiment of the present invention;
[0024] Figure 5 2 is a schematic structural diagram of a device for testing low-gray display effects of a display screen in a second embodiment of the present invention;
[0025] Figure 6 It is a structural diagram of an electronic device in the third embodiment of the present invention. DETAILED DESCRIPTION
[0026] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.
[0027] Example 1
[0028] Figure 1 This is a flow chart of the method for testing the low gray display effect of a display screen in the first embodiment of the present invention. This embodiment is applicable to the low gray display effect inspection of a display screen during the R&D test phase and the production test phase, such as a small-pitch LED screen. This method can be executed by a device for testing the low gray display effect of a display screen. The device can be implemented in software and / or hardware and can be configured in an electronic device, such as a background server or other device with communication and computing capabilities. Figure 1 As shown, the method specifically includes:
[0029] Step 101: Determine that an image displayed by a display screen to be tested in a preset low grayscale parameter configuration is an image to be tested.
[0030] Among them, the display screen refers to a display that realizes color through various display technologies. For example, the display screen to be tested can be an LED screen, etc. The LED screen to be tested refers to a small-pitch LED screen whose display effect under low grayscale is to be tested. Small pitch means that the gap between the lamp beads in the LED screen is less than 2.5 mm. The preset low grayscale parameter refers to the low grayscale level that needs to be tested. Specifically, each pixel in the LED screen includes three lamp beads, and the three lamp beads each emit a single light of red, green and blue. The color of each pixel is determined by setting the brightness values of the three colors. The preset low grayscale parameter is determined by setting the brightness values of the three lamp beads. For example, the low grayscale level to be tested is red, and the low grayscale value is 1. The corresponding low grayscale parameters are: the brightness value of the red lamp bead is 1, the brightness of the green lamp bead is 0, and the brightness value of the blue lamp bead is 0; the low grayscale level to be tested is green, and the low grayscale value is 1. The corresponding low grayscale parameters are: the brightness value of the red lamp bead is 0, the brightness of the green lamp bead is 1, and the brightness value of the blue lamp bead is 0; the low grayscale level to be tested is blue and the low grayscale value is 1, then the corresponding low grayscale parameters are: the brightness value of the red lamp bead is 0, the brightness of the green lamp bead is 0, and the brightness value of the blue lamp bead is 1; the low grayscale level to be tested is white and the low grayscale value is 1, then the corresponding low grayscale parameters are: the brightness value of the red lamp bead is 1, the brightness of the green lamp bead is 1, and the brightness value of the blue lamp bead is 1; accordingly, according to this method, low grayscale parameters of different low grayscale levels can be set. Optionally, the preset low grayscale parameters include parameters of multiple low grayscale levels to test the display effects under multiple low grayscale levels.
[0031] Specifically, the display screen to be tested is illuminated, and the brightness of each LED in the display screen to be tested is configured according to preset low-grayscale parameters. The displayed display screen is photographed, and the resulting image, including the display screen, serves as the test image. If the preset low-grayscale parameters include parameters of multiple different low-grayscale levels, since the mapping relationship between the image pixels of the test image and the test pixels of the display screen to be tested is pre-established, the positional relationship between the image acquisition device and the display screen to be tested needs to be fixed when performing a test based on this mapping relationship.
[0032] In a feasible embodiment, the preset low grayscale parameters are pre-set in a configuration parameter file; wherein the configuration parameter file includes preset low grayscale parameters of at least two low-order grayscale levels;
[0033] Accordingly, step 101 includes:
[0034] Read the preset low grayscale parameters in the configuration parameter file in sequence through the sending card;
[0035] Send the preset low grayscale parameters to the receiving card connected to the sending card;
[0036] Control the receiving card connected to the display screen to be tested to display the preset low grayscale parameters;
[0037] An image captured when the display screen to be tested is displayed under a preset low grayscale parameter configuration is determined as the image to be tested.
[0038] The configuration parameter file includes preset low-grayscale parameters for controlling at least two low grayscale levels of grayscale displayed on the display screen to test different low-grayscale display effects. For example, the configuration parameter file includes grayscale levels from 1 to X, displaying parameters for red, green, blue, and white. The value of X can be set to 50 or 100, and can be set based on actual conditions without limitation.
[0039] The sending card reads the grayscale parameters for the display screen from a configuration parameter file. For example, this can be accomplished by attaching a Flash memory to the sending card's internal logic processing chip (FPGA) and writing the configuration parameter file for the display screen's grayscale control to the Flash memory. After reading the preset low grayscale parameters, the sending card sends them to the receiving card for display, ensuring that the display screen under test displays according to the preset low grayscale parameters.
[0040] Specifically, such as Figure 2 The following is a schematic diagram of the test device for the low gray display effect of the LED screen. Figure 2 As shown, one end of the control computer PC is connected to the sending card via a USB port, and the other end is connected to the high-definition camera via a network cable. The sending card is connected to the receiving card via a network cable, and then the receiving card is connected to the LED board to be tested via a HUB board for display. The logic processing chip (FPGA) inside the sending card has an external Flash memory, and the configuration parameter file needs to be written into this Flash memory. During the actual test, the LED screen is lit, and the PC controls the sending card to read the preset low-grayscale parameters in the configuration parameter file in sequence. For example, the red low-grayscale value is 1. After the receiving card displays this parameter, the PC controls the camera to take a photo, obtaining the image to be tested with the red low-grayscale value of 1. The PC then reads the next preset low-grayscale parameter in the order in the configuration parameter file, for example, the green low-grayscale value is 1, and takes a photo according to this method, obtaining the image to be tested with the green low-grayscale value of 1. This process is repeated to obtain the images to be tested with all the low-grayscale parameters set in the configuration parameter file. During this process, the position between the camera and the LED needs to be kept fixed to avoid affecting the accuracy of the subsequent mapping relationship.
[0041] By controlling the sending card to read different low grayscale parameters in the configuration parameter file, the output of low grayscale test images of different small-pitch displays can be controlled, improving test efficiency and avoiding manual adjustment of grayscale values.
[0042] Step 102 : Based on the pre-established mapping relationship between the image pixels of the image to be tested and the pixels to be tested of the display screen to be tested, the pixel values of each pixel to be tested in the display screen to be tested are determined according to the pixel values of the image pixels in the image to be tested.
[0043] The preset mapping relationship between the image pixels of the image to be tested and the pixels of the display screen to be tested includes the image pixel that each pixel to be tested actually corresponds to in the image to be tested.
[0044] Specifically, pixel extraction is performed on the image to be tested to align each pixel to be tested in the display screen to be tested. Exemplarily, based on the mapping relationship, the image to be tested is segmented into pixels so that the image pixels in the image to be tested correspond to the pixels to be tested on the display screen. The target image pixel corresponding to the target pixel to be tested is determined, and the pixel value of the target pixel to be tested is determined based on the pixel value of the target image pixel. Exemplarily, the average pixel value of each component of the target image pixel is used as the pixel value of each component of the target pixel to be tested.
[0045] In a feasible embodiment, the mapping relationship between the image pixels of the image to be tested and the pixels to be tested of the display screen to be tested is established by the following steps:
[0046] Determining a display area of the display screen to be tested in the image to be tested as a valid area;
[0047] Determining the regional resolution of the effective area according to the image resolution of the image to be tested;
[0048] Determining a theoretical image pixel area in the image to be tested that is mapped to each pixel to be tested in the display screen to be tested based on a proportional relationship between the regional resolution and the display screen resolution of the display screen to be tested;
[0049] Determine the actual pixel luminous range of each pixel to be tested based on the package edge parameters and gap parameters of the display screen to be tested;
[0050] Determine the actual image pixel area in the theoretical image pixel area that is mapped to the actual pixel luminous range.
[0051] Since the image to be tested includes not only the display screen but also the shooting background, it is first necessary to extract the area where the display screen is located to obtain a valid area that only includes the display screen. This extraction can be determined based on edge extraction or a predetermined positional relationship, which is not limited here. After determining the valid area, the regional resolution of the valid area is determined based on the image resolution of the image to be tested, wherein the image resolution of the image to be tested is determined based on the parameters of the image acquisition device itself, and the regional resolution of the valid area is determined based on the extracted positional relationship of the valid area in the image to be tested. The display resolution of the display screen to be tested can also be determined based on the attribute parameters of the screen. Based on the proportional relationship between the regional resolution of the display screen and the resolution of the display screen itself, the theoretical image pixel area corresponding to a pixel point on the display screen on the image can be determined.
[0052] For example, the resolution of the image to be tested is determined to be 1920*1080 based on the attribute parameters of the image acquisition device, and the regional resolution of the effective area is determined to be 1620*960 based on the extraction position of the effective area. The display resolution is determined to be 162*96 based on the attribute parameters of the display screen to be tested, that is, the pixels on the display screen are 162*96, and the pixels included in the effective area on the corresponding image are 1620*960, and the size of each pixel on the display screen is the same. Therefore, the area occupied by each pixel to be tested on the display screen on the test image can be determined to correspond to a 10*10 image pixel. Furthermore, the theoretical image pixel area corresponding to each pixel to be tested on the test image can be determined.
[0053] When the display screen is an LED screen, since the LED screen is composed of multiple lamp beads, there are gaps between the lamp beads, and the pixels need to be packaged, there are seams between different pixels. Therefore, when establishing the mapping relationship between the image pixels of the image to be tested and the pixels to be tested of the LED screen to be tested, the interference of seams and gaps between LED lamp beads should be avoided to make the final mapping relationship more accurate. Figure 3 The figure shows the actual pixel luminous range of the LED screen pixel to be tested. Figure 3As shown, each square unit represents a pixel to be tested. The pixel's package edge parameters and LED bead gap parameters can be determined based on the property parameters of the LED screen. The actual luminous area of the pixel to be tested can be obtained based on the LED bead gap and package edge. The actual pixel luminous range of the pixel to be tested is determined based on the relationship between the actual luminous area and the area of the pixel to be tested. The actual image pixel area within the theoretical image pixel area is then determined based on the positional relationship between the actual pixel luminous range and the pixel to be tested. Exemplarily, when determining the actual image pixel area of the pixel to be tested, taking the first pixel to be tested in the upper left corner as an example, its theoretical image pixel area is a range of 10*10 from the upper left corner of the effective area. According to the positional relationship of the actual pixel luminous range to the pixel to be tested, the actual image pixel area of the pixel to be tested is determined to be a square area with a coordinate of 2*2 in the upper left corner and a coordinate of 8*8 in the lower right corner, that is, the area of the two surrounding pixels within the range of 10*10 is the actual non-luminous area caused by the package edge and the LED gap. The actual calculation process of the two pixels can be determined based on the package edge parameters and the gap parameters. It is a common technology used by people in this field and will not be repeated here. The same is true for other pixel points to be tested, and the actual image pixel areas associated with other pixel points to be tested are determined in turn.
[0054] In a feasible embodiment, step 102 includes:
[0055] Based on the mapping relationship, determining an actual image pixel area in the image to be tested that is mapped to a target pixel to be tested in the display screen to be tested;
[0056] The pixel value of the target pixel point to be tested in the display screen to be tested is determined according to the pixel value of the actual image pixel point area.
[0057] Based on the mapping relationship established above, the actual image pixel area mapped to each pixel to be tested in the image to be tested is determined in sequence, wherein the target pixel to be tested is each pixel to be tested. After determining the actual image pixel area of each pixel to be tested, the pixel value within the actual image pixel area is read from the image, and the pixel value of the corresponding pixel to be tested is determined based on the pixel value. Exemplarily, the average of the pixel values within the actual image pixel area is used as the pixel value of the corresponding pixel to be tested. When the pixel value includes three component values of RGB, the average of each component value within the actual image pixel area is used as the component pixel value of the corresponding pixel to be tested. Alternatively, at least two points are selected from the actual image pixel area, and the average of the pixel values of the at least two points is used as the pixel value of the pixel to be tested.
[0058] In a feasible embodiment, determining the pixel value of the target pixel to be tested in the display screen to be tested according to the pixel value of the actual image pixel area includes:
[0059] Dividing the actual image pixel area into at least two sub-areas;
[0060] Sampling the pixels in each sub-region, and taking the average pixel value of the sampled pixels as the pixel value of the sub-region;
[0061] The average of the pixel values of at least two sub-areas is used as the pixel value of the target pixel to be tested in the display screen to be tested.
[0062] Because the actual image pixel area corresponding to each pixel to be measured may include a large number of pixels, if every pixel in the actual image pixel area is included in the calculation, the amount of calculation will increase. Therefore, in an embodiment of the present invention, the actual image pixel area is divided into multiple sub-areas, and the pixels in the sub-areas are sampled. The pixel values of the sub-areas are determined based on the pixel values of the sampled pixels, and the pixel values of the actual image pixel area are then determined based on the pixel values of the sub-areas to serve as the pixel values of the target pixel to be measured.
[0063] For example, Figure 4 The figure shows a schematic diagram of the sub-region division of the actual image pixel area. The actual image pixel area is divided into four sub-regions in equal proportion, and sampling is performed from each sub-region. The number of samples is set according to the test accuracy and is not restricted here. The average pixel value of each component of the sampled pixel point is used as the pixel value of the corresponding component of the sub-region, and then the pixel value of each component of the target pixel point to be tested is determined based on the average pixel value of each component of the sub-region.
[0064] Step 103 : Determine a low grayscale display effect test result of the display screen to be tested under preset low grayscale parameters based on a comparison result of the pixel value of each pixel point to be tested and the average pixel value of the entire screen of the display screen to be tested.
[0065] After determining the pixel value of each pixel to be tested, the pixel values of all the pixel points to be tested are averaged as the pixel mean of the entire screen. The pixel value of each pixel to be tested is then compared with the pixel mean of the entire screen to determine whether there is a large gap between the pixel value of any pixel and the mean. If the gap is too large, it means that the pixel point has a poor effect under low-gray display and there are certain problems.
[0066] Since most of the pixels on the entire display screen have no problems when displaying in low grayscale, and only a few pixels have display problems, the average pixel value of the entire screen can reflect the theoretical level of the display screen when displaying in low grayscale. By comparing the pixel value of each pixel to be tested with the theoretical level, the color cast test of the display screen can be quantified and the test accuracy can be improved.
[0067] For example, based on the above example, the effective area is divided into 162*96=15552 units according to the pixel points to be tested, and 4 points are taken in each unit to calculate the average pixel value, thereby obtaining 15552 values. Since the number of sampling points is large enough, this value can represent the average level of the color components of all pixels on the display screen. Then, by judging the difference between each point and this average value, it can be determined whether the entire screen has color cast problems.
[0068] In a feasible embodiment, the display screen to be tested is an LED screen to be tested, and the pixel value of each pixel to be tested includes an R component value, a G component value, and a B component value of each pixel to be tested;
[0069] Accordingly, step 103 includes:
[0070] Determine the whole-screen average value of the R component, the whole-screen average value of the G component, and the whole-screen average value of the B component of the LED screen to be tested according to the component values of each pixel to be tested;
[0071] According to the comparison results of the R component value of each pixel to be tested and the average value of the R component of the entire screen, the comparison results of the G component value and the average value of the G component of the entire screen, and the comparison results of the B component value and the average value of the B component of the entire screen, the low-gray display effect test results of the LED screen to be tested under the preset low grayscale parameters are determined.
[0072] The pixel to be tested includes three monochrome lamp beads, so the pixel value of the pixel to be tested includes the RGB component values. Based on the pixel value of the actual image pixel area, the pixel value of the target pixel to be tested in the LED screen to be tested also includes three component values. According to the average of the component values of all the pixel points to be tested, the R component whole screen average, G component whole screen average and B component whole screen average of the LED screen to be tested are determined. Exemplarily, the R, G, and B component values of each pixel to be tested are determined to be R1~Ri, G1~Gi, B1~Bi, respectively, where i represents the number of pixels to be tested. The R1~Ri mean M1 is calculated as the R component whole screen average; the G1~Gi mean M2 is the G component whole screen average; and the B1~Bi mean M3 is the B component whole screen average.
[0073] Determine the difference between the component value of each pixel to be tested and the average value of the component on the entire screen. If the difference between any component value of any pixel to be tested is too large, it means that there is a problem with the display effect of the pixel to be tested under the preset grayscale parameters.
[0074] In a feasible embodiment, the low-gray display effect test result of the LED screen to be tested under the preset low-grayscale parameters is determined according to the comparison result of the R component value of each pixel to be tested with the R component average value of the entire screen, the comparison result of the G component value with the G component average value of the entire screen, and the comparison result of the B component value with the B component average value of the entire screen, including:
[0075] If the difference between the R component value of all the pixels to be tested of the LED screen to be tested and the average value of the R component of the entire screen is within the preset range, the difference between the G component value and the average value of the G component of the entire screen is within the preset range, and the difference between the B component value and the average value of the B component of the entire screen is within the preset range, the low-gray display effect test result of the LED screen to be tested under the preset low grayscale parameters is determined to have passed the test.
[0076] Determine whether the following conditions are met: R1-M1≤Y & R2-M1≤Y…Ri-M1≤Y & G1-M2≤Y & G2-M2≤Y…Gi-M2≤Y & B1-M3≤Y & B2-M3≤Y…Bi-M3≤Y. If all conditions are met, the low-grayscale display effect test result of the LED screen under the preset low-grayscale parameters is determined to have passed. If any of the conditions is not met, the test is determined to have failed. The Y value is within a preset range and can be set according to the product quality level of the LED screen. The smaller the Y value, the higher the display quality level of the LED screen. The specific value is not limited here.
[0077] Optionally, if the test fails under the preset low-grayscale parameters, the display screen has a low-grayscale display problem and further testing is unnecessary. If the test passes under the preset low-grayscale parameters, testing continues, with the sending card continuing to obtain the next preset low-grayscale parameter from the configuration parameter file and continuing to judge the image to be tested for that preset low-grayscale parameter. If the test result for any preset low-grayscale parameter in the configuration parameter file fails, the display screen has a low-grayscale display problem. Only if the test results for all preset low-grayscale parameters in the configuration parameter file pass, is the display screen's low-grayscale display problem correct? When outputting different images to be tested, the correspondence between camera image pixels and small-pitch LED pixels is used to determine the average chromaticity of the LED pixels. The pixel color cast is determined by comparing the difference between the chromaticity components of the LED pixels and the average of the entire screen, allowing the color cast test to be quantified and improving test efficiency and accuracy.
[0078] The embodiment of the present invention maps image pixels to display screen pixels through an image algorithm, and uses the comparison results of the pixel values of each pixel of the display screen and the average value of the entire screen to quantitatively test the low-gray display effect, thereby improving the testing efficiency and accuracy of the low-gray display effect of the display screen.
[0079] Example 2
[0080] Figure 5 This is a schematic diagram of the structure of the test device for the low gray display effect of the display screen in the second embodiment of the present invention. This embodiment is applicable to the low gray effect inspection of small-pitch LED screens in the R&D test stage and the production test stage. Figure 5 As shown, the device includes:
[0081] The test image determination module 510 is used to determine that the image displayed by the test display screen in the preset low grayscale parameter configuration is the test image;
[0082] a pixel value determination module 520 for determining the pixel value of each pixel to be tested in the display screen to be tested according to the pixel values of the image pixels in the image to be tested, based on a pre-established mapping relationship between the image pixels of the image to be tested and the pixel pixels to be tested in the display screen to be tested;
[0083] The display effect test module 530 is used to determine the low gray display effect test result of the display screen to be tested under the preset low gray parameters according to the comparison result of the pixel value of each pixel point to be tested and the average pixel value of the entire screen of the display screen to be tested.
[0084] Optionally, the device includes a mapping relationship establishment module, specifically configured to:
[0085] Determining a display area of the display screen to be tested in the image to be tested as a valid area;
[0086] Determining the regional resolution of the effective area according to the image resolution of the image to be tested;
[0087] Determining, based on a proportional relationship between the regional resolution and the display screen resolution of the display screen to be tested, a theoretical image pixel area in the image to be tested that is mapped to each pixel to be tested in the display screen to be tested;
[0088] Determine the actual pixel luminous range of each pixel to be tested according to the package edge parameters and gap parameters of the display screen to be tested;
[0089] Determine an actual image pixel point area in the theoretical image pixel point area that is mapped to the actual pixel luminous range.
[0090] Optionally, a pixel value determination module includes:
[0091] A pixel mapping unit, configured to determine, based on the mapping relationship, an actual image pixel area in the image to be tested that is mapped to a target pixel to be tested in the display screen to be tested;
[0092] The pixel value determining unit is used to determine the pixel value of the target pixel point to be tested in the display screen to be tested according to the pixel value of the pixel point area of the actual image.
[0093] Optionally, the pixel value determining unit is specifically configured to:
[0094] Dividing the actual image pixel area into at least two sub-areas;
[0095] Sampling the pixels in each sub-region, and taking the average pixel value of the sampled pixels as the pixel value of the sub-region;
[0096] An average of the pixel values of the at least two sub-areas is used as the pixel value of the target pixel to be tested in the display screen to be tested.
[0097] Optionally, the display screen to be tested is an LED screen to be tested, and the pixel value of each pixel to be tested includes an R component value, a G component value, and a B component value of each pixel to be tested;
[0098] Correspondingly, the display effect test module includes:
[0099] A whole-screen mean value determination unit is used to determine the whole-screen mean value of the R component, the whole-screen mean value of the G component, and the whole-screen mean value of the B component of the LED screen to be tested according to the component values of each pixel to be tested;
[0100] The pixel value comparison unit is used to determine the low-gray display effect test result of the LED screen to be tested under the preset low-grayscale parameters based on the comparison result of the R component value of each pixel to be tested and the average value of the R component of the entire screen, the comparison result of the G component value and the average value of the G component of the entire screen, and the comparison result of the B component value and the average value of the B component of the entire screen.
[0101] Optionally, a pixel value comparison unit includes:
[0102] If the difference between the R component value of all the pixels to be tested of the LED screen to be tested and the average value of the R component of the entire screen is within a preset range, the difference between the G component value and the average value of the G component of the entire screen is within a preset range, and the difference between the B component value and the average value of the B component of the entire screen is within a preset range, the low-gray display effect test result of the LED screen to be tested under the preset low-grayscale parameters is determined to be a passed test.
[0103] Optionally, the preset low grayscale parameters are pre-set in a configuration parameter file; wherein the configuration parameter file includes preset low grayscale parameters of at least two low-order grayscale levels;
[0104] Accordingly, the module for determining the image to be tested is specifically used to:
[0105] Read the preset low grayscale parameters in the configuration parameter file in sequence through the sending card;
[0106] Sending the preset low grayscale parameters to a receiving card connected to the sending card;
[0107] Controlling the receiving card connected to the display screen to be tested to display the preset low grayscale parameters;
[0108] An image captured when the display screen to be tested is displayed under a preset low grayscale parameter configuration is determined as the image to be tested.
[0109] The device for testing the low-gray display effect of a display screen provided by an embodiment of the present invention can execute the method for testing the low-gray display effect of a display screen provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method for testing the low-gray display effect of a display screen.
[0110] Example 3
[0111] Figure 6 This is a structural diagram of an electronic device provided in Example 3 of the present invention. Figure 6 A block diagram of an exemplary electronic device 12 suitable for implementing embodiments of the present invention is shown. Figure 6 The electronic device 12 shown is only an example and should not limit the functionality and scope of use of the embodiments of the present invention.
[0112] like Figure 6 As shown, electronic device 12 is implemented as a general-purpose computing device. Components of electronic device 12 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and a bus 18 connecting various system components (including system memory 28 and processing unit 16).
[0113] Bus 18 represents one or more of several types of bus structures, including a storage device bus or storage device controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0114] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0115] The system storage device 28 may include computer system readable media in the form of volatile storage devices, such as random access memory devices (RAM) 30 and / or cache memory devices 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 Not shown, often called a "hard drive"). Although Figure 6Although not shown, a magnetic disk drive for reading and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Storage device 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.
[0116] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in storage device 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 42 generally implement the functions and / or methods of the embodiments described herein.
[0117] The electronic device 12 may also communicate with one or more external devices 14 (e.g., a keyboard, a pointing device, a display 24, etc.), one or more devices that enable a user to interact with the device 12, and / or any device that enables the device 12 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. Figure 6 As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. Figure 6 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0118] The processing unit 16 executes various functional applications and data processing by running programs stored in the system storage device 28, such as implementing the test method for the low-gray display effect of the display screen provided by the embodiment of the present invention, including:
[0119] Determine that the image displayed by the display screen to be tested in a preset low grayscale parameter configuration is the image to be tested;
[0120] Based on a pre-established mapping relationship between image pixels of the image to be tested and pixels to be tested of the display screen to be tested, determining the pixel value of each pixel to be tested in the display screen to be tested according to the pixel values of the image pixels in the image to be tested;
[0121] According to the comparison result of the pixel value of each pixel point to be tested and the average pixel value of the entire screen of the display screen to be tested, the low gray display effect test result of the display screen to be tested under the preset low gray parameter is determined.
[0122] Example 4
[0123] A fourth embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for testing the low-gray display effect of a display screen provided in the embodiment of the present invention is implemented, including:
[0124] Determine that the image displayed by the display screen to be tested in a preset low grayscale parameter configuration is the image to be tested;
[0125] Based on a pre-established mapping relationship between image pixels of the image to be tested and pixels to be tested of the display screen to be tested, determining the pixel value of each pixel to be tested in the display screen to be tested according to the pixel values of the image pixels in the image to be tested;
[0126] According to the comparison result of the pixel value of each pixel point to be tested and the average pixel value of the entire screen of the display screen to be tested, the low gray display effect test result of the display screen to be tested under the preset low gray parameter is determined.
[0127] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or components, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer 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. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by an instruction execution system, device or device or used in combination with it.
[0128] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0129] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0130] The computer program code for performing the operations of the present invention can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0131] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for testing the low-gray display effect of a display screen, characterized in that: include: Determine that the image displayed by the display screen to be tested in a preset low grayscale parameter configuration is the image to be tested; Based on a pre-established mapping relationship between image pixels of the image to be tested and pixels to be tested of the display screen to be tested, determining the pixel value of each pixel to be tested in the display screen to be tested according to the pixel values of the image pixels in the image to be tested; Determining a low-grayscale display effect test result of the display screen to be tested under the preset low-grayscale parameters according to a comparison result of the pixel value of each pixel point to be tested and the average pixel value of the entire screen of the display screen to be tested; The mapping relationship between the image pixels of the image to be tested and the pixels to be tested of the display screen to be tested is established by the following steps: Determining that a display area of the display screen to be tested in the image to be tested is a valid area; the image to be tested includes the display screen to be tested and a shooting background; Determining the regional resolution of the effective area according to the image resolution of the image to be tested; Determining, based on a proportional relationship between the regional resolution and the display screen resolution of the display screen to be tested, a theoretical image pixel area in the image to be tested that is mapped to each pixel to be tested in the display screen to be tested; Determine the actual pixel luminous range of each pixel to be tested according to the package edge parameters and gap parameters of the display screen to be tested; Determine an actual image pixel point area in the theoretical image pixel point area that is mapped to the actual pixel luminous range.
2. The method according to claim 1, characterized in that Based on a pre-established mapping relationship between image pixels of the image to be tested and pixels to be tested of the display screen to be tested, determining the pixel value of each pixel to be tested in the display screen to be tested according to the pixel values of the image pixels in the image to be tested, including: Based on the mapping relationship, determining an actual image pixel area in the image to be tested that is mapped to a target pixel to be tested in the display screen to be tested; The pixel value of the target pixel point to be tested in the display screen to be tested is determined according to the pixel value of the actual image pixel point area.
3. The method according to claim 2, characterized in that Determining the pixel value of the target pixel point to be tested in the display screen to be tested according to the pixel value of the actual image pixel point area includes: Dividing the actual image pixel area into at least two sub-areas; Sampling the pixels in each sub-region, and taking the average pixel value of the sampled pixels as the pixel value of the sub-region; An average of the pixel values of the at least two sub-areas is used as the pixel value of the target pixel to be tested in the display screen to be tested.
4. The method according to claim 1, wherein The display screen to be tested is an LED screen to be tested, and the pixel value of each pixel to be tested includes an R component value, a G component value, and a B component value of each pixel to be tested; Correspondingly, according to the comparison result of the pixel value of each pixel point to be tested and the average pixel value of the entire screen of the display screen to be tested, the low-gray display effect test result of the display screen to be tested under the preset low-grayscale parameters is determined, including: Determine the whole-screen mean value of the R component, the whole-screen mean value of the G component, and the whole-screen mean value of the B component of the LED screen to be tested according to the component values of each pixel to be tested; According to the comparison results of the R component value of each pixel to be tested and the average value of the R component of the entire screen, the comparison results of the G component value and the average value of the G component of the entire screen, and the comparison results of the B component value and the average value of the B component of the entire screen, the low-gray display effect test results of the LED screen to be tested under the preset low-grayscale parameters are determined.
5. The method according to claim 4, characterized in that Determining a low-gray display effect test result of the LED screen to be tested under the preset low-grayscale parameters according to a comparison result of the R component value of each pixel to be tested with the R component whole-screen average value, a comparison result of the G component value with the G component whole-screen average value, and a comparison result of the B component value with the B component whole-screen average value, including: If the difference between the R component value of all the pixels to be tested of the LED screen to be tested and the average value of the R component of the entire screen is within a preset range, the difference between the G component value and the average value of the G component of the entire screen is within a preset range, and the difference between the B component value and the average value of the B component of the entire screen is within a preset range, the low-gray display effect test result of the LED screen to be tested under the preset low-grayscale parameters is determined to be a passed test.
6. The method according to claim 1, characterized in that The preset low grayscale parameters are pre-set in a configuration parameter file; wherein the configuration parameter file includes preset low grayscale parameters of at least two low-order grayscale levels; Accordingly, determining that the image displayed by the display screen to be tested in the preset low grayscale parameter configuration is the image to be tested includes: Read the preset low grayscale parameters in the configuration parameter file in sequence through the sending card; Sending the preset low grayscale parameters to a receiving card connected to the sending card; Controlling the receiving card connected to the display screen to be tested to display the preset low grayscale parameters; An image captured when the display screen to be tested is displayed under a preset low grayscale parameter configuration is determined as the image to be tested.
7. A device for testing the low-gray display effect of a display screen, characterized in that: include: A module for determining an image to be tested, configured to determine that an image displayed by the display screen to be tested in a preset low grayscale parameter configuration is an image to be tested; a pixel value determination module, configured to determine the pixel value of each pixel to be tested in the display screen to be tested according to the pixel values of the image pixels in the image to be tested, based on a pre-established mapping relationship between the image pixels of the image to be tested and the pixel pixels to be tested in the display screen to be tested; A display effect testing module, configured to determine a low-gray display effect test result of the display screen to be tested under the preset low-grayscale parameters based on a comparison result of the pixel value of each pixel point to be tested and an average pixel value of the entire screen of the display screen to be tested; The mapping relationship between the image pixels of the image to be tested and the pixels to be tested of the display screen to be tested is established by the following steps: Determining that a display area of the display screen to be tested in the image to be tested is a valid area; the image to be tested includes the display screen to be tested and a shooting background; Determining the regional resolution of the effective area according to the image resolution of the image to be tested; Determining, based on a proportional relationship between the regional resolution and the display screen resolution of the display screen to be tested, a theoretical image pixel area in the image to be tested that is mapped to each pixel to be tested in the display screen to be tested; Determine the actual pixel luminous range of each pixel to be tested according to the package edge parameters and gap parameters of the display screen to be tested; Determine an actual image pixel point area in the theoretical image pixel point area that is mapped to the actual pixel luminous range.
8. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method for testing the low-gray display effect of a display screen as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for testing the low-gray display effect of a display screen as claimed in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Detection system, method and device and computer readable storage medium
CN109872309A