Source code for ovl.thresholds.threshold

from abc import abstractmethod


[docs]class Threshold: """ Threshold is a base class for Threshold object that threshold an image (Color, binary or otherwise), threshold is then followed up """
[docs] @abstractmethod def convert(self, image): pass
[docs] @abstractmethod def validate(self, *args, **kwargs) -> bool: pass