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.2

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.2
File Size Uploaded Provenance Actions
face_pose-0.0.2.tar.gz 4.0 kB Without provenance Details for face_pose-0.0.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for face-pose 0.0.2
File Interpreter ABI Platform Actions
face_pose-0.0.2-py2.7.egg Legacy Egg format - - Details for face_pose-0.0.2-py2.7.egg
face_pose-0.0.2-py2-none-any.whl Python 2 none any Details for face_pose-0.0.2-py2-none-any.whl

Total release size: 17.3 kB

Release files / face_pose-0.0.2.tar.gz

Download URL face_pose-0.0.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
da01a2dba7a623976f54f567ee94e83055cd668a5cf1a42abcacfe2dc16cfd3c
BLAKE2b-256 checksum
How to use checksums
8197dd47f2c125a13335978ed68d810b170a980594d02134077ff7a7c73bf27b
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.2-py2.7.egg

Download URL face_pose-0.0.2-py2.7.egg
Size 7.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
8aa7286819f345c67c621f86a5959fb8f84adeabd3bf397a4250021cb4c9e7f4
BLAKE2b-256 checksum
How to use checksums
1a0c262162863c733f003f0ed9e141f0006ab53f9758fe417f62e06029e7871d
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.2-py2-none-any.whl

Download URL face_pose-0.0.2-py2-none-any.whl
Size 5.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
4df1f365452663bdb0c5080323d2116249489bded41561838d044e56fd69f3fa
BLAKE2b-256 checksum
How to use checksums
d83800ecea43d68148ceadb37ea79d3e926787ace27e28845c256d276a770d0d
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.2

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.

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