Screen brightness uniformity detection method and detection equipment

By acquiring the screen grayscale image of the screen and calculating the brightness uniformity, the problem of difficulty in objectively detecting the screen brightness uniformity in the prior art is solved, and more accurate detection and more stable visual performance are achieved.

CN118762626BActive Publication Date: 2025-02-07HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411245380.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2025-02-07
Estimated Expiration
2044-09-06

AI Technical Summary

Technical Problem

The prior art is difficult to objectively and accurately detect the brightness uniformity of the screen, resulting in poor visual performance.

Method used

By acquiring the screen grayscale image of the screen, determining the brightness maximum and minimum values ​​based on at least two sampled images, calculating the brightness uniformity, and comparing it with the uniformity detection threshold, the brightness uniformity of the screen area is determined.

Benefits of technology

It realizes more objective and accurate detection of screen brightness uniformity, reduces dependence on detectors, and improves the stability of visual performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762626B_ABST
    Figure CN118762626B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a method and a device for detecting the brightness uniformity of a screen. In the method, after determining the grayscale image of the screen to be tested, the detection device can determine the screen area image to be tested through the grayscale image of the screen to be tested. The screen area image to be tested can be a partial screen grayscale image to be tested or the entire screen grayscale image to be tested. The detection device determines the brightness uniformity of the screen area image to be tested. Then, the brightness uniformity is compared with a uniformity detection threshold to determine the brightness uniformity of the screen area corresponding to the screen area image to be tested. The implementation of the technical solution provided by the present application can make the brightness uniformity detection of the screen more objective and reduce the dependence on detection personnel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminals, and in particular to a method and device for detecting brightness uniformity of a screen. Background Art

[0002] The brightness uniformity of the screen in electronic devices (such as mobile phones, tablets, etc.) indicates whether the brightness of the screen is uniform when the screen displays images of the same color (such as a full white image), that is, whether the white reflected by the pixels in each area of ​​the screen is consistent. If the brightness of the screen is uniform, it means that the brightness of the pixels in each area of ​​the screen is consistent, which can provide a more stable visual performance. If the brightness of the screen is uneven, it means that the brightness of the pixels in different areas of the screen is inconsistent, which will cause poor visual performance.

[0003] Therefore, it is worth discussing to test the brightness uniformity of the screen and determine the brightness uniformity of the screen. Summary of the invention

[0004] The present application provides a method and a device for detecting the brightness uniformity of a screen, which are used to optimize the process of detecting the brightness uniformity of a screen.

[0005] In a first aspect, the present application provides a method for detecting brightness uniformity of a screen, which is applied to a detection device, wherein the detection device is used to detect the brightness uniformity of a first screen, the method comprising: acquiring a screen grayscale image of the first screen; the screen grayscale image of the first screen is obtained by photographing the first screen when displaying the first image; based on at least two sampled images in the first screen area image, determining a maximum brightness value and a minimum brightness value corresponding to the first screen area image; the first screen area image includes part or all of the screen grayscale image of the first screen; the maximum brightness value corresponding to the first screen area image indicates the maximum brightness value of at least two sampled images in the first screen area image, and the minimum brightness value corresponding to the first screen area image indicates the minimum brightness value of at least two sampled images in the first screen area image; based on the first screen area image The brightness uniformity of the first screen area image is determined based on the difference between the corresponding maximum brightness value and the corresponding minimum brightness value of the first screen area image; the brightness uniformity of the screen area corresponding to the first screen area image is determined based on the brightness uniformity of the first screen area image and the uniformity detection threshold; the uniformity detection threshold is determined based on the sample screen displaying the first image, and is used to indicate the brightness uniformity of the second screen area image in the screen grayscale image of the sample screen; when the first screen area image includes a part of the screen grayscale image of the first screen, the position of the second screen area image in the screen grayscale image of the sample screen is the same as the position of the first screen area image in the screen grayscale image of the first screen, and when the first screen area image includes the entire screen grayscale image of the first screen, the second screen area image is the screen grayscale image of the sample screen.

[0006] In the above embodiment, the first screen can be regarded as the screen to be tested involved in the following embodiments. When the first screen area image includes part of the screen grayscale image of the first screen, a local brightness uniformity test is performed on the first screen. When the first screen area image includes the entire screen grayscale image of the first screen, a global brightness uniformity test is performed on the first screen. The brightness uniformity of the first screen area image is compared with the uniformity detection threshold to determine the brightness uniformity of the screen area corresponding to the first screen area image. This can make the brightness uniformity test of the screen more objective and reduce the dependence on the detection personnel.

[0007] In combination with the first aspect, in some embodiments, obtaining the screen grayscale image of the first screen specifically includes: obtaining screen brightness data when the first screen displays the first image, the screen brightness data being obtained by photographing the first screen with a camera when displaying the first image, including light intensity information collected by each pixel unit in the camera when shooting; converting the light intensity information in the screen brightness data into a grayscale image; and determining the image in the area where the first screen is located in the grayscale image as the screen grayscale image of the first screen.

[0008] In the above embodiment, there may be an interference picture in the grayscale image, so that in addition to the brightness of the screen to be tested, the interference picture also has brightness in the grayscale image. The image in the area where the first screen is located in the grayscale image is determined as the screen grayscale image of the first screen, which can eliminate the interference. For a description of this part, please refer to the following Figure 3 shown.

[0009] In combination with the first aspect, in some embodiments, the brightness uniformity of the first screen area image is determined based on the difference between the maximum brightness value corresponding to the first screen area image and the minimum brightness value corresponding to the first screen area image, specifically including: obtaining the brightness uniformity of the first screen area image by dividing the minimum brightness value corresponding to the first screen area image by the maximum brightness value corresponding to the screen area image; determining the brightness uniformity of the screen area corresponding to the first screen area image based on the brightness uniformity of the first screen area image and a uniformity detection threshold, specifically including: when the brightness uniformity of the first screen area image is greater than the uniformity detection threshold, determining that the brightness of the screen area corresponding to the first screen area image is uniform; when the brightness uniformity of the first screen area image is less than the uniformity detection threshold, determining that the brightness of the screen area corresponding to the first screen area image is uneven.

[0010] In combination with the first aspect, in some embodiments, the method also includes: using the screen grayscale image of the first screen as the first screen area image, or dividing the screen grayscale image of the first screen into M rows by N columns of screen area images, each screen area image in the M rows by N columns of screen area images is individually the first screen area image; and both M and N are integers greater than 1.

[0011] In the above embodiment, the M rows by N columns of screen area images can be regarded as the M rows by N columns of sub-screen grayscale images involved in the following implementation. In order to make the detection result more reliable, the M rows by N columns of screen area images need to be uniform, that is, the screen grayscale image of the first screen is evenly divided into M rows by N columns of screen area images.

[0012] In combination with the first aspect, in some embodiments, when each of the M rows by N columns of screen area images is the first screen area image individually, the method further includes: when the M rows by N columns of screen area images corresponding to the M rows by N columns of screen area images have uniform brightness, determining that the brightness of the screen is uniform; when there is a first screen area image with uneven brightness among the M rows by N columns of screen area images, determining that the brightness of the screen is uneven; and the brightness of the screen area corresponding to the first screen area image with uneven brightness is uneven.

[0013] In combination with the first aspect, in some embodiments, when the screen grayscale image of the first screen is used as the first screen area image, before determining the brightness uniformity of the screen area corresponding to the first screen area image, the method also includes: uniformly dividing the screen grayscale image of the sample screen into at least two screen area images; determining a uniformity detection threshold by the average value of the brightness uniformity of the at least two screen area images; the uniformity detection threshold is used to indicate the brightness uniformity of the screen grayscale image of the sample screen; the brightness uniformity of a single screen area image in the at least two screen area images is determined by the maximum brightness and minimum brightness corresponding to the single screen area image; the maximum brightness corresponding to the single screen area image indicates the maximum value of the brightness of at least two sampled images in the single screen area image, and the minimum brightness corresponding to the single screen area image indicates the minimum value of the brightness of at least two sampled images in the single screen area image.

[0014] In the above embodiment, when the screen grayscale image of the first screen is used as the first screen area image, the uniformity detection threshold is the uniformity detection threshold b involved in the following embodiment. The process of determining the uniformity detection threshold by the average value of the brightness uniformity of the at least two screen area images can refer to the following formula (6), which can make the uniformity detection threshold more representative.

[0015] In combination with the first aspect, in some embodiments, when the screen grayscale image of the first screen is used as the first screen area image, before determining the brightness uniformity of the screen area corresponding to the first screen area image, the method also includes: determining at least two sampling images in the screen grayscale image of the sample screen; determining a uniformity detection threshold based on the ratio of the minimum brightness value to the maximum brightness value corresponding to the screen grayscale image of the sample screen; the uniformity detection threshold is used to indicate the brightness uniformity of the screen grayscale image of the sample screen; the minimum brightness value corresponding to the screen grayscale image of the sample screen indicates the minimum value of the brightness of at least two sampling images in the screen grayscale image of the sample screen; the maximum brightness value corresponding to the screen grayscale image of the sample screen indicates the maximum value of the brightness of at least two sampling images in the screen grayscale image of the sample screen.

[0016] In the above embodiment, when the screen grayscale image of the first screen is used as the first screen area image, the uniformity detection threshold is the uniformity detection threshold b involved in the following embodiment.

[0017] In combination with the first aspect, in some embodiments, before determining the brightness uniformity of the screen area corresponding to the first screen area image, the method also includes: determining at least two sampled images in the second screen area image; determining a uniformity detection threshold based on the ratio of the minimum brightness value to the maximum brightness value corresponding to the second screen area image; the uniformity detection threshold is used to indicate the brightness uniformity of the second screen area image; the minimum brightness value corresponding to the second screen area image indicates the minimum value of the brightness of at least two sampled images in the second screen area image; the maximum brightness value corresponding to the second screen area image indicates the maximum value of the brightness of at least two sampled images in the second screen area image.

[0018] In the above embodiment, when each of the M rows by N columns of screen area images is individually a first screen area image, the uniformity check threshold may be the uniformity detection threshold a mentioned below.

[0019] In combination with the first aspect, in some embodiments, the shape of the sampled image is a circular image.

[0020] In the above embodiment, in the circular sampling image, starting from the center of the sampling image, the pixel points in all directions are evenly arranged, which is conducive to determining a more accurate brightness uniformity.

[0021] In combination with the first aspect, in some embodiments, the arrangement of the sampling images in the screen grayscale image of the first screen is the same as the arrangement of the sampling images in the screen grayscale image of the sample screen, the screen grayscale image of the first screen includes T rows by H columns of sampling images, the first-category sampling images on the same row are aligned, and the non-first-category sampling images on the same row are aligned; the first-category sampling images belong to the first-category screen area images, and the first-category screen area images indicate the top corners of the first screen; the non-first-category sampling images include the second-category sampling images and the non-second-category sampling images The second type of sampling images belongs to the second type of screen area images, and the second type of screen area images indicates the non-display area of ​​the first screen; the first type of sampling images on the same column are aligned and arranged, the second type of sampling images on the same column are aligned and arranged, and the non-second type of sampling images on the same column are aligned; when the screen grayscale image of the first screen is divided into M rows by N columns of screen area images, the sampling images in the screen grayscale image of the first screen are correspondingly divided into M rows by N columns of screen area images; T is an integer greater than 2M, and H is an integer greater than 2N.

[0022] The sampling method involved in the above embodiment can refer to the following Figure 4 As shown in (2), the four top corners and non-display area (i.e., bangs area) of the screen to be tested can be avoided during sampling.

[0023] In a second aspect, an embodiment of the present application provides a detection device, which includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the detection device to execute the method implemented in the first aspect.

[0024] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a detection device, enable the detection device to execute the method implemented in the first aspect.

[0025] In a fourth aspect, an embodiment of the present application provides a chip system, which is applied to a detection device. The chip system includes one or more processors, and the processor is used to call computer instructions so that the detection device executes the method implemented in the first aspect.

[0026] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a detection device, enables the detection device to execute the method implemented in the first aspect.

[0027] It is understandable that the detection device provided in the second aspect, the computer storage medium provided in the third aspect, the chip system provided in the fourth aspect, and the computer program product provided in the fifth aspect are all used to execute the method provided in the embodiment of the present application. Therefore, other beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 An exemplary scene graph involved in acquiring a screen grayscale image is shown;

[0029] Figure 2 An exemplary flow chart involved in implementing a method for detecting brightness uniformity of a screen is shown;

[0030] Figure 3 A schematic diagram is shown for determining the grayscale image of the screen to be tested;

[0031] Figure 4 Schematic diagram of dividing and sampling the grayscale image of the screen to be tested is shown in FIG.

[0032] Figure 5A schematic diagram is shown for setting sampling parameters of a detection device;

[0033] Figure 6 A schematic diagram showing a sample screen grayscale image is shown;

[0034] Fig. 7A A schematic diagram of detecting the sampling results is shown in FIG.

[0035] Figure 7B , a schematic diagram of the simulation of the coincidence obtained when the sampling results are tested is shown;

[0036] Figure 8 A schematic diagram is shown when there is an abnormality in the brightness of the sampled image;

[0037] Fig. 9 An exemplary flow chart for obtaining a sample database is shown;

[0038] Fig.10 It is a schematic diagram of the structure of the detection device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0039] In a method for testing the brightness uniformity of a screen, a tester selects a sample screen as a reference, compares the screen to be tested when displaying an image (screen 1) with the screen to be tested when displaying an image (screen 2), and if it is determined that screen 1 has an area with different brightness performance compared to screen 2, then the brightness of the screen area corresponding to the area (in screen 1) is uneven. If it is determined that the brightness performance of screen 1 is the same as that of screen 2, then the brightness of the screen to be tested is determined to be uniform.

[0040] The screen image when the screen to be tested displays an image can also be referred to as the screen grayscale image of the screen to be tested. The screen image when the sample screen displays an image can also be referred to as the screen grayscale image of the sample screen. The screen grayscale image of a screen is obtained by photographing the screen when displaying an image. The screen grayscale image of a screen can be used to describe the brightness uniformity of the screen when displaying an image.

[0041] It should be noted that the sample screen can be a screen of the same model as the screen to be tested. After screening by professionals, a screen with good workmanship and good brightness performance can be selected as the sample screen. The screen to be tested and the sample screen need to display the same image. Generally speaking, the pixel value of each pixel in the image is the same, so that the expected brightness generated by each pixel in the screen when displayed is the same, so that the comparison result is accurate.

