Detection of foreign bodies in the hand