Table of Contents

Class OcrInvoke

Namespace
Emgu.CV.OCR
Assembly
Emgu.CV.dll

Library to invoke Tesseract OCR functions

public static class OcrInvoke
Inheritance
OcrInvoke
Inherited Members

Methods

AddImage(ITessResultRenderer, Tesseract)

Adds the recognized text from the source image to the current document. Invalid if BeginDocument not yet called.

public static bool AddImage(this ITessResultRenderer renderer, Tesseract api)

Parameters

renderer ITessResultRenderer

The result rendered

api Tesseract

The Tesseract obj

Returns

bool

True if successful

BeginDocument(ITessResultRenderer, string)

Starts a new document with the given title. This clears the contents of the output data.

public static bool BeginDocument(this ITessResultRenderer renderer, string title)

Parameters

renderer ITessResultRenderer

The renderer

title string

The title

Returns

bool

True if successful

EndDocument(ITessResultRenderer)

Finishes the document and finalizes the output data. Invalid if BeginDocument not yet called.

public static bool EndDocument(this ITessResultRenderer renderer)

Parameters

renderer ITessResultRenderer

The renderer

Returns

bool

True if successful

SetLocale(LocaleCategory, string)

The setlocale function installs the specified system locale or its portion as the new C locale. The modifications remain in effect and influences the execution of all locale-sensitive C library functions until the next call to setlocale. If locale is a null pointer, setlocale queries the current C locale without modifying it.

public static string SetLocale(LocaleGuard.LocaleCategory category, string locale = null)

Parameters

category LocaleGuard.LocaleCategory

Locale category identifier

locale string

System-specific locale identifier. Can be "" for the user-preferred locale or "C" for the minimal locale

Returns

string

String identifying the C locale after applying the changes, if any, or null pointer on failure. A copy of the returned string along with the category used in this call to std::setlocale may be used later in the program to restore the locale back to the state at the end of this call.