2
"rcarlsen-Pocket-OCR-9912da9"의 tesseract 데모 코드를 https://github.com/rcarlsen/Pocket-OCR/downloads 에서 다운로드했습니다. 이제는 it.Can에서 사용 된 라이브러리에 문제가 있습니다. 어떻게 해결할 수 있습니까? 아니면 어디에서 얻을 수 있습니까? (이 CPP이기 때문에)라이브러리가 tesseract에서 발견되지 않습니까?
#import <UIKit/UIKit.h>
#import <MessageUI/MessageUI.h>
#import "ZoomableImage.h"
// conditionally import or forward declare to contain objective-c++ code to here.
#ifdef __cplusplus
#import "baseapi.h"
using namespace tesseract;
#else
@class TessBaseAPI;
#endif
@interface OCRDisplayViewController : UIViewController
<UIActionSheetDelegate, UINavigationControllerDelegate, MFMailComposeViewControllerDelegate, UIImagePickerControllerDelegate> {
TessBaseAPI *tess;
UIImage *imageForOCR;
NSString *outputString;
UIActivityIndicatorView *activityView;
IBOutlet UIBarButtonItem *cameraButton;
IBOutlet UIBarButtonItem *actionButton;
IBOutlet ZoomableImage *thumbImageView;
IBOutlet UILabel *statusLabel;
IBOutlet UITextView *outputView;
}
@property(nonatomic,retain)NSString *outputString;
@property(nonatomic,retain)IBOutlet UITextView *outputView;
@property(nonatomic,retain)IBOutlet UIBarButtonItem *cameraButton;
@property(nonatomic,retain)IBOutlet UIBarButtonItem *actionButton;
@property(nonatomic,retain)IBOutlet ZoomableImage *thumbImageView;
@property(nonatomic,retain)IBOutlet UILabel *statusLabel;
@end
큰 스크린 샷 링크를 제공하십시오. 현재 읽기에는 너무 작습니다. – Nikolay
마우스 오른쪽 버튼으로 클릭하고 새 탭에서 이미지 열기를 선택하십시오. :) –