[go: up one dir, main page]

CN105357520B - Measure the method and device of camera exposure time - Google Patents

Measure the method and device of camera exposure time Download PDF

Info

Publication number
CN105357520B
CN105357520B CN201510917155.6A CN201510917155A CN105357520B CN 105357520 B CN105357520 B CN 105357520B CN 201510917155 A CN201510917155 A CN 201510917155A CN 105357520 B CN105357520 B CN 105357520B
Authority
CN
China
Prior art keywords
light
emitting device
row
emitting
camera
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
CN201510917155.6A
Other languages
Chinese (zh)
Other versions
CN105357520A (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.)
Beijing Megvii Technology Co Ltd
Beijing Maigewei Technology Co Ltd
Original Assignee
Beijing Megvii Technology Co Ltd
Beijing Maigewei 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 Beijing Megvii Technology Co Ltd, Beijing Maigewei Technology Co Ltd filed Critical Beijing Megvii Technology Co Ltd
Priority to CN201510917155.6A priority Critical patent/CN105357520B/en
Publication of CN105357520A publication Critical patent/CN105357520A/en
Application granted granted Critical
Publication of CN105357520B publication Critical patent/CN105357520B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Exposure Control For Cameras (AREA)
  • Stroboscope Apparatuses (AREA)

Abstract

本发明提供了一种测量相机曝光时间的方法及装置。该方法包括:针对摆放在被测相机前成二维阵列的多个发光装置,按照不同的发光周期控制不同列或不同行的各发光装置依次发光和熄灭;接收被测相机所拍摄的经控制的发光装置阵列的图像;以及确定所述图像中的基准列或基准行发光装置,并基于所述基准列或基准行发光装置的发光周期计算被测相机的曝光时间,其中,所述基准列或基准行发光装置的各发光装置在所述图像中亮度最接近,或者,所述基准列或基准行发光装置在所述图像中处于发光状态的发光装置的数量不小于预定阈值。本发明提供的测量相机曝光时间的方法及装置可根据相机拍摄到的图像计算相机的曝光时间,不仅精度高而成本低且便于实现。

The invention provides a method and device for measuring camera exposure time. The method includes: for a plurality of light-emitting devices placed in front of the camera under test to form a two-dimensional array, control the light-emitting devices in different columns or rows to light up and extinguish sequentially according to different light-emitting periods; an image of the controlled light-emitting device array; and determining a reference column or reference row of light-emitting devices in the image, and calculating an exposure time of the camera under test based on the light-emitting period of the reference column or reference row of light-emitting devices, wherein the reference Each light-emitting device of the column or reference row of light-emitting devices has the closest brightness in the image, or, the number of light-emitting devices in the light-emitting state of the reference column or reference row of light-emitting devices in the image is not less than a predetermined threshold. The method and device for measuring the exposure time of the camera provided by the invention can calculate the exposure time of the camera according to the images captured by the camera, which not only has high precision, but also has low cost and is easy to implement.

Description

测量相机曝光时间的方法及装置Method and device for measuring camera exposure time

技术领域technical field

本发明涉及图像处理技术领域,具体而言涉及一种测量相机曝光时间的方法及装置。The invention relates to the technical field of image processing, in particular to a method and device for measuring camera exposure time.

背景技术Background technique

相机曝光时间是指从快门打开到关闭的时间间隔,在这一段时间内,物体可以在底片上留下影像。曝光时间是看需要而定的,不同的应用场合可能需要不同的曝光时间。在评测一款相机产品的时候,获取相机在拍摄图像时实际使用的曝光时间是很重要的。然而,很多的相机产品,尤其是USB摄像头,并没有输出它的当前曝光时间。因此,需要一种测量相机曝光时间的方法或装置。Camera exposure time is the time interval from when the shutter opens to when it closes, during which time an object can leave an image on the film. The exposure time depends on the needs, and different applications may require different exposure times. When evaluating a camera product, it is important to obtain the exposure time that the camera actually used when capturing the image. However, many camera products, especially USB cameras, do not output its current exposure time. Therefore, there is a need for a method or device for measuring camera exposure time.

发明内容Contents of the invention

针对现有技术的不足,一方面,本发明提供一种测量相机曝光时间的方法,所述方法包括:针对摆放在被测相机前成二维阵列的多个发光装置,按照不同的发光周期控制不同列或不同行的各发光装置依次发光和熄灭;接收被测相机所拍摄的经控制的发光装置阵列的图像;以及确定所述图像中的基准列或基准行发光装置,并基于所述基准列或基准行发光装置的发光周期计算所述被测相机的曝光时间,其中,所述基准列或基准行发光装置的各发光装置在所述图像中亮度最接近,或者,所述基准列或基准行发光装置在所述图像中处于发光状态的发光装置的数量不小于预定阈值。Aiming at the deficiencies of the prior art, on the one hand, the present invention provides a method for measuring the exposure time of a camera, the method comprising: for a plurality of light emitting devices arranged in a two-dimensional array in front of the camera under test, according to different light emitting periods Control the light-emitting devices in different columns or rows to emit light and turn off sequentially; receive the image of the controlled light-emitting device array captured by the camera under test; and determine the reference column or reference row of light-emitting devices in the image, and based on the The exposure time of the camera under test is calculated by the light-emitting period of the light-emitting devices of the reference column or row, wherein the brightness of each light-emitting device of the light-emitting devices of the reference column or row is the closest in the image, or the brightness of the light-emitting devices of the reference column is the closest Or the number of light-emitting devices in the light-emitting state of the reference row of light-emitting devices in the image is not less than a predetermined threshold.

