OpenCV

macOs: Python + OpenCV inst

Link hướng dẫn cài đặt: http://www.pyimagesearch.com/2016/11/28/macos-install-opencv-3-and-python-2-7/

Link hướng dẫn cài đặt PyCharm: http://www.pyimagesearch.com/2015/08/17/the-perfect-computer-vision-environment-pycharm-opencv-and-python-virtual-environments/

Nếu trong quá trình cài đặt matplotlib, và chạy chương trình có lỗi như sau:

**RuntimeError**: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends.

thì ta làm như sau:

$ cd ~/.matplotlib
$ nano matplotlibrc

Sau đó, thêm vào dòng này nhu sau:

backend: TkAgg

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s