I am building a python library and I writing a function like this:
def addimg(image) -> None:
now I want to specify the type of image as an OpenCV image (e.g., the result of cv2.readimg()). Is there an elegant way to do that?
The same question for PyTorch or TensorFlow tensors.
Otherwise, my library ends up with every second variable having no specified type and I think this looks really ugly.
Thank you very much! Best, Bernhard