Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HDR with AVFoundation

I'm like to get both a real-time and post-processed HDR effect with AVFoundation and/or CoreImage. I'm assuming this is relatively easy with CoreImage once a full-frame still image is captured, but does anybody know how to achieve an HDR-like effect using AVCaptureVideoPreviewLayer?

like image 907
mdavis Avatar asked Nov 16 '11 00:11

mdavis


1 Answers

You can use AVCaptureVideoOutput class and above mentioned delegate method (captureOutput:didOutputSampleBuffer:fromConnection:) to get each live frame from camera. From that frame, you can create CIImage and make changes using CoreImage framework; After that just draw output using drawRect: method

like image 107
Pratik Bhadkoliya Avatar answered Nov 15 '22 05:11

Pratik Bhadkoliya