Установка Tesseract для распознавания текста с помощью встроенного OCR

Для распознавания текста с помощью встроенного OCR установите программу Tesseract.

Рапознавание в Staffcop Enterprise

В Staffcop два способа распознавать изображения:

Ubuntu Server

Для установки Tesseract на сервере используйте команду:

sudo apt install tesseract-ocr tesseract-ocr-rus tesseract-ocr-eng tesseract-ocr-kaz

Astra Linux

Инструкция описывает установку Tesseract на Astra Linux 1.7 и 1.8.

  1. Установите утилиты для управления репозиториями:

sudo apt install -y software-properties-common wget
  1. Откройте файл репозиториев:

sudo nano /etc/apt/sources.list
  1. Добавьте репозитории:

Для Astra Linux 1.7:

echo "deb http://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-main/ 1.7_x86-64 main contrib non-free" | sudo tee -a /etc/apt/sources.list
echo "deb http://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-update/ 1.7_x86-64 main contrib non-free" | sudo tee -a /etc/apt/sources.list
echo "deb http://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-base/ 1.7_x86-64 main contrib non-free" | sudo tee -a /etc/apt/sources.list
echo "deb http://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-extended/ 1.7_x86-64 main contrib non-free" | sudo tee -a /etc/apt/sources.list

Для Astra Linux 1.8:

echo "deb https://download.astralinux.ru/astra/stable/1.8_x86-64/repository-main/   1.8_x86-64 main contrib non-free non-free-firmware" | sudo tee -a /etc/apt/sources.list
echo "deb https://download.astralinux.ru/astra/stable/1.8_x86-64/repository-extended/   1.8_x86-64 main contrib non-free non-free-firmware" | sudo tee -a /etc/apt/sources.list
  1. Обновите список пакетов:

sudo apt update
  1. Установите Tesseract и нужные языковые пакеты:

sudo apt install -y tesseract-ocr tesseract-ocr-rus tesseract-ocr-eng \
                    tesseract-ocr-kaz tesseract-ocr-osd
  1. Проверьте, что установка прошла успешно:

tesseract --version
tesseract --list-langs

Последнее обновление: 19.10.26