i have binary edged image, after applying houghline i have detected all lines in the image, after HoughLines i got following mask image:
after this , i applied convexhull to detect perfect shapes , the binary image i get after applying hull,
after this am trying to apply contouring , and detect shapes using approxPolyDP
, to find shapes with 4 sides, which will be square or rectangle, but as can be seen there is square approximately rectangular in shape, but as it's having 4 sides it's also detected as square, but i want to exclude these shapes , so any suggestions would be appreciated.