在本发明的一个实施例中,用来控制各列或各行发光装置的发光周期随列数或行数的增大等比例递增。In one embodiment of the present invention, the light-emitting period used to control the light-emitting devices of each column or row increases proportionally with the increase of the number of columns or rows.

在本发明的一个实施例中,当所述图像中出现多列或多行发光装置的各发光装置亮度接近时,选择所述发光周期最大的一列或一行作为所述基准列或基准行发光装置。In one embodiment of the present invention, when multiple columns or rows of light-emitting devices appear in the image and the brightness of each light-emitting device is close, select a column or row with the largest light-emitting period as the reference column or row of light-emitting devices .

在本发明的一个实施例中,通过确定发光装置在所述图像中对应位置处的像素值是否超过预设阈值来确定发光装置是否处于发光状态。In one embodiment of the present invention, it is determined whether the light emitting device is in a light emitting state by determining whether the pixel value of the light emitting device at a corresponding position in the image exceeds a preset threshold.

在本发明的一个实施例中,所述发光装置为发光二极管。In one embodiment of the present invention, the light emitting device is a light emitting diode.

另一方面,本发明还一种测量相机曝光时间的装置,所述装置包括:控制模块,用于针对摆放在被测相机前成二维阵列的多个发光装置,按照不同的发光周期控制不同列或不同行的各发光装置依次发光和熄灭;接收模块,用于接收被测相机所拍摄的经控制的发光装置阵列的图像;以及分析模块,用于确定所述图像中的基准列或基准行发光装置,并基于所述基准列或基准行发光装置的发光周期计算所述被测相机的曝光时间,其中,所述基准列或基准行发光装置的各发光装置在所述图像中亮度最接近,或者,所述基准列或基准行发光装置在所述图像中处于发光状态的发光装置的数量不小于预定阈值。On the other hand, the present invention is also a device for measuring the exposure time of a camera. The device includes: a control module, which is used to control a plurality of light-emitting devices arranged in a two-dimensional array in front of the camera under test according to different light-emitting periods. The light-emitting devices in different columns or rows are sequentially illuminated and extinguished; the receiving module is used to receive the image of the controlled light-emitting device array captured by the camera under test; and the analysis module is used to determine the reference column or row in the image. A reference row of light-emitting devices, and calculate the exposure time of the camera under test based on the light-emitting period of the reference column or reference row of light-emitting devices, wherein the brightness of each light-emitting device of the reference column or reference row of light-emitting devices in the image is The number of light-emitting devices that are closest to, or, said reference column or reference row light-emitting device in said image in a light-emitting state is not less than a predetermined threshold.

在本发明的一个实施例中,用来控制各列或各行发光装置的发光周期随列数或行数的增大等比例递增。In one embodiment of the present invention, the light-emitting period used to control the light-emitting devices of each column or row increases proportionally with the increase of the number of columns or rows.

在本发明的一个实施例中,当所述图像中出现多列或多行发光装置的各发光装置亮度接近时,所述分析模块选择所述发光周期最大的一列或一行作为所述基准列或基准行发光装置。In an embodiment of the present invention, when there are multiple columns or rows of light-emitting devices in the image and the brightness of each light-emitting device is close, the analysis module selects a column or a row with the largest light-emitting period as the reference column or row. Reference row luminaire.

在本发明的一个实施例中,所述分析模块通过确定发光装置在所述图像中对应位置处的像素值是否超过预设阈值来确定发光装置是否处于发光状态。In one embodiment of the present invention, the analysis module determines whether the light emitting device is in a light emitting state by determining whether the pixel value of the light emitting device at a corresponding position in the image exceeds a preset threshold.

在本发明的一个实施例中,所述发光装置为发光二极管。In one embodiment of the present invention, the light emitting device is a light emitting diode.

本发明提供的测量相机曝光时间的方法及装置可以根据相机拍摄到的图像计算相机的曝光时间,不仅精度高、成本低,而且便于实现。The method and device for measuring the exposure time of the camera provided by the invention can calculate the exposure time of the camera according to the images captured by the camera, which not only has high precision and low cost, but also is easy to implement.

附图说明Description of drawings

本发明的下列附图在此作为本发明的一部分用于理解本发明。附图中示出了本发明的实施例及其描述,用来解释本发明的原理。The following drawings of the invention are hereby included as part of the invention for understanding the invention. The accompanying drawings illustrate embodiments of the invention and description thereof to explain principles of the invention.

附图中:In the attached picture:

图1示出了根据本发明实施例的、测量相机曝光时间的方法的流程图;FIG. 1 shows a flow chart of a method for measuring camera exposure time according to an embodiment of the present invention;

