small test project for openCV and Swift
There are two sliders to change the upper and lower threshold value for the canny function. Everytime you change the value, the output image gets updated. It is pretty laggy, maybe because of the image size.
Something like that right now:
you need openCV (2.4) included in your project as a framework.
I used Cocoapods so you just have to run: pod install
in your project directory.
https://sriraghu.com/2017/06/04/computer-vision-in-ios-swiftopencv/
https://sriraghu.com/2016/07/23/opencv-in-ios-an-introduction/
https://medium.com/ios-os-x-development/the-fd4fcb249358
https://medium.com/@yiweini/opencv-with-swift-step-by-step-c3cc1d1ee5f1