fix some cython code

This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-03-29 21:18:18 +03:00
parent ad5530b9ef
commit 6269a7485c
32 changed files with 17108 additions and 2728 deletions
+3 -1
View File
@@ -3,7 +3,8 @@ cdef class Detection:
cdef public str annotation_name
cdef public int cls
cdef public overlaps(self, Detection det2, float confidence_threshold)
def __init__(self, double x, double y, double w, double h, int cls, double confidence): ...
cdef bint overlaps(self, Detection det2, float confidence_threshold)
cdef class Annotation:
cdef public str name
@@ -12,4 +13,5 @@ cdef class Annotation:
cdef public list[Detection] detections
cdef public bytes image
def __init__(self, str name, str original_media_name, long ms, list[Detection] detections): ...
cdef bytes serialize(self)