This is python version of det eval
Object count/Area Graphs for the Evaluation of Object Detection and Segmentation Algorithms
pip3 install cv2 numpy shapely
python3 det_eval.py
You can also import DetEval class in your code and write a subclass and over write prepare_data
method to adapt to your data stracture.