def METHOD_NAME(gt_file, img_info):
    """Collect the annotation information.
    Args:
        gt_file (str): The path to ground-truth
        img_info (dict): The dict of the img and annotation information
    Returns:
        img_info (dict): The dict of the img and annotation information
    """
    annotation = mmengine.load(gt_file)
    anno_info = []
    for form in annotation['form']:
        for ann in form['words']:
            # Ignore illegible samples
            if len(ann['text']) == 0:
                continue
            x1, y1, x2, y2 = ann['box']
            x = max(0, min(math.floor(x1), math.floor(x2)))
            y = max(0, min(math.floor(y1), math.floor(y2)))
            w, h = math.ceil(abs(x2 - x1)), math.ceil(abs(y2 - y1))
            bbox = [x, y, x + w, y, x + w, y + h, x, y + h]
            word = ann['text']
            anno = dict(bbox=bbox, word=word)
            anno_info.append(anno)
    img_info.update(anno_info=anno_info)
    return img_info