charlesw / tesseract

A .Net wrapper for tesseract-ocr
Apache License 2.0
2.29k stars 743 forks source link

System.Runtime.InteropServices.SEHException (0x80004005 #601

Open Ren94-cpu opened 2 years ago

Ren94-cpu commented 2 years ago

Im using Tesseract Wrapper and when I run I get the following error:

System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception. at InteropRuntimeImplementer.TessApiSignaturesInstance.TessApiSignaturesImplementation.BaseApiInit(HandleRef handle, String datapath, String language, Int32 mode, String[] configs, Int32 configs_size, String[] vars_vec, String[] vars_values, UIntPtr vars_vec_size, Boolean set_only_non_debug_params) at Tesseract.Interop.TessApi.BaseApiInit(HandleRef handle, String datapath, String language, Int32 mode, IEnumerable1 configFiles, IDictionary2 initialValues, Boolean setOnlyNonDebugParams) at Tesseract.TesseractEngine.Initialise(String datapath, String language, EngineMode engineMode, IEnumerable1 configFiles, IDictionary2 initialValues, Boolean setOnlyNonDebugVariables) at Tesseract.TesseractEngine..ctor(String datapath, String language, EngineMode engineMode, IEnumerable1 configFiles, IDictionary2 initialOptions, Boolean setOnlyNonDebugVariables) at Utility___Tesseract_OCR.GetText(String ImageFilePath, String Tessdata)

tdhintz commented 2 years ago

Your build might be expecting certain processor extensions such as AVX2, SSE, and so forth.

Sicos1977 commented 2 years ago

https://github.com/Sicos1977/TesseractOCR and see if that one works. It is upgraded to Tesseract 5.1