CN111896233B - Contrast testing method, contrast testing device and storage medium - Google Patents

Contrast testing method, contrast testing device and storage medium Download PDF

Info

Publication number
CN111896233B
CN111896233B CN202010810644.2A CN202010810644A CN111896233B CN 111896233 B CN111896233 B CN 111896233B CN 202010810644 A CN202010810644 A CN 202010810644A CN 111896233 B CN111896233 B CN 111896233B
Authority
CN
China
Prior art keywords
contrast
brightness value
test
pixel
pixel region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010810644.2A
Other languages
Chinese (zh)
Other versions
CN111896233A (en
Inventor
张茹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Optical Technology Co Ltd
Original Assignee
Goertek Optical Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Optical Technology Co Ltd filed Critical Goertek Optical Technology Co Ltd
Priority to CN202010810644.2A priority Critical patent/CN111896233B/en
Publication of CN111896233A publication Critical patent/CN111896233A/en
Application granted granted Critical
Publication of CN111896233B publication Critical patent/CN111896233B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • G01M11/02Testing optical properties
    • G01M11/04Optical benches therefor
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • G01M11/02Testing optical properties
    • G01M11/0207Details of measuring devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E10/00Energy generation through renewable energy sources
    • Y02E10/50Photovoltaic [PV] energy

Landscapes

  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a contrast test method, which comprises the following steps: acquiring an imaging image of a device to be tested; determining a brightness threshold from the imaged image; determining a first pixel region and a second pixel region according to the brightness threshold, wherein a brightness value corresponding to a pixel point in the first pixel region is smaller than or equal to the brightness threshold, and the brightness value corresponding to a pixel point in the second pixel region is larger than the brightness threshold; and determining the contrast of the device to be tested according to the first average brightness value corresponding to the first pixel area and the second average brightness value corresponding to the second pixel area. The invention also discloses contrast test equipment and a computer readable storage medium, which achieve the effect of improving the accuracy of contrast test results.

Description

Contrast testing method, contrast testing device and storage medium
Technical Field
The present invention relates to the field of optical testing technology, and in particular, to a contrast testing method, a contrast testing device, and a computer readable storage medium.
Background
VR (Virtual Reality) glasses are gradually moving toward miniaturization. Accordingly, many VR glasses employ a Pancake optical solution that reduces the thickness and weight of the optical structures in the VR module. VR modules using the Pancake scheme can cause severe "ghosts" to appear during imaging due to the refraction and reflection of light between the lenses. The projection industry generally adopts an ANSI Contrast (ANSI Contrast, a Contrast test method) test method to test the Contrast of an imaging image. In the ANSI contrast test process, a test chart card is generally used, which is a grid with 4×4 black and white intervals, and then the contrast of a tested product is obtained by calculating the ratio of the average brightness values of the central areas of 8 black grids and 8 white grids in an imaging image. Since the module is affected by 'ghosting' during imaging by using the Pancake scheme, only calculating the average brightness value of the central area cannot reflect the real contrast of the module. This results in the existing test schemes having the disadvantage of inaccurate contrast test results.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The present invention provides a contrast testing method, a contrast testing device and a computer readable storage medium, which aim to achieve the effect of improving the accuracy of contrast testing results.
In order to achieve the above object, the present invention provides a contrast test method, comprising the steps of:
acquiring an imaging image of a device to be tested;
determining a brightness threshold from the imaged image;
determining a first pixel region and a second pixel region according to the brightness threshold, wherein a brightness value corresponding to a pixel point in the first pixel region is smaller than or equal to the brightness threshold, and the brightness value corresponding to a pixel point in the second pixel region is larger than the brightness threshold;
and determining the contrast of the device to be tested according to the first average brightness value corresponding to the first pixel area and the second average brightness value corresponding to the second pixel area.
Optionally, after the step of acquiring the imaging image of the device under test, the method further includes:
preprocessing the imaging image to remove a region with vignetting in the imaging image;
the step of determining a brightness threshold from the imaged image comprises:
and determining the brightness threshold according to the preprocessed imaging image.
Optionally, the step of determining the brightness threshold from the imaged image comprises:
acquiring a brightness value of a target pixel point in the imaging image;
and determining the brightness threshold according to the brightness value of the target pixel point.
Optionally, the step of determining the first pixel region and the second pixel region according to the brightness threshold comprises:
acquiring the brightness value corresponding to each pixel point in the imaging image;
and taking the region where the pixel point with the brightness value smaller than or equal to the brightness threshold value is located as the first pixel region, and taking the region where the pixel point with the brightness value larger than the brightness threshold value is located as the second pixel region.
Optionally, before the step of determining the contrast ratio of the device under test according to the first average brightness value of the first pixel area and the second average brightness value of the second pixel area in the imaging image, the method further includes:
acquiring a brightness value of each pixel point in the first pixel region, and calculating the first average brightness value according to the acquired brightness value;
and acquiring a brightness value of each pixel point in the second pixel area, and calculating the second average brightness value according to the acquired brightness value.
Optionally, the step of acquiring an imaging image of the device under test includes:
capturing data of an imaging device is acquired, and the capturing data is used as the imaging image.
Optionally, after the step of determining the contrast ratio of the device under test according to the first average brightness value of the first pixel area and the second average brightness value of the second pixel area in the imaging image, the method further includes:
acquiring an identification mark of the equipment to be tested;
and storing the identification mark and the contrast in a correlated way to be used as a contrast test result of the equipment to be tested.
Optionally, the identification identifier includes a device model number, a device number, and/or a device name of the device under test.
In addition, in order to achieve the above object, the present invention also provides a contrast test apparatus including a memory, a processor, and a contrast test program stored on the memory and executable on the processor, the contrast test program implementing the steps of the contrast test method as described above when executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a contrast test program which, when executed by a processor, implements the steps of the contrast test method as described above.
The embodiment of the invention provides a contrast test method, contrast test equipment and a computer readable storage medium, which are characterized in that an imaging image of equipment to be tested is firstly obtained, a brightness threshold is determined according to the imaging image, then a first pixel area and a second pixel area are determined according to the brightness threshold, wherein the brightness value corresponding to a pixel point in the first pixel area is smaller than or equal to the brightness threshold, the brightness value corresponding to a pixel point in the second pixel area is larger than the brightness threshold, and the contrast of the equipment to be tested is determined according to a first average brightness value corresponding to the first pixel area and a second average brightness value corresponding to the second pixel area. The contrast can be determined according to the average brightness, so that the phenomenon that the accuracy of a contrast test result is easily influenced by objective factors when the contrast is determined according to the single-point brightness is avoided. This achieves the effect of improving the accuracy of the contrast test results.
Drawings
FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a contrast testing method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a contrast testing system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a contrast test card according to an embodiment of the present invention;
FIG. 5 is a flow chart of a contrast testing method according to another embodiment of the invention
FIG. 6 is a flow chart of a contrast testing method according to another embodiment of the invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
VR modules using the Pancake scheme can cause severe "ghosts" to appear during imaging due to the refraction and reflection of light between the lenses. The projection industry generally adopts an ANSI Contrast (ANSI Contrast, a Contrast test method) test method to test the Contrast of an imaging image. In the ANSI contrast test process, a test chart card is generally used, which is a grid with 4×4 black and white intervals, and then the contrast of a tested product is obtained by calculating the ratio of the average brightness values of the central areas of 8 black grids and 8 white grids in an imaging image. Since the module is affected by 'ghosting' during imaging by using the Pancake scheme, only calculating the average brightness value of the central area cannot reflect the real contrast of the module. This results in the existing test schemes having the disadvantage of inaccurate contrast test results.
In order to solve the above-mentioned drawbacks of the related art, an embodiment of the present invention provides a contrast testing method, which mainly includes the following steps:
acquiring an imaging image of a device to be tested;
determining a brightness threshold from the imaged image;
determining a first pixel region and a second pixel region according to the brightness threshold, wherein a brightness value corresponding to a pixel point in the first pixel region is smaller than or equal to the brightness threshold, and the brightness value corresponding to a pixel point in the second pixel region is larger than the brightness threshold;
and determining the contrast of the device to be tested according to the first average brightness value corresponding to the first pixel area and the second average brightness value corresponding to the second pixel area.
The contrast can be determined according to the average brightness, so that the phenomenon that the accuracy of a contrast test result is easily influenced by objective factors when the contrast is determined according to the single-point brightness is avoided. This achieves the effect of improving the accuracy of the contrast test results.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be terminal equipment such as a PC (personal computer) and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), a mouse, etc., and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a contrast test program may be included in a memory 1005, which is a computer storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the processor 1001 may be configured to call a contrast test program stored in the memory 1005 and perform the following operations:
acquiring an imaging image of a device to be tested;
determining a brightness threshold from the imaged image;
determining a first pixel region and a second pixel region according to the brightness threshold, wherein a brightness value corresponding to a pixel point in the first pixel region is smaller than or equal to the brightness threshold, and the brightness value corresponding to a pixel point in the second pixel region is larger than the brightness threshold;
and determining the contrast of the device to be tested according to the first average brightness value corresponding to the first pixel area and the second average brightness value corresponding to the second pixel area.
Further, the processor 1001 may call the contrast test program stored in the memory 1005, and further perform the following operations:
preprocessing the imaging image to remove a region with vignetting in the imaging image;
the step of determining a brightness threshold from the imaged image comprises:
and determining the brightness threshold according to the preprocessed imaging image.
Further, the processor 1001 may call the contrast test program stored in the memory 1005, and further perform the following operations:
acquiring a brightness value of a target pixel point in the imaging image;
and determining the brightness threshold according to the brightness value of the target pixel point.
Further, the processor 1001 may call the contrast test program stored in the memory 1005, and further perform the following operations:
acquiring the brightness value corresponding to each pixel point in the imaging image;
and taking the region where the pixel point with the brightness value smaller than or equal to the brightness threshold value is located as the first pixel region, and taking the region where the pixel point with the brightness value larger than the brightness threshold value is located as the second pixel region.
Further, the processor 1001 may call the contrast test program stored in the memory 1005, and further perform the following operations:
acquiring a brightness value of each pixel point in the first pixel region, and calculating the first average brightness value according to the acquired brightness value;
and acquiring a brightness value of each pixel point in the second pixel area, and calculating the second average brightness value according to the acquired brightness value.
Further, the processor 1001 may call the contrast test program stored in the memory 1005, and further perform the following operations:
capturing data of an imaging device is acquired, and the capturing data is used as the imaging image.
Further, the processor 1001 may call the contrast test program stored in the memory 1005, and further perform the following operations:
acquiring an identification mark of the equipment to be tested;
and storing the identification mark and the contrast in a correlated way to be used as a contrast test result of the equipment to be tested.
Referring to fig. 2, in an embodiment of the contrast testing method of the present invention, the contrast testing method includes the steps of:
s10, acquiring an imaging image of a device to be tested;
step S20, determining a brightness threshold according to the imaging image;
step S30, determining a first pixel area and a second pixel area according to the brightness threshold, wherein the brightness value corresponding to the pixel point in the first pixel area is smaller than or equal to the brightness threshold, and the brightness value corresponding to the pixel point in the second pixel area is larger than the brightness threshold;
and step S40, determining the contrast ratio of the device to be tested according to the first average brightness value corresponding to the first pixel area and the second average brightness value corresponding to the second pixel area.
In the related art, when performing contrast test, contrast calculation is generally performed according to the central brightness of each test block in the imaging result of the device to be tested. Therefore, when "ghosting" exists in the imaging result of the device under test, the contrast obtained with single-point data is affected to a large extent by the factor of "ghosting", resulting in inaccurate test results. In order to improve accuracy of contrast test results, the embodiment provides a contrast test method.
Before the contrast test is performed according to the contrast test method described in the present embodiment, a test system may be built first, and in order to enable a person skilled in the art to better understand the protection scope of the present invention, a test system building flow is provided in the present embodiment.
As an alternative implementation, referring to fig. 3, the test system includes a support table 10 and a test set 20, where the test set 20 includes an optical module to be tested 22 (i.e., a device to be tested, which may be an optical module to be tested in this embodiment) and a display screen 21. The test system further includes an image capturing device 30, where the image capturing device 30 is configured to capture a test chart displayed on the display screen 21 through the optical module to be tested 22, that is, obtain an imaging result of the optical module to be tested 22.
The image pickup device 30 is connected to a control terminal 40B, and the control terminal 40B is configured to determine a contrast test result based on the image data captured by the camera. I.e. for performing the steps of the contrast test method according to the embodiments of the invention.
Alternatively, the display 22 may also be connected to a control terminal 40A, and the control terminal 40 connected to the display 21 is used to control the display 21 to be turned on and off and control the display content of the display 21. For example, the display screen 21 may be controlled to display a contrast test chart. The contrast test chart card is a standard contrast test chart card, and as shown in fig. 4, the test chart card is composed of test blocks with alternating black and white.
Alternatively, the test assembly 20 is placed horizontally and the camera device 30 is perpendicular to the test assembly 20.
Optionally, the test should be performed in a darkroom, and the whole system should have a certain stability to ensure that the test process is not disturbed.
When the contrast test is performed based on the test system, the camera needs to be adjusted before the test starts to focus the camera to the most clear imaging position in order to improve the test efficiency and reduce the test error. And the camera exposure time is set so that the maximum gray level of the white area of the image is within an allowable range, for example, 215-235, to avoid that the excessive brightness or darkness of the image leads to increased accuracy of the test result. In addition, the brighter the image brightness, the more obvious the ghosting, and the smaller the contrast result of the final test. Further, the shot images can be observed in real time through a control terminal connected with the camera, and the positions of the test components are adjusted, so that black and white grids in an imaging area are uniformly distributed, and later data processing is facilitated.
In this embodiment, the contrast test device (i.e., the control terminal connected to the image capturing device) may acquire the captured data of the image capturing device, and use the captured data as an imaging image of the device under test (optical module under test).
Specifically, the image pickup device is configured as a camera, and the image pickup data is image data picked up by the camera. In the test system, the camera needs to shoot a contrast test chart through the device to be tested, so that the image data shot by the camera is imaging data of the device to be tested on the test chart.
Further, after the imaging image is acquired, the imaging image may be displayed in a display device of the contrast test apparatus, so that a user may select a target pixel point based on the imaging image displayed by the contrast test apparatus. A luminance threshold is then determined based on the target pixel point.
Specifically, the imaging image may be displayed in the form of a picture on a display device of the contrast test apparatus. The user can select at least two adjacent pixel points in the displayed picture as the target pixel points. The target pixel point selected by the user is that the brightness of the central view field is maximum because the imaging image is influenced by the imaging characteristic of the optical module. Therefore, the pixel points at the junctions of the four black and white grids in the center of the image can be checked, and the pixel points at the junctions of the four black and white grids in the center of the image are selected as target pixel points. When the brightness difference between a plurality of target pixel points is smaller than the set number value after the target pixel points are selected, the brightness value of the pixel point with the small brightness value in the target pixel points can be selected, and the pixel point with the small brightness value is rounded up to be used as a brightness threshold value. Otherwise, prompting the user to reselect the target pixel point.
Illustratively, if the difference between the luminance values of the adjacent pixels in the black region is less than 20, the luminance value corresponding to the pixel having the smaller value is selected and rounded up as the luminance threshold value, e.g., if the luminance values of the adjacent pixels are 27 and 42, 30 is selected as the luminance threshold value. Otherwise, prompting the user to reselect the target pixel point
It should be understood that the above-mentioned method for determining the brightness threshold is only one implementation of the present embodiment, and is not intended to limit the present invention. For example, the contrast test device may automatically identify the boundary region of the test block, and then determine the brightness threshold based on the brightness value of the pixel point of the boundary region.
The contrast test device determines the boundary area according to an image recognition algorithm, obtains a luminance value corresponding to each pixel point in the boundary area, calculates an average luminance value of the pixel points in the boundary area, and uses the average luminance value of the pixel points in the boundary area as the luminance threshold.
Further, after determining the luminance threshold, a first pixel region and a second pixel region in the imaged image may be determined based on the luminance threshold.
Specifically, after determining the brightness threshold, the brightness value corresponding to each pixel point in the imaging image may be obtained, and then the area where the pixel point with the brightness value smaller than or equal to the brightness threshold is located is used as the first pixel area, and the area where the pixel point with the brightness value greater than the brightness threshold is located is used as the second pixel area.
After the first pixel area and the second pixel area are determined, a brightness value corresponding to each pixel point in the first pixel area can be obtained, and then a first average brightness value of the pixel points in the first pixel area is calculated according to the obtained brightness value corresponding to each pixel point in the first pixel area. And acquiring a brightness value corresponding to each pixel point in the second pixel area, and then calculating a first average brightness value of the pixel points in the second pixel area according to the acquired brightness value corresponding to each pixel point in the second pixel area.
After the first average brightness value and the second average brightness value are determined, the ratio of the second average brightness value to the first average brightness value can be used as a contrast test result of the device to be tested, namely, the contrast corresponding to the device to be tested is the ratio of the second average brightness value to the first average brightness value.
It will be appreciated that, since the test card is composed of test blocks with alternating black and white, in the above-described imaging image, the first pixel region determined according to the brightness threshold is composed of a plurality of first sub-pixel regions dispersed at different positions in the imaging image, and likewise, the second pixel region is composed of a plurality of second sub-pixel regions dispersed at different positions in the imaging image. Thus, as an alternative implementation, the sub-contrast may be calculated according to the average luminance value of the pixel points corresponding to the adjacent two first sub-pixel regions and the second sub-pixel region. So that a plurality of sub-contrasts can be acquired. And then taking the average value of the plurality of sub-contrasts as the contrast of the device to be tested.
In the technical scheme disclosed in this embodiment, an imaging image of a device to be measured is acquired first, a brightness threshold is determined according to the imaging image, then a first pixel region and a second pixel region are determined according to the brightness threshold, wherein a brightness value corresponding to a pixel point in the first pixel region is smaller than or equal to the brightness threshold, a brightness value corresponding to a pixel point in the second pixel region is larger than the brightness threshold, and a contrast ratio of the device to be measured is determined according to a first average brightness value corresponding to the first pixel region and a second average brightness value corresponding to the second pixel region. The contrast can be determined according to the average brightness, so that the phenomenon that the accuracy of a contrast test result is easily influenced by objective factors when the contrast is determined according to the single-point brightness is avoided. This achieves the effect of improving the accuracy of the contrast test results.
Referring to fig. 5, in another embodiment, after the step S10, the method further includes:
step S50, preprocessing the imaging image to remove a region with vignetting in the imaging image;
the step S20 includes:
and S21, determining the brightness threshold according to the preprocessed imaging image.
In this embodiment, when the imaging image of the device to be tested is acquired, preprocessing may be performed first.
Specifically, after the imaging image of the device to be tested is obtained, the imaging image can be displayed in a display interface of the contrast test device, so that a user can remove the vignetting area in the imaging image through image processing software loaded by the contrast test device in a shearing mode and the like.
Or the contrast test equipment is provided with an image recognition function, and the vignetting area in the imaging image can be recognized based on the image recognition function of the local end of the contrast test equipment, so that the vignetting area in the imaging image can be automatically cut off.
Or the contrast test device may communicate with the server and invoke the remote image processing function via the image processing interface described above by the server and remove the vignetting region in the imaged image via the remote image processing function.
Or the contrast test device may send the imaging image to the server, and after the server receives the imaging image, remove the vignetting area in the imaging image through the image function of the local end or other ends, and then feed back the imaging image after removing the vignetting area to the contrast test device.
Further, after pre-storing the imaging image, the brightness threshold may be determined according to the pre-processed imaging image.
In this embodiment, after the imaging image of the device to be tested is obtained, preprocessing may be performed first, so as to achieve the effect of improving the accuracy of the contrast test result.
Optionally, referring to fig. 6, based on any one of the above embodiments, in a further embodiment, after step S40, the method further includes:
step S60, acquiring the identification mark of the equipment to be tested;
and step S70, storing the identification mark and the contrast in a correlated manner to be used as a contrast test result of the equipment to be tested.
In this embodiment, before the contrast test starts, the user may input the identification of the device to be tested, or the contrast test device may determine the identification of the device to be tested through the tag provided on the device to be tested.
After the identification mark is obtained, the identification mark and the contrast ratio can be associated and stored to be used as a contrast ratio test result of the device to be tested.
It should be noted that the identification identifier includes a device model number, a device number, and/or a device name of the device to be tested.
In this embodiment, the identification mark and the contrast of the device to be tested can be automatically associated and stored, so that the result statistics is not required to be manually performed, and the effect of simplifying the contrast testing step is achieved.
In addition, the embodiment of the invention also provides contrast test equipment, which comprises a memory, a processor and a contrast test program stored in the memory and capable of running on the processor, wherein the contrast test program is executed by the processor to realize the steps of the contrast test method in each embodiment.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a contrast test program, and the contrast test program realizes the steps of the contrast test method in the above embodiments when being executed by a processor.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a PC or the like) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (6)

