Hi,

Im using tesseract in android. I set the image using SetImage(const
unsigned char* imagedata,int width, int height,
                           int bytes_per_pixel, int bytes_per_line),
then calling getUTF8Text() but Im getting empty string.

What is the problem here?

Help me out.

thanks,
srinivasan



On Mar 29, 7:23 pm, zl2k <[email protected]> wrote:
> On Mar 29, 1:00 am, "Vicky Budhiraja" <[email protected]>
> wrote:
>
>
>
> > Hello,
>
> > As a suggestion, this is what you can do:
> > - Go to tesseractmain.cpp and look for the constructor
> > - Check the function call SetImage(), which takes first param as uinT8 type
> > buffer, which is the image data
> > - Pass on your own buffer
>
> > You need to write the routines for bringing in your binary data (bunch of
> > separate binarized characters). For that you can use the tessDLLs and supply
> > your structs in tesserect system, directly.
>
> > Hope this helps!
>
> > --
> > Vicky Budhirajahttp://www.sitarasoft.com/
>
> > -----Original Message-----
> > From: [email protected] [mailto:[email protected]]
>
> > On Behalf Of zl2k
> > Sent: Monday, March 28, 2011 22:24
> > To: tesseract-ocr
> > Subject: how to pass image "directly" to tesseract
>
> > hi, all
>
> > My application will generate bunch of separate binarized characters
> > and I need to feed the ocr engine for each of them. It will be very
> > costly if save each of them on disk as a tiff file and then call
> > tesseract. Is there a by pass so that my application (C++) can
> > directly call ocr and pass the image to it? Your comments are highly
> > appreciated.
>
> > zl2k
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "tesseract-ocr" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/tesseract-ocr?hl=en.
>
> Thanks for all the informative comments to help me to get the clue.
> Regards,
> zl2k

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

Reply via email to