From f9028e8eea5116e71abf41afb7bb39d29d8e4c29 Mon Sep 17 00:00:00 2001 From: gocivici Date: Fri, 27 Oct 2023 15:03:11 +0300 Subject: [PATCH] added specific folder to save photos --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 0310582..1e98952 100644 --- a/main.py +++ b/main.py @@ -72,7 +72,7 @@ if cam.isOpened(): imgGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) imgGray = cv2.equalizeHist(imgGray) cv2.imwrite('scared.jpg', imgGray) - cv2.imwrite("Fear_{}.jpg".format(cur),img) + cv2.imwrite("/home/gogo/Desktop/Photos/Fear_{}.jpg".format(cur),img) img = cv2.cvtColor(img,cv2.COLOR_BGR2RGB) img = Image.fromarray(img) draw = ImageDraw.Draw(img)