Skip to content

Instantly share code, notes, and snippets.

View prachyboon's full-sized avatar
🦍
lets see

prachya prachyboon

🦍
lets see
View GitHub Profile
@AruniRC
AruniRC / bbox_iou_evaluation.py
Created February 22, 2018 16:10
Object detector util: match a set of detected bounding boxes and a set of ground-truth bounding boxes
from __future__ import division
import scipy.optimize
import numpy as np
def bbox_iou(boxA, boxB):
# https://www.pyimagesearch.com/2016/11/07/intersection-over-union-iou-for-object-detection/
# ^^ corrected.
# Determine the (x, y)-coordinates of the intersection rectangle
xA = max(boxA[0], boxB[0])