1. An information processing apparatus comprising: a projection unit configured to project a projection pattern onto an object; an imaging unit configured to capture an image of the object on which the projection pattern is projected; and a derivation unit configured to derive a three-dimensional shape of the object based on the image captured by the imaging unit, wherein the projection pattern projected on the object by the projection unit includes a first pattern including a continuous luminance variation repetitively arranged at certain distances in a predetermined direction, and a second pattern having information for identifying the position of the measurement pattern in the captured image in an area between peaks in the measurement pattern.