diff --git a/.github/workflows/ubuntu20.yml b/.github/workflows/ubuntu20.yml index 30b7d2812..39002be30 100644 --- a/.github/workflows/ubuntu20.yml +++ b/.github/workflows/ubuntu20.yml @@ -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 \ diff --git a/docker/ubuntu20-dotnet6-opencv4.6.0/Dockerfile b/docker/ubuntu20-dotnet6-opencv4.6.0/Dockerfile index 705a5f3ee..f77a5978c 100644 --- a/docker/ubuntu20-dotnet6-opencv4.6.0/Dockerfile +++ b/docker/ubuntu20-dotnet6-opencv4.6.0/Dockerfile @@ -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 \ diff --git a/docker/ubuntu20-dotnet6-opencv4.7.0/Dockerfile b/docker/ubuntu20-dotnet6-opencv4.7.0/Dockerfile index 9acaef9e9..cc6ea236d 100644 --- a/docker/ubuntu20-dotnet6-opencv4.7.0/Dockerfile +++ b/docker/ubuntu20-dotnet6-opencv4.7.0/Dockerfile @@ -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 \ @@ -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 && \ diff --git a/docker/ubuntu20-dotnet6sdk-opencv4.6.0/Dockerfile b/docker/ubuntu20-dotnet6sdk-opencv4.6.0/Dockerfile index e05302449..c36814ce8 100644 --- a/docker/ubuntu20-dotnet6sdk-opencv4.6.0/Dockerfile +++ b/docker/ubuntu20-dotnet6sdk-opencv4.6.0/Dockerfile @@ -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 \ diff --git a/docker/ubuntu22-dotnet6-opencv4.7.0/Dockerfile b/docker/ubuntu22-dotnet6-opencv4.7.0/Dockerfile index 4974f8c86..a84ff46a5 100644 --- a/docker/ubuntu22-dotnet6-opencv4.7.0/Dockerfile +++ b/docker/ubuntu22-dotnet6-opencv4.7.0/Dockerfile @@ -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 \ @@ -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 && \ diff --git a/docker/ubuntu22-dotnet6-opencv4.8.0/Dockerfile b/docker/ubuntu22-dotnet6-opencv4.8.0/Dockerfile index fe9d4235b..4beeae7bb 100644 --- a/docker/ubuntu22-dotnet6-opencv4.8.0/Dockerfile +++ b/docker/ubuntu22-dotnet6-opencv4.8.0/Dockerfile @@ -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 \ diff --git a/docker/ubuntu22-dotnet6sdk-opencv4.7.0/Dockerfile b/docker/ubuntu22-dotnet6sdk-opencv4.7.0/Dockerfile index ac6dac800..95100ed92 100644 --- a/docker/ubuntu22-dotnet6sdk-opencv4.7.0/Dockerfile +++ b/docker/ubuntu22-dotnet6sdk-opencv4.7.0/Dockerfile @@ -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 \ @@ -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 && \