def detect_faces(self, filename, image):
Extract the face from a frame (If alignments file not found)
inp = {"filename": filename,
"image": image}
self.extractor.input_queue.put(inp)
faces = next(self.extractor.detected_faces())
final_faces = [face for face in faces["detected_faces"]]
After Change
def detect_faces(self, filename, image):
Extract the face from a frame (If alignments file not found)
self.extractor.input_queue.put(ExtractMedia(filename, image))
faces = next(self.extractor.detected_faces())
final_faces = [face for face in faces.detected_faces]