Group Abstract Group Abstract

Message Boards Message Boards

0
|
11.1K Views
|
7 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Segmenting Rectangles

Does anyone know how to take a Banalized Image that has a table with handwritten data in it, and identify and segment the rectangles formed by each cell in the table? I have the other parts of the problem solved, but am having trouble figuring out how to feature detect the rectangles. Thanks for your help. Rod Shankle

Attachments:
POSTED BY: William Shankle
7 Replies
Posted 11 years ago
POSTED BY: Gustavo Delfino
Posted 12 years ago

William, I did not get that error, but I haven't had time to see what is going on. In the meanwhile, I am attaching a more complete notebook with my related work. I started preparing it for presenting it at a WTC but then I had to move and I couldn't go. So the last part of the notebook is not too well explained and some sections may still be in Spanish.

Attachments:
POSTED BY: Gustavo Delfino
Attachments:
POSTED BY: William Shankle
Posted 12 years ago

I have some experience detecting tables of specific proportions. You may find this information useful: http://mathematica.stackexchange.com/questions/13918/detecting-grid-lines-in-a-raster-image

POSTED BY: Gustavo Delfino
Attachments:
POSTED BY: William Shankle

dear Marco Thank you very much. I will try this out and let you know how it works. Sinbcdrely Rod

POSTED BY: William Shankle

Hi there,

I haven't had much time, but just to get the discussion going, this finds the boxes and colours them.

img = Import["~/Desktop/TestForm.jpg"];
SelectComponents[MorphologicalComponents[Binarize[ColorNegate@ImageResize[img, 800]]], "Rectangularity", # > 0.7 &] // Colorize

enter image description here

I have resized the image; note that the boxes in the first row, are often split into two parts because the "tick" cuts them into two.

Cheers,

Marco

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard