请不要标记 - 它是基本的。嗨,在我的visual studio2012我使用tessnet2库为ocr但无法编译代码。我已经看到 http://www.pixel-technology.com/freeware/tessnet2/ 并已做出所有设置。我将tessdata文件夹放在我的.exe目录中。我还安装了Microsoft Visual C++ 2008可再发行组件包(x86和x64)。我的系统是64位。我也尝试通过删除x86只使用x64软件包。我在我的设置中使用.net4.5。我也在我的项目设置中尝试了其他框架。我也在我的项目设置中尝试过x86orx64或两者。 我有这样的代码Tessnet2无法加载文件或程序集'tessnet2_64
Bitmap image = new Bitmap("C:\\Users\\Amna\\Documents\\text.tif");
tessnet2.Tesseract ocr = new tessnet2.Tesseract();
ocr.SetVariable("tessedit_char_whitelist", ""); // If digit only
ocr.Init(@"c:\temp", "fra", false); // To use correct tessdata
List<tessnet2.Word> result = ocr.DoOCR(image, Rectangle.Empty);
foreach (tessnet2.Word word in result)
Console.WriteLine("{0} : {1}", word.Confidence, word.Text);
,但我得到这个错误:无法加载文件或程序集“tessnet2_64,版本= 2.0.4.0,文化=中性公钥= 1550524b5ba07e29”或它的一个依赖。该系统找不到指定的文件。 我也看到这些链接以及 Tessnet2 error in C# IIS 7.5 Fixing An attempt was made to load a program with an incorrect format problem? 等等。
你检查这个帖子http://stackoverflow.com/questions/2053575/tessnet2-fails-to-load?rq=1 – Kurubaran
是的,我检查了这一点。它没有解决我。我花了超过2周的时间。现在当我在谷歌搜索时,我几乎可以看到所有已经看到的链接。 –
我现在也有这个问题,你有没有解决它PrettyDoll>? – Codemunkeee