get the facepose
Project description
Info
face_pose.py 2018-05-25
Author: Zhao Mingming <471106585@qq.com>
Copyright: This module has been placed in the public domain.
version:0.0.1 - add get_image_pose
Functions:
face_pose: get face pose
How To Use This Module
example code:
imagepath="closed_eye/9.jfif"
img=io.imread(imagepath)
img1=img
imagepath="closed_eye/14.jfif"
img2=io.imread(imagepath)
ldmer=ldm.LDM()
print img.shape[0]
ldl,facel,txt=ldmer.landmarks(img)
print txt
for ld in ldl:
print 10*'-'
print 'nose:'
print ld['nose']
for face in facel:
print 10*'-'
print 'face:'
print face.top()
print face.left()
print face.width()
print face.height()
print face.bottom()
print face.right()
x,y,w,h=[face.top(),face.left(),face.width(),face.height()]
print x,y,w,h
print "feature:"
ffl=ldmer.face_feature(img,facel)
for ff in ffl:
print help(ff)
print 'ff='+str(ff)
print 'len(ff)='+str(len(ff))
print 'ff[0]='+str(ff[0])
print 'ff[127]='+str(ff[127])
print "face compare:"
print ldmer.face_rec(img1,img2)
print ldmer.has_same_person(img1,img2)
print ldmer.has_same_person(img2,img2)
print "face number:"
print ldmer.face_number(img,facel)
Refresh
add a function : ldmer.imread(imgpath) modify the return value number to: has_flag,max_score=ldmer.has_same_person(img1,img2)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
face_pose-0.0.3.tar.gz
(4.0 kB
view details)
Built Distributions
face_pose-0.0.3-py2.7.egg
(7.7 kB
view details)
File details
Details for the file face_pose-0.0.3.tar.gz
.
File metadata
- Download URL: face_pose-0.0.3.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.4.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1db4320c9b9d033d13f617b824b6bb2be93ece1cfa9f99509ae533fa7e1a42a1 |
|
MD5 | 3aaa6fadb4debf39e54b675078f27ab1 |
|
BLAKE2b-256 | c09130af0b5483fb543678e6dee20f2c3763dca67dd786985f2628e6f4a31c99 |
File details
Details for the file face_pose-0.0.3-py2.7.egg
.
File metadata
- Download URL: face_pose-0.0.3-py2.7.egg
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.4.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d565fac720f329b1cdaa474ee478641470ac526cbd65363ab310dfdeb8d82e6c |
|
MD5 | 397f3fc4b80fad6ac9c062041134f639 |
|
BLAKE2b-256 | 34e94cc58c5a41d8f63e229871aeabb65b07352f992d332cd369da0efb1b9e63 |
File details
Details for the file face_pose-0.0.3-py2-none-any.whl
.
File metadata
- Download URL: face_pose-0.0.3-py2-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.4.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd2a2abe7860c7482c92d239454496a6eee699522d2fddcbbef36cf0b6b69d0d |
|
MD5 | cbc622825569da2ee6c345737bd34c2c |
|
BLAKE2b-256 | 84356f6e54c4800b07ec67bcc86d279e114c34b5fc6a2fbfd4091483ea8d4bbc |