Baseline detection

144 views
Skip to first unread message

Paul

unread,
Mar 5, 2012, 4:08:11 PM3/5/12
to tesseract-ocr
I know that Tesseract calculates baseline information during the
recognition process.

Is there a way to extract information about the coordinates of the
baselines (and maybe about the parallel lines that have been detected,
too)?

I want to write these information to a file, so that I can draw the
detected baselines on the scanned image.

Paul

unread,
Mar 16, 2014, 7:37:28 AM3/16/14
to tesser...@googlegroups.com
Nobody cares.

zdenko podobny

unread,
Mar 16, 2014, 8:48:22 AM3/16/14
to tesser...@googlegroups.com
You can get it from ResultIterator e.g. you create result iterator (tesseract::ResultIterator* ri = api->GetIterator()) and then in loop you retrieve information about e.g. line baseline with ri->Baseline(tesseract::RIL_TEXTLINE, &x1, &y1, &x2, &y2);

There was full example in issue 384[1], but it looks like attachment is truncated to zero for closed (old?) issue.



Zdenko


On Sun, Mar 16, 2014 at 12:37 PM, Paul <pa...@vorb.de> wrote:
Nobody cares.

--
--
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to tesser...@googlegroups.com
To unsubscribe from this group, send email to
tesseract-oc...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

---
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.
For more options, visit https://groups.google.com/d/optout.

Paul

unread,
May 19, 2014, 9:46:00 AM5/19/14
to tesser...@googlegroups.com
Thanks a lot!

Paul
Reply all
Reply to author
Forward
0 new messages