Enable python support when installing opencv using mac ports

I installed opencv on my mac using mac ports with the following command

sudo port install opencv

About 2 hours passed and it was installed correctly. But the problem is that python bindings are not included.

So let me know how to install opencv on mac using ports, and also enable python bindings. Thanks

PS: I tried to manually compile opencv from the source code, but I get a lot of errors, and I cannot do this.

+3
source share
3 answers

py26-numpy , cv.fromarray:

sudo port install py26-numpy

opencv numpy ( ).

sudo port install -v opencv +python26

, numpy .

+2

You can compile opencv with cmake on macos (I actually do it), but there is a problem with the video ...

Take a look there http://www.tsd.net.au/blog/opencv-python-bindings-macports

should be helpful.

0
source

Source: https://habr.com/ru/post/1753253/


All Articles