Patent Document ID: 8094892
Application ID: 11942651
Patent Flag: 1

Claim One:
1. A method for detecting an orientation of a digital image, comprising: determining, using a processor, if the digital image includes an orientation tag; when the digital image does not include an orientation tag: detecting, using the processor, a face in the digital image in its original orientation; and when a face is detected in the digital image in its original orientation, displaying the digital image in its original orientation without rotation; when the digital image includes an orientation tag: determining, using the processor, if the orientation tag indicates the image is rotated to one of (1) +90 degrees and (2) −90 degrees; and when the orientation tag does not indicate the image is rotated to one of (1) +90 degrees and (2) −90 degrees: detecting, using the processor, a face in the digital image in its original orientation; and when a face is detected in the digital image in its original orientation, displaying the digital image in its original orientation without rotation; when a face is not detected in the digital image in its original orientation: rotating the digital image +90 degrees to form a first rotated image and detecting, using the processor, a face in the first rotated image; rotating the digital image −90 degrees to form a second rotated image and detecting, using the processor, a face in the second rotated image; determining, using the processor, if a face is detected in at least one of the first and the second rotated images; when a face is not detected in at least one of the first and the second rotated images: applying a classifier, using the processor, to the digital image in its original orientation to determine probabilities of the digital image being in one of three orientations; and displaying the digital image in one of the three orientations having the highest probability; when a face is detected in at least one of the first and the second rotated images: determining, using the processor, if a face is detected in only one of the first and the second rotated images; and when a face is detected in only one of the first and the second rotated images, displaying said only one of the first and the second rotated images.