Box for tracker instead of filled rectangle
This commit is contained in:
parent
55efb524b9
commit
a877e1cc12
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class Canvas:
|
|||
for i, field in enumerate(dataclasses.fields(self.params)):
|
||||
self.labels[field.name] = pyglet.text.Label(f"{field.name}: {field.default}", x=20, y=30 + 15*(i+1), color=(255,255,255,255), batch=self.renderer.batch_info)
|
||||
|
||||
self.track_shapes = defaultdict(lambda: pyglet.shapes.Rectangle(0,0,0,0,(0,255,0),batch=self.renderer.batch_bounding_boxes))
|
||||
self.track_shapes = defaultdict(lambda: pyglet.shapes.Box(0,0,0,0,color=(0,255,0),thickness=2, batch=self.renderer.batch_bounding_boxes))
|
||||
|
||||
self.renderer.window.set_handler('on_refresh', self.on_refresh)
|
||||
|
||||
|
|
Loading…
Reference in a new issue