I have to process frames which are captured by iPhone camera using my c++ functions. So I use startRunning()
function to start the flow of data, but in what way I can process each frame?
Yes, it is pretty straight forward. You need to
For more information you can read this part of the AVFoundation Programming Guide. The code samples are in Objective-C not swift but i think you get the idea.
I created a class that may help you out: CameraCaptureHelper wraps up all the AVFoundation stuff and invokes a method on its delegate where it passes a CIImage
with each frame.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With