A camera apparatus obtains a sharp, high-resolution image of an object which
is
difficult to focus in a single image at a fixed focus, such as the imaging of a
document using a document camera held at an oblique angle to the document. The
apparatus composites an image of an object from plural image segments of the object
acquired at different focusing distances. High quality regions (i.e. sharply focused
and/or high resolution) are extracted from each image to form the segments for compositing.