US20200408512A1 - Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, program, and storage medium - Google Patents

Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, program, and storage medium Download PDF

Info

Publication number
US20200408512A1
US20200408512A1 US16/980,978 US201916980978A US2020408512A1 US 20200408512 A1 US20200408512 A1 US 20200408512A1 US 201916980978 A US201916980978 A US 201916980978A US 2020408512 A1 US2020408512 A1 US 2020408512A1
Authority
US
United States
Prior art keywords
light pattern
measured object
image
dimensional shape
projected
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US16/980,978
Inventor
Shizuo Sakamoto
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Assigned to NEC CORPORATION reassignment NEC CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: SAKAMOTO, SHIZUO
Publication of US20200408512A1 publication Critical patent/US20200408512A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • G01B11/25Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures by projecting a pattern, e.g. one or more lines, moiré fringes on the object
    • G01B11/2513Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures by projecting a pattern, e.g. one or more lines, moiré fringes on the object with several lines being projected in more than one direction, e.g. grids, patterns
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • G01B11/25Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures by projecting a pattern, e.g. one or more lines, moiré fringes on the object
    • G01B11/2518Projection by scanning of the object
    • G01B11/2527Projection by scanning of the object with phase change by in-plane movement of the patern
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • G01B11/25Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures by projecting a pattern, e.g. one or more lines, moiré fringes on the object
    • G01B11/254Projection of a pattern, viewing through a pattern, e.g. moiré
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • G06T7/521Depth or shape recovery from laser ranging, e.g. using interferometry; from the projection of structured light
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • G01B11/25Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures by projecting a pattern, e.g. one or more lines, moiré fringes on the object
    • G01B11/2518Projection by scanning of the object
    • G01B11/2522Projection by scanning of the object the position of the object changing and being recorded

Definitions

  • the present invention relates to a three-dimensional shape measuring apparatus, a three-dimensional shape measuring method, a program, and a storage medium.
  • Patent Literatures 1 to 6 disclose a use of a sinusoidal pattern as a light pattern to be projected on a measured object.
  • a sinusoidal pattern for a light pattern to be projected on a measured object it is possible to identify the position on the measured object based on a phase of a projected light (luminance) as a clue and accurately detect a three-dimensional shape of the measured object.
  • a light pattern having periodicity such as a sinusoidal pattern is used as a light pattern projected on a measured object, since points shifted by N cycles may be a candidate due to the nature thereof, it is difficult to uniquely define a three-dimensional shape.
  • Patent Literature 1 and the like solve the ambiguity described above by adding one or more projectors that project light patterns or one or more cameras that capture a measured object to uniquely define a three-dimensional shape. Further, in Patent Literature 6 or the like, a three-dimensional shape is uniquely defined by projecting two types of sinusoidal patterns having different cycles, respectively, to solve the ambiguity described above.
  • the conventional method of resolving the ambiguity described above by projecting two types of sinusoidal patterns having different cycles, respectively, has a problem of requiring a long time for measurement because the projection period of the light pattern is doubled.
  • the present invention intends to provide a three-dimensional shape measuring apparatus, a three-dimensional shape measuring method, a program, and a storage medium that may measure the three-dimensional shape of an object at high accuracy and in a short time with a simpler system.
  • a three-dimensional shape measuring apparatus including: a single projector device that projects a first light pattern whose luminance changes at a first cycle and a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on a measured object; an image capture device that acquires an image of the measured object on which the first light pattern or the second light pattern is projected; and an image processing device that processes the image acquired by the image capture device, and the image processing device includes a relative phase value calculation unit that, based on a luminance value at each of pixels of an image of the measured object on which the first light pattern is projected, calculates a relative phase value on each part of the measured object corresponding to each of the pixels, an absolute phase value calculation unit that, based on a luminance value and the relative phase value at each of pixels of an image of the measured object on which the second light pattern is projected, calculates an absolute phase value on each the part of the measured object corresponding to each of the pixels, and a three-dimensional coordinate calculation unit that
  • a three-dimensional shape measuring method including the steps of: projecting a first light pattern whose luminance changes at a first cycle on a measured object and acquiring an image of the measured object on which the first light pattern is projected; projecting a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on the measured object by the same projector device as a projector device used for projection of the first light pattern and acquiring an image of the measured object on which the second light pattern is projected; based on a luminance value at each of pixels of an image of the measured object on which the first light pattern is projected, calculating a relative phase value on each part of the measured object corresponding to each of the pixels; based on a luminance value and the relative phase value at each of pixels of an image of the measured object on which the second light pattern is projected, calculating an absolute phase value on each the part of the measured object corresponding to each of the pixels; and based on the absolute phase value, calculating three-dimensional coordinates at
  • a program that causes a computer to function as: a unit that controls a single projector device to project a first light pattern whose luminance changes at a first cycle or a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on a measured object; a unit that acquires an image of the measured object on which the first light pattern is projected and an image of the measured object on which the second light pattern is projected; a unit that, based on a luminance value at each of pixels of an image of the measured object on which the first light pattern is projected, calculates a relative phase value on each part of the measured object corresponding to each of the pixels; a unit that, based on a luminance value and the relative phase value at each of pixels of an image of the measured object on which the second light pattern is projected, calculates an absolute phase value on each the part of the measured object corresponding to each of the pixels; and a unit that, based on the absolute phase value, calculates three-dimensional coordinate
  • FIG. 1 is a schematic diagram illustrating a configuration example of a three-dimensional shape measuring apparatus according to a first example embodiment of the present invention.
  • FIG. 2A is a diagram illustrating an example of a short cycle light pattern used in a three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 2B is a diagram illustrating an example of a short cycle light pattern used in the three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 2C is a diagram illustrating an example of a short cycle light pattern used in the three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 2D is a diagram illustrating an example of a short cycle light pattern used in the three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 3A is a diagram illustrating an example of a long cycle light pattern used in the three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 3B is a diagram illustrating an example of a long cycle light pattern used in the three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 4 is a graph illustrating a method of calculating an absolute phase value in the three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 5 is a flowchart illustrating the three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 6A is a diagram illustrating an example of a long cycle light pattern used in a three-dimensional shape measuring method according to a second example embodiment of the present invention.
  • FIG. 6B is a diagram illustrating an example of a long cycle light pattern used in a three-dimensional shape measuring method according to the second example embodiment of the present invention.
  • FIG. 7 is a graph illustrating a method of capturing an absolute phase value in the three-dimensional shape measuring method according to the second example embodiment of the present invention.
  • FIG. 8 is a flowchart illustrating the three-dimensional shape measuring method according to the second example embodiment of the present invention.
  • FIG. 9A is a graph illustrating a result of inspection of an advantageous effect of the present invention inspected through a computer simulation.
  • FIG. 9B is a graph illustrating a result of inspection of an advantageous effect of the present invention inspected through a computer simulation.
  • FIG. 10 is a schematic diagram illustrating a configuration example of a three-dimensional shape measuring apparatus according to a third example embodiment of the present invention.
  • FIG. 11A is a diagram illustrating an example of a light pattern according to a modified example of the example embodiment of the present invention.
  • FIG. 11B is a diagram illustrating an example of a light pattern according to a modified example of the example embodiment of the present invention.
  • a three-dimensional shape measuring apparatus and a three-dimensional shape measuring method according to a first example embodiment of the present invention will be described with reference to FIG. 1 to FIG. 5 .
  • FIG. 1 is a schematic diagram illustrating a configuration example of the three-dimensional shape measuring apparatus according to the present example embodiment.
  • FIG. 2A to FIG. 2D are diagrams each illustrating an example of a short cycle light pattern used in the three-dimensional shape measuring method according to the present example embodiment.
  • FIG. 3A and FIG. 3B are diagrams each illustrating an example of a long cycle light pattern used in the three-dimensional shape measuring method according to the present example embodiment.
  • FIG. 4 is a graph illustrating a calculation method of an absolute phase value in the three-dimensional shape measuring method according to the present example embodiment.
  • FIG. 5 is a flowchart illustrating the three-dimensional shape measuring method according to the present example embodiment.
  • a three-dimensional shape measuring apparatus 100 includes a projector device 20 , an image capture device 30 , and an image processing device 40 .
  • the image processing device 40 includes a projection pattern control unit 42 , an image acquisition unit 44 , a relative phase value calculation unit 46 , an absolute phase value calculation unit 48 , a three-dimensional coordinate calculation unit 50 , and a control unit 52 .
  • the projector device 20 is a device that projects a predetermined light pattern on a measured object 10 whose three-dimensional shape is to be measured.
  • the projector device 20 is not particularly limited and may be, for example, a digital light processing (DLP) projector, a liquid crystal projector, or the like.
  • DLP digital light processing
  • a DLP projector or a liquid crystal projector can project any light patterns at a high rate and is preferable for reducing time required for a three-dimensional shape measurement. Reduction in the measuring time is preferable for measuring a three-dimensional shape of an object that is moving (moving object) such as when face authentication of a person is performed, in particular. Note that details of the light pattern projected on the measured object 10 will be described later.
  • the measured object 10 may be a face, a head, a finger, a fingerprint, a ridge of a fingerprint, or other parts including a part of the body of a person but is not limited thereto.
  • the image capture device 30 is a device that captures an image of the measured object 10 on which a light pattern emitted from the projector device 20 is projected.
  • the image capture device 30 includes a solid-state image pickup device such as a charge coupled device (CCD) image sensor or a complementary metal-oxide-semiconductor (CMOS) image sensor. Further, the image capture device 30 includes an optical system that captures an image of a subject on a capturing plane of a solid-state image pickup device, a signal processing circuit that performs signal processing on the output of the solid-state image pickup device to obtain a luminance value on a pixel basis, and the like.
  • CCD charge coupled device
  • CMOS complementary metal-oxide-semiconductor
  • the image processing device 40 may be formed of a general purpose information processing device (computer) having a central processing unit (CPU), a memory device, a display, a storage device such as a hard disk, various interfaces for input/output, or the like. Further, the image processing device 40 has a program that causes the information processing device to perform a three-dimensional shape measuring method described later, and when the CPU executes the program, the function of each unit of the image processing device 40 can be implemented.
  • a general purpose information processing device computer having a central processing unit (CPU), a memory device, a display, a storage device such as a hard disk, various interfaces for input/output, or the like.
  • the image processing device 40 has a program that causes the information processing device to perform a three-dimensional shape measuring method described later, and when the CPU executes the program, the function of each unit of the image processing device 40 can be implemented.
  • the projection pattern control unit 42 has a function of generating a light pattern to be projected on the measured object 10 and storing the light pattern in the storage device in advance. Further, the projection pattern control unit 42 has a function of transmitting data of a light pattern stored in the storage device to the projector device 20 via a general purpose display interface such as a digital visual interface (DVI). Further, the projection pattern control unit 42 has a function of controlling the operation of the projector device 20 (turning on/off, dimming adjustment, or the like of a light source) via a general purpose communication interface such as RS232 or universal serial bus (USB).
  • a general purpose communication interface such as RS232 or universal serial bus (USB).
  • the image acquisition unit 44 has a function of acquiring image data captured by the image capture device 30 and storing the image data in a memory device. Further, the image acquisition unit 44 has a function of controlling of the operation of the image capture device 30 (a timing of capturing or the like) via a general purpose communication interface such as RS232 or USB. Further, the image acquisition unit 44 has a function of instructing the projection pattern control unit 42 to cause the projector device 20 to project a light pattern.
  • the relative phase value calculation unit 46 has a function of calculating a phase value in accordance with a luminance value (phase values ⁇ and ⁇ described later) on a pixel basis based on an image captured by the image capture device 30 . Note that details of a method of calculating a phase value will be described later.
  • the absolute phase value calculation unit 48 has a function of calculating an absolute phase value (an absolute phase value ⁇ described later) on a pixel basis based on a phase value calculated by the relative phase value calculation unit 46 . Note that details of a method of calculating a phase value will be described later.
  • the three-dimensional coordinate calculation unit 50 has a function of finding three-dimensional coordinates of a projection point P (X, Y, Z) on the measured object 10 corresponding to a point p(x, y) on an image by using calculation based on an absolute phase value of each pixel calculated by the absolute phase value calculation unit 48 .
  • the control unit 52 has a function of generally controlling the above units of the image processing device 40 .
  • the sinusoidal grating phase shift method is a method of projecting a sinusoidal grating light pattern as illustrated in FIG. 2A to FIG. 2D (hereafter, referred to as a sinusoidal pattern) on the measured object 10 while gradually shifting the phase and identifying the three-dimensional shape based on captured images of the measured object 10 on which the light pattern is projected.
  • FIG. 2A to FIG. 2D illustrate four sinusoidal patterns whose phases are each shifted by 1 ⁇ 4 wavelengths as an example.
  • Each drawing of FIG. 2A to FIG. 2D represents the luminance in a projection region of the light pattern in grayscale.
  • the luminance changes sinusoidally in the vertical direction of the drawing.
  • a variable t is here denoted as “time”, description is provided for a case of modulating the amplitude of the luminance.
  • time a vertical displacement of the phase when the light pattern of FIG. 2A is a reference is illustrated, and the projection timing of a light pattern can be changed regardless of the actual time. The same applies to FIG. 3A and FIG. 3B described later.
  • Equation (1) a luminance value I(x, y, t) at time t at (x, y) coordinates of an obtained image is expressed as Equation (1) below, where the amplitude of a sine wave is denoted as A, the phase value is denoted as ⁇ , and the bias (the center value of a sine wave) is denoted as B.
  • the phase value ⁇ at coordinates (x, y) can be calculated, the three-dimensional position corresponding to the coordinates (x, y) can be defined.
  • Equation (1) has three unknowns of the amplitude A, the phase value ⁇ , and the bias B, with at least three light pattern projection images, the phase value ⁇ can be calculated. When four or more light pattern projection images are captured, the phase value ⁇ can be calculated more accurately by using a least-squares method or the like.
  • Equation (6) to Equation (8) below are obtained by finding the amplitude A, the phase value ⁇ , and the bias B by using a least-squares method from Equation (2) to Equation (5).
  • the obtained phase value ⁇ ranges from ⁇ to ⁇ ( ⁇ ). Therefore, points indicating the same phase value ⁇ may be present, the number of which is the same as the number of cycles included in a projection region of a light pattern, and coordinates cannot be uniquely defined from the obtained phase value ⁇ .
  • a so-called multi-eye sinusoidal grating phase shift method in which images acquired by two image capture devices are used to solve the uncertainty is used.
  • the multi-eye sinusoidal grating phase shift method uses a plurality of projectors or a plurality of image capture devices and thus has a problem of system configuration or control being more complex or the like.
  • the three-dimensional shape measuring method is used as the light pattern to be projected on the measured object 10 .
  • These two types of light patterns are periodic light patterns whose numbers of repeating cycles are different from each other, which are distinguished here as a short cycle light pattern and a long cycle light pattern. That is, the three-dimensional shape measuring method according to the present example embodiment is to perform measurement of a phase value using a long cycle light pattern in addition to measurement of a phase value using a short cycle light pattern similar to the measurement by using the sinusoidal phase shift method described above.
  • a sinusoidal pattern is used as each of the short cycle light pattern and the long cycle light pattern.
  • the short cycle light pattern is a light pattern that determines the resolution of measurement. The greater the number of cycles of the short cycle light pattern included in the whole screen of an image captured by the image capture device 30 is, the higher the resolution of measurement is. Thus, it is desirable that the short cycle light pattern be a light pattern including multiple cycles of patterns in a whole screen of a captured image, as illustrated in FIG. 2A to FIG. 2D , for example. The number of cycles of a short cycle light pattern included in the whole screen can be suitably set in accordance with resolution required for measurement.
  • the long cycle light pattern is a light pattern used for identifying the absolute phase value ⁇ and desirably a light pattern including one or less cycle of pattern in the whole screen of an image captured by the image capture device 30 .
  • FIG. 3A and FIG. 3B for example, a light pattern including one cycle of pattern in the whole screen of a captured image can be applied to the long cycle light pattern.
  • Each drawing of FIG. 3A and FIG. 3B represents the luminance in the projection region of a light pattern in grayscale in the same manner as FIG. 2A to FIG. 2D .
  • the luminance changes sinusoidally in the vertical direction of the drawing.
  • the luminance value I(x, y, t) at time t at (x, y) coordinates of an obtained image is expressed as Equation (1) described above, where the amplitude is denoted as A, the phase value is denoted as ⁇ , and the bias is denoted as B.
  • Equation (2) the luminance value I (x, y, t) at the coordinates (x, y) is expressed as Equation (2) to Equation (5) described above.
  • Equation (6) to Equation (8) described above are obtained by finding the amplitude A, the phase value ⁇ , and the bias B by using a least-squares method from Equation (2) to Equation (5).
  • Equation (9) the luminance value J(x, y, t) at time t at (x, y) coordinates of an obtained image is expressed as Equation (9) below, where the amplitude is denoted as A′, the phase value is denoted as ⁇ , and the bias is denoted as B′.
  • Equation (10) the luminance value J(x, y, t) at the coordinates (x, y) is expressed as Equation (10) to Equation (13) below.
  • Equation (14) to Equation (16) below are obtained by finding the amplitude A′, the phase value ⁇ , and the bias B′ by using a least-squares method from Equation (10) to Equation (13).
  • the absolute phase value can be determined from the relative phase value found from around ⁇ 3 ⁇ , that is, (6/200) ⁇ 1 , namely, around 33 repeating sine waves.
  • a projector that can project any light pattern such as a liquid crystal projector or a DLP projector
  • the short cycle light pattern and the long cycle light pattern generated based on the light emitted from the same light source from the single projector device 20 are projected, it can be assumed that the basic physical characteristics of the projector device 20 at projection of these light patterns are the same. That is, when projection on the measured object 10 of the short cycle light pattern and the long cycle light pattern is performed by using the same projector device 20 , it is considered that Equation (17) below is met.
  • Equation (9) can be rewritten as Equation (18) and Equation (19) below, and the number of unknowns is not three, namely, the amplitude A′, the phase value ⁇ , and the bias B′ but is one, namely, only the phase value ⁇ . Accordingly, with at least only one time of capturing the measured object 10 on which the long cycle light pattern is projected, the phase value ⁇ can be found.
  • the short cycle light pattern and the long cycle light pattern emitted from the single projector device 20 are projected on the measured object 10 , which makes it possible to calculate the phase value ⁇ while reducing the number of times of projection on the measured object 10 . Accordingly, the three-dimensional shape of the measured object 10 can be measured in a short time.
  • Equation (22) By finding the phase value ⁇ from Equation (20) and Equation (21) by a least-squares method, Equation (22) below is obtained.
  • the uncertainty of the phase value ⁇ obtained by Equation (19) and Equation (22) is not a fraction divided from 2 ⁇ by an integer but a fraction divided from n by an integer (the range of the obtained phase value ⁇ is 0 ⁇ ). That is, it is required to project sine waves so that the whole image corresponds not to one cycle but to a half cycle. This means that the relative error of the phase value ⁇ becomes two times.
  • Equation (19) or Equation (22) used for finding the phase value ⁇ needs to be rewritten to be not a cosine function but an inverse function of a tangent function.
  • Equation (23) and Equation (24) the luminance value J(x, y, t) at the coordinates (x, y) is expressed by Equation (23) and Equation (24) below.
  • Equation (25) By finding the phase value ⁇ from Equation (23) and Equation (24) by a least-squares method, Equation (25) below is obtained.
  • the uncertainty of the phase value ⁇ obtained therefrom is a fraction divided from 2 ⁇ by an integer (the range of the obtained phase value ⁇ is ⁇ ).
  • phase value of the long cycle light pattern to be projected changes gradually in the whole image and thus is expected to have a good compatibility with noise removal such as smoothing or a median filter.
  • noise removal such as smoothing or a median filter.
  • the phase value ⁇ becomes a value for every one cycle of the short cycle light pattern, that is, a value from ⁇ to ⁇ . Therefore, to find an absolute phase value in a light pattern projected for multiple cycles, a process of estimating where a pattern of the order n (a value indicating the n-th cycle counted from one end to the other end) is located on each captured image is required.
  • the phase value ⁇ is used for the estimation of the order n of a short cycle light pattern.
  • FIG. 4 is a graph illustrating an example of the relationship between the relative phase value (the phase value ⁇ and the phase value ⁇ ) and the order n of a short cycle light pattern when the short cycle light pattern within a screen includes 10 cycles and the long cycle light pattern has one cycle.
  • the order n of the short cycle light pattern can be determined uniquely in accordance with a value of the phase value ⁇ .
  • the order n of a short cycle light pattern is two in a range of the phase value ⁇ being ⁇ /5 to 2 ⁇ /5, and the order n of a short cycle light pattern is seven in a range of the phase value ⁇ being ⁇ 4 ⁇ /5 to ⁇ 3 ⁇ /5.
  • the line obtained by connecting points having the same absolute phase value ⁇ on a captured image represents a shape of a cross section of the measured object 10 taken along a certain plane similar to a sectional line by a light-section method.
  • the three-dimensional shape of the measured object 10 (height information at each point of an image) can be measured by a triangulation principle.
  • the three-dimensional shape measuring method of the present example embodiment uses two light patterns, namely, the short cycle light pattern and the long cycle light pattern, the capturing time is longer than in the case where one type of the light pattern is used.
  • the capturing time can be sufficiently reduced for the absolute time.
  • it is expected to solve the problems of long calculation time of three-dimensional coordinates and inability of measurement if the positional relationship between the camera and the projector on the left and right becomes wrong, which are disadvantages of the multi-eye sinusoidal grating phase shift method described above.
  • the conventional method when two light patterns, namely, the short cycle light pattern and the long cycle light pattern are used, projection and capturing of the light patterns are required to be performed for at least three times, respectively, that is, six times in total.
  • projection and capturing of the light patterns need to be performed only for at least three times by using the short cycle light pattern and one time by using the long cycle light pattern, that is, four times in total. Therefore, according to the three-dimensional shape measuring method of the present example embodiment, the number of images to be projected can be reduced, and the capturing time can be shortened.
  • the three-dimensional shape measuring method according to the present example embodiment can be performed in accordance with step S 101 to step S 116 illustrated in FIG. 5 , for example.
  • step S 101 to step S 116 illustrated in FIG. 5 for example.
  • description is provided here for a case of calculating the amplitude A, the bias B, and the phase value ⁇ from an image of the measured object 10 on which the first light pattern, which is the short cycle light pattern, is projected and calculating the phase value ⁇ from an image of the measured object 10 on which the second light pattern, which is the long cycle light pattern, is projected, as an example.
  • the amplitude A′, the bias B′, and the phase value ⁇ may be calculated from an image of the measured object 10 on which the first light pattern, which is the long cycle light pattern, is projected and calculate the phase value ⁇ from an image of the measured object 10 on which the second light pattern, which is the short cycle light pattern, is projected. Projection of the second light pattern may be performed earlier than projection of the first light pattern.
  • step S 101 the number of projection times L for the first light pattern is set.
  • Measurement using the first light pattern is for determining the amplitude A, the bias B, and the phase value ⁇ , and the number of projection times L is greater than or equal to three.
  • the number of projection times L for the first light pattern is four.
  • step S 102 under the control of the projection pattern control unit 42 , the projector device 20 projects the first light pattern on the measured object 10 to be measured.
  • the first light pattern which is the short cycle light pattern
  • the pattern of FIG. 2A is applicable as the short cycle light pattern, for example.
  • step S 103 under the control of the image acquisition unit 44 , the image capture device 30 captures an image of the measured object 10 on which the first light pattern is projected.
  • step S 104 the number of projection times L for the first light pattern is decremented by one.
  • the number of projection times L represents the number of remaining projection times of the first light pattern.
  • step S 105 it is determined whether or not the number of projection times L of the first light pattern is zero, that is, whether or not the projection and capturing of the first light pattern have been performed for the number of projection times L set in step S 101 .
  • step S 106 if the number of projection times L is not zero (step S 105 , “No”), in step S 106 , the phase of the first light pattern projected on the measured object 10 is shifted, and the process returns to step S 102 .
  • the projection pattern control unit 42 sequentially prepares data of the short cycle light patterns having phases shifted stepwise by 1 ⁇ 4 wavelengths (see FIG. 2B , FIG. 2C , and FIG. 2D ) and transmits the data to the projector device 20 .
  • step S 105 if the number of projection times L is zero (step S 105 , “Yes”), the process proceeds to step S 107 .
  • step S 107 the relative phase value calculation unit 46 calculates the amplitude A, the bias B, and the phase value ⁇ , respectively, based on the luminance value I of each pixel of the L images captured in step S 103 .
  • the amplitude A, the bias B, and the phase value ⁇ can be calculated based on Equation (6) to Equation (8), for example.
  • step S 108 the number of projection times M for the second light pattern is set.
  • Measurement using the second light pattern is for determining the phase value ⁇ , and the number of projection times M is greater than or equal to one.
  • the number of projection times M for the second light pattern is two.
  • step S 109 under the control of the projection pattern control unit 42 , the projector device 20 projects the second light pattern on the measured object 10 to be measured.
  • the second light pattern that is the long cycle light pattern is projected on the measured object 10 .
  • the pattern of FIG. 3A is applicable as the long cycle light pattern, for example.
  • step S 110 under the control of the image acquisition unit 44 , the image capture device 30 captures an image of the measured object 10 on which the second light pattern is projected.
  • step S 111 the number of projection times M for the second light pattern is decremented by one.
  • the number of projection times M represents the number of remaining projection times of the second light pattern.
  • step S 112 it is determined whether or not the number of projection times M of the second light pattern is zero, that is, whether or not the projection and capturing of the second light pattern have been performed for the number of projection times M set in step S 108 .
  • step S 112 if the number of projection times M is not zero (step S 112 , “No”), in step S 113 , the phase of the second light pattern projected on the measured object 10 is shifted, and the process returns to step S 109 .
  • the projection pattern control unit 42 prepares data of the long cycle light patterns having phases shifted stepwise by 1 ⁇ 4 wavelengths (see FIG. 3B ) and transmits the data to the projector device 20 .
  • step S 112 if the number of projection times M is zero (step S 112 , “Yes”), the process proceeds to step S 114 .
  • step S 114 the relative phase value calculation unit 46 calculates the phase value ⁇ based on the amplitude A and the bias B calculated in step S 107 and the luminance value J of each pixel of the M images captured in step S 110 , respectively.
  • the phase value ⁇ can be calculated based on Equation (25), for example.
  • step S 115 the absolute phase value calculation unit 48 calculates the absolute phase value ⁇ based on the phase value ⁇ calculated in step S 107 and the phase value ⁇ calculated in step S 114 .
  • step S 116 based on the absolute phase value ⁇ calculated in step S 115 , the three-dimensional coordinate calculation unit 50 calculates the absolute coordinate values of the projection point on the measured object 10 in the three-dimensional space corresponding to each pixel of the captured image. Accordingly, the three-dimensional shape of the measured object 10 can be identified.
  • the three-dimensional measuring method according to the present example embodiment can measure the three-dimensional shape of a measured object by performing projection and capturing of light patterns for at least three times using the short cycle light pattern and once using the long cycle light pattern, namely, four times in total. Therefore, the three-dimensional measuring method according to the present example embodiment can reduce the number of projected images and thus can shorten the measuring time compared to the conventional method that requires projection and capturing of light patterns for at least three times using the short cycle light pattern and three times using the long cycle light pattern, namely, six times in total. It is required to complete the measurement in a short time when a three-dimensional shape of a moving measured target is measured, in particular, such as when face authentication of a person is performed, for example.
  • the three-dimensional measuring method according to the present example embodiment that enables accurate measurement within a shorter measuring time is significantly useful in accurately performing face authentication with a moving image, for example.
  • the three-dimensional measuring method according to the present example embodiment can perform projection of the short cycle light pattern and projection of the long cycle light pattern by using a single projector device and perform capturing a light pattern projected on a measured object by using a single image capture device. Therefore, with the three-dimensional measuring apparatus according to the present example embodiment, it is possible to simplify the system configuration or control compared to the conventional method using a plurality of projector devices or image capture devices.
  • the three-dimensional shape measuring method and apparatus may measure a three-dimensional shape of an object at high accuracy and in a short time with a simpler system.
  • a three-dimensional shape measuring apparatus and a three-dimensional shape measuring method according to a second example embodiment of the present invention will be described with reference to FIG. 6A to FIG. 9B .
  • the same components as those of the three-dimensional shape measuring apparatus according to the first example embodiment will be labeled with the same references, and the description thereof will be omitted or simplified.
  • FIG. 6A and FIG. 6B are diagrams illustrating examples of a long cycle light pattern used in the three-dimensional shape measuring method according to the present example embodiment.
  • FIG. 7 is a graph illustrating a calculation method of an absolute phase value in the three-dimensional shape measuring method according to the present example embodiment.
  • FIG. 8 is a flowchart illustrating the three-dimensional shape measuring method according to the present example embodiment.
  • FIG. 9A and FIG. 9B are graphs illustrating results of inspection of an advantageous effect of the present invention through a computer simulation.
  • the sinusoidal pattern is used as a short cycle light pattern and a long cycle light pattern in the first example embodiment
  • the short cycle light pattern and the long cycle light pattern are not necessarily required to be a sinusoidal pattern and may be another periodic pattern.
  • various periodic patterns are applicable to the long cycle light pattern, because it is sufficient that the position is uniquely defined on the whole screen.
  • a sinusoidal pattern is used as the short cycle light pattern and a luminance slope pattern is used as the long cycle light pattern will be described.
  • FIG. 6A and FIG. 6B each illustrate an example of the luminance slope pattern.
  • FIG. 6A illustrates a luminance slope pattern in which the luminance increases at a fixed ratio from the upper part toward the lower part
  • FIG. 6B illustrates a luminance slope pattern in which the luminance decreases at a fixed ratio from the upper part toward the lower part.
  • Equation (26) the luminance value K(x, y, t) at time t at (x, y) coordinates of an obtained image is expressed as Equation (26) below.
  • A′′ denotes an amplitude
  • B′′ denotes a bias
  • is a variable that changes linearly within a range ⁇ 1 ⁇ 1.
  • Equation (27) is met when the same projector device 20 is used for the short cycle light pattern and the long cycle light pattern. Therefore, if the measured object 10 on which the long cycle light pattern is projected is captured at least once only, the phase value ⁇ can be found.
  • variable ⁇ changes gradually in the whole screen and thus is expected to have a good compatibility with noise removal such as smoothing or a median filter. With design to have the same absolute phase determination accuracy as that when four-time capturing is performed, it may be possible to cancel the disadvantage caused by a reduction of the number of capturing times. Further, unlike the phase value, since the variable ⁇ is not a periodic value in a strict sense, a classical noise removal process can be utilized without change.
  • FIG. 7 is a graph illustrating a relationship between the relative phase value (phase value ⁇ ) and the variable ⁇ with respect to the order n of the short cycle light pattern when the short cycle light pattern includes 10 cycles and the long cycle light pattern (luminance slope pattern) includes 1 cycle within a screen.
  • the order n of the short cycle light pattern can be defined uniquely in accordance with the value of the variable ⁇ .
  • the order n of the short cycle light pattern is 2 in a range of the variable ⁇ from ⁇ 0.8 to ⁇ 0.6, and the order n of the short cycle light pattern is 7 in a range of the variable ⁇ from 0.2 to 0.4.
  • a line obtained by connecting points having the same absolute phase value ⁇ on the captured image represents the shape of a cross section of the measured object 10 taken along a certain plane in a similar manner to a sectional line by a light-section method.
  • the three-dimensional shape of the measured object 10 (height information at each point of an image) can be measured by a triangulation principle.
  • the three-dimensional shape measuring method according to the present example embodiment can be performed in accordance with step S 201 to step S 216 illustrated in FIG. 8 , for example.
  • step S 201 to step S 216 illustrated in FIG. 8 for example.
  • description is provided here for a case of calculating the amplitude A, the bias B, and the phase value ⁇ from an image of the measured object 10 on which the first light pattern, which is the short cycle light pattern, is projected and calculating the phase value ⁇ from an image of the measured object 10 on which the second light pattern, which is the long cycle light pattern, is projected as an example.
  • the amplitude A′, the bias B′, and the phase value ⁇ may be calculated from an image of the measured object 10 on which the first light pattern that is the long cycle light pattern is projected and calculate the phase value ⁇ from an image of the measured object 10 on which the second light pattern, which is the short cycle light pattern, is projected. Projection of the second light pattern may be performed earlier than projection of the first light pattern.
  • step S 101 to step S 107 of the three-dimensional shape measuring method according to the first example embodiment measurement using the first light pattern (short cycle light pattern) is performed. Thereby, based on the luminance value I of each pixel of L captured images, the amplitude A, the bias B, and the phase value ⁇ are calculated, respectively (step S 201 to step S 207 ).
  • step S 208 the number of projection times M for the second light pattern (the luminance slope pattern) is set.
  • Measurement using the second light pattern is for determining the variable ⁇ , and the number of projection times M is greater than or equal to one.
  • the number of projection times M for the second light pattern is two.
  • step S 209 under the control of the projection pattern control unit 42 , the projector device 20 projects the second light pattern, which is the luminance slope pattern, on the measured object 10 .
  • the pattern of FIG. 6A is applicable as the luminance slope pattern, for example.
  • step S 210 under the control of the image acquisition unit 44 , the image capture device 30 captures an image of the measured object 10 on which the second light pattern is projected.
  • step S 211 the number of projection times M for the second light pattern is decremented by one.
  • the number of projection times M represents the number of remaining projection times of the second light pattern.
  • step S 212 it is determined whether or not the number of projection times M of the second light pattern is zero, that is, whether or not the projection and capturing of the second light pattern have been performed for the number of projection times M set in step S 208 .
  • step S 212 if the number of projection times M is not zero (step S 212 , “No”), in step S 213 , the phase of the second pattern projected on the measured object 10 is shifted, and the process returns to step S 209 .
  • the projection pattern control unit 42 sequentially prepares data of the luminance slope patterns having an inversed luminance slope (see FIG. 6B ) and transmits the data to the projector device 20 .
  • step S 212 if the number of projection times M is zero (step S 212 , “Yes”), the process proceeds to step S 214 .
  • step S 214 the relative phase value calculation unit 46 calculates the variable ⁇ based on the amplitude A and the bias B calculated in step S 207 and the luminance value K of each pixel of the M images captured in step S 210 , respectively.
  • the variable ⁇ can be calculated based on Equation (32), for example.
  • step S 215 the absolute phase value calculation unit 48 calculates the absolute phase value ⁇ based on the phase value ⁇ calculated in step S 207 and the variable ⁇ calculated in step S 214 .
  • step S 216 based on the absolute phase value ⁇ calculated in step S 215 , the three-dimensional coordinate calculation unit 50 calculates the absolute coordinate values of the projection point on the measured object 10 in the three-dimensional space corresponding to each pixel of the captured image. Accordingly, the three-dimensional shape of the measured object 10 can be identified.
  • FIG. 9A and FIG. 9B each illustrate a result of inspection of the advantageous effect of the present invention through a computer simulation.
  • FIG. 9A illustrates a case of the first example embodiment in which sinusoidal patterns are used as the short cycle light pattern and the long cycle light pattern
  • FIG. 9B illustrates a case of the present example embodiment in which a sinusoidal pattern is used as the short cycle light pattern and a luminance slope pattern is used as the long cycle light pattern.
  • the number of projection times of the long cycle light pattern is two.
  • the luminance slope pattern is used as the long cycle light pattern
  • a measurement error can be reduced compared to the three-dimensional measuring method according to the first example embodiment using a sinusoidal pattern as a long cycle pattern. Accordingly, in addition that the advantageous effect provided by the first example embodiment is provided, measurement accuracy can be further improved.
  • the present example embodiment it is possible to realize the three-dimensional shape measuring method and apparatus that may measure the three-dimensional shape of an object at high accuracy and in a short time with a simpler system.
  • FIG. 10 is a schematic diagram illustrating a configuration example of the three-dimensional shape measuring apparatus according to the present example embodiment.
  • the three-dimensional shape measuring apparatus can be configured as illustrated FIG. 10 , for example. That is, the three-dimensional shape measuring apparatus 100 according to the present example embodiment has a single projector device 20 that projects a first light pattern whose luminance changes at a first cycle and a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on the measured object 10 . Further, the three-dimensional shape measuring apparatus 100 has the image capture device 30 that acquires an image of the measured object 10 on which the first light pattern or the second light pattern is projected and the image processing device 40 that processes an image acquired by the image capture device 30 .
  • the image processing device 40 has the relative phase value calculation unit 46 that, based on a luminance value at each pixel of an image of the measured object 10 on which the first light pattern is projected, calculates a relative phase value on each part of the measured object 10 corresponding to each pixel. Further, the image processing device 40 has the absolute phase value calculation unit 48 that, based on the luminance value and the relative phase value at each pixel of an image of the measured object 10 on which the second light pattern is projected, calculates an absolute phase value at each part of the measured object 10 corresponding to each of the pixels. Further, the image processing device 40 has the three-dimensional coordinate calculation unit 50 that calculates three-dimensional coordinates on each part of the measured object 10 corresponding to each pixel based on the absolute phase value.
  • an example embodiment in which a part of the configuration of any of the example embodiments is added to another example embodiment or an example embodiment in which a part of the configuration of any of the example embodiments is replaced with a part of the configuration of another example embodiment is one of the example embodiments of the present invention.
  • the periodic light pattern is not limited to a sinusoidal pattern.
  • a periodic light pattern may be a saw-tooth wave pattern as illustrated in FIG. 11A or may be a triangular wave pattern as illustrated in FIG. 11B .
  • the luminance slope pattern illustrated in the second example embodiment is a waveform of one cycle of the saw-tooth wave pattern illustrated in FIG. 11A or a waveform of a half cycle of the triangular wave pattern illustrated in FIG. 11B .
  • the luminance slope pattern is handled as one of the periodic light patterns.
  • the three-dimensional shape measuring method and apparatus described in the above example embodiments can be applied to measurement of the shape of various objects, and the measured object 10 is not limited to a moving object.
  • each of the example embodiments further includes a processing method that stores, in a storage medium, a program that causes the configuration of each of the example embodiments to operate so as to implement the function of each of the example embodiments described above, reads the program stored in the storage medium as a code, and executes the program in a computer. That is, the scope of each of the example embodiments also includes a computer readable storage medium. Further, each of the example embodiments includes not only the storage medium in which the program described above is stored but also the program itself.
  • the storage medium for example, a floppy (registered trademark) disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a magnetic tape, a nonvolatile memory card, or a ROM can be used.
  • a floppy (registered trademark) disk for example, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a magnetic tape, a nonvolatile memory card, or a ROM
  • the scope of each of the example embodiments includes an example that operates on OS to perform a process in cooperation with another software or a function of an add-in board without being limited to an example that performs a process by an individual program stored in the storage medium.
  • a three-dimensional shape measuring apparatus comprising:
  • a single projector device that projects a first light pattern whose luminance changes at a first cycle and a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on a measured object;
  • an image capture device that acquires an image of the measured object on which the first light pattern or the second light pattern is projected
  • an image processing device that processes the image acquired by the image capture device
  • the image processing device includes
  • the three-dimensional shape measuring apparatus according to supplementary note 1, wherein the image capture device acquires at least three images captured with different phases of the first light pattern projected on the measured object and acquires one image in which the measured object on which the second light pattern is projected is captured or two images captured with different phases of the second light pattern projected on the measured object.
  • the three-dimensional shape measuring apparatus according to supplementary note 1 or 2, wherein the first light pattern is a sinusoidal pattern.
  • the three-dimensional shape measuring apparatus according to any one of supplementary notes 1 to 3, wherein the second light pattern is a sinusoidal pattern.
  • the three-dimensional shape measuring apparatus according to any one of supplementary notes 1 to 3, wherein the second light pattern is a luminance slope pattern whose luminance changes linearly.
  • the three-dimensional shape measuring apparatus according to supplementary note 4 or 5, wherein the second light pattern is a pattern by which a whole screen of the image corresponds to one cycle.
  • the three-dimensional shape measuring apparatus according to any one of supplementary notes 1 to 6, wherein the projector device generates the first light pattern and the second light pattern from a light emitted from a single light source.
  • the three-dimensional shape measuring apparatus according to any one of supplementary notes 1 to 7, wherein the projector device is a DLP projector or a liquid crystal projector.
  • the three-dimensional shape measuring apparatus according to any one of supplementary notes 1 to 8, wherein the measured object is a moving object.
  • the three-dimensional shape measuring apparatus according to supplementary note 9, wherein the moving object is a face of a person.
  • a three-dimensional shape measuring method comprising the steps of:
  • one image in which the measured object on which the second light pattern is projected is captured or two images captured with different phases of the second light pattern projected on the measured object are acquired.
  • the three-dimensional shape measuring method according to supplementary note 11 or 12, wherein the first light pattern is a sinusoidal pattern.
  • the three-dimensional shape measuring method according to any one of supplementary notes 11 to 13, wherein the second light pattern is a sinusoidal pattern.
  • the three-dimensional shape measuring method according to any one of supplementary notes 11 to 13, wherein the second light pattern is a luminance slope pattern whose luminance changes linearly.
  • the three-dimensional shape measuring method according to supplementary note 14 or 15, wherein the second light pattern is a pattern by which a whole screen of the image corresponds to one cycle.
  • the three-dimensional shape measuring method according to any one of supplementary notes 11 to 16, wherein the projector device generates the first light pattern and the second light pattern from a light emitted from a single light source.
  • the three-dimensional shape measuring method according to any one of supplementary notes 11 to 17, wherein the projector device is a DLP projector or a liquid crystal projector.
  • the three-dimensional shape measuring method according to any one of supplementary notes 11 to 18, wherein the measured object is a moving object.
  • the three-dimensional shape measuring method is the three-dimensional shape measuring method.
  • the moving object is a face of a person.
  • a unit that acquires an image of the measured object on which the first light pattern is projected and an image of the measured object on which the second light pattern is projected;
  • a unit that, based on a luminance value at each of pixels of an image of the measured object on which the first light pattern is projected, calculates a relative phase value on each part of the measured object corresponding to each of the pixels;
  • a unit that, based on a luminance value and the relative phase value at each of pixels of an image of the measured object on which the second light pattern is projected, calculates an absolute phase value on each the part of the measured object corresponding to each of the pixels;
  • a unit that, based on the absolute phase value, calculates three-dimensional coordinates at each the part of the measured object corresponding to each of the pixels.
  • a computer readable storage medium storing the program according to supplementary note 21 or 22.

