diff --git a/Dockerfile b/Dockerfile index 9a774fc..03e071c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,6 +42,7 @@ RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip \ -DWITH_V4L=ON \ -DBUILD_TESTS=OFF \ -DBUILD_PERF_TESTS=OFF \ + -DOPENCV_ENABLE_NONFREE=ON \ -DCMAKE_BUILD_TYPE=RELEASE \ -DCMAKE_INSTALL_PREFIX=$(python3.7 -c "import sys; print(sys.prefix)") \ -DPYTHON_EXECUTABLE=$(which python3.7) \ @@ -51,3 +52,6 @@ RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip \ && make install \ && rm /${OPENCV_VERSION}.zip \ && rm -r /opencv-${OPENCV_VERSION} +RUN ln -s \ + /usr/local/python/cv2/python-3.7/cv2.cpython-37m-x86_64-linux-gnu.so \ + /usr/local/lib/python3.7/site-packages/cv2.so