I have this image:
And my goal is to separate the L-Shape as two different rectangles (the two who together make the L-Shape). With the long rectangle there is no problem because it is being detected as a contour. But with the wider rectangle it is a problem, because there is a space between two lines. Is there a solution for this matter?
I didn't write any code for it yet, so I cant post anything
Thanks in advance

