A Python Module for Parsing Gaze Direction
This module is used to parse human gaze direction. Given an image containing a human face, the module will return its gaze direction.
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"
}
{
"face_recognition",
"opencv-python",
"pillow",
"numpy"
}