1. An image processing apparatus comprising: an obtaining unit configured to obtain image data including a plurality of objects; a first specifying unit configured to specify a first region corresponding to a document region from the image data obtained by the obtaining unit; a second specifying unit configured to specify a second region surrounding the objects included in the image data obtained by the obtaining unit; a determining unit configured to determine whether a size of the first region specified by the first specifying unit is larger than a size of the second region specified by the second specifying unit; and an extracting unit configured to extract image data including the objects if the determining unit determines that the size of the first region is larger than the size of the second region and to individually extract image data corresponding to each of the objects if the determining unit determines that the size of the first region is not larger than the size of the second region.