def get_images_path(file_path, image_root=''):
    """
    Get the path of origin images and annotated images.
    """
    assert os.path.isfile(file_path)

    images_path = []
    image_dir = os.path.dirname(file_path)

    with open(file_path, 'r') as f:
        for line in f:
            line = line.strip()
            origin_path, annot_path = line.split(" ")
            origin_path = os.path.join(image_root, origin_path)
            annot_path = os.path.join(image_root, annot_path)
            images_path.append([origin_path, annot_path])

    return images_path

    Get the path of origin images and annotated images.
    
contrib/QualityInspector/tools/dataset/visualize_annotation.py