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

funny cat picture
  1. when u use pip install ldm==0.0.2
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
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.

Files for ai-eye, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size ai_eye-0.0.7-py2.7.egg (2.4 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size ai_eye-0.0.7.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page