Possible - Real-Time face merging on iOS camera?

Thanks to the OF community, I’ve been able to do fun projects with OfxFaceTracker. I especially like https://github.com/arturoc/FaceSubstitution that finds face through camera and puts a mask image on the face, right inside the camera view in real-time.

My question is, is it possible to do this real-time FaceSubstitution on an iOS device? I’ve been able to follow other examples on merging two faces into a still image on iOS, but I was wondering if an iphone/ipad processor is fast enough to handle the kind of real-time face substitution done on a Mac like arturoc’s FaceSubstitution.

On a desperate attempt, I’ve been trying to convert the code for FaceSubstitution into ofiOS but it’s throwing tons of errors.