Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

analyze the face of the face in the image

Project description

# ai_face
version:0.0.1

analyze the face artribution in the image
like this:
```
# pip install ldm
import ldm
# pip install ai_eye
from ai_face import *
from skimage import io

imagepath="closed_eye/10.jfif"
ldmer=ldm.LDM()
img=io.imread(imagepath)
ldl,facel,helptxt=ldmer.landmarks(img)
print helptxt
print 'face_num:'
print face_num(facel)
print 'face_avre_rate:'
print face_area_rate(img,facel)
print 'face_center_degree:'
print face_center_degree(img,facel)
print 'face_direction:'
print face_direction(facel)
print 'face_feature:'
print face_feature(img,facel)
print 'face_compare:'
feature1=face_feature(img,facel)
feature2=face_feature(img,facel)
print compare2facefeature(feature1,feature2)

```
20180524
anjiang

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ai_face-0.0.1-py2.7.egg (1.2 kB) Copy SHA256 hash SHA256 Egg 2.7
ai_face-0.0.1.tar.gz (1.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page