FROM ubuntu:18.04 LABEL maintainer="Ming Hong Pi [email protected]" ENV NUM_CORES 4
RUN apt update && apt install -y cmake g++ wget unzip pkg-config
RUN wget -O opencv.zip https://github.com/opencv/opencv/archive/3.4.16.zip RUN wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/3.4.16.zip RUN unzip opencv.zip RUN mv opencv-3.4.16 opencv RUN unzip opencv_contrib.zip RUN mv opencv_contrib-3.4.16 opencv_contrib
RUN mkdir -p /opencv/build
WORKDIR /opencv/build
RUN cmake -D CMAKE_BUILD_TYPE=RELEASE
-D OPENCV_GENERATE_PKGCONFIG=ON
-D CMAKE_INSTALL_PREFIX=/usr/local
-D INSTALL_C_EXAMPLES=ON
-D OPENCV_EXTRA_MODULES_PATH=/opencv_contrib/modules
-D WITH_IPP=OFF
-D WITH_V4L=ON ..
RUN cmake --build .
RUN make -j$NUM_CORES
RUN make install
RUN ldconfig
Content type
Image
Digest
Size
832.2 MB
Last updated
over 4 years ago
docker pull minghong/opencv3:3.0.1