tvn-cosine / tesseract.net

a .net wrapper for Tesseract
GNU General Public License v3.0
24 stars 13 forks source link

Extracting Text - tessBaseAPI #14

Closed michalletniowski closed 6 years ago

michalletniowski commented 6 years ago

Hi!

I Would like to ask you about using tesseract in .NET (C#)

In manual "Extracting Text" issue

There is a line: setimage

And Now... This is a way to input image form source, but I want to put the image from stream. So I tried this constructor: constructor

I'm wondering if it is a good method at all? And if it is, What should I assign to UIntPtr imagedata variable to make it work well, and how to extract it from image in MagickImage/Bitmap/Image/Stream type?

tvn-cosine commented 6 years ago

Please refer to this post.