diff --git a/bounding_box_helpers.py b/bounding_box_helpers.py index e69de29..9e9cd4b 100644 --- a/bounding_box_helpers.py +++ b/bounding_box_helpers.py @@ -0,0 +1,11 @@ +import os +import numpy as np + + +def load_bounding_boxes(filepath): + with open(filepath,'r') as f: + text = f.read() + lines = text.split('\n') + boxes = np.array([line.split('\t')[:4] for line in lines if line],dtype=np.int32) + + return boxes \ No newline at end of file