[0042] In the following text, for the convenience of description, the screen grayscale image of the screen to be tested is referred to as the screen grayscale image to be tested, and the screen grayscale image of the sample screen is referred to as the sample screen grayscale image.

[0043] In a possible implementation, a special camera (such as a CX-50C camera) can be used to shoot the screen to be tested when displaying an image to obtain a grayscale image of the screen to be tested, and to shoot a sample screen when displaying an image to obtain a sample screen grayscale image. Here, obtaining a grayscale image of the screen to be tested is used as an example for explanation. The process of obtaining a sample screen grayscale image can refer to the relevant description and will not be repeated here.

[0044] For more information on obtaining the grayscale image of the screen to be tested, please refer to Figure 1 .

[0045] like Figure 1 As shown, the screen to be tested is placed in the device to be tested, and the detection device is connected to the camera. When the screen to be tested displays an image, the screen to be tested is photographed by the camera to capture the screen brightness data of the screen to be tested. Then, the detection device receives the screen brightness data transmitted by the camera. The screen brightness data includes the light intensity information collected by each pixel unit in the camera. The unit of light intensity is candela per square meter (cd / m2).

[0046] Subsequently, the detection device converts the light intensity information in the screen brightness data into a grayscale image (refer to Figure 1 Then, the image in the area where the screen to be tested is located in the grayscale image is used to determine the grayscale image of the screen to be tested.

[0047] Among them, each pixel in the grayscale image can correspond to each pixel unit in the camera one by one, and the grayscale value corresponding to a pixel in the grayscale image is obtained by converting the light intensity information of the pixel unit corresponding to the pixel. The grayscale value is usually between 0 and 255, where 0 represents black, 255 represents white, and the remaining values ​​represent different degrees of gray. The smaller the grayscale value of a pixel, the darker the pixel will be when displayed. This also means that the brightness of the screen area corresponding to the pixel is darker. When the screen area corresponding to a pixel is extremely small, it is difficult to observe its brightness through the human eye, but it can be determined using a camera.

[0048] It should be noted here that Figure 1 The connection between the detection device and the camera is optional. In actual situations, the camera can also be set in the detection device as the camera of the detection device. As long as the detection device can obtain the data collected by the camera. And, Figure 1 The detection device and the camera shown in the figure can be connected via a data cable connection or a network connection, and the embodiments of the present application are not limited to this.

[0049] It should also be noted that when the camera is a CX-50C camera, the detection device can be referred to as a CX-50C device.

[0050] In the above method, whether the brightness uniformity of the screen to be tested is good or not depends on the observation of the tester, which is usually subjective and not objective enough.

[0051] In addition, when the brightness of the images displayed on the screen to be tested and the sample screen is very low, for example, close to black or a black image, it is difficult for the tester to observe the areas with different brightness in the grayscale image of the screen to be tested and the grayscale image of the sample screen.

[0052] The scene in which the brightness of the images displayed on the screen to be tested and the sample screen is very low can be referred to as a low-brightness and low-grayscale detection scene.

[0053] In order to solve the problems involved in the aforementioned method, another method for detecting the brightness uniformity of the screen is proposed, which can make the brightness uniformity detection of the screen more objective and reduce the dependence on the detection personnel. In this method, after determining the screen grayscale image of the screen to be tested (the grayscale image of the screen to be tested), the detection device can determine the screen area image to be tested through the screen grayscale image to be tested, and the screen area image to be tested can be a part of the screen grayscale image to be tested or the entire screen grayscale image to be tested. The detection device determines the brightness uniformity of the screen area image to be tested. Then, the brightness uniformity is compared with the uniformity detection threshold to determine the brightness uniformity of the screen area to be tested (referred to as the screen area for short) corresponding to the screen area image to be tested.

[0054] Wherein, the process of determining the brightness uniformity of the screen area image to be tested includes: determining the maximum brightness value and the minimum brightness value corresponding to the screen area image to be tested based on at least two sampled images in the screen area image to be tested. Determine the difference between the maximum brightness value and the minimum brightness value, and use the difference as the brightness uniformity of the screen area image to be tested, or use the difference as the brightness uniformity of the screen area image to be tested by rounding up or rounding down. The maximum brightness value corresponding to the screen area image to be tested is the maximum value of the brightness of at least two sampled images in the screen area image to be tested. The minimum brightness value corresponding to the screen area image to be tested is the minimum value of the brightness of at least two sampled images in the screen area image to be tested. A sampled image in the screen area image to be tested refers to a local image sampled from the screen area image to be tested, which is used to represent the local brightness in the screen area image to be tested.

[0055] In some possible implementations (implementation 1), the difference between the maximum brightness and the minimum brightness can be expressed as: the ratio of the minimum brightness to the maximum brightness. The larger the ratio, the more uniform the brightness of the screen area to be tested corresponding to the screen area image to be tested.

[0056] In implementation mode 1, the process of comparing the brightness uniformity with the uniformity detection threshold to determine the brightness uniformity of the screen area to be tested corresponding to the screen area image to be tested may include: when the brightness uniformity of the screen area image to be tested is greater than the uniformity detection threshold, determining that the brightness of the screen area corresponding to the screen area image to be tested is uniform. When the brightness uniformity of the screen area image to be tested is less than or equal to the uniformity detection threshold, determining that the brightness of the screen area corresponding to the screen area image to be tested is non-uniform.

[0057] The difference between the maximum brightness value and the minimum brightness value is not limited to the ratio of the minimum brightness value divided by the maximum brightness value. The difference between the maximum brightness value and the minimum brightness value can also be expressed in other ways. For example, in some other implementations (implementation 2), the difference between the maximum brightness value and the minimum brightness value can also be expressed as: the difference between the maximum brightness value and the minimum brightness value. The smaller the difference, the more uniform the brightness of the screen area to be tested corresponding to the screen area image to be tested.

[0058] In implementation mode 2, the process of comparing the brightness uniformity with the uniformity detection threshold to determine the brightness uniformity of the screen area to be tested corresponding to the screen area image to be tested may include: when the brightness uniformity of the screen area image to be tested is less than the uniformity detection threshold, determining that the brightness of the screen area corresponding to the screen area image to be tested is uniform. When the brightness uniformity of the screen area image to be tested is greater than or equal to the uniformity detection threshold, determining that the brightness of the screen area corresponding to the screen area image to be tested is non-uniform.

[0059] The uniformity detection threshold is used to indicate the brightness uniformity of the sample screen area image. The uniformity detection threshold is determined according to the sample screen when displaying the image. When the screen area image to be tested includes part of the screen grayscale image to be tested, the position of the sample screen area image in the sample screen grayscale image is the same as the position of the screen area image to be tested in the screen grayscale image to be tested. When the screen area image to be tested includes the entire screen grayscale image to be tested, that is, when the screen area image to be tested is the screen grayscale image to be tested, the sample screen area image is the sample screen grayscale image.

[0060] In some possible implementations, the method for determining the uniformity detection threshold may be similar to the method for determining the brightness uniformity of the screen area image to be tested. For example, the brightness uniformity of the sample screen area image is determined by the difference between the maximum brightness and the minimum brightness corresponding to the sample screen area image, and then the uniformity detection threshold is determined based on the brightness uniformity of the sample screen area image. The maximum brightness corresponding to the sample screen area image is the maximum value of the brightness of at least two sampled images in the sample screen area image. The minimum brightness corresponding to the sample screen area image is the minimum value of the brightness of at least two sampled images in the sample screen area image. A sampled image in the sample screen area image refers to a local image sampled from the sample screen area image, which is used to represent the local brightness in the sample screen area image.

[0061] Regarding the brightness uniformity of the screen to be tested, it should be noted that when the screen area image to be tested is a grayscale image of the screen to be tested, the screen area to be tested corresponding to the screen area image to be tested is the entire screen to be tested. If the brightness of the screen area to be tested corresponding to the screen area image to be tested is uniform, it means that the brightness of the screen to be tested is uniform, and the uniform brightness at this time is the uniform brightness of the entire screen to be tested. If the brightness of the screen area to be tested corresponding to the screen area image to be tested is uneven, it means that the brightness of the screen to be tested is uneven, and the uneven brightness at this time is the uneven brightness of the entire screen to be tested.

[0062] When the screen area image to be tested includes part of the grayscale image of the screen to be tested, if the brightness of the screen area to be tested corresponding to the screen area image to be tested is uneven, it can also be said that the brightness of the screen to be tested is uneven. The detection device can divide the screen grayscale image into M rows by N columns of sub-screen grayscale images, and each sub-screen grayscale image can be individually regarded as the aforementioned screen area image to be tested. If the screen areas to be tested corresponding to the M rows by N columns of sub-screen grayscale images are all uniform in brightness, it can be determined that the brightness of the screen to be tested is uniform. If there are sub-screen grayscale images with uneven brightness in the M rows by N columns of sub-screen grayscale images, it is determined that the brightness of the screen to be tested is uneven. Among them, the screen area to be tested corresponding to the sub-screen grayscale images with uneven brightness is uneven. Among them, M and N are both integers greater than 1, M and N can be the same or different, and the embodiments of the present application are not limited to this.

[0063] Based on the above content, it can be known that through this other screen brightness uniformity detection method, the detection device can use the entire screen grayscale image to be tested as the screen area image to be tested, and perform a global brightness uniformity detection on the screen to be tested. It is also possible to divide the screen grayscale image to be tested into M rows by N columns of sub-screen grayscale images, and use each sub-screen grayscale image as a separate screen area image to be tested, and perform a local brightness uniformity detection on the screen to be tested. The relevant content involved in implementing the screen brightness uniformity detection method can be referred to the following Figure 2 Description of steps S101 to S107 in .

[0064] S101. The detection device obtains screen brightness data of the screen to be tested.

[0065] The detection device can obtain the screen brightness data of the screen to be tested by photographing the screen to be tested when displaying the image through the camera. The screen brightness data includes the light intensity information collected by each pixel unit in the camera. For other descriptions of the screen brightness data, please refer to the aforementioned related content, which will not be repeated here.

[0066] S102. The detection device obtains a grayscale image based on the screen brightness data.

[0067] The detection device converts the light intensity information of each pixel unit in the screen brightness data into the grayscale value of each pixel point to obtain a grayscale image. Each pixel point in the grayscale image can correspond to each pixel unit in the camera one by one. For the description of the grayscale value, please refer to the above related content and will not be repeated here.

[0068] S103. The detection device determines a grayscale image of the screen to be tested based on the grayscale image.

[0069] The detection device identifies the image in the area where the screen to be tested is located in the grayscale image as the grayscale image of the screen to be tested.

[0070] like Figure 3 As shown in (1), there may be interference images in the grayscale image, so that in addition to the brightness of the screen to be tested, the interference images also have brightness in the grayscale image. The reasons for the generation of interference images include but are not limited to: when the screen to be tested is photographed by a camera, there may be interference signals, or there are luminous impurities around the screen to be tested.

[0071] like Figure 3 At the white dotted line shown in (2), the grayscale image of the screen to be tested includes the image in the area where the screen to be tested is located, which can be understood as the smallest rectangular area including the screen to be tested. Using the grayscale image of the screen to be tested to perform screen brightness uniformity detection can eliminate the influence of interference images on the screen brightness uniformity detection.

[0072] Methods for determining the grayscale image of the screen to be tested include but are not limited to the following two determination methods.

[0073] Determination method 1. Binarize the grayscale image to determine the target pixels and non-target pixels. The target pixel is the pixel whose grayscale value is greater than the preset grayscale value in the grayscale image after binarization, which means that the target pixel is not a black pixel and has brightness. The non-target pixel is the pixel whose grayscale value is less than the preset grayscale value in the grayscale image after binarization, which means that the non-target pixel can be a black pixel.

[0074] Then, the detection device removes the non-target area in the grayscale image. The non-target area includes connected target pixels, but the number of target pixels is less than a preset number (e.g., 100). Then, the area where the minimum bounding rectangle is located is identified as the area where the screen to be tested is located, and the image in the area where the minimum bounding rectangle is located is used as the grayscale image of the screen to be tested. The minimum bounding rectangle includes all target pixels in the grayscale image that have not been removed.

[0075] In some possible cases, the detection device can use the Ostu method to binarize the grayscale image.

[0076] Determination method 2: The detection device can identify the largest area composed of connected target pixels in the grayscale image as the area where the screen to be tested is located, and use the image in the largest area as the grayscale image of the screen to be tested. Connectivity is used to indicate that non-target pixels are not included between adjacent target pixels, and non-target pixels are black pixels in the grayscale image.

[0077] For the grayscale image of the screen to be tested, the operations shown in the following steps S104 to S107 are performed to achieve brightness uniformity detection of the screen.

[0078] S104. The detection device evenly divides the screen grayscale image to be tested into a plurality of sub-screen grayscale images.

[0079] This step S104 is optional.

[0080] The detection device divides the screen grayscale image to be tested into M rows by N columns of sub-screen grayscale images, where M and N are both integers greater than 1.

[0081] like Figure 4 As shown in (1), the screen grayscale image to be tested is divided into 3 rows and 5 columns of sub-screen grayscale images. The 15 sub-screen grayscale images are labeled as (1,1), (1,2), ..., (3,4), (3,5) in sequence. Among them, the sub-screen grayscale image in the kth row and the uth column is labeled as (k,u).

[0082] S105. The detection device determines a plurality of evenly arranged sampling images in the grayscale image of the screen to be tested, and the sampling images are evenly divided into a plurality of sub-screen grayscale images.

[0083] In step S105, the sampled image is evenly divided into a plurality of sub-screen grayscale images when step S104 is executed.

[0084] The detection device determines a plurality of evenly arranged sampling images in the grayscale image of the screen to be tested, for example, T rows by H columns of sampling images, where T is an integer greater than 2M and H is an integer greater than 2N.

[0085] When step S104 is executed, it can also be described as: the detection device determines at least two sampling images in each sub-screen grayscale image, for example, R rows by C columns of sampling images, R is T / M, and C is H / N.

[0086] like Figure 4 As shown in (2), the detection device determines 15 rows by 20 columns of sampled images in the grayscale image of the screen to be tested. Each sub-screen grayscale image includes 5 rows by 4 columns of sampled images.

[0087] When determining the sampled image, the detection device needs to avoid the non-display area of ​​the detection device and the area including the top corner of the screen in the grayscale image of the screen to be tested, but the T rows by H columns of sampled images are still uniform as a whole. The T rows by H columns of sampled images meet the preset arrangement rules, such as Figure 4 As shown in (2), in the T rows by H columns of sampled images, the first-category sampled images on the same row are aligned, and the non-first-category sampled images on the same row are aligned. The non-first-category sampled images include second-category sampled images and non-second-category sampled images. The first-category sampled images on the same column are aligned, the second-category sampled images on the same column are aligned, and the non-second-category sampled images on the same column are aligned. The first-category sampled images belong to the first-category screen area images, which describe the top corners of the screen to be tested, such as the sampled images in the sub-screen grayscale image (1,1), the sub-screen grayscale image (1,5), the sub-screen grayscale image (3,1), and the sub-screen grayscale image (3,5). The second-category sampled images belong to the second-category screen area images, which describe the non-display area (also called the bangs area) of the screen to be tested, such as the sampled images in the sub-screen grayscale image (2,5).

[0088] In some possible implementations, the detection device includes a configuration file for performing brightness uniformity detection. The configuration file can be used to determine sampling parameters for determining a sampled image in the grayscale image of the screen to be tested. The sampling parameters are used to determine a sampling position in the grayscale image of the screen to be tested to obtain a sampled image.

[0089] The detection device can display the sampling setting interface based on the configuration file, such as Figure 5As shown in (1), it is an exemplary sampling setting interface, and the sampling setting interface may include sampling parameters. Through the sampling setting interface, the value of the sampling parameter can be set. In some possible cases, the sampling parameter is one or more of the following parameters: left margin (val_left), top margin (val_top), right margin (val_right), bottom margin (val_bottom), number of segmentation rows (val_seg_row), number of segmentation columns (val_seg_col), number of sampling rows (val_sample_row), number of sampling columns (val_sample_col), sampling diameter (val_diameter), non-display area width (val_bangs), non-display area position (str_bangs).

[0090] The left margin indicates the distance (in mm) between the sampling image closest to the upper left corner of the screen to be tested (e.g., sampling image 501) and the sampling image closest to the lower left corner of the screen to be tested (e.g., sampling image 502) and the left border of the screen to be tested. The upper margin indicates the distance (in mm) between the sampling image closest to the upper left corner of the screen to be tested (e.g., sampling image 501) and the sampling image closest to the upper right corner of the screen to be tested (e.g., sampling image 503) and the upper border of the screen to be tested. The right margin indicates the distance (in mm) between the sampling image closest to the upper right corner of the screen to be tested (e.g., sampling image 503) and the sampling image closest to the lower right corner of the screen to be tested (e.g., sampling image 504) and the right border of the screen to be tested. The lower margin indicates the distance (in mm) between the sampling image closest to the lower left corner of the screen to be tested (e.g., sampling image 502) and the sampling image closest to the lower right corner of the screen to be tested (e.g., sampling image 504) and the lower border of the screen to be tested. The number of segmentation rows M and the number of segmentation columns N respectively indicate that the screen grayscale image to be tested is divided into M rows by N columns of sub-screen grayscale images. The number of sampling rows R and the number of sampling columns C respectively indicate that R rows by C columns of sampling images are determined in a sub-screen grayscale image. The sampling diameter indicates the diameter of the sampling image when it is circular. The non-display area width and the non-display area position are used to determine the image where the non-display area in the screen grayscale image to be tested is located.

[0091] like Figure 5 (1) and Figure 5 As shown in (2), in response to an operation on a confirmation control, the detection device can determine a sampled image in the grayscale image of the screen to be tested according to a preset arrangement rule.

[0092] In some possible cases, in addition to the aforementioned sampling parameters, the configuration file may also include other parameters for detecting brightness uniformity, for example, a uniformity detection threshold (val_threshod) involved in performing overall brightness uniformity detection.

[0093] The sampling parameters mentioned above are for illustration only. In fact, the sampling parameters may also have other expressions and can be used to determine the sampling image in the grayscale image of the screen to be tested. They should not constitute a limitation on the embodiments of the present application.

[0094] S106. Determine whether the brightness of the screen area corresponding to each sub-screen grayscale image is uniform based on the sampling images included in each sub-screen grayscale image; the uniform brightness of the screen area corresponding to a sub-screen grayscale image indicates that the difference between the darkest sampling image and the brightest sampling image in the sub-screen grayscale image is less than the uniformity detection threshold a.

[0095] Step S106 is used to perform a local brightness uniformity test on the screen to be tested.

[0096] The difference between the darkest sampled image and the brightest sampled image in a sub-screen grayscale image can be understood as the difference between the maximum brightness and the minimum brightness corresponding to the sub-screen grayscale image. It is used to determine the brightness uniformity of the sub-screen grayscale image. A sub-screen grayscale image can be understood as the aforementioned screen area image to be tested. In step S106, the difference is represented by the ratio of the minimum brightness divided by the maximum brightness as an example for explanation. For other descriptions of the difference and brightness uniformity, please refer to the aforementioned related content and will not be repeated here.

[0097] The detection device can determine whether the brightness of the screen area corresponding to each sub-screen grayscale image is uniform. Here, the determination of whether the brightness of the screen area corresponding to the sub-screen grayscale image in the kth row and the uth column is uniform is used as an example for explanation. The process of determining whether the brightness of the screen area corresponding to other sub-screen grayscale images is uniform can refer to the relevant description, which will not be repeated here.

[0098] In the following, for the convenience of description, the sub-screen grayscale image in the kth row and the uth column is referred to as the sub-screen grayscale image (k,u).

[0099] First, the detection device determines the brightness of each sampled image in the sub-screen grayscale image (k, u). The formula for determining the brightness of the sampled image can refer to the following formula (1).

[0100]

[0101] In formula (1), Represents the brightness of the jth sampled image in the i-th row of the sub-screen grayscale image (k,u), Represents the brightness value (i.e. grayscale value) of the f-th pixel in the j-th sampled image in the i-th row. The value range of f is from 1 to n. c .n c Represents the total number of all pixels in the jth sampled image in the i-th row. The value of i ranges from 1 to R, and the value of j ranges from 1 to C.

[0102] Then, determine the maximum brightness and minimum brightness corresponding to the sub-screen grayscale image (k,u). Determine the brightness uniformity of the sub-screen grayscale image (k,u) by the difference between the maximum brightness and the minimum brightness. Then, compare the brightness uniformity with the uniformity detection threshold a corresponding to the sub-screen grayscale image (k,u) to determine whether the brightness of the screen area corresponding to the sub-screen grayscale image (k,u) is uniform. The formulas involved in this process can refer to the following formula (2).

[0103]

[0104] In formula (2), R (k, u) represents the brightness uniformity of the screen area corresponding to the sub-screen grayscale image (k, u), and R (k, u) = Pass, indicating that the brightness of the screen area corresponding to the sub-screen grayscale image (k, u) is uniform. R (k, u) = Failed, indicating that the brightness of the screen area corresponding to the sub-screen grayscale image (k, u) is uneven. thr (a) represents the uniformity detection threshold a corresponding to the sub-screen grayscale image (k, u). thr (a) is determined based on the sample screen. For the process of determining thr (a), please refer to the following description of formula (4). Indicates the minimum brightness value corresponding to the sub-screen grayscale image (k,u), which represents the brightness of the darkest sampled image in the sub-screen grayscale image (k,u). Indicates the maximum brightness value corresponding to the sub-screen grayscale image (k,u), which represents the brightness of the brightest sampled image in the sub-screen grayscale image (k,u). Indicates the difference between the maximum brightness and the minimum brightness corresponding to the sub-screen grayscale image (k,u). Formula (2) takes the difference between the maximum brightness and the minimum brightness as an example of the brightness uniformity of the sub-screen grayscale image (k,u).

[0105] In the above formula (1), the method involved in determining whether a pixel point in the grayscale image of the screen to be tested is a pixel point in the jth sampling image of the i-th row can refer to the following formula (3).

[0106]

[0107] Formula (3) indicates that the pixel points satisfying Formula (3) in the grayscale image of the screen to be tested are the pixel points in the jth sampling image in the i-th row. In Formula (3), as well as They represent the number of pixel rows and the number of pixel columns of the fth pixel in the i-th row and j-th sampled image in the grayscale image of the screen to be tested. It should be noted that all the pixel points included in the grayscale image of the screen to be tested are distributed as rows by cols. The value range is from 1 to any integer in rows. The value range is any integer from 1 to cols. as well as They respectively represent the number of pixel rows of the central pixel point of the jth sampling image in the i-th row in the grayscale image of the screen to be tested and the number of pixel columns in the screen to be tested.

[0108] Regarding the uniformity detection threshold a corresponding to the sub-screen grayscale image (k, u), that is, thr(a) in the above formula (2), the detection device can determine the uniformity detection threshold a through the sample screen area image corresponding to the sub-screen grayscale image (k, u) in the sample screen grayscale image. Figure 6 As shown, the arrangement of each sample screen area image obtained by dividing the sample screen grayscale image is the same as the arrangement of each sub-screen grayscale image obtained by dividing the detection screen grayscale image. The sample screen area image includes M rows by N columns of sample screen area images, and the sample screen area image corresponding to the sub-screen grayscale image (k,u) in the sample screen grayscale image is located in the kth row and uth column of the sample screen grayscale image.

[0109] For the convenience of description, the sample screen area image corresponding to the sub-screen grayscale image (k,u) is recorded as the sample screen area image (k,u). Figure 6 As shown, the sample screen area image (1,1) to the sample screen area image (3,5) correspond to the sub-screen grayscale image (1,1) to the sub-screen grayscale image (3,5) respectively. A uniformity detection threshold a can be determined based on each of the sample screen area image (1,1) to the sample screen area image (3,5). For example, based on the screen area image (1,1), the uniformity detection threshold a can be determined to be 0.93, which is used as the uniformity detection threshold a corresponding to the sub-screen grayscale image (1,1).

[0110] The process of determining the uniformity detection threshold a may refer to the following formula (4).

[0111]

[0112] In formula (4), thr(a) represents the uniformity detection threshold a, floor( ) is the rounding down operation, that is Can express Round down. Indicates the difference between the maximum brightness value and the minimum brightness value corresponding to the sample screen area image (k,u), which can also be understood as the brightness uniformity of the sample screen area image (k,u). The arrangement of the sampled images in the sample screen area image (k,u) is the same as the arrangement of the sampled images in the sub-screen grayscale image (k,u). Determined The process is the same as the process of determining R(k,u). You can refer to the aforementioned process of determining R(k,u) and replace the sub-screen grayscale image (k,u) with the sample screen area image (k,u). This embodiment of the present application will not go into details.

[0113] It should be noted that the rounding down operation in formula (4) is optional. In actual situations, it is also possible to round up or not round up. As thr(a).

[0114] S107. Determine whether the brightness of the screen area corresponding to the grayscale image of the screen to be tested is uniform based on the sampled images included in the grayscale image of the screen to be tested; the uniform brightness of the screen area corresponding to the grayscale image of the screen to be tested indicates that the difference between the darkest sampled image and the brightest sampled image in the grayscale image of the screen to be tested is less than the uniformity detection threshold b.

[0115] Step S107 is used to perform an overall brightness uniformity test on the screen to be tested.

[0116] The difference between the darkest sampled image and the brightest sampled image in the grayscale image of the screen to be tested can be understood as the difference between the maximum brightness and the minimum brightness corresponding to the grayscale image of the screen to be tested. It is used to determine the brightness uniformity of the grayscale image of the screen to be tested. In step S107, the difference is represented by the ratio of the minimum brightness divided by the maximum brightness as an example for explanation. For other descriptions of the difference and brightness uniformity, please refer to the aforementioned related content, which will not be repeated here.

[0117] In the case where step S106 is executed, the distribution of the sampled images in the grayscale image of the screen to be tested in step S107 is the same as the distribution of the sampled images in the grayscale image of the screen to be tested in step S105. After the sampled images are determined in step S105, step S107 can be executed to determine the brightness uniformity of the screen area corresponding to the grayscale image of the screen to be tested. The formula involved in this process can refer to the following formula (5).

[0118]

[0119] In formula (5), P represents the brightness uniformity of the screen area (the entire screen area) corresponding to the grayscale image of the screen to be tested. P = Pass, indicating that the brightness of the screen area (the entire screen area) corresponding to the grayscale image of the screen to be tested is uniform. P = Failed, indicating that the brightness of the screen area corresponding to the grayscale image of the screen to be tested is uneven. Indicates the minimum brightness value corresponding to the grayscale image of the screen to be tested, and represents the brightness of the darkest sampled image in the grayscale image of the screen to be tested. Indicates the maximum brightness value corresponding to the grayscale image of the screen to be tested, and represents the brightness of the brightest sampled image in the grayscale image of the screen to be tested. It represents the difference between the maximum brightness and the minimum brightness corresponding to the grayscale image of the screen to be tested. thr(b) represents the uniformity detection threshold b corresponding to the grayscale image of the screen to be tested. thr(b) is determined based on the sample screen. For the process of determining thr(b), please refer to the description of formula (4) above. The sample screen area image (k,u) can be modified to the grayscale image of the screen to be tested, which will not be repeated here.

[0120] In some other possible cases, in order to make the uniformity detection threshold b more representative, the uniformity detection threshold b may be determined without referring to the aforementioned formula (4). In this case, the uniformity detection threshold b may be determined by using the average value of the brightness uniformity of at least two sample screen area images obtained by dividing the sample screen grayscale image. The description of this process may refer to the following formula (6).

[0121]

[0122] In formula (6), thr(b) represents the uniformity detection threshold b. floor( ) is a rounding down operation, which means Perform a round-down operation.

[0123] In formula (6), M1 and N1 respectively represent that the detection device divides the sample screen into M1 rows by N1 columns of sample screen area images, and both M1 and N1 are integers greater than 1. When step S104 is executed, M1 may be the same as the aforementioned M, and N1 may be the same as the aforementioned N. Indicates the difference between the maximum brightness value and the minimum brightness value corresponding to the sample screen area image (q, s) in the qth row and sth column, which can also be understood as the brightness uniformity of the sample screen area image (q, s). Among them, the value range of q is 1 to M1, and the value range of s is 1 to N1. Determined The process is the same as the process of determining R(k,u). You can refer to the aforementioned process of determining R(k,u) and replace the content related to the sub-screen grayscale image (k,u) with the content related to the sample screen area image (q,s). This embodiment of the present application will not go into details.

[0124] It should be noted that the rounding down operation in formula (6) is optional. In actual situations, it is also possible to round up or not round up. As thr(a).

[0125] It should be noted here that the execution of step S107 is independent of steps S104 to S106. When steps S104 to S106 are executed, the parameters in the relevant formulas in step S107 (such as M1, N1, q, and s, etc.) can be the same as the parameters in the relevant formulas in steps S104 to S106. When steps S104 to S106 are not executed, the parameters in the relevant formulas in step S107 can be set based on actual conditions. This includes the division of the sampled images in the grayscale image of the screen to be tested and the sample screen grayscale image, and the division of the sample screen area image in the sample screen grayscale image. However, the arrangement of the sampled images in the grayscale image of the screen to be tested and the sample screen grayscale image must be the same.

[0126] In some possible cases, the detection equipment can also output brightness uniformity detection results for reference. Taking the case where both local brightness uniformity detection (referred to as local detection) and global brightness uniformity detection (referred to as global detection) are performed as an example, the obtained brightness uniformity detection results can be referred to in the following Table 1.

[0127] Table 1

[0128]

[0129] Table 1 shows Figure 4 When the screen grayscale image to be tested is divided into 15 sub-screen grayscale images, the test results are obtained when the brightness uniformity test is performed based on each sub-screen grayscale image. From the test results, the brightness of the screen area corresponding to the sub-screen grayscale image in the 2nd row and the 5th column is uneven. The brightness of the screen areas corresponding to the other sub-screen grayscale images is uniform, and the brightness of the entire screen is uniform.

[0130] Table 1 is only an example. In actual situations, Table 1 may contain more or less content, for example, it may also include the aforementioned sampling parameters, uniformity detection thresholds, etc., which are not limited in the embodiments of the present application.

[0131] It should be noted here that the uniformity detection thresholds (including uniformity detection threshold a and uniformity detection threshold b) mentioned above can be determined through a sample screen. It can also be determined without a sample screen, and the uniformity detection threshold a and uniformity detection threshold b mentioned above can be the same empirical value, such as 0.9. The uniformity detection threshold a and uniformity detection threshold b mentioned above can be different empirical values, and the determination of the uniformity detection threshold should not be used as a limitation on the embodiments of the present application.

[0132] Based on the above content, it can be known that the arrangement of the sampled images in the grayscale image of the screen to be tested and the sample screen grayscale image must be the same for determining the brightness uniformity. Therefore, it is necessary to verify the accuracy of the detection device in determining the sampled images in the grayscale image of the screen to be tested and the sample screen grayscale image. After the verification is qualified, the detection device can be used to determine the brightness uniformity of the screen.

[0133] like Fig. 7A As shown in (1), there are 135 sample images determined by the detection device in the grayscale image of the screen to be tested. Fig. 7A As shown in (2), there are 135 sample images determined in the grayscale image of the screen to be tested using the point template. Fig. 7A The sampling image shown in (2) is determined by the inspectors to be a uniform sampling image and is accurate. Figure 7B Shows Fig. 7A The 135 sample images shown in (1) and Fig. 7A The coincidence simulation of the 135 sampled images shown in (2) is shown in FIG. If the coincidence simulation is qualified, the brightness uniformity of the screen can be determined by the detection equipment after verification. Otherwise, the process of determining the sampled images by the detection equipment is adjusted, and the coincidence simulation is continued until the coincidence simulation is qualified.

[0134] It should be noted that the brightness uniformity test of the aforementioned screen is described based on one screen to be tested. In actual situations, multiple screens to be tested can be batch tested for brightness uniformity. The uniformity test threshold used can be determined based on one sample screen.

[0135] It should also be noted that after determining the brightness of each sampled image, the detection device can further determine a sampled image with abnormal brightness, so that the brightness of the screen area corresponding to the sampled image is uneven. Figure 8The figure shows the brightness of each sampled image in the sub-screen grayscale image in the screen grayscale image to be tested. Here, we still take the example of dividing the screen grayscale image to be tested into 3 rows and 5 columns of sub-screen grayscale images. The 15 sub-screen grayscale images are numbered as (1,1), (1,2), ..., (3,4), (3,5) in sequence. One sub-screen grayscale image includes 20 sampled images. Figure 8 It can be seen that the brightness of the 18th sampled image in the sub-screen grayscale image (2,4) is abnormal. Therefore, the brightness of the screen area corresponding to the 18th sampled image is uneven. Among them, the sub-screen grayscale image (2,4) is the sub-screen grayscale image of the 2nd row and 4th column of the screen grayscale image to be tested.

[0136] In some possible cases, during the process of detecting the brightness uniformity of the screen, a sample database may be obtained, and the sample database may be used for deep learning to construct a brightness uniformity detection model for the screen. Subsequently, the brightness uniformity detection model may be used to detect the brightness uniformity of the screen.

[0137] The process of determining the sample database can refer to the following Fig. 9 Description of steps S201-S204 in .

[0138] S201. Set the interception threshold and interception area.

[0139] In some possible cases, the interception area is at least one of the following: a sub-screen grayscale image in a local brightness uniformity detection, and a grayscale image of a screen to be tested in a global brightness uniformity detection.

[0140] The interception threshold here may be a uniformity detection threshold corresponding to the interception area.

[0141] S202. Acquire screen data that does not meet the interception threshold and screen data that meets the interception threshold respectively.

[0142] Failure to meet the interception threshold can determine that the brightness of the interception area is uneven, and the screen data that does not meet the interception threshold enters the negative sample database.

[0143] Meeting the interception threshold can determine that the brightness of the interception area is uniform, and the screen data that meets the interception threshold enters the positive sample database.

[0144] The screen data here may include: an image of the interception area or screen data for generating the image, and an interception label of the image. If the image is a grayscale image of the screen to be tested, the interception label is recorded as label0. If the image is a sub-screen grayscale image, the interception label is recorded as label e, where e is the number of rows of the sub-screen grayscale image in the grayscale image of the screen to be tested multiplied by the number of columns. In addition, the brightness uniformity of the area corresponding to the image may also be included.

[0145] S203. Classify based on the screen data to obtain a positive sample database and a negative sample database.

[0146] The screen data that does not meet the interception threshold is divided into the negative sample database according to the interception label. The screen data corresponding to an interception label belongs to a sub-negative sample database in the negative sample database.

[0147] The screen data that meets the interception threshold is divided into the positive sample database according to the interception label. The screen data corresponding to an interception label belongs to a sub-positive sample database in the positive sample database.

[0148] S204. Process the positive sample database and the negative sample database to obtain a sample database.

[0149] The processing in step S204 includes formatting processing, processing the positive sample database and the negative sample database according to a unified format to obtain a sample database.

[0150] The following is an introduction to an exemplary detection device provided in an embodiment of the present application.

[0151] Fig.10 It is a schematic diagram of the structure of the detection device provided in the embodiment of the present application.

[0152] It should be understood that the detection device may have Fig.10 More or fewer components may be shown, two or more components may be combined, or there may be a different configuration of components. Fig.10 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0153] The detection device may include: a processor 171, a memory 172, a camera 173, a chipset 174 (including one or more of a north bridge chip 174A and a south bridge chip 174B), a power switch 175, input and output devices 176, a USB communication processing module 177, a wireless communication processing module 178 (including one or more of a Bluetooth communication processing module 178A and a WLAN communication processing module 178B), and the like.

