ios5 - Filter Live camera feed -
so i've been using uiimagepickercontroller access camera photo , video capture, wanted apply filters on 2 sources, succeeded filtering token photos i'am having trouble finding solution rest, need access raw image data : live image feed camera showing , apply filter , show filtered ones instead. or advice appreciated.
uiimagepickercontroller doesn't give low level access camera buffer.
you should setup avcapturesession , use delegate process cmsamplebufferref
take @ avcam & squarecam demos apple, give introduction video capture.
http://developer.apple.com/library/ios/#samplecode/avcam/introduction/intro.html http://developer.apple.com/library/ios/#samplecode/squarecam/introduction/intro.html
an easier solution use https://github.com/bradlarson/gpuimage
thanks adam
Comments
Post a Comment