if IoU < threshold (e.g., 0.5):
the detection is a false positive
else:
the detection is a true positive
When the confidence score of a detection that is supposed to detect a ground-truth is lower than the threshold, the detection counts as a false negative (FN) [4].