Light source identification device, measurement device, light source identification method and program
The light source identification device uses varying brightness waveforms to synchronize light sources in three-dimensional measurement systems, enabling efficient and accurate calibration without time delays, thus improving measurement precision.
Patent Information
- Application Number
- JP2023024077
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-02-20
AI Technical Summary
Existing methods for calibrating light source parameters in three-dimensional measurement systems are inefficient when light sources are not synchronized, leading to increased calibration time and measurement errors due to overlapping pattern images.
A light source identification device that acquires imaging data of pattern images with varying brightness waveforms for each light source, using an event-based vision camera to identify the source of each pixel based on luminance waveforms, allowing for synchronization-free calibration.
Enables precise and rapid calibration of light source and camera parameters without increasing calibration time, even when light sources are not synchronized, facilitating high-precision three-dimensional measurements.
Smart Images

Figure 2024117960000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a light source identification device, a measurement device, a light source identification method, and a program. [Background technology]
[0002] A measurement device may measure the three-dimensional shape of an object using imaging result data generated by an event-based vision camera that projects light from pixels of a light source (a lighting device such as a projector) onto the surface of the object and captures the scattered light from the surface of the object. Hereinafter, the imaging result data will be referred to as "imaging data." The imaging data includes brightness change point data (event data). For example, scattered light from a minute area on the surface of the object is captured by an event-based vision sensor provided in the event-based vision camera. As a result, an event is observed in which the brightness of a pixel based on the imaging data corresponding to the position where the scattered light entered the event-based vision sensor increases.
[0003] When the position of a lit pixel in a light source (a lighting device such as a projector) is changed at a constant cycle, if the speed at which the position of the lit pixel is changed (scanning speed) is sufficiently slow compared to the time resolution of the event-based vision sensor, the event-based vision sensor can observe events caused by scattered light from tiny areas on the surface of the subject in chronological order.
[0004] A laser projection type projector equipped with MEMS (Micro Electro Mechanical Systems) that reflects laser light may be used as the light source. In this case, even if all pixels of the light source are always on, the irradiation position of the laser light on the surface of the subject changes over time as the MEMS is driven, so the event-based vision sensor can observe the event. In addition, when the positional relationship between the light source and the event-based vision sensor is known, the three-dimensional position (corresponding point) of the subject corresponding to the position where the scattered light is incident (the position where the event is observed) can be obtained in time series based on the geometric correspondence between the positions of the pixels that are on in the light source and the positions where the scattered light is incident in the event-based vision sensor (see Non-Patent Document 1).
[0005] In addition, a measurement device may measure the three-dimensional shape of a subject based on the imaging results (observation results) of scattered light from the surface of the subject onto which a pattern image (structured light) in structured illumination is projected. The measurement device determines the geometric correspondence between the position of the light source (illumination device) and the position of the event-based vision sensor based on the characteristics of the pattern image. Based on this geometric correspondence, the measurement device can determine the three-dimensional positions (corresponding points) of the subject that correspond to the positions where the scattered light is incident (positions where events are observed) in time series.
[0006] In addition to the use of 3D measurement, the pattern image is used for various purposes such as strain measurement or reflection characteristic measurement. If only one light source is used for 3D measurement, an unmeasurable area will be generated behind the subject or in the shadow. Therefore, multiple light sources may be used to avoid the occurrence of an unmeasurable area. [Prior art documents] [Non-patent literature]
[0007] [Non-Patent Document 1] Nathan Matsuda, Oliver Cossairt, Mohit Gupta, "MC3D: Motion Contrast 3D Scanning," Published 24 April 2015, 2015 IEEE International Conference on Computational Photography (ICCP). Summary of the Invention [Problem to be solved by the invention]
[0008] In order to measure the three-dimensional shape of a subject using a light source, the parameters of one or more light sources and the parameters of the camera need to be calibrated in advance.
[0009] When parameters are calibrated for the first and second cameras, if the cameras are capable of capturing an image of a calibration marker (e.g., a checkerboard), the calibration marker can be placed at any position within the camera's angle of view in real space.
[0010] Each camera simultaneously captures an image of the calibration marker. The metrology device identifies corresponding points between the image captured by the first camera and the image captured by the second camera. Based on the corresponding points, the metrology device estimates the intrinsic parameters of each camera and the relative extrinsic parameters of the cameras.
[0011] On the other hand, when the parameters of the light source and the parameters of the camera are calibrated, the measurement device can estimate the internal parameters of the camera by having the camera capture an image of a calibration marker. However, with this method, the measurement device cannot estimate the parameters of the light source.
[0012] In this case, instead of using a calibration marker, a light source projects a pattern image onto an object, and a camera captures the projected pattern image. The measurement device identifies corresponding points between the light source and the camera. Based on the corresponding points, the measurement device estimates internal parameters of the light source (illumination device) and relative external parameters between the light source and the camera.
[0013] In this method, when all parameters are estimated in one imaging opportunity, the calibration marker needs to be positioned so that the projected pattern image and the calibration marker do not overlap, which may result in a large measurement error when the light source parameters and the camera parameters are calibrated.
[0014] When the camera is an event-based vision camera, instead of using a calibration marker, an illumination device that projects a first pattern image onto the subject and a display device that can display a second pattern image may be used as the light sources. When the luminance of the pattern image displayed on the display device and the luminance of the pattern image projected from the illumination device onto the subject change over time, the measurement device detects the change points of the luminance waveforms of each pattern image as a time-series event (event sequence).
[0015] The measurement device detects change-points at the same time for all pixels of the event-based vision sensor provided in the event-based vision camera, and converts the change-point data into an image. As a result, an image of the change-point data (event data) is generated by the measurement device as an image based on the captured data (hereinafter referred to as a captured image). The measurement device calibrates parameters based on the image of the time-series change-point data.
[0016] In this case, a measurement device (light source identification device) needs to identify whether an event observed by the event-based vision camera originates from a display device or a lighting device, for example, for each pixel based on the imaging data. The measurement device separates the pattern image captured by the event-based vision camera into light sources in the captured image based on the identification result.
[0017] For example, if the projection of a first pattern image and the display of a second pattern image are performed alternately, if the event-based vision camera, lighting device, and display device are synchronized, the measurement device can identify whether the captured pattern image comes from the display device or the lighting device based on the time the event occurs.
[0018] Also, for example, even if the event-based vision camera, lighting device, and display device are not synchronized, if the interval between the display time of the pattern image and the interval between the projection time of the pattern image are sufficiently long, the measurement device can identify whether the captured pattern image originates from the display device or the lighting device based on the time the event occurs.
[0019] However, in this case, the time required for calibration becomes longer. Also, the position of the calibration board needs to be fixed during imaging. Furthermore, when multiple lighting devices are used, the pattern images projected from each lighting device may overlap partially or entirely. When the pattern images overlap partially or entirely, it is not possible to identify whether the captured pattern image originates from the display device or the lighting device based on the time of event occurrence. For these reasons, it is necessary to identify the light source used to calibrate the parameters of the 3D measurement. If the light source can be identified, the pattern image (structured light) can be separated for each light source based on the identification result.
[0020] In this way, if the light sources are not synchronized, there is a problem that it is not possible to identify the light source used to calibrate the 3D measurement parameters unless the time required for calibration is extended.
[0021] In view of the above circumstances, the present invention aims to provide a light source identification device, a measurement device, a light source identification method, and a program that are capable of identifying a light source used to calibrate 3D measurement parameters without extending the time required for calibration, even if the light sources are not synchronized. [Means for solving the problem]
[0022] One aspect of the present invention is a light source identification device that includes an acquisition unit that acquires imaging data of a pattern image projected from each light source onto a subject, the pattern image having a luminance that changes over time so that the luminance waveform differs for each light source, from a camera that captures the pattern image, and a light source identification unit that identifies the light source that projected the pattern image for each pixel based on the imaging data, based on the luminance waveform that differs for each light source.
[0023] One aspect of the present invention is a measurement device including the above-mentioned light source identification device, a feature point group generation unit that generates a first feature point group in the first pattern image of the first light source and a second feature point group in the second pattern image of the second light source based on the imaging data of the first pattern image and the second pattern image and a light source identification result, and a parameter estimation unit that estimates parameters to be calibrated based on the first feature point group and the second feature point group.
[0024] One aspect of the present invention is a light source identification method executed by a light source identification device, the light source identification method including the steps of acquiring imaging data of the pattern images, whose luminance changes over time so that the luminance waveform differs for each light source, from a camera that captures a pattern image projected from each light source onto a subject, and identifying the light source that projected the pattern image, for each pixel based on the imaging data, based on the luminance waveform, which differs for each light source.
[0025] One aspect of the present invention is a program for causing a computer to execute the steps of acquiring imaging data of a pattern image projected from each light source onto a subject from a camera that captures the pattern image, the brightness of which changes over time so that the brightness waveform differs for each light source, and identifying the light source that projected the pattern image for each pixel based on the imaging data, based on the brightness waveform that differs for each light source. Effect of the Invention
[0026] The present invention makes it possible to identify the light sources used to calibrate parameters of a three-dimensional measurement without increasing the time required for calibration, even when the light sources are not synchronized. [Brief description of the drawings]
[0027] [Figure 1] FIG. 1 is a diagram illustrating an example of the configuration of a measurement system in a first embodiment. [Diagram 2] 6 is a diagram showing a first example of the frequency of events relating to light from a first light source in the first embodiment. FIG. [Diagram 3] 6 is a diagram showing a first example of the frequency of events relating to the light of a second light source in the first embodiment. FIG. [Figure 4] 6 is a diagram showing a first example of the frequency of events relating to overlapping of light from a first light source and light from a second light source in the first embodiment. FIG. [Diagram 5] 13 is a diagram showing a second example of the frequency of events relating to the light of the first light source in the first embodiment. FIG. [Figure 6] 13 is a diagram showing a second example of the frequency of events relating to the light of a second light source in the first embodiment. FIG. [Figure 7] 13 is a diagram showing a second example of the frequency of events relating to the overlapping of light from a first light source and light from a second light source in the first embodiment. FIG. [Figure 8] 4 is a flowchart showing an operation example of the measurement system in the first embodiment. [Figure 9]13 is a diagram showing an example of the frequency of events relating to overlapping of light from a first light source and light from a second light source in the second embodiment. FIG. [Figure 10] 13 is a diagram showing an example of the frequency of events relating to the light of a first light source in the third embodiment. FIG. [Figure 11] 13 is a diagram showing an example of the frequency of events relating to the light of a second light source in the third embodiment. FIG. [Figure 12] 13 is a diagram showing an example of the frequency of events relating to overlapping of light from a first light source and light from a second light source in the third embodiment. FIG. [Figure 13] 13 is a diagram showing an example of the frequency of events relating to the light of a first light source in the fourth embodiment. FIG. [Figure 14] FIG. 13 is a diagram showing an example of the frequency of events relating to the light of a second light source in the fourth embodiment. [Figure 15] 13 is a diagram showing an example of the frequency of events relating to overlapping of light from a first light source and light from a second light source in the fourth embodiment. FIG. [Figure 16] FIG. 13 is a diagram showing an example of the frequency of events relating to the light of a first light source in the fifth embodiment. [Figure 17] FIG. 13 is a diagram showing an example of the frequency of events relating to the light of a second light source in the fifth embodiment. [Figure 18] 13 is a diagram showing an example of the frequency of events relating to overlapping of light from a first light source and light from a second light source in the fifth embodiment. FIG. [Figure 19] FIG. 23 is a diagram showing an example of the frequency of events relating to the light of the first light source in the sixth embodiment. [Figure 20] FIG. 23 is a diagram showing an example of the frequency of events relating to the light of the second light source in the sixth embodiment. [Figure 21] 23 is a diagram showing an example of the frequency of events relating to overlapping of light from a first light source and light from a second light source in the sixth embodiment. FIG. [Figure 22] FIG. 23 is a diagram showing an example of the frequency of events related to light modulated based on a linear function in the seventh embodiment. [Figure 23]FIG. 23 is a diagram showing an example of the frequency of events related to light modulated based on an exponential function in the seventh embodiment. [Figure 24] FIG. 23 is a diagram showing an example of the frequency of events relating to the light of the first light source in the seventh embodiment. [Diagram 25] FIG. 23 is a diagram showing an example of the frequency of events relating to the light of the second light source in the seventh embodiment. [Figure 26] 23 is a diagram showing an example of the frequency of events relating to overlapping of light from a first light source and light from a second light source in the seventh embodiment. FIG. [Figure 27] FIG. 2 is a diagram illustrating an example of a hardware configuration of a measurement device in each embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0028] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail with reference to the drawings. (First embodiment) FIG. 1 is a diagram showing an example of the configuration of a measurement system 1 in the first embodiment. The measurement system 1 is a system that measures the three-dimensional shape of a subject 100 (object) using structured illumination. The measurement system 1 calibrates, for example, the internal parameters of each light source, the internal parameters of the event-based vision camera, and the external parameters of each light source and the event-based vision camera in advance using illumination. The measurement system 1 measures the three-dimensional shape of the subject 100 using the previously calibrated parameters and structured illumination.
[0029] The measurement system 1 includes a first light source 2, a second light source 3, an event-based vision camera 4, a communication line 5, and a measurement device 6. The measurement system 1 may include three or more light sources. The event-based vision camera 4 includes an event-based vision sensor (not shown). The measurement device 6 includes a communication unit 61, a memory 62, a light source identification device 63, a feature point group generation unit 64, a parameter estimation unit 65, and a three-dimensional measurement unit 66. The light source identification device 63 is a device that identifies the light source of the pattern image. The pattern image is, for example, a striped pattern image. The light source identification device 63 includes an acquisition unit 631 and a light source identification unit 632.
[0030] The first light source 2 is, for example, a lighting device. The first light source 2 projects a first pattern image (first structured light) onto the subject 100. The luminance waveform of the first pattern image is time-modulated based on a predetermined first modulation function. As a result, the luminance of the first pattern image changes over time. A part of the first pattern image may be projected onto the screen of the second light source 3.
[0031] The second light source 3 is, for example, a display device. A film for reflecting the first pattern image projected onto the screen of the second light source 3 (display device) may be attached in advance. The second light source 3 displays a second pattern image (second structured light). The luminance waveform of the second pattern image is time-modulated based on a predetermined second modulation function. As a result, the luminance of the second pattern image changes over time.
[0032] Here, the first modulation function and the second modulation function are determined in advance such that the event frequency per unit time observed for the luminance waveform time-modulated based on the first modulation function differs from the event frequency per unit time observed for the luminance waveform time-modulated based on the second modulation function. The light source identification device 63 identifies the light source used for calibrating the parameters of the three-dimensional measurement based on the difference between these event frequencies.
[0033] The amplitude of the luminance waveform time-modulated based on the first modulation function and the amplitude of the luminance waveform time-modulated based on the second modulation function may both be represented by, for example, the variable "L." The period of the luminance waveform time-modulated based on the first modulation function and the period of the luminance waveform time-modulated based on the second modulation function may both be represented by, for example, the variable "a."
[0034] For example, by making the absolute value of the amount of luminance increase per unit time at the rising edge of the luminance waveform different from the absolute value of the amount of luminance decrease per unit time at the falling edge of the luminance waveform (by there being a difference), the frequency of increase events per unit time and the frequency of decrease events per unit time can be made different.
[0035] The photoelectric conversion characteristic of the event-based vision sensor of the event-based vision camera 4 is, for example, logarithmic. The event-based vision camera 4 captures images of a real space including the first pattern image projected from the first light source 2 onto the surface of the subject 100, the second pattern image displayed on the second light source 3, and the subject 100 in time series. On the imaging plane of the event-based vision sensor, a part or the whole of the first pattern image may overlap a part or the whole of the second pattern image.
[0036] The event-based vision camera 4 generates luminance change point data (event data) for each pixel based on the imaging result (observation result) of the occurrence of an event (luminance change). The event data includes the time of the event occurrence and an event code. The event code is a code that indicates whether the observed luminance change of a certain amount is a luminance increase (positive event) or a luminance decrease (negative event).
[0037] The communication unit 61 acquires from the event-based vision camera 4 event data (event occurrence time, event code) for each pixel based on the imaging data of the first pattern image and the second pattern image.
[0038] The memory 62 (event memory) stores, in chronological order, event data for each pixel based on the imaging data of the first pattern image and the second pattern image.
[0039] The acquisition unit 631 acquires event data for each pixel based on the imaging data of the first pattern image and the second pattern image from the event-based vision camera 4 via the memory 62. The light source identification unit 632 identifies the light source that projected the pattern image for each pixel based on the imaging data, based on the luminance waveform that differs for each light source. In a pixel based on the imaging data, the luminance waveform of the first light source 2 and the luminance waveform of the second light source 3 may overlap.
[0040] The feature point group generating unit 64 generates a first feature point group in the first pattern image of the first light source 2 and a second feature point group in the second pattern image of the second light source 3 based on the imaging data of the first pattern image and the second pattern image and the light source identification result. The method of generating the feature point group is not limited to a specific generation method. For example, when a checkered pattern is used as the pattern image (structured light), the captured images of the first pattern image and the second pattern image may be generated based on the imaging data, and a feature point group in the pattern image may be generated by extracting a lattice intersection group from the pattern image in the generated captured image. In addition, the generation of the captured images of the first pattern image and the second pattern image may be omitted, and the feature point group may be directly generated based on the event data for each pixel based on the imaging data. The method of generating the feature point group may be a known generation method.
[0041] The parameter estimation unit 65 (calibration parameter estimation unit) estimates the internal parameters of the event-based vision camera 4, the relative external parameters between the event-based vision camera 4 and the first light source 2, and the relative external parameters between the event-based vision camera 4 and the second light source 3 based on the group of feature points for each light source (pattern image). The parameter estimation unit 65 may estimate the relative external parameters between the first light source 2 and the second light source 3.
[0042] The parameter estimation method (calibration method) is not limited to a specific estimation method. For example, when the transformation matrix of the second light source 3 (display device) is a unit matrix, the parameter estimation unit 65 may estimate a transformation matrix between the event-based vision camera 4 and the second light source 3 based on the second feature points extracted from the second pattern image. The parameter estimation unit 65 decomposes the transformation matrix into the internal parameters (parameter matrix) of the event-based vision camera 4 and the external parameters (projection matrix) of the event-based vision camera 4 relative to the second light source 3. The parameter estimation unit 65 may estimate the external parameters of the first light source 2 relative to the second light source 3 based on the first feature points extracted from the first pattern image, the internal parameters (parameter matrix) of the event-based vision camera 4, and the external parameters (projection matrix) of the event-based vision camera 4 relative to the second light source 3. The parameter estimation method may be a known estimation method.
[0043] The three-dimensional measuring unit 66 measures the three-dimensional shape of the subject 100 based on the calibrated parameters, the first feature point group, and the second feature point group. The method of measuring the three-dimensional shape is not limited to a specific measuring method. For example, when the first pattern image is a dot pattern, each dot projected on the surface of the subject 100 may be extracted as a feature point group. The three-dimensional measuring unit 66 estimates the distance between the dot and the first light source 2 based on the radius of the dot (feature amount of the feature point). The three-dimensional measuring unit 66 estimates the distance between the dot and the first light source 2 for all dots based on the radius of the dot. The three-dimensional measuring unit 66 estimates the three-dimensional position (three-dimensional shape) for each feature point on the surface of the subject 100 based on a projection matrix obtained in advance and the distance estimation result. The method of measuring the three-dimensional shape may be a known measuring method.
[0044] Next, the measurement system 1 will be described in detail. FIG. 2 is a diagram showing a first example of the frequency of events related to the light (luminance waveform) of the first light source 2 in the first embodiment. In FIG. 2, a minute region of the first pattern image of the first light source 2 is imaged at a predetermined pixel on the imaging surface of the event-based vision sensor. In FIG. 2, the luminance waveform "luminance", "luminance (logarithm)", "increasing event" (positive event), "decreasing event" (negative event), "increasing event frequency" (frequency of positive events), and "decreasing event frequency" (frequency of negative events) are shown for the predetermined pixel. In FIG. 2, "increasing event" and "decreasing event" represent event data included in the imaging data at the pixel where the first pattern image is imaged.
[0045] The increase event frequency is the frequency of luminance increase events (the number of times a certain amount of luminance increases per unit time). In FIG. 2, the decrease event frequency in a unit time including time "t1" is, for example, "1". The decrease event frequency is the frequency of luminance decrease events (the number of times a certain amount of luminance decreases per unit time). In FIG. 2, the increase event frequency in a unit time including time "t2" is, for example, "6". Moreover, the luminance waveform illustrated in FIG. 2 is expressed as in equation (1).
[0046]
number
[0047] FIG. 3 is a diagram showing a first example of the frequency of events related to the light (luminance waveform) of the second light source 3 in the first embodiment. In FIG. 3, a minute region of the second pattern image of the second light source 3 is imaged at a predetermined pixel on the imaging surface of the event-based vision sensor. In FIG. 3, the luminance waveform "luminance", "luminance (logarithm)", "increasing event", "decreasing event", "increasing event frequency", and "decreasing event frequency" are shown for the predetermined pixel. In FIG. 3, "increasing event" and "decreasing event" represent event data included in the imaging data at the pixel where the second pattern image is imaged. Moreover, the luminance waveform shown in FIG. 3 is expressed as in Equation (2).
[0048]
number
[0049] FIG. 4 is a diagram showing a first example of the frequency of events related to the superposition of the light of the first light source 2 and the light of the second light source 3 in the first embodiment. In FIG. 4, a minute region of the first pattern image of the first light source 2 and a minute region of the second pattern image of the second light source 3 are superposed at a predetermined pixel on the imaging surface of the event-based vision sensor. In FIG. 4, for the superposed luminance waveforms, the luminance waveform "luminance", "luminance (logarithm)", "increasing event", "decreasing event", "increasing event frequency", and "decreasing event frequency" are shown for the predetermined pixel. In FIG. 4, "increasing event" and "decreasing event" represent event data included in the imaging data at the pixel where the first pattern image and the second pattern image are captured.
[0050] When the luminance waveform of the first light source 2 is predetermined as shown in Fig. 2 and the luminance waveform of the second light source 3 is predetermined as shown in Fig. 3, the light source identification unit 632 identifies the light source that caused the observed event for each pixel based on the comparison result between the maximum frequency of the increasing event frequency and the maximum frequency of the decreasing event frequency. Here, the light source identification unit 632 may identify the light source using a threshold value of the event frequency.
[0051] As illustrated in FIG. 2, when the maximum frequency of the increasing event frequency is higher than the maximum frequency of the decreasing event frequency, the light source identification unit 632 identifies the light source that caused the event observed at a specified pixel on the imaging surface of the event-based vision sensor as the first light source 2.
[0052] As illustrated in FIG. 3, when the maximum frequency of the increasing event frequency is lower than the maximum frequency of the decreasing event frequency, the light source identification unit 632 identifies the light source that caused the event observed at a specified pixel on the imaging surface of the event-based vision sensor as the second light source 3.
[0053] As illustrated in Figure 4, when the maximum frequency of an increasing event frequency is equivalent to the maximum frequency of a decreasing event frequency, the light source identification unit 632 identifies the light source that caused the event observed at a specified pixel on the imaging surface of the event-based vision sensor as the first light source 2 and the second light source 3.
[0054] Fig. 5 is a diagram showing a second example of the frequency of events relating to the light of the first light source 2 in the first embodiment. The luminance waveform shown in Fig. 5 is expressed as in equation (3).
[0055]
number
[0056] Fig. 6 is a diagram showing a second example of the frequency of events relating to the light of the second light source 3 in the first embodiment. The luminance waveform shown in Fig. 6 is expressed as in equation (4).
[0057]
number
[0058] FIG. 7 is a diagram showing a second example of the frequency of events relating to the overlapping of the light from the first light source and the light from the second light source in the first embodiment.
[0059] When the luminance waveform of the first light source 2 is predetermined as illustrated in FIG. 5 and the luminance waveform of the second light source 3 is predetermined as illustrated in FIG. 6, the light source identification unit 632 identifies the light source that caused the observed event for each pixel based on the comparison result between the maximum frequency of increasing events per unit time and the maximum frequency of decreasing events per unit time.
[0060] As illustrated in FIG. 5, when the maximum frequency of the increasing event frequency is higher than the maximum frequency of the decreasing event frequency, the light source identification unit 632 identifies the light source that caused the event observed at a specified pixel on the imaging surface of the event-based vision sensor as the first light source 2.
[0061] As illustrated in FIG. 6, when the maximum frequency of the increasing event frequency is lower than the maximum frequency of the decreasing event frequency, the light source identification unit 632 identifies the light source that caused the event observed at a specified pixel on the imaging surface of the event-based vision sensor as the second light source 3.
[0062] As illustrated in Figure 7, when the maximum frequency of an increasing event frequency is equivalent to the maximum frequency of a decreasing event frequency, the light source identification unit 632 identifies the light source that caused the event observed at a specified pixel on the imaging surface of the event-based vision sensor as the first light source 2 and the second light source 3.
[0063] Next, an example of the operation of the measurement system 1 will be described. 8 is a flowchart showing an example of the operation of the measurement system 1 in the first embodiment. The acquisition unit 631 acquires imaging data of a pattern image from the event-based vision camera 4 via the memory 62 (step S101). The light source identification unit 632 identifies the light source for each pixel based on the imaging data, based on the luminance waveform that differs for each light source (step S102).
[0064] As described above, the measuring device 6 measures the three-dimensional shape of the subject 100 based on the pattern images projected from each light source onto the subject 100. Here, pattern images whose luminance changes over time so that the luminance waveform differs for each light source are simultaneously presented for each light source in the real space including the subject 100. The acquiring unit 631 acquires imaging data of the pattern images. Since the luminance of the pattern images is modulated so that the luminance waveform differs for each light source, the luminance changes over time at the pixels of the imaging surface onto which the pattern images are projected, and event data is generated according to the amount of change in this luminance. The light source identifying unit 632 identifies the light source that projects the pattern image for each pixel based on the imaging data, based on the luminance waveform that differs for each light source. The light source identifying unit 632 identifies the light source based on the frequency of events that occur according to the luminance waveform.
[0065] This makes it possible to identify the light source used to calibrate 3D measurement parameters based on a pattern image whose brightness changes over time, without increasing the time required for calibration, even if the light sources are not synchronized.
[0066] It is possible to calibrate the parameters of unsynchronized lighting devices and event-based vision cameras with high accuracy and speed using the full range of the angles of view of the event-based vision camera and lighting devices. It is also possible to perform high-accuracy 3D measurements at high speed using multiple light sources.
[0067] It is possible to use one camera to capture multiple pattern images (calibration patterns) that are simultaneously projected or displayed in the same spatial region, and then use a measurement device to separate the pattern images for each light source. It is also possible to calibrate parameters without fixing the position of a calibration marker (e.g., a checkerboard).
[0068] Second embodiment In the second embodiment, the main difference from the first embodiment is that the amplitudes of the luminance waveforms of the light sources are different. In the second embodiment, the differences from the first embodiment will be mainly described.
[0069] 9 is a diagram showing an example of the frequency of events related to the superposition of the light of the first light source and the light of the second light source in the second embodiment. When the amplitude of the luminance waveform of each light source is different, the light source identification unit 632 may identify the light source based on the maximum frequency of the event frequency, or may identify the light source based on the average value or median value of the event frequency.
[0070] As described above, when the amplitude of the luminance waveform of each light source is different, the light source identification unit 632 may identify the light source based on the maximum event frequency, or may identify the light source based on the average or median event frequency.
[0071] This makes it possible to identify the light source used to calibrate the parameters of the 3D measurement without increasing the time required for calibration, even if the light sources are not synchronized. Also, when the maximum luminance of the pattern image (structured light) of the first light source 2 (illumination device) observed at a specific pixel on the imaging surface of the event-based vision sensor is different from the maximum luminance of the pattern image of the second light source 3 (display device) observed at the same pixel of the event-based vision sensor, the superimposed luminance waveforms are not time symmetrical, and even if the increasing event frequency and the decreasing event frequency are not equal, the light source identification unit 632 can identify the light source based on the characteristics of each event frequency.
[0072] Third embodiment In the third embodiment, the main difference between the first and second embodiments is that the phase of the first modulation function and the phase of the second modulation function are different. In the third embodiment, the difference between the first and second embodiments will be mainly described.
[0073] The superimposed luminance waveforms may be made time symmetrical by controlling the maximum luminance of the first light source 2 (illumination device) or the second light source 3 (display device) so that the frequency of events occurring in the luminance waveforms of each pattern image (each structured light) is approximately the same for each light source. In the third embodiment, the phase of the first modulation function and the phase of the second modulation function are different so that the superimposed luminance waveforms are time symmetrical.
[0074] Fig. 10 is a diagram showing an example of the frequency of events related to the light of the first light source 2 in the third embodiment. The luminance waveform shown in Fig. 10 is expressed as in equation (5).
[0075]
number
[0076] Fig. 11 is a diagram showing an example of the frequency of events relating to the light of the second light source 3 in the third embodiment. The luminance waveform shown in Fig. 11 is expressed as in equation (6).
[0077]
number
[0078] Fig. 12 is a diagram showing an example of the frequency of events relating to the superposition of the light of the first light source 2 and the light of the second light source 3 in the third embodiment. The characteristics of the event frequency based on the superposed luminance waveforms are different among the bottom row of Fig. 10, the bottom row of Fig. 11, and the bottom row of Fig. 12.
[0079] The light source identification unit 632 identifies the light source based on the characteristics of the event frequency based on the superimposed luminance waveforms. For example, when the ratio (first frequency ratio) of the increasing event frequency to the decreasing event frequency is equal to or less than a certain value, the light source identification unit 632 determines that the luminance waveform of the first light source and the luminance waveform of the second light source are superimposed. The light source identification unit 632 identifies the light source that caused the event observed in the pixel as the first light source 2 and the second light source 3.
[0080] In this case, if the average value of the increased event frequency and the average value of the decreased event frequency differ due to the difference between the maximum luminance of the first light source 2 and the maximum luminance of the second light source 3, or due to the event detection threshold in the event-based vision camera 4, the light source identification unit 632 may identify the light source by using a threshold value for the ratio of the increased event frequency to the decreased event frequency (first frequency ratio) for each pixel based on the imaging data.
[0081] For example, the light source identification unit 632 may calculate a scale coefficient as a feature based on a ratio (second frequency ratio) between the total number of increasing event frequencies in a given time period and the total number of decreasing event frequencies in the given time period. The light source identification unit 632 identifies, for each pixel, the light source that caused the event observed by the event-based vision sensor based on the scale coefficient and a threshold value.
[0082] As described above, a modulation function may be used in which there is a difference between the absolute value of the amount of change in luminance per unit time at the rise of the luminance waveform and the absolute value of the amount of change in luminance per unit time at the fall of the luminance waveform. This makes it possible to identify the light source used for calibrating the parameters of the three-dimensional measurement without increasing the time required for calibration even when the light sources are not synchronized. Furthermore, the light source identification unit 632 can identify whether the light source of the luminance waveform of each pixel is the first light source 2 or the second light source 3, or whether the light source of the luminance waveform of each pixel is both the first light source 2 and the second light source 3, based on the event sequence (time-series increase events and time-series decrease events) in one period of the luminance waveform.
[0083] (Fourth embodiment) In the fourth embodiment, when an event train for multiple periods of the luminance waveform is observable, the main difference between the first embodiment and the third embodiment is that the period of the first modulation function (luminance waveform of the first light source 2) and the period of the second modulation function (luminance waveform of the second light source 3) are different. In the fourth embodiment, the differences from the first embodiment to the third embodiment will be mainly described.
[0084] Fig. 13 is a diagram showing an example of the frequency of events related to the light of the first light source in the fourth embodiment. Fig. 14 is a diagram showing an example of the frequency of events related to the light of the second light source in the fourth embodiment. The period of the first modulation function (luminance waveform of the first light source 2) shown in Fig. 13 is shorter than the period of the second modulation function (luminance waveform of the second light source 3) shown in Fig. 14.
[0085] 15 is a diagram showing an example of the frequency of events related to the superposition of the light of the first light source and the light of the second light source in the fourth embodiment. When an event sequence for multiple periods of the luminance waveform is observable and the period of the first modulation function is different from the period of the second modulation function, the light source identification unit 632 identifies the light source based on the characteristics of the event frequency for the multiple periods. The light source identification unit 632 may identify the light source by using, for example, a pattern matching technique.
[0086] As described above, the light source identification unit 632 identifies a light source based on the characteristics of the event frequency over multiple cycles. This makes it possible to identify the light source used to calibrate the parameters of the 3D measurement without increasing the time required for calibration, even if the light sources are not synchronized.
[0087] Fifth embodiment The fifth embodiment is mainly different from the first to fourth embodiments in that the rising edge duration of the luminance waveform is the same as the falling edge duration of the luminance waveform. The fifth embodiment will be described focusing on the differences from the first to fourth embodiments.
[0088] Fig. 16 is a diagram showing an example of the frequency of events related to the light of the first light source 2 in the fifth embodiment. Fig. 17 is a diagram showing an example of the frequency of events related to the light of the second light source 3 in the fifth embodiment. In the fifth embodiment, the time length of the rising edge of the luminance waveform is the same as the time length of the falling edge of the luminance waveform. In the luminance waveform of the first light source 2 shown in Fig. 16 and the luminance waveform of the second light source 3 shown in Fig. 17, sine functions with different periods are used as the modulation functions.
[0089] 18 is a diagram showing an example of the frequency of events relating to the superposition of light from a first light source and light from a second light source in the fifth embodiment. When sine functions having different periods are used as modulation functions for the luminance waveform of the first light source 2 and the luminance waveform of the second light source 3, the light source identification unit 632 identifies the light source based on the characteristics of the event frequency for multiple periods.
[0090] As described above, the light source identification unit 632 identifies a light source based on the characteristics of the event frequency over multiple cycles. This makes it possible to identify the light source used to calibrate the parameters of the 3D measurement without increasing the time required for calibration, even if the light sources are not synchronized.
[0091] Sixth embodiment The sixth embodiment is mainly different from the first to fifth embodiments in that the type of the first modulation function and the type of the second modulation function are different. The sixth embodiment will be described focusing on the differences from the first to fifth embodiments.
[0092] Fig. 19 is a diagram showing an example of the frequency of events related to the light of the first light source 2 in the sixth embodiment. Fig. 20 is a diagram showing an example of the frequency of events related to the light of the second light source 3 in the sixth embodiment. In the sixth embodiment, the type of the first modulation function of the first light source 2 illustrated in Fig. 19 (e.g., a sine function) is different from the type of the second modulation function of the second light source 3 illustrated in Fig. 20.
[0093] Fig. 21 is a diagram showing an example of the frequency of events relating to the superposition of the light of the first light source 2 and the light of the second light source 3 in the sixth embodiment. The characteristics of the event frequency based on the superposed luminance waveforms are different among the bottom row of Fig. 19, the bottom row of Fig. 20, and the bottom row of Fig. 21.
[0094] As described above, the type of the first modulation function and the type of the second modulation function may be different, which makes it possible to identify the light source used for calibrating the parameters of the three-dimensional measurement without increasing the time required for calibration, even if the light sources are not synchronized.
[0095] Seventh embodiment The seventh embodiment is mainly different from the first to sixth embodiments in that the event frequency is controlled more finely. The seventh embodiment will be described focusing on the differences from the first to sixth embodiments.
[0096] 22 is a diagram showing an example of the frequency of events related to light modulated based on a linear function in the seventh embodiment. The event frequency may be controlled more finely by predetermining the modulation function according to the characteristics of the event-based vision sensor. Here, when an event-based vision sensor with logarithmic photoelectric conversion characteristics captures a pattern image and the modulation function of the luminance waveform of the pattern image is a linear function, the increasing event frequency and the decreasing event frequency are not constant.
[0097] 23 is a diagram showing an example of the frequency of events related to light modulated based on an exponential function in the seventh embodiment. When an event-based vision sensor with logarithmic photoelectric conversion characteristics captures a pattern image, if the modulation function of the luminance waveform of the pattern image is linear, and if the modulation function of the luminance waveform of the pattern image is exponential, the increasing event frequency and the decreasing event frequency are almost constant.
[0098] 24 is a diagram showing an example of the frequency of events relating to the light of the first light source 2 in the seventh embodiment. The modulation function of the first light source 2 is expressed, for example, as in Equation (7).
[0099]
number
[0100] 25 is a diagram showing an example of the frequency of events relating to the light of the second light source 3 in the seventh embodiment. The modulation function of the second light source 3 is expressed, for example, as in Equation (8).
[0101]
number
[0102] 26 is a diagram showing an example of the frequency of events related to the overlapping of the light of the first light source 2 and the light of the second light source 3 in the seventh embodiment. When the number of increasing events and the number of decreasing events are constant, the increasing event frequency and the decreasing event frequency are constant. The detection result of the increasing event frequency is similar to the detection result of the increasing event. The detection result of the decreasing event frequency is similar to the detection result of the decreasing event.
[0103] When the increasing event frequency and the decreasing event frequency are each constant, the ratio of the increasing event frequency to the decreasing event frequency can be expressed using a threshold "T" for determining the detection of increasing events and decreasing events, thereby simplifying the identification algorithm.
[0104] As described above, the event frequency may be finely controlled relative to the period of the intensity waveform, making it possible to identify the light sources used to calibrate the parameters of the 3D measurement without increasing the time required for calibration, even when the light sources are not synchronized.
[0105] (Modification of the seventh embodiment) In an event-based vision sensor that performs a linear conversion in low illumination or a logarithmic conversion in high illumination, the modulation function may be controlled according to the illuminance in the event-based vision sensor (the amount of scattered light incident on the pixels of the event-based vision sensor) so that the increasing event frequency and the decreasing event frequency are each constant.
[0106] Eighth embodiment The eighth embodiment is different from the first to seventh embodiments in that the first light source and the second light source are both lighting devices. The eighth embodiment will be described focusing on the differences from the first to seventh embodiments.
[0107] In the eighth embodiment, the second light source 3 is an illumination device rather than a display device. The measurement system 1 further includes a projection board (not shown). The first light source 2 projects a first pattern image onto the subject 100 and the projection board. The first pattern image is modulated based on a predetermined first modulation function. The second light source 3 projects a second pattern image onto the subject 100 and the projection board. The second pattern image is modulated based on a predetermined second modulation function.
[0108] The pattern image (structured light) is not limited to an optical image of a specific pattern. The pattern image is, for example, an optical image of a checkered pattern or a dot pattern. The first modulation function and the second modulation function are designed in the same manner as in the first embodiment.
[0109] The parameters of the first light source 2, the second light source 3, and the event-based vision camera 4 are calibrated in advance. The projection matrix corresponding to the parameters is known. The event-based vision camera 4 and the memory 62 operate in the same manner as in the first embodiment.
[0110] The acquiring unit 631 acquires the imaging data of the pattern image from the memory 62. The acquiring unit 631 records the imaging data of the pattern image in the memory 62 (event memory). The light source identifying unit 632 identifies the light source that projects the pattern image for each pixel based on the imaging data, based on the luminance waveform that differs for each light source.
[0111] The feature point group generating unit 64 operates in the same manner as in the first embodiment. The method for generating the feature point group may be a known generating method. The parameter estimating unit 65 (calibration parameter estimating unit) estimates the three-dimensional shape of the subject 100 based on the feature point group. The parameter estimating method may be a known estimation method.
[0112] As described above, when the first light source 2 is a lighting device, the second light source 3 may be a lighting device instead of a display device. This makes it possible to identify the light source used to calibrate the parameters of the three-dimensional measurement without increasing the time required for calibration, even if the light sources are not synchronized.
[0113] (Modification) A different modulation function may be used for each internal parameter (internal coordinate) of a single lighting device, which allows the light source identification unit 632 to identify which coordinate in the lighting device's internal coordinate system an event observed at each pixel of the event-based vision camera 4 corresponds to without referring to other pixels.
[0114] In each of the above embodiments, the increasing event frequency and the decreasing event frequency are compared for each pixel. In contrast, in a modified example, a threshold value for identifying the light source of the second pixel may be determined based on the increasing event frequency of the first pixel and the decreasing event frequency of the first pixel. For example, the light source identification unit 632 may calculate a histogram of the event frequency for all pixels. The light source identification unit 632 may determine a threshold value of the event frequency based on the histogram of the event frequency. The light source identification unit 632 may identify the light source using such a threshold value. For example, when a histogram of the ratio of the increasing event frequency to the decreasing event frequency is generated for each pixel for all pixels on the imaging surface, a peak caused by the light of the first light source 2, a peak caused by the light of the second light source 3, and a peak caused by the superimposed light appear in the histogram. The light source identification unit 632 determines a threshold value of the event frequency corresponding to the light of the first light source 2, a threshold value of the event frequency corresponding to the light of the second light source 3, and a threshold value of the event frequency corresponding to the superimposed light based on the position of each peak.
[0115] Furthermore, the light source identification section 632 may calculate at least one of the increasing event frequency and the decreasing event frequency for each pixel, and identify the light source based on whether or not there is a sudden change in the event frequency.
[0116] In each of the above embodiments, the light source is identified based on both the increasing event frequency and the decreasing event frequency, but the light source may be identified based on either the increasing event frequency or the decreasing event frequency.
[0117] (Hardware configuration example) FIG. 12 is a diagram showing an example of a hardware configuration of a measurement device in each embodiment. Some or all of the functional units of the measurement device are realized as software by a processor 101 such as a CPU (Central Processing Unit) executing a program stored in a memory 62 having a non-volatile recording medium (non-transient recording medium). The program may be recorded in a computer-readable recording medium. The computer-readable recording medium is, for example, a portable medium such as a flexible disk, a magneto-optical disk, a ROM (Read Only Memory), a CD-ROM (Compact Disc Read Only Memory), or a non-transient recording medium such as a storage device 103 such as a hard disk built into a computer system. The communication unit 61 executes communication with other devices (for example, an event-based vision camera).
[0118] Some or all of the functional units of the measuring device may be realized using hardware including electronic circuits (electronic circuits or circuitry) using, for example, an LSI (Large Scale Integrated circuit), an ASIC (Application Specific Integrated Circuit), a PLD (Programmable Logic Device), or an FPGA (Field Programmable Gate Array).
[0119] In the above-mentioned embodiment, the program implemented in the above-mentioned manner may depend on a single device, or may be recorded on a computer-readable recording medium, and the program recorded on the recording medium may be read into a computer system and executed to perform a predetermined process. Note that the term "computer system" here includes hardware such as an OS and peripheral devices. The term "computer system" also includes a WWW system equipped with a homepage providing environment (or display environment). The term "computer-readable recording medium" also includes a memory that holds a program for a certain period of time, such as a volatile memory (RAM) inside a computer system that becomes a server or client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line.
[0120] The above program may also be transmitted from a computer system that stores the program in a storage device or the like to another computer system via a transmission medium, or by transmission waves in the transmission medium. Here, the "transmission medium" that transmits the program refers to a medium that has the function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line. The above program may also be for realizing part of the above-mentioned functions. Furthermore, it may be a so-called difference file (difference program) that can realize the above-mentioned functions in combination with a program already recorded in the computer system.
[0121] Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and designs that do not deviate from the gist of the present invention are also included. [Industrial Applicability]
[0122] The present invention is applicable to measurement systems that use structured illumination to perform three-dimensional measurements of an object. [Explanation of symbols]
[0123] Reference Signs List 1... measurement system, 2... first light source, 3... second light source, 4... event-based vision camera, 5... communication line, 6... measurement device, 61... communication unit, 62... memory, 63... light source identification device, 64... feature point group generation unit, 65... parameter estimation unit, 66... three-dimensional measurement unit, 100... subject, 101... processor, 103... storage device, 631... acquisition unit, 632... light source identification unit
Claims
1. an acquisition unit that acquires, from a camera that captures a pattern image projected from each light source onto a subject, image data of the pattern image, the luminance of which changes over time so that the luminance waveform differs for each light source; a light source identification unit that identifies the light source that projects the pattern image for each pixel based on the imaging data, based on the luminance waveform that differs for each light source; A light source identification device comprising:
2. The light source identification device according to claim 1 , wherein the light source identification unit identifies the light source based on a frequency of events occurring in the luminance waveform.
3. 2 . The light source identification device according to claim 1 , wherein an absolute value of an amount of increase in luminance per unit time during a rising edge of the luminance waveform is different from an absolute value of an amount of decrease in luminance per unit time during a falling edge of the luminance waveform.
4. The light source identification device of claim 1 , wherein the luminance waveform is time symmetric.
5. The light source identification device according to claim 1 ; a feature point group generating unit that generates a first feature point group in the first pattern image of the first light source and a second feature point group in the second pattern image of the second light source based on the imaging data of the first pattern image and the second pattern image and a light source identification result; a parameter estimation unit that estimates a parameter to be calibrated based on the first feature point group and the second feature point group; A measuring device comprising:
6. The measurement apparatus according to claim 5 , further comprising a three-dimensional measurement unit that measures a three-dimensional shape of the subject based on the calibrated parameters, the first group of feature points, and the second group of feature points.
7. A light source identification method executed by a light source identification device, comprising: acquiring image data of the pattern images projected from the light sources onto the subject from a camera, the image data being of the pattern images whose luminance changes over time such that the luminance waveform differs for each light source; identifying the light source that projects the pattern image for each pixel based on the imaging data, based on the luminance waveform that differs for each light source; A light source identification method comprising:
8. On the computer, acquiring image data of the pattern images projected from the light sources onto a subject from a camera, the image data being of the pattern images whose luminance changes over time such that the luminance waveform differs for each light source; a step of identifying the light source that projects the pattern image for each pixel based on the imaging data based on the luminance waveform that differs for each light source; A program for executing.
Citation Information
Patent Citations
Three-dimensional shape measurement device, three-dimensional shape measurement method, and program
CN114867985A
Surface direction detection device
JP1997210653A
Three-dimensional shape measurement device, three-dimensional shape measurement method, and program
JP2020112369A
Distance measuring system and electronic apparatus
JP2021032763A
A system and a method for acquiring real-time position information of a multiple number of persons
KR1020080067089A
Cited By
Delay time detection method and system and time measurement target plate
CN119316592A
