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

Namespace: DevScope.Ocr.Tesseract.WindowsPhone
Assembly: DevScope.Ocr.Tesseract.WindowsPhone (in DevScope.Ocr.Tesseract.WindowsPhone.dll) Version: 255.255.255.255
Syntax
public sealed class TesseractOcrEngine : IClosable, 
	__ITesseractOcrEnginePublicNonVirtuals, __ITesseractOcrEngineProtectedNonVirtuals

The TesseractOcrEngine type exposes the following members.

Constructors
  NameDescription
Public methodTesseractOcrEngine
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
Free up recognition results and any stored image data, without actually freeing any recognition data that would be time-consuming to reload such as language dictionaries.
Public methodClose
Public methodCode exampleDetectOrientationAndScript(String)
Detects the orientation and script of a document image.
Public methodCode exampleDetectOrientationAndScript(Int32, Int32, Int32)
Detects the orientation and script of a document image.
Public methodCode exampleDoOcrAsync(TesseractOcrJobRequest, String)
Executes an instance (job) of the OCR engine over the image file stored in 'filename' with the specified settings present in the TesseractOcrJobRequest in an Asynchronous way, preventing blocking of the main thread.
Public methodCode exampleDoOcrAsync(TesseractOcrJobRequest, Int32, Int32, Int32)
Executes an instance (job) of the OCR engine over the image raw specified by pixelWidth, pixelHeight and Pixels, with the specified settings present in the TesseractOcrJobRequest in an Asynchronous way, preventing blocking of the main thread.
Public methodCode exampleDoOcrAsync(TesseractOcrJobRequest, Int32, Int32, IBuffer)
Executes an instance (job) of the OCR engine over the image raw specified by pixelWidth, pixelHeight and pixelBuffer, with the specified settings present in the TesseractOcrJobRequest in an Asynchronous way, preventing blocking of the main thread.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodCode exampleGetLastJobInternalBitmap(Int32)
Fills a WriteableBitmap with the thresholded image used internally in the previous ocr job.
Public methodCode exampleGetLastJobInternalBitmap(IBuffer)
Fills a WriteableBitmap with the thresholded image used internally in the previous ocr job.
Public methodCode exampleGetLastJobInternalBitmapDimensions
Gets the dimensions of the internal image that was used by the OCR engine in the previous job.
Public methodGetTesseractEngineVersion
Gets the tesseract engine version.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleInitializeEngine
Initializes the OCR engine with the language dictionary.
Public methodStatic memberCode exampleSetLicense
Sets the license information.
Public methodShutdownEngine
Close down the engine and free up all memory.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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 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