NOTE: Folder names may vary and may need tweaking
- Open terminal and check for xcode tools
xcode-select --install
- Run:
brew install opencv
(It will take some time) - It's installed location is:
cd /usr/local/Cellar/opencv
and locate for opencv4 folder