1. An information processing apparatus, comprising: an input unit configured to input an image; a first selection unit configured to select one language group from a plurality of language groups, wherein a plurality of languages are classified into the plurality of language groups; a second selection unit configured to select one language belonging to the language group selected by the first selection unit; a character recognition unit configured to perform character recognition appropriate for the language selected by the second selection unit on characters included in the image inputted by the input unit to obtain a character recognition result; a calculation unit configured to, based on the character recognition result obtained by the character recognition unit, calculate a matching degree indicating a degree of similarity between the characters in the image on which the character recognition was performed and the language selected by the second selection unit; and a control unit configure to, in a case where the calculated matching degree is equal to or greater than a first threshold, determine that the characters in the image on which the character recognition was performed are of the language selected by the second selection unit, and output the character recognition result, in a case where the calculated matching degree is equal to or greater than a second threshold and smaller than the first threshold, cause the second selection unit to select a new language from other languages belonging to the selected language group and cause the character recognition unit to perform character recognition based on said selected new language, and in a case where the calculated matching degree is smaller than the second threshold, cause the first selection unit to select a new language group that is different from the selected language group, cause the second selection unit to select a new language from languages belonging to the selected new language group, and cause the character recognition unit to perform character recognition based on said selected new language.