Skip to content

gigante/python-opencv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python OpenCV

build Docker Pulls

Docker images with OpenCV and Python bindings

  • OpenCV + contrib
  • pip
  • Numpy
  • Tesseract
  • Eigen
  • OpenBlas
  • Intel TBB
  • libjpeg, libpng, libtiff, libwebp and openjpeg

Available on DockerHub

Usage:

$ docker run -it hdgigante/python-opencv python3
>>> import cv2
opencv base image tag python size
5.0.0-alpha fedora:41 hdgigante/python-opencv 3.13 Docker Image Size (tag)
python:3.13-alpine hdgigante/python-opencv:5.0.0-alpha-alpine 3.13 Docker Image Size (tag)
ubuntu:24.10 hdgigante/python-opencv:5.0.0-alpha-ubuntu 3.12 Docker Image Size (tag)
debian:12.8-slim hdgigante/python-opencv:5.0.0-alpha-debian 3.11 Docker Image Size (tag)
4.10.0 fedora:41 hdgigante/python-opencv:4.10.0-fedora 3.13 Docker Image Size (tag)
python:3.13-alpine hdgigante/python-opencv:4.10.0-alpine 3.13 Docker Image Size (tag)
ubuntu:24.10 hdgigante/python-opencv:4.10.0-ubuntu 3.12 Docker Image Size (tag)
debian:12.8-slim hdgigante/python-opencv:4.10.0-debian 3.11 Docker Image Size (tag)
4.9.0 fedora:41 hdgigante/python-opencv:4.9.0-fedora 3.13 Docker Image Size (tag)
python:3.13-alpine hdgigante/python-opencv:4.9.0-alpine 3.13 Docker Image Size (tag)
ubuntu:24.10 hdgigante/python-opencv:4.9.0-ubuntu 3.12 Docker Image Size (tag)
debian:12.8-slim hdgigante/python-opencv:4.9.0-debian 3.11 Docker Image Size (tag)

Build

Config build options

    -D OPENCV_ENABLE_NONFREE=ON
    -D WITH_JPEG=ON
    -D WITH_PNG=ON
    -D WITH_TIFF=ON
    -D WITH_WEBP=ON
    -D WITH_JASPER=ON
    -D WITH_EIGEN=ON
    -D WITH_TBB=ON
    -D WITH_LAPACK=ON
    -D WITH_PROTOBUF=ON
    -D WITH_V4L=OFF
    -D WITH_GSTREAMER=OFF
    -D WITH_GTK=OFF
    -D WITH_QT=OFF
    -D WITH_CUDA=OFF
    -D WITH_VTK=OFF
    -D WITH_OPENEXR=OFF
    -D WITH_FFMPEG=OFF
    -D WITH_OPENCL=OFF
    -D WITH_OPENNI=OFF
    -D WITH_XINE=OFF
    -D WITH_GDAL=OFF
    -D WITH_IPP=OFF
    -D BUILD_OPENCV_PYTHON3=ON
    -D BUILD_OPENCV_PYTHON2=OFF
    -D BUILD_OPENCV_JAVA=OFF
    -D BUILD_TESTS=OFF
    -D BUILD_IPP_IW=OFF
    -D BUILD_PERF_TESTS=OFF
    -D BUILD_EXAMPLES=OFF
    -D BUILD_ANDROID_EXAMPLES=OFF
    -D BUILD_DOCS=OFF
    -D BUILD_ITT=OFF
    -D INSTALL_PYTHON_EXAMPLES=OFF
    -D INSTALL_C_EXAMPLES=OFF
    -D INSTALL_TESTS=OFF

To build locally

$ make build CV=5.0.0-alpha DIST=fedora

Based on...