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

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.1
File Size Uploaded Provenance Actions
face_pose-0.0.1.tar.gz 1.7 kB Without provenance Details for face_pose-0.0.1.tar.gz

Built distributions (wheels)

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

Total release size: 6.4 kB

Release files / face_pose-0.0.1.tar.gz

Download URL face_pose-0.0.1.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
eedb7e670321121f011f2f9845e13d6d59c4880f1478b28f991280a60fb233fd
BLAKE2b-256 checksum
How to use checksums
4df5290c014328bce3b3f3d322dfef4a730386394ebe1732bed2adafbe54a911
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.1-py2.7.egg

Download URL face_pose-0.0.1-py2.7.egg
Size 1.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
3984377f542a257f5e9fe040ddf72ee4d245f1ffdb6872a6276ef08e03c38a54
BLAKE2b-256 checksum
How to use checksums
539e432fd1b9849c35dfab5b9d0eb4ae9437e0ce67326f1bffa9b1e77105e9a4
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.1-py2-none-any.whl

Download URL face_pose-0.0.1-py2-none-any.whl
Size 3.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
95a2cdf8410dc9f81265f3873de3f3c8e418d84e36f6ef0e3da3a242eb6fd414
BLAKE2b-256 checksum
How to use checksums
d2c2c4173f965e8c7d9a31a75ee70110fcb382d20c7c151a51c6bf46ea42c5b3
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.1

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