Using OpenCV in Swift iOS

前端 未结 2 745
长发绾君心
长发绾君心 2020-12-07 07:58

After adding the OpenCV 2 framework in my xcode project, I tried searching for samlpes or tutorials for integration with swift.

Are there any good tutorials for the

2条回答
  •  既然无缘
    2020-12-07 08:17

    I have a demo on github:

    https://github.com/foundry/OpenCVSwiftStitch

    It shows how to use the OpenCV stitcher from a Swift-based project. There is not a lot to the openCV side, it's really just a demo of how to put the various pieces together.

    As Swift won't talk C++ directly, it uses a thin Objective-C++ wrapper to mediate between the iOS side and the openCV side.

    Made in answer to these questions:
    Can I mix Swift with C++? Like the Objective - C .mm files
    libraries to CAPTURE panorama in iOS 6

提交回复
热议问题