© Fu Xianjun. All Rights Reserved
一、人脸识别概念:
二、人脸识别的应用:
1.获取摄像头:
import cv2
cap = cv2.VideoCapture(0)
while(cap.isOpened()):
# 获取一帧
ret,frame = cap.read()
cv2.imshow('frame',frame)
if cv2.waitKey(1) == ord('q'):#q关闭
break
cap.release()
cv2.destroyAllWindows()
2.使用摄像头进行人脸识别: