beaupreda's picture
Upload sensAI-Generic-Object-Detection with upload_repo.py
13170f7 verified
Raw
History Blame Contribute Delete
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),
]