零基础centerFace+ncnn移植到ios

参考资料:

基础知识:

如何封装一个c++函数接口

https://blog.csdn.net/jia12216/article/details/63253568?utm_source=blogxgwz1

踩过的坑:

ncnn模型加载错误,返回值非0

下载正确的ncnn预编译库link

提示找不到ncnn::resize_bilinear

确保正确加载了ncnn库

#include <ncnn/ncnn/mat.h>
#include <ncnn/ncnn/net.h>

No member named 'exp' in namespace 'std'

#include <cmath>

传人脸检测信息到mm文件时,点信息为空

与Automatic Reference Counting(ARC)相关,我在写代码时,给pts指定的类型为weak,改为strong就ok了!血泪教训!

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。