美文网首页iOS Developer
iOS_OpenCV的工程导入

iOS_OpenCV的工程导入

作者: Champion | 来源:发表于2017-10-28 09:59 被阅读65次

这里是官网https://opencv.org/ OpenCV3.3已经发布了

下面有各平台的的sourceforge

下载地址

当然OpenCV也要添加iOS的依赖库

AssetsLibrary.framework,

AVFoundation.framework,

CoreMedia.framework,

CoreVideo.framework

如果木有添加依赖库,可能会报这些问题

———————————————————————————————————

新建类如果要使用OpenCV需要改变文件后缀为.mm

.m文件后缀修改为.mm

在导入头文件时要注意,OpenCV 提示的很明白。

#if defined(NO)

#  warning Detected Apple 'NO' macro definition, it can cause build conflicts. Please, include this header before any Apple headers.

#endif

openCV头文件置顶

然后贴个代码图片,是轮廓绘制的

相关文章

网友评论

    本文标题:iOS_OpenCV的工程导入

    本文链接:https://www.haomeiwen.com/subject/jtvjpxtx.html