I have some problems to find an algorithm to arrange the text instances (bboxes) obtained after using text spotting algorithm on images. My first idea was to iterate through