[go: up one dir, main page]

CN111896233B - Contrast test method, contrast test equipment and storage medium - Google Patents

Contrast test method, contrast test equipment 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
test
pixel area
pixel
brightness value
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 test method, contrast test equipment and storage medium

技术领域technical field

本发明涉及光学测试技术领域,尤其涉及对比度测试方法、对比度测试设备及计算机可读存储介质。The invention relates to the technical field of optical testing, in particular to a contrast testing method, a contrast testing device and a computer-readable storage medium.

背景技术Background technique

目前VR(Virtual Reality,虚拟显示)眼镜正逐渐向小型化的方向发展。因此,许多VR眼镜采用了能减轻了VR模组中光学结构的厚度与重量的Pancake(轻薄)光学方案。使用Pancake方案的VR模组由于光线在镜片之间的折反射,会导致成像时出现较为严重的“鬼影”。而目前投影行业一般采用ANSI对比度(ANSI Contrast,一种对比度测试方法)测试方法测试成像图像的对比度。在ANSI对比度测试过程中,一般使用的测试图卡为4×4的黑白相间的方格,然后通过计算成像图像中的8个黑格与8个白格的中心区域的亮度平均值的比值,得到被测产品对比度。由于使用Pancake方案模组在成像时受到“鬼影”的影响,只计算中心区域的亮度平均值不能反应模组真实对比度。这样导致现有的测试方案存在对比度测试结果不准确的缺陷。At present, VR (Virtual Reality, virtual display) glasses are gradually developing in the direction of miniaturization. Therefore, many VR glasses adopt a Pancake (thin and light) optical solution that can reduce the thickness and weight of the optical structure in the VR module. Due to the refraction and reflection of light between the lenses of the VR module using the Pancake solution, serious "ghost images" will appear during imaging. At present, the projection industry generally uses the ANSI contrast (ANSI Contrast, a contrast test method) test method to test the contrast of the imaging image. In the ANSI contrast test process, the generally used test chart is a 4×4 black and white grid, and then by calculating the ratio of the average brightness of the central area of the 8 black grids and the 8 white grids in the imaging image, Get the contrast ratio of the product under test. Because the module using the Pancake scheme is affected by "ghosting" during imaging, only calculating the average brightness of the central area cannot reflect the real contrast of the module. This leads to the defect that the contrast test result is inaccurate in the existing test scheme.

上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solution of the present invention, and does not mean that the above content is admitted as prior art.

发明内容Contents of the invention

本发明的主要目的在于提供一种对比度测试方法、对比度测试设备及计算机可读存储介质,旨在达成提高对比度测试结果的准确性的效果。The main purpose of the present invention is to provide a contrast test method, a contrast test device and a computer-readable storage medium, aiming at improving the accuracy of the contrast test results.

为实现上述目的,本发明提供一种对比度测试方法,所述对比度测试方法包括以下步骤:To achieve the above object, the present invention provides a contrast test method, which comprises the following steps:

获取待测设备的成像图像;Obtain an imaging image of the device under test;

根据所述成像图像确定亮度阈值;determining a brightness threshold based on the imaged image;

根据所述亮度阈值确定第一像素区域和第二像素区域,其中,所述第一像素区域中的像素点对应的亮度值小于或者等于所述亮度阈值,所述第二像素区域中的像素点对应的所述亮度值大于所述亮度阈值;Determine the first pixel area and the second pixel area according to the brightness threshold, wherein the brightness value corresponding to the pixel in the first pixel area is less than or equal to the brightness threshold, and the pixel in the second pixel area The corresponding brightness value is greater than the brightness threshold;

根据所述第一像素区域对应的第一平均亮度值,以及所述第二像素区域对应的第二平均亮度值,确定所述待测设备的对比度。The contrast of the device under test is determined 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, it also includes:

对所述成像图像进行预处理,以去除所述成像图像中存在渐晕的区域;performing preprocessing on the imaging image, to remove the region of vignetting in the imaging image;

所述根据所述成像图像确定亮度阈值的步骤包括:The step of determining the brightness threshold according to the imaging image comprises:

根据预处理后的所述成像图像确定所述亮度阈值。The brightness threshold is determined according to the preprocessed imaging image.

可选地,所述根据所述成像图像确定亮度阈值的步骤包括:Optionally, the step of determining the brightness threshold according to the imaging image includes:

获取所述成像图像中目标像素点的亮度值;Acquiring the brightness value of the target pixel in the imaging image;

根据所述目标像素点的亮度值确定所述亮度阈值。The brightness threshold is determined according to the brightness value of the target pixel.

可选地,所述根据所述亮度阈值确定第一像素区域和第二像素区域的步骤包括:Optionally, the step of determining the first pixel area and the second pixel area according to the brightness threshold comprises:

获取所述成像图像中的每一像素点对应的所述亮度值;Acquiring the brightness value corresponding to each pixel in the imaging image;

将所述亮度值小于或者等于所述亮度阈值的像素点所在的区域,作为所述第一像素区域,将所述亮度值大于所述亮度阈值的像素点所在的区域,作为所述第二像素区域。Taking the area where the pixels whose brightness value is less than or equal to the brightness threshold is located as the first pixel area, and using the area where the pixels whose brightness value is greater than the brightness threshold is located as the second pixel area.

可选地,所述根据所述成像图像中的所述第一像素区域的第一平均亮度值,以及所述第二像素区域的第二平均亮度值,确定所述待测设备的对比度的步骤之前,还包括:Optionally, the step of determining the contrast of the device under test according to the first average brightness value of the first pixel area in the imaging image and the second average brightness value of the second pixel area Previously, also included:

获取所述第一像素区域中的每一像素点的亮度值,并根据获取到的所述亮度值计算所述第一平均亮度值;Acquiring the luminance value of each pixel in the first pixel area, and calculating the first average luminance value according to the acquired luminance value;

