Measuring the accuracy of the detection algorithm using IOU