Beispiel #1
0
def create_distance_matrix(data):
    BoundingBoxes = convert_to_bboxes(data)
    distance_array = []
    for i in BoundingBoxes:
        row = []
        for j in BoundingBoxes:
            row.append(landmark.bb_to_bb_distance(i, j))
        distance_array.append(row)
    return distance_array
Beispiel #2
0
def create_distance_matrix(data):
    BoundingBoxes = [o.representation.rect for o in data]
    distance_array=[]
    for i in BoundingBoxes:
        row = []
        for j in BoundingBoxes:
            row.append(landmark.bb_to_bb_distance(i,j))
        distance_array.append(row)
    return distance_array
def create_distance_matrix(data):
    BoundingBoxes = convert_to_bboxes(data)
    distance_array=[]
    for i in BoundingBoxes:
        row = []
        for j in BoundingBoxes:
            row.append(landmark.bb_to_bb_distance(i,j))
        distance_array.append(row)
    return distance_array