Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download shared/eve_python/structs/EveObjectDetectionStructs.py from LatticeSemi/sensAI-Generic-Object-Detection: direct link, hf CLI and curl.
- Browser
- Download file 796 Bytes
-
https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/eve_python/structs/EveObjectDetectionStructs.py
- Command line
-
hf download hf://spaces/LatticeSemi/sensAI-Generic-Object-Detection/shared/eve_python/structs/EveObjectDetectionStructs.py
-
curl -L -o EveObjectDetectionStructs.py https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/eve_python/structs/EveObjectDetectionStructs.py
796 Bytes
| import ctypes | |
| from ctypes_enum import CtypesEnum | |
| from .CDetectionStructs import * | |
| from .EveControlOption import * | |
| from .EveErrors import * | |
| EVE_MAX_OBJECT_DETECTION_CLASSES = 128 | |
| class EveObjectDetectionOptions(ctypes.Structure): | |
| _fields_ = [ | |
| ("enabled", ctypes.c_int), | |
| ("modelPath", ctypes.c_byte * 512), | |
| ("nmsThreshold", ctypes.c_float), | |
| ("iouThreshold", ctypes.c_float), | |
| ("classNames", ctypes.c_byte * EVE_CLASS_ID_NAME_SIZE * EVE_MAX_OBJECT_DETECTION_CLASSES), | |
| ("classCount", ctypes.c_int), | |
| ("error", ctypes.c_int), | |
| ] | |
| class EvePersonDetectionOptions(ctypes.Structure): | |
| _fields_ = [ | |
| ("enabled", ctypes.c_int), | |
| ("error", ctypes.c_int), | |
| ] | |
| class EveDetectionData(ctypes.Structure): | |
| _fields_ = [ | |
| ("data", ctypes.POINTER(CDetectionData)), | |
| ("error", ctypes.c_int), | |
| ] | |