C# Class NAPS2.Ocr.TesseractOcrEngine

Inheritance: IOcrEngine
Exibir arquivo Open project: cyanfish/naps2

Public Methods

Method Description
CanProcess ( string langCode ) : bool
ProcessImage ( string imagePath, string langCode ) : OcrResult
TesseractOcrEngine ( OcrDependencyManager ocrDependencyManager, AppConfigManager appConfigManager ) : System

Private Methods

Method Description
EnsureHocrConfigExists ( DirectoryInfo tessdata ) : void
GetBounds ( System.Xml.Linq.XAttribute titleAttr ) : Rectangle

Method Details

CanProcess() public method

public CanProcess ( string langCode ) : bool
langCode string
return bool

ProcessImage() public method

public ProcessImage ( string imagePath, string langCode ) : OcrResult
imagePath string
langCode string
return OcrResult

TesseractOcrEngine() public method

public TesseractOcrEngine ( OcrDependencyManager ocrDependencyManager, AppConfigManager appConfigManager ) : System
ocrDependencyManager OcrDependencyManager
appConfigManager AppConfigManager
return System