def draw_boxes(image, boxes, scores=None, drop_score=0.5):
    if (scores is None):
        scores = ([1] * len(boxes))
    for (box, score) in zip(boxes, scores):
        if (score < drop_score):
            continue
        box = np.reshape(np.array(box), [(- 1), 1, 2]).astype(np.int64)
        image = cv2.polylines(np.array(image), [box], True, (255, 0, 0), 2)
    return image
def draw_boxes(image, boxes, scores=None, drop_score=0.5):
    if (scores is None):
        scores = ([1] * len(boxes))
    for (box, score) in zip(boxes, scores):
        if (score < drop_score):
            continue
        box = np.reshape(np.array(box), [(- 1), 1, 2]).astype(np.int64)
        image = cv2.polylines(np.array(image), [box], True, (255, 0, 0), 2)
    return image