János Czentye, HSNLab@BME
This repository provides a Dockerfile for building an image for the latest OpenCV with Python3.8 bindings and video support for video processing.
The Docker image is based on the latest Alpine Linux 3.10 for a minimum size image (~217MB). It uses Alpine packages from testing and community repos.
The OpenCV lib is compiled from source and contains no contrib modules.
https://github.com/opencv/opencv/releases
Older versions can be found under different tags.
The OpenCV compiled from source with the following configurations:
-- General configuration for OpenCV 4.1.2 =====================================
-- Version control: unknown
--
-- Platform:
-- Timestamp: 2019-11-30T12:32:54Z
-- Host: Linux 4.15.0-70-generic x86_64
-- CMake: 3.15.5
-- CMake generator: Unix Makefiles
-- CMake build tool: /usr/bin/make
-- Configuration: RELEASE
--
-- C/C++:
-- Built as dynamic libs?: YES
-- C++ Compiler: /usr/bin/c++ (ver 9.0.0)
-- Linker flags (Release): -Wl,--gc-sections
-- Linker flags (Debug): -Wl,--gc-sections
-- ccache: NO
-- Precompiled headers: NO
-- Extra dependencies: dl m pthread rt
-- 3rdparty dependencies:
--
-- OpenCV modules:
-- To be built: calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo python3 stitching video videoio
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: java js python2 ts
-- Applications: apps
-- Documentation: NO
-- Non-free algorithms: NO
--
-- GUI:
-- GTK+: NO
-- VTK support: NO
--
-- Media I/O:
-- ZLib: /lib/libz.so (ver 1.2.11)
-- JPEG: /usr/lib/libjpeg.so (ver 80)
-- WEBP: /usr/lib/libwebp.so (ver encoder: 0x020e)
-- PNG: /usr/lib/libpng.so (ver 1.6.37)
-- TIFF: /usr/lib/libtiff.so (ver 42 / 4.1.0)
-- JPEG 2000: /usr/lib/libjasper.so (ver 2.0.16)
-- OpenEXR: /usr/lib/libImath.so /usr/lib/libIlmImf.so /usr/lib/libIex.so /usr/lib/libHalf.so /usr/lib/libIlmThread.so (ver 2.2.1)
-- HDR: YES
-- SUNRASTER: YES
-- PXM: YES
-- PFM: YES
--
-- Video I/O:
-- FFMPEG: YES
-- avcodec: YES (58.35.100)
-- avformat: YES (58.20.100)
-- avutil: YES (56.22.100)
-- swscale: YES (5.3.100)
-- avresample: YES (4.0.0)
-- GStreamer: YES (1.16.1)
-- v4l/v4l2: YES (linux/videodev2.h)
-- gPhoto2: YES
--
-- Parallel framework: TBB (ver 4.4 interface 9004)
--
-- Trace: YES (with Intel ITT)
--
-- Other third-party libraries:
-- Lapack: YES (/usr/lib/libopenblas.so)
-- Eigen: NO
-- Custom HAL: NO
-- Protobuf: build (3.5.1)
--
-- OpenCL: YES (no extra features)
-- Include path: /tmp/opencv-4.1.2/3rdparty/include/opencl/1.2
-- Link libraries: Dynamic load
--
-- Python 3:
-- Interpreter: /usr/bin/python3 (ver 3.8)
-- Libraries: /usr/lib/libpython3.so (ver 3.8.0)
-- numpy: /usr/lib/python3.8/site-packages/numpy/core/include (ver 1.17.4)
-- install path: lib/python3.8/site-packages/cv2/python-3.8
--
-- Python (for build): /usr/bin/python3
--
-- Install to: /usr
-- -----------------------------------------------------------------
To get the image use sudo docker pull brunosilva98/opencv-video-minimal
Licensed under MIT license, see LICENSE file.