Our team found success through looking at four values:
- The area as compared to convex area
- The perimeter as compared to the convex perimeter
- The plenimeter (Perimeter squared over area)
- The convex area compared to bounding box area
You can calculate what the ideal values should be, or they can be found by looking at our code at
https://github.com/FRC1458/turtleshe...eAnalyser.java. The first three help to ensure that the right shape is being recognised, and the final parameter work to make sure we are looking at a rectangle roughly, so the correct target will be identified.