Skip to content

Commit 41b8496

Browse files
authored
bump: build OpenCV 4.11 (#52)
* bump: build OpenCV `4.11` * BUILD_opencv_highgui=OFF * libwebpmux3 & libwebpdemux2
1 parent 5954401 commit 41b8496

File tree

4 files changed

+27
-17
lines changed

4 files changed

+27
-17
lines changed

.github/workflows/docker-builds.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ jobs:
1919
matrix:
2020
ubuntu_version: ["22.04"]
2121
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
22-
opencv_version: ["4.10.0"]
22+
opencv_version: ["4.11.0"]
2323
device: ["cpu", "gpu"]
2424
cuda_version: ["12.4.1"]
2525
include:
26-
- { ubuntu_version: "24.04", python_version: "3.10", opencv_version: "4.10.0", device: "cpu" }
27-
- { ubuntu_version: "24.04", python_version: "3.11", opencv_version: "4.10.0", device: "cpu" }
28-
#- { ubuntu_version: "24.04", python_version: "3.12", opencv_version: "4.10.0", device: "cpu" }
29-
- { ubuntu_version: "24.04", python_version: "3.13", opencv_version: "4.10.0", device: "cpu" }
30-
- { ubuntu_version: "24.04", python_version: "3.10", opencv_version: "4.10.0", device: "gpu", cuda_version: "12.8.0" }
31-
- { ubuntu_version: "24.04", python_version: "3.11", opencv_version: "4.10.0", device: "gpu", cuda_version: "12.8.0" }
32-
#- { ubuntu_version: "24.04", python_version: "3.12", opencv_version: "4.10.0", device: "gpu", cuda_version: "12.8.0" }
33-
- { ubuntu_version: "24.04", python_version: "3.13", opencv_version: "4.10.0", device: "gpu", cuda_version: "12.8.0" }
26+
- { ubuntu_version: "24.04", python_version: "3.10", opencv_version: "4.11.0", device: "cpu" }
27+
- { ubuntu_version: "24.04", python_version: "3.11", opencv_version: "4.11.0", device: "cpu" }
28+
#- { ubuntu_version: "24.04", python_version: "3.12", opencv_version: "4.11.0", device: "cpu" }
29+
- { ubuntu_version: "24.04", python_version: "3.13", opencv_version: "4.11.0", device: "cpu" }
30+
- { ubuntu_version: "24.04", python_version: "3.10", opencv_version: "4.11.0", device: "gpu", cuda_version: "12.8.0" }
31+
- { ubuntu_version: "24.04", python_version: "3.11", opencv_version: "4.11.0", device: "gpu", cuda_version: "12.8.0" }
32+
#- { ubuntu_version: "24.04", python_version: "3.12", opencv_version: "4.11.0", device: "gpu", cuda_version: "12.8.0" }
33+
- { ubuntu_version: "24.04", python_version: "3.13", opencv_version: "4.11.0", device: "gpu", cuda_version: "12.8.0" }
3434
steps:
3535
- name: Checkout
3636
uses: actions/checkout@v4

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Repository for clean Dockerfile containing [FFmpeg](https://www.ffmpeg.org/), [O
44

55
## Tags
66

7-
- `:cpu-pyX.y-cvX.y.z` for Python 3.x, OpenCV 4.10.x, FFmpeg
8-
- `:gpu-pyX.y-cvX.y.z` for Python 3.x, OpenCV 4.10.x, FFmpeg with CUDA 12.x support
7+
- `:cpu-pyX.y-cvX.y.z` for Python 3.x, OpenCV 4.11.x, FFmpeg
8+
- `:gpu-pyX.y-cvX.y.z` for Python 3.x, OpenCV 4.11.x, FFmpeg with CUDA 12.x support
99

1010
## Build
1111

cpu/Dockerfile

+10-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FROM ubuntu:${UBUNTU_VERSION}
88
LABEL maintainer="https://github.com/Borda"
99

1010
ARG PYTHON_VERSION="3.9"
11-
ARG OPENCV_VERSION="4.10.0"
11+
ARG OPENCV_VERSION="4.11.0"
1212

1313
# Needed for string substitution
1414
SHELL ["/bin/bash", "-c"]
@@ -53,7 +53,8 @@ RUN \
5353
apt-utils \
5454
pkg-config \
5555
checkinstall \
56-
qtbase5-dev qt5-qmake \
56+
qtbase5-dev \
57+
qt5-qmake \
5758
build-essential \
5859
liblapack-dev \
5960
libatlas-base-dev \
@@ -77,7 +78,10 @@ RUN \
7778
zlib1g-dev \
7879
libsm6 \
7980
libxext6 \
80-
libxrender1 && \
81+
libxrender1 \
82+
libwebpmux3 \
83+
libwebpdemux2 \
84+
&& \
8185
pip install numpy && \
8286
# Install OpenCV
8387
wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip -O opencv.zip --progress=bar:force:noscroll --no-check-certificate && \
@@ -104,6 +108,7 @@ RUN \
104108
-D PYTHON${PYTHON_VERSION%%.*}_EXECUTABLE=$(which python${PYTHON_VERSION}) \
105109
-D PYTHON_DEFAULT_EXECUTABLE=$(which python${PYTHON_VERSION}) \
106110
-D BUILD_EXAMPLES=OFF \
111+
-D BUILD_opencv_highgui=OFF \
107112
-D WITH_IPP=OFF \
108113
-D WITH_FFMPEG=ON \
109114
-D WITH_GSTREAMER=ON \
@@ -146,7 +151,8 @@ RUN \
146151
libglew-dev \
147152
libpostproc-dev \
148153
libeigen3-dev \
149-
zlib1g-dev && \
154+
zlib1g-dev \
155+
&& \
150156
apt-get autoremove -y && \
151157
apt-get clean && \
152158
rm -rf /opencv /opencv_contrib /var/lib/apt/lists/*

gpu/Dockerfile

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FROM nvidia/cuda:${CUDA_VERSION}-devel-ubuntu${UBUNTU_VERSION}
1313
LABEL maintainer="https://github.com/Borda"
1414

1515
ARG PYTHON_VERSION="3.9"
16-
ARG OPENCV_VERSION="4.10.0"
16+
ARG OPENCV_VERSION="4.11.0"
1717

1818
# Needed for string substitution
1919
SHELL ["/bin/bash", "-c"]
@@ -64,7 +64,8 @@ RUN \
6464
apt-utils \
6565
pkg-config \
6666
checkinstall \
67-
qtbase5-dev qt5-qmake \
67+
qtbase5-dev \
68+
qt5-qmake \
6869
build-essential \
6970
liblapack-dev \
7071
libatlas-base-dev \
@@ -89,6 +90,8 @@ RUN \
8990
libsm6 \
9091
libxext6 \
9192
libxrender1 \
93+
libwebpmux3 \
94+
libwebpdemux2 \
9295
&& \
9396
pip install numpy && \
9497
# Install OpenCV
@@ -116,6 +119,7 @@ RUN \
116119
-D PYTHON${PYTHON_VERSION%%.*}_EXECUTABLE=$(which python${PYTHON_VERSION}) \
117120
-D PYTHON_DEFAULT_EXECUTABLE=$(which python${PYTHON_VERSION}) \
118121
-D BUILD_EXAMPLES=OFF \
122+
-D BUILD_opencv_highgui=OFF \
119123
-D WITH_IPP=OFF \
120124
-D WITH_FFMPEG=ON \
121125
-D WITH_GSTREAMER=ON \

0 commit comments

Comments
 (0)