I am trying to count the number of squares in an image but landing with the wrong answer.
I followed this opencv squares
My result :
This is counting 226 squares.
I am getting random answers after each operation. Is there any efficient way to solve this problem.