def get_frame_index(d):
    """Get frame index from the whole dictionary
    E.g.,
    '{'index': 'data/Deploy/KLAC/KLAC0570/KLAC0570_12.jpg', 'prediction': ..., 'label': ...}'
    ==>  (int) 12
    """
    return int(d['index'].split('_')[-1][:-4])