added specific folder to save photos

This commit is contained in:
gocivici 2023-10-27 15:03:11 +03:00
parent 4a73bb38ac
commit f9028e8eea

View File

@ -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)