hobbitsyfeet / PeopleTracker

PeopleTracker is an OpenCV Object Tracker that is used to collect data about something in a video. Here, it is used on people but has many other applications as well.
MIT License
3 stars 0 forks source link

Crash while exporting when tracking a certain way #15

Open hobbitsyfeet opened 3 years ago

hobbitsyfeet commented 3 years ago

Error Message:

line 1159, in tracker_list[selected_tracker].export_data(input_dialog.resolution_x, input_dialog.resolution_y, videoPath, vid_fps) line 389, in export_data total_time = self.get_time_tracked(vid_fps) line 113, in get_time_tracked total_time = [self.calculate_total_time(self.part_time_to_segments(list(sorted(self.data_dict.keys()))), framerate)] line 521, in part_time_to_segments total_segments = self.merge_intervals(total_segments) line 470, in merge_intervals merged = [total_segments[0]]

To Reproduce:

  1. Start a new tracker
  2. Make the tracker large so it only records 1 frame
  3. Export

AND

  1. Start a new tracker
  2. Make the tracker large so it only records 1 frame
  3. Scroll the video over until the late video
  4. Record another single frame
  5. Export

Results when time is tracked such as frames 0, 1000

Suspicion: merge intervals is receiving an empty list since no pairs are ever formed.