floydhub / dl-docker

An all-in-one Docker image for deep learning. Contains all the popular DL frameworks (TensorFlow, Theano, Torch, Caffe, etc.)
https://www.floydhub.com
3.86k stars 821 forks source link

OpenCV is not installed #75

Open hariaakash opened 6 years ago

hariaakash commented 6 years ago

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

blgnksy commented 6 years ago

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.

vexelenn commented 6 years ago

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