github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

niw / iphone_opencv_test

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 48
    • 6
  • Source
  • Commits
  • Network (6)
  • Issues (0)
  • Downloads (0)
  • Wiki (3)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (5)
    • experimental_iphonesdk_3.x
    • fix_for_snow_leopard
    • iphonesdk_2.x_opencv_1.x
    • master ✓
    • test_open_surf
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Test application for iPhone with OpenCV library — Read more

  cancel

http://niw.at/articles/2009/03/14/using-opencv-on-iphone/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Ignore .DS_Store 
niw (author)
Sun Jan 03 20:13:22 -0800 2010
commit  5809b40e90c153476d80233ea6a4f341c076de02
tree    f0509590a4eb740ac88dc6e477cf6f3975b0f6eb
parent  a3450883dd98079c4fbc78f6d4f91548204742c1
iphone_opencv_test /
name age
history
message
file .authors Thu Mar 05 10:08:27 -0800 2009 Migrate from SVN repository, adding git specifi... [niw]
file .gitignore Sun Jan 03 20:13:22 -0800 2010 Ignore .DS_Store [niw]
directory Classes/ Thu Dec 25 13:21:38 -0800 2008 * New Icon, Default * Adding progressHUD * S... [niw]
file Default.png Fri Dec 26 04:11:45 -0800 2008 * update icon, default git-svn-id: svn+ssh:/... [niw]
file Default_source.png Fri Dec 26 04:11:45 -0800 2008 * update icon, default git-svn-id: svn+ssh:/... [niw]
file Icon.png Mon Jan 05 10:53:18 -0800 2009 * FIX: Icon background * FIX: Window backgrou... [niw]
file Icon_source.png Mon Jan 05 10:53:18 -0800 2009 * FIX: Icon background * FIX: Window backgrou... [niw]
file Info.plist Mon Jul 28 09:23:01 -0700 2008 * missing file git-svn-id: svn+ssh://svn.dot... [niw]
file MIT-LICENSE.txt Sun May 31 06:43:23 -0700 2009 Add license file These source code are under M... [niw]
file MainWindow.xib Mon Jan 05 10:53:18 -0800 2009 * FIX: Icon background * FIX: Window backgrou... [niw]
directory OpenCVTest.xcodeproj/ Sun Nov 15 00:53:07 -0800 2009 Update default SDK to 3.1.2 [niw]
file OpenCVTest_Prefix.pch Mon Jul 28 05:10:14 -0700 2008 * Using OpenCV on iPhone * Static link versio... [niw]
file README.md Sun Nov 15 00:07:07 -0800 2009 Update README [niw]
file Tink.aiff Thu Dec 25 13:21:50 -0800 2008 * Missing file git-svn-id: svn+ssh://svn.dot... [niw]
file configure_opencv Mon Dec 21 01:58:58 -0800 2009 FIX: cpp-4.2 responed error on Snow Leopard [niw]
file cvcalibration.cpp.patch_opencv-1.1.0 Sat Nov 14 22:19:31 -0800 2009 Add patch [niw]
file cvcalibration.cpp.patch_opencv-2.0.0 Sat Nov 14 22:19:31 -0800 2009 Add patch [niw]
file laughing_man.ai Mon Jul 28 19:55:40 -0700 2008 * add laughing man mode git-svn-id: svn+ssh:... [niw]
file laughing_man.png Mon Jul 28 19:55:40 -0700 2008 * add laughing man mode git-svn-id: svn+ssh:... [niw]
file lena.jpg Mon Jul 28 05:10:14 -0700 2008 * Using OpenCV on iPhone * Static link versio... [niw]
file main.m Mon Jul 28 05:10:14 -0700 2008 * Using OpenCV on iPhone * Static link versio... [niw]
directory opencv_device/ Sun Nov 15 00:33:13 -0800 2009 Add missing additional header files from OpenCV... [niw]
directory opencv_simulator/ Sun Nov 15 00:33:13 -0800 2009 Add missing additional header files from OpenCV... [niw]
README.md

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. Clone this project from github.com, then move into the project directory

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

  3. Extract downloaded archive on the top of project project directory

    % tar xjvf opencv-2.0.0.tar.bz2
    
  4. Apply patch for iPhone SDK

    % cd OpenCV-2.0.0
    % patch -p0 < ../cvcalibration.cpp.patch_opencv-2.0.0
    
  5. Following next steps to build OpenCV static library for simulator

    % cd OpenCV-2.0.0
    % mkdir build_simulator
    % ../../configure_opencv
    % make
    % make install # Install all files into ../../opencv_simulator
    
  6. Following next steps to build OpenCV static library for device

    % cd OpenCV-2.0.0
    % mkdir build_device
    % ARCH=device ../../configure_opencv
    % make
    % make install # Install all files into ../../opencv_device
    

Patch and Configure support script

OpenCV 2.0.0 (and also 1.1.0) has a glitch which refuse builing the library with iPhone SDK. You need to apply the patch cvcalibration.cpp.patch so that you can build it.

Congiure support script configure_opencv has some options to build OpenCV with iPhone SDK. Try to --help option to get the all options of it.

Change Log

  • 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
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server