Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I propose a different algorithm approach, after working almost a year with image processing algorithms what I can tell is that to create an efficient algorithm, you have to "reflect" how you, as a human would do that, here is the proposed approach:</p> <ol> <li><p>We don't really care about the textures, we care about the edges (rectangles are edges), therefore we will apply an Edge-detection>Difference (<a href="http://www.aforgenet.com/framework/docs/html/d0eb5827-33e6-c8bb-8a62-d6dd3634b0c9.htm">http://www.aforgenet.com/framework/docs/html/d0eb5827-33e6-c8bb-8a62-d6dd3634b0c9.htm</a>), this gives us: <img src="https://i.stack.imgur.com/N3lF7.png" alt="enter image description here"></p></li> <li><p>We want to exaggerate the walls, as humans we know that we are looking for the walls, but the computer does not know this, therefore, apply two rounds of Morphology>Dilatation (<a href="http://www.aforgenet.com/framework/docs/html/88f713d4-a469-30d2-dc57-5ceb33210723.htm">http://www.aforgenet.com/framework/docs/html/88f713d4-a469-30d2-dc57-5ceb33210723.htm</a>), this gives us: <img src="https://i.stack.imgur.com/ysfpi.png" alt="enter image description here"></p></li> <li><p>We care only about the what is wall and what is not, apply a Binarization>Threshold (<a href="http://www.aforgenet.com/framework/docs/html/503a43b9-d98b-a19f-b74e-44767916ad65.htm">http://www.aforgenet.com/framework/docs/html/503a43b9-d98b-a19f-b74e-44767916ad65.htm</a>), we get: <img src="https://i.stack.imgur.com/9d9Qn.png" alt="enter image description here"></p></li> <li><p>(Optional) We can apply a blob extraction to erase the labels ("QUARTO, BANHEIRO", etc)</p></li> <li><p>We apply a Color>Invert, this is just done because the next step detects the white color not black.</p></li> <li><p>Apply a Blob>Processing>Connected Components Labeling (<a href="http://www.aforgenet.com/framework/docs/html/240525ea-c114-8b0a-f294-508aae3e95eb.htm">http://www.aforgenet.com/framework/docs/html/240525ea-c114-8b0a-f294-508aae3e95eb.htm</a>), this will give us all the rectangles, like this:<img src="https://i.stack.imgur.com/EXeWf.png" alt="enter image description here"></p></li> </ol> <p>Note that for each colored box you have its coordinates, center, width and height. So you can extract a snip from the real image with that coordinates.</p> <p>PS: Using the program AForge Image Processing Lab is highly recommended to test your algos.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload