Giter Site home page Giter Site logo

weatherfish / iphone_opencv_test Goto Github PK

View Code? Open in Web Editor NEW

This project forked from niw/iphone_opencv_test

0.0 1.0 0.0 58.58 MB

Test application for iPhone with OpenCV library

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

License: MIT License

Objective-C 0.63% Shell 0.14% C 14.94% C++ 84.29%

iphone_opencv_test's Introduction

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

iphone_opencv_test's People

Contributors

niw avatar

Watchers

felix avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.