| import numpy as np | |
| import cv2 | |
| class ImgLabels: | |
| def __init__(self, masks = list(), occupiedRRs = list(), emptyRRs = list(), unknownRRs = list(), annotationsRectangleP1 = (0,0), annotationsRectangleP2 = (0,0)): | |
| self.masks = masks | |
| self.annotationsRectangleP1 = annotationsRectangleP1 | |
| self.annotationsRectangleP2 = annotationsRectangleP2 | |
| self.occupiedRRs = occupiedRRs | |
| self.emptyRRs = emptyRRs | |
| self.unknownRRs = unknownRRs |