From 4be8c998b5d09820ca300cca4a58e60b94378746 Mon Sep 17 00:00:00 2001 From: gocivici Date: Fri, 27 Oct 2023 14:53:59 +0300 Subject: [PATCH] fixe cv2 error --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 1c1b8d0..8ee056a 100644 --- a/main.py +++ b/main.py @@ -43,7 +43,7 @@ if cam.isOpened(): if TIMER>0: draw.text((130, 300), str(TIMER), font=fontBIG,fill=(255,0,0,255)) else: - cv2.imwrite("Fear_{}.jpg".format(prev)) + cv2.imwrite("Fear_{}.jpg".format(prev),img) draw.text((30, 480), "ANALYZING...", font=fontSmall,fill=(255,0,0,255)) img = cv2.cvtColor(np.array(img), cv2.COLOR_RGB2BGR) img = cv2.rotate(img, cv2.ROTATE_90_CLOCKWISE)