Discussion:
[tesseract-ocr] Tesseract confidence level sample code for java
bala
2014-11-19 09:11:47 UTC
Permalink
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 tesseract-ocr+***@googlegroups.com.
To post to this group, send email to tesseract-***@googlegroups.com.
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/b8161293-98b6-40a8-92f4-527e5537c1c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Allistair C
2014-11-19 14:06:44 UTC
Permalink
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.
Post by bala
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 tesseract-ocr+***@googlegroups.com.
To post to this group, send email to tesseract-***@googlegroups.com.
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.
Allistair C
2014-11-19 14:08:24 UTC
Permalink
One thing I did find with meanConfidence is that it didn't really equate to
reality. For instance a completely wrong OCR result can still be a high
confidence result.
Post by bala
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 tesseract-ocr+***@googlegroups.com.
To post to this group, send email to tesseract-***@googlegroups.com.
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/5df427d0-763e-4716-bd7c-c901b303cb29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bala
2014-11-27 07:18:34 UTC
Permalink
Thanks Allistair. I want to get the meanConfidence, so that I should be
able to determine whether the OCR result is right or wrong. Is there a way ?
Post by Allistair C
One thing I did find with meanConfidence is that it didn't really equate
to reality. For instance a completely wrong OCR result can still be a high
confidence result.
Post by bala
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 tesseract-ocr+***@googlegroups.com.
To post to this group, send email to tesseract-***@googlegroups.com.
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/c6d4a6a2-d2d3-414d-aa76-8574d14f8b26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Quan Nguyen
2014-11-29 00:13:17 UTC
Permalink
There are examples of getting the confidence at various levels (symbol,
word, sentence, etc.) in the unit test cases of Tess4J
<http://sourceforge.net/p/tess4j/code/HEAD/tree/Tess4J_3/trunk/test/net/sourceforge/tess4j/>
.
Post by bala
Thanks Allistair. I want to get the meanConfidence, so that I should be
able to determine whether the OCR result is right or wrong. Is there a way ?
Post by Allistair C
One thing I did find with meanConfidence is that it didn't really equate
to reality. For instance a completely wrong OCR result can still be a high
confidence result.
Post by bala
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 tesseract-ocr+***@googlegroups.com.
To post to this group, send email to tesseract-***@googlegroups.com.
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/0e07026b-a996-4482-a3ca-ff0b329dde08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...