Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Live camera data access In iOS 4

Prior to the release of the new SDK there has been some buzz about Apple finally providing access to live camera data:

I've been reading through Apple's documentation but have not found any reference to this. Now that the NDA has been lifted, does anyone know where this new functionality is documented?

like image 721
jj0b Avatar asked Jul 01 '10 19:07

jj0b


People also ask

How do I enable camera access in iOS settings?

Review or change access to the camera, microphone, and other hardware features. Go to Settings > Privacy & Security. Tap a hardware feature, such as Camera, Bluetooth, Local Network, or Microphone.

Can iOS apps access camera without permission?

Apple designed cameras with privacy in mind, and third-party applications must obtain your consent before accessing Camera. On an iOS device, apps that you grant access to Camera can access real-time images from the front and rear cameras.


2 Answers

This is thoroughly demonstrated in the WWDC 2010 session video 409: Using the Camera with AV Foundation. If you download the WWDC sample code, you'll find three or four sample applications that show how to use the various aspects of live camera capture and processing.

As Shaji points out, all of this is done through the AV Foundation framework using the new capture classes AVCaptureSession, AVCaptureInput, AVCaptureDevice, and AVCaptureOutput.

like image 154
Brad Larson Avatar answered Sep 20 '22 03:09

Brad Larson


Have a look at the the AV Foundation framework specially the AVCapture* classes.

like image 43
Sharjeel Aziz Avatar answered Sep 18 '22 03:09

Sharjeel Aziz