Tesseract Class |
Namespace: Emgu.CV.OCR
The Tesseract type exposes the following members.
Name | Description | |
---|---|---|
![]() | Tesseract(Boolean) |
Create a default tesseract engine. Needed to Call Init function to load language files in a later stage.
|
![]() | Tesseract(String, String, OcrEngineMode, String, Boolean) |
Create a Tesseract OCR engine.
|
Name | Description | |
---|---|---|
![]() ![]() | DefaultTesseractDirectory |
Get the default tesseract ocr directory. This should return the folder of the dll in most situations.
|
![]() | Oem |
Get the OCR Engine Mode
|
![]() | PageSegMode |
Gets or sets the page seg mode.
|
![]() | Ptr |
Pointer to the unmanaged object
(Inherited from UnmanagedObject.) |
![]() ![]() | Version |
Get the tesseract version
|
![]() ![]() | VersionString |
Get the tesseract version as String
|
Name | Description | |
---|---|---|
![]() | AnalyseLayout |
Runs page layout analysis in the mode set by SetPageSegMode. May optionally be called prior to Recognize to get access to just the page layout results. Returns an iterator to the results. Returns NULL on error or an empty page. The returned iterator must be deleted after use. WARNING! This class points to data held within the TessBaseAPI class, and therefore can only be used while the TessBaseAPI class still exists and has not been subjected to a call of Init, SetImage, Recognize, Clear, End DetectOS, or anything else that changes the internal PAGE_RES.
|
![]() | Dispose |
The dispose function that implements IDisposable interface
(Inherited from DisposableObject.) |
![]() | DisposeObject |
Release the unmanaged resource associated with this class
(Overrides DisposableObjectDisposeObject.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize |
Destructor
(Inherited from DisposableObject.) |
![]() | GetBoxText |
The recognized text is returned as coded in the same format as a box file used in training.
|
![]() | GetCharacters |
Detect all the characters in the image.
|
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetHOCRText |
Make a HTML-formatted string with hOCR markup from the internal data structures.
|
![]() ![]() | GetLangFileUrl |
Get the url to download the tessdata file for the specific language
|
![]() | GetOpenCLDevice |
If compiled with OpenCL AND an available OpenCL
device is deemed faster than serial code, then
"device" is populated with the cl_device_id
and returns sizeof(cl_device_id)
otherwise *device=nullptr and returns 0.
|
![]() | GetOsdText |
The recognized text
|
![]() | GetTSVText |
Make a TSV-formatted string from the internal data structures.
|
![]() | GetType | Gets the type of the current instance. (Inherited from Object.) |
![]() | GetUNLVText |
The recognized text is returned coded as UNLV format Latin-1 with specific reject and suspect codes
|
![]() | GetUTF8Text |
Get all the text in the image
|
![]() | Init |
Initialize the OCR engine using the specific dataPath and language name.
|
![]() | IsValidWord |
Check whether a word is valid according to Tesseract's language model
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ProcessPage |
Turn a single image into symbolic text.
|
![]() | Recognize |
Recognize the image from SetAndThresholdImage, generating Tesseract
internal structures.
|
![]() | ReleaseManagedResources |
Release the managed resources. This function will be called during the disposal of the current object.
override ride this function if you need to call the Dispose() function on any managed IDisposable object created by the current object
(Inherited from DisposableObject.) |
![]() | SetImage(IInputArray) |
Set the image for optical character recognition
|
![]() | SetImage(Pix) |
Set the image for optical character recognition
|
![]() | SetVariable |
Set the variable to the specific value.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | _ptr |
A pointer to the unmanaged object
(Inherited from UnmanagedObject.) |