Build it yourself - read tesseract wiki about possibilities. Zdenko
so 26. 10. 2019 o 19:02 Ivica Anic <[email protected]> napĂsal(a): > Zdenko: > can you please to say me exactly URL where I can to download > tesseract.libs , leptonica.libs (and .dll's) and tessdata > > Am Freitag, 25. Oktober 2019 16:35:14 UTC+2 schrieb Ivica Anic: >> >> Hi, >> I am testing the Tesseract C++ API (4.1 Version). >> Here is my code: >> >> >> char *datapath = "C:\\Temp\\tessdata-master"; >> string language_ = "deu"; >> string inputFile_ = "./input.png"; >> tesseract::TessBaseAPI *api100 = new tesseract::TessBaseAPI(); >> if (api100->Init(datapath, "deu", tesseract::OEM_LSTM_ONLY)) { >> fprintf(stderr, "Could not initialize tesseract.\n"); >> exit(1); >> } >> >> >> api100->SetVariable("tessedit_create_pdf", "T"); >> //png File is input file >> PIX *sourceImg100 = pixRead(inputImage.c_str()); >> >> api100->SetImage(sourceImg100); >> >> >> api100->Recognize(0); >> >> api100->SetPageSegMode(tesseract::PSM_AUTO_ONLY); >> api100->SetInputName(inputImage.c_str()); >> tesseract::TessResultRenderer *renderer100 = new >> tesseract::TessPDFRenderer("output_base", api100->GetDatapath(),false); >> >> renderer100->BeginDocument("test"); >> renderer100->AddImage(api100); >> api100->ProcessPage(sourceImg100, 0, inputImage.c_str(), NULL, 5000, >> renderer100); >> renderer100->EndDocument(); >> api100->End(); >> pixDestroy(&sourceImg100); >> >> how can I get a searchable PDF file output and save it on my >> computer ? >> I mean, exactly like the command line : tesseract test.tif output >> pdf >> >> Zdenko: >> by my test one output pdf File is created,but pdf file is not >> readable >> if I try to open pdf File it is comming Error XREF-Data in >> pdf-file are missing >> >> >> >> >> 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 view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/eb55e66e-6b72-4f55-aa40-d4daae4a94d3%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/eb55e66e-6b72-4f55-aa40-d4daae4a94d3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8yOSQSHFGwQ4VgPNffQz4Gya38E3hmHJL6MCAf-A9-oaQ%40mail.gmail.com.

