I am trying to find a way to detect rectangles and squares in an image:
The problem is I can't find really any way to do it. I have researched a CIDetector that can do this but it seems like that is more for "real world examples" and not for an image like the one I uploaded.