Abstract

A three-dimensional shape measuring apparatus includes: a single projector device that projects a first light pattern whose luminance changes at a first cycle and a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on a measured object; an image capture device that acquire an image of the measured object on which the first or second light pattern is projected; and an image processing device that processes the image acquired by the image capture device. The image processing device includes a relative phase value calculation unit that calculates a relative phase value on each part of the measured object based on a luminance value of an image of the measured object on which the first light pattern is projected, an absolute phase value calculation unit that calculates an absolute phase value on each part of the measured object based on a luminance value and the relative phase value of an image of the measured object on which the second light pattern is projected, and a three-dimensional coordinate calculation unit that calculates three-dimensional coordinates at each part of the measured object based on the absolute phase value.

Description

    TECHNICAL FIELD
  • The present invention relates to a three-dimensional shape measuring apparatus, a three-dimensional shape measuring method, a program, and a storage medium.
  • BACKGROUND ART
  • Conventionally, various methods for measuring the three-dimensional shape of an object have been proposed. For example, a method of identifying a three-dimensional shape by using a plurality of cameras to capture a measured object and using a triangulation principle and a method of identifying a three-dimensional shape by projecting a predetermined light pattern on a measured object and measuring a projected light pattern are known. Patent Literatures 1 to 6 disclose a use of a sinusoidal pattern as a light pattern to be projected on a measured object. By using a sinusoidal pattern for a light pattern to be projected on a measured object, it is possible to identify the position on the measured object based on a phase of a projected light (luminance) as a clue and accurately detect a three-dimensional shape of the measured object. However, when a light pattern having periodicity such as a sinusoidal pattern is used as a light pattern projected on a measured object, since points shifted by N cycles may be a candidate due to the nature thereof, it is difficult to uniquely define a three-dimensional shape.
  • Accordingly, Patent Literature 1 and the like solve the ambiguity described above by adding one or more projectors that project light patterns or one or more cameras that capture a measured object to uniquely define a three-dimensional shape. Further, in Patent Literature 6 or the like, a three-dimensional shape is uniquely defined by projecting two types of sinusoidal patterns having different cycles, respectively, to solve the ambiguity described above.
  • CITATION LIST Patent Literature
  • PTL 1: Japanese Patent Application Laid-Open No. 2001-012925
  • PTL 2: Japanese Patent Application Laid-Open No. 2003-269928
  • PTL 3: Japanese Patent Application Laid-Open No. 2006-214785
  • PTL 4: Japanese Patent Application Laid-Open No. 2008-009807
  • PTL 5: Japanese Patent Application Laid-Open No. 2009-115612
  • PTL 6: Japanese Patent Application Laid-Open No. 2010-281178
  • SUMMARY OF INVENTION Technical Problem
  • The conventional method of resolving the ambiguity described above by projecting two types of sinusoidal patterns having different cycles, respectively, has a problem of requiring a long time for measurement because the projection period of the light pattern is doubled.
  • The present invention intends to provide a three-dimensional shape measuring apparatus, a three-dimensional shape measuring method, a program, and a storage medium that may measure the three-dimensional shape of an object at high accuracy and in a short time with a simpler system.
  • Solution to Problem
  • According to one example aspect of the present invention, provided is a three-dimensional shape measuring apparatus including: a single projector device that projects a first light pattern whose luminance changes at a first cycle and a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on a measured object; an image capture device that acquires an image of the measured object on which the first light pattern or the second light pattern is projected; and an image processing device that processes the image acquired by the image capture device, and the image processing device includes a relative phase value calculation unit that, based on a luminance value at each of pixels of an image of the measured object on which the first light pattern is projected, calculates a relative phase value on each part of the measured object corresponding to each of the pixels, an absolute phase value calculation unit that, based on a luminance value and the relative phase value at each of pixels of an image of the measured object on which the second light pattern is projected, calculates an absolute phase value on each the part of the measured object corresponding to each of the pixels, and a three-dimensional coordinate calculation unit that, based on the absolute phase value, calculates three-dimensional coordinates at each the part of the measured object corresponding to each of the pixels.
  • Further, according to another example aspect of the present invention, provided is a three-dimensional shape measuring method including the steps of: projecting a first light pattern whose luminance changes at a first cycle on a measured object and acquiring an image of the measured object on which the first light pattern is projected; projecting a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on the measured object by the same projector device as a projector device used for projection of the first light pattern and acquiring an image of the measured object on which the second light pattern is projected; based on a luminance value at each of pixels of an image of the measured object on which the first light pattern is projected, calculating a relative phase value on each part of the measured object corresponding to each of the pixels; based on a luminance value and the relative phase value at each of pixels of an image of the measured object on which the second light pattern is projected, calculating an absolute phase value on each the part of the measured object corresponding to each of the pixels; and based on the absolute phase value, calculating three-dimensional coordinates at each the part of the measured object corresponding to each of the pixels.
  • Further, according to yet another example aspect of the present invention, provided is a program that causes a computer to function as: a unit that controls a single projector device to project a first light pattern whose luminance changes at a first cycle or a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on a measured object; a unit that acquires an image of the measured object on which the first light pattern is projected and an image of the measured object on which the second light pattern is projected; a unit that, based on a luminance value at each of pixels of an image of the measured object on which the first light pattern is projected, calculates a relative phase value on each part of the measured object corresponding to each of the pixels; a unit that, based on a luminance value and the relative phase value at each of pixels of an image of the measured object on which the second light pattern is projected, calculates an absolute phase value on each the part of the measured object corresponding to each of the pixels; and a unit that, based on the absolute phase value, calculates three-dimensional coordinates at each the part of the measured object corresponding to each of the pixels.
  • Advantageous Effects of Invention
  • According to the present invention, it is possible to measure a three-dimensional shape of a measured object at high accuracy and in a short time with a simpler system.
  • BRIEF DESCRIPTION OF DRAWINGS
  • FIG. 1 is a schematic diagram illustrating a configuration example of a three-dimensional shape measuring apparatus according to a first example embodiment of the present invention.
  • FIG. 2A is a diagram illustrating an example of a short cycle light pattern used in a three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 2B is a diagram illustrating an example of a short cycle light pattern used in the three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 2C is a diagram illustrating an example of a short cycle light pattern used in the three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 2D is a diagram illustrating an example of a short cycle light pattern used in the three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 3A is a diagram illustrating an example of a long cycle light pattern used in the three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 3B is a diagram illustrating an example of a long cycle light pattern used in the three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 4 is a graph illustrating a method of calculating an absolute phase value in the three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 5 is a flowchart illustrating the three-dimensional shape measuring method according to the first example embodiment of the present invention.
  • FIG. 6A is a diagram illustrating an example of a long cycle light pattern used in a three-dimensional shape measuring method according to a second example embodiment of the present invention.
  • FIG. 6B is a diagram illustrating an example of a long cycle light pattern used in a three-dimensional shape measuring method according to the second example embodiment of the present invention.
  • FIG. 7 is a graph illustrating a method of capturing an absolute phase value in the three-dimensional shape measuring method according to the second example embodiment of the present invention.
  • FIG. 8 is a flowchart illustrating the three-dimensional shape measuring method according to the second example embodiment of the present invention.
  • FIG. 9A is a graph illustrating a result of inspection of an advantageous effect of the present invention inspected through a computer simulation.
  • FIG. 9B is a graph illustrating a result of inspection of an advantageous effect of the present invention inspected through a computer simulation.
  • FIG. 10 is a schematic diagram illustrating a configuration example of a three-dimensional shape measuring apparatus according to a third example embodiment of the present invention.
  • FIG. 11A is a diagram illustrating an example of a light pattern according to a modified example of the example embodiment of the present invention.
  • FIG. 11B is a diagram illustrating an example of a light pattern according to a modified example of the example embodiment of the present invention.
  • DESCRIPTION OF EMBODIMENTS First Example Embodiment
  • A three-dimensional shape measuring apparatus and a three-dimensional shape measuring method according to a first example embodiment of the present invention will be described with reference to FIG. 1 to FIG. 5.
  • FIG. 1 is a schematic diagram illustrating a configuration example of the three-dimensional shape measuring apparatus according to the present example embodiment. FIG. 2A to FIG. 2D are diagrams each illustrating an example of a short cycle light pattern used in the three-dimensional shape measuring method according to the present example embodiment. FIG. 3A and FIG. 3B are diagrams each illustrating an example of a long cycle light pattern used in the three-dimensional shape measuring method according to the present example embodiment. FIG. 4 is a graph illustrating a calculation method of an absolute phase value in the three-dimensional shape measuring method according to the present example embodiment. FIG. 5 is a flowchart illustrating the three-dimensional shape measuring method according to the present example embodiment.
  • As illustrated in FIG. 1, a three-dimensional shape measuring apparatus 100 according to the present example embodiment includes a projector device 20, an image capture device 30, and an image processing device 40. The image processing device 40 includes a projection pattern control unit 42, an image acquisition unit 44, a relative phase value calculation unit 46, an absolute phase value calculation unit 48, a three-dimensional coordinate calculation unit 50, and a control unit 52.
  • The projector device 20 is a device that projects a predetermined light pattern on a measured object 10 whose three-dimensional shape is to be measured. The projector device 20 is not particularly limited and may be, for example, a digital light processing (DLP) projector, a liquid crystal projector, or the like. A DLP projector or a liquid crystal projector can project any light patterns at a high rate and is preferable for reducing time required for a three-dimensional shape measurement. Reduction in the measuring time is preferable for measuring a three-dimensional shape of an object that is moving (moving object) such as when face authentication of a person is performed, in particular. Note that details of the light pattern projected on the measured object 10 will be described later. The measured object 10 may be a face, a head, a finger, a fingerprint, a ridge of a fingerprint, or other parts including a part of the body of a person but is not limited thereto.
  • The image capture device 30 is a device that captures an image of the measured object 10 on which a light pattern emitted from the projector device 20 is projected. The image capture device 30 includes a solid-state image pickup device such as a charge coupled device (CCD) image sensor or a complementary metal-oxide-semiconductor (CMOS) image sensor. Further, the image capture device 30 includes an optical system that captures an image of a subject on a capturing plane of a solid-state image pickup device, a signal processing circuit that performs signal processing on the output of the solid-state image pickup device to obtain a luminance value on a pixel basis, and the like.
  • The image processing device 40 may be formed of a general purpose information processing device (computer) having a central processing unit (CPU), a memory device, a display, a storage device such as a hard disk, various interfaces for input/output, or the like. Further, the image processing device 40 has a program that causes the information processing device to perform a three-dimensional shape measuring method described later, and when the CPU executes the program, the function of each unit of the image processing device 40 can be implemented.
  • The projection pattern control unit 42 has a function of generating a light pattern to be projected on the measured object 10 and storing the light pattern in the storage device in advance. Further, the projection pattern control unit 42 has a function of transmitting data of a light pattern stored in the storage device to the projector device 20 via a general purpose display interface such as a digital visual interface (DVI). Further, the projection pattern control unit 42 has a function of controlling the operation of the projector device 20 (turning on/off, dimming adjustment, or the like of a light source) via a general purpose communication interface such as RS232 or universal serial bus (USB).
  • The image acquisition unit 44 has a function of acquiring image data captured by the image capture device 30 and storing the image data in a memory device. Further, the image acquisition unit 44 has a function of controlling of the operation of the image capture device 30 (a timing of capturing or the like) via a general purpose communication interface such as RS232 or USB. Further, the image acquisition unit 44 has a function of instructing the projection pattern control unit 42 to cause the projector device 20 to project a light pattern.
  • The relative phase value calculation unit 46 has a function of calculating a phase value in accordance with a luminance value (phase values θ and φ described later) on a pixel basis based on an image captured by the image capture device 30. Note that details of a method of calculating a phase value will be described later.
  • The absolute phase value calculation unit 48 has a function of calculating an absolute phase value (an absolute phase value Θ described later) on a pixel basis based on a phase value calculated by the relative phase value calculation unit 46. Note that details of a method of calculating a phase value will be described later.
  • The three-dimensional coordinate calculation unit 50 has a function of finding three-dimensional coordinates of a projection point P (X, Y, Z) on the measured object 10 corresponding to a point p(x, y) on an image by using calculation based on an absolute phase value of each pixel calculated by the absolute phase value calculation unit 48.
  • The control unit 52 has a function of generally controlling the above units of the image processing device 40.
  • Next, before the three-dimensional shape measuring method according to the present example embodiment is specifically described, a basic principle of a three-dimensional shape measuring method using a sinusoidal grating phase shift method will be described.
  • The sinusoidal grating phase shift method is a method of projecting a sinusoidal grating light pattern as illustrated in FIG. 2A to FIG. 2D (hereafter, referred to as a sinusoidal pattern) on the measured object 10 while gradually shifting the phase and identifying the three-dimensional shape based on captured images of the measured object 10 on which the light pattern is projected.
  • FIG. 2A to FIG. 2D illustrate four sinusoidal patterns whose phases are each shifted by ¼ wavelengths as an example. Each drawing of FIG. 2A to FIG. 2D represents the luminance in a projection region of the light pattern in grayscale. In the sinusoidal pattern illustrated in each drawing of FIG. 2A to FIG. 2D, the luminance changes sinusoidally in the vertical direction of the drawing. FIG. 2A illustrates a light pattern projected at time t=0, FIG. 2B illustrates a light pattern projected at time t=π/2, FIG. 2C illustrates a light pattern projected at time t=a, and FIG. 2D illustrates a light pattern projected at time t=3π/2.
  • Note that a variable t is here denoted as “time”, description is provided for a case of modulating the amplitude of the luminance. In implementation, a vertical displacement of the phase when the light pattern of FIG. 2A is a reference is illustrated, and the projection timing of a light pattern can be changed regardless of the actual time. The same applies to FIG. 3A and FIG. 3B described later.
  • When the measured object 10 on which a sinusoidal pattern is projected by the image capture device 30, a luminance value I(x, y, t) at time t at (x, y) coordinates of an obtained image is expressed as Equation (1) below, where the amplitude of a sine wave is denoted as A, the phase value is denoted as θ, and the bias (the center value of a sine wave) is denoted as B.

  • [Math. 1]

  • I(x,y,t)=A·cos(t+θ)+B  (1)
  • Since the light pattern projected by the projector device 20 differs in the phase value θ for each angle viewed from the projector device 20, if the phase value θ at coordinates (x, y) can be calculated, the three-dimensional position corresponding to the coordinates (x, y) can be defined.
  • Since Equation (1) has three unknowns of the amplitude A, the phase value θ, and the bias B, with at least three light pattern projection images, the phase value θ can be calculated. When four or more light pattern projection images are captured, the phase value θ can be calculated more accurately by using a least-squares method or the like.
  • Herein, if images at time t=0, time t=π/2, time t=π, and time t=3π/2 are acquired, the luminance value I(x, y, t) at the coordinates (x, y) at each time is expressed as Equation (2) to Equation (5) below.
  • [ Math . 2 ] I ( x , y , 0 ) = A · cos ( θ ) + B ( 2 ) I ( x , y , π 2 ) = A · cos ( π 2 + θ ) + B ( 3 ) I ( x , y , π ) = A · cos ( π + θ ) + B ( 4 ) I ( x , y , 3 π 2 ) = A · cos ( 3 π 2 + θ ) + B ( 5 )
  • Equation (6) to Equation (8) below are obtained by finding the amplitude A, the phase value θ, and the bias B by using a least-squares method from Equation (2) to Equation (5).
  • [ Math . 3 ] A = ( I ( x , y , 0 ) - I ( x , y , π ) ) 2 + ( I ( x , y , π 2 ) - I ( x , y , 3 π 2 ) ) 2 2 ( 6 ) B = I ( x , y , 0 ) + I ( x , y , π 2 ) + I ( x , y , π ) + I ( x , y , 3 π 2 ) 4 ( 7 ) θ = tan - 1 - I ( x , y , π 2 ) + I ( x , y , 3 π 2 ) I ( x , y , 0 ) - I ( x , y , π ) ( 8 )
  • In general, in the sinusoidal grating phase shift method, it is known from experience that resolution around 1/200 of the depth corresponding to one cycle is obtained, and accuracy of around 100 μm to 200 μm is actually obtained as an example.
  • Since the sine wave is a repeating function, however, the obtained phase value θ ranges from −π to π (−π≤θ≤π). Therefore, points indicating the same phase value θ may be present, the number of which is the same as the number of cycles included in a projection region of a light pattern, and coordinates cannot be uniquely defined from the obtained phase value θ. Although the use of a sinusoidal pattern where the whole screen of a captured image corresponds to one cycle can solve this uncertainty, there is a tradeoff relationship where depth measuring accuracy deteriorates accordingly. Thus, conventionally, a so-called multi-eye sinusoidal grating phase shift method in which images acquired by two image capture devices are used to solve the uncertainty is used. However, the multi-eye sinusoidal grating phase shift method uses a plurality of projectors or a plurality of image capture devices and thus has a problem of system configuration or control being more complex or the like.
  • In the three-dimensional shape measuring method according to the present example embodiment, two types of light patterns are used as the light pattern to be projected on the measured object 10. These two types of light patterns are periodic light patterns whose numbers of repeating cycles are different from each other, which are distinguished here as a short cycle light pattern and a long cycle light pattern. That is, the three-dimensional shape measuring method according to the present example embodiment is to perform measurement of a phase value using a long cycle light pattern in addition to measurement of a phase value using a short cycle light pattern similar to the measurement by using the sinusoidal phase shift method described above.
  • In the present example embodiment, a sinusoidal pattern is used as each of the short cycle light pattern and the long cycle light pattern. The short cycle light pattern is a light pattern that determines the resolution of measurement. The greater the number of cycles of the short cycle light pattern included in the whole screen of an image captured by the image capture device 30 is, the higher the resolution of measurement is. Thus, it is desirable that the short cycle light pattern be a light pattern including multiple cycles of patterns in a whole screen of a captured image, as illustrated in FIG. 2A to FIG. 2D, for example. The number of cycles of a short cycle light pattern included in the whole screen can be suitably set in accordance with resolution required for measurement. The long cycle light pattern is a light pattern used for identifying the absolute phase value Θ and desirably a light pattern including one or less cycle of pattern in the whole screen of an image captured by the image capture device 30.
  • As illustrated in FIG. 3A and FIG. 3B, for example, a light pattern including one cycle of pattern in the whole screen of a captured image can be applied to the long cycle light pattern. Each drawing of FIG. 3A and FIG. 3B represents the luminance in the projection region of a light pattern in grayscale in the same manner as FIG. 2A to FIG. 2D. Also in the sinusoidal pattern illustrated in FIG. 3A and FIG. 3B, the luminance changes sinusoidally in the vertical direction of the drawing. FIG. 3A illustrates a light pattern projected at time t=0, and FIG. 3B illustrates a light pattern projected at time t=π/2.
  • When the measured object 10 on which the short cycle light pattern is projected is captured by the image capture device 30, the luminance value I(x, y, t) at time t at (x, y) coordinates of an obtained image is expressed as Equation (1) described above, where the amplitude is denoted as A, the phase value is denoted as θ, and the bias is denoted as B.
  • Herein, if images at time t=0, time t=π/2, time t=π, and time t=3π/2 are acquired, the luminance value I (x, y, t) at the coordinates (x, y) is expressed as Equation (2) to Equation (5) described above. Further, Equation (6) to Equation (8) described above are obtained by finding the amplitude A, the phase value θ, and the bias B by using a least-squares method from Equation (2) to Equation (5).
  • On the other hand, when the measured object 10 on which the long cycle light pattern is projected is captured by the image capture device 30, the luminance value J(x, y, t) at time t at (x, y) coordinates of an obtained image is expressed as Equation (9) below, where the amplitude is denoted as A′, the phase value is denoted as φ, and the bias is denoted as B′.

  • [Math. 4]

  • J(x,y,t)=A′·cos(t+φ)+B′  (9)
  • Herein, if images at time t=0, time t=π/2, time t=π, and time t=3π/2 are acquired, the luminance value J(x, y, t) at the coordinates (x, y) is expressed as Equation (10) to Equation (13) below.
  • [ Math . 5 ] J ( x , y , 0 ) = A · cos ( ϕ ) + B ( 10 ) J ( x , y , π 2 ) = A · cos ( π 2 + ϕ ) + B ( 11 ) J ( x , y , π ) = A · cos ( π + ϕ ) + B ( 12 ) J ( x , y , 3 π 2 ) = A · cos ( 3 π 2 + ϕ ) + B ( 13 )
  • Equation (14) to Equation (16) below are obtained by finding the amplitude A′, the phase value φ, and the bias B′ by using a least-squares method from Equation (10) to Equation (13).
  • [ Math . 6 ] A = ( J ( x , y , 0 ) - J ( x , y , π ) ) 2 + ( J ( x , y , π 2 ) - J ( x , y , 3 π 2 ) ) 2 2 ( 14 ) B = J ( x , y , 0 ) + J ( x , y , π 2 ) + J ( x , y , π ) + J ( x , y , 3 π 2 ) 4 ( 15 ) ϕ = tan - 1 - J ( x , y , π 2 ) + J ( x , y , 3 π 2 ) J ( x , y , 0 ) - J ( x , y , π ) ( 16 )
  • In general, in the sinusoidal grating phase shift method, it is known from experience that resolution around 1/200 of the depth corresponding to a width of one cycle is obtained. In the case of four-time capturing as described above, when the design strategy is directed to the ability of determining the absolute phase at a high certainty degree is a design strategy, the absolute phase value can be determined from the relative phase value found from around ±3σ, that is, (6/200)−1, namely, around 33 repeating sine waves.
  • Herein, when a projector that can project any light pattern, such as a liquid crystal projector or a DLP projector is used as the projector device 20, it is possible to switch a short cycle light pattern and a long cycle light pattern at a high rate for projection by using a single projector device 20. Then, when the short cycle light pattern and the long cycle light pattern generated based on the light emitted from the same light source from the single projector device 20 are projected, it can be assumed that the basic physical characteristics of the projector device 20 at projection of these light patterns are the same. That is, when projection on the measured object 10 of the short cycle light pattern and the long cycle light pattern is performed by using the same projector device 20, it is considered that Equation (17) below is met.

  • A=A′,B=B′  (17)
  • Therefore, Equation (9) can be rewritten as Equation (18) and Equation (19) below, and the number of unknowns is not three, namely, the amplitude A′, the phase value φ, and the bias B′ but is one, namely, only the phase value φ. Accordingly, with at least only one time of capturing the measured object 10 on which the long cycle light pattern is projected, the phase value φ can be found.
  • [ Math . 7 ] J ( x , y , 0 ) = A · cos ( ϕ ) + B ( 18 ) ϕ = cos - 1 J ( x , y , 0 ) - B A ( 19 )
  • In view of the above, in the present example embodiment, the short cycle light pattern and the long cycle light pattern emitted from the single projector device 20 are projected on the measured object 10, which makes it possible to calculate the phase value φ while reducing the number of times of projection on the measured object 10. Accordingly, the three-dimensional shape of the measured object 10 can be measured in a short time.
  • By performing two times of capturing the measured object 10 on which the long cycle light pattern is projected and finding the phase value φ by a least-squares method, it is possible to improve the measurement accuracy of the phase value φ. Also in such a case, since the number of capturing times is reduced compared to the conventional method that requires at least three times of capturing, the measurement time of the three-dimensional shape of the measured object 10 can be reduced.
  • When two times of capturing are performed with a shift of a half cycle, that is, if images at time t=0 and time t=π are obtained, respectively, a luminance value J(x, y, t) at the coordinates (x, y) is expressed by Equation (20) and Equation (21) below.

  • [Math. 8]

  • J(x,y,0)=A′·cos(φ)+B′  (20)

  • f(x,y,π)=A′·cos(π+φ)+B′  (21)
  • By finding the phase value φ from Equation (20) and Equation (21) by a least-squares method, Equation (22) below is obtained.
  • [ Math . 9 ] ϕ = cos - 1 J ( x , y , 0 ) - J ( x , y , π ) 2 A ( 22 )
  • It should be noted, however, that the uncertainty of the phase value φ obtained by Equation (19) and Equation (22) is not a fraction divided from 2π by an integer but a fraction divided from n by an integer (the range of the obtained phase value φ is 0≤φ≤π). That is, it is required to project sine waves so that the whole image corresponds not to one cycle but to a half cycle. This means that the relative error of the phase value φ becomes two times.
  • In order that the phase value φ can be used in a range of 2π, Equation (19) or Equation (22) used for finding the phase value φ needs to be rewritten to be not a cosine function but an inverse function of a tangent function. When capturing with a shift of ¼ cycles, that is, two-time capturing at time t=0 and time t=π/2 is assumed, the luminance value J(x, y, t) at the coordinates (x, y) is expressed by Equation (23) and Equation (24) below.
  • [ Math . 10 ] J ( x , y , 0 ) = A · cos ( ϕ ) + B ( 23 ) J ( x , y , π 2 ) = A · cos ( π 2 + ϕ ) + B ( 24 )
  • By finding the phase value φ from Equation (23) and Equation (24) by a least-squares method, Equation (25) below is obtained. The uncertainty of the phase value φ obtained therefrom is a fraction divided from 2π by an integer (the range of the obtained phase value φ is −π≤φ≤π).
  • [ Math . 11 ] ϕ = tan - 1 - J ( x , y , π 2 ) + B J ( x , y , 0 ) - B ( 25 )
  • Note that the phase value of the long cycle light pattern to be projected changes gradually in the whole image and thus is expected to have a good compatibility with noise removal such as smoothing or a median filter. With design to have the same absolute phase determination accuracy as that when four-time capturing is performed, it is possible to cancel the disadvantage caused by a reduction of the number of capturing times.
  • The phase value θ becomes a value for every one cycle of the short cycle light pattern, that is, a value from −π to π. Therefore, to find an absolute phase value in a light pattern projected for multiple cycles, a process of estimating where a pattern of the order n (a value indicating the n-th cycle counted from one end to the other end) is located on each captured image is required. In the present example embodiment, the phase value φ is used for the estimation of the order n of a short cycle light pattern.
  • FIG. 4 is a graph illustrating an example of the relationship between the relative phase value (the phase value θ and the phase value φ) and the order n of a short cycle light pattern when the short cycle light pattern within a screen includes 10 cycles and the long cycle light pattern has one cycle.
  • As illustrated in FIG. 4, the order n of the short cycle light pattern can be determined uniquely in accordance with a value of the phase value φ. For example, the order n of a short cycle light pattern is two in a range of the phase value φ being π/5 to 2π/5, and the order n of a short cycle light pattern is seven in a range of the phase value φ being −4π/5 to −3π/5.
  • With the order n of the short cycle light pattern being found, the absolute phase value Θ (=θ+2π(n−1)) can be calculated from the phase value θ and the order n. The line obtained by connecting points having the same absolute phase value Θ on a captured image (equal phase line) represents a shape of a cross section of the measured object 10 taken along a certain plane similar to a sectional line by a light-section method. Based on this absolute phase value Θ, the three-dimensional shape of the measured object 10 (height information at each point of an image) can be measured by a triangulation principle. That is, it is possible to identify the three-dimensional shape of the measured object 10 by finding the absolute coordinate value of a projection point on the measured object in a three-dimensional space corresponding to each pixel on an image by a triangulation principle based on the absolute phase value Θ and the optical arrangement of the projector device 20 and the image capture device 30.
  • Since the three-dimensional shape measuring method of the present example embodiment uses two light patterns, namely, the short cycle light pattern and the long cycle light pattern, the capturing time is longer than in the case where one type of the light pattern is used. However, with a use of a DLP projector, a liquid crystal projector, or the like for projection of a light pattern, the capturing time can be sufficiently reduced for the absolute time. Further, according to the three-dimensional shape measuring method of the present example embodiment, it is expected to solve the problems of long calculation time of three-dimensional coordinates and inability of measurement if the positional relationship between the camera and the projector on the left and right becomes wrong, which are disadvantages of the multi-eye sinusoidal grating phase shift method described above.
  • Further, in the conventional method, when two light patterns, namely, the short cycle light pattern and the long cycle light pattern are used, projection and capturing of the light patterns are required to be performed for at least three times, respectively, that is, six times in total. In contrast, in the three-dimensional shape measuring method according to the present example embodiment, projection and capturing of the light patterns need to be performed only for at least three times by using the short cycle light pattern and one time by using the long cycle light pattern, that is, four times in total. Therefore, according to the three-dimensional shape measuring method of the present example embodiment, the number of images to be projected can be reduced, and the capturing time can be shortened.
  • Note that, although measurement using a short cycle light pattern is performed earlier and the amplitude A and the bias B are calculated in the above description, measurement using a long cycle light pattern may be performed earlier and the amplitude A′ and the bias B′ may be calculated.
  • The three-dimensional shape measuring method according to the present example embodiment can be performed in accordance with step S101 to step S116 illustrated in FIG. 5, for example. Note that description is provided here for a case of calculating the amplitude A, the bias B, and the phase value θ from an image of the measured object 10 on which the first light pattern, which is the short cycle light pattern, is projected and calculating the phase value φ from an image of the measured object 10 on which the second light pattern, which is the long cycle light pattern, is projected, as an example. However, the amplitude A′, the bias B′, and the phase value φ may be calculated from an image of the measured object 10 on which the first light pattern, which is the long cycle light pattern, is projected and calculate the phase value θ from an image of the measured object 10 on which the second light pattern, which is the short cycle light pattern, is projected. Projection of the second light pattern may be performed earlier than projection of the first light pattern.
  • First, in step S101, the number of projection times L for the first light pattern is set. Measurement using the first light pattern is for determining the amplitude A, the bias B, and the phase value θ, and the number of projection times L is greater than or equal to three. To perform more accurate measurement by using a least-squares method or the like, it is desirable that the number of projection times L be greater than or equal to four. As an example here, the number of projection times L for the first light pattern is four.
  • Next, in step S102, under the control of the projection pattern control unit 42, the projector device 20 projects the first light pattern on the measured object 10 to be measured. As an example here, the first light pattern, which is the short cycle light pattern, is projected on the measured object 10. The pattern of FIG. 2A is applicable as the short cycle light pattern, for example.
  • Next, in step S103, under the control of the image acquisition unit 44, the image capture device 30 captures an image of the measured object 10 on which the first light pattern is projected.
  • Next, in step S104, the number of projection times L for the first light pattern is decremented by one. The number of projection times L represents the number of remaining projection times of the first light pattern.
  • Next, in step S105, it is determined whether or not the number of projection times L of the first light pattern is zero, that is, whether or not the projection and capturing of the first light pattern have been performed for the number of projection times L set in step S101.
  • As a result of the determination of step S105, if the number of projection times L is not zero (step S105, “No”), in step S106, the phase of the first light pattern projected on the measured object 10 is shifted, and the process returns to step S102. For example, when the number of projection times L is four, the projection pattern control unit 42 sequentially prepares data of the short cycle light patterns having phases shifted stepwise by ¼ wavelengths (see FIG. 2B, FIG. 2C, and FIG. 2D) and transmits the data to the projector device 20.
  • As a result of the determination in step S105, if the number of projection times L is zero (step S105, “Yes”), the process proceeds to step S107.
  • Next, in step S107, the relative phase value calculation unit 46 calculates the amplitude A, the bias B, and the phase value θ, respectively, based on the luminance value I of each pixel of the L images captured in step S103. The amplitude A, the bias B, and the phase value θ can be calculated based on Equation (6) to Equation (8), for example.
  • Next, in step S108, the number of projection times M for the second light pattern is set. Measurement using the second light pattern is for determining the phase value φ, and the number of projection times M is greater than or equal to one. To perform more accurate measurement by using a least-squares method or the like, it is desirable that the number of projection times M be greater than or equal to two. As an example here, the number of projection times M for the second light pattern is two.
  • Next, in step S109, under the control of the projection pattern control unit 42, the projector device 20 projects the second light pattern on the measured object 10 to be measured. As an example here, the second light pattern that is the long cycle light pattern is projected on the measured object 10. The pattern of FIG. 3A is applicable as the long cycle light pattern, for example.
  • Next, in step S110, under the control of the image acquisition unit 44, the image capture device 30 captures an image of the measured object 10 on which the second light pattern is projected.
  • Next, in step S111, the number of projection times M for the second light pattern is decremented by one. The number of projection times M represents the number of remaining projection times of the second light pattern.
  • Next, in step S112, it is determined whether or not the number of projection times M of the second light pattern is zero, that is, whether or not the projection and capturing of the second light pattern have been performed for the number of projection times M set in step S108.
  • As a result of the determination of step S112, if the number of projection times M is not zero (step S112, “No”), in step S113, the phase of the second light pattern projected on the measured object 10 is shifted, and the process returns to step S109. For example, when the number of projection times M is two, the projection pattern control unit 42 prepares data of the long cycle light patterns having phases shifted stepwise by ¼ wavelengths (see FIG. 3B) and transmits the data to the projector device 20.
  • As a result of the determination in step S112, if the number of projection times M is zero (step S112, “Yes”), the process proceeds to step S114.
  • Next, in step S114, the relative phase value calculation unit 46 calculates the phase value φ based on the amplitude A and the bias B calculated in step S107 and the luminance value J of each pixel of the M images captured in step S110, respectively. The phase value φ can be calculated based on Equation (25), for example.
  • Next, in step S115, the absolute phase value calculation unit 48 calculates the absolute phase value Θ based on the phase value θ calculated in step S107 and the phase value φ calculated in step S114.
  • Next, in step S116, based on the absolute phase value Θ calculated in step S115, the three-dimensional coordinate calculation unit 50 calculates the absolute coordinate values of the projection point on the measured object 10 in the three-dimensional space corresponding to each pixel of the captured image. Accordingly, the three-dimensional shape of the measured object 10 can be identified.
  • As described above, the three-dimensional measuring method according to the present example embodiment can measure the three-dimensional shape of a measured object by performing projection and capturing of light patterns for at least three times using the short cycle light pattern and once using the long cycle light pattern, namely, four times in total. Therefore, the three-dimensional measuring method according to the present example embodiment can reduce the number of projected images and thus can shorten the measuring time compared to the conventional method that requires projection and capturing of light patterns for at least three times using the short cycle light pattern and three times using the long cycle light pattern, namely, six times in total. It is required to complete the measurement in a short time when a three-dimensional shape of a moving measured target is measured, in particular, such as when face authentication of a person is performed, for example. The three-dimensional measuring method according to the present example embodiment that enables accurate measurement within a shorter measuring time is significantly useful in accurately performing face authentication with a moving image, for example.
  • Further, the three-dimensional measuring method according to the present example embodiment can perform projection of the short cycle light pattern and projection of the long cycle light pattern by using a single projector device and perform capturing a light pattern projected on a measured object by using a single image capture device. Therefore, with the three-dimensional measuring apparatus according to the present example embodiment, it is possible to simplify the system configuration or control compared to the conventional method using a plurality of projector devices or image capture devices.
  • Therefore, according to the present example embodiment, it is possible to realize the three-dimensional shape measuring method and apparatus that may measure a three-dimensional shape of an object at high accuracy and in a short time with a simpler system.
  • Second Example Embodiment
  • A three-dimensional shape measuring apparatus and a three-dimensional shape measuring method according to a second example embodiment of the present invention will be described with reference to FIG. 6A to FIG. 9B. The same components as those of the three-dimensional shape measuring apparatus according to the first example embodiment will be labeled with the same references, and the description thereof will be omitted or simplified.
  • FIG. 6A and FIG. 6B are diagrams illustrating examples of a long cycle light pattern used in the three-dimensional shape measuring method according to the present example embodiment. FIG. 7 is a graph illustrating a calculation method of an absolute phase value in the three-dimensional shape measuring method according to the present example embodiment. FIG. 8 is a flowchart illustrating the three-dimensional shape measuring method according to the present example embodiment. FIG. 9A and FIG. 9B are graphs illustrating results of inspection of an advantageous effect of the present invention through a computer simulation.
  • Although the sinusoidal pattern is used as a short cycle light pattern and a long cycle light pattern in the first example embodiment, the short cycle light pattern and the long cycle light pattern are not necessarily required to be a sinusoidal pattern and may be another periodic pattern. In particular, various periodic patterns are applicable to the long cycle light pattern, because it is sufficient that the position is uniquely defined on the whole screen. In the present example embodiment, as an example of the above, a case where a sinusoidal pattern is used as the short cycle light pattern and a luminance slope pattern is used as the long cycle light pattern will be described.
  • Since the derivative near the maximum value and the minimum value of a sine wave is close to zero, there is a high likelihood that substantially the same luminance values are projected at adjacent angles. In fact, when 640 pixels, which is a common size of a camera image, are projected at 256 levels, which is a common luminance quantized level of a camera or a projector, an error near the maximum value or the minimum value of the sine wave increases if the number of projecting light patterns is reduced as with the present invention.
  • To avoid such a problem and remove dependency on a projection angle, it is effective to use a luminance slope pattern whose derivative is constant, that is, whose luminance value changes linearly at a fixed ratio. Accordingly, in the present example embodiment, the luminance slope pattern is applied as a long cycle light pattern. FIG. 6A and FIG. 6B each illustrate an example of the luminance slope pattern. FIG. 6A illustrates a luminance slope pattern in which the luminance increases at a fixed ratio from the upper part toward the lower part, and FIG. 6B illustrates a luminance slope pattern in which the luminance decreases at a fixed ratio from the upper part toward the lower part.
  • When the measured object 10 on which a luminance slope pattern is projected is captured by the image capture device 30, the luminance value K(x, y, t) at time t at (x, y) coordinates of an obtained image is expressed as Equation (26) below. Herein, A″ denotes an amplitude, B″ denotes a bias, and ω is a variable that changes linearly within a range −1≤ω≤1.

  • [Math. 12]

  • K(x,y,t)=A″·(−(2t−1)·Ω)+B″  (26)
  • Also when the luminance slope pattern is used, Equation (27) below is met when the same projector device 20 is used for the short cycle light pattern and the long cycle light pattern. Therefore, if the measured object 10 on which the long cycle light pattern is projected is captured at least once only, the phase value φ can be found.

  • A=A″,B=B″  (27)
  • In the same manner as the case of the first example embodiment, when the measured object 10 on which the luminance slope pattern is projected is captured once only, the luminance value K(x, y, t) and the variable ω are expressed by Equation (28) and Equation (29).
  • [ Math . 13 ] K ( x , y , 0 ) = A · ω + B ( 28 ) ω = K ( x , y , 0 ) - B A ( 29 )
  • Further, it is possible to perform twice the capturing of the measured object 10 on which the luminance slope pattern is projected and find the variable ω by using a least-squares method. That is, if images at time t=0 and time t=1 are obtained, respectively, the luminance value K(x, y, t) at coordinates (x, y) is expressed by Equation (30) and Equation (31) below. The variable ω is then expressed by Equation (32) below.
  • [ Math . 14 ] K ( x , y , 0 ) = A · ω + B ( 30 ) K ( x , y , 1 ) = - A · ω + B ( 31 ) ω = K ( x , y , 0 ) - K ( x , y , 1 ) 2 A ( 32 )
  • The variable ω changes gradually in the whole screen and thus is expected to have a good compatibility with noise removal such as smoothing or a median filter. With design to have the same absolute phase determination accuracy as that when four-time capturing is performed, it may be possible to cancel the disadvantage caused by a reduction of the number of capturing times. Further, unlike the phase value, since the variable ω is not a periodic value in a strict sense, a classical noise removal process can be utilized without change.
  • FIG. 7 is a graph illustrating a relationship between the relative phase value (phase value θ) and the variable ω with respect to the order n of the short cycle light pattern when the short cycle light pattern includes 10 cycles and the long cycle light pattern (luminance slope pattern) includes 1 cycle within a screen.
  • As illustrated in FIG. 7, the order n of the short cycle light pattern can be defined uniquely in accordance with the value of the variable ω. For example, the order n of the short cycle light pattern is 2 in a range of the variable ω from −0.8 to −0.6, and the order n of the short cycle light pattern is 7 in a range of the variable ω from 0.2 to 0.4.
  • With the order n of the short cycle light pattern being found, the absolute phase value Θ (=θ+2π(n−1)) can be calculated from the phase value θ and the order n. A line obtained by connecting points having the same absolute phase value Θ on the captured image (equal-phase line) represents the shape of a cross section of the measured object 10 taken along a certain plane in a similar manner to a sectional line by a light-section method. Based on this absolute phase value Θ, the three-dimensional shape of the measured object 10 (height information at each point of an image) can be measured by a triangulation principle. That is, it is possible to identify the three-dimensional shape of the measured object 10 by finding absolute coordinate value of a projection point on the measured object in a three-dimensional space corresponding to each pixel on an image by a triangulation principle based on the absolute phase value Θ and the optical arrangement of the projector device 20 and the image capture device 30.
  • The three-dimensional shape measuring method according to the present example embodiment can be performed in accordance with step S201 to step S216 illustrated in FIG. 8, for example. Note that description is provided here for a case of calculating the amplitude A, the bias B, and the phase value θ from an image of the measured object 10 on which the first light pattern, which is the short cycle light pattern, is projected and calculating the phase value φ from an image of the measured object 10 on which the second light pattern, which is the long cycle light pattern, is projected as an example. However, the amplitude A′, the bias B′, and the phase value φ may be calculated from an image of the measured object 10 on which the first light pattern that is the long cycle light pattern is projected and calculate the phase value θ from an image of the measured object 10 on which the second light pattern, which is the short cycle light pattern, is projected. Projection of the second light pattern may be performed earlier than projection of the first light pattern.
  • First, in the same manner as step S101 to step S107 of the three-dimensional shape measuring method according to the first example embodiment, measurement using the first light pattern (short cycle light pattern) is performed. Thereby, based on the luminance value I of each pixel of L captured images, the amplitude A, the bias B, and the phase value θ are calculated, respectively (step S201 to step S207).
  • Next, in step S208, the number of projection times M for the second light pattern (the luminance slope pattern) is set. Measurement using the second light pattern is for determining the variable ω, and the number of projection times M is greater than or equal to one. To perform more accurate measurement by using a least-squares method or the like, it is desirable that the number of projection times M be greater than or equal to two. As an example here, the number of projection times M for the second light pattern is two.
  • Next, in step S209, under the control of the projection pattern control unit 42, the projector device 20 projects the second light pattern, which is the luminance slope pattern, on the measured object 10. The pattern of FIG. 6A is applicable as the luminance slope pattern, for example.
  • Next, in step S210, under the control of the image acquisition unit 44, the image capture device 30 captures an image of the measured object 10 on which the second light pattern is projected.
  • Next, in step S211, the number of projection times M for the second light pattern is decremented by one. The number of projection times M represents the number of remaining projection times of the second light pattern.
  • Next, in step S212, it is determined whether or not the number of projection times M of the second light pattern is zero, that is, whether or not the projection and capturing of the second light pattern have been performed for the number of projection times M set in step S208.
  • As a result of the determination of step S212, if the number of projection times M is not zero (step S212, “No”), in step S213, the phase of the second pattern projected on the measured object 10 is shifted, and the process returns to step S209. For example, when the number of projection times M is two, the projection pattern control unit 42 sequentially prepares data of the luminance slope patterns having an inversed luminance slope (see FIG. 6B) and transmits the data to the projector device 20.
  • As a result of the determination in step S212, if the number of projection times M is zero (step S212, “Yes”), the process proceeds to step S214.
  • Next, in step S214, the relative phase value calculation unit 46 calculates the variable ω based on the amplitude A and the bias B calculated in step S207 and the luminance value K of each pixel of the M images captured in step S210, respectively. The variable ω can be calculated based on Equation (32), for example.
  • Next, in step S215, the absolute phase value calculation unit 48 calculates the absolute phase value Θ based on the phase value θ calculated in step S207 and the variable ω calculated in step S214.
  • Next, in step S216, based on the absolute phase value Θ calculated in step S215, the three-dimensional coordinate calculation unit 50 calculates the absolute coordinate values of the projection point on the measured object 10 in the three-dimensional space corresponding to each pixel of the captured image. Accordingly, the three-dimensional shape of the measured object 10 can be identified.
  • FIG. 9A and FIG. 9B each illustrate a result of inspection of the advantageous effect of the present invention through a computer simulation. FIG. 9A illustrates a case of the first example embodiment in which sinusoidal patterns are used as the short cycle light pattern and the long cycle light pattern, and FIG. 9B illustrates a case of the present example embodiment in which a sinusoidal pattern is used as the short cycle light pattern and a luminance slope pattern is used as the long cycle light pattern. In both the cases, it is assumed that the number of projection times of the long cycle light pattern is two.
  • In the computer simulation, after a sinusoidal pattern or a luminance slope pattern having the amplitude A=64 and the bias B=127 was generated as an image of 480×640 pixels as a target, normalized noise having a mean of 0 and a standard deviation of σ=3 was superimposed thereon, which was quantized within a range of 0 to 255. A sine wave used for the shape measurement was 10-time repetition pattern (see FIG. 2A to FIG. 2D), and a sine wave used for the absolute phase determination was a half-cycle pattern. In the drawing, the plots×represent the short cycle light pattern and are illustrated together with an error bar of the range of the standard deviation σ. Further, the plots □ represent the long cycle light pattern and are illustrated together with an error bar of the range of three times the standard deviation σ.
  • When a sinusoidal pattern is used as a long cycle light pattern, it can be seen that the accuracy related to determination of the absolute phase value significantly drops near the point at which the derivative of the long cycle light pattern is zero, as illustrated in FIG. 9A. It can be seen that, when σ is 3, the six-time range maximum value of the phase estimation accuracy with a long cycle sinusoidal grating is 33.0% and it will be difficult to determine the absolute phase unless the cycle of the short cycle sinusoidal grating is decreased to around three cycles within a screen. As described previously, since the derivative near the maximum value and the minimum value of a sine wave is close to zero, there is a high likelihood that substantially the same luminance values are projected at adjacent angles. When the number of projection times of a light pattern is reduced as with the present invention, the error around the maximum value and the minimum value of a sine wave increases.
  • On the other hand, when a luminance slope pattern is used as a long cycle light pattern, it can be seen that the accuracy related to determination of the absolute phase value is constant independently of the position as illustrated in FIG. 9B and is significantly improved as a whole compared to the case of FIG. 9A. When σ is 3, it can be seen that the six-time range maximum value of the phase estimation accuracy with a long cycle sinusoidal grating is 4.5% and the cycle of the short cycle sinusoidal grating can be increased up to around 20 cycles within the screen. In such a way, by applying a luminance slope pattern as a long cycle light pattern, it is possible to reduce a projection angle dependency of a measurement error, which enables more accurate measurement.
  • As described above, in the three-dimensional measuring method according to the present example embodiment, since the luminance slope pattern is used as the long cycle light pattern, a measurement error can be reduced compared to the three-dimensional measuring method according to the first example embodiment using a sinusoidal pattern as a long cycle pattern. Accordingly, in addition that the advantageous effect provided by the first example embodiment is provided, measurement accuracy can be further improved.
  • Therefore, according to the present example embodiment, it is possible to realize the three-dimensional shape measuring method and apparatus that may measure the three-dimensional shape of an object at high accuracy and in a short time with a simpler system.
  • Third Example Embodiment
  • A three-dimensional shape measuring apparatus according to a third example embodiment of the present invention will be described with reference to FIG. 10. The same components as those of the three-dimensional shape measuring apparatus according to the first and second example embodiments will be labeled with the same references, and the description thereof will be omitted or simplified. FIG. 10 is a schematic diagram illustrating a configuration example of the three-dimensional shape measuring apparatus according to the present example embodiment.
  • The three-dimensional shape measuring apparatus according to the first and second example embodiments can be configured as illustrated FIG. 10, for example. That is, the three-dimensional shape measuring apparatus 100 according to the present example embodiment has a single projector device 20 that projects a first light pattern whose luminance changes at a first cycle and a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on the measured object 10. Further, the three-dimensional shape measuring apparatus 100 has the image capture device 30 that acquires an image of the measured object 10 on which the first light pattern or the second light pattern is projected and the image processing device 40 that processes an image acquired by the image capture device 30. The image processing device 40 has the relative phase value calculation unit 46 that, based on a luminance value at each pixel of an image of the measured object 10 on which the first light pattern is projected, calculates a relative phase value on each part of the measured object 10 corresponding to each pixel. Further, the image processing device 40 has the absolute phase value calculation unit 48 that, based on the luminance value and the relative phase value at each pixel of an image of the measured object 10 on which the second light pattern is projected, calculates an absolute phase value at each part of the measured object 10 corresponding to each of the pixels. Further, the image processing device 40 has the three-dimensional coordinate calculation unit 50 that calculates three-dimensional coordinates on each part of the measured object 10 corresponding to each pixel based on the absolute phase value.
  • With the above configuration, it is possible to realize the three-dimensional shape measuring method and apparatus that may measure the three-dimensional shape of an object at high accuracy and in a short time with a simpler system.
  • Modified Example Embodiments
  • Various modifications can be made to the present invention without being limited to the example embodiments described above.
  • For example, an example embodiment in which a part of the configuration of any of the example embodiments is added to another example embodiment or an example embodiment in which a part of the configuration of any of the example embodiments is replaced with a part of the configuration of another example embodiment is one of the example embodiments of the present invention.
  • Further, although the sinusoidal pattern has been illustrated as a periodic light pattern as an example in the above first and second example embodiments, the periodic light pattern is not limited to a sinusoidal pattern. For example, a periodic light pattern may be a saw-tooth wave pattern as illustrated in FIG. 11A or may be a triangular wave pattern as illustrated in FIG. 11B. It can be said that the luminance slope pattern illustrated in the second example embodiment is a waveform of one cycle of the saw-tooth wave pattern illustrated in FIG. 11A or a waveform of a half cycle of the triangular wave pattern illustrated in FIG. 11B. In view of the above, in the present specification, the luminance slope pattern is handled as one of the periodic light patterns.
  • Further, although an object that is moving has been illustrated as an example of the measured object 10 in the above example embodiments, the three-dimensional shape measuring method and apparatus described in the above example embodiments can be applied to measurement of the shape of various objects, and the measured object 10 is not limited to a moving object.
  • The scope of each of the example embodiments further includes a processing method that stores, in a storage medium, a program that causes the configuration of each of the example embodiments to operate so as to implement the function of each of the example embodiments described above, reads the program stored in the storage medium as a code, and executes the program in a computer. That is, the scope of each of the example embodiments also includes a computer readable storage medium. Further, each of the example embodiments includes not only the storage medium in which the program described above is stored but also the program itself.
  • As the storage medium, for example, a floppy (registered trademark) disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a magnetic tape, a nonvolatile memory card, or a ROM can be used. Further, the scope of each of the example embodiments includes an example that operates on OS to perform a process in cooperation with another software or a function of an add-in board without being limited to an example that performs a process by an individual program stored in the storage medium.
  • Note that all the example embodiments described above are mere examples of embodiment in implementing the present invention, and the technical scope of the present invention should not be construed in a limiting sense by these example embodiments. That is, the present invention can be implemented in various forms without departing from the technical concept thereof or the primary feature thereof.
  • The whole or part of the example embodiments disclosed above can be described as, but not limited to, the following supplementary notes.
  • (Supplementary Note 1)
  • A three-dimensional shape measuring apparatus comprising:
  • a single projector device that projects a first light pattern whose luminance changes at a first cycle and a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on a measured object;
  • an image capture device that acquires an image of the measured object on which the first light pattern or the second light pattern is projected; and
  • an image processing device that processes the image acquired by the image capture device,
  • wherein the image processing device includes
      • a relative phase value calculation unit that, based on a luminance value at each of pixels of an image of the measured object on which the first light pattern is projected, calculates a relative phase value on each part of the measured object corresponding to each of the pixels,
      • an absolute phase value calculation unit that, based on a luminance value and the relative phase value at each of pixels of an image of the measured object on which the second light pattern is projected, calculates an absolute phase value on each the part of the measured object corresponding to each of the pixels, and
      • a three-dimensional coordinate calculation unit that, based on the absolute phase value, calculates three-dimensional coordinates at each the part of the measured object corresponding to each of the pixels.
  • (Supplementary Note 2)
  • The three-dimensional shape measuring apparatus according to supplementary note 1, wherein the image capture device acquires at least three images captured with different phases of the first light pattern projected on the measured object and acquires one image in which the measured object on which the second light pattern is projected is captured or two images captured with different phases of the second light pattern projected on the measured object.
  • (Supplementary Note 3)
  • The three-dimensional shape measuring apparatus according to supplementary note 1 or 2, wherein the first light pattern is a sinusoidal pattern.
  • (Supplementary Note 4)
  • The three-dimensional shape measuring apparatus according to any one of supplementary notes 1 to 3, wherein the second light pattern is a sinusoidal pattern.
  • (Supplementary Note 5)
  • The three-dimensional shape measuring apparatus according to any one of supplementary notes 1 to 3, wherein the second light pattern is a luminance slope pattern whose luminance changes linearly.
  • (Supplementary Note 6)
  • The three-dimensional shape measuring apparatus according to supplementary note 4 or 5, wherein the second light pattern is a pattern by which a whole screen of the image corresponds to one cycle.
  • (Supplementary Note 7)
  • The three-dimensional shape measuring apparatus according to any one of supplementary notes 1 to 6, wherein the projector device generates the first light pattern and the second light pattern from a light emitted from a single light source.
  • (Supplementary Note 8)
  • The three-dimensional shape measuring apparatus according to any one of supplementary notes 1 to 7, wherein the projector device is a DLP projector or a liquid crystal projector.
  • (Supplementary Note 9)
  • The three-dimensional shape measuring apparatus according to any one of supplementary notes 1 to 8, wherein the measured object is a moving object.
  • (Supplementary Note 10)
  • The three-dimensional shape measuring apparatus according to supplementary note 9, wherein the moving object is a face of a person.
  • (Supplementary Note 11)
  • A three-dimensional shape measuring method comprising the steps of:
  • projecting a first light pattern whose luminance changes at a first cycle on a measured object and acquiring an image of the measured object on which the first light pattern is projected;
  • projecting a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on the measured object by the same projector device as a projector device used for projection of the first light pattern and acquiring an image of the measured object on which the second light pattern is projected;
  • based on a luminance value at each of pixels of an image of the measured object on which the first light pattern is projected, calculating a relative phase value on each part of the measured object corresponding to each of the pixels;
  • based on a luminance value and the relative phase value at each of pixels of an image of the measured object on which the second light pattern is projected, calculating an absolute phase value on each the part of the measured object corresponding to each of the pixels; and
  • based on the absolute phase value, calculating three-dimensional coordinates at each the part of the measured object corresponding to each of the pixels.
  • (Supplementary Note 12)
  • The three-dimensional shape measuring method according to supplementary note 11,
  • wherein in the step of acquiring an image of the measured object on which the first light pattern is projected, at least three images captured with different phases of the first light pattern projected on the measured object are acquired, and
  • wherein in the step of acquiring an image of the measured object on which the second light pattern is projected, one image in which the measured object on which the second light pattern is projected is captured or two images captured with different phases of the second light pattern projected on the measured object are acquired.
  • (Supplementary Note 13)
  • The three-dimensional shape measuring method according to supplementary note 11 or 12, wherein the first light pattern is a sinusoidal pattern.
  • (Supplementary Note 14)
  • The three-dimensional shape measuring method according to any one of supplementary notes 11 to 13, wherein the second light pattern is a sinusoidal pattern.
  • (Supplementary Note 15)
  • The three-dimensional shape measuring method according to any one of supplementary notes 11 to 13, wherein the second light pattern is a luminance slope pattern whose luminance changes linearly.
  • (Supplementary Note 16)
  • The three-dimensional shape measuring method according to supplementary note 14 or 15, wherein the second light pattern is a pattern by which a whole screen of the image corresponds to one cycle.
  • (Supplementary Note 17)
  • The three-dimensional shape measuring method according to any one of supplementary notes 11 to 16, wherein the projector device generates the first light pattern and the second light pattern from a light emitted from a single light source.
  • (Supplementary Note 18)
  • The three-dimensional shape measuring method according to any one of supplementary notes 11 to 17, wherein the projector device is a DLP projector or a liquid crystal projector.
  • (Supplementary Note 19)
  • The three-dimensional shape measuring method according to any one of supplementary notes 11 to 18, wherein the measured object is a moving object.
  • (Supplementary Note 20)
  • The three-dimensional shape measuring method
  • according to supplementary note 19, wherein the moving object is a face of a person.
  • (Supplementary Note 21)
  • A program that causes a computer to function as:
  • a unit that controls a single projector device to project a first light pattern whose luminance changes at a first cycle or a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on a measured object;
  • a unit that acquires an image of the measured object on which the first light pattern is projected and an image of the measured object on which the second light pattern is projected;
  • a unit that, based on a luminance value at each of pixels of an image of the measured object on which the first light pattern is projected, calculates a relative phase value on each part of the measured object corresponding to each of the pixels;
  • a unit that, based on a luminance value and the relative phase value at each of pixels of an image of the measured object on which the second light pattern is projected, calculates an absolute phase value on each the part of the measured object corresponding to each of the pixels; and
  • a unit that, based on the absolute phase value, calculates three-dimensional coordinates at each the part of the measured object corresponding to each of the pixels.
  • (Supplementary Note 22)
  • The program according to supplementary note 19, wherein the unit that acquires the image acquires at least three images captured with different phases of the first light pattern projected on the measured object and acquires one image in which the measured object on which the second light pattern is projected is captured or two images captured with different phases of the second light pattern projected on the measured object.
  • (Supplementary Note 23)
  • A computer readable storage medium storing the program according to supplementary note 21 or 22.
  • This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2018-049546, filed on Mar. 16, 2018, the disclosure of which is incorporated herein in its entirety by reference.
  • REFERENCE SIGNS LIST
    • 10 . . . measured object
    • 20 . . . projector device
    • 30 . . . image capture device
    • 40 . . . image processing device
    • 42 . . . projection pattern control unit
    • 44 . . . image acquisition unit
    • 46 . . . relative phase calculation unit
    • 48 . . . absolute phase calculation unit
    • 50 . . . three-dimensional coordinate calculation unit

