1. An apparatus for decoding an encoded image pattern having a detection pattern comprising: a detecting unit configured to detect the detection pattern from an image; a correcting unit configured to correct a density of the encoded image pattern of which a position is specified by the detected detection pattern, based upon a density of the detected detection pattern; and a decoding unit configured to decode the encoded image pattern of which the density has been corrected.