def _collide_heavily(box, boxs): for it in boxs: if get_rectangle_intersect_ratio( box[0], box[1], it[0], it[1]) > self.max_intersec_ratio: return True return False
def checkCurrBboxOverlap(currBox, allOtherBoxes): for box in allOtherBoxes: if util.get_rectangle_intersect_ratio( currBox[0], currBox[1], box[0], box[1]) > self.maxIntersectRatio: return True return False