OpenCV in python on mac installation with homebrew -


i'm trying opencv python on mac running mavericks. after googling/stack overflow seraching tried:

brew install homebrew/science/opencv 

based on terminal output looks worked.

to verify wrote python script contains:

import cv2  print("hello") 

i no module named cv2. when try looking @ installed modules typing help('modules') don't see cv or cv2. leaves me 2 conclusions: either didn't install opencv or import cv2 isn't importing cv2 , python looking in wrong location cv2. suggestions appreciated.

according guide, if add following .bash_profile should fix issue:

export pythonpath=/usr/local/lib/python2.7/site-packages:$pythonpath 

Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -