charlesw / tesseract-ocr-dotnet

Other
31 stars 35 forks source link

System.IO.FileNotFoundException #11

Open mcjj23 opened 11 years ago

mcjj23 commented 11 years ago

Hi! I'm using tesseract 3.01 and vs 2008. When I run the tesseractconsole.exe via command line, an exception happened:

C:\Users\Iris>E:\tesseract\tesseract-ocr-dotnet-master\tesseractconsole.exe E:\t esseract\tesseract-ocr-dotnet-master\phototest.tif E:\tesseract\tesseract-ocr-do tnet-master\abc.txt

未处理的异常: System.IO.FileNotFoundException: 未能加载文件或程序集“tesseract, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。系统 找不到指定的文件。 文件名:“tesseract, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null” 在 tesseractconsole.Program.Main(String[] args)

警告: 程序集绑定日志记录被关闭。 要启用程序集绑定失败日志记录,请将注册表值 HKLM\Software\Microsoft\Fusion!Enabl eLog设置为 1。 注意: 会有一些与程序集绑定失败日志记录关联的性能损失。 要关闭此功能,请移除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。

What's the problem? Thanks in advance!

charlesw commented 11 years ago

looks like the tesseract dll is missing, if your building this from within vs2008 it should have been copied across, provided it built correctly alternative you could just grab the latest download and update the tesseract console project to incude them.