Re: [tesseract-ocr] Improving accuracy on recognition Tesseract 4.3.1

2019-02-24 Thread Alberto Andreotti
Hello,

You can try the OCR preprocessing  in spark NLP, if you are on Python or
Scala.
Try to use the scaling option.

Alberto.

On Feb 24, 2019 2:21 PM, "'Nenad Kocev' via tesseract-ocr" <
tesseract-ocr@googlegroups.com> wrote:

> Hello, I recently discovered Tesseract and I've been using it to extract
> digits from images using tess4j library. With the settings posted bellow I
> get around 85% accuracy of recognition.
> Is there a way to get 100% accuracy. I have example of an image in the
> attachments. Other images may differ only in number of digits they have and
> may also contain special characters like ",+-". Thanks for your help.
>
> Settings:
>
> tesseract.setPageSegMode(7); // text is in single line
>
> tesseract.setTessVariable("tessedit_char_whitelist", ",+-0123456789");
> tesseract.setTessVariable("load_system_dawg ", "false");
> tesseract.setTessVariable("load_freq_dawg ", "false");
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to tesseract-ocr@googlegroups.com.
> 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/be275b8f-1c58-4793-b2c3-545bc2e5ac74%
> 40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
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/CA%2BGGe6QvDytiJ3nyo6kV%3DdihWrULzwNtvHO7uUogm6e80RMeRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: Improving accuracy on recognition Tesseract 4.3.1

2019-02-24 Thread Quan Nguyen
The whitelist feature is currently not working in Tesseract 4.0.0.

https://github.com/tesseract-ocr/tesseract/issues/751 

On Sunday, February 24, 2019 at 11:21:17 AM UTC-6, Nenad Kocev wrote:
>
> Hello, I recently discovered Tesseract and I've been using it to extract 
> digits from images using tess4j library. With the settings posted bellow I 
> get around 85% accuracy of recognition.
> Is there a way to get 100% accuracy. I have example of an image in the 
> attachments. Other images may differ only in number of digits they have and 
> may also contain special characters like ",+-". Thanks for your help. 
>
> Settings:
>
> tesseract.setPageSegMode(7); // text is in single line
>
> tesseract.setTessVariable("tessedit_char_whitelist", ",+-0123456789");
> tesseract.setTessVariable("load_system_dawg ", "false");
> tesseract.setTessVariable("load_freq_dawg ", "false");
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
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/1a780372-e59b-4806-9f31-1f916c8e41b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Improving accuracy on recognition Tesseract 4.3.1

2019-02-24 Thread 'Nenad Kocev' via tesseract-ocr
Hello, I recently discovered Tesseract and I've been using it to extract 
digits from images using tess4j library. With the settings posted bellow I 
get around 85% accuracy of recognition.
Is there a way to get 100% accuracy. I have example of an image in the 
attachments. Other images may differ only in number of digits they have and 
may also contain special characters like ",+-". Thanks for your help. 

Settings:

tesseract.setPageSegMode(7); // text is in single line

tesseract.setTessVariable("tessedit_char_whitelist", ",+-0123456789");
tesseract.setTessVariable("load_system_dawg ", "false");
tesseract.setTessVariable("load_freq_dawg ", "false");


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
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/be275b8f-1c58-4793-b2c3-545bc2e5ac74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.