1. An image processor comprising: an obtaining unit that obtains image data that corresponds to an document image including character images and other types of images; an extracting unit that extracts the character images from the image data; an detecting unit that checks whether a color change exists in the extracted character images based on the extracted image data; and a generating unit that generates character code data based on the image data for the character images as to which there is no color change.