, , . , , , , .
from PIL import Image,ImageDraw,ImageFont
import os
imgFile = "frame_0.jpg"
output = "frame_edit_0.jpg"
font = ImageFont.truetype("arial.ttf", 30)
text = "SEQ_00100_SHOT_0004_FR_0001"
textColor = 'white'
shadowColor = 'black'
outlineAmount = 3
img = Image.open(imgFile)
draw = ImageDraw.Draw(img)
imgWidth,imgHeight = img.size
txtWidth, txtHeight = draw.textsize(text, font=font)
x = imgWidth - txtWidth - 100
y = imgHeight - txtHeight - 100
for adj in range(outlineAmount):
draw.text((x-adj, y), text, font=font, fill=shadowColor)
draw.text((x+adj, y), text, font=font, fill=shadowColor)
draw.text((x, y+adj), text, font=font, fill=shadowColor)
draw.text((x, y-adj), text, font=font, fill=shadowColor)
draw.text((x-adj, y+adj), text, font=font, fill=shadowColor)
draw.text((x+adj, y+adj), text, font=font, fill=shadowColor)
draw.text((x-adj, y-adj), text, font=font, fill=shadowColor)
draw.text((x+adj, y-adj), text, font=font, fill=shadowColor)
draw.text((x,y), text, font=font, fill=textColor)
img.save(output)
print 'Finished'
os.startfile(output)