Ocr |
The OcrApi type exposes the following members.
| Name | Description | |
|---|---|---|
| AdaptToWordStr | Applies the given word to the adaptive classifier if possible | |
| AnalyseLayout | Runs page layout analysis in the mode set by PageSegmentationMode. | |
| Clear | Free up recognition results and any stored image data, without actually freeing any recognition data that would be time-consuming to reload. Afterwards, you must call SetImage or GetTextFromImage before doing any Recognize or Get* operation. | |
| ClearAdaptiveClassifier | Call between pages or documents etc to free up memory and forget adaptive data. | |
| ClearPersistentCache | Clear any library-level memory caches. | |
| Create | Create handle to base APIs interface | |
| Dispose | Releases all resources used by this OcrApi | |
| DumpToPGM |
Dump the internal binary image to a PGM file.
Obsolete | |
| GetAltoText | Make an XML-formatted string with Alto markup from the internal data structures. | |
| GetBoolVariable | Get the value of an internal "parameter." | |
| GetBoxText | The recognized text is returned as a char* which is coded in the same format as a box file used in training. | |
| GetComponentImages(PageIteratorLevel, Boolean, OcrBoxa, OcrPixa, Int32) | Get the given level kind of components (block, textline, word etc.) as a leptonica-style Boxa, Pixa pair, in reading order. | |
| GetComponentImages(PageIteratorLevel, Boolean, Boolean, Int32, OcrBoxa, OcrPixa, Int32, Int32) | Get the given level kind of components (block, textline, word etc.) as a leptonica-style Boxa, Pixa pair, in reading order. | |
| GetDoubleVariable | Get the value of an internal "parameter." | |
| GetHOCRText | Make a HTML-formatted string with hOCR markup from the internal data structures. | |
| GetIntVariable | Get the value of an internal "parameter." | |
| GetLSTMBoxText | Make a box file for LSTM training from the internal data structures. | |
| GetRegions | Get the result of page layout analysis as a leptonica-style Boxa, Pixa pair, in reading order. | |
| GetStringVariable | Get the value of an internal "parameter." | |
| GetStrips | Get textlines and strips of image regions as a leptonica-style Boxa, Pixa pair, in reading order.Enables downstream handling of non-rectangular regions. | |
| GetSymbols | Get the symbols as a leptonica-style Boxa, Pixa pair, in reading order. | |
| GetTextFromImage(Bitmap) | Recognize a rectangle from an image and return the result as a string. | |
| GetTextFromImage(OcrPix) | Recognize a rectangle from an image and return the result as a string. | |
| GetTextFromImage(String) | Recognize a rectangle from an image and return the result as a string. | |
| GetTextFromImage(Bitmap, Rectangle) | Recognize a rectangle from an image and return the result as a string. | |
| GetTextFromImage(OcrPix, Rectangle) | Recognize a rectangle from an image and return the result as a string. | |
| GetTextFromImage(String, Rectangle) | Recognize a rectangle from an image and return the result as a string. | |
| GetTextFromImage(Bitmap, Point, Size) | Recognize a rectangle from an image and return the result as a string. | |
| GetTextFromImage(OcrPix, Point, Size) | Recognize a rectangle from an image and return the result as a string. | |
| GetTextFromImage(String, Point, Size) | Recognize a rectangle from an image and return the result as a string. | |
| GetTextFromImage(Bitmap, Int32, Int32, Int32, Int32) | Recognize a rectangle from an image and return the result as a string. | |
| GetTextFromImage(OcrPix, Int32, Int32, Int32, Int32) | Recognize a rectangle from an image and return the result as a string. | |
| GetTextFromImage(String, Int32, Int32, Int32, Int32) | Recognize a rectangle from an image and return the result as a string. | |
| GetTextlines(OcrBoxa, OcrPixa, Int32) | Get the textlines as a leptonica-style Boxa, Pixa pair, in reading order. | |
| GetTextlines(Boolean, Int32, OcrBoxa, OcrPixa, Int32, Int32) | Get the textlines as a leptonica-style Boxa, Pixa pair, in reading order. | |
| GetTsvText | Make a TSV-formatted string with Alto markup from the internal data structures. | |
| GetUNLVText | The recognized text is returned as a char* which is coded as UNLV format Latin-1 with specific reject and suspect codes | |
| GetUtf8Text | The recognized text is returned as a string which is coded as UTF8 | |
| GetWords | Get the words as a leptonica-style Boxa, Pixa pair, in reading order. | |
| GetWordStrBoxText | The recognized text is returned as a char* which is coded in the same format as a WordStr box file used in training. | |
| Init(Languages, String, OcrEngineMode, String, String, String, Boolean) | Initialize the OCR SDK library | |
| Init(Languages, String, OcrEngineMode, String, String, String, Boolean) | Initialize the OCR SDK library | |
| Init(String, String, OcrEngineMode, String, String, String, Boolean, Boolean) | Initialize the OCR SDK library | |
| InitForAnalysePage | Init only for page layout analysis. | |
| InitLang | Init only the lang model component of Tesseract. | |
| IsValidWord | Check whether a word is valid according to Tesseract's language model | |
| PrintVariablesToFile | Print Tesseract parameters to the given file. | |
| ProcessPage | Turn a single image into symbolic text. | |
| ProcessPages | Turns images into symbolic text. | |
| ReadConfigFiles | Read a "config" file containing a set of parameter name, value pairs. | |
| ReadDebugConfigFiles | Same as ReadConfigFiles(String), but only set debug params from the given config file. | |
| Recognize | Recognize the image from SetImage, generating Tesseract internal structures. | |
| RecognizeForChopTest | Variant on Recognize used for testing chopper | |
| Release | Close down tesseract and free up all memory. Once Release() has been used, none of the other API functions may be used other than Init. | |
| SetImage(Bitmap) | Provide an image for Tesseract to recognize. | |
| SetImage(OcrPix) | Provide an image for Tesseract to recognize. | |
| SetVariable | Set the value of an internal "parameter." |