cdef class Detection: cdef public double x, y, w, h, confidence cdef public int cls cdef class Annotation: cdef bytes image cdef long time cdef public list[Detection] detections cdef bytes serialize(self)