title: Tesseract iOS camera low accuracy
body: <p>When I use an image taken with the camera on the iPhone and send it to <code>tesseract</code> the accuracy is horrible it is all garbage text, but when I choose the same image from the photo library I get great accuracy.</p>
  
  <p>How can I improve <code>tesseract</code>s accuracy from a picture take with the camera? Here is what I am doing to the image before sending</p>
  
  <pre><code>- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
  
      UIImage *image = info[UIImagePickerControllerOriginalImage];
      CGFloat newWidth = 1200;
      CGSize newSize = CGSizeMake(newWidth, newWidth);
      image = [image resizedImage:newSize interpolationQuality:kCGInterpolationHigh];
  
      Tesseract* tesseract = [[Tesseract alloc]initWithLanguage:@"eng"];
      [tesseract setVariableValue:@"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@#&amp;*()-_:." forKey:@"tessedit_char_whitelist"];
      [tesseract setVariableValue:@"`~!%^*[]{}&lt;&gt;?|" forKey:@"tessedit_char_blacklist"];
      [tesseract setImage:image];
      [tesseract recognize];
      NSLog(@"%@", [tesseract recognizedText]);
  
      [picker dismissViewControllerAnimated:YES completion:NULL];
  
  }
  </code></pre>
  
  <p>If anyone has found some "magical" way to get tesseract to scan with great accuracy I will reward a bounty!</p>