from pathlib import Path
import pickle


def get_detections(detections_pickle: Path) -> dict:
    """
    Get data from detections pickle file
    """
    with open(detections_pickle, 'rb') as f:
        data = pickle.load(f)
    return data