Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download shared/eve_python/structs/EveImageStructs.py from LatticeSemi/sensAI-Generic-Object-Detection: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/eve_python/structs/EveImageStructs.py
- Command line
-
hf download hf://spaces/LatticeSemi/sensAI-Generic-Object-Detection/shared/eve_python/structs/EveImageStructs.py
-
curl -L -o EveImageStructs.py https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/eve_python/structs/EveImageStructs.py
1.17 kB
| import ctypes | |
| from ctypes_enum import CtypesEnum | |
| from .CBasicStructs import * | |
| from .EveControlOption import * | |
| from .EveErrors import * | |
| class EveInputImage(ctypes.Structure): | |
| _fields_ = [ | |
| ("data", ctypes.POINTER(ctypes.c_ubyte)), | |
| ("width", ctypes.c_int), | |
| ("height", ctypes.c_int), | |
| ("encoding", ctypes.c_int), | |
| ] | |
| class EveProcessedImage(ctypes.Structure): | |
| _fields_ = [ | |
| ("data", ctypes.POINTER(ctypes.c_ubyte)), | |
| ("width", ctypes.c_int), | |
| ("height", ctypes.c_int), | |
| ("channels", ctypes.c_int), | |
| ("timestamp", ctypes.c_longlong), | |
| ("error", ctypes.c_int), | |
| ("location", ctypes.c_int), | |
| ("format", ctypes.c_int), | |
| ] | |
| class EveProcessedFrameTime(ctypes.Structure): | |
| _fields_ = [ | |
| ("frameTime", ctypes.c_double), | |
| ("error", ctypes.c_int), | |
| ] | |
| class EveImageFormatRequest(ctypes.Structure): | |
| _fields_ = [ | |
| ("format", ctypes.c_int), | |
| ("location", ctypes.c_int), | |
| ("error", ctypes.c_int), | |
| ] | |
| class EveRawImageRequest(ctypes.Structure): | |
| _fields_ = [ | |
| ("enabled", ctypes.c_int), | |
| ("recordResults", ctypes.c_int), | |
| ("error", ctypes.c_int), | |
| ] | |
| class EveJsonData(ctypes.Structure): | |
| _fields_ = [ | |
| ("string", CStringData), | |
| ("error", ctypes.c_int), | |
| ] | |