How to install Tesseract OCR on Ubuntu 16.04
To install Tesser act OCR on Ubuntu 16.04
Tesseract is one of the most powerful open source OCR engine available today. OCR stands for Optical Character Recognition. This is the process of extracting texts from images.
Installing Tesseract
You shall begin the installation of Tesseract OCR by simply running the following command.
root@linuxhelp:~# apt-get install tesseract-ocr
Reading package lists... Done
Building dependency tree
.
.
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Once it is done, you need to install the language. Usually, the tesseract comes with the english pack by default if you want all the language packs to be downloaded, you can run the following command.
root@linuxhelp:~# apt-get install tesseract-ocr-all
With this, the Tesseract installation comes to an end.
You should now install Imagemagick and for that you should run the following command.
root@linuxhelp:~# apt install imagemagick
Reading package lists... Done
Building dependency tree
.
.
Setting up imagemagick-6.q16 (8:6.8.9.9-7ubuntu5.9) ...
Setting up imagemagick (8:6.8.9.9-7ubuntu5.9) ...
This tool is used from the command line using the convert command. To check the correct installation, run the following command and the output should be similar to the image below:
root@linuxhelp:~# convert &ndash h
Version: ImageMagick 6.8.9-9 Q16 x86_64 2017-07-31 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
.
.
mage type as the filename suffix (i.e. image.ps). Specify ' file' as
' -' for standard input or output.
We shall now see about the usage of Tesseract. It is capable of taking images of many different formats like jpg, png, tiff, etc. and extract the text from it.
To get the output in the terminal, run the generic command with the path of the image
tesseract [image_path] stdout
root@linuxhelp:~# tesseract /home/user1/Desktop/zesty.png stdout
Ubuntu 17.04
Zesty Zapus
With this, the method to install Tesseract OCT on Ubuntu 16.04 comes to an end.
Comments ( 0 )
No comments available