• Home
  • About
  • Join Us
  • Contact
Bharat Ideology
  • Insight
  • Culture
  • Economics
  • Parenting
  • Science & Tech
Subscribe
No Result
View All Result
  • Insight
  • Culture
  • Economics
  • Parenting
  • Science & Tech
Subscribe
No Result
View All Result
Bharat Ideology
No Result
View All Result
Home Science & Tech

Install Tesseract on Windows

by bharatideology
March 10, 2025
in Science & Tech
0
Install Tesseract on Windows
Share on FacebookShare on Twitter

Tesseract is the most popular open-source OCR engine in industry which is used widely during development of OCR projects. But installing it on Windows is a tedious task and you always run into issues during the setup. Let’s resolve these issues forever by following this step-by-step guideline for installation of Tesseract on Windows.

Related articles

India’s Digital Revolution: A Quantum Leap Towards a $5 Trillion Dream

Top 10 Generative AI Tools and Platforms Reshaping the Future

Installation Steps

Step 1 – Download and install from the link  tesseract-ocr-w64-setup-5.4.0.20240606.exe

If you want to update to the latest version then you can download from the link https://digi.bib.uni-mannheim.de/tesseract/

You can choose any version you want, just make sure its stable.

Step 2 – In the System Environment Variables, add Python installation path as shown below (or copy the path where you have installed Python) 

In Windows Search Bar, type “system environment variables” –> click open –> Click Environment Variables button at bottom, Environment Variables tab will appear

Variable Name –PY_HOME

Variable Value –C:\Python3.12

 Step 3 – Then in the System Environment Variables, add PythonPath as shown below:

Variable Name –PYTHONPATH

Variable Value –%PY_HOME%\Lib;%PY_HOME%\DLLs;%PY_HOME%\Lib\lib-tk;C:\another-library

Step 4 – In the PATH environment variable add following value

Variable Value – %PY_HOME%;%PY_HOME%\Scripts

Step 5 – Install Microsoft Visual Studio 2022 – Community Version from the link below:

https://visualstudio.microsoft.com/downloads/

After opening this link, go to the below path and download the installer:

All Downloads –> Visual Studio 2022 –> Visual Studio Community 2022

After downloading the installer, Click Download. Please note that during this installation, installer will ask you to choose certain options in the workload tab. Please find below the list of options that you need to select:

  • Under Windows section, you have to only select the checkbox Desktop development with C++ and leave default selected options under this section
  • Under Web & Cloud, you have to only select the checkbox Python development

After this, click on install to begin installation. Please note that installation will take some time to complete.

Step 6 – Install “Build Tools for Visual Studio 2022” from the link below:

https://visualstudio.microsoft.com/downloads/

Go to All Downloads –> Tools for Visual Studio 2022 –> Build Tools for Visual Studio 2022 and click Download

Please note that during this installation, installer will ask you to choose certain options but you don’t have to select any option and simply click install to begin installation.

Step 7 – Install “Microsoft Visual C++ Redistributable for Visual Studio 2022” from the link below:

https://visualstudio.microsoft.com/downloads/

Go to All Downloads –> Other Tools, Framework, and Redistributables –> Microsoft Visual C++ Redistributable for Visual Studio 2022

You have to select x64 and click Download. After this, simply click installer to begin installation.

Step 8 – Add TESSDATA_PREFIX in the System Environment Variables :

Variable Name –TESSDATA_PREFIX

Variable Value – C:\Program Files\Tesseract-OCR\tessdata

Step 9 – Add another environment variable “tesseract”

Variable Name –tesseract

Variable Value –C:\Program Files\Tesseract-OCR\tesseract.exe

Step 10 – In the PATH environment variable add following path of installation of tesseract

Variable Value –C:\Program Files\Tesseract-OCR

This setup works well on Windows well but sometimes on Windows10, you might run into issues especially while executing Tesseract with pytesseract. So, let me detail out the step that you might need to take to resolve this issue.

With this, you have learned how to install Tesseract but the real challenge is to learn how to implement OCR and create your first project with Tesseract and Python. Learn more to see how easy it is.

Tesseract Setup Issues on Windows 10

Step 1 – We will first go to drive where Python is installed, in my case its in C drive under Python312 folder, from here we will open the pytesseract python file.

