Thank you but it still doesn't work...
Can someone just tell me what should be add to this code to generate a PDF
output ?
#include <tesseract/baseapi.h>
#include <leptonica/allheaders.h>
int main()
{
fprintf(stderr, "Heyhey !\n");
char * outText;
tesseract::TessBaseAPI *api = new tesseract::TessBaseAPI();
if (api->Init(NULL, "fra")) {
fprintf(stderr, "Could not initialize tesseract.\n");
exit(1);
}
Pix * image = pixRead("/path/test.tif");
api->SetImage(image);
outText = api->GetUTF8Text();
printf("OCR output:\n%s", outText);
api->End();
delete [] outText;
pixDestroy(&image);
return 0;
}
Thanks a lot
--
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].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/9110d5a3-71f4-4f50-ab24-5bfc5164c50e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.