I’m a bit stumped on this. Is there any clever way to detect rectangular shapes in a picture the user loads and get its x,y, width and size? There might be several rectangles in a picture, and each one should be detected. Also, if you have wierd shapes that consist of rectangles, those should be detected, too
What will it be? Black and white, color, only the frame of the rectangles or they will be filled, …
Can you post an example?
It might look like those images:
But I wouldnt mind specifying how they need to look…
Of course another idea… depending on how those shapes are created in the first place…
Just keep track of them as they are drawn/moved…
But if it is a external graphic image, that of course won’t be doable.
Interesting link! I’ll have a in-depth look at it!
Have a look here. Real basic code. It might not run immediately in 2013 4.1 but I’m sure you can use the code. It’s in the ‘drag demo’.
Ahh… you use color detection… smart solution!