27f9606ab6bb050ce169567dffebc29b4c3b4775,hook/zmes_hook_helpers/face.py,Face,detect,#Face#Any#,73

Before Change



        for idx, face_encoding in enumerate(face_encodings):
            // See if the face is a match for the known face(s)
            matches = face_recognition.compare_faces(self.known_face_encodings, face_encoding)
            if True in matches:
                first_match_index = matches.index(True)
                name = self.known_face_names[first_match_index]
                matched_face_names.append(name)
                // top right, lower left
            loc = face_locations[idx]
            // convert to left top, right bottom
            matched_face_names.append(g.config["unknown_face_name"])

After Change


        matched_face_rects = []

        for idx,face_encoding in enumerate(face_encodings):
            preds = self.svm_model.predict_proba([face_encoding])[0]
            best_pred_ndx = np.argmax(preds)
            best_pred = preds[best_pred_ndx]

            g.logger.debug("face:{} matched with: {}".format(self.svm_model.classes_[best_pred_ndx], best_pred))
            loc = face_locations[idx]
            if best_pred >= g.config["face_min_confidence"]:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pliablepixels/zmeventnotification
Commit Name: 27f9606ab6bb050ce169567dffebc29b4c3b4775
Time: 2019-11-14
Author: pliablepixels@gmail.com
File Name: hook/zmes_hook_helpers/face.py
Class Name: Face
Method Name: detect


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: 7c8f60b92f031c91b74ec40d3ca944839c65d514
Time: 2018-05-31
Author: bader.d24@gmail.com
File Name: src/skmultiflow/classification/trees/hoeffding_tree.py
Class Name: HoeffdingTree
Method Name: predict


Project Name: Pinafore/qb
Commit Name: 2677b6d77f6f06c05a980b86e86e0bf4dd495f62
Time: 2016-09-27
Author: ski.rodriguez@gmail.com
File Name: qanta/extractors/classifier.py
Class Name: Classifier
Method Name: score_guesses