INNER CODE UNIT · Python

__call__

GeekAlexis/FastMOT · fastmot/detector.py:31

    def __call__(self, frame):
        """Detect objects synchronously."""
        self.detect_async(frame)
        return self.postprocess()

    @abc.abstractmethod
    def detect_async(self, frame):
        raise NotImplementedError

    @abc.abstractmethod
    def postprocess(self):
        raise NotImplementedError


class SSDDetector(Detector):
    def __init__(self, size,
                 class_ids,
                 model='SSDInceptionV2',

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…