stm32-fmt-code/access_control_python/identify_test.py

9 lines
179 B
Python

import numpy as np
import cv2
import face_processing as fp
cam = cv2.VideoCapture(0)
while True:
#Capture Image
ret, img = cam.read()
print(fp.identify_face(img,0.4))