1. An information processing apparatus comprising: one or more memories that store a set of instructions; and one or more processors that execute the instructions 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; 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; 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; and derive a distance of the measurement target object by acquiring a correspondence between the first region and the second region.