logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
pkirk25  
#1 Posted : Monday, January 3, 2022 12:36:41 PM(UTC)
pkirk25

Rank: Newbie

Groups: Registered
Joined: 1/3/2022(UTC)
Posts: 1
Cyprus
Location: Paphos

Hi,

I installed Tesseract.Net.SDK with Nuget.

My code is based on example your website:
Code:
        public void ConvertImageToText(string ImagePath)
        {
            string dllPath = @"x64\tesseract.dll";
            if (File.Exists(dllPath))
            {
                OcrApi.PathToEngine = dllPath;
                using (var api = OcrApi.Create())
                {
                    api.Init(Languages.English);
                    string plainText = api.GetTextFromImage(ImagePath);
                    Console.WriteLine(plainText);
                }
            }
        }


As you see, I confirm that the program finds tesseract.dll before tryig to use it. I get this error message:

System.EntryPointNotFoundException
HResult=0x80131523
Message=Unable to find an entry point named 'TessBaseAPICreate' in DLL 'tesseract.dll'.
Source=Patagames.Ocr
StackTrace:
at Patagames.Ocr.Tesseract.TessBaseAPICreate(String key, String vers)
at Patagames.Ocr.OcrApi.Create()
at AxieClicker1.Program.ConvertImageToText(String ImagePath) in C:\Users\patri\Desktop\AxieClicker1\Program.cs:line 23
at AxieClicker1.Program.<Main>d__0.MoveNext() in C:\Users\patri\Desktop\AClicker1\Program.cs:line 13

Any help appreciated.
Paul Rayman  
#2 Posted : Tuesday, January 4, 2022 8:25:01 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,104

Thanks: 7 times
Was thanked: 128 time(s) in 125 post(s)
What happens if you specify the full path to the dll?
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.