C# Class OcrLibrary.Helpers.OcrEngine

Inheritance: IDisposable
显示文件 Open project: sealuzh/PersonalAnalytics Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GetInstance ( ) : OcrEngine

Singleton.

OcrEngine ( ) : System
RunOcr ( ContextEntry ce ) : ContextEntry

Gets a screenshot of the active window (already optimised for OCR), calculates the thresholded image, runs the OCR, and returns the result as a context entry.

Private Methods

Method Description
OcrFinished ( List result ) : void

Called when OCR multi-thread process is finished. Reads text & confidence and stores them in temporary variables to be subsequently stored as a context entry.

RunOcrPreProcessing ( Screenshot screenshot ) : void

run Ocr-Preprocessing filters TODO: run pre-OCR optimizations on separate thread/process

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetInstance() public static method

Singleton.
public static GetInstance ( ) : OcrEngine
return OcrEngine

OcrEngine() public method

public OcrEngine ( ) : System
return System

RunOcr() public method

Gets a screenshot of the active window (already optimised for OCR), calculates the thresholded image, runs the OCR, and returns the result as a context entry.
public RunOcr ( ContextEntry ce ) : ContextEntry
ce OcrLibrary.Models.ContextEntry
return OcrLibrary.Models.ContextEntry