make a copy

This commit is contained in:
Blake Blackshear 2020-01-09 06:49:39 -06:00
parent 3d419a39a8
commit 02e1035826

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'])