1. A method performed by one or more computing devices for detecting cracks in an electronic device, the method comprising: receiving an image of an electronic device; automatically identifying a plurality of edges in the image; for individual edges among the identified edges, determining whether another edge among the identified edges is present within a predetermined distance of each of the individual edges; automatically identifying straight line segments corresponding to the individual edges for which another edge is within the predetermined distance; and evaluating a condition of the electronic device based at least in part on the number of identified straight line segments.