Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Saturday, November 20, 2010 7:39:55 PM(UTC)
xjgs_xhj

Groups: Registered
Posts: 21


I try to redraw a grid from the OCR table.So how to get starting and ending point of a line?
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, November 21, 2010 5:10:01 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

I'm not sure what you are trying to do exactly. How are you trying to redraw a line in an image? Are you trying to do this on the image before recognizing it or after? Please give me more details.
 
#3 Posted : Sunday, November 21, 2010 1:52:42 PM(UTC)
xjgs_xhj

Groups: Registered
Posts: 21


After recognizing,I try to make a new grid in my image same as the one in source OCR document.
 
#4 Posted : Monday, November 22, 2010 4:46:57 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

I'm afraid I sill don't know what you're trying to do.
After recognizing, you will have recognition results. If you save them to disk or memory, you will have some sort of document file, but you will probably not be still dealing with images. So what exactly do you mean "new grid in my image"? Do you want to modify the original image (bitmap)? If yes, how is this related to OCR?
If you're trying to modify the output document, what is the output format you saved the recognition result to?
 
#5 Posted : Monday, November 22, 2010 6:43:08 PM(UTC)
xjgs_xhj

Groups: Registered
Posts: 21


After I get all OCR text results of a table,I create another new blank image and try to put all OCR text results and a new table grid in it.The new table grid has same layout and style as the source one.I just want to manage all elements (text/grid/line) in my new image,not just an 'IMAGE' .
 
#6 Posted : Tuesday, November 23, 2010 7:00:42 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Do you mean you want a function in our toolkit that returns the lines of the table grid?
If yes, you can use the AutoZoningCommand Class, which can return table data including locations of rows, columns and cells in the table.

Please check it and if it doesn't do what you want explain more about the requirements and what is different from this class.
 
#7 Posted : Tuesday, November 23, 2010 11:28:30 PM(UTC)
xjgs_xhj

Groups: Registered
Posts: 21


I am finding a toolkit function or an alternative way to get a line's starting/ending Point object.Then I can draw a new table grid in a new image and fill it with OCR results to improve the poor source table grid quality.
 
#8 Posted : Wednesday, November 24, 2010 5:00:15 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Does this mean you solved the problem or not yet?
If not, please send me a sample image for which you're tying to locate the table grid lines and I will check if our toolkit can help you find these lines. If you send files, please put them in a ZIP or RAR file. You can post them here or send them to support@leadtools.com and mentions this forum post.

 
#9 Posted : Wednesday, November 24, 2010 2:23:56 PM(UTC)
xjgs_xhj

Groups: Registered
Posts: 21


Here's a good quality image.
File Attachment(s):
test.rar (592kb) downloaded 29 time(s).
 
#10 Posted : Thursday, November 25, 2010 6:21:46 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

I will test with this image and give you the results of my test. Please send an email to support@leadtools.com to follow up.
 
#11 Posted : Sunday, November 28, 2010 11:45:57 PM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

I created this sample project to detect table cells in an image and then used DrawRectangle to draw over the table cells.
I just needed to use DeskewCommand to straighten your image.
File Attachment(s):
AutoZoning.zip (22kb) downloaded 31 time(s).
 
#12 Posted : Tuesday, November 30, 2010 4:53:22 AM(UTC)
xjgs_xhj

Groups: Registered
Posts: 21


I'll test it.Thank you.
 
#13 Posted : Tuesday, November 30, 2010 5:14:39 AM(UTC)
xjgs_xhj

Groups: Registered
Posts: 21


Great Job.That's answer.
Thank you very much.

<BLOCKQUOTE><table width="85%"><tr><td class="txt4"><img src="/SupportPortal/CS/Themes/default/images/icon-quote.gif">&nbsp;<strong>Basel wrote:</strong></td></tr><tr><td class="quoteTable"><table width="100%"><tr><td width="100%" valign="top" class="txt4">I created this sample project to detect table cells in an image and then used DrawRectangle to draw over the table cells. <br>I just needed to use <span id="pagetitle">DeskewCommand </span>to straighten your image.<br></td></tr></table></td></tr></table></BLOCKQUOTE>
 
#14 Posted : Wednesday, December 22, 2010 1:30:06 PM(UTC)

Kousay  
Kousay

Groups: Registered
Posts: 6


If you are using the OCR Professional engine and LEADTOOLS v17, then you can use the new IOcrTableZoneManager class. It allows you to detect the cells of a table in a document and return information such as cell bounding rectangle, its background color, border line style (including no border), border thickness and color.

LEADTOOLS v17 uses this information to re-construct the tables in the output document (such as PDF or DOC) as faithfully as possible.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.153 seconds.