File "/home/cerelabs/puneet/phocnet-master/lib/python2.7/site-packages/phocnet/io/word_container.py", line 71, in get_word_image
img = img[ul[1]:ul[1]+wh[1], ul[0]:ul[0]+wh[0]]
TypeError: 'NoneType' object has no attribute 'getitem'
The error means, that you tried to load an image but the loading function returned None. Have you debugged your code to see whether the image path you supplied is correct?
File "/home/cerelabs/puneet/phocnet-master/lib/python2.7/site-packages/phocnet/io/word_container.py", line 71, in get_word_image img = img[ul[1]:ul[1]+wh[1], ul[0]:ul[0]+wh[0]] TypeError: 'NoneType' object has no attribute 'getitem'