1. An information processing apparatus comprising: an acquisition unit configured to acquire a captured image captured by an imaging apparatus in a state where a pattern is projected onto a measurement target object, the pattern including a plurality of lines, identification information arranged on or between the lines to identify the lines, and a feature arranged between the plurality of lines; an identification unit configured to identify each line included in the captured image by acquiring a correspondence between each line included in the projected pattern and each line included in the captured image, based on the identification information included in the captured image; a determination unit configured to determine a second region in the pattern corresponding to a first region between the lines in the captured image based on a result of the identification by the identification unit; and a derivation unit configured to derive a distance of the measurement target object by acquiring a correspondence between the first region and the second region determined by the determination unit.