Using the OCR Tool
This section describes how to use the OCR tool.
The following OCR-specific header files are available for the following OCR components.
|
Tool |
Header file |
|
OCR Segmenter tool |
ch_cvl/ocsegmnt.h |
|
ch_cvl/occhar.h |
|
|
OCR Classifier tool |
ch_cvl/ocrclass.h |
|
ch_cvl/occhar.h |
|
|
ch_cvl/ocswapch.h |
|
|
OCR Dictionary Fielding tool |
ch_cvl/ocrfldng.h |
|
ch_cvl/ocrdcbas.h |
|
|
ch_cvl/ocswapch.h |
|
|
ch_cvl/ocrddefs.h |
|
|
All |
ch_cvl/ocrdefs.h |
|
ch_cvl/charcode.h |
The ch_cvl/ocfont.h header file contains the ccOCFont class, which represents a set of characters (including their character codes, images, and other metadata) primarily for use with OCR and OCV and also more generally to represent a font.
The ch_cvl/ocrglue.h header file contains the cfOCRReclassifyAfterFielding() global function, which allows you to recompute the classifier result according to the fielding result.
The sample/cvl/ocr.cpp file is a single-file sample code that demonstrates the use of the OCR components.