123456789101112131415from PIL import Imagefrom PIL import ImageFontfrom PIL import ImageDrawfont = ImageFont.truetype("arial.ttf", 36)img = Image.open(imgpath)draw = ImageDraw.Draw(imagebak)text = "result"draw.text((50,50),text,font=font)savepath = "D:\\user\\Projects\\Efficientnet\\efficientNet\\data\\dst.bmp" imagebak.save(savepath)