Skip to content

Commit 22e01d4

Browse files
committed
bugfix: CVImage should inherit from Image, not from ABC.
1 parent b02a6a9 commit 22e01d4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mltu/annotations/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __call__(self) -> np.ndarray:
4949
pass
5050

5151

52-
class CVImage(ABC):
52+
class CVImage(Image):
5353
""" Image class for storing image data and metadata (opencv based)
5454
5555
Args:

mltu/augmentors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- RandomSaltAndPepper
1515
"""
1616

17+
1718
def randomness_decorator(func):
1819
""" Decorator for randomness """
1920
def wrapper(self, image: Image, annotation: typing.Any) -> typing.Tuple[Image, typing.Any]:

0 commit comments

Comments
 (0)