Skip to main content

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

funny cat picture
  1. 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)

Source distribution for face-pose 0.0.3
File Size Uploaded
face_pose-0.0.3.tar.gz 4.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for face-pose 0.0.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.3 This release

3 release files

0.0.2

3 release files

0.0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page