图2示出了根据本发明的实施例在被测相机前摆放的发光装置的二维阵列的示例;以及2 shows an example of a two-dimensional array of light emitting devices placed in front of the camera under test according to an embodiment of the present invention; and

图3示出了根据本发明实施例的、测量相机曝光时间的装置的结构框图。Fig. 3 shows a structural block diagram of an apparatus for measuring camera exposure time according to an embodiment of the present invention.

具体实施方式detailed description

在下文的描述中,给出了大量具体的细节以便提供对本发明更为彻底的理解。然而,对于本领域技术人员而言显而易见的是,本发明可以无需一个或多个这些细节而得以实施。在其他的例子中,为了避免与本发明发生混淆,对于本领域公知的一些技术特征未进行描述。In the following description, numerous specific details are given in order to provide a more thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without one or more of these details. In other examples, some technical features known in the art are not described in order to avoid confusion with the present invention.

应当理解的是,本发明能够以不同形式实施,而不应当解释为局限于这里提出的实施例。相反地,提供这些实施例将使公开彻底和完全,并且将本发明的范围完全地传递给本领域技术人员。It should be understood that the invention can be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.

在此使用的术语的目的仅在于描述具体实施例并且不作为本发明的限制。在此使用时,单数形式的“一”、“一个”和“所述/该”也意图包括复数形式,除非上下文清楚指出另外的方式。还应明白术语“组成”和/或“包括”,当在该说明书中使用时,确定所述特征、整数、步骤、操作、元件和/或部件的存在,但不排除一个或更多其它的特征、整数、步骤、操作、元件、部件和/或组的存在或添加。在此使用时,术语“和/或”包括相关所列项目的任何及所有组合。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the/the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the terms "consists of" and/or "comprising", when used in this specification, identify the presence of stated features, integers, steps, operations, elements and/or parts, but do not exclude one or more other Presence or addition of features, integers, steps, operations, elements, parts and/or groups. As used herein, the term "and/or" includes any and all combinations of the associated listed items.

为了彻底理解本发明,将在下列的描述中提出详细的步骤以及详细的结构,以便阐释本发明的技术方案。本发明的较佳实施例详细描述如下,然而除了这些详细描述外,本发明还可以具有其他实施方式。In order to thoroughly understand the present invention, detailed steps and detailed structures will be provided in the following description, so as to illustrate the technical solution of the present invention. Preferred embodiments of the present invention are described in detail below, however, the present invention may have other embodiments besides these detailed descriptions.

本发明的实施例提供测量相机曝光时间的方法,用于从相机拍摄到的图像中计算相机的曝光时间。下面结合图1详细描述该方法。图1示出了根据本发明实施例的、测量相机曝光时间的方法100的流程图。如图1所示,方法100包括如下步骤:Embodiments of the present invention provide a method for measuring camera exposure time, which is used to calculate the camera exposure time from images captured by the camera. The method is described in detail below in conjunction with FIG. 1 . Fig. 1 shows a flowchart of a method 100 for measuring camera exposure time according to an embodiment of the present invention. As shown in Figure 1, the method 100 includes the following steps:

步骤101:针对摆放在被测相机前成二维阵列的多个发光装置,按照不同的发光周期控制不同列(或不同行)的各发光装置依次发光和熄灭。Step 101: For the plurality of light-emitting devices arranged in a two-dimensional array in front of the camera under test, control the light-emitting devices in different columns (or rows) to emit light and turn off sequentially according to different light-emitting periods.

示例性地,发光装置可以为发光二极管(LED)。可以将M*N个发光二极管摆放在被测相机前形成M行N列的灯阵,并且每列的各发光二极管受控按照不同的发光周期依次发光和熄灭。或者每行的各发光二极管受控按照不同的发光周期依次发光和熄灭。Exemplarily, the light emitting device may be a light emitting diode (LED). M*N light-emitting diodes can be placed in front of the camera under test to form a light array of M rows and N columns, and each light-emitting diode in each column is controlled to light up and turn off sequentially according to different light-emitting periods. Or the light emitting diodes in each row are controlled to emit light and turn off sequentially according to different light emitting periods.

图2示出了根据本发明的实施例在被测相机前摆放的发光装置的二维阵列的示例。如图2所示,每个小圆形表示一个发光装置,发光装置为LED。在图2中,示出了M行N列的LED灯阵,为了简便,仅取M=3,下面仅示例性地描述N列中每列的各发光二极管受控按照不同的发光周期依次发光和熄灭。类似地,本领域普通技术人员可以理解,每行的各发光二极管受控按照不同的发光周期依次发光和熄灭的过程。FIG. 2 shows an example of a two-dimensional array of light emitting devices placed in front of a camera under test according to an embodiment of the present invention. As shown in FIG. 2 , each small circle represents a light emitting device, and the light emitting device is an LED. In Fig. 2, an LED lamp array with M rows and N columns is shown. For the sake of simplicity, only M=3, and the following is only an exemplary description of the light-emitting diodes in each of the N columns being controlled to emit light sequentially according to different light-emitting periods. and off. Similarly, those of ordinary skill in the art can understand that the light emitting diodes in each row are controlled to emit light and turn off sequentially according to different light emitting periods.

