Home:ALL Converter>IOS Take picture with front facing camera

IOS Take picture with front facing camera

Ask Time:2012-06-17T06:54:43         Author:Ugly Davis

Json Formatter

I'm trying to build a non-realtime face detection application.

Following this article: http://maniacdev.com/2011/11/tutorial-easy-face-detection-with-core-image-in-ios-5/ I can load in a jpg and detect faces.

I would like to automatically take a picture every 20 seconds, then display the image in a UIImageView* and then run the existing detect face function on it.

My question is two fold.

  1. Is there an easy way to take a sample picture from the camera and load it into a UIImageView* without saving it?

  2. How can i automate this to happen every 30 seconds with no user interaction?

Thanks!

Author:Ugly Davis,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/11067676/ios-take-picture-with-front-facing-camera
yy