Three-dimensional measuring device
By using a combination of a digital micromirror device and an event camera in a three-dimensional measurement device, the polarity and time difference of the event data are used to calculate the fringe pattern information, which solves the problem that the event camera cannot directly measure the brightness value and realizes three-dimensional measurement of the measurement object. High-speed measurement of shapes.
Patent Information
- Application Number
- CN202380021390.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-14
- Filing Date
- 2023-01-17
- Publication Date
- 2024-09-27
AI Technical Summary
Existing three-dimensional measurement devices cannot directly measure the brightness value when using the event data output by the event camera, resulting in the inability to effectively measure the three-dimensional shape of the measurement object.
By configuring a digital micromirror device (DMD) to form an array of mirrors, control the ON/OFF of the incident light to project a prescribed stripe pattern, and use the event data output by the event camera to calculate pixels based on the polarity and time difference of the event data unit stripe pattern information to achieve three-dimensional shape measurement.
The information amount of event data is increased, the measurement time is shortened, and the three-dimensional shape of the measurement object is measured at high speed.
Smart Images

Figure CN118715414A
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims as a basic application Japanese Patent Application No. 2022-038861 filed on March 14, 2022, the disclosure of which is incorporated by reference into this application. Technical Field
[0003] The present disclosure relates to a three-dimensional measuring device for measuring the three-dimensional shape of a measurement object. Background Art
[0004] In the past, as a three-dimensional measuring device for measuring the three-dimensional shape of a measured object, for example, a device using a phase shift method is known. The phase shift method is a method in which a plurality of stripe pattern images after phase shifting are projected to perform three-dimensional measurement on a measured object onto which the stripe pattern images are projected. As a technology for performing three-dimensional measurement using the phase shift method, a three-dimensional measuring device disclosed in the following patent document 1 is known. The three-dimensional measuring device assigns stripes of each phase to light of different wavelengths, projects the synthesized stripe pattern image onto the measured object, and photographs the measured object onto which the stripe pattern image is projected using a color camera. Furthermore, the time required to measure the three-dimensional shape is shortened by extracting each color component from the photographed image and performing phase calculation in one shot.
[0005] Prior art literature
[0006] Patent Literature
[0007] Patent Document 1: Japanese Patent No. 3723057
[0008] Patent Document 2: U.S. Patent Application Publication No. 2016 / 0227135 Summary of the invention
[0009] However, as a technology for generating an image of a measurement object at a higher speed, an event camera disclosed in the above-mentioned patent document 2 is known. The event camera is a brightness value differential output camera developed based on the structure of the biological retina, and is configured to sense brightness changes for each pixel and output its coordinates, time, and polarity of brightness changes. According to such a structure, since the event camera has the characteristic of not outputting pixel information without brightness changes, that is, redundant data (event data) like existing cameras, it is possible to generate an image of the measurement object at a higher speed by reducing the amount of data communication and lightening image processing.
[0010] However, in a captured image of a measurement object generated using event data output from an event camera, even if the presence or absence of brightness changes in pixel units can be understood from the captured image, the brightness value cannot be directly measured. Therefore, in three-dimensional measurement methods such as the phase shift method using brightness values, there is a problem that the three-dimensional shape of the measurement object cannot be measured.
[0011] The present disclosure has been made to solve the above-mentioned problems, and an object thereof is to provide a structure capable of measuring the three-dimensional shape of a measurement object using event data.
[0012] In order to achieve the above purpose, the three-dimensional measuring device has:
[0013] a projection unit that projects a predetermined fringe pattern onto the object to be measured;
[0014] an imaging unit that images a measurement object onto which a predetermined fringe pattern is projected;
[0015] a measuring unit that measures a three-dimensional shape of a measurement object by a phase shift method using fringe pattern information obtained from an image captured by the imaging unit; and
[0016] a control unit, wherein the control unit controls the projection unit,
[0017] The control unit controls the ON / OFF of the reflection of incident light by a digital micromirror device (DMD) in which a plurality of reflectors are arranged in an array for each reflector, so that the projection unit projects a predetermined fringe pattern.
[0018] The control unit sets the ON / OFF time point of reflection per unit time for each reflector according to a predetermined stripe pattern.
[0019] The imaging unit includes an imaging element that outputs event data, and generates a captured image based on the event data output from the imaging element, wherein the event data includes two-dimensional point data corresponding to pixels having brightness changes when receiving light and the positions of the pixels are determined.
[0020] The imaging element is configured to output positive polarity event data in the case of a brightening brightness change, and to output negative polarity event data in the case of a darkening brightness change, and not to output next event data until a prescribed time shorter than the unit time has passed since the event data was output,
[0021] The measuring unit obtains stripe pattern information in pixel units in the captured image based on the time difference between the output time points of previous event data and subsequent event data output from the imaging element within a unit time, and at least one of the polarity of the previous event data and the polarity of the subsequent event data.
[0022] In the above structure, the projection unit projects a predetermined stripe pattern on the measurement object by controlling the ON / OFF of the reflection of the incident light of the DMD in which a plurality of reflectors are arranged in an array shape for each reflector by the control unit. The control unit sets the ON / OFF time point of the above reflection within a unit time for each reflector according to the predetermined stripe pattern. The imaging unit has an imaging element that outputs event data, and the event data includes two-dimensional point data corresponding to a pixel with brightness change when receiving light and the position of the pixel is determined. The imaging element is configured to output positive polarity event data in the case of a brightening brightness change, and output negative polarity event data in the case of a darkening brightness change, and does not output the next event data until a predetermined time shorter than the above unit time has passed since the event data was output. When the measuring unit uses the stripe pattern information obtained from the image captured by the imaging unit and measures the three-dimensional shape of the measurement object by a phase shift method, the stripe pattern information is obtained in pixel units in the captured image based on the time difference between the output time points of the previous event data and the subsequent event data output from the imaging element within the above-mentioned unit time, and at least one of the polarity of the previous event data and the polarity of the subsequent event data.
[0023] Thus, by controlling at least one of the polarity of the previous event data and the polarity of the subsequent event data, the amount of information obtained by outputting the event data can be increased compared to a case where the polarity is not controlled. That is, since the amount of information obtained in the same unit time increases, the unit time can be shortened even when the same amount of information is expressed, so that not only the three-dimensional shape of the measurement object can be measured using the event data, but also the three-dimensional measurement of the measurement object using the event data can be accelerated.
[0024] In one embodiment of the present disclosure, the measuring unit obtains the above-mentioned stripe pattern information in pixel units in the captured image based on the time difference between the output time points of previous event data and subsequent event data output from the capturing element within a unit time, the polarity of the previous event data, and the polarity of the subsequent event data.
[0025] This makes it possible to further increase the amount of information obtained by outputting the event data, and thus further speed up the three-dimensional measurement of the object to be measured using the event data. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The above and other objects, features and advantages of the present disclosure will become more apparent through reference to the accompanying drawings and the following detailed description. The accompanying drawings are:
[0027] Figure 1 This is a block diagram showing a schematic configuration of a three-dimensional measuring device according to the first embodiment.
[0028] Figure 2 This is an explanatory diagram for explaining a state in which a fringe pattern for a general phase shift method is projected onto a measurement object.
[0029] Figure 3 This is a diagram for explaining three-dimensional measurement using the phase shift method.
[0030] Figure 4A This is an explanatory diagram for explaining the R color light emitting state, the G color light emitting state, and the B color light emitting state at a certain pixel level when a stripe pattern is projected.
[0031] Figure 4B It is right Figure 4A An explanatory diagram illustrating the R color light emitting state, the G color light emitting state, and the B color light emitting state at different pixel levels.
[0032] Figure 5 This is an explanatory diagram for explaining the output state of event data when the polarity is not controlled.
[0033] Figure 6 This is an explanatory diagram for explaining the output state of event data whose polarity is controlled by switching the reflective mirror of the DMD element during the dead time.
[0034] Figure 7 (A) is an explanatory diagram for explaining the output state of event data for each of the R color light emitting state, the G color light emitting state, and the B color light emitting state in the first embodiment, and is a diagram showing a case where the polarity is not controlled; Figure 7 (B) is an explanatory diagram for explaining the output state of event data for each of the R color light emitting state, the G color light emitting state, and the B color light emitting state in the first embodiment, and is a diagram showing a situation where the end point polarity is controlled.
[0035] Figure 8 (A) is an explanatory diagram for explaining the output state of event data for each of the R color light emitting state, the G color light emitting state, and the B color light emitting state in the second embodiment, and is a diagram showing a case where the polarity is not controlled; Figure 8 (B) is an explanatory diagram for explaining the output state of event data for each of the R color light-emitting state, the G color light-emitting state, and the B color light-emitting state in the second embodiment, and is a diagram showing the situation where the starting point polarity and the end point polarity are controlled. DETAILED DESCRIPTION
[0036] [First embodiment]
[0037] Hereinafter, a first embodiment in which the three-dimensional measuring device of the present disclosure is embodied will be described with reference to the drawings.
[0038] The three-dimensional measuring device 10 according to the present embodiment is a device for measuring the three-dimensional shape of a measuring object R. Figure 1 and Figure 2 As shown in FIG. 1 , the device is configured to include: a control unit 11 for managing overall control, a projection unit 20 for projecting a predetermined fringe pattern for a phase shift method onto a measurement object R, a photographing unit 30 for photographing the measurement object R onto which the predetermined fringe pattern is projected, and a measuring unit 40 for measuring the three-dimensional shape of the measurement object R based on the photographed image. The three-dimensional measuring device 10 configured in this way is assembled in the hand of a robot, for example, to measure the three-dimensional shape of the measurement object R such as a workpiece that moves relatively at high speed relative to the hand. Here, relative movement refers to the relative movement between the movement of the three-dimensional measuring device 10 assembled in the hand of the robot and the high-speed movement of the measurement object R. When the position of the three-dimensional measuring device 10 is fixed, the relative movement is the movement of the measurement object R.
[0039] It should be noted that in Figure 2 In the figure, for the sake of convenience, certain prescribed stripe patterns are simplified and illustrated up to the 13th stripe. More specifically, since the usual stripe pattern is represented by a sine wave pattern, the light and dark parts of the stripe pattern have the same width, but Figure 2 In the figure, for the convenience of explanation, the width of the dark part is reduced and represented by a line. In addition, the number of stripes is also 13 or more in the embodiment, but is abbreviated to 13 stripes.
[0040] The control unit 11 is mainly composed of a microcomputer, and has a CPU, a system bus, and an input / output interface, etc., and constitutes an information processing device together with a storage unit composed of a ROM, a RAM, a nonvolatile memory, etc. In addition to pre-stored programs related to robot control in a manner that can be executed by the control unit 11, the storage unit also pre-stores programs related to control of the projection unit 20 and programs for executing control processing using the three-dimensional measurement results of the measurement unit 40, etc.
[0041] The projection unit 20 is a so-called digital light processing (DLP) projector, which is controlled by the control unit 11 and projects a predetermined stripe pattern described later by reflecting light from a light source through a digital micromirror device (DMD) element. The DMD element is an element that arranges fine mirrors of each pixel of the image projected on the screen in an array, and is configured to turn on / off the light directed to the screen in microseconds in a manner that changes the angle of each mirror. That is, the projection unit 20 performs the following functions: the control unit 11 controls the DMD that arranges a plurality of mirrors in an array to reflect the incident light, and projects a predetermined stripe pattern. Therefore, the grayscale of the reflected light changes according to the ratio of the time when each mirror is turned on to the time when each mirror is turned off, thereby enabling grayscale display based on the image data of the projected image.
[0042] In such a structure, the longer the emission time of the single pulse emission that emits light once per unit time ensured for each emission state, the brighter the emission state is, so the emission state can be determined based on the emission time. Figure 2 , if the upper left is set to (1, 1) and the lower right is set to (k, l), the projection unit 20 has a reflector corresponding to k×l pixels (for example, 1140×912). In addition, for example, when R (red), G (green), and B (blue) are prepared as light incident on the DMD element, the R color luminous state in which the R color is reflected by the reflector and emits light, the G color luminous state in which the G color is reflected by the reflector and emits light, and the B color luminous state in which the B color is reflected by the reflector and emits light are repeated in a short prescribed cycle, and the respective luminous times are adjusted separately, thereby enabling a color image to be projected. Therefore, the control unit 11 performs the following function: according to the above-mentioned prescribed stripe pattern, the ON / OFF time point of reflection within a unit time is set for each reflector.
[0043] The photographing unit 30 is a so-called event camera, which has a photographing element that outputs event data (specifically, two-dimensional point data, time, and polarity of brightness change), and is configured to generate a captured image based on the event data output from the photographing element, and the event data includes two-dimensional point data corresponding to pixels with brightness changes when receiving light and the positions of the pixels are determined. Therefore, for each pixel unit in the captured image, when receiving light and generating a brightness change that becomes brighter, the photographing unit 30 outputs positive polarity (positive brightness change) event data, and when the light disappears and generates a brightness change that becomes darker, the photographing unit 30 outputs negative polarity (negative brightness change) event data. By drawing the two-dimensional point data of a plurality of event data output within a certain period as points on a predetermined plane, image data obtained by photographing the measurement object can be generated, and the photographing unit 30 is configured to output the image data or event data (two-dimensional point data, time, and polarity of brightness change) generated as described above to the measuring unit 40.
[0044] The measuring unit 40 is controlled by the control unit 11 and measures the three-dimensional shape of the measuring object R by a phase shift method based on an image obtained by the imaging unit 30 imaging the measuring object R on which a predetermined fringe pattern is projected from the projection unit 20 .
[0045] Generally, in the phase shift method, based on a grid image (fringe image) obtained by projecting a predetermined fringe pattern (a pattern in which the brightness changes periodically in a first direction and the brightness does not change in a second direction orthogonal to the first direction) onto the measurement object R and photographing it, a phase value θ corresponding to a value obtained by deformation of the surface shape of the measurement object R is obtained, and thus a sinusoidal wave pattern determined by the brightness value I (x, y, n) according to the following calculation formula 1 is used. That is, when the number of phase shifts is set to N, the brightness value I (x, y, n) of the N phase-shifted grid images (fringe images) is expressed by calculation formula 1.
[0046] [Calculation formula 1]
[0047] I(x,y,n)=a(x,y)cos{θ(x,y)+2πn / N}+b(x,y)
[0048] Among them, point (x, y) is a point in the grid image, a(x, y) represents the brightness amplitude, b(x, y) represents the background brightness, θ(x, y) represents the phase value of the grid with n=0, and the distance z to the point (x, y) is measured based on the phase value θ(x, y) calculated from the brightness values I(x, y, n) of N grid images.
[0049] Specifically, for example, when three grid images are obtained in one cycle based on the above-mentioned R color light emitting state, G color light emitting state, and B color light emitting state, N=3, and the brightness value I(x, y, 0) in the R color light emitting state, the brightness value I(x, y, 1) in the G color light emitting state, and the brightness value I(x, y, 2) in the B color light emitting state are obtained based on the captured image. In this case, the prescribed stripe pattern used for the phase shift method is configured so that the phases of the sine wave pattern composed only of R color, the sine wave pattern composed only of G color, and the sine wave pattern composed only of B color are shifted by 2π / 3.
[0050] When the brightness values I(x, y, 0), I(x, y, 1), and I(x, y, 2) at the point (x, y) in the captured image are obtained, the measuring unit 40 obtains the phase value θ(x, y) using the calculation formula 1, and measures the distance z to the point (x, y) based on the phase value θ(x, y) obtained as described above. In this way, by measuring the distance z of each point (x, y) of the captured object R, the three-dimensional shape of the object R can be measured.
[0051] For example, in the request Figure 3 In the case of the distance z of point P1, the phase value θ of point P1 and the information of which stripe the point P1 belongs to (stripe number) are calculated based on the N images captured by the imaging unit 30 in a state where the predetermined stripe pattern is moved N times from the projection unit 20 and projected. If the angle θp1 of the projection unit 20 and the angle θc1 of the imaging unit 30 are calculated based on the phase value θ and stripe number calculated as described above, the distance z of point P1 can be calculated by triangulation because the distance (parallax L) between the projection unit 20 and the imaging unit 30 is known. Similarly, Figure 3 The distance z of point P2 can be obtained by triangulation based on the angle θp2 of the projection unit 20 and the angle θc2 of the imaging unit 30 obtained from the phase value θ of point P2 obtained from the N captured images and the fringe number. By performing this calculation over the entire measurement area, three-dimensional measurement can be performed.
[0052] Here, the three-dimensional measurement process performed by the measuring unit 40 when measuring the three-dimensional shape of the measurement target R using the phase shift method will be described in detail.
[0053] In this embodiment, an event camera is used as an imaging unit for accurately imaging a high-speed relatively moving measurement object R. In such a structure, event data corresponding to pixels with brightness changes are output, but since the event data does not include brightness values, it is not possible to directly obtain brightness values (I(x, y, 0), I(x, y, 1), I(x, y, 2)) required for the phase shift method.
[0054] On the other hand, after positive polarity event data is output at the time when light emission starts, negative polarity event data is output at the time when light emission ends, so the longer the time difference between the output of positive polarity event data and the output of negative polarity event data, the brighter it is. Therefore, the brightness value can be calculated based on the time difference between the output of positive polarity event data and the output of negative polarity event data in pixel units in the captured image.
[0055] For example, at a certain pixel level, Figure 4A As shown in the example, it is assumed that the R color light emitting state, the G color light emitting state, and the B color light emitting state are repeated at a predetermined period of 3T (unit time T). Figure 4A , Figure 4B and the following Figure 5 In the figures, the output of the positive polarity event data is indicated by an upward arrow, and the output of the negative polarity event data is indicated by a downward arrow.
[0056] In such a light emitting state, positive polarity event data is output at the time when R color light emission starts (refer to Figure 4A t11), outputs negative polarity event data at the time when the R color light emission ends (refer to Figure 4A Then, at the time when the G color light emission starts, the positive polarity event data is output (refer to Figure 4A t13), outputs negative polarity event data at the time when the G color light emission ends (refer to Figure 4A After that, the positive polarity event data is output at the time when the B color light emission starts (refer to Figure 4A t15), outputs negative polarity event data at the time when B color luminescence ends (refer to Figure 4A t16).
[0057] In addition, for example, in Figure 4A The pixels in different pixel levels, such as Figure 4B In the example, positive polarity event data is output at the time when R color light emission starts (refer to Figure 4B t21), outputs negative polarity event data at the time when the R color light emission ends (refer to Figure 4B Then, at the time when the G color light emission starts, the positive polarity event data is output (refer to t22). Figure 4B t23), outputs negative polarity event data at the time when the G color light emission ends (refer to Figure 4B Then, at the time when the B color light emission starts, the positive polarity event data is output (refer to t24). Figure 4B t25), outputs negative polarity event data at the time when B color luminescence ends (refer to Figure 4B t26).
[0058] Here, since the longer the time from the start time of R color emission to the end time of R color emission, the brighter the R color, the brightness value of the R color can be obtained based on the time from the start time of R color emission to the end time of R color emission. Similarly, the brightness value of the G color can be obtained based on the time from the start time of G color emission to the end time of G color emission, and the brightness value of the B color can be obtained based on the time from the start time of B color emission to the end time of B color emission.
[0059] Therefore, the brightness value (brightness information) can be obtained based on the time difference between the output of the positive polarity event data and the output of the negative polarity event data in units of pixels in the captured image. Figure 4A In the example, for the R color luminous state, the brightness value I(x, y, 0) in the R color luminous state can be obtained based on the time difference between the output of the positive polarity event data and the output of the negative polarity event data, i.e., t12-t11. Similarly, the brightness value I(x, y, 1) in the G color luminous state and the brightness value I(x, y, 2) in the B color luminous state can be obtained based on the time difference t14-t13 and the time difference t16-t15. The three-dimensional shape of the measurement object can be measured by the phase shift method using each brightness value obtained as described above. In other words, the three-dimensional shape of the measurement object can be measured using event data.
[0060] Next, a configuration that can realize high-speed three-dimensional measurement by utilizing the polarity of event data according to the present embodiment will be described below.
[0061] In each pixel unit, when a brightening brightness change exceeding the first threshold (bright side threshold) TH1 occurs, positive polarity event data is output through the imaging unit 30, and when a darkening brightness change less than the second threshold (dark side threshold) TH2 occurs due to the disappearance of the light, negative polarity event data is output through the imaging unit 30.
[0062] Specifically, in Figure 5In the example, in a certain pixel (xm, yn), if the amount of light received at time t31 (the voltage generated by the light reception) exceeds the first threshold value TH1 because the reflector of the corresponding DMD element of the projection unit 20 becomes the ON state at the beginning of the unit time T, the previous event data is output with positive polarity. Then, after a dead time ΔTd shorter than the unit time T has passed, the first threshold value TH1 and the second threshold value TH2 are reset. If the amount of light received at time t32 is less than the second threshold value TH2 because the reflector of the above-mentioned DMD element becomes the OFF state before the unit time T has passed, the subsequent event data is output with negative polarity. Thereafter, after the dead time ΔTd has passed, the first threshold value TH1 and the second threshold value TH2 are reset. The dead time ΔTd is set to a specified time that is sufficiently short relative to the unit time T, and the next event data is not output from the output of the event data until the dead time ΔTd has passed.
[0063] In this way, when the positive polarity preceding event data and the negative polarity following event data are alternately output, the polarity of the event data cannot be controlled and the polarity of the event data cannot be made meaningful.
[0064] In contrast, in the present disclosure, in addition to the time difference between the output time points of the previous event data and the subsequent event data, the amount of information obtained by outputting the event data can be increased by controlling the polarity of the event data.
[0065] For example, in contrast to a structure in which the polarity of event data is not controlled and 1ms units are used as one piece of information and 8-bit information is expressed within 256ms, in a structure in which the polarity of subsequent event data (hereinafter also referred to as end point polarity) is controlled, information changes when the end point polarity is positive or negative, and therefore 16-bit information can be expressed within 256ms. That is, by controlling the end point polarity, the time can be shortened by half even when expressing the same 8-bit information, thereby enabling high-speed three-dimensional measurement.
[0066] For example, to control the endpoint polarity to positive polarity, such as Figure 6As shown, after the reflector of the corresponding DMD element of the projection unit 20 becomes the ON state at the beginning of the unit time T, the reflector of the above-mentioned DMD element is turned into the OFF state within the dead time ΔTd. Thus, in the imaging unit 30, after the previous event data is output with positive polarity due to the amount of light received at time t41 exceeding the first threshold value TH1, the first threshold value TH1 and the second threshold value TH2 newly set after the dead time ΔTd are set based on the DMD-OFF state. Then, if the amount of light received at time t42 exceeds the above-mentioned first threshold value TH1 due to the reflector of the above-mentioned DMD element turning into the ON state again, the subsequent event data is controlled to be output with positive polarity.
[0067] In this way, the same positive polarity event data can be continuously output by switching the ON / OFF state of each mirror of the DMD element within the dead time ΔTd at the beginning of the unit time T. That is, by controlling the end point polarity of the event data according to the ON / OFF state of each mirror of the DMD element in the dead time ΔTd, the amount of information obtained by the output of the event data can be increased (multiplied).
[0068] When a stripe pattern for controlling the end point polarity as described above (hereinafter also referred to as a stripe pattern for polarity control) is projected from the projection unit 20 and the grid image is captured by the imaging unit 30, the measuring unit 40 obtains the stripe pattern information Is(x, y, n) corresponding to the brightness value I(x, y, n) for N phase-shifted grid images, and obtains the phase value θ(x, y) using the following calculation formula 2 based on the stripe pattern information Is(x, y, n) obtained as described above.
[0069] [Calculation formula 2]
[0070] Is(x,y,n)=a(x,y)cos{θ(x,y)+2πn / N}+b(x,y)
[0071] In this embodiment, based on the time difference ΔTi(x, y, n) between the previous event data and the subsequent event data, and the value F1(x, y, n) determined according to the polarity of the subsequent event data (end point polarity), the stripe pattern information Is(x, y, n) is calculated according to the following calculation formula 3.
[0072] [Calculation formula 3]
[0073] Is(x,y,n)=ΔTi(x,y,n)+F1(x,y,n)
[0074] It should be noted that, in this embodiment, if the polarity of the subsequent event data is positive, F1 (x, y, n) is the value of the unit time T, and if the polarity of the subsequent event data is negative, F1 (x, y, n) is 0.
[0075] Here, refer to Figure 7 , a specific example of achieving high-speed three-dimensional measurement by controlling the endpoint polarity of event data is described.
[0076] When the endpoint polarity is not controlled, the unit time T is 256ms, the output time difference of the event data in the R color luminous state is 208ms, the output time difference of the event data in the G color luminous state is 152ms, and the output time difference of the event data in the B color luminous state is 48ms. Figure 7 In the example (A) in FIG. 1 , positive polarity previous event data and negative polarity subsequent event data are output alternately. In this case, I(x, y, 0) is a value equivalent to 208 ms, I(x, y, 1) is a value equivalent to 152 ms, and I(x, y, 2) is a value equivalent to 48 ms.
[0077] In contrast, in order to obtain the equivalent of Figure 7 The information of the output time difference in (A) is the premise, such as Figure 7 As shown in (B), when the endpoint polarity is controlled and the unit time T is set to half, that is, 128ms, if the output time difference of the event data in the R color luminous state is 80ms, and the polarity of the subsequent event data is positive, then based on calculation formula 3, Is(x, y, 0) is equivalent to a value of 208ms (80ms + 128ms), which is the same value as I(x, y, 0) when the endpoint polarity is not controlled. Similarly, if the output time difference of the event data in the G color luminous state is 24ms, and the polarity of the subsequent event data is positive, then based on calculation formula 3, Is(x, y, 1) is equivalent to a value of 152ms (24ms + 128ms), which is the same value as I(x, y, 1) when the endpoint polarity is not controlled. In addition, if the output time difference of the event data in the B-color luminous state is 48ms, and the polarity of the subsequent event data is negative, based on calculation formula 3, Is(x, y, 2) is equivalent to a value of 48ms (48ms+0ms), which is the same value as I(x, y, 2) without controlling the endpoint polarity. In this way, even if the unit time T is set to half the time, the same amount of information can be obtained by controlling the endpoint polarity of the event data, and high-speed three-dimensional measurement can be achieved.
[0078] Therefore, it is necessary to generate a stripe pattern for polarity control irradiated from the projection unit 20 so that Is(x, y, n) can be obtained based on the above calculation formula 3. The control unit 11 controls the projection unit 20 to project the stripe pattern for polarity control generated as described above, and instructs the measurement unit 40 at a predetermined time point to indicate the following information, that is, information related to the stripe pattern for polarity control projected as described above. In the measurement unit 40 that receives such an instruction, the stripe pattern information Is(x, y, n) of the N phase-shifted grid images captured by the imaging unit 30 is obtained as described above, and the phase value θ(x, y) is obtained using the above calculation formula 2 based on the stripe pattern information Is(x, y, n) obtained as described above, so that the three-dimensional shape of the measurement object R can be measured.
[0079] As described above, in the three-dimensional measuring device 10 according to the present embodiment, the projection unit 20 controls the ON / OFF of the reflection of the incident light by the DMD in which the plurality of reflectors are arranged in an array shape for each reflector through the control unit 11, so as to project a predetermined stripe pattern on the measurement object R. The control unit 11 sets the ON / OFF time point of the reflection within the unit time for each reflector. The imaging unit 30 includes an imaging element that outputs event data, the event data including two-dimensional point data corresponding to a pixel having a brightness change when receiving light and the position of the pixel being determined, and the imaging element is configured to output positive polarity event data in the case of a brightness change that becomes brighter, output negative polarity event data in the case of a brightness change that becomes darker, and not output the next event data until a predetermined time shorter than the above-mentioned unit time has passed since the event data was output. When the measuring unit 40 uses the stripe pattern information obtained from the captured image of the imaging unit 30 and measures the three-dimensional shape of the measurement object R by the phase shift method, it obtains the above-mentioned stripe pattern information in pixel units in the captured image based on the time difference between the output time points of the previous event data and the subsequent event data output from the imaging element within the above-mentioned unit time, and the polarity of the subsequent event data (end point polarity).
[0080] In this way, since the polarity of the subsequent event data (end point polarity) can be controlled, the amount of information obtained by outputting the event data can be increased compared to the case where the polarity is not controlled. That is, since the amount of information obtained in the same unit time increases, the unit time can be shortened even when the same amount of information is expressed, so that not only the three-dimensional shape of the measurement object R can be measured using the event data, but also the three-dimensional measurement of the measurement object R using the event data can be accelerated.
[0081] It should be noted that, as a variation of this embodiment, it is not limited to controlling the polarity of the subsequent event data (end point polarity), and the amount of information obtained by outputting the event data can also be increased by controlling the polarity of the previous event data (hereinafter, also referred to as the starting point polarity). In this way, since the amount of information obtained in the same unit time is increased (doubled), even when the same amount of information is expressed, the unit time can be shortened, so that the three-dimensional measurement of the measurement object R using the event data can be accelerated.
[0082] [Second Embodiment]
[0083] Next, a three-dimensional measuring device according to a second embodiment will be described with reference to the drawings.
[0084] In the second embodiment, in addition to controlling the polarity of subsequent event data (end point polarity), the polarity of previous event data (start point polarity) is also controlled to further increase the speed of three-dimensional measurement, which is different from the first embodiment described above. Therefore, the same reference numerals are given to the structural parts that are substantially the same as those in the first embodiment, and their descriptions are omitted.
[0085] In this embodiment, in addition to controlling the time difference between the output time points of two event data (previous event data and subsequent event data), the polarity of each event data is controlled to increase the amount of information obtained through the output of the event data, thereby achieving further speed-up of three-dimensional measurement.
[0086] Therefore, in the present embodiment, when the polarity of the previous event data to be output next and the polarity of the subsequent event data output previously are controlled to be the same polarity, in order to output the subsequent event data, the state of the reflector of the DMD element of the projection unit 20 is further switched within the dead time ΔTd when the reflector of the DMD element is switched to the ON state or the OFF state. Thus, for example, when the polarity of the subsequent event data output previously is positive polarity, the polarity of the previous event data to be output next can also be the same positive polarity. That is, the polarity of the subsequent event data (end point polarity) and the polarity of the previous event data (start point polarity) can be controlled separately.
[0087] Furthermore, in this embodiment, based on the time difference ΔTi(x, y, n) between the previous event data and the subsequent event data, and the value F2(x, y, n) determined according to the starting point polarity and the end point polarity, the stripe pattern information Is(x, y, n) is calculated according to the following calculation formula 4.
[0088] [Calculation formula 4]
[0089] Is(x,y,n)=ΔTi(x,y,n)+F2(x,y,n)
[0090] It should be noted that in this embodiment, if the starting point polarity is positive and the end point polarity is negative, then F2(x, y, n) is a value three times the unit time T; if the starting point polarity is positive and the end point polarity is positive, then F2(x, y, n) is a value twice the unit time T; if the starting point polarity is negative and the end point polarity is positive, then F2(x, y, n) is a value per unit time T; if the starting point polarity is negative and the end point polarity is negative, then F2(x, y, n) is 0.
[0091] Here, refer to Figure 8 , a specific example of achieving high-speed three-dimensional measurement by controlling the starting point polarity and end point polarity of event data is described.
[0092] Figure 8 (A) and the above Figure 7 The same as (A) in the figure, when the starting point polarity and the ending point polarity are not controlled, the unit time T is 256ms, the output time difference of the event data in the R color light-emitting state is 208ms, the output time difference of the event data in the G color light-emitting state is 152ms, and the output time difference of the event data in the B color light-emitting state is 48ms, it shows a state in which the previous event data of the positive polarity and the subsequent event data of the negative polarity are output alternately.
[0093] In contrast, in order to obtain the equivalent of Figure 8 The information of the output time difference in (A) is the premise, such as Figure 8As shown in (B), when the starting point polarity and the end point polarity are controlled and the unit time T is set to 1 / 4 of 64ms, if the output time difference of the event data in the R color light-emitting state is 16ms, the starting point polarity is positive and the end point polarity is negative, then based on calculation formula 4, Is(x, y, 0) is equivalent to a value of 208ms (16ms+192ms), which is the same value as I(x, y, 0) when the starting point polarity and the end point polarity are not controlled. Similarly, if the output time difference of the event data in the G color light-emitting state is 24ms, the starting point polarity is positive and the end point polarity is positive, then based on calculation formula 4, Is(x, y, 1) is equivalent to a value of 152ms (24ms+128ms), which is the same value as I(x, y, 1) when the starting point polarity and the end point polarity are not controlled. In addition, if the output time difference of the event data in the B-color luminous state is 48ms, the starting point polarity is negative and the end point polarity is negative, then based on calculation formula 4, Is(x, y, 2) becomes a value equivalent to 48ms (48ms+0ms), which becomes the same value as I(x, y, 2) without controlling the starting point polarity and the end point polarity. In this way, even if the unit time T is set to 1 / 4 of the time, the same amount of information can be obtained by separately controlling the starting point polarity and the end point polarity of the event data, which can achieve further high-speed three-dimensional measurement.
[0094] Therefore, it is necessary to generate a stripe pattern for polarity control irradiated from the projection unit 20 so that Is(x, y, n) can be obtained based on the above calculation formula 4. The control unit 11 controls the projection unit 20 to project the stripe pattern for polarity control generated as described above, and instructs the measurement unit 40 at a predetermined time point to indicate the following information, i.e., information related to the stripe pattern for polarity control projected as described above. In the measurement unit 40 that receives such an instruction, the stripe pattern information Is(x, y, n) of the N phase-shifted grid images captured by the imaging unit 30 is obtained as described above, and the phase value θ(x, y) is obtained using the above calculation formula 2 based on the stripe pattern information Is(x, y, n) obtained as described above, so that the three-dimensional shape of the measurement object R can be measured.
[0095] As described above, in the three-dimensional measuring device 10 involved in this embodiment, the measuring unit 40 obtains the above-mentioned stripe pattern information in pixel units in the captured image based on the time difference between the output time points of the previous event data and the subsequent event data output from the imaging element within a unit time, and the polarity of the previous event data (starting point polarity) and the polarity of the subsequent event data (end point polarity).
[0096] This can further increase the amount of information obtained by outputting event data compared to the first embodiment in which only the end point polarity (start point polarity) is controlled, thereby further speeding up three-dimensional measurement of the object to be measured using event data.
[0097] It should be noted that the present disclosure is not limited to the above-mentioned embodiments, and may be specifically as follows, for example. (1) The stripe pattern information Is(x, y, n) in the above-mentioned first embodiment is not limited to the value F1(x, y, n) determined according to the polarity of the subsequent event data (end point polarity) and the time difference ΔTi(x, y, n) between the previous event data and the subsequent event data obtained by the above-mentioned calculation formula 3, and may also be other values determined according to the end point polarity, and the time difference ΔTi(x, y, n). As the above-mentioned other values, for example, the following situation can also be imagined, "If the polarity of the subsequent event data is positive, then F1(x, y, n) is designed to be a constant value of +0.5 or a constant value of -0.5. This part depends on how the designer links the combination of the time difference ΔTi(x, y, n) and the end point polarity with the stripe pattern information Is(x, y, n).
[0098] In the modified example of the first embodiment, the stripe pattern information Is(x, y, n) may also be obtained based on other values determined according to the polarity (starting point polarity) of previous event data and the time difference ΔTi(x, y, n).
[0099] (2) The stripe pattern information Is(x, y, n) in the above-mentioned second embodiment is not limited to being calculated based on the value F2(x, y, n) determined according to the polarity of the previous event data (starting point polarity) and the polarity of the subsequent event data (end point polarity), and the time difference ΔTi(x, y, n) between the previous event data and the subsequent event data by the above-mentioned calculation formula 4, and can also be calculated based on other values determined according to the starting point polarity and the end point polarity, and the time difference ΔTi(x, y, n). As other values mentioned above, for example, the following design is also envisioned: "If the starting point polarity is positive and the end point polarity is negative, F2(x, y, n) is 0.75, if the starting point polarity is positive and the end point polarity is positive, F2(x, y, n) is 0.5, if the starting point polarity is negative and the end point polarity is positive, F2(x, y, n) is 0.25, if the starting point polarity is negative and the end point polarity is negative, F2(x, y, n) is 0". This part depends on how the designer links the combination of the three points of time difference ΔTi(x, y, n), starting point polarity, and end point polarity to the stripe pattern information Is(x, y, n).
[0100] (3) The three-dimensional measuring device 10 is not limited to being moved in a state assembled in the hand of a robot to measure the three-dimensional shape of a relatively moving object to be measured, and can also be used in a fixed state to measure the three-dimensional shape of an object to be measured moving on a conveyor line, for example.
[0101] (4) The three-dimensional measuring device 10 may be configured as an information processing terminal in which the projection unit 20 and the imaging unit 30 are independent of the measuring unit 40 , and the measuring unit 40 can communicate with the projection unit 20 and the imaging unit 30 wirelessly or by wire.
[0102] (5) The predetermined stripe pattern moved N times and projected from the projection unit 20 is not limited to being composed of the R light emitting state, the G light emitting state, and the B light emitting state under the premise of N=3, but may also be composed of periodically changing bright and dark parts.
[0103] The above examples illustrate the embodiments, structures, and methods of the three-dimensional measurement device and the three-dimensional measurement method involved in the present disclosure, but the embodiments, structures, and methods involved in the present disclosure are not limited to the above embodiments, structures, and methods. For example, embodiments, structures, and methods obtained by appropriately combining the technical parts disclosed in different embodiments, structures, and methods are also included in the scope of the embodiments, structures, and methods of the present disclosure.
Claims
1. A three-dimensional measuring device, wherein: have: A projection unit (20) which projects a predetermined stripe pattern onto a measurement object; an imaging unit (30) for imaging the object to be measured on which the prescribed stripe pattern is projected; a measuring unit (40) for measuring the three-dimensional shape of the object to be measured by a phase shift method using fringe pattern information obtained from the image captured by the imaging unit (30); and a control unit (11), the control unit controlling the projection unit (20), The control unit (11) controls ON / OFF of a digital micromirror device (DMD) that arranges a plurality of the reflectors in an array for each reflector, and the projection unit (20) projects the predetermined stripe pattern. The control unit (11) sets the ON / OFF time point of the reflection within a unit time for each of the reflectors according to the predetermined stripe pattern. The imaging unit (30) includes an imaging element that outputs event data, and generates the captured image based on the event data output from the imaging element, wherein the event data includes two-dimensional point data corresponding to pixels having brightness changes when receiving light and the positions of the pixels are determined. The imaging element is configured to output positive polarity event data in the case of a brightening brightness change, and to output negative polarity event data in the case of a darkening brightness change, and not to output next event data until a prescribed time shorter than the unit time has passed since the event data was output, The measuring unit (40) obtains the stripe pattern information in pixel units in the captured image based on the time difference between the output time points of previous event data and subsequent event data output from the capturing element within the unit time, and at least one of the polarity of the previous event data and the polarity of the subsequent event data.
2. The three-dimensional measuring device according to claim 1, wherein: The measuring unit (40) obtains the stripe pattern information in pixel units in the captured image based on the time difference between the output time points of the previous event data and the subsequent event data output from the capturing element within the unit time, the polarity of the previous event data, and the polarity of the subsequent event data.
