According to an additional exemplary embodiment of the present invention, there is further provided a method of controlling an image processing apparatus for extracting a document area, the method including reading a document, binarizing read data; providing a same label number to adjacent black pixels that form a group of black pixels, the label number provided to each group of black pixels being