Defining Open CV location

In order to be able to successfully run Open CV I help Pkg Config to find the Open CV, search for opencv.pc on your machine to find its location. Use the path to set PKG_CONFIG_PATH when in Julia:

ENV["PKG_CONFIG_PATH"] = "/path/to/pkgconfig-folder"

I will be using the following example throughout the book, that is, the location of the file on my machine:

ENV["PKG_CONFIG_PATH"] = "/Users/dc/anaconda/envs/python35/lib/pkgconfig"

Get Hands-On Computer Vision with Julia now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.