Sign inSign up

minghong/opencv3

By minghong

•Updated over 4 years ago

docker image for opencv 3.4.16

Image
0

67

minghong/opencv3 repository overview

FROM ubuntu:18.04 LABEL maintainer="Ming Hong Pi [email protected]⁠" ENV NUM_CORES 4

⁠install cmake g++ wget unzip, pkg-config

RUN apt update && apt install -y cmake g++ wget unzip pkg-config

⁠Download and unpack sources

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

⁠Under opencv, Create build directory and switch into it

RUN mkdir -p /opencv/build

WORKDIR /opencv/build

⁠Configure

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 ..

⁠Build

RUN cmake --build .

RUN make -j$NUM_CORES

RUN make install

RUN ldconfig

Tag summary

Content type

Image

Digest

Size

832.2 MB

Last updated

over 4 years ago

docker pull minghong/opencv3:3.0.1