1. An information processing apparatus comprising: a memory; a processor that upon executing instructions stored in the memory functions as: a detection unit configured to detect, from an image obtained by capturing a predetermined object, one or more indicated positions indicated by a part of the predetermined object; an extraction unit configured to extract, from the image, feature information indicating a state of the predetermined object, the feature information being different from the one or more indicated positions; a first recognition unit configured to recognize, based on a change in a positional relationship between two or more of the indicated positions detected by the detection unit, an operation to be input to the information processing apparatus; a second recognition unit configured to, based on a change in the feature information extracted by the extraction unit, recognize the operation to be input to the information processing apparatus; and an output unit configured to output either one of recognition results of the first recognition unit and the second recognition unit, the either one of recognition results being selected based on a shift of a number of the indicated positions detected by the detection unit.