Spaces:
Running
Running
File size: 297 Bytes
2eacc9a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#Object annotation class:
class BodyPart:
def __init__(self, name, xmin, ymin, xmax, ymax, x, y, w, h):
self.name = name
#Bounding Box:
self.xmin = xmin
self.ymin = ymin
self.xmax = xmax
self.ymax = ymax
#Center:
self.x = x
self.y = y
#Dimensione:
self.w = w
self.h = h |