ssudholt / phocnet

BSD 3-Clause "New" or "Revised" License
38 stars 28 forks source link

TypeError: 'NoneType' object has no attribute '__getitem__' #3

Open puneetvaza opened 7 years ago

puneetvaza commented 7 years ago

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'

ssudholt commented 6 years ago

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?