人脸识别
认识梁慕漫的请私我谢谢
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
使用opencv训练LBP识别模型
import cv2import osimport numpy as npdef detect_face(img): gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') faces = f...原创 2018-05-10 23:00:09 · 1412 阅读 · 0 评论 -
opencv自动拍照程序
自动采集人脸样本import osimport cv2cam=cv2.VideoCapture(0)count=1print("请正视摄像头,请等待")while(True): ret,img=cam.read() cv2.imwrite("s1/" + str(count) + ".jpg", img) count+=1 if count==101: ...原创 2018-04-27 16:10:18 · 3649 阅读 · 0 评论
分享