You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Set docker image
FROM ubuntu:18.04
# Skip the configuration part
ENV DEBIAN_FRONTEND noninteractive
# Update and install depedencies
RUN apt-get update && \
apt-get install -y wget unzip bc vim python3-pip libleptonica-dev git htop
# Packages to complie Tesseract
RUN apt-get install -y --reinstall make && \
apt-get install -y g++ autoconf automake libtool pkg-config libpng-dev libjpeg8-dev libtiff5-dev libicu-dev \
libpango1.0-dev libcairo2-dev autoconf-archive rename ttf-mscorefonts-installer && fc-cache -f
# Set working directory
WORKDIR /app
RUN mkdir /app/src && cd /app/src
# # Set the locale
RUN apt-get install -y locales && locale-gen en_GB.UTF-8
ENV LC_ALL=en_GB.UTF-8
ENV LANG=en_GB.UTF-8
ENV LANGUAGE=en_GB.UTF-8
# # Copy requirements into the container at /app
COPY requirements.txt ./
RUN pip3 install -r requirements.txt
# # Complie Tesseract with training options (also feel free to update Tesseract versions and such!)
RUN mkdir src && cd /app/src && \
git clone https://github.com/tesseract-ocr/tesseract.git && \
cd /app/src/tesseract && \
./autogen.sh && ./configure --disable-graphics && make && make ins all && ldconfig && \
make training && make training-install
Any help or guidance is appreciated! thanks
The text was updated successfully, but these errors were encountered:
Hey @Shreeshrii, I'm using your Makefile in a docker container to train tesseract 5 of an English font, just to see if my setup works.
I've been encountering this issue for a while now:
I have tried to use traineddata from
tessdata_best
andtessdata
, same exact error!!this is the output of
combine_tessdata -e data/eng.traineddata data/eng/eng.lstm
with tessdata_bestThe command that fails is the following:
Dockerfile:
Any help or guidance is appreciated! thanks
The text was updated successfully, but these errors were encountered: