gpuimage

GPUImage: Darker iOS 7 Blur Effect

梦想的初衷 提交于 2019-12-22 09:27:53
问题 I need a reliable, efficient method to create iOS 7 blur effect. I've implemented Apple's applyBlurWithRadius from WWDC code (UIImage+ImageEffects) . It is pretty flexible actually, it allows to change tintColor also which provides to create a darker blur effect like this: But it relies on the Core Graphics and it is decreasing the scrolling performance in a table view. Then I've seen BradLarson's GPUImage library and it's GPUImageiOSBlurFilter method which replicates the iOS 7 effect and it

Transparent GPUImageView?

雨燕双飞 提交于 2019-12-22 04:46:17
问题 I am using a GPUImageView inside my iOS application. I want that the GPUImageView have a transparent background. I tried setBackground:[UIColor clearColor] It does not work. Any workarounds? Regards 回答1: I found you need to set both of these to get a transparent background. Neither works alone. strengthPreviewImageView.backgroundColor = [UIColor clearColor]; [strengthPreviewImageView setBackgroundColorRed:0 green:0 blue:0 alpha:0]; 回答2: ...Did you try the method from the GPUImageView header?

How to use GPUImageLookupFilter without GPUImageFilterGroup?

本秂侑毒 提交于 2019-12-21 20:30:25
问题 I have a problem with understanding GPUImage. Specifically, I can't figure out how to use GPUImageLookupFilter. I have several examples of usage in GPUImageAmatorkaFilter for example. But LookupFilter used there within GPUImageFilterGroup which I didn't understood yet either. I wonder whether I can use LookupFilter alone. I've tried this: GPUImageLookupFilter *lookup = [[GPUImageLookupFilter alloc] init]; UIImage *image = [UIImage imageNamed:@"amatorka.png"]; GPUImagePicture

GPUImageMovieWriter - crashing with “Cannot call method when status is 2”

与世无争的帅哥 提交于 2019-12-21 16:57:40
问题 Trying to get started with the really great GPUImage framework so graciously shared by Brad Larson, but having an issue. When running the SimpleVideoFileFilter sample it always crashes at completion with the following error: [AVAssetWriterInput markAsFinished] Cannot call method when status is 2 Anyone know how to correct this? Also do not see the video when run in simulator, does it not work for simulator? Running iOS 6.1 and Xcode 4.6 Thanks! I am noticing that

Xcode: Missing Info.plist key for NSCameraUsageDescription

╄→尐↘猪︶ㄣ 提交于 2019-12-21 09:29:14
问题 After adding GPUImage to my Xcode project, my app is getting denied for Missing an Info.plist key for NSCameraUsageDescription . Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data. I have added the key and description to my plist in several different ways and over 10 builds have all gotten the same denial

GPUImage Chroma Key filter

。_饼干妹妹 提交于 2019-12-21 05:51:28
问题 I am trying to use the GPUImage framework's chromakey filter. I followed the Filtershowcase example, but obviously I am missed something becuase it only shows the video, but no green screen keying out effect. Here's my initialization of video camera/filter: camera = [[GPUImageStillCamera alloc] initWithSessionPreset:AVCaptureSessionPreset640x480 cameraPosition:AVCaptureDevicePositionBack]; camera.outputImageOrientation = UIInterfaceOrientationLandscapeLeft; camera

Change brightness of an image via uislider and gpuimage filter

懵懂的女人 提交于 2019-12-20 06:37:03
问题 I wrote this code to change the brightness of an UIImage via an UISlider and the GPUImageBrightnessFilter. But every time I'll test it the app crashes. My code: - (IBAction)sliderBrightness:(id)sender { CGFloat midpoint = [(UISlider *)sender value]; [(GPUImageTiltShiftFilter *)brightnessFilter setTopFocusLevel:midpoint - 0.1]; [(GPUImageTiltShiftFilter *)brightnessFilter setBottomFocusLevel:midpoint + 0.1]; [sourcePicture processImage]; } - (void) brightnessFilter { UIImage *inputImage =

ios GPUImage,bad result of image processing with small-size images?

折月煮酒 提交于 2019-12-19 04:22:10
问题 I'm trying prepare image for OCR,I use GPUImage to do it,code work fine till i crop image!!After cropping i got bad result... Crop area: https://www.dropbox.com/s/e3mlp25sl6m55yk/IMG_0709.PNG Bad Result=( https://www.dropbox.com/s/wtxw7li6paltx21/IMG_0710.PNG + (UIImage *) doBinarize:(UIImage *)sourceImage { //first off, try to grayscale the image using iOS core Image routine UIImage * grayScaledImg = [self grayImage:sourceImage]; GPUImagePicture *imageSource = [[GPUImagePicture alloc]

Key differences between Core Image and GPUImage

坚强是说给别人听的谎言 提交于 2019-12-18 10:35:48
问题 What are the major differences between the Core Image and GPUImage frameworks (besides GPUImage being open source)? At a glance their interfaces seem pretty similar... Applying a series of filters to an input to create an output. I see a few small differences, such as the easy to use LookupFilter that GPUImage has. I am trying to figure out why someone would choose one over the other for a photo filtering application. 回答1: As the author of GPUImage, you may want to take what I say with a

Key differences between Core Image and GPUImage

倾然丶 夕夏残阳落幕 提交于 2019-12-18 10:35:19
问题 What are the major differences between the Core Image and GPUImage frameworks (besides GPUImage being open source)? At a glance their interfaces seem pretty similar... Applying a series of filters to an input to create an output. I see a few small differences, such as the easy to use LookupFilter that GPUImage has. I am trying to figure out why someone would choose one over the other for a photo filtering application. 回答1: As the author of GPUImage, you may want to take what I say with a