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

Before Change


            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

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: 4

Non-data size: 4

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: biolab/orange3
Commit Name: 8493b7fe7d46e0473f573498de79dbf82c1c46d5
Time: 2012-10-29
Author: devnull@localhost
File Name: Orange/classification/naive_bayes.py
Class Name: BayesClassifier
Method Name: predict


Project Name: dnouri/skorch
Commit Name: b11abe44d9c30b5dd4d53f62f5e6f37b3ad7b319
Time: 2017-11-15
Author: marian.tietz@ottogroup.com
File Name: examples/word_language_model/predict.py
Class Name:
Method Name:


Project Name: automl/auto-sklearn
Commit Name: 1ec4287799a1ccfc019f564f3ce0de468de6e313
Time: 2015-04-09
Author: springj@informatik.uni-freiburg.de
File Name: ParamSklearn/implementations/ProjLogit.py
Class Name: ProjLogit
Method Name: predict