If you recieved the message Paths verified, you can go ahead and configure the build!, continue to the next step. # Specify directories of anaconda and python libraries # anaconda = "/home/james/anaconda3" pythonVersion = "3.7" # Check that user specified directories exist # pass = true # Check Exec pyExec = " $ does not exist" pass = falseĮcho "Paths verified, you can go ahead and configure the build" fi
I’m just running a single call to apt covering all dependancies I’ve seen mentioned on other guides, or have figured out myself from build errors. DependanciesĪs always, when building on linux I take a shotgun approach to dependancies. The following represents a streamlined version of this guide. I’ve tried to generalize my code as much as possible so that you can use this with any version of opencv and anaconda, so watch out for steps where I’m explicitly asking you to type in your opencv and python versions. We’ll set up our build config to that opencv links with our version of python bundled within anaconda in addition to enabling ffmpeg integration so we can read/write videos.
#Conda install opencv from source how to
There is no easy way around this as far as I know, so here I’m going to cover how to go about building opencv from source. This means that you can’t read or write videos using these versions of opencv. If you’re here, you’ve probably discovered that the versions of opencv available on the Anaconda cloud (via the conda package manager) don’t have ffmpeg codecs compiled within them.