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 »

Does XnView have OCR software?
User avatar
xnview
Author of XnView
Posts: 33839
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: OCR

Post by xnview »

no sorry
Pierre.
oeroglu
Posts: 2
Joined: Wed May 23, 2012 7:06 am

Re: OCR supported?

Post by oeroglu »

@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 »

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: 2517
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: OCR supported?

Post by cday »

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: 1208
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: OCR supported?

Post 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
XnView 2.49.3 German, Win 10
User avatar
oops66
XnThusiast
Posts: 1999
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: OCR supported?

Post 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)
XnViewMP 0.82 Linux X64 - Ubuntu 16.04 LTS - X64
User avatar
Peter2
XnThusiast
Posts: 1208
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: OCR supported?

Post by Peter2 »

Thanks.
I will start to experiment with Tesseract.

Peter
XnView 2.49.3 German, Win 10
cday
XnThusiast
Posts: 2517
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: OCR supported?

Post 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.
User avatar
Peter2
XnThusiast
Posts: 1208
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: OCR supported?

Post 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.
XnView 2.49.3 German, Win 10
cday
XnThusiast
Posts: 2517
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: OCR supported?

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