获取所述第二像素区域中的每一像素点的亮度值,并根据获取到的所述亮度值计算所述第二平均亮度值。acquiring the brightness value of each pixel 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:

获取摄像装置的拍摄数据,并将所述拍摄数据作为所述成像图像。The shooting data of the camera device is acquired, and the shooting data is used as the imaging image.

可选地,所述根据所述成像图像中的所述第一像素区域的第一平均亮度值,以及所述第二像素区域的第二平均亮度值,确定所述待测设备的对比度的步骤之后,还包括:Optionally, the step of determining the contrast of the device under test according to the first average brightness value of the first pixel area in the imaging image and the second average brightness value of the second pixel area After that, also include:

获取所述待测设备的识别标识;Obtain the identification mark of the device under test;

将所述识别标识与所述对比度关联保存,以作为所述待测设备的对比度测试结果。The identification is stored in association with the contrast as a contrast test result of the device under test.

可选地,所述识别标识包括所述待测设备的设备型号、设备编号和/或设备名称。Optionally, the identification includes a device model, 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 device, which includes a memory, a processor, and a contrast test program stored in the memory and operable on the processor. When the contrast test program is executed by the processor, the steps of the above-mentioned contrast test method are realized.

此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有对比度测试程序,所述对比度测试程序被处理器执行时实现如上所述的对比度测试方法的步骤。In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium, on which a contrast test program is stored, and when the contrast test program is executed by a processor, the above-mentioned contrast test can be realized. method steps.

本发明实施例提出的一种对比度测试方法、对比度测试设备及计算机可读存储介质,先获取待测设备的成像图像,根据所述成像图像确定亮度阈值,然后根据所述亮度阈值确定第一像素区域和第二像素区域,其中,所述第一像素区域中的像素点对应的亮度值小于或者等于所述亮度阈值,所述第二像素区域中的像素点对应的所述亮度值大于所述亮度阈值,并根据所述第一像素区域对应的第一平均亮度值,以及所述第二像素区域对应的第二平均亮度值,确定所述待测设备的对比度。由于可以根据平均亮度确定对比度,从而避免了根据单点亮度确定对比度时,容易因客观因素影响对比度测试结果的准确性的现象发生。这样达成了提高对比度测试结果的准确性的效果。A contrast test method, a contrast test device and a computer-readable storage medium proposed by an embodiment of the present invention first acquire an imaging image of the device to be tested, determine a brightness threshold according to the imaging image, and then determine the first pixel according to the brightness threshold area and a second pixel area, wherein the luminance value corresponding to the pixel in the first pixel area is less than or equal to the luminance threshold, and the luminance value corresponding to the pixel in the second pixel area is greater than the brightness threshold, and determine the contrast of the device under test 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. Since the contrast can be determined according to the average brightness, the phenomenon that the accuracy of the contrast test result is easily affected by objective factors when the contrast is determined according to the single-point brightness is avoided. This has the effect of increasing the accuracy of the contrast test results.

附图说明Description of drawings

图1是本发明实施例方案涉及的硬件运行环境的终端结构示意图;Fig. 1 is a schematic diagram of the terminal structure of the hardware operating environment involved in the solution of the embodiment of the present invention;

图2为本发明对比度测试方法的一实施例的流程示意图;Fig. 2 is a schematic flow chart of an embodiment of the contrast test method of the present invention;

图3为本发明实施例涉及的对比度测试系统的结构简图;Fig. 3 is a schematic structural diagram of a contrast test system related to an embodiment of the present invention;

图4为本发明实施例涉及的对比度测试图卡的示意图;Fig. 4 is the schematic diagram of the contrast test chart card that the embodiment of the present invention relates to;

图5为本发明对比度测试方法的另一实施例的流程示意图Fig. 5 is a schematic flow chart of another embodiment of the contrast test method of the present invention

图6为本发明对比度测试方法的又一实施例的流程示意图。Fig. 6 is a schematic flowchart of another embodiment of the contrast testing method of the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

使用Pancake方案的VR模组由于光线在镜片之间的折反射,会导致成像时出现较为严重的“鬼影”。而目前投影行业一般采用ANSI对比度(ANSI Contrast,一种对比度测试方法)测试方法测试成像图像的对比度。在ANSI对比度测试过程中,一般使用的测试图卡为4×4的黑白相间的方格,然后通过计算成像图像中的8个黑格与8个白格的中心区域的亮度平均值的比值,得到被测产品对比度。由于使用Pancake方案模组在成像时受到“鬼影”的影响,只计算中心区域的亮度平均值不能反应模组真实对比度。这样导致现有的测试方案存在对比度测试结果不准确的缺陷。Due to the refraction and reflection of light between the lenses of the VR module using the Pancake solution, serious "ghost images" will appear during imaging. At present, the projection industry generally uses the ANSI contrast (ANSI Contrast, a contrast test method) test method to test the contrast of the imaging image. In the ANSI contrast test process, the generally used test chart is a 4×4 black and white grid, and then by calculating the ratio of the average brightness of the central area of the 8 black grids and the 8 white grids in the imaging image, Get the contrast ratio of the product under test. Because the module using the Pancake scheme is affected by "ghosting" during imaging, only calculating the average brightness of the central area cannot reflect the real contrast of the module. This leads to the defect that the contrast test result is inaccurate in the existing test scheme.

为解决相关技术的上述缺陷,本发明实施例提出一种对比度测试方法,其主要解决方案包括以下步骤:In order to solve the above-mentioned defects of related technologies, an embodiment of the present invention proposes a contrast test method, the main solution of which includes the following steps:

获取待测设备的成像图像;Obtain an imaging image of the device under test;

根据所述成像图像确定亮度阈值;determining a brightness threshold based on the imaged image;

根据所述亮度阈值确定第一像素区域和第二像素区域,其中,所述第一像素区域中的像素点对应的亮度值小于或者等于所述亮度阈值,所述第二像素区域中的像素点对应的所述亮度值大于所述亮度阈值;Determine the first pixel area and the second pixel area according to the brightness threshold, wherein the brightness value corresponding to the pixel in the first pixel area is less than or equal to the brightness threshold, and the pixel in the second pixel area The corresponding brightness value is greater than the brightness threshold;

根据所述第一像素区域对应的第一平均亮度值,以及所述第二像素区域对应的第二平均亮度值,确定所述待测设备的对比度。The contrast of the device under test is determined 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.

由于可以根据平均亮度确定对比度,从而避免了根据单点亮度确定对比度时,容易因客观因素影响对比度测试结果的准确性的现象发生。这样达成了提高对比度测试结果的准确性的效果。Since the contrast can be determined according to the average brightness, the phenomenon that the accuracy of the contrast test result is easily affected by objective factors when the contrast is determined according to the single-point brightness is avoided. This has the effect of increasing the accuracy of the contrast test results.

如图1所示,图1是本发明实施例方案涉及的硬件运行环境的终端结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in the solution of the embodiment of the present invention.

本发明实施例终端可以是PC机等终端设备。The terminal in this embodiment of the present invention may be a terminal device such as a PC.

如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard)、鼠标等,可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。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 , and a communication bus 1002 . Wherein, the communication bus 1002 is used to realize connection and 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 also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 can be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .

本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the terminal structure shown in FIG. 1 does not constitute a limitation on the terminal, and may include more or less components than those shown in the figure, or combine some components, or arrange different components.

如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及对比度测试程序。As shown in FIG. 1 , the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and a contrast test program.

在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;处理器1001可以用于调用存储器1005中存储的对比度测试程序,并执行以下操作:In the terminal shown in FIG. 1, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the processor 1001 can be used to call the contrast test program stored in the memory 1005, and perform the following operations:

获取待测设备的成像图像;Obtain an imaging image of the device under test;

根据所述成像图像确定亮度阈值;determining a brightness threshold based on the imaged image;

根据所述亮度阈值确定第一像素区域和第二像素区域,其中,所述第一像素区域中的像素点对应的亮度值小于或者等于所述亮度阈值,所述第二像素区域中的像素点对应的所述亮度值大于所述亮度阈值;Determine the first pixel area and the second pixel area according to the brightness threshold, wherein the brightness value corresponding to the pixel in the first pixel area is less than or equal to the brightness threshold, and the pixel in the second pixel area The corresponding brightness value is greater than the brightness threshold;

根据所述第一像素区域对应的第一平均亮度值,以及所述第二像素区域对应的第二平均亮度值,确定所述待测设备的对比度。The contrast of the device under test is determined 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.

进一步地,处理器1001可以调用存储器1005中存储的对比度测试程序,还执行以下操作:Further, the processor 1001 can call the contrast test program stored in the memory 1005, and also perform the following operations:

对所述成像图像进行预处理,以去除所述成像图像中存在渐晕的区域;performing preprocessing on the imaging image, to remove the region of vignetting in the imaging image;

所述根据所述成像图像确定亮度阈值的步骤包括:The step of determining the brightness threshold according to the imaging image comprises:

根据预处理后的所述成像图像确定所述亮度阈值。The brightness threshold is determined according to the preprocessed imaging image.

进一步地,处理器1001可以调用存储器1005中存储的对比度测试程序,还执行以下操作:Further, the processor 1001 can call the contrast test program stored in the memory 1005, and also perform the following operations:

获取所述成像图像中目标像素点的亮度值;Acquiring the brightness value of the target pixel in the imaging image;

根据所述目标像素点的亮度值确定所述亮度阈值。The brightness threshold is determined according to the brightness value of the target pixel.

进一步地,处理器1001可以调用存储器1005中存储的对比度测试程序,还执行以下操作:Further, the processor 1001 can call the contrast test program stored in the memory 1005, and also perform the following operations:

获取所述成像图像中的每一像素点对应的所述亮度值;Acquiring the brightness value corresponding to each pixel in the imaging image;

将所述亮度值小于或者等于所述亮度阈值的像素点所在的区域,作为所述第一像素区域,将所述亮度值大于所述亮度阈值的像素点所在的区域,作为所述第二像素区域。Taking the area where the pixels whose brightness value is less than or equal to the brightness threshold is located as the first pixel area, and using the area where the pixels whose brightness value is greater than the brightness threshold is located as the second pixel area.

进一步地,处理器1001可以调用存储器1005中存储的对比度测试程序,还执行以下操作:Further, the processor 1001 can call the contrast test program stored in the memory 1005, and also perform the following operations:

获取所述第一像素区域中的每一像素点的亮度值,并根据获取到的所述亮度值计算所述第一平均亮度值;Acquiring the luminance value of each pixel in the first pixel area, and calculating the first average luminance value according to the acquired luminance value;

获取所述第二像素区域中的每一像素点的亮度值,并根据获取到的所述亮度值计算所述第二平均亮度值。acquiring the brightness value of each pixel in the second pixel area, and calculating the second average brightness value according to the acquired brightness value.

进一步地,处理器1001可以调用存储器1005中存储的对比度测试程序,还执行以下操作:Further, the processor 1001 can call the contrast test program stored in the memory 1005, and also perform the following operations:

获取摄像装置的拍摄数据,并将所述拍摄数据作为所述成像图像。The shooting data of the camera device is acquired, and the shooting data is used as the imaging image.

进一步地,处理器1001可以调用存储器1005中存储的对比度测试程序,还执行以下操作:Further, the processor 1001 can call the contrast test program stored in the memory 1005, and also perform the following operations:

获取所述待测设备的识别标识;Obtain the identification mark of the device under test;

将所述识别标识与所述对比度关联保存,以作为所述待测设备的对比度测试结果。The identification is stored in association with the contrast as a contrast test result of the device under test.

参照图2,在本发明对比度测试方法的一实施例中,所述对比度测试方法包括以下步骤:With reference to Fig. 2, in one embodiment of contrast test method of the present invention, described contrast test method comprises the following steps:

步骤S10、获取待测设备的成像图像;Step S10, acquiring an imaging image of the device under test;

步骤S20、根据所述成像图像确定亮度阈值;Step S20, determining a brightness threshold according to the imaging image;

步骤S30、根据所述亮度阈值确定第一像素区域和第二像素区域,其中,所述第一像素区域中的像素点对应的亮度值小于或者等于所述亮度阈值,所述第二像素区域中的像素点对应的所述亮度值大于所述亮度阈值;Step S30. Determine the first pixel area and the second pixel area according to the brightness threshold, wherein the brightness value corresponding to the pixel in the first pixel area is less than or equal to the brightness threshold, and the brightness value in the second pixel area is The brightness value corresponding to the pixel point is greater than the brightness threshold;

步骤S40、根据所述第一像素区域对应的第一平均亮度值,以及所述第二像素区域对应的第二平均亮度值,确定所述待测设备的对比度。Step S40. Determine the contrast of the device under test 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 a contrast test, the contrast calculation is generally performed according to the central luminance of each test block in the imaging result of the device under test. Therefore, when there is a "ghost" in the imaging result of the device under test, the contrast obtained from the single-point data is greatly affected by the "ghost" factor, resulting in inaccurate test results. In order to improve the accuracy of the contrast test result, this embodiment proposes a contrast test method.

在根据本实施例记载的对比度测试方法进行对比度测试前,可以先搭建测试系统,为使得本领域技术人员更好的理解本发明的保护范围,本实施例给出一种测试系统搭建流程。Before performing the contrast test according to the contrast test method described in this embodiment, a test system can be built first. In order to enable those skilled in the art to better understand the protection scope of the present invention, this embodiment provides a test system building process.

作为一种可选实现方案,参照图3,上述测试系统包括支撑台10、测试组20,其中,测试组件20包括待测光学模组22(即待测设备,在本实施例中,可以是一待测光学模组)和显示屏21。上述测试系统还包括摄像装置30,其中,上述摄像装置30设置为透过上述待测光学模组22拍摄显示屏21上显示的测试图卡,即获取待测光学模组22的成像结果。As an optional implementation, referring to FIG. 3 , the above-mentioned test system includes a support table 10 and a test group 20, wherein the test assembly 20 includes an optical module 22 to be tested (that is, the device to be tested, in this embodiment, may be an optical module to be tested) and a display screen 21. The test system further includes a camera device 30 , wherein the camera device 30 is configured to capture the test chart displayed on the display screen 21 through the optical module 22 to be tested, that is, to obtain the imaging result of the optical module 22 to be tested.

上述摄像装置30,连接有控制终端40B,控制终端40B设置为根据摄像机拍摄到的拍摄数据,确定对比度测试结果。即用于执行本发明实施例所述的对比度测试方法的各个步骤。The camera device 30 is connected with a control terminal 40B, and the control terminal 40B is configured to determine the contrast test result according to the shooting data captured by the camera. That is, it is used to execute each step of the contrast test method described in the embodiment of the present invention.

可选地,上述显示屏22还可以连接有控制终端40A,与显示屏21连接的控制终端40,用于控制显示屏21点亮、熄灭以及控制显示屏21的显示内容,的显示内容。例如,可以控制显示屏21显示对比度测试图卡。其中上述对比度测试图卡为标准对比度测试图卡,如图4所示,该测试图卡由黑白相间的测试块组成。Optionally, the above-mentioned display screen 22 can also be connected with a control terminal 40A, and the control terminal 40 connected with the display screen 21 is used to control the display content of the display screen 21 on and off and control the display content of the display screen 21 . For example, the display screen 21 can be controlled to display a contrast test chart. The above-mentioned contrast test chart is a standard contrast test chart, as shown in FIG. 4 , the test chart is composed of black and white test blocks.

可选地,测试组件20水平放置,摄像装置30垂直于测试组件20。Optionally, the test component 20 is placed horizontally, and the camera device 30 is perpendicular to the test component 20 .

可选地,测试应在暗室进行,整套系统要有一定的稳定性保证测试过程不会受到干扰。Optionally, the test should be carried out in a dark room, and the entire system must be stable to ensure that the test process will not be disturbed.

需要说明的是,在基于上述测试系统进行对比度测试时,为提高测试效率,降低测试误差,需要在测试开始前,先调整相机使得相机对焦到成像最清晰位置。并且相机曝光时间的设置应使得图像白色区域的最大灰度值介于允许范围内,例如215~235之间,以避免图像过亮或过暗对导致增加测试结果的准确性。另外,图像亮度越亮则鬼影越明显,最终测试的对比度结果则会越小。进一步地,还可以通过与摄像机连接的控制终端实时观察拍摄图像,并调整测试组件的位置,以使成像区域中的黑白格均匀分布,方便后期数据处理。It should be noted that, in order to improve the test efficiency and reduce the test error when performing the contrast test based on the above test system, it is necessary to adjust the camera to focus on the clearest imaging position before the test starts. And the exposure time of the camera should be set so that the maximum gray value of the white area of the image is within the allowable range, for example, between 215 and 235, so as to avoid the image being too bright or too dark to increase the accuracy of the test results. In addition, the brighter the image brightness, the more obvious the ghost image, and the smaller the contrast result of the final test. Furthermore, the captured images can be observed in real time through the control terminal connected to the camera, and the position of the test components can be adjusted so that the black and white grids in the imaging area are evenly distributed, which is convenient for later data processing.

在本实施例中,对比度测试设备(即上述与摄像装置连接的控制终端)可以获取摄像装置的拍摄数据,并将上述拍摄数据作为待测设备(待测光学模组)的成像图像。In this embodiment, the contrast testing equipment (that is, the above-mentioned control terminal connected to the camera device) can obtain the shooting data of the camera device, and use the above shooting data as the imaging image of the device under test (optical module under test).

具体地,上述摄像装置设置为相机,上述拍摄数据为相机拍摄的图像数据。由于在测试系统中,相机需要通过待测设备拍摄对比度测试图,因此,相机拍摄到的图像数据,即为上述待测设备对上述测试图的成像数据。Specifically, the imaging device is configured as a camera, and the shooting data is image data captured by the camera. Since in the test system, the camera needs to take a contrast test chart through the device under test, therefore, the image data captured by the camera is the imaging data of the test chart by the device under test.

进一步地,当获取到上述成像图像后,可以在对比度测试设备的显示装置中显示上述成像图像,使得用户可以基于对比度测试设备显示的上述成像图像选定目标像素点。然后基于目标像素点确定亮度阈值。Further, after the imaging image is acquired, the imaging image can be displayed on the display device of the contrast testing device, so that the user can select the target pixel based on the imaging image displayed by the contrast testing device. Then determine the brightness threshold based on the target pixel.

具体地,可以将上述成像图像以图片的形式显示于对比度测试设备的显示装置。使得用户可以在显示的图片中,选定至少两个相邻的像素点作为上述目标像素点。其中,在用户选定目标像素点是,由于成像图像受到光学模组成像特性的影响,导致中心视场的亮度最大。因此,可以查看图像中心四个黑白格交界处的像素点,并选定图像中心四个黑白格交界处的像素点作为目标像素点。当选定目标像素点后,若干目标像素点之间的亮度差小于设定数数值时,可以选择目标像素点中,亮度值小的像素点的亮度值,并向上取整作为亮度阈值。否则,提示用户重新选定目标像素点。Specifically, the above imaging image may be displayed in the form of a picture on a display device of the contrast testing device. The user can select at least two adjacent pixel points in the displayed picture as the above-mentioned target pixel points. Wherein, when the target pixel is selected by the user, since the imaging image is affected by the imaging characteristics of the optical module, the brightness of the central field of view is the largest. Therefore, you can check the pixels at the junction of the four black and white grids in the center of the image, and select the pixel at the junction of the four black and white grids in the center of the image as the target pixel. When the target pixel is selected and the luminance difference between several target pixels is less than the set value, the luminance value of the pixel with the smaller luminance value among the target pixels can be selected and rounded up as the luminance threshold. Otherwise, prompt the user to reselect the target pixel.

示例性地,若黑色区域的相邻像素点的亮度值的差小于20时,选择数值小的像素点对应的亮度值,并向上取整作为亮度阈值,如当相邻像素点的亮度值为27和42,则选择30作为亮度阈值。否则,提示用户重新选定目标像素点For example, if the difference between the brightness values of adjacent pixels in the black area is less than 20, select the brightness value corresponding to the pixel with a smaller value, and round it up as the brightness threshold, for example, when the brightness value of the adjacent pixel is 27 and 42, choose 30 as the brightness threshold. Otherwise, prompt the user to reselect the target pixel

可以理解的是,上述亮度阈值的确定方法仅作为本实施例的一种实现方案,并不用于限定本发明。例如,也可以由对比度测试设备先自动识别出测试块的交界区域,然后基于交界区域的像素点的亮度值确定上述亮度阈值。It can be understood that, the above method for determining the brightness threshold is only used as an implementation solution of this embodiment, and is not used to limit the present invention. For example, the contrast test equipment may first automatically identify the border area of the test block, and then determine the brightness threshold based on the brightness values of the pixels in the border area.

示例性地,对比度测试设备先根据图像识别算法确定上述交界区域,然后获取上述交界区域中每一像素点对应的亮度值,以计算上述交界区域中的像素点的平均亮度值,然后将上述交界区域中像素点的平均亮度值作为上述亮度阈值。Exemplarily, the contrast test device first determines the above-mentioned boundary area according to an image recognition algorithm, and then acquires the brightness value corresponding to each pixel in the above-mentioned boundary area to calculate the average brightness value of the pixels in the above-mentioned boundary area, and then the above-mentioned boundary area The average luminance value of the pixels in the area is used as the above-mentioned luminance threshold.

进一步地,在确定亮度阈值后,可以基于上述亮度阈值,确定上述成像图像中的第一像素区域和第二像素区域。Further, after the brightness threshold is determined, the first pixel area and the second pixel area in the imaging image may be determined based on the brightness threshold.

具体地,当确定亮度阈值后,可以获取所述成像图像中的每一像素点对应的所述亮度值,然后又将所述亮度值小于或者等于所述亮度阈值的像素点所在的区域,作为所述第一像素区域,将所述亮度值大于所述亮度阈值的像素点所在的区域,作为所述第二像素区域。Specifically, after the brightness threshold is determined, the brightness value corresponding to each pixel in the imaging image can be obtained, and then the area where the pixel with the brightness value is less than or equal to the brightness threshold is located is used as In the first pixel area, the area where the pixel points whose luminance value is greater than the luminance threshold is located is used as the second pixel area.

当确定上述第一像素区域和第二像素区域后,可以获取第一像素区域中每一像素点对应的亮度值,然后根据获取到的第一像素区域中每一像素点对应的亮度值计算上述第一像素区域中的像素点的第一平均亮度值。并获取第二像素区域中每一像素点对应的亮度值,然后根据获取到的第二像素区域中每一像素点对应的亮度值计算上述第二像素区域中的像素点的第一平均亮度值。After the above-mentioned first pixel area and the second pixel area are determined, the brightness value corresponding to each pixel point in the first pixel area can be obtained, and then the above-mentioned The first average brightness value of the pixels in the first pixel area. And acquire the brightness value corresponding to each pixel in the second pixel area, and then calculate the first average brightness value of the pixels in the second pixel area according to the acquired brightness value corresponding to each pixel in the second pixel area .

在确定上述第一平均亮度值和上述第二平均亮度值后,可以将第二平均亮度值与第一平均亮度值的比值,作为上述待测设备的对比度测试结果,即待测设备对应的对比度为第二平均亮度值与第一平均亮度值的比值。After determining the first average brightness value and the second average brightness value, the ratio of the second average brightness value to the first average brightness value can be used as the contrast test result of the device under test, that is, the contrast ratio corresponding to the device under test is the ratio of the second average brightness value to the first average brightness value.

可以理解的是,由于测试图卡为由黑白相间的测试块组成,因此,在上述成像图像中,根据亮度阈值确定的第一像素区域是由多个分散在成像图像中的不同位置处的第一子像素区域组成的,同样,上述第二像素区域是由多个分散在成像图像中的不同位置处的第二子像素区域组成的。因此,作为一种可选地实现方案,可以根据相邻的两个第一子像素区域和第二子像素区域对应的像素点的平均亮度值,计算子对比度。从而可以获取到多个子对比度。然后将上述多个子对比度的平均值,作为上述待测设备的对比度。It can be understood that, since the test chart is composed of black and white test blocks, in the above-mentioned imaging image, the first pixel area determined according to the brightness threshold is composed of a plurality of pixels scattered at different positions in the imaging image. Similarly, the above-mentioned second pixel area is composed of a plurality of second sub-pixel areas scattered at different positions in the imaging image. Therefore, as an optional implementation solution, the sub-contrast may be calculated according to the average brightness values of pixels corresponding to two adjacent first sub-pixel regions and second sub-pixel regions. Thereby, multiple sub-contrasts can be obtained. Then, the average value of the above multiple sub-contrast ratios is used as the contrast ratio of the device under test.

在本实施例公开的技术方案中,先获取待测设备的成像图像,根据所述成像图像确定亮度阈值,然后根据所述亮度阈值确定第一像素区域和第二像素区域,其中,所述第一像素区域中的像素点对应的亮度值小于或者等于所述亮度阈值,所述第二像素区域中的像素点对应的所述亮度值大于所述亮度阈值,并根据所述第一像素区域对应的第一平均亮度值,以及所述第二像素区域对应的第二平均亮度值,确定所述待测设备的对比度。由于可以根据平均亮度确定对比度,从而避免了根据单点亮度确定对比度时,容易因客观因素影响对比度测试结果的准确性的现象发生。这样达成了提高对比度测试结果的准确性的效果。In the technical solution disclosed in this embodiment, the imaging image of the device under test is obtained first, the brightness threshold is determined according to the imaging image, and then the first pixel area and the second pixel area are determined according to the brightness threshold, wherein the first The luminance value corresponding to the pixel in a pixel area is less than or equal to the luminance threshold, the luminance value corresponding to the pixel in the second pixel area is greater than the luminance threshold, and according to the corresponding The first average brightness value of the second pixel area and the second average brightness value corresponding to the second pixel area determine the contrast of the device under test. Since the contrast can be determined according to the average brightness, the phenomenon that the accuracy of the contrast test result is easily affected by objective factors when the contrast is determined according to the single-point brightness is avoided. This has the effect of increasing the accuracy of the contrast test results.

参照图5,基于上述实施例,在另一实施例中,上述步骤S10之后,还包括:Referring to FIG. 5, based on the above embodiment, in another embodiment, after the above step S10, further includes:

步骤S50、对所述成像图像进行预处理,以去除所述成像图像中存在渐晕的区域;Step S50, performing preprocessing on the imaging image, so as to remove the area with vignetting in the imaging image;

上述步骤S20包括:Above-mentioned step S20 comprises:

步骤S21、根据预处理后的所述成像图像确定所述亮度阈值。Step S21. Determine the brightness threshold according to the preprocessed imaging image.

在本实施例中,当获取到待测设备的成像图像后,可以先进行预处理。In this embodiment, after the imaging image of the device under test is acquired, preprocessing may be performed first.

具体地,当获取到待测设备的成像图像后,可以将该成像图像展示于对比度测试设备的显示界面中,使得用户可以通过对比度测试设备装载的图像处理软件,通过剪切等方式去除成像图像中的渐晕区域。Specifically, after the imaging image of the device under test is acquired, the imaging image can be displayed on the display interface of the contrast testing equipment, so that the user can remove the imaging image by cutting or other means through the image processing software loaded on the contrast testing equipment. The vignetting area in .

或者对比度测试设备设置有图像识别功能,可以基于对比度测试设备本端的图像识别功能识别出上述成像图像中的渐晕区域,从而自动裁剪掉成像图像中的上述渐晕区域。Or the contrast testing device is provided with an image recognition function, which can recognize the vignetting region in the imaging image based on the image recognition function of the contrast testing device itself, so as to automatically cut out the vignetting region in the imaging image.

或者对比度测试设备可以与服务器通信,并通过服务器上述的图像处理接口,调用远程图像处理功能,并通过远程图像处理功能去除成像图像中的渐晕区域。Or the contrast test device can communicate with the server, and call the remote image processing function through the above-mentioned image processing interface of the server, and remove the vignetting area in the imaging image through the remote image processing function.

