OCR例子中,使用professional引擎,没有中文包,怎么处理?感谢!
OcrProfessionalRuntime
using (IOcrEngine ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.Professional, false))
{
// Start the engine using default parameters
ocrEngine.Startup(null, null, null, @"D:\Program Files\LEADTOOLS 19\Bin\Common\OcrProfessionalRuntime");
// Show languages supported by this engine
string[] supportedLanguages = ocrEngine.LanguageManager.GetSupportedLanguages();
Console.WriteLine("Supported languages:");
foreach (string supportedLanguage in supportedLanguages)
{
// Get the friendly name of this language using the .NET CultureInfo class
CultureInfo ci = new CultureInfo(supportedLanguage);
Console.WriteLine(" {0} ({1})", supportedLanguage, ci.EnglishName);
}
}
|
|