I am prototyping an app which would use the iOS Vision framework to continuously crop tightly around the user's face through the front camera. I've found a great tutorial from the official Apple documentation: https://developer.apple.com/documentation/vision/tracking_the_user_s_face_in_real_time
My plan is to adapt this to crop the video instead of drawing a bounding box, and then build the rest of my app around that.
However, I've noticed that this example app uses a high amount of energy and CPU. The app will not be viable if this is unavoidable, as it will quickly drain the user's battery.
Is the Vision framework intended just to be used in short bursts? Is it worth diving into trying to optimize it?