AdvancedLiterateMachinery
AdvancedLiterateMachinery copied to clipboard
Update text_detection.py
if in a whole document (e.g. pdf file) there is one page with picture and no text your existing pipeline fails because of empty "detection". so I am just returning tiny polygons - I bet there are better ways of handling it.
but for now it is a quick fix.