diff --git a/cropScared.jpg b/cropScared.jpg index cf07b3a..e79b453 100644 Binary files a/cropScared.jpg and b/cropScared.jpg differ diff --git a/main.py b/main.py index 9bb3120..15d6950 100644 --- a/main.py +++ b/main.py @@ -2,7 +2,7 @@ import math import time import numpy as np import cv2 #pip install opencv-python ||| pip3 install opencv-contrib-python==4.4.0.46 - +from gpiozero import Button from escpos.printer import Serial from PIL import Image @@ -10,6 +10,7 @@ from PIL import ImageDraw from PIL import ImageFont from deepface import DeepFace #pip install deepface +button = Button(2) cam = cv2.VideoCapture(1) @@ -97,7 +98,7 @@ if cam.isOpened(): cv2.imshow('webcam',startScreen) key = cv2.waitKey(5) & 0xFF - if ord('t') == key: + if ord('t') == key or button.is_pressed: cameraMode = True if ord('q') == key: break diff --git a/scared.jpg b/scared.jpg index 504f788..49eef96 100644 Binary files a/scared.jpg and b/scared.jpg differ