![]() D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.4.1/modules Step 9: Build OpenCV with OpenCV_Contrib $cd opencv-3.4.1/ Suppose, you do not want to compile OpenCV with CUDA, then you remove the following out in Step 9: Step 8: Download OpenCV and OpenCV_Contrib $cd ~įor CUDA 8, you need to use gcc and g++ version lower than 5. Step 7: Install some dependent libraries $workon vlearningit Step 6: Reload bashrc and Create a virtual environment $source ~/.bashrcĬheck if you get correct as the figure below: Source /usr/local/bin/virtualenvwrapper.sh Write the following in the last line in bashrc # virtualenv and virtualenvwrapperĮxport VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 Step 5: Install virtual environments $sudo pip install virtualenv virtualenvwrapper $sudo cp -P include/* /usr/local/cuda/include/ $sudo cp -P lib64/* /usr/local/cuda/lib64/ It is required to free register in Nvidia website $cd ~ Step 4: Install CuDNN v6, go to this Download link to get CuDNN-v6. $cd /usr/local/cuda-8.0/samples/1_Utilities/deviceQueryįinally, you will get the result as the figure below: Then paste it in bashrc, $source ~/.bashrc Using “Space Key” until you reach 100% and write “accept” as the figure belowĬopy the text below, # NVIDIA CUDA ToolkitĮxport PATH=/usr/local/cuda-8.0/bin:$PATHĮxport LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64/ $sudo cp InstallUtils.pm /usr/lib/x86_64-linux-gnu/perl-base/Īfter finish, run cuda again $sudo. To do so, you need to follow the command below, $cd ~ You need to copy InstallUtils.pm to /usr/lib/x86_64-linux-gnu/perl-base. In case you get an error like the figure below: Set modeset=0 and Reboot $echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nf $sudo nano /etc/modprobe.d/nfĬopy the text below and paste it in nf blacklist nouveau If you do not want to install OpenCV with CUDA, you can skip step 3 and step 4. $sudo apt install python3-widgetsnbextension $sudo apt-get install linux-source linux-headers-generic $sudo apt-get install linux-image-generic linux-image-extra-virtual $sudo apt-get install libopenblas-dev libatlas-base-dev gfortran $sudo apt-get install libxvidcore-dev libx264-dev $sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev $sudo apt-get install libjpeg-dev libtiff-dev libpng-dev Step 2: Install some development tools and package $sudo apt-get install build-essential cmake unzip pkg-config Step 1: Update and Upgrade package in Ubuntu $sudo apt-get update This tutorial will guide you to complete building OpenCV and OpenCV_Contrib to use in your own purpose. If you would like to use like SIFT feature, you have to build OpenCV_Contrib belong to OpenCV. OpenCV is an open-source library for image processing and also for computer vision.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |