I have seen many tutorials that show how to place the live camera image on the screen, but I want to modify the images with a CIImage. I have taken a look at this, but couldn't find out if that would work. I am assuming that to do this, I need to take every frame, modify it, and then put it on the screen. I would like something similar to this, but in Swift.
My questions are:
- How to set up a function that is called when a new captured is found by the camera
- How to modify the image effectively. (I already know how to use CIImage, but it is very laggy)