Text this: Detection of individual specimens in populations using contour energies