1. 安装brew
官方网站:https://brew.sh/
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. 安装CMACK
$ brew install cmake
3.安装OpenCV
官方网站:https://opencv.org/
$ brew tap homebrew/science
$ brew install opencv