System and method for document orientation detection
AssigneeHewlett-Packard Development Company, L.P.
InventorsVandana Roy, Kadagattur Gopinatha Srinidhi, Yifeng Wu, Peter Bauer
Life of this patent
Estimating the term…
Abstract
In one embodiment, a method of detecting document orientation includes capturing a document image, binarizing each subimage of the document image to retain textual content and eliminate graphic and noise content from the document image, detecting portrait or landscape orientation based on values computed from strip-based projection profiles, and detecting up or down text orientation based on a text-asymmetry ratio computed from strip-based projection profiles.
Claims17
A method of detecting document orientation comprising:
- capturing a document image;
- binarizing, by a processor, each subimage of the captured document image;
- retaining, by the processor, textual content and eliminating graphic and noise content from the captured document image;
- determining, by the processor, a plurality of values including a text-asymmetry ratio, from strip-based projection profiles of the captured document image, the strip-based projection profiles being non-square and located within a bounding box;
- detecting, by the processor, portrait or landscape orientation based on the values other than the text-asymmetry ratio;
- and detecting, by the processor, up or down text orientation based on the text-asymmetry ratio, wherein the portrait or landscape orientation is detected based on the values other than the text-asymmetry ratio in that the text-asymmetry ratio is not used to determine the portrait or landscape orientation.
A document orientation detection system comprising:
- an imaging mechanism to capture a document image;
- a processor to detect document orientation of the captured document image;
- and one or more instruction modules, executable on the processor to binarize subimages of the document, to determine a plurality of values including a text-asymmetry ratio from strip-based projection profiles of the captured document image, the strip-based projection profiles being non-square and located within a bounding box, to detect portrait or landscape document orientation based on the values other than the text-asymmetry ratio, and to detect up or down text orientation based on the text-asymmetry ratio, wherein the portrait or landscape orientation is detected based on the values other than the text-asymmetry ratio in that the text-asymmetry ratio is not used to determine the portrait or landscape orientation.
Dependencies are inferred from the claim text.