def __init__(self,filepath):
self.imgpath = filepath
self.fonts =[] #???????????
self.str = '' #??????????
binaryimg = 'wower_binary.png'
cutdir = './cutimgs/'
#????binary???cutimgs???
if os.path.exists(binaryimg):
os.remove(binaryimg)
if os.path.exists(cutdir) and os.path.isdir(cutdir):
for f in os.listdir(cutdir):
os.remove(cutdir+f)
# os.removedirs(cutdir)
#?????
else:
os.mkdir(cutdir)
#???????????
评论列表
文章目录