LyricalPanda
LyricalPanda

Reputation: 1414

Get access to iPhone camera live feed

I need to get access to the actual camera on the iPhone and take a 'snapshot' of it every .X seconds.

On each update, I'll run image processing on it (a modified version of OpenCVCircles) and if conditions are met, exit out of the camera while taking certain actions. If conditions are not met, then I'll simply stay in the camera. The conditions will be a custom configuration of a series of circles that the user has to look at through the camera.

I know that this could be easy by forcing the user to take a picture, and I grab that from the UIImagePicker. However, I think it would be much better to do it automatically for the user, if they are in view of the image.

Is it possible to do this without completely writing my own Camera by AVCapture classes?

Upvotes: 1

Views: 270

Answers (1)

woodleg.as
woodleg.as

Reputation: 274

Look into AVCaptureSession, AVCaptureDevice and the like classes. They should provide what you need. We are using it here to provide a live video feed through the network.

Edit

From your question edit, I see this answer does not apply directly to your use case. Yet it is the only mean to my knowledge that will allow you to accomplish what you seek.

Upvotes: 1

Related Questions