This is my original image
I have detected total 6 approximate squares
in this image shown below using cv2.findContours
if we count as seen on the detected image below with bounding box around them.
I checked this Contours Hierarchy
Tried out all the Hierarchy mentioned in the above link to get only 6
contours but least contour being detected is 10
I just need to detect squares
not the entire family 'GrandFather' GrandMother
Father
Mother
etc
Can anyone help me out here?