forked from Github/frigate
Add area labels to bounding boxes (#47)
* Add object size to the bounding box Remove script from Dockerfile Fix framerate command Move default value for framerate update dockerfile dockerfile changes Add person_area label to surrounding box Update dockerfile ffmpeg config bug Add `person_area` label to `best_person` frame Resolve debug view showing area label for non-persons Add object size to the bounding box Add object size to the bounding box * Move object area outside of conditional to work with all object types
This commit is contained in:
committed by
Blake Blackshear
parent
8fee8f86a2
commit
c653567cc1
@@ -81,7 +81,7 @@ class BestPersonFrame(threading.Thread):
|
||||
if not self.best_person is None and self.best_person['frame_time'] in recent_frames:
|
||||
best_frame = recent_frames[self.best_person['frame_time']]
|
||||
|
||||
label = "{}: {}%".format(self.best_person['name'],int(self.best_person['score']*100))
|
||||
label = "{}: {}% {}".format(self.best_person['name'],int(self.best_person['score']*100),int(self.best_person['area']))
|
||||
draw_box_with_label(best_frame, self.best_person['xmin'], self.best_person['ymin'],
|
||||
self.best_person['xmax'], self.best_person['ymax'], label)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user