@zane. Thanks very much for your question! I unfortunately can’t think of anything that would show you how to do this off the top of my head. In truth, this sounds like something that can be very easily accomplished using ARKit, but you’ve made it clear you need something for iOS 10. Perhaps you should do a search for something like, “Augmented Reality in iOS 10” on Google, and see what you find?
You can try using OpenCV, a cross-platform open-source vision library.
The main downside is that you will have to write a lot of mathematical code in order to make it work, but at least you will have a solid and well-tested base to detect faces, for start.
Maybe one day it will be as simple as this snippet : ^^
guard let faces = image.foundFaces(), let mainFace = faces.first() else {
return
}
mainFace.add([.glasses, .mustache])
I wish you good luck, face detection and AR are really interesting domains