As Zdenko pointed out Tesseract does NOT release the input image - nor would it make any sense if it did as it would force the calling app to make a copy of the image buffer every time it called Tesseract if it needed to reuse it for other calls. Note also that all output parameters such as text, coordinate or confidence arrays are also not automatically released - even if you delete the Tesseract class instance.
Patrick On Jul 27, 12:01 am, Sandeep Parmar <sandeep.theart...@gmail.com> wrote: > Hello everyone, > > I am using the following code snippet, within this I would like to know > whether 'GetUTF8Text' will destroy my source image 'arr_image' or not > after performing recognition. > > *api.SetImage((const unsigned char*)arr_image[loop_index3],* > * ** width[loop_index3],* > * ** height[loop_index3],1,* > * ** widthstep[loop_index3]);* > * * > * char* text = api.GetUTF8Text();** * > > Any help highly appreciated. > > Thanks & Regards > Sandeep -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To post to this group, send email to tesseract-ocr@googlegroups.com To unsubscribe from this group, send email to tesseract-ocr+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tesseract-ocr?hl=en