--
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-oc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/ce951ed6-f309-419c-a914-70b39dc93b54%40googlegroups.com.
Set parameter debug_file to /dev/null (or some filename, where you can check warning from tesseract)Zdenko
ut 8. 10. 2019 o 12:57 MPursche <purs...@gmail.com> napísal(a):
Hello!--
I have a use-case for Tesseract where I'm not always 100% sure that there is text in the image I try to do OCR on. When it runs and gets to one of these images it prints "Empty page!!" to the console which interferes with the user experience a lot.
I did some searching and I found this: https://github.com/tesseract-ocr/tesseract/wiki/FAQ#how-can-i-make-the-error-messages-go-to-tesseractlog-instead-of-stderr
However, I am using Tesseract as a library, not as a command line tool. Can I mute this behaviour from code?
I would prefer to modify my usage of libtesseract rather than make changes of libtesseract directly if possible since I am using a wrapper for C#, but if I have to I will compile my own libtesseract.dll.
I already tried redirecting Console.Out and Console.Error before making my calls to libtesseract but it didn't help.
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 tesser...@googlegroups.com.
--
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-oc...@googlegroups.com.
Hi,I suspect what you are using is not a real api bindings but more of a command line wrapper. This is very slow and inconvenient to use.I would simply use the API, probably even the plain tesseract libs as you are using C#. The API does not write anything to the console.Lorenzo
Il giorno mar 8 ott 2019 alle ore 12:57 MPursche <purs...@gmail.com> ha scritto:
Hello!--
I have a use-case for Tesseract where I'm not always 100% sure that there is text in the image I try to do OCR on. When it runs and gets to one of these images it prints "Empty page!!" to the console which interferes with the user experience a lot.
I did some searching and I found this: https://github.com/tesseract-ocr/tesseract/wiki/FAQ#how-can-i-make-the-error-messages-go-to-tesseractlog-instead-of-stderr
However, I am using Tesseract as a library, not as a command line tool. Can I mute this behaviour from code?
I would prefer to modify my usage of libtesseract rather than make changes of libtesseract directly if possible since I am using a wrapper for C#, but if I have to I will compile my own libtesseract.dll.
I already tried redirecting Console.Out and Console.Error before making my calls to libtesseract but it didn't help.
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 tesser...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/f93c2796-416b-4b75-8332-0589a4a81ef3%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAMgOLLxv2TE8e13fJuL-m6eqxa06ntcoLEi7EeK_HmqoqSx%3DqQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8yT1Hp%2B92Va1c3dXmkZMxgZMwa2K%2B1jdd2fH2MuJCUMtA%40mail.gmail.com.