如何使用OpenCV创建一个iOS Objective-C Xcode项目?
答案 0 :(得分:0)
基于的指令; https://medium.com/@yiweini/opencv-with-swift-step-by-step-c3cc1d1ee5f1
opencv2.framework
(例如/Users/[USERNAME]/Documents/libraries/opencv2.framework
)$(PROJECT_DIR)
[INSERT COMPLETE PATH OF opencv2.framework]
(例如/Users/[USERNAME]/Documents/libraries/
)OpenCVWrapper
,然后为语言选择Objective-C。OpenCVWrapper.m
并将文件扩展名重命名为.mm
OpenCVWrapper.m
更改为OpenCVWrapper.mm
OpenCVWrapper.mm
并在顶部添加以下import语句; #import <opencv2/opencv.hpp>