OpenCV for iOS

Just Compilled OpenCV framework for iOS.

Update: Pod now uses framework downloaded from here, which supports 64 and 32-bit. Compiling for 64-bit didn't work, ran into same problems mentioned here.

Have different versions (see tags)

Usage:

Use .mm flies instead of .m (Objective-C++)

Add import:

#import <opencv2/opencv.hpp>

Installation with Cocoapods

Just add line in your Podfile:

pod 'OpenCV'

Instalation Manually

Download and add opencv2.framework to your project

Also add following frameworks to your project:

  • Accelerate
  • AssetsLibrary
  • AVFoundation
  • CoreGraphics
  • CoreImage
  • CoreMedia
  • CoreVideo
  • QuartzCore
  • UIKit
  • Foundation

Also add following libs :

  • libc++.dylib

OpenCV README

OpenCV: open source computer vision library

Homepage: http://opencv.org

Online docs: http://docs.opencv.org

Q&A forum: http://answers.opencv.org

Dev zone: http://code.opencv.org

Download: http://sourceforge.net/projects/opencvlibrary/files/opencv-ios/



OpenCV for iOS

只需填写适用于iOS的OpenCV框架。

更新:Pod现在使用从这里,它支持64位和32位。针对64位的编译不起作用,遇到同样的问题。这里

有不同的版本(见标签)

用法:

使用 .mm ,而不是 .m (Objective-C ++)

添加导入:

#import <opencv2/opencv.hpp>

使用Cocoapods进行安装

只需在Podfile中添加行:

pod 'OpenCV'

手动实验

opencv2.framework 下载并添加到您的项目

还在项目中添加以下框架:

  • 加速
  • AssetsLibrary
  • AVFoundation
  • CoreGraphics
  • CoreImage
  • CoreMedia
  • CoreVideo
  • QuartzCore
  • UIKit
  • 基金会

还要添加以下libs:

  • libc ++。dylib

OpenCV README

OpenCV:开源计算机视觉库

主页: http://opencv.org

在线文档: http://docs.opencv.org

问与答一个论坛: http://answers.opencv.org

开发区域: http://code.opencv.org

下载: http://sourceforge.net/projects/opencvlibrary/files/opencv-ios/




相关问题推荐