Contrast test method and device, computer equipment and storage medium
By collecting brightness values in all black and ambient light states and calculating the corrected brightness values, the existing contrast testing methods are solved, and efficient and accurate contrast testing is achieved.
Patent Information
- Application Number
- CN202411336813.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-01-14
AI Technical Summary
Existing contrast testing methods are inefficient and have biased results, especially due to inaccurate test results due to noise floor effects.
By obtaining the brightness values of each target area in the first screen in the full black state and the brightness values of the first and second categories in the second screen in the ambient light state, the brightness values are collected using different exposure times. Calculate the corrected brightness value of each area, and then determine the contrast, overcome the influence of noise floor, and improve test efficiency and accuracy.
It realizes the accuracy and efficiency of contrast test without increasing the test time, ensuring the reliability of contrast test results.
Smart Images

Figure CN119309774A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical testing technology, and in particular to a contrast testing method, device, computer equipment and storage medium. Background Art
[0002] Contrast has a critical impact on visual effects. Generally speaking, the greater the contrast, the clearer and more eye-catching the image is. A small contrast will make the entire image look gray. It is very important to perform contrast testing in practical applications. At present, contrast testing is generally performed using a dot-type luminance meter or an imaging luminance meter. The dot-type luminance meter requires point-by-point scanning, which takes a long time to test and is inefficient. Although the imaging luminance meter has good test efficiency, the test results are biased due to the influence of background noise. Summary of the invention
[0003] The present application provides a contrast test method, apparatus, computer equipment and storage medium, aiming to achieve both the efficiency of contrast test and the accuracy of test results.
[0004] To achieve the above object, the present application provides a contrast testing method, which comprises:
[0005] Obtaining brightness values of target areas in a first picture, wherein the first picture is collected in a completely black state;
[0006] Acquire the brightness value of each block of the first-category area in the second picture, and acquire the brightness value of each block of the second-category area in the second picture, wherein the second picture is collected under an ambient light state, the brightness of the first-category area and the second-category area are different and cross-distributed, and the position of the target area corresponds to the position of the first-category area or the second-category area;
[0007] Determine a corrected brightness value of each first-category area according to the brightness value of each first-category area and the brightness value of the target area corresponding to each first-category area; and determine a corrected brightness value of each second-category area according to the brightness value of each second-category area and the brightness value of the target area corresponding to each second-category area;
[0008] The contrast of the second picture is determined according to the corrected brightness value of each block of the first-type area and the corrected brightness value of each block of the second-type area.
[0009] In addition, to achieve the above-mentioned purpose, the present application also provides a contrast testing device, the contrast testing device comprising a memory and a processor;
[0010] The memory is used to store computer programs;
[0011] The processor is used to execute the computer program and implement the steps of the contrast test method as described above when executing the computer program.
[0012] In addition, to achieve the above-mentioned purpose, the present application also provides a computer device, which includes the contrast testing device as described above.
[0013] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned contrast test method are implemented.
[0014] The present application discloses a contrast test method, device, computer equipment and storage medium. The method obtains the brightness value of each target area in a first picture (collected in a completely black state), obtains the brightness value of each first-category area in a second picture (collected in an ambient light state), and obtains the brightness value of each second-category area in the second picture, wherein the brightness of the first-category area is different from that of the second-category area and is cross-distributed, and the position of each target area corresponds one-to-one to the position of the first-category area or the second-category area. Then, according to the brightness value of each first-category area and the brightness value of the target area corresponding to each first-category area, a corrected brightness value of each first-category area is determined, and according to the brightness value of each second-category area and the brightness value of the target area corresponding to each second-category area, a corrected brightness value of each second-category area is determined. According to the corrected brightness value of each first-category area and the corrected brightness value of each second-category area, the contrast of the second picture is determined. This method overcomes the influence of background noise without taking a long time to test. This method not only ensures the efficiency of contrast test, but also improves the accuracy of contrast test results. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0016] Figure 1 is a schematic flow chart of the steps of a contrast testing method provided in an embodiment of the present application;
[0017] Figure 2 It is a schematic diagram of a chessboard screen;
[0018] Figure 3 is a schematic flow chart of the steps of obtaining the brightness value of each block of the first type of area in the second picture and obtaining the brightness value of each block of the second type of area in the second picture provided by an embodiment of the present application;
[0019] Figure 4 is a schematic flow chart of steps for collecting brightness values of each block of the first type of area based on a first exposure time using a brightness meter provided in an embodiment of the present application;
[0020] Figure 5 It is a schematic block diagram of a contrast testing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0022] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0023] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0024] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0025] The embodiments of the present application provide a contrast test method, apparatus, computer device, and storage medium for achieving both the efficiency of the contrast test and the accuracy of the test results.
[0026] See also Figure 1 , Figure 1 1 is a flow chart of a contrast test method provided in an embodiment of the present application. The method can be applied to a contrast test device or a computer device, and the present application does not limit the application scenario of the method.
[0027] like Figure 1 As shown, the contrast testing method specifically includes steps S101 to S104.
[0028] S101: Obtain brightness values of each target area in a first picture.
[0029] First, perform a dark field noise calibration operation. When the waveguide display of the near-eye display device is in a completely black state, capture the first picture through a brightness meter, and divide the first picture into multiple target areas. For example, divide the first picture into 16 target areas of 4*4. Obtain the brightness value of each target area in the first picture through a brightness meter test. Among them, the near-eye display device includes but is not limited to AR (Augmented Reality) glasses, VR (Virtual Reality) glasses and other devices, and the brightness meter includes but is not limited to imaging brightness meters.
[0030] Exemplarily, each target area in the first picture includes at least one test point, such as an upper left point, a lower left point, an upper right point, a lower right point, a center point, etc. In some embodiments, the brightness value of the center point of the target area is tested by a brightness meter, and the brightness value of the center point is determined as the brightness value of the target area corresponding to the center point. In this way, the brightness value of each target area in the first picture can be quickly obtained.
[0031] In other embodiments, the brightness value of each test point is tested by a brightness meter, and then the average brightness value of each test point is calculated, and the average brightness value is used as the brightness value of the target area corresponding to each test point. By using the average brightness value of multiple test points as the brightness value of the corresponding target area, a more accurate brightness value of each target area in the first image can be obtained.
[0032] It should be noted that, in addition to obtaining the brightness value of each target area in the first picture by the above-listed methods, the brightness value of each target area in the first picture can also be obtained by other methods, which are not specifically limited in the present application.
[0033] S102, obtaining the brightness value of each block of the first category area in the second picture, and obtaining the brightness value of each block of the second category area in the second picture, wherein the second picture is collected under ambient light conditions, the brightness of the first category area and the second category area are different and cross-distributed, and the position of the target area corresponds to the position of the first category area or the second category area.
[0034] Afterwards, under normal ambient light conditions, the second picture is displayed through the waveguide output of the near-eye display device, and the second picture is collected by a brightness meter. The second picture includes multiple first-class areas and multiple second-class areas. The brightness of the first-class areas and the second-class areas are different and cross-distributed. The position of each target area in the first picture corresponds one-to-one to the position of a first-class area or a second-class area in the second picture. The brightness value of each first-class area and the brightness value of each second-class area in the second picture are obtained by brightness meter testing.
[0035] For example, the second picture obtained is as follows Figure 2 As shown, it is a 4*4 black and white checkerboard screen, the checkerboard screen includes 8 white areas and 8 black areas, and the white areas and black areas are spaced apart. The position of each target area in the first screen corresponds to a certain white area or black area in the checkerboard screen, that is, the position of each white area or black area in the checkerboard screen corresponds to the position of a target area in the first screen. The brightness value of each white area and the brightness value of each black area in the checkerboard screen are obtained by a brightness meter test.
[0036] It should be noted that, in addition to the black and white checkerboard images listed above, the second image may also be other images such as a green and black checkerboard image, which is not specifically limited in this application.
[0037] In some embodiments, Figure 3 As shown, step S102 may include sub-step S1021 and sub-step S1022.
[0038] S1021, using a brightness meter to collect brightness values of each block of the first type of area based on a first exposure time;
[0039] S1022, using the brightness meter to collect brightness values of each block of the second type of area based on a second exposure time;
[0040] The first exposure time is shorter than the second exposure time.
[0041] Exemplarily, the higher the brightness value of the first type of area, the shorter the corresponding first exposure time; the second exposure time is greater than or equal to the preset time threshold. It should be noted that the specific values of the preset time threshold, the first exposure time and the second exposure time can be flexibly set according to actual conditions, and are not specifically limited in this application.
[0042] For example, Figure 2Taking the black and white chessboard picture shown as an example, the preset time threshold is 2000ms, and a brightness meter is used to collect the brightness value of each white area in the black and white chessboard picture based on the first exposure time, and a brightness meter is used to collect the brightness value of each black area in the black and white chessboard picture based on the second exposure time (greater than 2000ms).
[0043] The brightness meter is used to collect brightness values twice. The first time, the brightness value of each white area in the chessboard screen is obtained by the brightness meter test according to the first exposure time corresponding to the brightness value test of the white area in the chessboard screen. The second time, the brightness value of each black area in the chessboard screen is obtained by the brightness meter test according to the second exposure time corresponding to the brightness value test of the black area in the chessboard screen.
[0044] By collecting the brightness values of the white area and the brightness values of the black area respectively at different exposure times, it is possible to avoid the problem that the brightness value of the white area or the brightness value of the black area obtained based on the test at the same exposure time may deviate greatly from the true value, thereby further ensuring the accuracy of the test.
[0045] It should be noted that step S1022 may also be performed before step S1021, that is, firstly the brightness value of each block of the second type of area is collected based on the second exposure time, and then the brightness value of each block of the first type of area is collected based on the first exposure time.
[0046] In some embodiments, Figure 4 As shown, step S1021 may include sub-step S10211 and sub-step S10212.
[0047] S10211, using the luminance meter to collect the luminance value of at least one test point in each of the first type of areas based on the first exposure time;
[0048] S10212. Determine the brightness value of each of the first-type areas according to the brightness value of at least one of the test points.
[0049] For example, Figure 2 Taking the black and white chessboard picture shown as an example, each white area includes at least one test point, such as the upper left point, the lower left point, the upper right point, the lower right point, the center point, etc. The brightness value of at least one test point in each white area is collected by the brightness meter based on the first exposure time. If there are multiple test points in each white area, the brightness value of the white area corresponding to the multiple test points is determined by combining the brightness values of the multiple test points. If there is only one test point in each white area, the brightness value of the corresponding white area is determined according to the brightness value of the single test point.
[0050] In some embodiments, determining the brightness value of each first-category area according to the brightness value of at least one of the test points includes: determining the brightness value of the center point of each first-category area as the brightness value of each first-category area.
[0051] The brightness value of the center point of each first-type area is collected by a brightness meter based on the first exposure time, and then the brightness value of the center point of each first-type area is determined as the brightness value of each first-type area. Figure 2 As shown, the circle position in the middle of each white area / black area of the checkerboard screen is the center point of the white area / black area. The brightness value of the middle circle position (center point) of each white area is collected by the brightness meter based on the first exposure time, and the brightness value of the center point of each white area is determined as the brightness value of each white area. In this way, the brightness value of each white area can be quickly obtained.
[0052] In other embodiments, the brightness value of each first-category area is determined based on the brightness value of at least one of the test points, including: if there are multiple test points in each of the first-category areas, then the average value of the brightness values of the multiple test points is determined as the brightness value of each of the first-category areas.
[0053] For example, Figure 2 Taking the black and white checkerboard picture shown as an example, after collecting the brightness values of multiple test points of each white area based on the first exposure time through the brightness meter, the average brightness value of the multiple test points is calculated, and the average brightness value is used as the brightness value of the corresponding white area. Taking the average brightness value of the multiple test points as the brightness value of the corresponding white area, more accurate brightness values of each white area can be obtained.
[0054] Similarly, each second-type area includes at least one test point, such as an upper left point, a lower left point, an upper right point, a lower right point, a center point, etc. The brightness value of at least one test point in each second-type area is collected by a brightness meter based on the second exposure time. If there are multiple test points in each second-type area, the brightness value of the corresponding second-type area is determined by combining the brightness values of the multiple test points. If there is only one test point in each second-type area, the brightness value of the corresponding second-type area is determined according to the brightness value of the single test point.
[0055] In some embodiments, after collecting the brightness value of the center point of each second-type area based on the second exposure time by a brightness meter, the brightness value of the center point of each second-type area is determined as the brightness value of each second-type area. In this way, the brightness value of each second-type area can be quickly obtained.
[0056] In other embodiments, after collecting the brightness values of multiple test points of each second type area based on the second exposure time by a brightness meter, the average brightness value of the multiple test points is calculated, and the average brightness value is used as the brightness value of the corresponding second type area. By using the average brightness value of the multiple test points as the brightness value of the corresponding second type area, more accurate brightness values of each second type area can be obtained.
[0057] S103, determining a corrected brightness value of each first-category area according to the brightness value of each first-category area and the brightness value of the target area corresponding to each first-category area; and determining a corrected brightness value of each second-category area according to the brightness value of each second-category area and the brightness value of the target area corresponding to each second-category area.
[0058] According to the brightness value of the target area corresponding to each first-class area, a dark field noise removal operation is performed on the brightness value of each first-class area to obtain a corrected brightness value of each first-class area with the dark field noise removed. And according to the brightness value of the target area corresponding to each second-class area, a dark field noise removal operation is performed on the brightness value of each second-class area to obtain a corrected brightness value of each second-class area with the dark field noise removed.
[0059] The corrected brightness values of the first type of area and the corrected brightness values of the second type of area obtained in the above manner overcome the influence of background noise, thus making the test result more accurate.
[0060] Exemplarily, the method of determining the corrected brightness value of each first-category area based on the brightness value of each first-category area and the brightness value of the target area corresponding to each first-category area includes: subtracting the brightness difference between the brightness value of each first-category area and the brightness value of the target area corresponding to each first-category area, and determining the corrected brightness value of each first-category area.
[0061] After obtaining the brightness value of each first-class area and the brightness value of the target area at the corresponding position of each first-class area, the brightness difference value of each first-class area minus the brightness value of the target area at the corresponding position of each first-class area is calculated, and the brightness difference value is determined as the corrected brightness value of each first-class area.
[0062] Similarly, after obtaining the brightness value of each second-class area and the brightness value of the target area at the corresponding position of each second-class area, the brightness difference value of each second-class area minus the brightness value of the target area at the corresponding position of each second-class area is calculated, and the brightness difference value is determined as the corrected brightness value of each second-class area.
[0063] S104: Determine the contrast of the second picture according to the corrected brightness value of each block of the first-type region and the corrected brightness value of each block of the second-type region.
[0064] After obtaining the corrected brightness value of each block of the first-class area and the corrected brightness value of each block of the second-class area, the contrast of the final second screen is determined in combination with the corrected brightness value of each block of the first-class area and the corrected brightness value of each block of the second-class area. Exemplarily, the contrast is the ANSI (American National Standards Institute) contrast, which follows the ANSI standard. The contrast of the second screen reflects the optical performance of the near-eye display device. Based on the obtained contrast of the second screen, the near-eye display device can be quality inspected to determine whether the optical performance of the near-eye display device meets the standards. For example, if the contrast of the obtained second screen is not within the set contrast reference range, it can be determined that the optical performance of the near-eye display device does not meet the standards and the quality inspection fails.
[0065] In some embodiments, determining the contrast of the second image based on the corrected brightness values of the first category areas in each block and the corrected brightness values of the second category areas in each block includes: determining the contrast of the second image as the ratio of the sum of the corrected brightness values of the first category areas in each block to the sum of the corrected brightness values of the second category areas in each block.
[0066] For example, Figure 2 Taking the chessboard picture shown in the figure as an example, after obtaining the corrected brightness values of 8 white areas and 8 black areas, the sum of the corrected brightness values of the 8 white areas and the sum of the corrected brightness values of the 8 black areas are calculated, and then the contrast is calculated according to the following formula (1):
[0067]
[0068] Among them, CR is the contrast, n is the number of blocks in the white area / black area, and BV is i is the corrected brightness value of the i-th white area, BV j is the corrected brightness value of the j-th black area.
[0069] In other embodiments, determining the contrast of the second image based on the corrected brightness values of each block of the first-category area and the corrected brightness values of each block of the second-category area includes: determining the contrast of the second image as the ratio of the average value of the corrected brightness values of each block of the first-category area to the average value of the corrected brightness values of each block of the second-category area.
[0070] For example, Figure 2Taking the chessboard picture shown in the figure as an example, after obtaining the corrected brightness values of 8 white areas and 8 black areas, the average value of the corrected brightness values of the 8 white areas and the average value of the corrected brightness values of the 8 black areas are calculated, and then the contrast is calculated according to the following formula (2):
[0071] CR=AVG1 / AVG2(2)
[0072] Wherein, CR is contrast, AVG1 is the average value of the corrected brightness value of each white area, and AVG2 is the average value of the corrected brightness value of each black area.
[0073] By testing the contrast ratio in the above manner, an accurate contrast ratio value can be obtained while taking the test time into consideration, thereby better determining the product performance.
[0074] In the above embodiment, by obtaining the brightness value of each target area in the first picture (collected in a completely black state), obtaining the brightness value of each first-category area in the second picture (collected in an ambient light state), and obtaining the brightness value of each second-category area in the second picture, wherein the brightness of the first-category area and the second-category area are different and cross-distributed, and the position of each target area corresponds one-to-one to the position of the first-category area or the second-category area, then according to the brightness value of each first-category area and the brightness value of the target area corresponding to each first-category area, the corrected brightness value of each first-category area is determined, and according to the brightness value of each second-category area and the brightness value of the target area corresponding to each second-category area, the corrected brightness value of each second-category area is determined, and the contrast of the second picture is determined according to the corrected brightness value of each first-category area and the corrected brightness value of each second-category area, thereby overcoming the influence of background noise without consuming a long test time, not only ensuring the efficiency of contrast test, but also improving the accuracy of contrast test results.
[0075] See also Figure 5 , Figure 5 It is a schematic block diagram of a contrast testing device provided in an embodiment of the present application. The contrast testing device can be configured in a near-eye display device to execute the aforementioned contrast testing method.
[0076] like Figure 5 As shown, the contrast test device 200 may include a processor 210 and a memory 220, wherein the processor 210 and the memory 220 are connected via a bus, such as an I2C (Inter-integrated Circuit) bus.
[0077] Specifically, the processor 210 may be a micro-controller unit (MCU), a central processing unit (CPU), or a digital signal processor (DSP).
[0078] Specifically, the memory 220 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB disk, or a mobile hard disk, etc. The memory 220 stores various computer programs for the processor 210 to execute.
[0079] The processor 210 is used to run a computer program stored in the memory, and implements the following steps when executing the computer program:
[0080] Obtaining brightness values of target areas in a first picture, wherein the first picture is collected in a completely black state;
[0081] Acquire the brightness value of each block of the first-category area in the second picture, and acquire the brightness value of each block of the second-category area in the second picture, wherein the second picture is collected under an ambient light state, the brightness of the first-category area and the second-category area are different and cross-distributed, and the position of the target area corresponds to the position of the first-category area or the second-category area;
[0082] Determine a corrected brightness value of each first-category area according to the brightness value of each first-category area and the brightness value of the target area corresponding to each first-category area; and determine a corrected brightness value of each second-category area according to the brightness value of each second-category area and the brightness value of the target area corresponding to each second-category area;
[0083] The contrast of the second picture is determined according to the corrected brightness value of each block of the first-type area and the corrected brightness value of each block of the second-type area.
[0084] In some embodiments, when the processor 210 implements the acquiring of the brightness value of each block of the first type of area in the second picture and the acquiring of the brightness value of each block of the second type of area in the second picture, it is configured to implement:
[0085] Using a brightness meter to collect brightness values of each of the first-type areas based on a first exposure time;
[0086] Using the brightness meter to collect brightness values of each block of the second type of area based on a second exposure time;
[0087] The first exposure time is shorter than the second exposure time.
[0088] The first exposure time is different from the second exposure time.
[0089] In some embodiments, the higher the brightness value of the first type of area, the shorter the corresponding first exposure time; and the second exposure time is greater than or equal to a preset time threshold.
[0090] In some embodiments, when implementing the step of using a brightness meter to collect brightness values of each block of the first type of area based on a first exposure time, the processor 210 is used to implement:
[0091] Using the luminance meter to collect the luminance value of at least one test point in each of the first type of areas based on the first exposure time;
[0092] The brightness value of each of the first-type areas is determined according to the brightness value of at least one of the test points.
[0093] In some embodiments, the test point includes a center point of the first type of area, and the processor 210, when implementing the step of determining the brightness value of each first type of area according to the brightness value of at least one of the test points, is used to implement:
[0094] The brightness value of the center point of each of the first-category regions is determined as the brightness value of each of the first-category regions.
[0095] In some embodiments, when the processor 210 determines the brightness value of each first-type area according to the brightness value of at least one of the test points, it is configured to implement:
[0096] If each block of the first-type area includes a plurality of test points, an average value of the brightness values of the plurality of test points is determined as the brightness value of each block of the first-type area.
[0097] In some embodiments, when the processor 210 determines the corrected brightness value of each first-category area according to the brightness value of each first-category area and the brightness value of the target area corresponding to each first-category area, it is configured to implement:
[0098] A brightness difference value is subtracted from the brightness value of each block of the first-category area and the brightness value of the target area corresponding to each block of the first-category area to determine the corrected brightness value of each block of the first-category area.
[0099] In some embodiments, when the processor 210 determines the contrast of the second picture according to the corrected brightness value of each block of the first-type area and the corrected brightness value of each block of the second-type area, it is configured to implement:
[0100] Determine the ratio of the sum of the corrected brightness values of each block of the first type of area to the sum of the corrected brightness values of each block of the second type of area as the contrast of the second picture; or
[0101] The ratio of the average value of the corrected brightness values of each block of the first type of area to the average value of the corrected brightness values of each block of the second type of area is determined as the contrast of the second picture.
[0102] The contrast testing device 200 can execute the contrast testing method provided in the embodiment of the present application, and therefore can achieve the beneficial effects that can be achieved by the contrast testing method provided in the embodiment of the present application. For details, please refer to the previous embodiment and will not be repeated here.
[0103] In an embodiment of the present application, a computer device is further provided. The computer device includes a contrast testing device. The contrast testing device can be Figure 5 The contrast test device 200 shown in FIG. Therefore, the computer device can achieve the beneficial effects that can be achieved by the contrast test method provided in the embodiment of the present application, as detailed in the previous embodiment, which will not be repeated here.
[0104] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the contrast test method described above are implemented.
[0105] The computer-readable storage medium may be an internal storage unit of the contrast test device or the near-eye display device described in the aforementioned embodiment, such as a hard disk or memory of the contrast test device or the near-eye display device. The computer-readable storage medium may also be an external storage device of the contrast test device or the near-eye display device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital card (Secure Digital Card, SD Card), a flash card (Flash Card), etc., equipped on the contrast test device or the near-eye display device.
[0106] Since the computer program stored in the storage medium can execute any contrast test method provided in the embodiments of the present application, the beneficial effects that can be achieved by any contrast test method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details, which will not be repeated here.
[0107] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0108] The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and these modifications or substitutions should be included in the protection scope of the present application.
Claims
1. A contrast test method, characterized in that: The contrast test method comprises: Obtaining brightness values of target areas in a first picture, wherein the first picture is collected in a completely black state; Acquire the brightness value of each block of the first-category area in the second picture, and acquire the brightness value of each block of the second-category area in the second picture, wherein the second picture is collected under an ambient light state, the brightness of the first-category area and the second-category area are different and cross-distributed, and the position of the target area corresponds to the position of the first-category area or the second-category area; Determine a corrected brightness value of each first-category area according to the brightness value of each first-category area and the brightness value of the target area corresponding to each first-category area; and determine a corrected brightness value of each second-category area according to the brightness value of each second-category area and the brightness value of the target area corresponding to each second-category area; The contrast of the second picture is determined according to the corrected brightness value of each block of the first-type area and the corrected brightness value of each block of the second-type area.
2. The contrast test method according to claim 1, characterized in that: The obtaining of the brightness value of each block of the first-type region in the second picture, and obtaining of the brightness value of each block of the second-type region in the second picture, include: Using a brightness meter to collect brightness values of each of the first-type areas based on a first exposure time; Using the brightness meter to collect brightness values of each block of the second type of area based on a second exposure time; The first exposure time is shorter than the second exposure time. The first exposure time is different from the second exposure time.
3. The contrast test method according to claim 2, characterized in that: The higher the brightness value of the first type of area, the shorter the corresponding first exposure time; the second exposure time is greater than or equal to a preset time threshold.
4. The contrast test method according to claim 2, characterized in that: The step of using a brightness meter to collect brightness values of each of the first-type areas based on a first exposure time includes: Using the luminance meter to collect the luminance value of at least one test point in each of the first type of areas based on the first exposure time; The brightness value of each of the first-type areas is determined according to the brightness value of at least one of the test points.
5. The contrast test method according to claim 4, characterized in that: The test point includes a center point of the first type of area, and determining the brightness value of each first type of area according to the brightness value of at least one of the test points includes: The brightness value of the center point of each of the first-category regions is determined as the brightness value of each of the first-category regions.
6. The contrast test method according to claim 4, characterized in that: Determining the brightness value of each of the first-type areas according to the brightness value of at least one of the test points includes: If each block of the first-type area includes a plurality of test points, an average value of the brightness values of the plurality of test points is determined as the brightness value of each block of the first-type area.
7. The contrast test method according to claim 1, characterized in that: The determining, according to the brightness value of each block of the first-category area and the brightness value of the target area corresponding to each block of the first-category area, a corrected brightness value of each block of the first-category area includes: A brightness difference value is subtracted from the brightness value of each block of the first-category area and the brightness value of the target area corresponding to each block of the first-category area to determine the corrected brightness value of each block of the first-category area.
8. The contrast test method according to claim 1, characterized in that: The determining the contrast of the second picture according to the corrected brightness value of each block of the first-type area and the corrected brightness value of each block of the second-type area includes: Determine the ratio of the sum of the corrected brightness values of each block of the first type of area to the sum of the corrected brightness values of each block of the second type of area as the contrast of the second picture; or The ratio of the average value of the corrected brightness values of each block of the first type of area to the average value of the corrected brightness values of each block of the second type of area is determined as the contrast of the second picture.
9. A contrast test device, characterized in that: The contrast testing device comprises a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the steps of the contrast testing method according to any one of claims 1 to 8 when executing the computer program.
10. A computer device, characterized in that: The computer device comprises the contrast testing apparatus according to claim 9.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the contrast test method according to any one of claims 1 to 8 are implemented.