0
我正在使用OCR的项目。现在,我在与这行代码VB.Net上的Tesseract
Dim ocr As New Ocr()
Using bmp As New Bitmap("C:\Users\BESToffshoreSERVICE\Downloads\banktest.png")
MsgBox("asdsada")
Dim tessocr As New tessnet2.Tesseract()
'tessocr.Init(Nothing, "eng", False)
'tessocr.GetThresholdedImage(bmp, Rectangle.Empty).Save("c:\temp\" & Guid.NewGuid().ToString() & ".bmp")
'' Tessdata directory must be in the directory than this exe
'Console.WriteLine("Multithread version")
'ocr.DoOCRMultiThred(bmp, "eng")
'Console.WriteLine("Normal version")
'ocr.DoOCRNormal(bmp, "eng")
End Using
,让我错误的行一个问题是这样的
Dim tessocr As New tessnet2.Tesseract()
如果删除该行MSGBOX显示。任何想法为什么发生这种情况 我已经添加了tessnet2参考,并且我在C#中获得了此代码。
好的。不知何故,我设法解决它。问题是:
1.我的目标是x86版本,而DLL需要x64。通过将x86更改为任何CPU来解决此问题。
2.需要.NET框架2.0.Changed从4.0到2.0
是的,并且对于迟到的回复感到抱歉。 – Codemunkeee