mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 09:46:30 +00:00
e21dd7e70f
fixes definitions can run until API call
13 lines
395 B
Cython
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 |