Browse Source

fix detector cleanup

Blake Blackshear 4 năm trước cách đây
mục cha
commit
0280610e96
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      detect_objects.py

+ 1 - 1
detect_objects.py

@@ -312,7 +312,7 @@ def main():
                 shm.close()
                 shm.unlink()
 
-        for detector in detectors:
+        for detector in detectors.values():
             detector.stop()
         for shm in camera_shms:
             shm.close()