Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
File size: 767 Bytes
13170f7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | import ctypes
from ctypes_enum import CtypesEnum
from .CROIStructs import *
from .EveControlOption import *
from .EveErrors import *
EVE_ROI_MAX_COUNT = 20
class EveROI(ctypes.Structure):
_fields_ = [
("id", ctypes.c_uint),
("x", ctypes.c_int),
("y", ctypes.c_int),
("width", ctypes.c_int),
("height", ctypes.c_int),
("scoreThresholdForInactive", ctypes.c_double),
]
class EveROIOptions(ctypes.Structure):
_fields_ = [
("enabled", ctypes.c_int),
("roiSelectionResponseTime", ctypes.c_double),
("roiCount", ctypes.c_uint),
("rois", EveROI * EVE_ROI_MAX_COUNT),
("error", ctypes.c_int),
("headVectorOnly", ctypes.c_uint),
]
class EveROIScoreData(ctypes.Structure):
_fields_ = [
("data", CROIScoreData),
("error", ctypes.c_int),
]
|