版主你好,请教这个问题,
TL无法运行了,试用版才刚下的,时间还没过期,TL的demo也能跑,
但我新建一个自己的测试项目时,总是报错,
public Image ddd;
private IOcrEngine _ocrEngine;
private IOcrDocument _ocrDocument;
public Form1()
{
InitializeComponent();
ddd = new Bitmap(56, 82);
string MY_LICENSE_FILE = @"C:\Users\guohong\Documents\Visual Studio 2015\Projects\test1\test1\bin\x64\Debug\LEADTOOLS.LIC";
string MY_DEVELOPER_KEY = @"gcwdXp1TiJacbVTDENE/k4CRDcAcLmcIu9383qJpsjPpoJHYamOd13qYkXqpCmFEbJzAcui
aaiSCpOJGp+HPlx4jGaEmn0ru";
RasterSupport.SetLicense(MY_LICENSE_FILE, MY_DEVELOPER_KEY); //现在用的是评估许可eval-license
//初始化OCR引擎
_ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.Advantage, false); //英文版是Advatage,后面要改成Professor版
//启动OCR引擎
_ocrEngine.Startup(null, null, null, @"D:\LEADTOOLS 19\Bin\Common\OcrAdvantageRuntime"); //英文版是Advatage,后面要改成Professor版
//创建文档
// _ocrDocument = _ocrEngine.DocumentManager.CreateDocument();
}
------ RasterSupport.SetLicense,这句老是报错,说找不到文件,我把安装好的TL的common下的Lic都拷贝到我的测试项目,还是不行,怎么样都不行,怎么破啊?
在线等~ |