kumawatmanish / tesseract-android-tools

Automatically exported from code.google.com/p/tesseract-android-tools
1 stars 0 forks source link

Addition of Tesseract GetRegions/GetWords to API #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
An improvement request--

Would like to have methods for returning Tesseract Region/Word bounding boxes 
added to the Android API. The following functions in Tesseract's baseapi.cpp 
would do it, I think, with a result returned as ArrayList<Rect> or Pixa:

TessBaseAPI::GetRegions
TessBaseAPI::GetWords

Having these bounding boxes available would be helpful for assessing the 
coverage and quality of the results returned from the OCR engine beyond what's 
already available using meanConfidence() and wordConfidences().

Original issue reported on code.google.com by robert.m...@gmail.com on 18 Jul 2011 at 4:46

GoogleCodeExporter commented 8 years ago
For anyone who's interested, I've added these functions to my fork of this 
project at https://github.com/rmtheis/tess-two.

I've also added a third function, TessBaseAPI::GetCharacters, that returns 
bounding boxes for individual characters.

Original comment by robert.m...@gmail.com on 27 Oct 2011 at 7:26

GoogleCodeExporter commented 8 years ago
Hi robert,
like to try the new functions , but get error during build : 
utilities.cpp:19:28: error: android/bitmap.h: No such file or directory

any idea ? 

Original comment by doomdeve...@gmail.com on 27 Nov 2011 at 1:08

GoogleCodeExporter commented 8 years ago
In Application.mk, you add:
APP_PLATFORM := android-9

good luck!

Original comment by conannt2...@gmail.com on 15 Dec 2011 at 9:01

GoogleCodeExporter commented 8 years ago

Original comment by alanv@google.com on 11 Sep 2012 at 8:34

GoogleCodeExporter commented 8 years ago

Original comment by alanv@google.com on 22 Sep 2012 at 2:41