[0154] The camera 173 may be the aforementioned camera used to capture the grayscale image of the screen to be tested.

[0155] The processor 171 can be used to read and run computer-readable instructions. In a specific implementation, the processor 171 may mainly include a controller, an arithmetic unit, and a register. Among them, the controller is mainly responsible for decoding instructions and issuing control signals for operations corresponding to the instructions. The arithmetic unit is mainly responsible for performing fixed-point or floating-point arithmetic operations, shift operations, and logical operations, etc., and can also perform address operations and conversions. The register is mainly responsible for storing register operands and intermediate operation results temporarily stored during the execution of instructions.

[0156] In the embodiment of the present application, the memory 172 can be understood as the internal memory of the detection device, such as a flash ROM chip or other types of ROM chips, such as an EEP ROM chip. The memory 172 can be integrated with the processor 171, or can be set separately from the processor 171, which is not limited in the embodiment of the present application.

[0157] In the embodiment of the present application, the processor 171 can call the computer instructions stored in the memory 172 to enable the detection device to execute the method in the embodiment of the present application.

[0158] The present application also provides a chip system, which includes at least one processor for implementing the functions involved in the method executed by the detection device in any of the above embodiments.

[0159] In one possible design, the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.

[0160] The chip system may be composed of the chip, or may include the chip and other discrete devices.

[0161] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0162] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be separated from the processor, which is not limited in the embodiment of the present application.

[0163] Exemplarily, the memory can be a non-transitory processor, such as a read-only memory ROM, which can be integrated with the processor on the same chip or can be set separately on different chips. The embodiments of the present application do not specifically limit the type of memory and the setting method of the memory and the processor.

[0164] The present application also provides a computer program product, which includes: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute the method executed by the detection device in any one of the above embodiments.

[0165] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program (also referred to as code or instruction). When the computer program is executed, the computer executes the method executed by the detection device in any of the above embodiments.

[0166] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0167] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0168] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.

[0169] The terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0170] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0171] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A method for detecting brightness uniformity of a screen, characterized in that: Applied to a detection device, the detection device is used to detect the brightness uniformity of a first screen, the method comprising: Acquire screen brightness data when the first screen displays the first image, wherein the screen brightness data is obtained by shooting the first screen when the first image is displayed by a camera, and includes light intensity information collected by each pixel unit in the camera when shooting, wherein the pixel values ​​of each pixel in the first image are the same, and the first image includes a low-brightness image whose pixel values ​​are equal to or close to black; Converting the light intensity information in the screen brightness data into a grayscale image; Performing binarization processing on the grayscale image to determine target pixels and non-target pixels therein; Based on the target pixels and non-target pixels, an interference picture in the grayscale image is excluded, and an image in the area where the first screen is located in the grayscale image is determined as a screen grayscale image of the first screen; the interference picture includes the non-target pixels and target pixels that are connected but the number of which is less than a preset number; Based on at least two sampled images in a first screen area image, determining a maximum brightness value and a minimum brightness value corresponding to the first screen area image; the first screen area image includes part or all of a screen grayscale image of the first screen; the maximum brightness value corresponding to the first screen area image indicates a maximum value among the brightnesses of at least two sampled images in the first screen area image, and the minimum brightness value corresponding to the first screen area image indicates a minimum value among the brightnesses of at least two sampled images in the first screen area image; The ratio of the minimum brightness value corresponding to the first screen area image to the maximum brightness value corresponding to the first screen area image is used as the brightness uniformity of the first screen area image; Determining the brightness uniformity of the screen area corresponding to the first screen area image based on the brightness uniformity and the uniformity detection threshold of the first screen area image; Wherein, in the case where the first screen area image includes a portion of the screen grayscale image of the first screen, the position of the second screen area image in the screen grayscale image of the sample screen is the same as the position of the first screen area image in the screen grayscale image of the first screen; the process of determining the uniformity detection threshold comprises: determining at least two sampling images in the second screen area image; taking the ratio of the minimum brightness value to the maximum brightness value corresponding to the second screen area image as the uniformity detection threshold; In the case where the first screen area image includes the entire screen grayscale image of the first screen, the second screen area image is the screen grayscale image of the sample screen; the process of determining the uniformity detection threshold includes: uniformly dividing the screen grayscale image of the sample screen into at least two screen area images; determining the uniformity detection threshold by the average value of the brightness uniformity of the at least two screen area images; the uniformity detection threshold is used to indicate the brightness uniformity of the screen grayscale image of the sample screen.

