Square detection doesn’t find squares
The source code below presents a small variation of the Square Detector program. It’s not perfect, but it illustrates one way to approach your problem. You can diff this code to the original and check all the changes that were made, but the main ones are: Decrease the number of threshold levels to 2. In … Read more