**インストール方法
うちの環境はMacなので以下に添ってインストール。
OpenCVをインストールしてXCodeで使う方法 | JProgramer
インストール方法
Macにインストール
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew update brew install -v cmake brew doctor brew tap homebrew/science brew install opencv3 --with-contrib --with-ffmpeg
cmakeを初めからインストールしている場合はアップグレードを促すメッセージとコマンドが表示されるので、そのままコマンドをコピペして実行すればOK。
参考
macのXcodeにOpenCVを導入 - OpenCV(1) - Qiita
BUG: The current event queue and the main event queue are not the same.... · Issue #7474 · opencv/opencv · GitHub