I need to compare and rank (give a score) drawings made by a mechanical device: An ideal rectangle would get the score of 100%, and an arbitrary image would get (say) 10%. See attached examples of drawings I want to rank. The next step of this project would be to modify the device and compare the drawings' grades before and after the modification.
Any ideas? techniques?