Claims (23)

1. A three-dimensional shape measuring apparatus comprising:
a single projector device that projects a first light pattern whose luminance changes at a first cycle and a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on a measured object;
an image capture device that acquires an image of the measured object on which the first light pattern or the second light pattern is projected; and
an image processing device that processes the image acquired by the image capture device,
wherein the image processing device includes
a relative phase value calculation unit that, based on a luminance value at each of pixels of an image of the measured object on which the first light pattern is projected, calculates a relative phase value on each part of the measured object corresponding to each of the pixels,
an absolute phase value calculation unit that, based on a luminance value and the relative phase value at each of pixels of an image of the measured object on which the second light pattern is projected, calculates an absolute phase value on each the part of the measured object corresponding to each of the pixels, and
a three-dimensional coordinate calculation unit that, based on the absolute phase value, calculates three-dimensional coordinates at each the part of the measured object corresponding to each of the pixels.
2. The three-dimensional shape measuring apparatus according to claim 1, wherein the image capture device acquires at least three images captured with different phases of the first light pattern projected on the measured object and acquires one image in which the measured object on which the second light pattern is projected is captured or two images captured with different phases of the second light pattern projected on the measured object.
3. The three-dimensional shape measuring apparatus according to claim 1, wherein the first light pattern is a sinusoidal pattern.
4. The three-dimensional shape measuring apparatus according to claim 1, wherein the second light pattern is a sinusoidal pattern.
5. The three-dimensional shape measuring apparatus according to claim 1, wherein the second light pattern is a luminance slope pattern whose luminance changes linearly.
6. The three-dimensional shape measuring apparatus according to claim 4, wherein the second light pattern is a pattern by which a whole screen of the image corresponds to one cycle.
7. The three-dimensional shape measuring apparatus according to claim 1, wherein the projector device generates the first light pattern and the second light pattern from a light emitted from a single light source.
8. The three-dimensional shape measuring apparatus according to claim 1, wherein the projector device is a DLP projector or a liquid crystal projector.
9. The three-dimensional shape measuring apparatus according to claim 1, wherein the measured object is a moving object.
10. The three-dimensional shape measuring apparatus according to claim 9, wherein the moving object is a face of a person.
11. A three-dimensional shape measuring method comprising:
projecting a first light pattern whose luminance changes at a first cycle on a measured object and acquiring an image of the measured object on which the first light pattern is projected;
projecting a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on the measured object by the same projector device as a projector device used for projection of the first light pattern and acquiring an image of the measured object on which the second light pattern is projected;
based on a luminance value at each of pixels of an image of the measured object on which the first light pattern is projected, calculating a relative phase value on each part of the measured object corresponding to each of the pixels;
based on a luminance value and the relative phase value at each of pixels of an image of the measured object on which the second light pattern is projected, calculating an absolute phase value on each the part of the measured object corresponding to each of the pixels; and
based on the absolute phase value, calculating three-dimensional coordinates at each the part of the measured object corresponding to each of the pixels.
12. The three-dimensional shape measuring method according to claim 11,
wherein in the acquiring an image of the measured object on which the first light pattern is projected, at least three images captured with different phases of the first light pattern projected on the measured object are acquired, and
wherein in the acquiring an image of the measured object on which the second light pattern is projected, one image in which the measured object on which the second light pattern is projected is captured or two images captured with different phases of the second light pattern projected on the measured object are acquired.
13. The three-dimensional shape measuring method according to claim 11, wherein the first light pattern is a sinusoidal pattern.
14. The three-dimensional shape measuring method according to claim 11, wherein the second light pattern is a sinusoidal pattern.
15. The three-dimensional shape measuring method according to claim 11, wherein the second light pattern is a luminance slope pattern whose luminance changes linearly.
16. The three-dimensional shape measuring method according to claim 14, wherein the second light pattern is a pattern by which a whole screen of the image corresponds to one cycle.
17. The three-dimensional shape measuring method according to claim 11, wherein the projector device generates the first light pattern and the second light pattern from a light emitted from a single light source.
18. The three-dimensional shape measuring method according to claim 11, wherein the projector device is a DLP projector or a liquid crystal projector.
19. The three-dimensional shape measuring method according to claim 11, wherein the measured object is a moving object.
20. The three-dimensional shape measuring method according to claim 19, wherein the moving object is a face of a person.
21. (canceled)
22. (canceled)
23. A non-transitory computer readable storage medium storing the program that causes a computer to function as:
a unit that controls a single projector device to project a first light pattern whose luminance changes at a first cycle or a second light pattern whose luminance changes at a second cycle that is longer than the first cycle on a measured object;
a unit that acquires an image of the measured object on which the first light pattern is projected and an image of the measured object on which the second light pattern is projected;
a unit that, based on a luminance value at each of pixels of an image of the measured object on which the first light pattern is projected, calculates a relative phase value on each part of the measured object corresponding to each of the pixels;
a unit that, based on a luminance value and the relative phase value at each of pixels of an image of the measured object on which the second light pattern is projected, calculates an absolute phase value on each the part of the measured object corresponding to each of the pixels; and
a unit that, based on the absolute phase value, calculates three-dimensional coordinates at each the part of the measured object corresponding to each of the pixels.
US16/980,978 2018-03-16 2019-03-13 Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, program, and storage medium Abandoned US20200408512A1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2018049546 2018-03-16
JP2018-049546 2018-03-16
PCT/JP2019/010414 WO2019177066A1 (en) 2018-03-16 2019-03-13 Three-dimensional shape measuring device, three-dimensional shape measuring method, program, and recording medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2019/010414 A-371-Of-International WO2019177066A1 (en) 2018-03-16 2019-03-13 Three-dimensional shape measuring device, three-dimensional shape measuring method, program, and recording medium