1. The contrast test method is characterized in that the contrast test method is applied to a test optical module and comprises a test system, the test system comprises a supporting table, a test assembly and a camera device, the test assembly comprises equipment to be tested and a display screen, the camera device is arranged to shoot a test chart displayed on the display screen through the equipment to be tested, and the contrast test method comprises the following steps:
acquiring an imaging image of a device to be tested;
preprocessing the imaging image to remove a region with vignetting in the imaging image;
determining a brightness threshold according to the preprocessed imaging image;
determining a first pixel region and a second pixel region according to the brightness threshold, wherein a brightness value corresponding to a pixel point in the first pixel region is smaller than or equal to the brightness threshold, and the brightness value corresponding to a pixel point in the second pixel region is larger than the brightness threshold;
determining the ratio of the second average brightness value to the first average brightness value as the contrast of the device to be tested according to the first average brightness value corresponding to the first pixel region and the second average brightness value corresponding to the second pixel region;
before the step of determining the contrast ratio of the device under test according to the first average brightness value of the first pixel region and the second average brightness value of the second pixel region in the imaging image, the method further comprises:
acquiring a brightness value of each pixel point in the first pixel region, and calculating the first average brightness value according to the acquired brightness value;
acquiring a brightness value of each pixel point in the second pixel area, and calculating the second average brightness value according to the acquired brightness value;
the step of determining a brightness threshold from the preprocessed imaging image comprises:
acquiring a brightness value of a target pixel point in the preprocessed imaging image;
determining the brightness threshold according to the brightness value of the target pixel point;
the step of determining the first pixel region and the second pixel region according to the brightness threshold value comprises:
acquiring the brightness value corresponding to each pixel point in the imaging image;
and taking the region where the pixel point with the brightness value smaller than or equal to the brightness threshold value is located as the first pixel region, and taking the region where the pixel point with the brightness value larger than the brightness threshold value is located as the second pixel region.
2. The contrast testing method of claim 1, wherein the step of acquiring an imaging image of the device under test comprises:
capturing data of an imaging device is acquired, and the capturing data is used as the imaging image.
3. The contrast testing method of claim 1, wherein after the step of determining the contrast of the device under test based on the first average luminance value of the first pixel region and the second average luminance value of the second pixel region in the imaged image, further comprises:
acquiring an identification mark of the equipment to be tested;
and storing the identification mark and the contrast in a correlated way to be used as a contrast test result of the equipment to be tested.
4. A contrast testing method according to claim 3, wherein the identification comprises a device model number, a device number and/or a device name of the device under test.
5. A contrast testing apparatus, characterized in that the contrast testing apparatus comprises: a memory, a processor and a contrast test program stored on the memory and executable on the processor, which contrast test program, when executed by the processor, implements the steps of the contrast test method according to any one of claims 1 to 4.
6. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a contrast test program, which, when executed by a processor, implements the steps of the contrast test method according to any of claims 1 to 4.
CN202010810644.2A 2020-08-13 2020-08-13 Contrast testing method, contrast testing device and storage medium Active CN111896233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010810644.2A CN111896233B (en) 2020-08-13 2020-08-13 Contrast testing method, contrast testing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010810644.2A CN111896233B (en) 2020-08-13 2020-08-13 Contrast testing method, contrast testing device and storage medium

