コード例 #1
0
 def final_pass(self, frames: List[LabeledFrame]):
     """Called after tracking has run on all frames to do any post-processing."""
     if self.cleaner:
         print(
             "DEPRECATION WARNING: "
             "--clean_instance_count is deprecated (but still applied to "
             "clean results *after* tracking). Use --target_instance_count "
             "and --pre_cull_to_target instead to cull instances *before* "
             "tracking.")
         self.cleaner.run(frames)
     elif self.target_instance_count and self.post_connect_single_breaks:
         connect_single_track_breaks(frames, self.target_instance_count)
コード例 #2
0
 def run(self, frames: List[LabeledFrame]):
     cull_instances(frames, self.instance_count, self.iou_threshold)
     connect_single_track_breaks(frames, self.instance_count)