I had installed OpenCV following these steps (). After trying to compile one examples,i got this error :
OpenCV Error: Unspecified error (The function is no
In order to improve @Nic Szer's answer I want to explain how to fix this error on Mac OS in three simple steps.
Remove installed OpenCV version to avoid mess up later
pip3 uninstall opencv-python
Lower your python version to 3.5 (current version 3.6 has problems with conda which we will use to install OpenCV)
conda install python=3.5
Finally, use conda to install working version of OpenCV
conda install -c menpo opencv3
And then voila: OpenCV will start working on your Mac OS(Siera 10.12.4).