RE: [tesseract-ocr] Re: Preprocess Image

2018-06-05 Thread Art Rhyno .
Maybe try a Gaussian blur and upsize a bit? Something like:

convert -blur 2x10 -resize 110%

art

From: tesseract-ocr@googlegroups.com  On Behalf 
Of Hongguo An
Sent: Monday, June 4, 2018 1:23 PM
To: tesseract-ocr 
Subject: [tesseract-ocr] Re: Preprocess Image

Can anybody help? thanks in advance

On Thursday, May 31, 2018 at 12:57:20 PM UTC-7, Hongguo An wrote:

[https://lh3.googleusercontent.com/-rU11aTo1MFM/WxBN6Qv8xRI/7kI/V-Z6YS9Z1b0_Lf9R4LjSFM5M7eN0-QT0ACLcBGAs/s320/5333776Q.part1.png]<https://lh3.googleusercontent.com/-rU11aTo1MFM/WxBN6Qv8xRI/7kI/V-Z6YS9Z1b0_Lf9R4LjSFM5M7eN0-QT0ACLcBGAs/s1600/5333776Q.part1.png>
Hi:
When trying to OCR the above image, the date 09/02/2017 is always wrong, 
(0G/02/2017).



This is tesseract 4 running on linux, the cmd line is:

tesseract stdin stdout -l eng --psm 11 --oem 1 -c textonly_pdf=1 -c 
tessedit_create_pdf=1 | pdftotext -layout - -



Is there any way to pre-process the image to make it work? (preferably using 
convert)



Thanks

Hongguo An
--
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<mailto:tesseract-ocr+unsubscr...@googlegroups.com>.
To post to this group, send email to 
tesseract-ocr@googlegroups.com<mailto: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/fd0e766e-fba2-43a7-91ea-51de94f621b2%40googlegroups.com<https://groups.google.com/d/msgid/tesseract-ocr/fd0e766e-fba2-43a7-91ea-51de94f621b2%40googlegroups.com?utm_medium=email_source=footer>.
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/YQXPR0101MB17021D636C6C61CAB82D4AFBDC660%40YQXPR0101MB1702.CANPRD01.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.


Re: [tesseract-ocr] Re: Preprocess Image

2018-06-04 Thread ShreeDevi Kumar
Take a look at http://www.fmwconcepts.com/imagemagick/textcleaner/
and other scripts by Fred

ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

On Mon, Jun 4, 2018 at 10:52 PM, Hongguo An  wrote:

> Can anybody help? thanks in advance
>
> On Thursday, May 31, 2018 at 12:57:20 PM UTC-7, Hongguo An wrote:
>>
>>
>> 
>> Hi:
>> When trying to OCR the above image, the date 09/02/2017 is always wrong,
>> (0G/02/2017).
>>
>>
>> This is tesseract 4 running on linux, the cmd line is:
>>
>> *tesseract stdin stdout -l eng --psm 11 --oem 1 -c textonly_pdf=1 -c
>> tessedit_create_pdf=1 | pdftotext -layout - - *
>>
>>
>> Is there any way to pre-process the image to make it work? (preferably
>> using convert)
>>
>>
>> Thanks
>>
>> Hongguo An
>>
> --
> 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/fd0e766e-fba2-43a7-91ea-51de94f621b2%
> 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/CAG2NduWc2Brpt6ExAkZQ5wMWOsbMDrHK9Y7PMspJBH6_%3DCeeAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: Preprocess Image

2018-06-04 Thread Hongguo An
Can anybody help? thanks in advance

On Thursday, May 31, 2018 at 12:57:20 PM UTC-7, Hongguo An wrote:
>
>
> 
> Hi:
> When trying to OCR the above image, the date 09/02/2017 is always wrong, 
> (0G/02/2017).
>
>
> This is tesseract 4 running on linux, the cmd line is: 
>
> *tesseract stdin stdout -l eng --psm 11 --oem 1 -c textonly_pdf=1 -c 
> tessedit_create_pdf=1 | pdftotext -layout - - *
>
>
> Is there any way to pre-process the image to make it work? (preferably 
> using convert)
>
>
> Thanks
>
> Hongguo An
>

-- 
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/fd0e766e-fba2-43a7-91ea-51de94f621b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.