2011-12-21 3 views
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 

enter image description here

+0

큰 스크린 샷 링크를 제공하십시오. 현재 읽기에는 너무 작습니다. – Nikolay

+2

마우스 오른쪽 버튼으로 클릭하고 새 탭에서 이미지 열기를 선택하십시오. :) –

답변

-3

나는

#import "baseapi.h" 

이 시도하고 수동으로 semicollons을 입력 라인에 misstake 생각!

#include "baseapi.h" 

파일의 색상은 적색이어야합니다.