1. A non-transitory program storage device, readable by a programmable control device comprising instructions stored thereon for causing the programmable control device to: obtain image data from a first image captured by an image sensor of a device; detect text in the first image by analyzing the image data; determine two or more statistics for the detected text, wherein at least two of the two or more determined statistics comprise a mean value and a standard deviation value along an axis passing through a centroid point of a character of the detected text, wherein the centroid point comprises a weight center of the character of the detected text; determine an orientation of the first image based, at least in part, on the determined two or more statistics; and store the orientation of the first image as metadata with the first image.