Click or drag to resize
TesseractOcrEngine Class
Provides programatic access and control of the Tesseract OCR engine.
Inheritance Hierarchy
SystemObject
  DevScope.Ocr.Tesseract.WindowsTesseractOcrEngine

Namespace: DevScope.Ocr.Tesseract.Windows
Assembly: DevScope.Ocr.Tesseract.Windows.x86 (in DevScope.Ocr.Tesseract.Windows.x86.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public class TesseractOcrEngine : IDisposable

The TesseractOcrEngine type exposes the following members.

Constructors
  NameDescription
Public methodTesseractOcrEngine
Initializes a new instance of the TesseractOcrEngine class.
Public methodCode exampleTesseractOcrEngine(TesseractOcrInitParams)
Initializes a new instance of the TesseractOcrEngine class.
Public methodCode exampleTesseractOcrEngine(String, String)
Initializes a new instance of the TesseractOcrEngine class.
Top
Methods
  NameDescription
Public methodClearResults
Clears the results.
Public methodCreateSearchablePdf(TesseractOcrPdfJobRequest, Bitmap)
Creates a searchable PDF from a bitmap image.
Public methodCreateSearchablePdf(TesseractOcrPdfJobRequest, String)
Creates a searchable PDF from a document file.
Public methodDetectOrientationAndScript
Detects the orientation and script.
Public methodDispose
Finalizes an instance of the TesseractOcrEngine class.
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the TesseractOcrEngine and optionally releases the managed resources
Public methodDoOcr(TesseractOcrJobRequest, Bitmap)
Execute the OCR job on the bitmap image.
Public methodDoOcr(TesseractOcrJobRequest, String)
Execute the OCR job on the document filename.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetLicense
Gets the license.
Public methodGetTesseractEngineVersion
Gets the tesseract engine version.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleInitializeEngine(TesseractOcrInitParams)
Initializes the OCR engine.
Public methodInitializeEngine(String, String)
Initializes the OCR engine with the language dictionary.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberCode exampleSetLicense
Sets the license.
Public methodShutdownEngine
Shutdowns the engine.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyCurrentLanguage
Gets the language in use by the ocr engine.
Public propertyCurrentTessdataRootPath
Gets the tessdata root path in use by the ocr engine.
Public propertyIsInitialized
Gets the initialized state of the engine.
Top
Events
  NameDescription
Public eventAutoDeskewCompleted
Raised after the Auto Deskew image pre-processing completed.
Public eventAutoOrientationDetected
Raised after the Automatic detection of the document orientation.
Public eventBeforeRecognition
Raised just before the ocr engine start recognizing text and layout.
Public eventJobCanceled
Raised when the Ocr job was canceled.
Public eventJobCompleted
Raised when the Ocr job completed.
Public eventJobProgress
Raised during the Ocr job processing.
Public eventJobStarted
Raised when the Ocr job started.
Top
Remarks
Please make sure that you don't use a global variable to control the engine. The TesseractOcrEngine is actualy an instance for running a ocr job, and you should initialize it and destroy it per OCR job. So remember to not share it globally.
See Also