Using device camera and video in app

Discussion in 'iOS Programming' started by Casey-Scalf, Feb 9, 2011.

  1. Casey-Scalf macrumors newbie

    Joined:
    Feb 9, 2011
    #1
    Hey,

    So I am wondering how I can use the video function of the device better. Instead of taking a picture or a video I would like to use that video feed realtime to provide analysis on what it is seeing.

    My question would then be:

    --Does any SDK for xcode support live video feeds?
    --And if so, is there enough hardware muscle to engage the camera and analyze what it is viewing (akin to gesture recognition in a Xbox Kinnect)
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    You can grab each from out of the live video stream using the AVFoundation framework classes. As to whether this is enough horsepower to analyse what you are seeing: it would depend on the analysis. I would note that the Kinnect uses multiple cameras you you are unlikely to be able to do that.
     
  3. Casey-Scalf thread starter macrumors newbie

    Joined:
    Feb 9, 2011
    #3
    Thanks for the tip!

    Although multiple camera angles would be cool, one will have to do for now
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    You might be interested in this thread. I posted code that will create a video stream, saving it to a file, and examining/drawing on each video frame as it's captured. Obviously that's a bit different to what you want but it should give you a start.
     

Share This Page