人脸识别项目
0100_0000_0100
这个作者很懒,什么都没留下…
展开
-
Tensorflow调用facenet的mtcnn实现对图片的人脸检测功能
from scipy import misc import tensorflow as tf import align.detect_face import cv2 import matplotlib.pyplot as plt minsize = 20 # minimum size of face threshold = [0.6, 0.7, 0.7] # three steps's ...原创 2019-03-12 21:22:23 · 433 阅读 · 0 评论 -
Tensorflow调用facenet的mtcnn实现实时检测人脸功能
import cv2 import tensorflow as tf import align.detect_face def test(): video = cv2.VideoCapture(1) print('Creating networks and loading parameters') with tf.Graph().as_default(): ...原创 2019-03-12 21:20:57 · 1332 阅读 · 3 评论 -
【百度人脸识别api】一、人脸检测
import json import urllib import cv2 import base64 from baidu_face_detect.token import GetToken def img_detect_data(filepath): with open(filepath, 'rb') as fp: pic1 = base64.b64encode(f...原创 2019-04-29 21:26:42 · 2473 阅读 · 1 评论 -
【百度人脸识别api】二、人脸比对
import json import urllib import base64 from 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 · 1442 阅读 · 0 评论 -
【人脸比对】几行代码实现离线人脸比对
import face_recognition def 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 · 2305 阅读 · 0 评论 -
OpenCV/Python/dlib眨眼检测
http://blog.sina.com.cn/s/blog_49b3ba190102yvl9.html https://blog.csdn.net/ctwy291314/article/details/81630405原创 2019-04-17 20:46:04 · 1199 阅读 · 0 评论