Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download shared/eve_python/structs/EveConfigurationParameters.py from LatticeSemi/sensAI-Generic-Object-Detection: direct link, hf CLI and curl.
- Browser
- Download file 940 Bytes
-
https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/eve_python/structs/EveConfigurationParameters.py
- Command line
-
hf download hf://spaces/LatticeSemi/sensAI-Generic-Object-Detection/shared/eve_python/structs/EveConfigurationParameters.py
-
curl -L -o EveConfigurationParameters.py https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/eve_python/structs/EveConfigurationParameters.py
940 Bytes
| import ctypes | |
| from ctypes_enum import CtypesEnum | |
| EVE_PIPELINE_TYPE_SIZE = 2 | |
| EVE_CAMERA_TYPE_SIZE = 3 | |
| class EveImageProvider(CtypesEnum): | |
| EVE_CAMERA = 0 | |
| EVE_CLIENT_PROVIDED = 1 | |
| class EveGpuPreference(CtypesEnum): | |
| EVE_GPU_LOW_POWER = 0 | |
| EVE_GPU_HIGH_PERFORMANCE = 1 | |
| EVE_NO_GPU = 2 | |
| class EveStartupType(CtypesEnum): | |
| EVE_SYNC = 0 | |
| EVE_ASYNC = 1 | |
| class EveProcessingPipelineType(CtypesEnum): | |
| EVE_FULL = 0 | |
| EVE_HMI = 1 | |
| EVE_PIPELINE_TYPE_SIZE = 2 | |
| class EveCameraType(CtypesEnum): | |
| EVE_CAMERA_AUTO = 0 | |
| EVE_CAMERA_RGB = 1 | |
| EVE_CAMERA_IR = 2 | |
| EVE_CAMERA_TYPE_SIZE = 3 | |
| class EveStartupParameters(ctypes.Structure): | |
| _fields_ = [ | |
| ("gpuPreference", ctypes.c_int), | |
| ("imageProvider", ctypes.c_int), | |
| ("startupType", ctypes.c_int), | |
| ("pathOverride", ctypes.c_byte * 512), | |
| ] | |
| class EveProcessingParameters(ctypes.Structure): | |
| _fields_ = [ | |
| ("type", ctypes.c_int), | |
| ("cameraType", ctypes.c_int), | |
| ("imageProvider", ctypes.c_int), | |
| ] | |