An image reading apparatus comprising:
- a conveyance unit configured to convey an original;
- a reading unit comprising a reading sensor, the reading sensor having a light receiving element to receive light of a first color and a light receiving element to receive light of a second color that is different from the first color, wherein the reading unit is configured to read an image of the original conveyed by the conveyance unit by using the reading sensor to generate image data which represents a reading result of the reading unit;
- at least one processor configured to:
- determine a first abnormal position that is a position in a first direction of an abnormal pixel of the first color in an image represented by the image data, wherein, in the image represented by the image data, the first direction is a direction which intersects a second direction corresponding to a conveyance direction in which the original is conveyed;
- determine a second abnormal position that is a position in the first direction of an abnormal pixel of the second color in the image represented by the image data;
- perform correction processing for removing the streak image by correcting the image data;
- and
- perform character recognition processing to recognize a character in the image represented by the image data,
- wherein the at least one processor is configured to perform a first processing in which:
- the correction processing is performed to the image data of the first color corresponding to the first abnormal position in the image represented by the image data;
- and
- the correction processing is performed, regardless of presence or absence of the abnormal pixel of the second color, to the image data of the second color corresponding to the first abnormal position in the image represented by the image data,
- wherein the at least one processor is configured to perform a second processing in which:
- the correction processing is performed to the image data of the first color corresponding to the first abnormal position in the image represented by the image data;
- and
- the correction processing is not performed, in a case where the abnormal pixel of the second color is not in the first abnormal position, to the image data of the second color corresponding to the first abnormal position in the image represented by the image, and
- wherein the at least one processor is configured to:
- output an image obtained by the first processing in a case where the character recognized by the character recognition processing to the image obtained by the first processing and the character recognized by the character recognition processing to the image obtained by the second processing are the same,
- output an image obtained by the second processing in a case where the character recognized by the character recognition processing to the image obtained by the first processing and the character recognized by the character recognition processing to the image obtained by the second processing are different from each other.