Related Child Applications (3)

Application Number Title Priority Date Filing Date
US17/591,020 Continuation US20220155056A1 (en) 2018-03-16 2022-02-02 Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, program, and storage medium
US17/591,923 Continuation US20220155058A1 (en) 2018-03-16 2022-02-03 Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, program, and storage medium
US17/591,910 Continuation US20220155057A1 (en) 2018-03-16 2022-02-03 Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, program, and storage medium

Publications (1)

Publication Number Publication Date
US20200408512A1 true US20200408512A1 (en) 2020-12-31

Family

ID=67908282

Family Applications (4)

Application Number Title Priority Date Filing Date
US16/980,978 Abandoned US20200408512A1 (en) 2018-03-16 2019-03-13 Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, program, and storage medium
US17/591,020 Pending US20220155056A1 (en) 2018-03-16 2022-02-02 Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, program, and storage medium
US17/591,923 Pending US20220155058A1 (en) 2018-03-16 2022-02-03 Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, program, and storage medium
US17/591,910 Pending US20220155057A1 (en) 2018-03-16 2022-02-03 Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, program, and storage medium

Family Applications After (3)

Application Number Title Priority Date Filing Date
US17/591,020 Pending US20220155056A1 (en) 2018-03-16 2022-02-02 Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, program, and storage medium
US17/591,923 Pending US20220155058A1 (en) 2018-03-16 2022-02-03 Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, program, and storage medium
US17/591,910 Pending US20220155057A1 (en) 2018-03-16 2022-02-03 Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, program, and storage medium

