Sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev Sudo apt-get install libjpeg8-dev libtiff5-dev libjasper-dev libpng-dev Then, we install the following packages which allows OpenCV to interact with various image and video formats, Sudo apt-get install build-essential cmake git unzip pkg-config Then (if you have not done already) install the necessary build tools, But the steps and commands will be exactly the same for any flavor of Ubuntu 16.10.įirst, as a habit, get and install the latest updates for Ubuntu, I'll be installing OpenCV 3.1, and will be using the Lubuntu 16.10 virtual machine which I used in my earlier post. libpng-dev, libhdf5-serial-dev) and the build commands due to the changes from Ubuntu 16.04 to 16.10, and because I'm using Anaconda environments rather than virtualenv. I followed his steps as a base, but had to make numerous adjustments to some of the packages which gets installed (e.g. Since OpenCV does not have a pre-built package for Linux, it meant I had to compile OpenCV from source.Īdrian of PyImageSearch has recently done a post about how to compile OpenCV on Ubuntu 16.04 using virtualenv. Now, I wanted to install OpenCV on Ubuntu also. I recently switched to Linux for my Machine Learning experiments, and I did a post on How to install Keras and Anaconda Python on Ubuntu 16.10.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |