Files
annotations/Azaion.AI/annotation.pyx
T
Alex Bezdieniezhnykh e21dd7e70f add pxd headers for correct work
fixes definitions
can run until API call
2025-01-16 17:56:58 +02:00

13 lines
395 B
Cython

cdef class Detection:
def __init__(self, double x, double y, double w, double h, int cls):
self.x = x
self.y = y
self.w = w
self.h = h
self.cls = cls
cdef class Annotation:
def __init__(self, bytes image_bytes, float time, list[Detection] detections):
self.image = image_bytes
self.time = time
self.detections = detections