或者对比度测试设备可以将上述成像图像先发送至服务器,当服务器接收到成像图像后,通过本端或者其它端的图像功能,去除上述成像图像中的渐晕区域,然后将去除渐晕区域后的成像图像反馈至上述对比度测试设备。Or the contrast test equipment can first send the above-mentioned imaging image to the server. After the server receives the imaging image, it can remove the vignetting area in the above-mentioned imaging image through the image function of the local end or other end, and then the image after removing the vignetting area The images are fed back to the contrast test equipment described above.

进一步地,对成像图像进行预存处理后,可以根据预处理后的所述成像图像确定所述亮度阈值。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 under test is acquired, preprocessing may be performed first, thus achieving the effect of improving the accuracy of the contrast test result.

可选地,参照图6,基于上述任一实施例,在又一实施例中,上述步骤S40之后,还包括:Optionally, referring to FIG. 6 , based on any of the above embodiments, in another embodiment, after the above step S40, further includes:

步骤S60、获取所述待测设备的识别标识;Step S60, acquiring the identification mark of the device under test;

步骤S70、将所述识别标识与所述对比度关联保存,以作为所述待测设备的对比度测试结果。Step S70, storing the identification mark in association with the contrast as a contrast test result of the device under test.

在本实施例中,对比度测试开始前,用户可以先输入待测试设备的识别标识,或者对比度测试设备可以通过设置于待测设备上的标签,确定待测设备的识别标识。In this embodiment, before the contrast test starts, the user may first input the identification of the device to be tested, or the contrast testing device may determine the identification of the device to be tested through a label provided on the device to be tested.

当获取到上述识别标识后,可以将将所述识别标识与所述对比度关联保存,以作为所述待测设备的对比度测试结果。After the identification is obtained, the identification may be stored in association with the contrast as a contrast test result of the device under test.

需要说明的是,所述识别标识包括所述待测设备的设备型号、设备编号和/或设备名称。It should be noted that the identification includes a device model, a device number and/or a device name of the device under test.

在本实施例中,可以自动关联保存待测设备识别标识和对比度,从而无需人工进行结果统计,这样达成了简化对比度测试步骤的效果。In this embodiment, the identification mark and the contrast of the device under test can be automatically stored in association, so that manual statistics of the results are not required, thus achieving the effect of simplifying the steps of the contrast test.

此外,本发明实施例还提出一种对比度测试设备,所述对比度测试设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的对比度测试程序,所述对比度测试程序被所述处理器执行时实现如上各个实施例所述的对比度测试方法的步骤。In addition, an embodiment of the present invention also proposes a contrast test device, the contrast test device includes a memory, a processor, and a contrast test program stored in the memory and operable on the processor, the contrast test program When executed by the processor, the steps of the contrast testing method described in the above embodiments are realized.

此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有对比度测试程序,所述对比度测试程序被处理器执行时实现如上各个实施例所述的对比度测试方法的步骤。In addition, the embodiment of the present invention also proposes a computer-readable storage medium, the computer-readable storage medium stores a contrast test program, and when the contrast test program is executed by a processor, the contrast test described in the above embodiments is realized. method steps.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, as used herein, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or system comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or system. Without further limitations, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system comprising that element.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是PC机等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disk), including several instructions to make a terminal device (which may be a PC, etc.) execute the methods described in various embodiments of the present invention.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.

Claims (6)

