I have to make an iPhone project that can process video data in
realtime. This app has to be able to reconize the color of the
object in the video frame. After I found information relating to
video processing in iOS, I found that I can use AVFoundation
Framework to achieve this task but I don’t know which APIs or functions
of AVFoundation that’s able to do this video processing task.
Can anyone suggest me which function to use to get image frames or
raw image data out of a video streaming in real-time?
I’d appreciate if you can give me some example code
Thank you very much for helping me…
You can first of all make use of
AVAssetclass by initiating it with your video file URL.You can then use an
AVAssetReaderobject for obtaining media data of that asset.This will help you obtain video frames which you can read using
AVAssetReaderVideoCompositionOutputclass object. Accessing RGB channel data from these frames is pertinent toCGImageclasses and it’s methods.Hope this helps you to get started