Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download shared/eve_python/structs/EveTimingStructs.py from LatticeSemi/sensAI-Generic-Object-Detection: direct link, hf CLI and curl.
- Browser
- Download file 886 Bytes
-
https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/eve_python/structs/EveTimingStructs.py
- Command line
-
hf download hf://spaces/LatticeSemi/sensAI-Generic-Object-Detection/shared/eve_python/structs/EveTimingStructs.py
-
curl -L -o EveTimingStructs.py https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/eve_python/structs/EveTimingStructs.py
886 Bytes
| import ctypes | |
| from ctypes_enum import CtypesEnum | |
| from .EveErrors import * | |
| TIME_SOURCE_SIZE = 16 | |
| class EveTiming(ctypes.Structure): | |
| _fields_ = [ | |
| ("errorCode", ctypes.c_int), | |
| ("eveCameraImageAcquisitionTimepoint", ctypes.c_longlong), | |
| ("eveAlgorithmDuration", ctypes.c_longlong), | |
| ("time1", ctypes.c_longlong), | |
| ("time1Source", ctypes.c_byte * TIME_SOURCE_SIZE), | |
| ("time2", ctypes.c_longlong), | |
| ("time2Source", ctypes.c_byte * TIME_SOURCE_SIZE), | |
| ("time3", ctypes.c_longlong), | |
| ("time3Source", ctypes.c_byte * TIME_SOURCE_SIZE), | |
| ("time4", ctypes.c_longlong), | |
| ("time4Source", ctypes.c_byte * TIME_SOURCE_SIZE), | |
| ("time5", ctypes.c_longlong), | |
| ("time5Source", ctypes.c_byte * TIME_SOURCE_SIZE), | |
| ("time6", ctypes.c_longlong), | |
| ("time6Source", ctypes.c_byte * TIME_SOURCE_SIZE), | |
| ("time7", ctypes.c_longlong), | |
| ("time7Source", ctypes.c_byte * TIME_SOURCE_SIZE), | |
| ] | |