Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Test application for iPhone with OpenCV library

This branch is even with niw:ios_sdk_4.0_opencv_2.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Classes
OpenCVTest.xcodeproj
opencv_device
opencv_simulator
.authors
.gitignore
Default.png
Default_source.png
Icon.png
Icon_source.png
Info.plist
MIT-LICENSE.txt
MainWindow.xib
OpenCV-2.1.0.patch
OpenCVTest_Prefix.pch
README.md
Tink.aiff
laughing_man.ai
laughing_man.png
lena.jpg
main.m
opencv_cmake.sh

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
Something went wrong with that request. Please try again.