从图像中脸部的标志点获取眼睛的状态
ai-eye的Python项目详细描述
信息
人工智能眼.py 2018-05-25
作者:赵明明<;471106585@qq.com>;
版权:此模块已置于公共域中。
版本:0.0.7
功能:
- 已闭上眼睛:眼睛的张开度
如何使用此模块
- 当您使用pip install ldm==0.0.2
fromldmimportlandmarksfromai_eyeimporthas_closed_eyefromskimageimportioimagepath="closed_eye/10.jfif"img=io.imread(imagepath)ldl,helptxt=landmarks(img)printhelptxtforldinldl:printhas_closed_eye(ld)
- 当您使用pip install ldm==0.0.4
importldmfromai_eyeimporthas_closed_eyefromskimageimportioimagepath="closed_eye/10.jfif"ldmer=ldm.LDM()img=io.imread(imagepath)ldl,facel,helptxt=ldmer.landmarks(img)printhelptxtforldinldl:printhas_closed_eye(ld)