BradLarson / GPUImage2

GPUImage 2 is a BSD-licensed Swift framework for GPU-accelerated video and image processing.
BSD 3-Clause "New" or "Revised" License
4.87k stars 609 forks source link

Crash #207

Closed Sumit-2singh closed 6 years ago

Sumit-2singh commented 6 years ago

hi, Actually, my need is to capture image from camera and for this whenever i call this function " public func synchronousImageCapture() -> UIImage " for get image. app going to crash

Sumit-2singh commented 6 years ago

hi @BradLarson, is in future have your any plan , to give feature for capture image with filter in GPUImage2(Swift version) ?

doudouperrin commented 6 years ago

Hi, It is not direclty implemented for now but you can use what is discribed on the Readme (cf Capturing an image from video) filter.saveNextFrameToURL(url, format:.PNG) to capture and store directly the picture to FS.

Or you can use a PictureOutput on your pipeline to process data and transform to UIImage.