Publications (2)

Publication Number Publication Date
CN111896233A CN111896233A (en) 2020-11-06
CN111896233B true CN111896233B (en) 2023-04-25

Family

ID=73229344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010810644.2A Active CN111896233B (en) 2020-08-13 2020-08-13 Contrast testing method, contrast testing device and storage medium

Country Status (1)

Country Link
CN (1) CN111896233B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367519B (en) * 2020-11-09 2022-08-16 广州亚美智造科技有限公司 Method, device and equipment for testing functions of video input equipment
CN112985778B (en) * 2021-03-01 2022-06-21 歌尔科技有限公司 Test chart positioning method, terminal and storage medium
CN113034585B (en) * 2021-04-25 2023-02-28 歌尔光学科技有限公司 Offset state test method, test device and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2317007B (en) * 1996-09-04 2000-07-26 Spectrum Tech Ltd Contrast determining apparatus and methods
WO2015011744A1 (en) * 2013-07-22 2015-01-29 日立コンシューマエレクトロニクス株式会社 Optical information recording device, optical information playback device, optical information recording method and playback position misalignment detection method
JP6598503B2 (en) * 2015-05-01 2019-10-30 キヤノン株式会社 Image generating apparatus, image generating method, and program
CN107024337B (en) * 2016-02-01 2019-09-24 京东方科技集团股份有限公司 Measurement method and its measuring system
CN107123150B (en) * 2017-03-25 2021-04-30 复旦大学 Global color contrast detection and saliency map segmentation method
CN107221275B (en) * 2017-07-26 2021-04-20 昆山龙腾光电股份有限公司 Display screen contrast detection system and method
CN109600604B (en) * 2018-11-09 2020-07-03 歌尔股份有限公司 Contrast testing method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN111896233A (en) 2020-11-06

