'emgu.cv.ocr.tesseract'的类型初始值设定项引发了异常。 [英] The type initializer for 'emgu.cv.ocr.tesseract' threw an exception.
本文介绍了'emgu.cv.ocr.tesseract'的类型初始值设定项引发了异常。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Dim OCRz As Tesseract = New Tesseract("tessdata", "Eng", Tesseract.OcrEngineMode.OEM_TESSERACT_ONLY)
我尝试过:
What I have tried:
Dim OCRz As Tesseract = New Tesseract("tessdata", "Eng", Tesseract.OcrEngineMode.OEM_TESSERACT_ONLY)
<pre> OCRz.Recognize(New Image(Of Bgr, Byte)(pic))
RichTextBox1.Text = OCRz.GetText
推荐答案
我会尝试从异常对象中检索有意义的信息(如果可用)并尝试在相关论坛上找到一些信息Emgu CV:.NET中的OpenCV(C#,VB,C ++等) - 索引页 [ ^ ]。
I would try to retrieve meaningful info (if available) from the exception object and try to find some info on the relevant forum Emgu CV: OpenCV in .NET (C#, VB, C++ and more) - Index page[^].
这篇关于'emgu.cv.ocr.tesseract'的类型初始值设定项引发了异常。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文