update template code

This commit is contained in:
phatakmr
2025-10-13 14:48:00 +02:00
parent c9d159fcc6
commit 8f637a4a0d
46 changed files with 2955 additions and 1 deletions

27
mmp/a3/annotation.py Normal file
View File

@@ -0,0 +1,27 @@
from typing import List
import numpy as np
class AnnotationRect:
"""Exercise 3.1"""
def __init__(self, x1, y1, x2, y2):
raise NotImplementedError()
def area(self):
raise NotImplementedError()
def __array__(self) -> np.ndarray:
raise NotImplementedError()
@staticmethod
def fromarray(arr: np.ndarray):
raise NotImplementedError()
def read_groundtruth_file(path: str) -> List[AnnotationRect]:
"""Exercise 3.1b"""
raise NotImplementedError()
# put your solution for exercise 3.1c wherever you deem it right