如图2所示,N列灯阵排成一条横向放置在被测相机(未示出)前,使得灯条处于被测相机的图像边缘。N列灯阵也可以称为N组灯阵,每组内的灯纵向排列。可以将这N组灯从左到右编号为1~N。As shown in FIG. 2 , N rows of light arrays are arranged in a horizontal line in front of the camera under test (not shown), so that the light bars are at the edge of the image of the camera under test. N rows of lamp arrays can also be referred to as N groups of lamp arrays, and the lamps in each group are arranged vertically. These N groups of lamps can be numbered as 1-N from left to right.

通过控制器,可以控制LED按预先设计好的模式依次亮起,即控制每列LED按照不同的发光周期依次发光和熄灭,由被测相机拍摄经控制的LED灯阵的图像。具体的,对于第i组的3个灯,这3个灯受控依次亮一段时间Ti,即:Through the controller, the LEDs can be controlled to light up in sequence according to the pre-designed pattern, that is, each column of LEDs can be controlled to light up and turn off in sequence according to different light-emitting cycles, and the image of the controlled LED light array can be captured by the camera under test. Specifically, for the 3 lights in the i-th group, these 3 lights are controlled to turn on for a period of time Ti in turn, that is:

0)点亮三个灯中的第一个灯;0) Turn on the first light among the three lights;

1)等待Ti时间;1) Wait for Ti time;

2)熄灭三个灯中的第一个灯,点亮三个灯中的第二个灯;2) Turn off the first light among the three lights, and turn on the second light among the three lights;

3)等待Ti时间;3) Waiting for Ti time;

4)熄灭三个灯中的第二个灯,点亮三个灯中的第三个灯;4) Turn off the second lamp in the three lamps, and turn on the third lamp in the three lamps;

5)等待Ti时间;5) Waiting for Ti time;

6)熄灭三个灯中的第三个灯,回到0)重新开始。6) Turn off the third of the three lights and go back to 0) to start over.

每组灯使用的时间Ti可以构成一个递增的等比数列,用来控制各列(或各行)发光装置的发光周期随列数(或行数)的增大等比例递增。使用等比数列可以使测量值的相对误差限在测量范围内保持一致。示例性的,T1=1/3ms,T(i+1)=1.2Ti。The time Ti used by each group of lamps can form an increasing geometric sequence, which is used to control the light-emitting period of each column (or row) of light-emitting devices to increase proportionally with the increase of the number of columns (or rows). Using a geometric sequence can make the relative error limit of the measured value consistent within the measurement range. Exemplarily, T1=1/3ms, T(i+1)=1.2Ti.

步骤102:接收被测相机所拍摄的经控制的发光装置阵列的图像。Step 102: Receive an image of the controlled light emitting device array captured by the camera under test.

示例性地,可以采用任何本领域普通技术人员已知的无线传输或有线传输技术接收被测相机所拍摄的关于经控制的发光装置阵列的图像,以用于基于被测相机所拍摄的图像确定被测相机的曝光时间。Exemplarily, any wireless transmission or wired transmission technology known to those of ordinary skill in the art can be used to receive the image captured by the camera under test about the controlled light-emitting device array, so as to determine based on the image captured by the camera under test The exposure time of the camera under test.

步骤103:确定所拍摄的图像中的基准列(或基准行)发光装置,并基于该基准列(或基准行)发光装置的发光周期计算被测相机的曝光时间,其中,该基准列(或基准行)发光装置的各发光装置在图像中亮度最接近,或者,该基准列(或基准行)发光装置在图像中处于发光状态的发光装置的数量不小于预定阈值。如果在步骤101中按列控制发光装置的发光和熄灭,则在步骤103中在所拍摄的图像中确定基准列发光装置。反之,如果在步骤101按行控制发光装置的发光和熄灭,则在步骤103中在所拍摄的图像中确定基准行发光装置。Step 103: Determine the reference column (or reference row) light-emitting device in the captured image, and calculate the exposure time of the camera under test based on the light-emitting period of the reference column (or reference row) light-emitting device, wherein the reference column (or reference row) light-emitting device Each light-emitting device of the reference row) light-emitting device has the closest brightness in the image, or the number of light-emitting devices in the light-emitting state of the reference column (or reference row) light-emitting device in the image is not less than a predetermined threshold. If in step 101 the lighting and extinguishing of the light-emitting devices is controlled column by column, then in step 103 a reference column of light-emitting devices is determined in the captured image. On the contrary, if in step 101 the light-emitting devices are controlled to turn on and off by row, then in step 103 the reference row of light-emitting devices is determined in the captured image.

