cdef class Detection:
    cdef public double x, y, w, h, confidence
    cdef public int cls

    cdef bint overlaps(self, Detection det2, float confidence_threshold)

cdef class Annotation:
    cdef public str name
    cdef public str original_media_name
    cdef public long time
    cdef public list[Detection] detections
    cdef public bytes image
