'how to calculate and plot "precision recall curve" in MATLAB/Python for correlation based Object tracker?

I have 2 text files. One contains ground truths while the other contains predicted bounding box values. I want to plot precision recall curve using the data of these two files. I shall be very thanksful to you if you could help me.

thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source