Ejemplo n.º 1
0
 def __init__(self, image, labelpath):
     self.image = image
     self.labelpath = labelpath
     self.labeled_pts = []
     if os.path.exists(labelpath):
         self.load(labelpath)
     self.rad = 2
     ZoomWindow.__init__(self,name="Labeler",update_period=100, zoom_out=2 )
Ejemplo n.º 2
0
 def __init__(self, image, label_vals, label_colors, labelpath):
     self.image = image
     self.labelpath = labelpath
     self.labeled_bbs = []
     if os.path.exists(labelpath):
         self.load(labelpath)
     self.label_vals = label_vals
     self.label_colors = label_colors
     self.cur_label_idx = 0
     self.cur_pt = (0,0)
     self.temp_bb = None
     self.select_mode = CREATE
     self.selected_bb = -1
     ZoomWindow.__init__(self,name="Labeler",update_period=100 )