2. The method according to claim 1, characterized in that Determining the brightness uniformity of the screen area corresponding to the first screen area image based on the brightness uniformity of the first screen area image and the uniformity detection threshold specifically includes: When the brightness uniformity of the first screen area image is greater than the uniformity detection threshold, determining that the brightness of the screen area corresponding to the first screen area image is uniform; When the brightness uniformity of the first screen area image is less than the uniformity detection threshold, it is determined that the brightness of the corresponding screen area in the first screen area image is uneven.

3. The method according to claim 2, characterized in that The method further comprises: The screen grayscale image of the first screen is used as the first screen area image, or the screen grayscale image of the first screen is divided into M rows by N columns of screen area images, and each screen area image in the M rows by N columns of screen area images is individually the first screen area image; and both M and N are integers greater than 1.

4. The method according to claim 3, characterized in that: In a case where each of the M rows by N columns of screen area images is individually the first screen area image, the method further includes: When the M rows by N columns of screen areas corresponding to the M rows by N columns of screen area images have uniform brightness, determining that the brightness of the screen is uniform; When there is a first screen area image with uneven brightness among the M rows by N columns of screen area images, it is determined that the brightness of the screen is uneven; the brightness of the screen area corresponding to the first screen area image with uneven brightness is uneven.

5. The method according to any one of claims 1 to 4, characterized in that The shape of the sampled image is a circular image.

6. The method according to claim 5, characterized in that The arrangement of the sampled images in the screen grayscale image of the first screen is the same as the arrangement of the sampled images in the screen grayscale image of the sample screen, the screen grayscale image of the first screen includes T rows by H columns of sampled images, the first-category sampled images on the same row are aligned, and the non-first-category sampled images on the same row are aligned; the first-category sampled images belong to the first-category screen area images, and the first-category screen area images indicate the top corners of the first screen; the non-first-category sampled images include the second-category sampled images and the non-second-category sampled images, the second-category sampled images belong to the second-category screen area images, and the second-category screen area images indicate the non-display area of ​​the first screen; the first-category sampled images on the same column are aligned, the second-category sampled images on the same column are aligned, and the non-second-category sampled images on the same column are aligned; When the screen grayscale image of the first screen is divided into M rows by N columns of screen area images, the sampled image in the screen grayscale image of the first screen is correspondingly divided into M rows by N columns of screen area images; T is an integer greater than 2M, and H is an integer greater than 2N.

7. A detection device, characterized in that: include: One or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the detection device to perform the method as described in any one of claims 1 to 6.

8. A computer-readable storage medium comprising computer instructions, characterized in that: When the computer instructions are executed on a detection device, the detection device is caused to perform the method according to any one of claims 1 to 6.

9. A chip system, which is applied to a detection device, characterized in that: The chip system includes one or more processors, and the processor is used to call computer instructions to enable the detection device to execute the method as described in any one of claims 1 to 6.

10. A computer program product comprising instructions, characterized in that When the computer program product is run on a detection device, the detection device is caused to perform the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Display brightness uniformity test method and device

    CN106448524A

  • Display panel detection method and detection system

    CN116543669A