Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download shared/eve_python/structs/EveFaceIdStructs.py from LatticeSemi/sensAI-Generic-Object-Detection: direct link, hf CLI and curl.
- Browser
- Download file 696 Bytes
-
https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/eve_python/structs/EveFaceIdStructs.py
- Command line
-
hf download hf://spaces/LatticeSemi/sensAI-Generic-Object-Detection/shared/eve_python/structs/EveFaceIdStructs.py
-
curl -L -o EveFaceIdStructs.py https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/eve_python/structs/EveFaceIdStructs.py
696 Bytes
| import ctypes | |
| from ctypes_enum import CtypesEnum | |
| from .CFaceIdStructs import * | |
| from .EveControlOption import * | |
| from .EveErrors import * | |
| class EveFaceIdCalibrationPoseMode(CtypesEnum): | |
| EVE_FACEID_CALIBRATION_FRONTAL_ONLY = 1 | |
| class EveFaceIdCommandStruct(ctypes.Structure): | |
| _fields_ = [ | |
| ("command", ctypes.c_int), | |
| ("errorCode", ctypes.c_int), | |
| ] | |
| class EveFaceIdOptions(ctypes.Structure): | |
| _fields_ = [ | |
| ("enabled", ctypes.c_int), | |
| ("calibrationPoses", ctypes.c_int), | |
| ("galleryPath", ctypes.c_byte * 256), | |
| ("threshold", ctypes.c_float), | |
| ("error", ctypes.c_int), | |
| ] | |
| class EveFaceIdData(ctypes.Structure): | |
| _fields_ = [ | |
| ("data", CFaceIdentityData), | |
| ("error", ctypes.c_int), | |
| ] | |