undresser / opencv_transform_annotation.py
Spooke's picture
Upload 27 files
ac6ff10 verified
raw
history blame contribute delete
297 Bytes
#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