CAPTCHA is a security technology that presents test to tell computers and humans apart. Nowadays the most widely deployed CAPTCHAs are text-based schemes, which rely on sophisticated distortion of text images aimed at rendering them unrecognizable to the state of the art of pattern recognition methods. Generally, the skeletonization of character is acknowledged as one of the most significant part in character recognition. In this paper, a depth-based approach is proposed in order to locate the skeleton point. Experiments show that the depth-based skeletonization scheme is applicable to the widely used CAPTCHA images, and the skeleton is robust against rotated, distorted or conglutinated characters.