Tesseract-ocr in quiet mode

165 views
Skip to first unread message

nor s

unread,
Jul 23, 2023, 9:55:50 AM7/23/23
to tesseract-ocr
Is there a way to have Tesseract run without producing a Dos window? I'm incorporating a call to Tesseract-ocr in my VB.net application to read some date info from an image. Each time I  execute Tesseract I get a dos window popping up.  I'm on windows 10 and Tesseract 5.0
Thanks
 Nor

Zdenko Podobny

unread,
Jul 23, 2023, 10:02:23 AM7/23/23
to tesser...@googlegroups.com
It is not a tesseract problem but the VB. Prove for this you can find in pytesseract that call tesseract executable without console windows.

Zdenko


ne 23. 7. 2023 o 15:55 nor s <njsg...@gmail.com> napísal(a):
Is there a way to have Tesseract run without producing a Dos window? I'm incorporating a call to Tesseract-ocr in my VB.net application to read some date info from an image. Each time I  execute Tesseract I get a dos window popping up.  I'm on windows 10 and Tesseract 5.0
Thanks
 Nor

--
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/069f46f9-0000-4b71-85f8-62dd28b77702n%40googlegroups.com.

astro

unread,
Jul 23, 2023, 10:15:04 AM7/23/23
to tesser...@googlegroups.com
Hi Zdenko
THanks for that reply. I wasn't sure if that was the case or not. Guess I just have to live with it.

Cheers
 NOr

astro

unread,
Jul 23, 2023, 10:25:45 AM7/23/23
to tesser...@googlegroups.com
HI,
 Just found the solution. Here is a code snippet in case anyone is interested.

Dim p as New ProcessStartInfo(@"command", args)
p.WindowStyle = ProcessWindowStyle.Hidden
p.CreateNoWindow = true
Process.Start(p)

Cheers 
Nor
Reply all
Reply to author
Forward
0 new messages