Similar Documents

Publication Publication Date Title
CN111896233B (en) Contrast testing method, contrast testing device and storage medium
CN108683907B (en) Optical module pixel defect detection method, device and equipment
US20160094770A1 (en) Image Processing Method and Apparatus, and Terminal
CN113992861B (en) Image processing method and image processing device
CN107241556B (en) Light measuring method and device of image acquisition equipment
US20190335077A1 (en) Systems and methods for image capture and processing
CN112985778B (en) Test chart positioning method, terminal and storage medium
CN113286135A (en) Image correction method and apparatus
CN111609998A (en) Detection method and detection device for illumination uniformity and readable storage medium
CN116337412A (en) Screen detection method, device and storage medium
CN108289176B (en) Photographing question searching method, question searching device and terminal equipment
CN115760653B (en) Image correction method, device, equipment and readable storage medium
CN111970501A (en) Pure color scene AE color processing method and device, electronic equipment and storage medium
CN115278103A (en) Security monitoring image compensation processing method and system based on environment perception
CN114339028B (en) Photographing method, electronic device and computer readable storage medium
CN112997217A (en) Document detection from video images
CN111787310B (en) Anti-shake performance testing method and device, computer equipment and storage medium
CN114866705A (en) Automatic exposure method, storage medium and electronic device
CN113810673A (en) Projector uniformity testing method and device and computer readable storage medium
CN111862018A (en) Pixel detection method and detection device of display screen
CN115022552A (en) Camera exposure method for self-walking equipment and self-walking equipment
JP2017162030A (en) Image evaluation method, image evaluation program and image evaluation device
CN115713489A (en) Optical device detection method, detection apparatus, and computer-readable storage medium
CN113038021B (en) Image shake detection method, image shake detection device and readable storage medium
CN116912181B (en) Screen uniformity detection method, system and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant