Skip to main content

get the eye state from the landmarks of the face in the image

Project description

Info

ai_eye.py 2018-05-25

Author: Zhao Mingming <471106585@qq.com>

Copyright: This module has been placed in the public domain.

version:0.0.7

Functions:

  • has_closed_eye: eye's open degree

How To Use This Module

.. image:: funny.gif :height: 100px :width: 100px :alt: funny cat picture :align: center

  1. when u use pip install ldm==0.0.2

.. code:: python

from ldm import landmarks
from ai_eye import has_closed_eye
from skimage import io
imagepath="closed_eye/10.jfif"
img=io.imread(imagepath)
ldl,helptxt=landmarks(img)
print helptxt
for ld in ldl:
    print has_closed_eye(ld)
  1. when u use pip install ldm==0.0.4

.. code:: python

import  ldm
from ai_eye import has_closed_eye
from skimage import io

imagepath="closed_eye/10.jfif"
ldmer=ldm.LDM()
img=io.imread(imagepath)
ldl,facel,helptxt=ldmer.landmarks(img)
print helptxt
for ld in ldl:
    print has_closed_eye(ld)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

send_wechat-0.0.3.tar.gz (2.1 kB view details)

Uploaded Source

Built Distributions

send_wechat-0.0.3-py2.7.egg (3.2 kB view details)

Uploaded Source

send_wechat-0.0.3-py2-none-any.whl (2.4 kB view details)

Uploaded Python 2

File details

Details for the file send_wechat-0.0.3.tar.gz.

File metadata

  • Download URL: send_wechat-0.0.3.tar.gz
  • Upload date:
  • Size: 2.1 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

Hashes for send_wechat-0.0.3.tar.gz
Algorithm Hash digest
SHA256 299f9089925d4e0133e62ba5af8d8f576c3d9b89b10586b9d03b10852b6fe86a
MD5 6e2dd00dda05a2fb6ca1dc63acdb4ded
BLAKE2b-256 4bc655bdec63942c7cb4ac3b6f5cef4ad2ae89b2813835e1e041a509a9cb5a30

See more details on using hashes here.

File details

Details for the file send_wechat-0.0.3-py2.7.egg.

File metadata

  • Download URL: send_wechat-0.0.3-py2.7.egg
  • Upload date:
  • Size: 3.2 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

Hashes for send_wechat-0.0.3-py2.7.egg
Algorithm Hash digest
SHA256 4da416bfcb1f2168ae4c02c17e34e1aa5a03d794249ebbda6ffee6304032c463
MD5 83a9526b2d2d99eef14ee3ea28dc0a59
BLAKE2b-256 8abdfd0ab2629fa09e1486eb24fba1f1a48d4feec0c99782f936fbda43261e41

See more details on using hashes here.

File details

Details for the file send_wechat-0.0.3-py2-none-any.whl.

File metadata

  • Download URL: send_wechat-0.0.3-py2-none-any.whl
  • Upload date:
  • Size: 2.4 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

Hashes for send_wechat-0.0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 5ef1b8c7bc35f38a0d5d329ba35a791376a48f4eab2b7e876544f6020f6df56f
MD5 ce5a51cb8d4a8d616afe1a3d2a8dce1a
BLAKE2b-256 6226cff2cd8dbdb4c2233e80a95b340d10d4282e1d1c7e3d10cb9b186769d7a2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page