From 736da8cf07ae4a55748ae4040b5a1c07db5e3c54 Mon Sep 17 00:00:00 2001 From: vishwesh5 Date: Fri, 7 Sep 2018 13:41:51 +0530 Subject: [PATCH] Update object_detection_yolo.py --- ObjectDetection-YOLO/object_detection_yolo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ObjectDetection-YOLO/object_detection_yolo.py b/ObjectDetection-YOLO/object_detection_yolo.py index 16ef167..acc4ebd 100644 --- a/ObjectDetection-YOLO/object_detection_yolo.py +++ b/ObjectDetection-YOLO/object_detection_yolo.py @@ -137,6 +137,8 @@ while cv.waitKey(1) < 0: print("Done processing !!!") print("Output file is stored as ", outputFile) cv.waitKey(3000) + # Release device + cap.release() break # Create a 4D blob from a frame.