Training process automation

January 25, 2009 at 11:34 am (Uncategorized)

I am so excited.

#!/usr/local/bin/python 
#-*- coding:utf8 -*-
 importImageFont,ImageDraw 
fromPILimport Image

im = Image.new("RGB",(400,400))
#im.show()

draw = ImageDraw.Draw(im)

# use a truetype font
font= ImageFont.truetype("/usr/share/fonts/truetype/ttf-bengali-fonts/lohit_bn.ttf",50)

txt1="ক"
txt2=" ি"
txt=txt2+txt1

draw.text((10, 10), unicode(txt,'UTF-8'), font=font)
im.show()

generated:

That means the *entire* training+testing process can be automated :) :) :)

Damn, I dint even have to go to ISI. Ofcourse, going to ISI was quite an experience in itself, but more on that later.

Permalink 4 Comments