mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:16:30 +00:00
19 lines
454 B
Cython
19 lines
454 B
Cython
cdef class Detection:
|
|
cdef public double x, y, w, h, confidence
|
|
cdef public str annotation_name
|
|
cdef public int cls
|
|
|
|
cdef public overlaps(self, Detection det2)
|
|
|
|
cdef class Annotation:
|
|
cdef public str name
|
|
cdef public str original_media_name
|
|
cdef long time
|
|
cdef public list[Detection] detections
|
|
cdef public bytes image
|
|
|
|
cdef format_time(self, ms)
|
|
cdef bytes serialize(self)
|
|
cdef to_str(self, class_names)
|
|
|