How to import opencv2 framework in iOS Swift

后端 未结 2 1670
南旧
南旧 2021-02-09 02:20

I downloaded the latest pre-built opencv2.framework from the OpenCV SourceForge page. then in Xcode6-Beta3, I added opencv2.framework as a required linked framework under the \

2条回答
  •  攒了一身酷
    2021-02-09 03:03

    You will need to create a bridge from C++ to Objective C or plain C. After that, you will need to include/import the bridge's header into an "Objective-C Bridging Header", which Xcode should have generated when you added a Swift source file in an existing project.

提交回复
热议问题