Android version: is possible to get the bounding boxes of the recognized words

724 views
Skip to first unread message

Joe Aspara

unread,
May 27, 2012, 12:54:42 PM5/27/12
to tesser...@googlegroups.com
Hi you all,
I'm searching for a way to getting the bounding box coordinates of the characters in the tesseract-android-tool version. In the native API interface (TessBaseAPI.java) there isn't the native method for

static int TesseractExtractResult(char** string,  int** lengths, float** costs, int** x0,  int** y0,  int** x1, int** y1, PAGE_RES* page_res);

which let's to obtain the character coords. I hope there is a way...

Thanks in advance


Joe Aspara

unread,
May 27, 2012, 8:09:22 PM5/27/12
to tesser...@googlegroups.com
I think I've solved using the tess-two version of tesseract, which contains four new native methods:
  • TessBaseAPI::GetRegions()
  • TessBaseAPI::GetTextlines()
  • TessBaseAPI::GetWords()
  • TessBaseAPI::GetCharacters()

For further info, visit: https://github.com/rmtheis/tess-two

Buyung Afrianto

unread,
May 10, 2014, 9:48:31 AM5/10/14
to tesser...@googlegroups.com
There's no TessBaseAPI::GetCharacters() any more,.... in my case every I use that term, it show GetCharacter is undefined by TessBaseAPI, so suck !!!
Reply all
Reply to author
Forward
0 new messages