Rather than rolling your own, I'd suggest looking at the ScrollView app to see if it has the information that you need:
https://github.com/tesseract-ocr/tesseract/wiki/ViewerDebugging Tom On Wednesday, June 22, 2016 at 7:16:35 PM UTC-4, Quan Nguyen wrote: > > You'll need to programmatically draw rectangles having those coordinates > on the image. > > On Wednesday, June 22, 2016 at 2:07:20 AM UTC-5, Gautam Navapara wrote: >> >> I got arrays of box object. after that i called function 'boxawrite' that >> function created txt file with cordinates of box. How this cordinates are >> useful? I want output as image. like i attached one here. how to get that >> kind of image. maybe this is very easy but I'm newbie, please help. >> >> On Wednesday, June 22, 2016 at 6:15:43 AM UTC+5:30, Quan Nguyen wrote: >>> >>> RTD. You can pass in a null and get an array of Box objects in return. >>> >>> On Tuesday, June 21, 2016 at 1:27:59 PM UTC-5, Gautam Navapara wrote: >>>> >>>> How can I use GetRegions() function? What should be argument for it? >>>> After calling GetRegions() function which function should I use to get >>>> page >>>> layout image as output? >>>> >>>> On Tuesday, June 21, 2016 at 12:48:48 AM UTC+5:30, Gautam Navapara >>>> wrote: >>>>> >>>>> Thank you. It really helped me. >>>>> >>>>> On Monday, June 20, 2016 at 7:11:55 AM UTC+5:30, Quan Nguyen wrote: >>>>>> >>>>>> Check the API Examples. You can call GetThresholdedImage after SetImage >>>>>> to return the Pix object of your interest, and call Leptonica's pixWrite >>>>>> method to save it to an image file on your filesystem for your >>>>>> viewing. >>>>>> >>>>>> https://github.com/tesseract-ocr/tesseract/wiki/APIExample >>>>>> https://zdenop.github.io/tesseract-doc/group___advanced_a_p_i.html >>>>>> >>>>>> On Saturday, June 18, 2016 at 3:14:51 PM UTC-5, Gautam Navapara wrote: >>>>>>> >>>>>>> I started working on tesseract few days back. I want to improve it's >>>>>>> accuracy. Some times it doesn't recognize characters. So, i'm starting >>>>>>> from >>>>>>> first step. I want to see processed Image at each and every stage. How >>>>>>> can >>>>>>> i achieve this? >>>>>>> >>>>>> -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/92fbccfb-37d2-4ef8-9d5b-5b817b01ff72%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