1.一种对比度测试方法,其特征在于,所述对比度测试方法应用于测试光学模组,包括测试系统,所述测试系统包括支撑台、测试组件、摄像装置,所述测试组件包括待测设备和显示屏,所述摄像装置设置为透过待测设备拍摄显示屏上显示的测试图卡,所述对比度测试方法包括以下步骤:1. A contrast test method, characterized in that, the contrast test method is applied to a test optical module, comprising a test system, the test system comprising a support platform, a test assembly, a camera, and the test assembly comprises a device to be tested and a display screen, the camera device is set to shoot the test chart shown on the display screen through the device under test, and the contrast test method includes the following steps: 获取待测设备的成像图像;Obtain an imaging image of the device under test; 对所述成像图像进行预处理,以去除所述成像图像中存在渐晕的区域;performing preprocessing on the imaging image, to remove the region of vignetting in the imaging image; 根据预处理后的所述成像图像确定亮度阈值;determining a brightness threshold according to the preprocessed imaging image; 根据所述亮度阈值确定第一像素区域和第二像素区域,其中,所述第一像素区域中的像素点对应的亮度值小于或者等于所述亮度阈值,所述第二像素区域中的像素点对应的所述亮度值大于所述亮度阈值;Determine the first pixel area and the second pixel area according to the brightness threshold, wherein the brightness value corresponding to the pixel in the first pixel area is less than or equal to the brightness threshold, and the pixel in the second pixel area The corresponding brightness value is greater than the brightness threshold; 根据所述第一像素区域对应的第一平均亮度值,以及所述第二像素区域对应的第二平均亮度值,将所述第二平均亮度值与所述第一平均亮度值的比值,确定为所述待测设备的对比度;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, determine the ratio of the second average brightness value to the first average brightness value is the contrast ratio of the device under test; 所述根据所述成像图像中的所述第一像素区域的第一平均亮度值,以及所述第二像素区域的第二平均亮度值,确定所述待测设备的对比度的步骤之前,还包括:Before the step of determining the contrast of the device under test according to the first average brightness value of the first pixel area in the imaging image and the second average brightness value of the second pixel area, the method further includes : 获取所述第一像素区域中的每一像素点的亮度值,并根据获取到的所述亮度值计算所述第一平均亮度值;Acquiring the luminance value of each pixel in the first pixel area, and calculating the first average luminance value according to the acquired luminance value; 获取所述第二像素区域中的每一像素点的亮度值,并根据获取到的所述亮度值计算所述第二平均亮度值;Acquiring the luminance value of each pixel in the second pixel area, and calculating the second average luminance value according to the acquired luminance value; 所述根据预处理后的所述成像图像确定亮度阈值的步骤包括:The step of determining the brightness threshold according to the preprocessed image includes: 获取所述预处理后的成像图像中目标像素点的亮度值;Acquiring the luminance value of the target pixel in the preprocessed imaging image; 根据所述目标像素点的亮度值确定所述亮度阈值;determining the brightness threshold according to the brightness value of the target pixel; 所述根据所述亮度阈值确定第一像素区域和第二像素区域的步骤包括:The step of determining the first pixel area and the second pixel area according to the brightness threshold comprises: 获取所述成像图像中的每一像素点对应的所述亮度值;Acquiring the brightness value corresponding to each pixel in the imaging image; 将所述亮度值小于或者等于所述亮度阈值的像素点所在的区域,作为所述第一像素区域,将所述亮度值大于所述亮度阈值的像素点所在的区域,作为所述第二像素区域。Taking the area where the pixels whose brightness value is less than or equal to the brightness threshold is located as the first pixel area, and using the area where the pixels whose brightness value is greater than the brightness threshold is located as the second pixel area. 2.如权利要求1所述的对比度测试方法,其特征在于,所述获取待测设备的成像图像的步骤包括:2. the contrast test method as claimed in claim 1, is characterized in that, the step of described obtaining the imaging image of equipment under test comprises: 获取摄像装置的拍摄数据,并将所述拍摄数据作为所述成像图像。The shooting data of the camera device is acquired, and the shooting data is used as the imaging image. 3.如权利要求1所述的对比度测试方法,其特征在于,所述根据所述成像图像中的所述第一像素区域的第一平均亮度值,以及所述第二像素区域的第二平均亮度值,确定所述待测设备的对比度的步骤之后,还包括:3. The contrast test method according to claim 1, wherein the first average brightness value of the first pixel area in the imaging image and the second average brightness value of the second pixel area in the imaging image are characterized in that: The brightness value, after the step of determining the contrast of the device under test, further includes: 获取所述待测设备的识别标识;Obtain the identification mark of the device under test; 将所述识别标识与所述对比度关联保存,以作为所述待测设备的对比度测试结果。The identification is stored in association with the contrast as a contrast test result of the device under test. 4.如权利要求3所述的对比度测试方法,其特征在于,所述识别标识包括所述待测设备的设备型号、设备编号和/或设备名称。4. The contrast test method according to claim 3, wherein the identification mark comprises a device model, a device number and/or a device name of the device under test. 5.一种对比度测试设备,其特征在于,所述对比度测试设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的对比度测试程序,所述对比度测试程序被所述处理器执行时实现如权利要求1至4中任一项所述的对比度测试方法的步骤。5. A kind of contrast test equipment, it is characterized in that, described contrast test equipment comprises: memory, processor and are stored on described memory and the contrast test program that can run on described processor, described contrast test program is controlled by The processor realizes the steps of the contrast testing method according to any one of claims 1 to 4 when executed. 6.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有对比度测试程序,所述对比度测试程序被处理器执行时实现如权利要求1至4中任一项所述的对比度测试方法的步骤。6. A computer-readable storage medium, characterized in that, a contrast test program is stored on the computer-readable storage medium, and when the contrast test program is executed by a processor, it is realized as described in any one of claims 1 to 4. The steps of the contrast test method described above.
CN202010810644.2A 2020-08-13 2020-08-13 Contrast test method, contrast test equipment 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 test method, contrast test equipment 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 test method, contrast test equipment 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 test method, contrast test equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111896233B (en)

Families Citing this family (5)

* 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 equipment and storage medium
CN118130056B (en) * 2024-03-12 2024-09-24 北京美屏科技有限公司 LCD display system performance test method, device, equipment and storage medium
CN118883015A (en) * 2024-07-09 2024-11-01 武汉精立电子技术有限公司 A contrast test device and method for AR equipment

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 test method, contrast test equipment and storage medium
US9369700B2 (en) Systems and methods for lens characterization
CN108683907B (en) Optical module pixel defect detection method, device and equipment
CN113992861B (en) Image processing method and image processing device
CN109919933B (en) VR equipment and its screen detection method, device, and computer-readable storage medium
US20160094770A1 (en) Image Processing Method and Apparatus, and Terminal
US20190335077A1 (en) Systems and methods for image capture and processing
CN111083458B (en) Brightness correction method, system, equipment and computer readable storage medium
WO2022105277A1 (en) Projection control method and apparatus, projection optical machine, and readable storage medium
JP2004253970A (en) Image processor, method therefor, and program thereof
CN111896232B (en) Optical machine module testing method, equipment, system and computer readable storage medium
WO2024159921A1 (en) Parameter measurement method and apparatus, electronic device, and computer storage medium
CN112383772B (en) Camera performance automatic test method and device, electronic equipment and storage medium
CN108198189B (en) Picture definition obtaining method and device, storage medium and electronic equipment
CN113473112B (en) Method for determining region of interest, shooting control method, device, equipment and medium
CN111064864A (en) Method and device for setting distortion correction parameters and endoscope system
CN108769538B (en) Automatic focusing method and device, storage medium and terminal
CN111970501A (en) Pure color scene AE color processing method and device, electronic equipment and storage medium
CN110418056A (en) An image processing method, device, storage medium and electronic device
CN112770111B (en) Device and method for identifying coincidence of optical axis of lens and center of image sensor
CN116703788A (en) Panorama processing method, device, electronic device and readable storage medium
CN108337448A (en) High-dynamic-range image acquisition method, device, terminal device and storage medium
CN112351215A (en) Photometric mode switching method and device and storage medium
WO2023087663A1 (en) Image capture method, electronic device and computer-readable storage medium
CN114760422A (en) Backlight detection method and system, electronic equipment and 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