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"