def MOTP_frame(pairs_num, distance, frame_id, gt_num, hp_num):
    """calculate MOTP of a frame

    params
    pairs_num: mapping pairs num for one frame
    distance:
    frame_id: id of frame which is processing
    gt_num: object num of ground truth
    hp_num: object num of hypothesis
    -----------
    return
    MOTP_frame: MOTP for a frame
    """
    MOTP_frame = distance / pairs_num
    return MOTP_frame