I have a OCR application. I’m using the tesseract api library for my app. But when i run the application, it will show the error (error: ISO C++ forbids declaration of ‘TessBaseAPI’ with no type?).
Here is myt.
@interface OCRViewController : UIViewController <UIImagePickerControllerDelegate,UINavigationControllerDelegate>{
UIImagePickerController *imagePickerController;
//Getting error in this line.
TessBaseAPI *tess;
UIImageView *iv;
UILabel *label;
}
You’ll have to add the tesseract namespace, either with:
or: