changed camera index to 0

This commit is contained in:
gocivici 2023-10-25 21:55:55 +03:00
parent dc57fa61f1
commit 2604e2d66d

View File

@ -12,7 +12,7 @@ from PIL import ImageFont
from deepface import DeepFace #pip install deepface
button = Button(2)
cam = cv2.VideoCapture(1)
cam = cv2.VideoCapture(0)
cv2.namedWindow("webcam", cv2.WND_PROP_FULLSCREEN)
cv2.setWindowProperty("webcam",cv2.WND_PROP_FULLSCREEN,cv2.WINDOW_FULLSCREEN)
printer = Serial(devfile='/dev/serial0',baudrate=19200,bytesize=8,parity='N',stopbits=1.00,dsrdtr=True)