def METHOD_NAME(self, img):
    """
    Process an image with the model and return the results.
    TODO refactor event creation
    """
    from server import Event
    if self.type == 'classification':
        results = self.net.Classify(img)
        if results[0] >= 0:
            if len(self.results) > 0:
                last_results = self.results[-1]
            else:
                last_results = (-1, -1)
            if results[0] != last_results[0]:
                self.last_event = Event(self.stream, self, results[0], self.get_class_name(results[0]), results[1])
                #self.server.events.append(self.last_event)
            else:
                self.last_event.update(results[1])
    elif self.type == 'detection':
        results = self.net.Detect(img, overlay='none')
    #print(f"{self.name} results:")
    #pprint(results)
    self.results.append(results)
    return results