floydhub / dl-docker

An all-in-one Docker image for deep learning. Contains all the popular DL frameworks (TensorFlow, Theano, Torch, Caffe, etc.)

Home Page:https://www.floydhub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenCV is not installed

hariaakash opened this issue · comments

Every other machine learning libraries whereas opencv is not installed. I just checked and there is no such directory created for opencv.

Hi,

Run the docker image. Open the bash copy and paste the commands below:

git clone --depth 1 https://github.com/opencv/opencv.git /root/opencv && \ cd /root/opencv && \ mkdir build && \ cd build && \ cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=OFF .. && \ make -j"$(nproc)" && \ make install && \ ldconfig && \ echo 'ln /dev/null /dev/raw1394' >> ~/.bashrc
It will take some time depending your computer.

Best,
B.A.

I succesfully installed opencv right from the dockerfile by setting -DBUILD_EXAMPLES=OFF in line:
cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=OFF .. && \