Page 1 of 1

OCR supported?

Posted: Tue Sep 11, 2012 4:32 pm
by threewels
Does XnView have OCR software?

Re: OCR

Posted: Wed Sep 12, 2012 5:29 am
by xnview
no sorry

Re: OCR supported?

Posted: Tue Mar 10, 2015 9:29 am
by oeroglu
@xnview can examine. develop plugin maybe
https://code.google.com/p/tesseract-ocr/ Apache License 2.0

Re: OCR supported?

Posted: Tue Mar 10, 2015 12:35 pm
by oops66
oeroglu wrote:@xnview can examine. develop plugin maybe
https://code.google.com/p/tesseract-ocr/ Apache License 2.0
Hello,
FYI, you can use a script like this (with import, nconvert and tesseract - for example under linux):

Code: Select all

#!/bin/sh
# capture-cut-OCR.sh
# Under Linux - Ubuntu
cd /home/tmp

import c.png && /home/NConvert/nconvert -out png -o c2.png -autocontrast -autolevels -eedge 40 -sharpen 30 -grey 8 -resize 3200 0 -ratio c.png && display c2.png && tesseract c2.png c2 -l fra  && rm c.png c2.png && geany c2.txt && rm c2.txt

exit 0

Re: OCR supported?

Posted: Fri Mar 13, 2015 7:12 pm
by cday
Windows users requiring basic OCR can use the freeware Irfanview with the Kadmos plugin included in the separate plugins download.

Re: OCR supported?

Posted: Tue Sep 15, 2015 10:27 am
by Peter2
oops66 wrote:....
FYI, you can use a script like this (with import, nconvert and tesseract - for example under linux):...
Hi oops66

please could you explain what this script is doing? And what are you doing with the created textstrings?

Peter

Re: OCR supported?

Posted: Tue Sep 15, 2015 11:40 am
by oops66
Peter2 wrote:
oops66 wrote:....
FYI, you can use a script like this (with import, nconvert and tesseract - for example under linux):...
...please could you explain what this script is doing? And what are you doing with the created textstrings?
Hi Peter,
In this sample, into linux, first it makes a screen shot (selected square of the screen with import), then use nconvert to have a better ocr result, then display the image to check (optional), then use tesseract with french parameter here (-l fra), then, here, open the text file with geany .(rm to delete temporary files)

So, with this script, i can convert to a text an image made from my smartphone, a screenshot,etc. (ex: a cooking recipe, or to copy some xnview menu/displays as text to this forum, or for fun)

Re: OCR supported?

Posted: Tue Sep 15, 2015 1:23 pm
by Peter2
Thanks.
I will start to experiment with Tesseract.

Peter

Re: OCR supported?

Posted: Tue Sep 15, 2015 2:38 pm
by cday
Hi Peter,

PDF-XChangeViewer Free from Tracker Software is a free Windows OCR program that works well for basic needs...

It's probably at least equivalent to Tesseract, but only OCRs PDF files so general image files would need to be saved in that format first, which may or may not be a significant limitation. Possibly worth a look, though, if you don't have a commercial OCR application.

You may have to search a bit on the linked page for the free version.

Re: OCR supported?

Posted: Tue Sep 15, 2015 3:02 pm
by Peter2
Hi cday

thanks - I'm a "power user" of PDF XChange Pro for years and I'm currently discussing with them too. But I have to handle many files, all TIFF and maybe need a command-line software - so Tesseract could be a godd way.

Re: OCR supported?

Posted: Tue Sep 15, 2015 3:52 pm
by cday
If you haven't done so already, you might Google 'ocr command line windows' which returns a number of results that might be of interest, if you've just started looking at this...