def gen_captcha_text_image(self, img_name):
    '\n        返回一个验证码的array形式和对应的字符串标签\n        :return:tuple (str, numpy.array)\n        '
    label = img_name.split('_')[0]
    img_file = os.path.join(self.img_path, img_name)
    captcha_image = Image.open(img_file)
    captcha_array = np.array(captcha_image)
    return (label, captcha_array)
返回一个验证码的array形式和对应的字符串标签
:return:tuple (str, numpy.array)
def gen_captcha_text_image(self, img_name):
    '\n        返回一个验证码的array形式和对应的字符串标签\n        :return:tuple (str, numpy.array)\n        '
    label = img_name.split('_')[0]
    img_file = os.path.join(self.img_path, img_name)
    captcha_image = Image.open(img_file)
    captcha_array = np.array(captcha_image)
    return (label, captcha_array)