Country Status (4)

Country Link
US (4) US20200408512A1 (en)
EP (1) EP3767227B1 (en)
JP (2) JP6994165B2 (en)
WO (1) WO2019177066A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022113583A1 (en) * 2020-11-30 2022-06-02 日本電気株式会社 Information processing device, information processing method, and recording medium

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3417377B2 (en) 1999-04-30 2003-06-16 日本電気株式会社 Three-dimensional shape measuring method and apparatus, and recording medium
JP3690212B2 (en) * 1999-10-26 2005-08-31 松下電工株式会社 3D shape measurement method
JP2001283198A (en) * 2000-03-31 2001-10-12 Nec Corp Method and device for collecting feature point and recording medium
JP2003269928A (en) 2002-03-12 2003-09-25 Nec Corp Method and instrument for measuring three-dimensional shape, and program
JP2005249684A (en) 2004-03-05 2005-09-15 Ym Systems Kk Three-dimensional shape measuring device, three-dimensional shape measuring method, and three-dimensional shape measuring program
JP4429184B2 (en) 2005-02-02 2010-03-10 Necエンジニアリング株式会社 Three-dimensional shape measurement system and measurement method
JP4889373B2 (en) * 2006-05-24 2012-03-07 ローランドディー.ジー.株式会社 Three-dimensional shape measuring method and apparatus
JP2008009807A (en) 2006-06-30 2008-01-17 Sanyo Electric Co Ltd Video database construction device, video retrieval device and unknown word retrieval device
JP5123522B2 (en) * 2006-12-25 2013-01-23 パナソニック株式会社 3D measurement method and 3D shape measurement apparatus using the same
JP4830871B2 (en) 2007-01-26 2011-12-07 パナソニック電工株式会社 3D shape measuring apparatus and 3D shape measuring method
JP5032943B2 (en) * 2007-11-06 2012-09-26 パナソニック株式会社 3D shape measuring apparatus and 3D shape measuring method
JP5480479B2 (en) * 2008-08-04 2014-04-23 株式会社ミツトヨ Shape measuring device and calibration method of shape measuring device
JP5233850B2 (en) 2009-06-08 2013-07-10 株式会社Lixil Water retention structure
JP2010175554A (en) * 2010-03-26 2010-08-12 Nec Engineering Ltd Device and method for measuring three-dimensional shape
JP5709009B2 (en) * 2011-11-17 2015-04-30 Ckd株式会社 3D measuring device
FI125320B (en) * 2012-01-05 2015-08-31 Helmee Imaging Oy EVENTS AND SIMILAR OPTICAL MEASUREMENT PROCEDURES
CN104380033A (en) * 2012-06-07 2015-02-25 法罗技术股份有限公司 Coordinate measurement machines with removable accessories
JP6019886B2 (en) * 2012-07-26 2016-11-02 株式会社豊田中央研究所 Shape measuring device
JP5971050B2 (en) 2012-09-18 2016-08-17 富士通株式会社 Shape measuring apparatus and shape measuring method
JP6109255B2 (en) * 2015-07-14 2017-04-05 Ckd株式会社 3D measuring device
JP2017110991A (en) 2015-12-16 2017-06-22 セイコーエプソン株式会社 Measurement system, measurement method, robot control method, robot, robot system, and picking device
JP6694788B2 (en) 2016-09-23 2020-05-20 富士通エフ・アイ・ピー株式会社 VM environment command execution management program, VM environment command execution management method, VM environment command execution management device, and VM environment command execution management system

