--
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 tesseract-ocr+unsubscribe@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
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/28da1809-a51b-4918-a375-99ca6cd9c713%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
So I must set the variable "tessedit_create_pdf" at true, but how ? I do not find the setter.
Thanks
--
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 tesseract-ocr+unsubscribe@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
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/96eb6abc-795a-4630-aeae-5cb9fa82386b%40googlegroups.com.
#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;
}
--
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 tesseract-ocr+unsubscribe@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
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.