mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
31 lines
443 B
Python
31 lines
443 B
Python
from dataclasses import dataclass
|
|
from enum import Enum, IntEnum
|
|
|
|
|
|
class EyeId(IntEnum):
|
|
RIGHT = 0
|
|
LEFT = 1
|
|
BOTH = 2
|
|
SETTINGS = 3
|
|
ALGOSETTINGS = 4
|
|
|
|
|
|
class EyeInfoOrigin(Enum):
|
|
RANSAC = 1
|
|
BLOB = 2
|
|
FAILURE = 3
|
|
HSF = 4
|
|
HSRAC = 5
|
|
DADDY = 6
|
|
LEAP = 7
|
|
|
|
|
|
@dataclass
|
|
class EyeInfo:
|
|
info_type: EyeInfoOrigin
|
|
x: float
|
|
y: float
|
|
pupil_dilation: float
|
|
blink: float
|
|
avg_velocity: float
|