diff --git a/image_recognition_face_recognition/src/image_recognition_face_recognition/face_recognizer.py b/image_recognition_face_recognition/src/image_recognition_face_recognition/face_recognizer.py index be30698f..c61a656f 100644 --- a/image_recognition_face_recognition/src/image_recognition_face_recognition/face_recognizer.py +++ b/image_recognition_face_recognition/src/image_recognition_face_recognition/face_recognizer.py @@ -182,6 +182,7 @@ def train(self, face_representation: np.ndarray, name: str) -> None: def save_trained_faces(self, file_name): pickle.dump(self._trained_faces, file_name) + def restore_trained_faces(self, file_name): print(file_name) - self._trained_faces = pickle.load(file_name) \ No newline at end of file + self._trained_faces = pickle.load(file_name)