Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update libtesseract-dev from 4.1.1 to 5.3.0 when building libOpenCvSharpEx.so in Ubuntu 20 or 22.04 #1543

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ubuntu20.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:alex-p/tesseract-ocr5
sudo apt-get install -y --no-install-recommends \
apt-transport-https \
software-properties-common \
Expand Down
3 changes: 2 additions & 1 deletion docker/ubuntu20-dotnet6-opencv4.6.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ ENV OPENCV_VERSION=4.6.0
WORKDIR /

# Install opencv dependencies
RUN apt-get update && apt-get -y install --no-install-recommends \
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:alex-p/tesseract-ocr5 \
&& apt-get -y install --no-install-recommends \
apt-transport-https \
software-properties-common \
wget \
Expand Down
7 changes: 4 additions & 3 deletions docker/ubuntu20-dotnet6-opencv4.7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ ENV OPENCV_VERSION=4.7.0
WORKDIR /

# Install opencv dependencies
RUN apt-get update && apt-get -y install --no-install-recommends \
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:alex-p/tesseract-ocr5 \
&& apt-get -y install --no-install-recommends \
apt-transport-https \
software-properties-common \
wget \
Expand All @@ -33,8 +34,8 @@ RUN apt-get update && apt-get -y install --no-install-recommends \
x264 \
libtesseract-dev \
libgdiplus \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*

# Setup opencv and opencv-contrib source
RUN wget -q https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
Expand Down
3 changes: 2 additions & 1 deletion docker/ubuntu20-dotnet6sdk-opencv4.6.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ ENV OPENCV_VERSION=4.6.0
WORKDIR /

# Install opencv dependencies
RUN apt-get update && apt-get -y install --no-install-recommends \
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:alex-p/tesseract-ocr5 \
&& apt-get -y install --no-install-recommends \
apt-transport-https \
software-properties-common \
wget \
Expand Down
7 changes: 4 additions & 3 deletions docker/ubuntu22-dotnet6-opencv4.7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ ENV OPENCV_VERSION=4.7.0
WORKDIR /

# Install opencv dependencies
RUN apt-get update && apt-get -y install --no-install-recommends \
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:alex-p/tesseract-ocr5 \
&& apt-get -y install --no-install-recommends \
apt-transport-https \
software-properties-common \
wget \
Expand All @@ -32,8 +33,8 @@ RUN apt-get update && apt-get -y install --no-install-recommends \
x264 \
libtesseract-dev \
libgdiplus \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*

# Setup opencv and opencv-contrib source
RUN wget -q https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
Expand Down
3 changes: 2 additions & 1 deletion docker/ubuntu22-dotnet6-opencv4.8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ ENV OPENCV_VERSION=4.8.0
WORKDIR /

# Install opencv dependencies
RUN apt-get update && apt-get -y install --no-install-recommends \
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:alex-p/tesseract-ocr5 \
&& apt-get -y install --no-install-recommends \
apt-transport-https \
software-properties-common \
wget \
Expand Down
7 changes: 4 additions & 3 deletions docker/ubuntu22-dotnet6sdk-opencv4.7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ ENV OPENCV_VERSION=4.7.0
WORKDIR /

# Install opencv dependencies
RUN apt-get update && apt-get -y install --no-install-recommends \
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:alex-p/tesseract-ocr5 \
&& apt-get -y install --no-install-recommends \
apt-transport-https \
software-properties-common \
wget \
Expand All @@ -32,8 +33,8 @@ RUN apt-get update && apt-get -y install --no-install-recommends \
x264 \
libtesseract-dev \
libgdiplus \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*

# Setup opencv and opencv-contrib source
RUN wget -q https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
Expand Down