在本发明的一个实施例中,可以在图像中寻找各发光装置亮度最接近的一列(或一行)作为基准列(或基准行)发光装置,示例性地,可以通过肉眼观看来判断各发光装置在图像中亮度是否接近,或者,可以通过亮度检测装置(例如,亮度传感器)与处理器等配合判断各发光装置在图像中亮度是否接近。如果按列控制发光装置的发光和熄灭,则继续参考图2的示例。在图2中,对于拍摄到的灯阵的图像,可以寻找N个灯组中三个灯在图像中的亮度最接近的一组,设其为第i组,则曝光时间的测量值就是3Ti。这是由于当灯组的变化周期(3Ti)的整数倍与曝光时间接近时,3个灯被拍摄到的亮度才会很接近。因此,可以得出对被测时间的曝光时间的一个估计。类似地,本领域普通技术人员可以理解,当按行控制发光装置的发光和熄灭时基于基准行发光装置的发光周期计算被测相机的曝光时间的过程。In one embodiment of the present invention, a column (or row) with the closest brightness of each light-emitting device can be found in the image as a reference column (or row) of light-emitting devices. For example, each light-emitting device can be judged by visual inspection. Whether the brightness in the image is close, or whether the brightness of each light emitting device in the image is close can be judged through cooperation of a brightness detection device (for example, a brightness sensor) and a processor. If the light-emitting and extinguishing of the light-emitting devices are controlled by column, continue to refer to the example of FIG. 2 . In Figure 2, for the captured light array image, we can find the group with the closest brightness of the three lights in the image among the N light groups, and set it as the i-th group, then the measured value of the exposure time is 3Ti . This is because when the integer multiple of the change period (3Ti) of the lamp group is close to the exposure time, the brightness of the three lamps will be very close to each other. Thus, an estimate of the exposure time for the measured time can be derived. Similarly, those of ordinary skill in the art can understand the process of calculating the exposure time of the camera under test based on the light-emitting period of the light-emitting devices of the reference row when the light-emitting devices are controlled by row to turn on and off.

当所拍摄的图像中出现多列发光装置的各发光装置亮度接近时,选择发光周期最大的一列(即在图2中当在多组中三个灯的亮度都很接近时,选择最右边的列)作为基准列发光装置。类似地,当所拍摄的图像中出现多行发光装置的各发光装置亮度接近时,选择发光周期最大的一行作为基准行发光装置。When the brightness of each light-emitting device of multiple rows of light-emitting devices is close in the captured image, select the column with the largest luminous period (that is, when the brightness of three lamps in multiple groups is all close in Fig. ) as the reference column light-emitting device. Similarly, when multiple rows of light-emitting devices appear in the captured image and the brightness of each light-emitting device is close, the row with the largest light-emitting period is selected as the reference row of light-emitting devices.

在所拍摄的图像中若通过肉眼寻找亮度最接近的一列(或一行)发光装置,以基于其发光周期计算被测相机曝光时间的方法可直接用肉眼读数,适用于在曝光时间精度要求不高的情况下对相机曝光时间快速进行估计的场景。若是通过亮度检测装置与处理器配合的方式寻找亮度最接近的一列(或一行)发光装置,以基于其发光周期计算被测相机曝光时间的过程可由处理器完成,示例性地,可由处理器进行一些运算得到被测相机曝光时间,实现自动化测量,精度较高。In the captured image, if the row (or row) of light-emitting devices with the closest brightness is found by the naked eye, the method of calculating the exposure time of the camera under test based on its light-emitting period can be directly read with the naked eye, which is suitable for applications where the accuracy of the exposure time is not high Scenarios where the camera exposure time is estimated quickly without . If the brightness detection device cooperates with the processor to find a column (or row) of light emitting devices with the closest brightness, the process of calculating the exposure time of the camera under test based on its lighting cycle can be completed by the processor, for example, can be performed by the processor Some calculations get the exposure time of the camera under test to realize automatic measurement with high precision.

在本发明的另一个实施例中,可以在所拍摄的图像中寻找处于发光状态的发光装置数量不小于预定阈值的一列(或一行)发光装置作为基准列(或基准行)装置。例如,以按行控制发光装置的发光和熄灭为示例,控制发光装置阵列按预先设计好的模式点亮和熄灭。示例性地,将N*M个LED摆成M行N列,其中N>=4,M>=1。每i行j列的灯可以在时间段j*Ti~(j+1)*Ti、(j+N)*Ti~(j+N+1)*Ti、(j+2N)*Ti~(j+2N+1)*Ti、……内亮起,其中,Ti是每一行相同的一个时间参数,随i以等比数列的方式递增。示例性的,Ti=1ms*Ni/2In another embodiment of the present invention, a row (or a row) of light-emitting devices whose number of light-emitting devices in the light-emitting state is not less than a predetermined threshold can be found in the captured image as a reference column (or row) of devices. For example, taking controlling the lighting and extinguishing of the light-emitting devices by row as an example, the array of light-emitting devices is controlled to be turned on and off in a pre-designed pattern. Exemplarily, N*M LEDs are arranged in M rows and N columns, where N>=4, M>=1. The lamps in each i row and j column can be in the time period j*Ti~(j+1)*Ti, (j+N)*Ti~(j+N+1)*Ti, (j+2N)*Ti~( j+2N+1)*Ti, ... light up, wherein, Ti is the same time parameter in each row, and increases with i in the form of a geometric sequence. Exemplarily, Ti=1 ms*N i/2 .

在拍摄的图像中,示例性地,可以通过确定发光装置在图像中对应位置处的像素值是否超过预设阈值来确定发光装置是否处于发光状态。例如,该预设阈值为200,则当任一个LED灯在所拍摄的图像中的对应位置处的像素值大于200时,确定该LED灯是点亮状态,反之未点亮。In the captured image, for example, whether the light-emitting device is in a light-emitting state can be determined by determining whether the pixel value of the light-emitting device at a corresponding position in the image exceeds a preset threshold. For example, if the preset threshold is 200, then when the pixel value of any LED light at the corresponding position in the captured image is greater than 200, it is determined that the LED light is on, otherwise it is not on.

令Si为每一行处于点亮状态的灯的数量,则可寻找到使Si不小于预定阈值的最小的i,例如使Si>=3的最小的i,则Si*Ti为测量值。Si>=3这个条件可以确保被测值大于Ti。由于只有在相机曝光时被点亮的灯才会被拍摄到,所以在该实施例中的方法可以测得相机曝光时间。该实施例中的方法适用于对曝光时间的估计有较高要求,或要求自动化测量的场景。根据本发明上述实施例的测量相机曝光时间的方法根据相机拍摄到的图像计算相机的曝光时间,不仅精度高、成本低,而且便于实现。Let Si be the number of lighted lamps in each row, then the smallest i that makes Si not less than a predetermined threshold can be found, for example, the smallest i that makes Si>=3, then Si*Ti is the measured value. The condition of Si>=3 can ensure that the measured value is greater than Ti. Since only the light that is turned on when the camera is exposed will be photographed, the method in this embodiment can measure the camera exposure time. The method in this embodiment is suitable for scenarios that have high requirements for estimation of exposure time or require automatic measurement. The method for measuring camera exposure time according to the above-mentioned embodiments of the present invention calculates the camera exposure time according to the images captured by the camera, which not only has high precision and low cost, but also is easy to implement.

根据本发明的另一方面,还提供了测量相机曝光时间的装置。图3示出了根据本发明实施例的测量相机曝光时间的装置300的结构框图。如图3所示,装置300包括控制模块301、接收模块302以及分析模块303。其中,控制模块301可以包括处理器,用于针对摆放在被测相机前成二维阵列的多个发光装置,按照不同的发光周期控制不同列(或不同行)的各发光装置依次发光和熄灭;接收模块302可以包括网线接口、USB接口以及相应的控制器,用于接收被测相机所拍摄的经控制的发光装置阵列的图像;分析模块303可以包括处理器,用于确定所拍摄的图像中的基准列(或基准行)发光装置,并基于该基准列(或基准行)发光装置的发光周期计算被测相机的曝光时间。其中,该基准列(或基准行)发光装置的各发光装置在图像中亮度最接近,或者,该基准列(或基准行)发光装置在图像中处于发光状态的发光装置的数量不小于预定阈值。According to another aspect of the present invention, a device for measuring camera exposure time is also provided. Fig. 3 shows a structural block diagram of an apparatus 300 for measuring camera exposure time according to an embodiment of the present invention. As shown in FIG. 3 , the device 300 includes a control module 301 , a receiving module 302 and an analysis module 303 . Wherein, the control module 301 may include a processor, which is used to control the light emitting devices in different columns (or rows) to emit light and Off; the receiving module 302 may include a network cable interface, a USB interface and a corresponding controller for receiving the image of the controlled light emitting device array captured by the camera under test; the analysis module 303 may include a processor for determining the captured image The reference column (or reference row) light-emitting device in the image, and the exposure time of the camera under test is calculated based on the light-emitting period of the reference column (or reference row) light-emitting device. Wherein, each light-emitting device of the reference column (or reference row) of light-emitting devices has the closest brightness in the image, or, the number of light-emitting devices in the reference column (or reference row) of light-emitting devices that are in a light-emitting state in the image is not less than a predetermined threshold .

在本发明的一个实施例中,用来控制各列(或各行)发光装置的发光周期随列数(或行数)的增大等比例递增。In one embodiment of the present invention, the light-emitting period used to control each column (or each row) of the light-emitting device increases proportionally with the increase of the number of columns (or rows).

在本发明的一个实施例中,当所拍摄的图像中出现多列(或多行)发光装置的各发光装置亮度接近时,分析模块303选择发光周期最大的一列(或一行)作为基准列(或基准行)发光装置。In one embodiment of the present invention, when multiple columns (or rows) of light-emitting devices appear in the captured image and the brightness of each light-emitting device is close, the analysis module 303 selects a column (or row) with the largest light-emitting period as the reference column (or row) Reference row) light emitting device.

在本发明的一个实施例中,分析模块303通过确定发光装置在图像中对应位置处的像素值是否超过预设阈值来确定发光装置是否处于发光状态。In one embodiment of the present invention, the analysis module 303 determines whether the light emitting device is in the light emitting state by determining whether the pixel value of the corresponding position of the light emitting device in the image exceeds a preset threshold.

在本发明的一个实施例中,发光装置为发光二极管。In one embodiment of the present invention, the light emitting device is a light emitting diode.

可以参考图1描述的实施例理解上述每个模块操作的具体过程,此处不再赘述。本发明实施例的各个模块可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的测量相机曝光时间的装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在存储载体上提供,或者以任何其他形式提供。The specific process of the operation of each module above can be understood with reference to the embodiment described in FIG. 1 , which will not be repeated here. Each module of the embodiment of the present invention may be realized by hardware, or by a software module running on one or more processors, or by a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the device for measuring camera exposure time according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a storage carrier, or provided in any other form.

本发明已经通过上述实施例进行了说明,但应当理解的是,上述实施例只是用于举例和说明的目的,而非意在将本发明限制于所描述的实施例范围内。此外本领域技术人员可以理解的是,本发明并不局限于上述实施例,根据本发明的教导还可以做出更多种的变型和修改,这些变型和修改均落在本发明所要求保护的范围以内。本发明的保护范围由附属的权利要求书及其等效范围所界定。The present invention has been described through the above-mentioned embodiments, but it should be understood that the above-mentioned embodiments are only for the purpose of illustration and description, and are not intended to limit the present invention to the scope of the described embodiments. In addition, those skilled in the art can understand that the present invention is not limited to the above-mentioned embodiments, and more variations and modifications can be made according to the teachings of the present invention, and these variations and modifications all fall within the claimed scope of the present invention. within the range. The protection scope of the present invention is defined by the appended claims and their equivalent scope.

Claims (8)

  1. A kind of 1. method for measuring the camera exposure time, it is characterised in that methods described includes:
    For being placed in before tested camera into multiple light-emitting devices of two-dimensional array, different lines are controlled according to different light periods Or each light-emitting device luminous and extinguishing successively do not gone together;
    Receive the image of the array of light emitting devices through control captured by the tested camera;And
    Determine the reference column or reference row light-emitting device in described image, and based on the reference column or reference row light-emitting device Light period calculates the time for exposure of the tested camera,
    Wherein, reference column or the reference row light-emitting device be the brightness in described image of each light-emitting device it is immediate one row or A line, or be the maximum row or one of light period in the immediate multiple row of each light-emitting device brightness in described image or multirow OK;Or the quantity of the reference column or reference row the light-emitting device light-emitting device in luminance in described image is not Less than predetermined threshold.
  2. 2. the method as described in claim 1, it is characterised in that for control it is each row or each row light-emitting device light period with The increase equal proportion of columns or line number is incremented by.
  3. 3. method as claimed in claim 2, it is characterised in that by determining light-emitting device corresponding position in described image Pixel value whether exceed predetermined threshold value and determine whether light-emitting device is in luminance.
  4. 4. the method as described in any one of claim 1-3, it is characterised in that the light-emitting device is light emitting diode.
  5. 5. a kind of device for measuring the camera exposure time, it is characterised in that described device includes:
    Control module, for for being placed in before tested camera into multiple light-emitting devices of two-dimensional array, according to different luminous Periodic Control different lines or each light-emitting device luminous and extinguishing successively do not gone together;
    Receiving module, for receiving the image of the array of light emitting devices through control captured by the tested camera;And
    Analysis module, for determining reference column or reference row light-emitting device in described image, and it is based on the reference column or base There won't be any problem the light period of light-emitting device calculates the time for exposure of the tested camera,
    Wherein, reference column or the reference row light-emitting device be the brightness in described image of each light-emitting device it is immediate one row or A line, or be the maximum row or one of light period in the immediate multiple row of each light-emitting device brightness in described image or multirow OK;Or the quantity of the reference column or reference row the light-emitting device light-emitting device in luminance in described image is not Less than predetermined threshold.
  6. 6. device as claimed in claim 5, it is characterised in that for control it is each row or each row light-emitting device light period with The increase equal proportion of columns or line number is incremented by.
  7. 7. device as claimed in claim 6, it is characterised in that the analysis module is by determining light-emitting device in described image Whether the pixel value of middle corresponding position exceedes predetermined threshold value to determine whether light-emitting device is in luminance.
  8. 8. the device as described in any one of claim 5-7, it is characterised in that the light-emitting device is light emitting diode.
CN201510917155.6A 2015-12-10 2015-12-10 Measure the method and device of camera exposure time Active CN105357520B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510917155.6A CN105357520B (en) 2015-12-10 2015-12-10 Measure the method and device of camera exposure time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510917155.6A CN105357520B (en) 2015-12-10 2015-12-10 Measure the method and device of camera exposure time

Publications (2)

Publication Number Publication Date
CN105357520A CN105357520A (en) 2016-02-24
CN105357520B true CN105357520B (en) 2017-12-26

Family

ID=55333368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510917155.6A Active CN105357520B (en) 2015-12-10 2015-12-10 Measure the method and device of camera exposure time

Country Status (1)

