基于mpiegaze和mpiefacegaze的凝视估计

ptgaze的Python项目详细描述


mpiegaze和mpiefacegaze的演示程序

有了这个程序,你可以对图像和视频进行凝视估计。 默认情况下,使用来自网络摄像头的视频。在

MPIIGaze video resultMPIIFaceGaze video result

(原始视频来自this public domain。)

MPIIGaze image result

(原始图像来自this public domain。)

要训练模型,请使用this repository。在

快速入门

安装

pip install ptgaze

运行演示

^{pr2}$

用法

usage: ptgaze [-h] [--config CONFIG] [--mode {eye,face}]
              [--face-detector {dlib,face_alignment_dlib,face_alignement_sfd}]
              [--device {cpu,cuda}] [--image IMAGE] [--video VIDEO]
              [--camera CAMERA] [--output-dir OUTPUT_DIR] [--ext {avi,mp4}]
              [--no-screen] [--debug]

optional arguments:
  -h, --help            show this help message and exit
  --config CONFIG       Config file for YACS. When using a config file, all
                        the other commandline arguments are ignored. See https
                        ://github.com/hysts/pytorch_mpiigaze_demo/configs/demo
                        _mpiigaze.yaml
  --mode {eye,face}     With 'eye', MPIIGaze model will be used. With 'face',
                        MPIIFaceGaze model will be used. (default: 'eye')
  --face-detector {dlib,face_alignment_dlib,face_alignement_sfd}
                        The method used to detect faces and find face
                        landmarks (default: 'dlib')
  --device {cpu,cuda}   Device used for model inference.
  --image IMAGE         Path to an input image file.
  --video VIDEO         Path to an input video file.
  --camera CAMERA       Camera calibration file. See https://github.com/hysts/
                        pytorch_mpiigaze_demo/ptgaze/data/calib/sample_params.
                        yaml
  --output-dir OUTPUT_DIR, -o OUTPUT_DIR
                        If specified, the overlaid video will be saved to this
                        directory.
  --ext {avi,mp4}, -e {avi,mp4}
                        Output video file extension.
  --no-screen           If specified, the video is not displayed on screen,
                        and saved to the output directory.
  --debug

在处理图像或视频时,按窗口上的以下键 显示或隐藏中间结果:

  • l:地标
  • h:头部姿势
  • t:三维人脸模型的投影点
  • b:面边界框

参考文献

  • 张、徐聪、苏加诺、马里奥·弗里茨和安德烈亚斯·布林。”在野外基于外貌的凝视评估。IEEE计算机视觉与模式识别会议(CVPR),2015年。arXiv:1504.02863Project Page
  • 张、徐聪、苏加诺、马里奥·弗里茨和安德烈亚斯·布林。”它写在你的脸上:基于全脸外貌的凝视评估。2017年IEEE计算机视觉和模式识别研讨会(CVPRW)会议。arXiv:1611.08860Project Page
  • 张、徐聪、苏加诺、马里奥·弗里茨和安德烈亚斯·布林。”MPIIGaze:真实世界数据集和基于深度外观的凝视估计〉,《IEEE模式分析与机器智能汇刊》41(2017)。arXiv:1711.09017

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
显示或隐藏java菜单片段   java ClassNotFoundException:org。阿帕奇。平民数学3。分配分配   java在同一事务Spring中提供多个资源提供者   java Hibernate 4.3,在构建SessionFactory时,为什么必须提供两次属性?   java NoClassDefFoundError与Bukkit插件的正确依赖项   java Baseadapter滚动速度慢且滞后   java如何在Spring Boot Docked应用程序中连接到特定的本地MongoDB实例?   java正则表达式匹配空白、任意字符和/或给定序列的换行符   Softlayer JAVA API示例,用于获取“每小时/预设配置裸机服务器”的所有配置   Textview和String之间的java验证日期   在java中使用getter传递值失败   java如何在ODL控制器中配置拒绝服务过滤器   从java程序调用unix shell?从java程序向unix管道读写稳定的数据流   java如何从HTTP基本身份验证获取密码   AST解析器中的java问题   java为未检查的错误编写错误消息?   异步JAXRS实现中的java NullPointerException   java Post HashMap作为Android改造Post调用中的Post请求值   SONARQUE应该是Unicode而不是java。时间DateTimeFormatter应用于国际日期和时间