def getOcr(filename):
#,config='-psm 10') option for single digit recognition
#return image_to_string(Image.open(filename),config="-psm 6") #5
#return image_to_string(Image.open(filename)) #3
#return image_to_string(Image.open(filename),config="-psm 7") #5
return image_to_string(Image.open(filename),config="-psm 8 digits") #4
评论列表
文章目录