diff --git a/detect_objects.py b/detect_objects.py index c3bdc04ef..015c85ece 100644 --- a/detect_objects.py +++ b/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()