<gh_stars>0
from ctypes import Structure, c_double, c_uint8, c_uint16, c_char


class Detection(Structure):
    _fields_ = [
        ("x", c_double),
        ("y", c_double),
        ("w", c_double),
        ("h", c_double),
        ("cxt", c_double),
        ("cnf", c_double),
        ("cls", c_uint8),
        ("id", c_uint16)
    ]

class DetectionArray(Structure):
    _fields_ = [("detections", Detection * 8)]

from ctypes import Structure, c_double, c_uint8, c_uint16, c_char


class Detection(Structure):
    _fields_ = [
        ("x", c_double),
        ("y", c_double),
        ("w", c_double),
        ("h", c_double),
        ("cxt", c_double),
        ("cnf", c_double),
        ("cls", c_uint8),
        ("id", c_uint16)
    ]

class DetectionArray(Structure):
    _fields_ = [("detections", Detection * 8)]