Refactor annotation handling and inference processing: Update 'time' attribute in Annotation class to private, streamline video time formatting in main processing function, and adjust annotations dictionary access in detection conversion. Ensure consistency in handling input frames during inference.

This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-03-26 00:40:02 +02:00
parent 4afa1a4eec
commit 1e4ef299f9
6 changed files with 7 additions and 17 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ cdef class Detection:
cdef class Annotation:
cdef public str name
cdef public str original_media_name
cdef public long time
cdef long time
cdef public list[Detection] detections
cdef public bytes image