Patent ID: 8493615

Claim:
An image-processing device comprising: an image processor configured to act as: a first detection unit that, based on a predetermined color component, detects a first pixel value that satisfies a predetermined first base color condition from among the pixel values of pixels included in image data which is to be processed; a pixel determination unit that determines pixels with the first pixel value detected by the first detection unit by binarizing each pixel of the image data with the predetermined first base color condition to place the pixels of the image data having the predetermined first base color condition in an off state and to place the pixels of the image data not having the predetermined first base color condition in an on state; a second detection unit that, based on color components other than the predetermined color component, detects a second pixel value that satisfies a predetermined second base color condition from among the pixel values of the pixels determined by the pixel determination unit; and a base color determination unit that determines pixel portions with both the second pixel value detected by the second detection unit and the first pixel value as a base color of an image represented by the image data by binarizing each pixel of the image data with the predetermined second base color condition to place the pixels of the image data having the predetermined second base color condition in an off state and to place the pixels of the image data not having the predetermined second base color condition in an on state, the pixels in the off state being determined as the pixels having the base color of the image.