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

Notification

Icon
Error

Options
Go to last post Go to first unread
Guest  
#1 Posted : Sunday, November 20, 2016 4:31:52 AM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
Hello
I added pol.traineddata file downloaded from https://tesseract.patagames.com/langs/ to tessdata folder in my project but I'm getting the error anyway.

Full error text:
"An unhandled exception of type 'Patagames.Ocr.Exceptions.LanguageNotFoundException' occurred in Patagames.Ocr.dll
Additional information: The requested language 'pol' not found in tessdata folder 'C:\Users\o\documents\visual studio 2015\Projects\OCRConsoleTest\OCRConsoleTest\bin\Debug\tessdata'. Please download it from http://tesseract.patagames.com/langs/ and put into the tessdata folder."

What would have possibly gone wrong? Should I add something to Patagames.Ocr.dll? Actually I can't even find that file. Where is it?

Paul Rayman  
#2 Posted : Sunday, November 20, 2016 7:53:41 AM(UTC)
Paul Rayman

Rank: Administration

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

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Hi,

When building your project, the tessdata folder with its files must be placed next to your application in the root directory. I'm guessing you are forgot to set up the "Copy to Output Directory" property of those files. Please setup to "Copy always".

You can find more details here: https://tesseract.pataga...e6-b6e9-9df777c4678c.htm

Guest  
#3 Posted : Monday, November 21, 2016 9:40:16 AM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
Thank You for Your help!
Users browsing this topic
Guest (2)
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.