I am using Swift to detect squares on an image and I can\'t seem to get it to detect them. It seems to detect rectangles sometimes not sure if this is the correct approach. I am