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)
Metadata
Release files for face-pose 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| face_pose-0.0.3.tar.gz | 4.0 kB | Without provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| face_pose-0.0.3-py2.7.egg | Legacy Egg format | - | - | Details |
| face_pose-0.0.3-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 17.3 kB
Release files / face_pose-0.0.3.tar.gz
| Download URL | face_pose-0.0.3.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1db4320c9b9d033d13f617b824b6bb2be93ece1cfa9f99509ae533fa7e1a42a1
|
|
BLAKE2b-256 checksum How to use checksums |
c09130af0b5483fb543678e6dee20f2c3763dca67dd786985f2628e6f4a31c99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / face_pose-0.0.3-py2.7.egg
| Download URL | face_pose-0.0.3-py2.7.egg |
|---|---|
| Size | 7.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
d565fac720f329b1cdaa474ee478641470ac526cbd65363ab310dfdeb8d82e6c
|
|
BLAKE2b-256 checksum How to use checksums |
34e94cc58c5a41d8f63e229871aeabb65b07352f992d332cd369da0efb1b9e63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / face_pose-0.0.3-py2-none-any.whl
| Download URL | face_pose-0.0.3-py2-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
dd2a2abe7860c7482c92d239454496a6eee699522d2fddcbbef36cf0b6b69d0d
|
|
BLAKE2b-256 checksum How to use checksums |
84356f6e54c4800b07ec67bcc86d279e114c34b5fc6a2fbfd4091483ea8d4bbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for face-pose 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.