Note: There are also video tutorials located online at:<http://simplecv.org>

or on the youtube channel:<http://www.youtube.com/user/IngenuitasOfficial>

Ubuntu 10.4 or 10.11¶

You can now download a .deb file from SourceForge – look at http://sourceforge.net/projects/simplecv/files for an easier install.

Ubuntu 11.4¶

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

Ubuntu 11.10¶

To upgrade from OpenCV 2.1 to OpenCV 2.3 run the following command:

sudo add-apt-repository ppa:gijzelaar/cuda && sudo add-apt-repository ppa:gijzelaar/opencv2.3 && sudo apt-get update
Opencv 2.0 r2968 for mac download

Then install the debian package

Here is the manual method for installation:

Steps:

  1. apt-get install dependencies
  2. download, build and install the latest version of OpenCV
  3. clone and install SimpleCV

Commands:

Mac OS X (10.6 and above)¶

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:

  1. Install Xcode http://itunes.apple.com/us/app/xcode/id448457090?mt=12 and then run the Xcode installer.
  2. Install homebrew https://github.com/mxcl/homebrew/wiki/installation

#. 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

Opencv 2.0 R2968 For Mac

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):

Windows 7/Vista¶

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:

  1. (OPTIONAL) Install MinGW for optional files and building openCV from source. Make sure to include C/C++ Compiler and msys package. http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/
  2. Install Python 2.7 http://www.python.org/getit/releases/2.7.1/
  3. Install Python Setup Tools for Windows http://pypi.python.org/packages/2.7/s/setuptools/ (See: http://stackoverflow.com/questions/309412/how-to-setup-setuptools-for-python-2-6-on-windows)
  4. Install the SciPy superpack: http://sourceforge.net/projects/scipy/files/scipy/0.9.0rc5/scipy-0.9.0rc5-win32-superpack-python2.7.exe/download
  5. Install OpenCV: http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.2/ (See: http://luugiathuy.com/2011/02/setup-opencv-for-python/)
  6. easy_install.exe simplecv (See: http://blog.sadphaeton.com/2009/01/20/python-development-windows-part-2-installing-easyinstallcould-be-easier.html)
copy libippicv
sudo cp opencv-3.2.0/3rdparty/ippicv/ippicv_lnx/lib/intel64/libippicv.a /usr/local/lib/
PKGBUILD
# 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'
}
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment