def add_id(pos_list, image_id=0):
    """
    Add id for gather feature, for inference.
    """
    new_list = []
    for item in pos_list:
        new_list.append((image_id, item[0], item[1]))
    return new_list
Add id for gather feature, for inference.
pytorchocr/utils/e2e_utils/extract_textpoint_slow.py