Hello all (new to these parts),
I've successfully gotten access to the PLCameraController and am stuck where a lot of you are also stuck, trying to access raw image data.
The screen shot accessors from the PLCameraController object are unfortunetly useless to me as I need to modify the current frame, and display it. Unless I did some form of switching back and forth every frame to get a new screenshot but I am certain this would flicker like crazy.
I've tried taking the previewView UIView from the PLCameraController and rendering that but have had no luck. Here is the code I used in that attempt:
Code:
UIGraphicsBeginImageContext(cameraView.bounds.size);
[cameraView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *contextImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
[imageView setImage:contextImage];
Unfortunetly all this does is return a completely black image. I am not even sure if this is a valid path to take for finding a fix.
Anyone have any thoughts on possibly getting camera frames from rendering previewView as a UIImage? Possible? Crazy? Wild goose hunt?