You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to integrate the tesseract ocr in my C'# application. I have included the libtesseract.dll in my application as a reference and during the tesseract initialization it throws a runtime exception saying
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
I am using the same code example that has been given by on this page
using (var bmp = numberplate)
{
var success = processor.Init(@"E:\Roshan Rajaratnam\Desktop\tesseract-ocr-3.01.eng (1)\tesseract-ocr\tessdata\", language, (int)eOcrEngineMode.OEM_DEFAULT);
if (!success)
{
Console.WriteLine("Failed to initialize tesseract.");
}
else
{
string text = processor.Recognize(bmp);
Console.WriteLine("Text:");
Console.WriteLine("*****************************");
Console.WriteLine(text);
Console.WriteLine("*****************************");
}
}
what can be the cause for this?
The text was updated successfully, but these errors were encountered:
The most common causes are that the app is running as a 64 bit process or the tesseract data directory isn't correct (you must use language definitions compiled for version 3.02 of tesseract-ocr).
I am trying to integrate the tesseract ocr in my C'# application. I have included the libtesseract.dll in my application as a reference and during the tesseract initialization it throws a runtime exception saying
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
I am using the same code example that has been given by on this page
what can be the cause for this?
The text was updated successfully, but these errors were encountered: