Code covered by the BSD License
image2text('mess1.jpg','cont.txt') text2image('cont.txt','mess2.jpg')
Contact us at files@mathworks.com