using OpenCV in iOS

Now the time is 2013/03/24,so the code is newest,and we don't like before to build the source code and get the static library,we only need to download the opencv2.framework(current version is 2.4.4),and then add them to your project. ios

Then there are some issue need to set in the project: ui

1) in you project's pre-complier head file,and the code like this before the #ifdef __OBJC__ this

#ifdef __cplusplus code

#import <opencv2/opencv.hpp> blog

#endif get

2) add the #import code in the file you use opencv it

3) don't need to change the build settings,if you read the the article:http://blog.devtang.com/blog/2012/10/27/use-opencv-in-ios/,you maybe want to change the build setting of complier.now I told you,it is not needed. io

4) change the .m file's extension using opencv code to .mm extension.This is for the Objec & C++ complier,you can get many article to said this issue,I won't to said again. opencv

any issue please let me know~ import

Thanks,

Blues

相關文章
相關標籤/搜索