To appropriately discriminate an object without increasing a size and cost when a three-dimensional object is mixed with a planar printed matter, and shading is included in the planar printer matter.
A stereo camera acquires a pair of pieces of image data in which a binocular parallax is generated. When a shutter button is half-depressed, the respective pieces of image data are binarized by a binarization conversion part, and the respective pieces of image data after binarization are inputted into a shading extraction part. The shading extraction part extracts shading parts of main objects from the respective pieces of image data, and inputs the respective shading parts in an area calculation part. The area calculation part calculates areas of the respective shading parts, and inputs their calculation results in a difference calculation part. The difference calculation part calculates a difference in the areas of the respective shading parts, and inputs the calculation results in a CPU. The CPU discriminates that the main objects are stereoscopic objects when an absolute value of the difference is equal to or larger than a prescribed value, and discriminates that the main objects are planar printed matters when the absolute value of the difference is equal to or smaller than the prescribed value.