Datasets:
Download tools/Validators/ImgLabels.py from stephanieysh/MetaPKLot-Dataset: direct link, hf CLI and curl.
- Browser
- Download file 471 Bytes
-
https://huggingface.co/datasets/stephanieysh/MetaPKLot-Dataset/resolve/main/tools/Validators/ImgLabels.py
- Command line
-
hf download hf://datasets/stephanieysh/MetaPKLot-Dataset/tools/Validators/ImgLabels.py
-
curl -L -o ImgLabels.py https://huggingface.co/datasets/stephanieysh/MetaPKLot-Dataset/resolve/main/tools/Validators/ImgLabels.py
471 Bytes
| 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 |