capture image from GPUImageStillCamera without filter

3 replies [Last post]
Rahvin
User offline. Last seen 8 years 48 weeks ago. Offline
Joined: 06/01/2012
Posts:

Hi,

is it possible to capture an image from GPUImageStillCamera without filter?

When I set the filter to nil I get no image:

    [_camera capturePhotoAsImageProcessedUpToFilter:nil withCompletionHandler:^(UIImage* processedImage, NSError* error)
     {
 
         // image is empty or nil
 
     }];

Brad Larson
Brad Larson's picture
User offline. Last seen 4 years 22 weeks ago. Offline
Joined: 05/14/2008
Posts:

You're going to need to use a filter of some sort for the capture to work, but you could use something like a gamma filter with the defaults set, which will just pass through the unfiltered image.

Ananth
User offline. Last seen 8 years 47 weeks ago. Offline
Joined: 06/30/2012
Posts:

Hi Brad, Im now using your GPUImage framework. I need to capture the original image as well as the processed (filtered) image on one click of still image camera capture button. So, I think, it'ld be better to get the original image and then to apply the filter and process it using the similar filter effect to the GPUImagePicture.

So, I would like to capture original image but need to get the filtered still image camera output(for user display) as well. How can I do it? Can you suggest me how to do it?

Thanks,
Ananth

Mark Krenek
User offline. Last seen 8 years 39 weeks ago. Offline
Joined: 08/20/2012
Posts:

I'd like a way to get the unfiltered UIImage as well. I'm anticipating a UI where the user can turn filtering on and off. When off, I won't have a filter and would like to avoid going through the capturePhotoAs* methods as they scale the image down to get below 2048 on certain hardware.

Syndicate content