How do we pass coordinate to tesseract so that we escape detection process and run only recognition using tesseract

52 views
Skip to first unread message

Purushotham Rao Eravalli

unread,
Sep 6, 2019, 2:25:16 AM9/6/19
to tesseract-ocr
How do we pass coordinate to tesseract so that we escape detection process and run only recognition using tesseract

Youcef

unread,
Sep 6, 2019, 5:09:33 AM9/6/19
to tesseract-ocr
Hi,

If you want to escape detection, I suppose it is because you have a single word in your image, right?
In that case, just launch resseract using page segmentation mode (psm parameter) into "single word mode", which corresponds to "psm=8" (see "tesseract --help-extra" for more details)

Purushotham Rao Eravalli

unread,
Sep 6, 2019, 5:17:55 AM9/6/19
to tesseract-ocr
Yes, basically I will have a single line of text like "Eravalli Purushotham Rao" in the cropped image. 
Can you provide any link for the solution

Ravi Annaswamy

unread,
Sep 6, 2019, 5:43:37 AM9/6/19
to tesser...@googlegroups.com
If I understand correctly, you want to do the segmentation into blocks or lines and then send only those panels to teeseract?

If that is the case you can export panels into separate images and run tesseract on them.

Ravi

Sent from my iPhone

On Sep 6, 2019, at 2:25 AM, Purushotham Rao Eravalli <purus...@sukshi.com> wrote:

How do we pass coordinate to tesseract so that we escape detection process and run only recognition using tesseract

--
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/dc8a9130-41e0-4898-aaf6-38183051014c%40googlegroups.com.

Purushotham Rao Eravalli

unread,
Sep 6, 2019, 6:18:59 AM9/6/19
to tesser...@googlegroups.com
Will it still do detection for that passed seented image or does it run recognition directly?

Timothy Snyder

unread,
Sep 6, 2019, 9:07:50 AM9/6/19
to tesser...@googlegroups.com
If you're doing recognition on a single line of text, use --PSM 13 or --PSM 7.

They're both for single line images but I've had highest accuracy using 13 over 7.

Purushotham Rao Eravalli

unread,
Sep 6, 2019, 9:09:56 AM9/6/19
to tesser...@googlegroups.com
Thank you, will try 13 and see.


Reply all
Reply to author
Forward
0 new messages