Creating a DLL for Tesseract 3 and including it in C#

6,778 views
Skip to first unread message

Alexander

unread,
Jun 20, 2011, 7:58:12 AM6/20/11
to tesseract-ocr
Hi,
I have tried to create a dll that I can use in C# with the provided
Visual Studio 2010 project. The dll compiles fine and when I check it
with the Dependency Walker I see the various Methods that are
available...

However, I am unable to successfully call any none-static methods in
the dll from C#. To solve this problem I e.g. tried to change the CLR
setting (compiles just fine with /clr) or make the DLL managed (won't
compile anymore)...

Even with CLR enabled I could not use an instance of the TessBaseAPI
class in my C# project...

Is there any other way to call Tesseract from C#?

Thanks for you help!

Sarel van der Merwe

unread,
Jun 20, 2011, 2:19:29 PM6/20/11
to tesser...@googlegroups.com
a few days ago was uploaded new version of TesseractEngineWrapper for
.Net. Here is link for download
http://code.google.com/p/tesseractdotnet/downloads/detail?name=TesseractEngine3DotNetWrapper_RC2%20_r552.zip&can=2&q=
and after download open solution in VS 2010 (this is path for
solution TesseractEngine3DotNetWrapper_RC2
_r552\tesseract_r552\vs2008\tesseract.sln). Then you have to compile.
All steps from this tutorial
(http://code.google.com/p/tesseractdotnet/wiki/TesseractEngineWrapper)
are done in solution. So you don`t need make any changes. After
compile you will have new tesseractengine3.dll. The
tesseractengine3.dll is default compiled for .Net 4.0. I hope that it
will be helpful for you.

> --
> You received this message because you are subscribed to the Google
> Groups "tesseract-ocr" group.
> To post to this group, send email to tesser...@googlegroups.com
> To unsubscribe from this group, send email to
> tesseract-oc...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/tesseract-ocr?hl=en
>

ruwanthaka

unread,
May 31, 2012, 1:40:57 PM5/31/12
to tesser...@googlegroups.com
hi Alexander,

im also in same problem,
if you able to build using VS 2010 please let me know the way you do it.
Reply all
Reply to author
Forward
0 new messages