Patent ID: 8638477

Claim:
An image processing apparatus comprising: a storage unit; a reading unit configured to read an image of a document line by line in a main scanning direction; a detection unit configured to detect a position of a portion of the image in the main scanning direction of the reading unit where the image cannot be read correctly, by using a free space of the storage unit; a correction unit configured to correct a pixel value of the portion corresponding to the position detected by the detection unit in the image read by the reading unit; a check unit configured to check size of the free space of the storage unit; and a control unit configured to control the detection unit to detect the position in first resolution, if the size of the free space checked by the check unit is larger than a predetermined value and control the detection unit to detect the position in second resolution which is lower than the first resolution, if the size of the free space checked by the check unit is smaller than the predetermined value.