How to find rectangle shape in this image using python?
<p><a href="https://i.stack.imgur.com/nAQBs.jpg" rel="nofollow noreferrer">enter image description here</a>can you help me to segment rectangular objects in this image, tried otsu but it is not working because background and forground have same values.</p>

<p>is there any other method to do the same.</p>

<p>Can somebody please tell me how to find a rectangle object in these images?
Images are results of canny edge detection. Actually I want to track these rectangles in a video, if you know how to do it please tell me.
OR at least I want to find whether a rectangle is present or not. <a href="https://i.stack.imgur.com/Q6ELg.jpg" rel="nofollow noreferrer">enter image description here</a></p>