I have a working iOS code using tesseract. I would like to create html 
using the hocr config option. I cannot find an example of how to generate 
html programmatically. Is there any sample code/tutorial around? I'm using 
Xcode 5 and the latest Tesseract-ios.

- (NSString *)OCRPage:(NSString *)imagePath { //NSLog(@"imagePath: %@", 
imagePath); Tesseract* tesseract = [[Tesseract alloc] 
initWithDataPath:@"tessdata" language:@"eng"]; [tesseract setImage:[UIImage 
imageNamed:imagePath]]; [tesseract recognize];

//NSLog(@"%@", [tesseract recognizedText]);NSString *textData=[tesseract 
recognizedText];
UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, 
[tesseract recognizedText]);return textData;

}

Also, the use of the config file is unclear. I don't have a configs 
directory off of the tesseractdata path.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to