Patent ID: 8645821

Claim:
A method for page frame detection for pages of a document comprising: receiving a set of document pages for a document, each page having at least one detected object; for each page in the set: determining dimensions of a bounding box which encompasses the detected objects of the page; and determining margin dimensions, based on a position of the bounding box on the page, the margin dimensions being computed relative to the page boundary; with a computer processor, computing a page frame as a combination of bounding box dimensions and margin dimensions, based on frequencies of the bounding box dimensions and margin dimensions computed for the set of pages, the computing of the page frame comprising: ranking the bounding box dimensions in order of frequency; ranking the margin dimensions in order of frequency; combining a most frequent one of the ranked bounding box dimensions with a most frequent one of the ranked margin dimensions; and determining whether the combination is compliant with dimensions of the pages, and if so, using the combination as the computed page frame, otherwise identifying a next most frequent one of the margin dimensions or bounding box dimensions and repeating the determining of whether the combination is compliant with the page dimensions until a compliant combination is identified; matching the computed page frame to pages of the set of document pages to detect page frames for the matched pages; and outputting information based on the detected page frames.