have a look at leptonica documentation and example program ioformats_reg.c. -- Zdenko
On Tue, Jul 24, 2012 at 12:35 PM, newtotesseract <[email protected]>wrote: > Hi friends > > I am trying to use buffer for OCR with tesseract 3.02. > > Can someone please help me know, how do we give the correct value of the > size (2nd parameter) for pixReadMemTiff(const l_uint8 *cdata, size_t > size,l_int32 n) ? > > E.g. I've a TIFF image file with 3 pages. So, in the ProcessPages > function, I am calling ProcessPage in a loop. > > For every call to ProcessPage, we need to pass pointer to PIX struct. > > This is obtained by calling pixReadMemTiff with page number. But, I could > not find out what will be the correct value of size to passed to this > function call. > > Can you please shed some light on this ? > > Many thanks for your time and help. > > Best Regards. > > -- > 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 > -- 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

