Install Tesseract On Windows 10

Posted on by

A Windows 10 PC with Tesseract installed A Google cloud computing services account, with a Google compute engine instance with an Ubuntu 18.04.4 OS that you can SSH into.

  1. Environment Tesseract Version: 5.0.0 alfa Commit Number: a1a177f Platform:Windows 10 64 bit Current Behavior: I can not build from source i had download SW client and save it at 'D: Essam Software SW' the add to Path and i can run SW in.
  2. Normally, Tesseract offers installation packages in your package repository, so before you compile Tesseract, just search there. Installing Tesseract on Windows Although Tesseract is hosted on GitHub, its latest Windows installer is still available in the old repository on Google Code.

Simple OCR Guide: Installing and Using Tesseract In Python Code (Ubuntu)

3/19/2018

Introduction: OCR

There are times when there's text written inside of image files that we want to extract. Can we do that, programmatically? The answer is yes, that's what OCR is.
It's simple enough to OCR an image using the command line in Ubuntu, but we also want to be able to use OCR in programs. Python is a good language for using OCR, and Tesseract is the OCR tool we'll be using.

OCR From the Command Line: Install Tesseract

Let's install Tesseract so that we can use it in our command line. In Ubuntu, it's really simple.
To test it, download the following image on your computer.
(Right click and save the image.)
​Then in a terminal (inside the directory your picture was downloaded too, with the correct image name), use Tesseract on the image with the following command:
For me the output is:
Hello World.
Using Eggfiggggplg OCR.
From gggmgxg.

Why did it get the words Tesseract and srcmake incorrect? Notice the squiggly red lines under the words, in the picture. Often, 'noise' in images makes OCR imperfect. That's why cleaning images up is important, before using OCR on them. For this reason, it's often important to be able to use OCR in a program, and not just the command line.
Let's look at writing a python program that uses Tesseract, now.

Setup Python Project and Install Libraries

We can use Tesseract from the command line, but how about in Python? (Obviously, make sure that you have python installed. Also, you'll need tesseract installed, from the previous section.) (Also, shout out to nikhilkumarsingh on github for providing this really easy install/code guide.)
Use the following commands to install the python tesseract library, pillow (for processing images in python). We'll also install imagemagick and wand now, for the sake of processing pdf files (and helping with image cleaning, later).
Our installation should work, so let's test it with some code.

Some Python OCR Code

We're going to make a simple python file to OCR an image. In the same folder that you have the test image you downloaded from before in, create a file named 'main.py'. In main.py, add the following code:
Of course, make sure the image name on line 4 is correct.
​To run this code, in your terminal (which should be located in the directory with main.py and the ocr_orig.png file):
You should see the OCR output in your terminal.

Conclusion

We looked at how to OCR an image, both in the command line, and through python code. We chose Tesseract as our library, and we see that sometimes the results get skewed by noise in the image. It's best practice to try to make the text in an image clearer and to clean up anything unnecessary in an image, to make the OCR tool work better.
​Going forward, try to look up more advanced image processing tricks to make the OCR work better.
Like this content and want more? Feel free to look around and find another blog post that interests you. You can also contact me through one of the various social media channels.
Twitter: @srcmake
Discord: srcmake#3644
Youtube: srcmake
Twitch: www.twitch.tv/srcmake
​Github: srcmake
References
1. www.pyimagesearch.com/2017/07/03/installing-tesseract-for-ocr/
2. github.com/nikhilkumarsingh/tesseract-python

Comments are closed.
Install Tesseract On Windows 10
File InfoDescription
File Size:2.2 MB
File Modification Date/Time:2020:01:10 12:07:25+00:00
File Type:Win32 EXE
MIME Type:application/octet-stream
Machine Type:Intel 386 or later, and compatibles
Time Stamp:2012:10:26 19:23:23+00:00
PE Type:PE32
Linker Version:9.0
Code Size:1807360
Initialized Data Size:542720
Uninitialized Data Size:0
Entry Point:0x12efb8
OS Version:5.0
Image Version:0.0
Subsystem Version:5.0
Subsystem:Windows command line
File Version Number:3.2.0.0
Product Version Number:3.2.0.0
File Flags Mask:0x0017
File Flags:(none)
File OS:Win32
Object File Type:Executable application
File Subtype:0
Language Code:English (U.S.)
Character Set:Unicode
File Description:Tesseract command-line OCR engine
File Version:3,2,0,0
Internal Name:tesseract
Legal Copyright:Copyright (C) 2012 Google, Inc. Licensed under the Apache License, Version 2.0
Product Name:Tesseract-OCR
Product Version:3.02

Tesseract Windows Install

Portions of file data provided by Exiftool (Phil Harvey) distributed under the Perl Artistic License. Obd auto doctor license owner.