Method and apparatus for formatting OCR text
Abstract
Following scanning of a document image, and optical character recognition (OCR) processing, the outputted OCR text is processed to determine a text format (typeface and font size) to match the OCR text to the originally scanned image. The text format is identified by matching word sizes rather than individual character sizes. In particular, for each word and for each of a plurality of candidate typefaces, a scaling factor is calculated to match a typeface rendering of the word to the width of the word in the originally scanned image. After all of the scaling factors have been calculated, a cluster analysis is performed to identify close clusters of scaling factors for a typeface, indicative of a good typeface fit at a constant scaling factor (font size).
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 39.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method of determining a typeface for a plurality of words derived from a scanned image of text, the method comprising: providing a plurality of candidate typefaces; calculating for each typeface and for each word a scaling factor to match a typeface rendering of the word to the size of the word in the scanned image; and analyzing the calculated scaling factors to identify a typeface which matches a plurality of the words; wherein said analyzing the scaling factors comprises identifying one or more clusters of the scaling factors indicative of a good fit of the typeface to a plurality of the
- Claim 2Depends on #1
A method according to claim 1 , wherein the scaling factor comprises a width component and a height component.
- Claim 3Depends on #1
A method according to claim 1 , wherein the size of the word
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