Discover install opencv mac python, include the articles, news, trends, analysis and practical advice about install opencv mac python on alibabacloud.com
1. In the Mac terminal, using Brew to install OPENCV3, my OpenCV is installed in/usr/local/cellar/opencv3/3.2.0.2. Create a new Xcode project, select command Line tool, create a new group within the project directory, and add the dylib containing LIBOPENCV within the/usr/local/cellar/opencv3/3.2.0/lib.3. Change header search Paths to/usr/local/cellar/opencv3/3.2.
On mac OSX, if you want to use OPENCV, you can manually compile the source code by yourself, but more cumbersome.It is recommended to use homebrew to install, the steps are simple, as follows:1. Brew Tap Homebrew/science2. Brew Install OpenCVWait a few minutes for the installation to succeed.Here's how to configure ecl
/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml" -- scale = 1.5 lena.jpg
The result is as follows:
Note:1. For the compilation method, see example/c/build_all.sh in the opencv source code.2. Note the case sensitivity of OpenCV in some paths, such as the path of facedetect runtime in example/c.
OpenCV
Installation in LinuxThese steps has been tested for Ubuntu 10.04 and should work with other distros as well.Required Packages
GCC 4.4.x or later
CMake 2.8.7 or higher
Git
gtk+2.x or higher, including headers (Libgtk2.0-dev)
Pkg-config
Python 2.6 or later and Numpy 1.5 or later with developer packages (Python-dev, python-numpy)
FF
1. App Store download Xcode2. OpenCV official website Download OpenCV for Linux/mac3. Installing homebrew4. Command line install CMake using brew install CMake5.cd to OpenCV the extracted folder, then execute the following command in the command line:mkdir buildcd buildcmake
1. Download the latest OpenCV:
Https://github.com/Itseez/opencv
2. Compile OpenCV need cmake, if not, need to install first (install package select Unit/linux Source):
http://www.cmake.org/download/
3. Install CMake:
U
This document documents the process of manually installing OPENCV 3.0 using source code under Ubuntu 14.04. The method of installing and loading OpenCV in Python is also documented.1. Install OpenCV required libraries (compilers, required libraries, optional libraries)GCC 4.
In my previous article "" has introduced the Linux under the OpenCV installation configuration method, here only records the Mac to the Linux a little difference.1. Installing dependent PackagesThe tool used to install packages on Mac is brew, which replaces the Apt-get in Ubuntu. In addition, some of the packages unde
I installed it on the Raspberry Pi.1. Install the Dependencies firstOpenCV 2.2 will require CMake to generate the makefile file, so you will need to install CMake first.sudo apt-get install build-essentialsudo apt-get install Cmakesudo apt-get install libgtk2.0- Devsudo apt
1. Switch to the user directory
Cd ~
2. Create a new file named opencv. sh. The script is as follows:
version="$(wget -q -O - http://sourceforge.net/projects/opencvlibrary/files/opencv-unix | egrep -m1 -o '\"[0-9](\.[0-9])+' | cut -c2-)"echo "Installing OpenCV" $versionmkdir OpenCVcd OpenCVecho "Removing any pre-installed ffmpeg and x264"
sudo apt-get
Installation in LinuxThese steps has been tested for Ubuntu 10.04 and should work with other distros as well.Required Packages
GCC 4.4.x or later
CMake 2.6 or higher
Git
gtk+2.x or higher, including headers (Libgtk2.0-dev)
Pkg-config
Python 2.6 or later and Numpy 1.5 or later with developer packages (Python-dev, python-numpy)
FFmpeg or LIBAV devel
1. Switch to the user folderCD ~2. Create a new file. Name the opencv.sh script for example the following:Version= "$ (wget-q-o-http://sourceforge.net/projects/opencvlibrary/files/opencv-unix | egrep-m1-o ' \" [0-9] (\.[ 0-9]) + ' | cut-c2-) "echo" Installing OpenCV "$versionmkdir opencvcd opencvecho" Removing any pre-installed ffmpeg and x264 "sudo apt-get install
If you upgrade MacOS Sierra when you install OPENCV, you may encounter the following error:Xxx/cap_qtkit.mm:46:9: Fatal error:' qtkit/qtkit.h ' File not found#import^1 Error generated.MAKE[2]: * * * [MODULESIDEOIO/CMAKEFILES/OPENCV_VIDEOIO.DIR/SRC/CAP_QTKIT.MM.O] Error 1MAKE[1]: * * * [Modulesideoio/cmakefiles/opencv_videoio.dir/all] Error 2Make: * * * [ALL] Error 2I found a big circle on the Internet.Never
Ubuntu16.04 Installing OPENCV for python/c++Online about the installation of OpenCV has a lot of information, but not a piece of information can allow me to install a successful one-time, so spent a lot to solve various accidents, I hope this can bring some people to facilitate, save time.1.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.