mac install opencv with python
来源:互联网 发布:人工智能 时时彩 编辑:程序博客网 时间:2024/05/16 12:31
Step1:Install Homebrew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew update
Step2: Install Python 2.7 and Python 3 using Homebrew
$ brew install python python3
$ brew linkapps python$ brew linkapps python3
$ which python$ which python3
Step3: Install OpenCV 3 with Python bindings on macOS using Homebrew
if use python as programming language
$ brew tap homebrew/science$ brew install opencv3 --with-contrib --with-python3 --HEAD
if use java as programming language
brew install opencv3 --HEAD --with-contrib --with-java
Step4: bash_profile
create bash_profile in home address
touch ~/.bash_profileopen ~/.bash_profile
add sentence in this file
# Homebrewexport PATH=/usr/local/bin:$PATH
save it in terminal
source .bash_profile
in new terminal
pkg-config --libs opencvpkg-config --cflags opencv
Reference
http://www.jianshu.com/p/3d149f167b41
http://www.pyimagesearch.com/2016/12/19/install-opencv-3-on-macos-with-homebrew-the-easy-way/ (太复杂)
Start with brew doctor
which will show you errors with your brew setup.
http://www.jianshu.com/p/b9b35db5f084 (fix error)
Follow up1: xcode and python
https://vandadnp.wordpress.com/2012/07/05/building-and-running-python-scripts-with-xcode-4-x/
point: Cmd+Shift+G to “Go to Folder” and then I type in /usr/bin/python
Follow up2: opencv and java
http://opencv-java-tutorials.readthedocs.io/en/latest/01-installing-opencv-for-java.html#introduction-to-opencv-for-java
- mac install opencv with python
- mac install opencv with java
- mac install python opencv module
- Install python opencv on mac
- install opencv 3.0.0 with python 3.4 on Mac using Homebrew and Git
- install opencv with linux
- mac python install module
- mac install MySQL-python
- ubuntu python with opencv
- mac 安装opencv/python-opencv
- Ubuntu 14.04: install OpenCV with CUDA
- install opencv with ffmpeg on ubuntu
- (Mac OS X)pip install with socks5
- Ruby Install on mac with RVM
- Mac python opencv 安装
- mac安装opencv+python
- mac-python-opencv
- Mac OpenCV-Python安装
- Android Studio启动时出现unable to access android sdk add-on list
- C++通过Callback向C#传递数据
- String源码阅读笔记
- 【新书上架】 | 《全栈应用开发:精益实践》——历时两年二十万余字
- 09 WebGL 着色器编程语言GLSL ES的程序流程控制(分支ifelse和循环for)
- mac install opencv with python
- android ColorstateList着色
- libevent源码分析(6)--2.1.8--创建和释放libevent句柄event_base的相关函数
- 拉普拉斯矩阵到谱聚类
- JNI 实战全面解析
- 用openrowset函数操作远程数据库
- Unity中实现UI序列帧动画
- MFC学习笔记——GDI绘图
- React Native android 错误 com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1.