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
- 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)
- 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
Release history Release notifications | RSS feed
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.2.tar.gz
(2.1 kB
view hashes)
Built Distributions
send_wechat-0.0.2-py2.7.egg
(3.1 kB
view hashes)
Close
Hashes for send_wechat-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a627b83b6dbc7b6a8fbbea891b25a1c18563bc88d2eb5bfefb964430f996778 |
|
MD5 | 9023926e6175f4fe059234ea8c431091 |
|
BLAKE2b-256 | 5fe9ab45aa7224f79250a412b97dcdba6c33ae81ea12995903785d7f39badd87 |