make a copy

This commit is contained in:
Blake Blackshear 2020-01-09 06:49:39 -06:00
parent 16f7a361c3
commit 76c8e3a12f

View File

@ -58,7 +58,7 @@ class RegionRequester(threading.Thread):
frame_time = self.camera.frame_time.value frame_time = self.camera.frame_time.value
# grab the current tracked objects # grab the current tracked objects
tracked_objects = self.camera.object_tracker.tracked_objects.values() tracked_objects = self.camera.object_tracker.tracked_objects.values().copy()
with self.camera.regions_in_process_lock: with self.camera.regions_in_process_lock:
self.camera.regions_in_process[frame_time] = len(self.camera.config['regions']) self.camera.regions_in_process[frame_time] = len(self.camera.config['regions'])