OCR supported?

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, xnview

Post Reply
threewels
Posts: 1
Joined: Tue Sep 11, 2012 3:40 pm

OCR supported?

Post by threewels » Tue Sep 11, 2012 4:32 pm

Does XnView have OCR software?

User avatar
xnview
Author of XnView
Posts: 32056
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: OCR

Post by xnview » Wed Sep 12, 2012 5:29 am

no sorry
Pierre.

oeroglu
Posts: 2
Joined: Wed May 23, 2012 7:06 am

Re: OCR supported?

Post by oeroglu » Tue Mar 10, 2015 9:29 am

@xnview can examine. develop plugin maybe
https://code.google.com/p/tesseract-ocr/ Apache License 2.0

User avatar
oops66
XnThusiast
Posts: 1999
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: OCR supported?

Post by oops66 » Tue Mar 10, 2015 12:35 pm

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
XnViewMP 0.82 Linux X64 - Ubuntu 16.04 LTS - X64

cday
XnThusiast
Posts: 2218
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: OCR supported?

Post by cday » Fri Mar 13, 2015 7:12 pm

Windows users requiring basic OCR can use the freeware Irfanview with the Kadmos plugin included in the separate plugins download.

User avatar
Peter2
XnThusiast
Posts: 1128
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: OCR supported?

Post by Peter2 » Tue Sep 15, 2015 10:27 am

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
XnView 2.48 German, Win 7 x64 Prof. / Win 10

User avatar
oops66
XnThusiast
Posts: 1999
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: OCR supported?

Post by oops66 » Tue Sep 15, 2015 11:40 am

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)
XnViewMP 0.82 Linux X64 - Ubuntu 16.04 LTS - X64

User avatar
Peter2
XnThusiast
Posts: 1128
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: OCR supported?

Post by Peter2 » Tue Sep 15, 2015 1:23 pm

Thanks.
I will start to experiment with Tesseract.

Peter
XnView 2.48 German, Win 7 x64 Prof. / Win 10

cday
XnThusiast
Posts: 2218
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: OCR supported?

Post by cday » Tue Sep 15, 2015 2:38 pm

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.

User avatar
Peter2
XnThusiast
Posts: 1128
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: OCR supported?

Post by Peter2 » Tue Sep 15, 2015 3:02 pm

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.
XnView 2.48 German, Win 7 x64 Prof. / Win 10

cday
XnThusiast
Posts: 2218
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: OCR supported?

Post by cday » Tue Sep 15, 2015 3:52 pm

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...

Post Reply