xrange(max(labels)) would start count at 1, were as we want it to start at 0. So that len(list_of_labels) == len(subject_names) If the subject detected was the last folder used for training, we hit an Key Error, on self.model.subject_name[prediction].
… common.py cv2 helper, adding the application screenshot. README is in progress.
…ta, where the first item in list is the predicted label and the second item is generic classifier output. You can use this output to perform thresholding for example, so you can reject predictions made by a PredictableModel.
…se see apps/videofacerec/app_screenshot.jpg for a screenshot (using my non-published celebrity database as training).