
人脸识别项目
0100_0000_0100
这个作者很懒,什么都没留下…
展开
-
Tensorflow调用facenet的mtcnn实现对图片的人脸检测功能
from scipy import miscimport tensorflow as tfimport align.detect_faceimport cv2import matplotlib.pyplot as pltminsize = 20 # minimum size of facethreshold = [0.6, 0.7, 0.7] # three steps's ...原创 2019-03-12 21:22:23 · 480 阅读 · 0 评论 -
Tensorflow调用facenet的mtcnn实现实时检测人脸功能
import cv2import tensorflow as tfimport align.detect_facedef test(): video = cv2.VideoCapture(1) print('Creating networks and loading parameters') with tf.Graph().as_default(): ...原创 2019-03-12 21:20:57 · 1383 阅读 · 3 评论 -
【百度人脸识别api】一、人脸检测
import jsonimport urllibimport cv2import base64from baidu_face_detect.token import GetTokendef img_detect_data(filepath): with open(filepath, 'rb') as fp: pic1 = base64.b64encode(f...原创 2019-04-29 21:26:42 · 2586 阅读 · 1 评论 -
【百度人脸识别api】二、人脸比对
import jsonimport urllibimport base64from baidu_face_detect.token11 import GetToken#转换图片 读取文件内容 转换为base64编码#二进制打开图片def img_compare_data(fp1,fp2): f = open(fp1,'rb') pic1 = base64.b64...原创 2019-04-29 21:43:52 · 1500 阅读 · 0 评论 -
【人脸比对】几行代码实现离线人脸比对
import face_recognitiondef detect_faces_in_image(file_stream1, file_stream2): code1 = face_recognition.face_encodings(face_recognition.load_image_file(file_stream1))[0] code2 = face_recognit...原创 2019-05-13 21:24:16 · 2386 阅读 · 0 评论 -
OpenCV/Python/dlib眨眼检测
http://blog.sina.com.cn/s/blog_49b3ba190102yvl9.htmlhttps://blog.youkuaiyun.com/ctwy291314/article/details/81630405原创 2019-04-17 20:46:04 · 1252 阅读 · 0 评论