Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download shared/eve_python/structs/EveCameraStructs.py from LatticeSemi/sensAI-Generic-Object-Detection: direct link, hf CLI and curl.
- Browser
- Download file 999 Bytes
-
https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/eve_python/structs/EveCameraStructs.py
- Command line
-
hf download hf://spaces/LatticeSemi/sensAI-Generic-Object-Detection/shared/eve_python/structs/EveCameraStructs.py
-
curl -L -o EveCameraStructs.py https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/eve_python/structs/EveCameraStructs.py
999 Bytes
| import ctypes | |
| from ctypes_enum import CtypesEnum | |
| from .CCameraStructs import * | |
| from .EveErrors import * | |
| EVE_CAMERA_FORMATS_SIZE = 20 | |
| EVE_MONITOR_SIZE = 4 | |
| class EveCameraFormats(ctypes.Structure): | |
| _fields_ = [ | |
| ("formats", CCameraFormat * EVE_CAMERA_FORMATS_SIZE), | |
| ("formatsCount", ctypes.c_uint), | |
| ("hadMoreFormats", ctypes.c_uint), | |
| ("error", ctypes.c_int), | |
| ] | |
| class EveCamera(ctypes.Structure): | |
| _fields_ = [ | |
| ("data", CCamera), | |
| ("error", ctypes.c_int), | |
| ] | |
| class EveNumberOfCameras(ctypes.Structure): | |
| _fields_ = [ | |
| ("count", ctypes.c_uint), | |
| ("error", ctypes.c_int), | |
| ] | |
| class EveMonitors(ctypes.Structure): | |
| _fields_ = [ | |
| ("monitorCount", ctypes.c_uint), | |
| ("error", ctypes.c_int), | |
| ("monitors", CMonitor * EVE_MONITOR_SIZE), | |
| ] | |
| class EveCameraLocation(ctypes.Structure): | |
| _fields_ = [ | |
| ("location", CCameraLocation), | |
| ("error", ctypes.c_int), | |
| ] | |
| class EveCameraParameters(ctypes.Structure): | |
| _fields_ = [ | |
| ("parameters", CCameraParameters), | |
| ("error", ctypes.c_int), | |
| ] | |