apple / tensorflow_macos

TensorFlow for macOS 11.0+ accelerated using Apple's ML Compute framework.
Other
3.66k stars 308 forks source link

Instructions to install OpenCV #237

Open Rustam-Z opened 3 years ago

Rustam-Z commented 3 years ago

Hi there, after searching the web I have successfully installed OpenCV on my Mac M1.

  1. Probably you don't have brew installed, so here's how you should install it:
    • /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    • brew install wget
    • brew install miniforge
    • brew install cmake, you will need cmake for building OpenCV code
  2. Then just follow this blog: https://sayak.dev/install-opencv-m1/#Install-conda

P.S. If mdfind cv2.cpython returning an empty string then try to delete the build folder and compile opencv again. Otherwise, you have done everything correctly.