tesseract_ocr_module.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:Spider_index 作者: DarkSand 项目源码 文件源码
def get_vcode_by_img_0(img):
    mutex.acquire(1)
    vcode = pytesseract.image_to_string(img, lang='numfont')
    if vcode == '':
        img = merge_thumb_0(img)
        vcode = pytesseract.image_to_string(img, lang='numfont')
        if vcode == '00':
            vcode = '0'
        else:
            vcode = vcode.strip('0')
    mutex.release()
    return vcode.replace(',', '').replace('\n', '')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号