Skip to content

WenjieDu/eye_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EyeGame Title

A Python Module for Parsing Gaze Direction

❖ Introduction

This module is used to parse human gaze direction. Given an image containing a human face, the module will return its gaze direction.

❖ Usage

You need to install it first by running command pip install eye_game, then import and use it!

import eye_game

eye_game.get_gaze_direction(image_path)

The result returned from function get_gaze_direction will be one of the nine cases:

{
    "up",
    "upper left",
    "upper right",
    "left",
    "center",
    "right",
    "down",
    "lower left",
    "lower right"
}

❖ Dependencies

{
    "face_recognition",
    "opencv-python",
    "pillow",
    "numpy"
}