opencv在ios上的开发教程

时间:2023-03-09 15:58:10
opencv在ios上的开发教程

http://docs.opencv.org/doc/tutorials/ios/hello/hello.html

分类: iOS平台

今天从opencv官网下了一个ios版的opencv的framkwork,按照官方的导入项目后,编译时出现错误在background_segm.hpp里出现“ 'list' file not found”
在网上查了解决办法是:
1)把用到opencv的类的后缀从.m改为.mm
2)导入libc++.dylib库
分类: ios2014-10-13 15:56 1157人阅读 评论(0) 收藏 举报

解决方法:

去.h中添加:

1
2
3
4
@interface xxx : xxx <xxx, UIImagePickerControllerDelegate, UINavigationControllerDelegate>
{
...
}

以符合UIImagePickerControllerDelegate和UINavigationControllerDelegate,即可解决问题。