From 2a009d8d47ee01a314e62ad9330815e9348a9771 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 8 Feb 2019 23:09:58 +0100 Subject: [PATCH] updates --- detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detect.py b/detect.py index 24cbfa02..5428328d 100755 --- a/detect.py +++ b/detect.py @@ -106,7 +106,7 @@ def detect( if save_images: # Save generated image with detections - cv2.imwrite(results_img_path.replace('.bmp', '.jpg').replace('.tif', '.jpg'), img) + cv2.imwrite(results_img_path, img) print(' Done. (%.3fs)' % (time.time() - t))