mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 13:26:30 +00:00
add pxd headers for correct work
fixes definitions can run until API call
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user