Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/antoinelame/GazeTracking
/ functions
Functions
27 in github.com/antoinelame/GazeTracking
⨍
Functions
27
◇
Types & classes
4
↓ 2 callers
Method
_middle_point
Returns the middle point (x,y) between two points Arguments: p1 (dlib.point): First point p2 (dlib.point): Second poi
gaze_tracking/eye.py:28
↓ 2 callers
Method
horizontal_ratio
Returns a number between 0.0 and 1.0 that indicates the horizontal direction of the gaze. The extreme right is 0.0, the center is 0.5
gaze_tracking/gaze_tracking.py:79
↓ 2 callers
Method
image_processing
Performs operations on the eye frame to isolate the iris Arguments: eye_frame (numpy.ndarray): Frame containing an eye and nothin
gaze_tracking/pupil.py:20
↓ 2 callers
Method
is_left
Returns true if the user is looking to the left
gaze_tracking/gaze_tracking.py:104
↓ 2 callers
Method
is_right
Returns true if the user is looking to the right
gaze_tracking/gaze_tracking.py:99
↓ 2 callers
Method
pupil_left_coords
Returns the coordinates of the left pupil
gaze_tracking/gaze_tracking.py:65
↓ 2 callers
Method
pupil_right_coords
Returns the coordinates of the right pupil
gaze_tracking/gaze_tracking.py:72
↓ 2 callers
Method
threshold
Returns the threshold value for the given eye. Argument: side: Indicates whether it's the left eye (0) or the right eye (1)
gaze_tracking/calibration.py:21
↓ 1 callers
Method
_analyze
Detects the face and initializes Eye objects
gaze_tracking/gaze_tracking.py:42
↓ 1 callers
Method
_analyze
Detects and isolates the eye in a new frame, sends data to the calibration and initializes the Pupil object. Arguments: o
gaze_tracking/eye.py:97
↓ 1 callers
Method
_blinking_ratio
Calculates a ratio that can indicate whether an eye is closed or not. It's the division of the width of the eye by its height. Argume
gaze_tracking/eye.py:71
↓ 1 callers
Method
_isolate
Isolate an eye to have a frame without other parts of the face. Arguments: frame (numpy.ndarray): Frame containing the face
gaze_tracking/eye.py:39
↓ 1 callers
Method
annotated_frame
Returns the main frame with pupils highlighted
gaze_tracking/gaze_tracking.py:120
↓ 1 callers
Method
detect_iris
Detects the iris and estimates the position of the pupil by calculating the centroid. Arguments: eye_frame (numpy.ndarray
gaze_tracking/pupil.py:37
↓ 1 callers
Method
evaluate
Improves calibration by taking into consideration the given image. Arguments: eye_frame (numpy.ndarray): Frame of the eye
gaze_tracking/calibration.py:64
↓ 1 callers
Method
find_best_threshold
Calculates the optimal threshold to binarize the frame for the given eye. Argument: eye_frame (numpy.ndarray): Frame of t
gaze_tracking/calibration.py:47
↓ 1 callers
Method
iris_size
Returns the percentage of space that the iris takes up on the surface of the eye. Argument: frame (numpy.ndarray): Binari
gaze_tracking/calibration.py:33
↓ 1 callers
Method
is_blinking
Returns true if the user closes his eyes
gaze_tracking/gaze_tracking.py:114
↓ 1 callers
Method
is_center
Returns true if the user is looking at the center
gaze_tracking/gaze_tracking.py:109
↓ 1 callers
Method
is_complete
Returns true if the calibration is completed
gaze_tracking/calibration.py:17
↓ 1 callers
Method
refresh
Refreshes the frame and analyzes it. Arguments: frame (numpy.ndarray): The frame to analyze
gaze_tracking/gaze_tracking.py:56
Method
__init__
(self)
gaze_tracking/calibration.py:12
Method
__init__
(self)
gaze_tracking/gaze_tracking.py:17
Method
__init__
(self, eye_frame, threshold)
gaze_tracking/pupil.py:11
Method
__init__
(self, original_frame, landmarks, side, calibration)
gaze_tracking/eye.py:18
Method
pupils_located
Check that the pupils have been located
gaze_tracking/gaze_tracking.py:31
Method
vertical_ratio
Returns a number between 0.0 and 1.0 that indicates the vertical direction of the gaze. The extreme top is 0.0, the center is 0.5 and
gaze_tracking/gaze_tracking.py:89