Optical character recognition
From Wikipedia, the free encyclopedia
Optical character recognition, usually abbreviated to OCR, is computer software designed to translate images of handwritten or typewritten text (usually captured by a scanner) into machine-editable text, or to translate pictures of characters into a standard encoding scheme representing them (e.g. ASCII or Unicode). OCR began as a field of research in pattern recognition, artificial intelligence and machine vision. Though academic research in the field continues, the focus on OCR has shifted to implementation of proven techniques.
Optical character recognition (using optical techniques such as mirrors and lenses) and digital character recognition (using scanners and computer algorithms) were originally considered separate fields. Because very few applications survive that use true optical techniques, the optical character recognition term has now been broadened to cover digital character recognition as well.
Early systems required "training" (essentially, the provision of known samples of each character) to read a specific font. Currently, though, "intelligent" systems that can recognize most fonts with a high degree of accuracy are now common. Some systems are even capable of reproducing formatted output that closely approximates the original scanned page including images, columns and other non-textual components.
Contents |
[edit] History
In 1929, G. Tauschek obtained a patent on OCR in Germany, followed by Handel who obtained a US patent on OCR in USA in 1933 (U.S. Patent 1,915,993). Tauschek was in 1935 also granted a US patent on his method (U.S. Patent 2,026,329).
Tauschek's machine was a mechanical device that used templates. A photodetector was placed so that when the template and the character to be recognised was lined up for an exact match, and a light was directed towards it, no light would reach the photodetector.
In 1950, David Shepard, a cryptanalyst at the Armed Forces Security Agency in the United States, was asked by Frank Rowlett, who had broken the Japanese PURPLE diplomatic code, to work with Dr. Louis Tordella to recommend data automation procedures for the Agency. This included the problem of converting printed messages into machine language for computer processing. Shepard decided it must be possible to build a machine to do this, and, with the help of Harvey Cook, a friend, built "Gismo" in his attic during evenings and weekends. This was reported in the Washington Daily News on April 27, 1951 and in the New York Times on December 26, 1953 after his U.S. Patent Number 2,663,758 was issued. Shepard then founded Intelligent Machines Research Corporation (IMR), which went on to deliver the world's first several OCR systems used in commercial operation. While both Gismo and the later IMR systems used image analysis, as opposed to character matching, and could accept some font variation, Gismo was limited to reasonably close vertical registration, whereas the following commercial IMR scanners analyzed characters anywhere in the scanned field, a practical necessity on real world documents.
The first commercial system was installed at the Readers Digest in 1955, which, many years later, was donated by Readers Digest to the Smithsonian, where it was put on display. The second system was sold to the Standard Oil Company of California for reading credit card imprints for billing purposes, with many more systems sold to other oil companies. Other systems sold by IMR during the late 1950s included a bill stub reader to the Ohio Bell Telephone Company and a page scanner to the United States Air Force for reading and transmitting by teletype typewritten messages. IBM and others were later licensed on Shepard's OCR patents.
The United States Postal Service has been using OCR machines to sort mail since 1965 based on technology devised primarily by the prolific inventor Jacob Rabinow. The first use of OCR in Europe was by the British General Post Office or GPO. In 1965 it began planning an entire banking system, the National Giro, using OCR technology, a process that revolutionized bill payment systems in the UK. Canada Post has been using OCR systems since 1971. OCR systems read the name and address of the addressee at the first mechanized sorting center, and print a routing bar code on the envelope based on the postal code. After that the letters need only be sorted at later centers by less expensive sorters which need only read the bar code. To avoid interference with the human-readable address field which can be located anywhere on the letter, special ink is used that is clearly visible under ultraviolet light. This ink looks orange in normal lighting conditions. Envelopes marked with the machine readable bar code may then be processed.
[edit] Current state of OCR technology
[edit] Typewritten OCR
The accurate recognition of Latin-script, typewritten text is now considered largely a solved problem.
Recognition of hand printing, cursive handwriting, and even the printed typewritten versions of some other scripts (especially those with a very large number of characters), are still the subject of active research.
[edit] Hand print OCR
Systems for recognizing hand-printed text on the fly have enjoyed commercial success in recent years. Among these are the input device for personal digital assistants such as those running Palm OS. The Apple Newton pioneered this technology. The algorithms used in these devices take advantage of the fact that the order, speed, and direction of individual lines segments at input are known. Also, the user can be retrained to use only specific letter shapes. These methods cannot be used in software that scans paper documents, so accurate recognition of hand-printed documents is still largely an open problem. Accuracy rates of 80% to 90% on neat, clean hand-printed characters can be achieved, but that accuracy rate still translates to dozens of errors per page, making the technology useful only in very limited contexts. This variety of OCR is now commonly known in the industry as "ICR" (intelligent character recognition).
[edit] Cursive OCR
Recognition of cursive text is an active area of research, with recognition rates even lower than that of hand-printed text. Higher rates of recognition of general cursive script will likely not be possible without the use of contextual or grammatical information. For example, recognizing entire words from a dictionary is easier than trying to parse individual characters from script. Reading the Amount line of a cheque (which is always a written out number) is an example where using a smaller dictionary can increase recognition rates greatly. Knowledge of the grammar of the language being scanned can also help determine if a word is likely to be a verb or a noun, for example, allowing greater accuracy. The shapes of individual cursive characters themselves simply do not contain enough information to accurately (greater than 98%) recognize all handwritten cursive script.
[edit] Music OCR
Early research into recognition of printed sheet music was performed in the mid 1970s at MIT and other institutions. Successive efforts were made to localize and remove musical staff lines leaving symbols to be recognized and parsed. The first proprietary music-scanning program, MIDISCAN, was released in 1991. Three proprietary products are now available but music OCR software does not recognize handwritten scores.
[edit] MICR
One area where accuracy and speed of computer input of character information exceeds that of humans is in the area of magnetic ink character recognition, where the error rates range around one read error for every 20,000 to 30,000 checks.
[edit] Other research areas
A particularly difficult problem for computers and humans is that of old church baptismal and marriage records containing mostly names. The pages may be damaged by age, water or fire and the names may be obsolete or contain rare spellings. Another research area is cooperative approaches, where computers assist humans and vice-versa. Computer image processing techniques can assist humans in reading extremely difficult texts such as the Archimedes Palimpsest or the Dead Sea Scrolls.
Generally, for more complex recognition problems neural networks are commonly used as they generally can be made indifferent to both affine and non-linear transformations.[1]
A related area is raster to vector conversion, converting bitmap images (for example, maps including drawings, text, and map symbols) into vector graphics that are easier to work with.
[edit] Optical Character Recognition in Unicode
In Unicode, Optical Character Recognition symbol characters are placed in the hexadecimal range 0x2440–0x245F, as shown below (see also Unicode Symbols):
[edit] Software
[edit] Proprietary software
- Abbyy FineReader - growing in the market. In recent years is the default OCR software bundled with many scanner brands.
- Cuneiform - famous and indicated by many as the most accurate OCR algorithm.
- Intelliant OCR is a commandline OCR utility, based on Tiger OCR.
- OCR Document Readers Highest performance readers from Adaptive Recognition Hungary
- OmniPage - for years the most recognized OCR and market leader software suite. Owns the current PC Magazine Editor's Choice awarded in 2003.
- Readiris - reads European languages, Arabic, Hebrew, Asian languages.
- RecoStar A high performance OCR Engine
- SimpleOCR a relatively simple freeware (supports English, French and Dutch language recognition)
- SmartZone OCR - offers developers the ability to perform zonal OCR.
- TeleForm - for capturing data from handwritten forms.
- TextBridge - bundled with many scanners, simpler and with less resources than its sister product Omnipage.
[edit] Free and open source software
- GOCR - included in Debian and other distributions
- ISRI Software - some experimental OCR tools
- GNU Ocrad "is an OCR [...] program based on a feature extraction method".
- OCRchie - dormant since 1996
- OOCR OOCR is an OCR program still in development, under the GPL.
- phpOCR A base implementation for an OCR tool in PHP
- Tesseract is an open source OCR, initially developed by HP, and released under the Apache License, Version 2.0. It can be compiled using MSVC 6.0 or GCC.
[edit] See also
- Automatic number plate recognition
- Barcode and barcode scanners
- Captcha
- Computer vision
- Digital image processing
- ICR
- Machine learning
- Machine vision
- Magnetic ink character recognition (MICR)
- Mapping of Unicode characters
- Optical mark recognition (OMR)
- Pattern recognition
- Raymond Kurzweil
- Speech recognition
- SmartScore
[edit] External links
- ICDAR ICDAR is one of the most comprehensive conferences on all aspects of document recognition, including OCR, and is held every two years.
- phpOCR A base implementation for an OCR tool in PHP
- GNU Ocrad "is an OCR [...] program based on a feature extraction method".
- DRR SPIE DRR is an annual conference on OCR and document retrieval.
- Reference OCR Engine An open-source OCR project.
- OOCR OOCR is an OCR program still in development, under the GPL.
- GOCR GOCR is an OCR program, developed under the GPL.
- Tesseract Tesseract is an open source OCR, initially developed by HP, and released under the Apache License, Version 2.0. It can be compiled using MSVC 6.0 or GCC.