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', '')
评论列表
文章目录