Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Recognition & detection of components connected by a line

Hello everyone!

Firstly I would like to apologize for the images, but I do not have enough karma to put the links nor to upload them.

Now this is something I've been trying to do for a while without real success and I would really appreciate help. I have a binary image with few components connected with lines. An example would be something like this:

http : // i . imgur . com / y33d5X1 . jpg

What I need is to recognize all the components (in this example squares, triangles and circles) and how are they connected so the end result would be getting the coordinates of every component and every line so i can recreate it later if necessary.

My thinking is to recognize all the components first and lines later, so I would get something like this:

http : // i . imgur . com / 4lutNd1 . jpg

Then I easily store the coordinates and remove them from the picture and I get only lines:

http : // i . imgur . com / y21ZMLK . jpg

And this part could be done with probabilistic HoughLines to get all the lines (all 10 of them).


So what I need help with is the way to go with the first part. How do I recognize my components? What is a good approach to this problem?

I would really appreciate any hint for solving this problem.

Recognition & detection of components connected by a line

Hello everyone!

Firstly I would like to apologize for the images, but I do not have enough karma to put the links nor to upload them.

Now this is something I've been trying to do for a while without real success and I would really appreciate help. I have a binary image with few components connected with lines. An example would be something like this:

http : // i . imgur . com / y33d5X1 . jpgimage description

What I need is to recognize all the components (in this example squares, triangles and circles) and how are they connected so the end result would be getting the coordinates of every component and every line so i can recreate it later if necessary.

My thinking is to recognize all the components first and lines later, so I would get something like this:

http : // i . imgur . com / 4lutNd1 . jpgimage description

Then I easily store the coordinates and remove them from the picture and I get only lines:

http : // i . imgur . com / y21ZMLK . jpgimage description

And this part could be done with probabilistic HoughLines to get all the lines (all 10 of them).


So what I need help with is the way to go with the first part. How do I recognize my components? What is a good approach to this problem?

I would really appreciate any hint for solving this problem.

Recognition & detection of components connected by a line

Hello everyone!

Firstly I would like to apologize for the images, but I do not have enough karma to put the links nor to upload them.

Now this is something I've been trying to do for a while without real success and I would really appreciate help. I have a binary image with few components connected with lines. An example would be something like this:

image description

What I need is to recognize all the components (in this example squares, triangles and circles) and how are they connected so the end result would be getting the coordinates of every component and every line so i can recreate it later if necessary.

My thinking is to recognize all the components first and lines later, so I would get something like this:

image description

Then I easily store the coordinates and remove them from the picture and I get only lines:

image description

And this part could be done with probabilistic HoughLines to get all the lines (all 10 of them).


So what I need help with is the way to go with the first part. How do I recognize my components? What is a good approach to this problem?

I would really appreciate any hint for solving this problem.