Monday, January 28, 2013

How to install scanner and OCR tools on Archlinux

Setting up scanner on archlinux is easy. But before you buy/using any scanner for linux. You must check the devices is compatible or not for linux. You can check it on sane project websites database.

Visit sane project here:
http://www.sane-project.org/sane-mfgs.html

If your devices is list as "Basic", "GOOD" or "Complete" then your scanner is compatible with linux. 
  • basic means it works at least in the most important modes but quality is not perfect.
  • good means the device is usable for day-to-day work. Some rather exotic features may be missing.
  • complete means the backends supports everything the device can do.

To install on archlinux you just need xsane software. And most of scanner have included optical character recognition (OCR) too on Driver CD. But on linux you can't use that, there are alternative way, it's gocr.

Okay lets install the needed packages for setup the scanner:
$sudo pacman -S xsane gocr

Then run the scanner, for this example i'm using Canon LIDE 25. Run xsane, on LXDE -> Start -> Graphics -> Xsane. Here's the EULA window for the first time you using xsane. Just accept it.
How to install scanner and OCR tools on Archlinux


Then the xsane software will detect the scanner automaticlly (Just plug n play) :), if your scanner is compatible you will get into xsane dashboard.

How to install scanner and OCR tools on Archlinux




To do simple scanning here's the step:
1. Set the area of scanning, set by your mouse pointer.
How to install scanner and OCR tools on Archlinux



2. Set the DPI, Higher for the better results but low scan proccess. Low DPI fast scan proccess but low quality result.
How to install scanner and OCR tools on Archlinux


3. Then click scan to scan your documents.
How to install scanner and OCR tools on Archlinux


4. Here's some results. You can Save as image files, then edit with other image manipulation (like gimp).
How to install scanner and OCR tools on Archlinux

5. You can also directly convert it using OCR. (For clear result only to avoid wrong recognition).
How to install scanner and OCR tools on Archlinux


6. If your text results is not clear, you can edit it using gimp. Then convert it using gocr software. 
To convert image to text
$gocr -i imagefiles.(jpg.png,etc..) -o results.txt
How to install scanner and OCR tools on Archlinux

That's it enjoy scanning on Archlinux. Using xsane. :D
Share on Facebook
Share on Twitter
Share on Google+
Tags :