文件名称:linux系统下基于python的人脸识别
文件大小:14.26MB
文件格式:ZIP
更新时间:2021-06-24 10:51:28
linux 深度学习 python
# 识别图片中的人脸 import face_recognition jobs_image = face_recognition.load_image_file("jobs.jpg"); obama_image = face_recognition.load_image_file("obama.jpg"); unknown_image = face_recognition.load_image_file("unknown.jpg"); jobs_encoding = face_recognition.face_encodings(jobs_image)[0] obama_encoding = face_recognition.face_encodings(obama_image)[0] unknown_encoding = face_recognition.face_encodings(unknown_image)[0] results = face_recognition.compare_faces([jobs_encoding, obama_encoding], unknown_encoding ) labels = ['jobs', 'obama'] print('results:'+str(results)) for i in range(0, len(results)): if results[i] == True: print('The person is:'+labels[i])
【文件预览】:
人脸检测识别
----MANIFEST.in(264B)
----README.rst(17KB)
----face_recognition()
--------face_recognition_cli.py(5KB)
--------__init__.py(246B)
--------api.py(9KB)
--------face_detection_cli.py(2KB)
----CONTRIBUTING.rst(3KB)
----Dockerfile(1KB)
----requirements_docs.txt(0B)
----HISTORY.rst(3KB)
----requirements.txt(75B)
----AUTHORS.rst(573B)
----examples()
--------facerec_on_raspberry_pi.py(2KB)
--------find_faces_in_picture_cnn.py(1KB)
--------obama_small.jpg(33KB)
--------blur_faces_on_webcam.py(2KB)
--------digital_makeup.py(1KB)
--------obama-1080p.jpg(378KB)
--------facerec_from_webcam_faster.py(4KB)
--------face_distance.py(2KB)
--------obama.jpg(273KB)
--------find_facial_features_in_picture.py(1KB)
--------facerec_from_video_file.py(3KB)
--------obama-240p.jpg(36KB)
--------web_service_example.py(5KB)
--------find_faces_in_batches.py(2KB)
--------biden.jpg(345KB)
--------alex-lacamoire.png(178KB)
--------benchmark.py(2KB)
--------obama-480p.jpg(100KB)
--------short_hamilton_clip.mp4(600KB)
--------obama2.jpg(180KB)
--------obama-720p.jpg(197KB)
--------recognize_faces_in_pictures.py(1KB)
--------hamilton_clip.mp4(4.9MB)
--------find_faces_in_picture.py(907B)
--------two_people.jpg(476KB)
--------face_recognition_knn.py(9KB)
--------lin-manuel-miranda.png(492KB)
--------identify_and_draw_boxes_on_faces.py(2KB)
--------facerec_from_webcam.py(3KB)
--------knn_examples()
----.travis.yml(371B)
----tox.ini(286B)
----LICENSE(1KB)
----requirements_dev.txt(204B)
----setup.cfg(508B)
----setup.py(2KB)
----README.md(16KB)
----Makefile(2KB)
----docs()
--------authors.rst(28B)
--------make.bat(6KB)
--------readme.rst(27B)
--------contributing.rst(33B)
--------face_recognition.rst(178B)
--------conf.py(9KB)
--------usage.rst(2KB)
--------installation.rst(1KB)
--------history.rst(28B)
--------index.rst(302B)
--------Makefile(7KB)
--------modules.rst(85B)
----.editorconfig(292B)
----tests()
--------__init__.py(24B)
--------test_images()
--------test_face_recognition.py(14KB)
----.gitignore(795B)