0

I have an UIImagePickerController with my own camera overlay. In that overlay I have a button that the user can press to take a photo.

Currently, I have an IBAction on "Touch Up Inside" that will take a picture. self.imagePickerController is my reference to UIImagePickerController

- (IBAction)onSnapClicked:(id)sender {

     [self.imagePickerController takePicture];

}

My problem is that, in the callback method. The image that I get back is always blurry. Please help

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{   
    // Get the original image
    UIImage *originalImage = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
}

1 Answers1

0

They are the same quality. You might have created a lag somewhere thus gives you the false sense of finish taking picture, while it is actually capturing.

Unless your button allows touch through. In that case, the camera always try to focus that part of your picture. You have to prevent that from happening. How to do that, look into my answer on this question : Exlusive touch in cameraoverlay view (of the camerapicker) in iOS?

Community
  • 1
  • 1
Byte
  • 2,920
  • 3
  • 33
  • 55
  • Thank you for the answer Byte, I've double checked my code and I realized that I was passing in a scaled down version of my picture in my own preview view. the Picture was 320x640 and I was displaying this on my iPhone4. No wonder it was blurry. – iamraymondchen Aug 02 '12 at 21:46
  • Oh, in that case, I could not have foreseen it in your question :) glad you resolved it. – Byte Aug 03 '12 at 19:54