Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download shared/eve_python/structs/EveFaceTrackerStructs.py from LatticeSemi/sensAI-Generic-Object-Detection: direct link, hf CLI and curl.
- Browser
- Download file 963 Bytes
-
https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/eve_python/structs/EveFaceTrackerStructs.py
- Command line
-
hf download hf://spaces/LatticeSemi/sensAI-Generic-Object-Detection/shared/eve_python/structs/EveFaceTrackerStructs.py
-
curl -L -o EveFaceTrackerStructs.py https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/eve_python/structs/EveFaceTrackerStructs.py
963 Bytes
| import ctypes | |
| from ctypes_enum import CtypesEnum | |
| from .CFaceData import * | |
| from .EveErrors import * | |
| class EveFaceTrackerMinimumMode(CtypesEnum): | |
| EVE_FACETRACKER_MINIMUM_MODE_OFF = 0 | |
| EVE_FACETRACKER_MINIMUM_MODE_MINIMAL = 1 | |
| EVE_FACETRACKER_MINIMUM_MODE_AVERAGE = 2 | |
| EVE_FACETRACKER_MINIMUM_MODE_MAXIMAL = 3 | |
| class EveFaceTrackerOptions(ctypes.Structure): | |
| _fields_ = [ | |
| ("faceTrackerMode", ctypes.c_int), | |
| ("enableEyeLandmarks", ctypes.c_uint), | |
| ("enable3DFaceTracking", ctypes.c_uint), | |
| ("enablePersonDetection", ctypes.c_uint), | |
| ("fitSecondaryUsers", ctypes.c_uint), | |
| ("error", ctypes.c_int), | |
| ] | |
| class EveEyes(ctypes.Structure): | |
| _fields_ = [ | |
| ("data", CEyeLandmarks), | |
| ("errorCode", ctypes.c_int), | |
| ] | |
| class EvePupils(ctypes.Structure): | |
| _fields_ = [ | |
| ("data", CPupilLandmarks), | |
| ("errorCode", ctypes.c_int), | |
| ] | |
| class EveAllFacesData(ctypes.Structure): | |
| _fields_ = [ | |
| ("faceData", ctypes.POINTER(CAllFaces)), | |
| ("errorCode", ctypes.c_int), | |
| ] | |