From 173cfed107206d5b12bcc1db3c71770784a31033 Mon Sep 17 00:00:00 2001 From: Seth Frey Date: Mon, 27 Oct 2025 01:16:37 -0700 Subject: [PATCH] Update Installation.md add anchors for direct linking to installation instructions by OS (a small tweak with large effect on installation experience, especially for my students, all beginner users) also repair inconsistent header hierarchy --- Installation.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Installation.md b/Installation.md index 757bdb4b..dd3d7724 100644 --- a/Installation.md +++ b/Installation.md @@ -22,11 +22,11 @@ If you are experimenting with OCR Engine modes, you will need to manually instal Training data for obsolete Tesseract versions [=< 3.02](https://sourceforge.net/projects/tesseract-ocr-alt/files/?source=navbar) reside in another location. -## Platforms +# Platforms If Tesseract is not available for your distribution, or you want to use a newer version than they offer, you can [compile your own](Compiling). -### Ubuntu +## [Ubuntu](#ubuntu) You can install Tesseract and its developer tools on Ubuntu by simply running: @@ -69,7 +69,7 @@ deb http://archive.ubuntu.com/ubuntu bionic universe * [Tesseract 5](https://launchpad.net/~alex-p/+archive/ubuntu/tesseract-ocr5) * [Tesseract 5 (devel-daily)](https://launchpad.net/~alex-p/+archive/ubuntu/tesseract-ocr-daily) -## RHEL/CentOS/Scientific Linux, Fedora, openSUSE packages +## [RHEL/CentOS/Scientific Linux, Fedora, openSUSE packages](#linux) * [Tesseract 4](https://build.opensuse.org/project/show/home:Alexander_Pozdnyakov) * [Tesseract 5](https://build.opensuse.org/project/show/home:Alexander_Pozdnyakov:tesseract5) @@ -112,13 +112,13 @@ For distributions that are supported by snapd you may also run the following com The traineddata is currently not shipped with the snap package and must be placed manually to `~/snap/tesseract/current`. -### macOS +## [macOS](#macos) You can install Tesseract using either [MacPorts](https://www.macports.org/) or [Homebrew](http://brew.sh). A macOS wrapper for the Tesseract API is also available at [Tesseract macOS](https://github.com/scott0123/Tesseract-macOS). -#### MacPorts +### MacPorts To install Tesseract run this command: ``` @@ -130,7 +130,7 @@ sudo port install tesseract- ``` List of available langcodes can be found on [MacPorts tesseract page](https://www.macports.org/ports.php?by=name&substr=tesseract-). -#### Homebrew +### Homebrew To install Tesseract run this command: ``` @@ -140,7 +140,7 @@ brew install tesseract The tesseract directory can then be found using `brew info tesseract`, e.g. `/usr/local/Cellar/tesseract/3.05.02/share/tessdata/`. -### Windows +## [Windows](#windows) Installer for Windows for Tesseract 3.05, Tesseract 4 and Tesseract 5 are available from [Tesseract at UB Mannheim](https://github.com/UB-Mannheim/tesseract/wiki). These include the training tools. Both 32-bit and 64-bit installers are available. @@ -153,13 +153,13 @@ To access tesseract-OCR from any location you may have to add the directory wher Experts can also get binaries build with Visual Studio from the build artifacts of the [Appveyor Continuous Integration](https://ci.appveyor.com/project/zdenop/tesseract/history). -#### Cygwin +### Cygwin Released version >= 3.02 of tesseract-ocr [are part of ](https://mirrors.kernel.org/sourceware/cygwin/x86_64/release/tesseract-ocr/) [Cygwin](https://www.cygwin.com/) The latest version available is 4.1.0. Please see [announcement](https://www.cygwin.com/ml/cygwin-announce/2019-07/msg00009.html). -#### MSYS2 +### MSYS2 Install tesseract-OCR: @@ -179,7 +179,7 @@ In the above command, "eng" may be replaced with the [ISO 639 3-letter language pacman -Ss tesseract-data ``` -## Other Platforms +## [Other Platforms](#other) Tesseract may work on more exotic platforms too. You can either try [compiling it yourself](Compiling), or take a look at the list of [other projects using Tesseract](User-Projects-%E2%80%93-3rdParty.md).