baseApi.init(filesDir.getPath() + "/tesseract/", LANG);
baseApi.setPageSegMode(TessBaseAPI.PageSegMode.PSM_SINGLE_BLOCK);
baseApi.setImage(bmp);

OCRResult result = new OCRResult(baseApi.getUTF8Text(), 
baseApi.meanConfidence());

baseApi.end();

Note OCRResult is my own object for holding values.

On Wednesday, 19 November 2014 09:11:47 UTC, bala wrote:
>
> I would like to get the code for tesseract confidence level. Any sample 
> code available ?
>

-- 
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 http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/fcc45008-36cc-4734-ab61-80bdab145e6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to