uchicago-mobi / MPCS51030-2017-Winter-Forum

7 stars 0 forks source link

Has anyone successfully captured a still image from an AVCaptureSession? #166

Closed taburaad closed 7 years ago

taburaad commented 7 years ago

I've spent way too long trying to figure this out in Swift 3. I've found tutorials that are relevant for Swift 2 and iOS < 10, but none for the current versions.

I have a live camera view stream using AVCaptureSession and AVCaptureVideoPreviewLayer. I want to capture a screenshot of this, in effect taking a picture. Has anyone done this or have tutorials/examples?

Thanks.