<filename>src/main/anonymization/base_anonymization.py<gh_stars>100-1000
from abc import ABC, abstractmethod


class BaseAnonymization(ABC):
    """
    Base anonymization class for the detection and the semantic anonymization
    """
    @abstractmethod
    def blurring(self, image, response, degree=None, id=None, mask=None):
        pass

    @abstractmethod
    def pixelating(self, image, response, degree=None, id=None, mask=None):
        pass

    @abstractmethod
    def blackening(self, image, response, degree=None, id=None, mask=None):
        pass

<filename>src/main/anonymization/base_anonymization.py<gh_stars>100-1000
from abc import ABC, abstractmethod


class BaseAnonymization(ABC):
    """
    Base anonymization class for the detection and the semantic anonymization
    """
    @abstractmethod
    def blurring(self, image, response, degree=None, id=None, mask=None):
        pass

    @abstractmethod
    def pixelating(self, image, response, degree=None, id=None, mask=None):
        pass

    @abstractmethod
    def blackening(self, image, response, degree=None, id=None, mask=None):
        pass

Base anonymization class for the detection and the semantic anonymization