0
即时通讯使用tesseract OCR,它只能读取300 dpi的图像,当我使用UIImage选取器控制器相机拍摄的照片72 dpi的图像我怎样才能以300 dpi像iOS应用程序股票应用程序中的图像?使用Tesseract的iOS
即时通讯使用tesseract OCR,它只能读取300 dpi的图像,当我使用UIImage选取器控制器相机拍摄的照片72 dpi的图像我怎样才能以300 dpi像iOS应用程序股票应用程序中的图像?使用Tesseract的iOS
我在iPad与iOS7采用正方体和下面的代码成功地呈现出的UIImagePickerController,我得到的图像回来,我可以很容易地OCR通过正方体:
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
iosPicker = [[UIImagePickerController alloc] init];
iosPicker.sourceType = UIImagePickerControllerSourceTypeCamera;
iosPicker.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeImage, nil];
iosPicker.allowsEditing = NO;
iosPicker.cameraCaptureMode = UIImagePickerControllerCameraCaptureModePhoto;
iosPicker.cameraDevice = UIImagePickerControllerCameraDeviceRear;
iosPicker.modalPresentationStyle = UIModalPresentationFullScreen;
iosPicker.delegate = self;
[self presentViewController:iosPicker animated:YES completion:^{}];
}
旁注:iosPicker是一个实例在视图控制器的界面中定义的变量。
感谢您的回复,我发现问题,这是当我使用CGRect的裁剪方法时,它不会读取 – user3191104