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
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)
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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_eye-0.0.7.tar.gz.
File metadata
- Download URL: ai_eye-0.0.7.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e826bb55f2f33f2e3f076ec9f5ffa2a8648877eb8c5dbaa5d775ed890b17f998
|
|
| MD5 |
caebe6dc0b04f03a491bd9839aa0474f
|
|
| BLAKE2b-256 |
e22a3e76f77aa158d747facc7a0e3fd1b9d08ea7165acfd59bcb359ebef91b1e
|
File details
Details for the file ai_eye-0.0.7-py2.7.egg.
File metadata
- Download URL: ai_eye-0.0.7-py2.7.egg
- Upload date:
- Size: 2.4 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67cfdb52bf9488e6a8f4a1fc995145089e64dba8e20f7b2ef1e07aa2c619287f
|
|
| MD5 |
e35d28865132086d80d42edcfb71f8c0
|
|
| BLAKE2b-256 |
046f2a212dc8f5578e6e079780376cede937cefc3b66363f49e831003a6b8ad9
|