人脸识别python face_recognize_face_recognition

face_recognition是一个简单易用的Python人脸识别库,基于dlib的深度学习技术,准确率高达99.38%。它可以识别照片中的人脸、定位面部特征,并在命令行中操作。该库提供了face_recognition命令行工具,用于识别和检测照片中的人脸。安装要求包括Python 3.3+或2.7,以及dlib。通过pip3安装,然后通过命令行工具进行人脸检测和识别。
摘要由CSDN通过智能技术生成

Face Recognition

Recognize and manipulate faces from Python or from the command line with

the world's simplest face recognition library.

Built using dlib's state-of-the-art face recognition

built with deep learning. The model has an accuracy of 99.38% on the

Labeled Faces in the Wild benchmark.

This also provides a simple face_recognition command line tool that lets

you do face recognition on a folder of images from the command line!

face_recognition.svg

face_recognition.svg?branch=master

?version=latest

Features

Find faces in pictures

Find all the faces that appear in a picture:

0cf54344a1fe1714a3053b6a71ebc39a.png

import face_recognition

image = face_recognition.load_image_file("your_file.jpg")

face_locations = face_recognition.face_locations(image)

Find and manipulate facial features in pictures

Get the locations and outlines of each person's eyes, nose, mouth and chin.

8234ef431a1ff061e09486b1a33d2c01.png

import face_recognition

image = face_recognition.load_image_file("your_file.jpg")

face_landmarks_list = face_recognition.face_landmarks(image)

Finding facial features is super useful for lots of important stuff. But you can also use for really stupid stuff

like applying digital make-up (think 'Meitu'):

d6b7d825ccc7e15e70eedf0ec28829b4.png

Identify faces in pictures

Recognize who appears in each photo.

c56c194f88621445dd1b48291758cf9f.png

import face_recognition

known_image = face_recognition.load_image_file("biden.jpg")

unknown_image = face_recognition.load_image_file("unknown.jpg")

biden_encoding = face_recognition.face_encodings(known_image)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值