GitXplorerGitXplorer
n

iphone_opencv_test

public
369 stars
74 forks
1 issues

Commits

List of commits on branch master.
Unverified
ad6eabf73b04359674eac975e2b72f45b95f808f

Update.

nniw committed 9 months ago
Unverified
b472bf48d166829af140901bb9b8f287a1e3ca60

Quote library and include paths.

nniw committed 14 years ago
Unverified
dce0f8fa5d5b4d4defd5d24401b55661194d4e71

Merge branch 'opencv_2.2'

nniw committed 14 years ago
Unverified
b3d1398902c335dc0ca1449e0bddf8a447b2401d

Update README.

nniw committed 14 years ago
Unverified
387503ab0d5c8ca52f583c2b89c5fc5261bb63b8

Update README.

nniw committed 14 years ago
Unverified
829050ceab84eab4defa8447263da29640d5da76

Merge branch 'ios_sdk_4.3_xcode_4'

nniw committed 14 years ago

README

The README file for this repository.

Using OpenCV on iPhone

This source repository includes pre-compiled OpenCV library and headeres so that you can get started easily! More documents you can see on this article.

Building Static Link Version of OpenCV

If you want to build it from source code, you can do by next steps.

  1. Building OpenCV requiers CMake. You can easily install it by using Homebrew or MacPorts.

    # Using Homebrew
    % brew install cmake
    # Using MacPorts
    % sudo port install cmake
    
  2. Clone this project from github.com, then move into the project directory

    % git clone git://github.com/niw/iphone_opencv_test.git
    
  3. Getting source code from sourceforge. I tested with OpenCV-2.2.0.tar.bz2.

  4. Extract downloaded archive on the top of demo project directory

    % tar xjvf OpenCV-2.2.0.tar.bz2
    
  5. Apply patch for iPhone SDK

    % cd OpenCV-2.2.0
    % patch -p1 < ../OpenCV-2.2.0.patch
    
  6. Following next steps to build OpenCV static library for simulator. All files are installed into opencv_simulator directory. When running make command, you've better assign -j option and number according to number of your CPU cores. Without -j option, it takes a long time.

    % cd ..
    % mkdir build_simulator
    % cd build_simulator
    % ../opencv_cmake.sh Simulator ../OpenCV-2.2.0
    % make -j 4
    % make install
    
  7. Following next steps to build OpenCV static library for device All files are installed into opencv_device directory.

    % cd ..
    % mkdir build_device
    % cd build_device
    % ../opencv_cmake.sh Device ../OpenCV-2.2.0
    % make -j 4
    % make install
    

Build support script

uild support script opencv_cmake.sh has some options to build OpenCV with iOS SDK. Try --help option to get the all options of it.

Change Log

  • 04/11/2011 - Supprot OpenCV 2.2.0 + iOS SDK 4.3 + XCode 4
  • 10/30/2010 - Support iOS SDK 4.1
  • 08/22/2010 - Support OpenCV 2.1.0 + iOS SDK 4.0
  • 12/21/2009 - Support Snow Leopard + iPhone SDK 3.1.2, Thank you Hyon!
  • 11/15/2009 - Support OpenCV to 2.0.0 + iPhone SDK 3.x
  • 03/14/2009 - Release this project with OpenCV 1.0.0 + iPhone SDK 2.x