AttributeError: 'NoneType' object has no attribute 'shape'
Closed this issue · 0 comments
Demo for test_images/0044000030667_1.jpg
Traceback (most recent call last):
File "detection.py", line 141, in
main()
File "detection.py", line 138, in main
print(detect(args.image, args.debug))
File "detection.py", line 62, in detect
text_blob_list = text_detection(cropped_image)
File "/content/drive/My Drive/STY/off-nutrition-table-extractor/nutrition_extractor/text_detection.py", line 80, in text_detection
img, scale = resize_im(img, scale=TextLineCfg.SCALE, max_scale=TextLineCfg.MAX_SCALE)
File "/content/drive/My Drive/STY/off-nutrition-table-extractor/nutrition_extractor/text_detection.py", line 29, in resize_im
f = float(scale) / min(im.shape[0], im.shape[1])
AttributeError: 'NoneType' object has no attribute 'shape'