1. An image processing apparatus comprising a controller capable of performing operations of: receiving image data composed of a plurality of pixels; extracting an area from an image based on the received image data; calculating a ratio of pixels having a predetermined pixel value in pixels constituting the extracted area; and detecting a type of an image included in the area, based on the calculated ratio of pixels.