在tesseract中找不到图书馆?

时间:2011-12-21 12:16:22

标签: ios4 ocr tesseract

我从https://github.com/rcarlsen/Pocket-OCR/downloads下载了“rcarlsen-Pocket-OCR-9912da9”的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

1 个答案:

答案 0 :(得分:-3)

我认为排错了(因为它是cpp)

#import "baseapi.h"

试试这个并手动输入分号!

#include "baseapi.h"

文件应为红色。