Country Link
CN (1) CN105357520B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900834B (en) * 2018-07-25 2019-08-23 南京富锐光电科技有限公司 A kind of high speed camera time for exposure and lose frame measuring device and method
CN108668127B (en) * 2018-08-01 2019-09-27 昆山丘钛微电子科技有限公司 Imaging device time for exposure test device
CN111726538B (en) * 2019-03-20 2021-10-01 北京初速度科技有限公司 Image exposure parameter measurement system and target equipment
CN113225551B (en) * 2021-05-07 2022-11-22 中国人民解放军63660部队 Camera exposure time detection method based on calibration lamp
CN114007062B (en) * 2021-10-29 2024-08-09 上海商汤临港智能科技有限公司 Measurement system, method, device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009156704A (en) * 2007-12-26 2009-07-16 Toshiba Corp Display panel brightness measuring device, brightness measuring method, and display device
CN102892027A (en) * 2012-09-29 2013-01-23 中国科学院光电技术研究所 System and method for measuring frame delay time of photographic system of optical measurement equipment
CN103676453A (en) * 2012-09-11 2014-03-26 北京航天计量测试技术研究所 Method and device for measuring shutter delay time of camera
CN104737070A (en) * 2012-10-12 2015-06-24 精工爱普生株式会社 Method, display device, and device for measuring shutter time lag; method for manufacturing camera; method for measuring camera display delay; and device for measuring display delay
CN104796691A (en) * 2015-04-28 2015-07-22 广州计量检测技术研究院 Digital camera shutter speed detection device and detection method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009156704A (en) * 2007-12-26 2009-07-16 Toshiba Corp Display panel brightness measuring device, brightness measuring method, and display device
CN103676453A (en) * 2012-09-11 2014-03-26 北京航天计量测试技术研究所 Method and device for measuring shutter delay time of camera
CN102892027A (en) * 2012-09-29 2013-01-23 中国科学院光电技术研究所 System and method for measuring frame delay time of photographic system of optical measurement equipment
CN104737070A (en) * 2012-10-12 2015-06-24 精工爱普生株式会社 Method, display device, and device for measuring shutter time lag; method for manufacturing camera; method for measuring camera display delay; and device for measuring display delay
CN104796691A (en) * 2015-04-28 2015-07-22 广州计量检测技术研究院 Digital camera shutter speed detection device and detection method

Also Published As

Publication number Publication date
CN105357520A (en) 2016-02-24

Similar Documents

Publication Publication Date Title
CN105357520B (en) Measure the method and device of camera exposure time
RU2013141929A (en) IMAGE FORMING DEVICE AND MANAGEMENT METHOD
JP6322335B2 (en) Appearance inspection device
JP2012238596A5 (en)
JP2011095403A5 (en) Imaging apparatus and light emission control method
CN106257916A (en) Information processor and information processing method
JP2013167870A5 (en)
JP6556013B2 (en) PROCESSING DEVICE, PROCESSING SYSTEM, IMAGING DEVICE, PROCESSING METHOD, PROGRAM, AND RECORDING MEDIUM
JP7187192B2 (en) Controllers, accessories, imaging devices and imaging systems
CN105873495A (en) Light source device
TW200610424A (en) Uniformity and brightness measurement in oled displays
CN102628678B (en) Three-dimensional measuring apparatus, method for three-dimensional measurement
CN104080239A (en) Lighting control system and lighting control method
JP2015197744A5 (en)
JP2002290988A5 (en)
US10533845B2 (en) Measuring device, measuring method, system and manufacturing method
JP2019027921A5 (en)
JP2020036227A (en) Imaging timing control device, imaging system, and imaging method
JP2017161374A (en) PROCESSING DEVICE, PROCESSING SYSTEM, IMAGING DEVICE, PROCESSING METHOD, PROGRAM, AND RECORDING MEDIUM
JP2018500576A (en) Optical measurement configuration
JP2005354199A5 (en)
JP2019184710A5 (en) Imaging device and its control method and program
JP2019144183A (en) Three-dimensional coordinate measuring device and method
JP7074617B2 (en) Shooting timing control device, imaging system and imaging method
CN111726540B (en) Image exposure parameter measuring method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100190 Beijing, Haidian District Academy of Sciences, South Road, No. 2, block A, No. 313

Applicant after: BEIJING KUANGSHI TECHNOLOGY Co.,Ltd.

Applicant after: MEGVII (BEIJING) TECHNOLOGY Co.,Ltd.

Address before: 100190 Beijing, Haidian District Academy of Sciences, South Road, No. 2, block A, No. 313

Applicant before: BEIJING KUANGSHI TECHNOLOGY Co.,Ltd.

Applicant before: PINHOLE (BEIJING) TECHNOLOGY Co.,Ltd.

GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method and device for measuring camera exposure time

Effective date of registration: 20230404

Granted publication date: 20171226

Pledgee: Shanghai Yunxin Venture Capital Co.,Ltd.

Pledgor: BEIJING KUANGSHI TECHNOLOGY Co.,Ltd.|MEGVII (BEIJING) TECHNOLOGY Co.,Ltd.

Registration number: Y2023990000191

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20171226

Pledgee: Shanghai Yunxin Venture Capital Co.,Ltd.

Pledgor: BEIJING KUANGSHI TECHNOLOGY Co.,Ltd.|MEGVII (BEIJING) TECHNOLOGY Co.,Ltd.

Registration number: Y2023990000191