Note: There are also video tutorials located online at:<http://simplecv.org>
or on the youtube channel:<http://www.youtube.com/user/IngenuitasOfficial>
You can now download a .deb file from SourceForge – look at http://sourceforge.net/projects/simplecv/files for an easier install.
The unofficial OpenCV PyPi wheels work for Linux, Mac and Windows. Pip install OpenCV for Python. Importantly, the pip install methods below also work for the OpenCV GUI such as imshow etc. Pip install opencv-python ARM / Raspberry Pi. Pip install opencv-python also works for certain ARM platforms like the Raspberry Pi.
You can upgrade your OpenCV from 2.1 to 2.2 with the following command:
Then install the debian package
To upgrade from OpenCV 2.1 to OpenCV 2.3 run the following command:
Then install the debian package
Here is the manual method for installation:
Steps:
Commands:
Note: We originally tried to bundle all Mac dependencies in a superpack. This turned out to be extremely difficult with the many differences between versions of Mac OS. Now, with Mac, you must build from source and we will try and make it as easy as possible. Please report a bug if you have issues.
Steps:
#. Use homebrew to install opencv, git, and the python imaging library (PIL needs the ARCHFLAGS tweak), plus the SDL dependencies for pygame# Homebrew puts the libraries in /usr/local/lib/, which by default isn’t in the python sys.path – either add it, or link the files#. Install scipy superpack for Mac OSX http://fonnesbeck.github.com/ScipySuperpack/#. easy_install pip and use pip install pygame#. Free mac games download. clone simplecv and python setup.py install
Before you do these you must install XCode from the App Store and run the installer! I’d also run these someplace you don’t mind dumping a little code:
Commands (for Lion):
Commands (for Snow Leopard):
If you want a streamlined install which gives you all the dependencies, werecommend using the Windows Superpack, available at http://sourceforge.net/projects/simplecv/files/
If you already have Python, OpenCV or SciPy installed and want to keep things the way you like them, follow the directions below
Steps:
sudo cp opencv-3.2.0/3rdparty/ippicv/ippicv_lnx/lib/intel64/libippicv.a /usr/local/lib/ |
# Maintainer: Andrew Crerar <andrew (at) crerar (dot) io> |
# Contributor: Valentin Churavy <v.churavy@gmail.com> |
# Contributor: Romain Reignier <rom.reignier@gmail.com> |
# Contributor: Fabien Dubosson <fabien.dubosson@gmail.com> |
# Contributor: David Manouchehri <david@davidmanouchehri.com> |
# Contributor: CHEN Xing <cxcxcxcx@gmail.com> |
# Contributor: Martin Imobersteg <martin.imobersteg@gmail.com> |
# Contributor: Artyom Smirnov <smirnoffjr@gmail.com> |
# Also largely inspired by `opencv` in extra, so including contributors too: |
# Contributor: Ray Rashif <schiv@archlinux.org> |
# Contributor: Tobias Powalowski <tpowa@archlinux.org> |
_name=opencv |
pkgname='${_name}-git' |
pkgver=3.2.0.r709.g89fcd6d8a |
pkgrel=1 |
pkgdesc='Open Source Computer Vision Library' |
url='http://opencv.org/' |
license=('BSD') |
arch=('i686''x86_64') |
depends=('intel-tbb''openexr''xine-lib''libdc1394''gtkglext') |
makedepends=('git''cmake''python2-numpy''python-numpy''mesa''eigen') |
optdepends=('opencv-samples' |
'eigen' |
'opencl-icd-loader: For coding with OpenCL' |
'python-numpy: Python 3 interface' |
'python2-numpy: Python 2 interface') |
conflicts=('opencv''opencv-git') |
provides=('${_name}=${pkgver}') |
source=('git+https://github.com/opencv/opencv.git' |
'git+https://github.com/opencv/opencv_contrib.git') |
sha512sums=('SKIP' |
'SKIP') |
_cmakeopts=('-D WITH_OPENCL=OFF' |
'-D WITH_OPENGL=ON' |
'-D WITH_TBB=ON' |
'-D WITH_XINE=ON' |
'-D BUILD_WITH_DEBUG_INFO=OFF' |
'-D BUILD_TESTS=OFF' |
'-D BUILD_PERF_TESTS=OFF' |
'-D BUILD_EXAMPLES=ON' |
'-D INSTALL_C_EXAMPLES=ON' |
'-D INSTALL_PYTHON_EXAMPLES=ON' |
'-D CMAKE_BUILD_TYPE=Release' |
'-D CMAKE_INSTALL_PREFIX=/usr' |
'-D ENABLE_FAST_MATH=1' |
'-D WITH_CUBLAS=1' |
'-D CMAKE_SKIP_RPATH=ON' |
'-DCUDA_ARCH_BIN=5.2' |
'-DCUDA_ARCH_PTX=5.2') |
# SSE only available from Pentium 3 onwards (i686 is way older) |
[[ '$CARCH'='i686' ]] && |
_cmakeopts+=('-D ENABLE_SSE=OFF' |
'-D ENABLE_SSE2=OFF' |
'-D ENABLE_SSE3=OFF') |
pkgver() { |
cd'${srcdir}/${_name}' |
git describe --long sed -r 's/([^-]*-g)/r1/;s/-/./g' |
} |
build() { |
export EXTRA_NVCCFLAGS='-Xcompiler -std=c++98' |
#export CXX=/usr/bin/g++-5 |
#export CC=/usr/bin/gcc-5 |
cmake ${_cmakeopts[@]} |
-DOPENCV_EXTRA_MODULES_PATH='${srcdir}/opencv_contrib/modules' |
-DCUDA_NVCC_FLAGS='-Xcompiler -std=c++98' |
${_name} |
make |
} |
package() { |
options=('staticlibs') |
make DESTDIR='${pkgdir}' install |
# install LICENSE file |
install -Dm644 '${srcdir}/${_name}/LICENSE''${pkgdir}/usr/share/licenses/${pkgname}/LICENSE' |
} |