Visual perception in people and machines