Go to C:\Python312\Lib\site-package\pytesseract and open the file pytesseract.py

Step 2 – Once you have opened the file, you need to change the value of tesseract_cmd from tesseract to the value indicated in To listing.

from: tesseract_cmd= 'tesseract' 
to: tesseract_cmd='C:\Program Files\Tesseract-OCR\tesseract.exe’

With this, you will be able to resolve the issue of integration of Pytesseract with Tesseract.

Note – The 4.3.0.36 version of OpenCV is the most stable and reliable version that has been released to date. If you are planning on doing any development work with OpenCV, I would highly recommend using this version.

Tags: Install Tesseractinstall tesseract on windowsOCRTesseractTesseract WindowsTesseract Windows10

bharatideology

Related Posts

India’s Digital Revolution: A Quantum Leap Towards a $5 Trillion Dream

India’s Digital Revolution: A Quantum Leap Towards a $5 Trillion Dream

by bharatideology
February 17, 2024
0

The year is 2024, and India stands at a crossroads. The ghosts of the "fragile five" label still linger in the collective memory, but a new...

Top 10 Generative AI Tools and Platforms Reshaping the Future

Top 10 Generative AI Tools and Platforms Reshaping the Future

by bharatideology
January 9, 2025
0

Generative AI, the technology that conjures new ideas and content from thin air, is taking the world by storm. From crafting captivating images to writing eloquent...

Decoding the Future: Gen AI’s Evolution in 2024 – Trends, Strategies, and Business Impact

Decoding the Future: Gen AI’s Evolution in 2024 – Trends, Strategies, and Business Impact

by bharatideology
January 9, 2025
0

Introduction The past year has witnessed an explosive eruption in the realm of Generative AI (Gen AI), propelling it from a nascent technology to a pivotal...

Will Gemini be the AI to Rule Them All? Exploring the Rise of Google’s Multimodal Colossus

Will Gemini be the AI to Rule Them All? Exploring the Rise of Google’s Multimodal Colossus

by bharatideology
January 9, 2025
0

The landscape of Large Language Models (LLMs) has witnessed a rapid evolution, with Google playing a pivotal role in pushing boundaries. Enter Gemini, Google's latest LLM,...

GenAI, LLMs, and Vector Databases: Revolutionizing Recommendation Systems in 2024

GenAI, LLMs, and Vector Databases: Revolutionizing Recommendation Systems in 2024

by bharatideology
January 9, 2025
0

Overview The world of recommendation systems is undergoing a paradigm shift, propelled by the convergence of Generative AI (GenAI) and Large Language Models (LLMs). These powerful...

CATEGORIES

  • Culture
  • Economics
  • Insight
  • Parenting
  • Science & Tech

RECOMMENDED

Tensorflow Pooling layers in Convolutional Neural Network
Science & Tech

Tensorflow Pooling layers in Convolutional Neural Network

January 9, 2025
Image Segmentation in Deep Learning
Science & Tech

Image Segmentation in Deep Learning

January 12, 2025

Twitter Handle

TAGS

Agnipath Ambedkar Panchteerth Artificial Intelligence Ayodhya Ayushman Bharat Backpropogation Bhagwan Birsa Munda Museum CNN CNN Architecture Co-win Computer Vision Consecration Deep Learning Digital India Digital Revolution FutureSkills PRIME GenAI Hornbill Festival Image Segmentation International Space Station LLM Make in India Namami Gange Narendra Modi Neural Network Object Detection OCR OpenCV PLI PM Modi PRASHAD Python Ramayana Ram Mandir Recurrent Neural Network RNN Sangai Festival Semiconductor Shri Ram Janambhoomi Temple Skill India Statue of Unity Swadesh Darshan Tensorflow Vaccine Maitri Women empowerement
Bharat Ideology

Do not be led by others,
awaken your own mind,
amass your own experience,
and decide for yourself your own path - Atharv Ved

© Copyright Bharat Ideology 2023

  • About
  • Disclaimer
  • Terms & Conditions
  • Contact
No Result
View All Result
  • About
  • Contact
  • Disclaimer
  • Home
  • Terms and Conditions of use

© Copyright Bharat Ideology 2023