ImageClassifier.py 339 B

1234567
  1. from py.Session import MotionImage
  2. # Abstract class which represents an image classifier.
  3. # Returns a real number for any image which can then be thresholded.
  4. class AbstractImageClassifier():
  5. def evaluate(self, motion_img: MotionImage, display=False) -> int:
  6. raise NotImplementedError("Please implement evaluate(motion_img)!")