Also Published As

Publication number Publication date
US20220155056A1 (en) 2022-05-19
JP6994165B2 (en) 2022-01-14
WO2019177066A1 (en) 2019-09-19
EP3767227A4 (en) 2021-04-07
US20220155058A1 (en) 2022-05-19
EP3767227B1 (en) 2022-05-04
JP7274111B2 (en) 2023-05-16
EP3767227A1 (en) 2021-01-20
US20220155057A1 (en) 2022-05-19
JPWO2019177066A1 (en) 2021-01-14
JP2022022326A (en) 2022-02-03

Similar Documents

Publication Publication Date Title
US20150204662A1 (en) Three-dimensional-shape measurement apparatus, three-dimensional-shape measurement method, and non-transitory computer-readable storage medium
JP6420572B2 (en) Measuring apparatus and method
EP3594618B1 (en) Three-dimensional shape measurement device, three-dimensional shape measurement method, and program
US20130076896A1 (en) Three-dimensional measurement apparatus, three-dimensional measurement method, and storage medium
JP6335011B2 (en) Measuring apparatus and method
JP2008157797A (en) Three-dimensional measuring method and three-dimensional shape measuring device using it
US20150138565A1 (en) Calibration method and shape measuring apparatus
JP2009115612A (en) Three-dimensional shape measuring device and three-dimensional shape measurement method
US9513114B2 (en) Measuring device, measuring method, and computer program product
US20220155057A1 (en) Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, program, and storage medium
JP4516949B2 (en) Three-dimensional shape measuring apparatus and three-dimensional shape measuring method
JP2008145139A (en) Shape measuring device
JP5391053B2 (en) 3D shape measuring method and 3D shape measuring apparatus
US11441896B2 (en) Inter-reflection detection apparatus and inter-reflection detection method
JP4797109B2 (en) Three-dimensional shape measuring apparatus and three-dimensional shape measuring method
US10801834B2 (en) Fringe projection for determining topography of a body
US20190346542A1 (en) Apparatus and method
JP2010175554A (en) Device and method for measuring three-dimensional shape
CN112747686B (en) Three-dimensional shape measuring device
JP5968370B2 (en) Three-dimensional measuring apparatus, three-dimensional measuring method, and program
JP2016008837A (en) Shape measuring method, shape measuring device, structure manufacturing system, structure manufacturing method, and shape measuring program
Luo et al. A new phase unwrapping algorithm using two digital phase-shifting gratings of different period for fringe projective 3D profile sensor

Legal Events

Date Code Title Description
STPP Information on status: patent application and granting procedure in general

Free format text: APPLICATION DISPATCHED FROM PREEXAM, NOT YET DOCKETED

AS Assignment

Owner name: NEC CORPORATION, JAPAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:SAKAMOTO, SHIZUO;REEL/FRAME:054441/0218

Effective date: 20201107

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: FINAL REJECTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE AFTER FINAL ACTION FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: ADVISORY ACTION MAILED

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION