Questions tagged [gpuimagestillcamera]

43 questions
4
votes
2 answers

GPUImage - Focusing and Exposure on tap does not work properly - Missing something?

I had starter project that used AVFoundation to set up the Camera and it worked perfectly. Now I needed to convert the Camera mechanism into GPUImage. I'm using the same focus and exposure method in both projects (which worked prefect at the…
Roi Mulia
  • 4,846
  • 9
  • 43
  • 92
4
votes
2 answers

A video from GPUImageMovie has a red frame at the beginning

Thank you for seeing this question. I create a movie from GPUImageMovieComposition and GPUImageWriter, and sometimes (5% ~ 10 %) the movie has red frames at the beginning. Please teach me why this phenomenon occur. I use AVFileTypeMPEG4 as a…
3
votes
0 answers

How to capture image and record video using GPUImage 2?

How to capture image with applied filter using GPUImage? For reference, below is the code which I am calling for get image: func countdownFinished(_ view: LUCountdownView!) { let pictureOutput = PictureOutput() …
Sumit singh
  • 2,189
  • 1
  • 13
  • 29
3
votes
0 answers

3D Face Scan using Camera in Snapchat

In Snapchat we could tap on the face on the camera. And it would generate a 3D wireframe around our face. i am wondering how do they achieve that? Any library that does that? P.S.: Please help vote up for attract answers I have searched SO and…
JayVDiyk
  • 6,250
  • 20
  • 61
  • 113
3
votes
2 answers

GPUImage - ChromaKeyBlendFilter - sourceImage

I have an GPUImageStillCamera layered over a UIView (on which some realtime animation is happening) in which for GPUImagePicture I am passing the sourceImage with smoothlyScaleOutput:YES for ChromaKeyBlendFilter The code works perfectly (most humble…
Saurabh Passolia
  • 8,059
  • 1
  • 24
  • 40
3
votes
0 answers

GPUImage Memory Leak *Dirty* IOKit Object Hogging Memory

I am using GPUImage and I have a UIViewController which loads a GPUStillImageCamera into fullview. However if I close and open this UIViewController 5x, then I get a nasty crash. It's an out of memory crash (since there is no error message) and it's…
Aggressor
  • 12,511
  • 18
  • 88
  • 165
2
votes
1 answer

GPUImage2 unable to cycle through filters real-time

I have the following block of code that utilizes the GPUImage2 library to filter video in real time. The idea is to be able to cycle these filters based on button clicks. But only one filter will be applied and whenever I try and cycle to the next…
2
votes
1 answer

GPUImage show histogram in another view

I am currently trying to display a histogram using GPUImage. I currently have following code: GPUImageOutput *filter = [[GPUImageHistogramFilter alloc] initWithHistogramType:kGPUImageHistogramLuminance]; [self.stillCamera …
Gizmodo
  • 2,563
  • 4
  • 32
  • 71
2
votes
0 answers

iOS - GPUImage distorted

I am using GPUImage to apply live filters on camera views. the problem is once I capture an image, it gets pixelated Here is my code: in viewDidLoad: imageCamera = [[GPUImageStillCamera alloc] initWithSessionPreset:AVCaptureSessionPresetPhoto…
user3370459
  • 126
  • 4
2
votes
0 answers

Using a GPUImageTransformFilter on a GPUImageVideoCamera yields flickering

I want to use a GPUImageTransformFilter to crop a live video stream from GPUImageVideoCamera. GPUImageTransformFilter *transformFilter = [[GPUImageTransformFilter alloc] init]; // Zoom is 4x [transformFilter…
kev
  • 7,062
  • 10
  • 26
  • 40
1
vote
0 answers

Capture Filtered Image with GPUImage and Save to Photo Library with Metadata

I am developing a simple came app for iOS 10. I need to live filter a camera feed, and then capture and save the filtered image. Using GPUImage, I have been able to setup the live feed and the image capture using GPUImageStillCamera. I am also…
Chase McCoy
  • 1,420
  • 2
  • 11
  • 16
1
vote
0 answers

How to load/import GPUImage library

I am trying to get GPUImage library works on AndroidStudio and i am testing my code against Samsung Galaxy GT-I9300. I downloaded the GPUImage library as a jar file from here…
user2121
  • 6,401
  • 13
  • 57
  • 121
1
vote
0 answers

GPUImage index out of bounds crash

I have a camera app on the app store that uses GPUImage to take pictures and record videos. I am getting crash reports that says its crashing for a lot of users with the error Fatal Exception: NSRangeException *** -[NSArray| objectAtIndex:]: index 0…
Subash
  • 972
  • 12
  • 26
1
vote
0 answers

How to maintain the aspect ratio when using GPUImage cropFilter?

Now I am making a application to take square movies like Instagram. I'm trying to use cropFilter in GPUImage to crop the video. The video is really square but looks stretch and broken ratio. I wrote like this. videoView.frame = CGRect(x: 0, y: 0,…
1
vote
0 answers

GPUImage captured from camera reports unexpected size

Using the GPUImage camera I set my camera up like this - (void)setupSessionWithImageView:(GPUImageView *)captureView { GPUImageStillCamera *stillCamera = [[GPUImageStillCamera alloc] init]; GPUImageGammaFilter *colorFilter =…
1
2 3