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

Before Change


            // 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]

After Change



            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"]:
                 matched_face_names.append(self.svm_model.classes_[best_pred_ndx])
            else:     
                g.logger.debug ("face confidence is less than {}, marking it unknown".format(g.config["face_min_confidence"]))
                matched_face_names.append(g.config["unknown_face_name"])
            matched_face_rects.append((loc[3], loc[0], loc[1], loc[2]))
            conf.append(best_pred)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: ilastik/ilastik
Commit Name: 0c1057b85f6981f7262cdb52f89f2099b96f4891
Time: 2014-04-24
Author: webmaster@burgerdev.de
File Name: ilastik/applets/thresholdTwoLevels/_OpGraphCut.py
Class Name: OpGraphCut
Method Name: setupOutputs


Project Name: ilastik/ilastik
Commit Name: 0c1057b85f6981f7262cdb52f89f2099b96f4891
Time: 2014-04-24
Author: webmaster@burgerdev.de
File Name: ilastik/applets/thresholdTwoLevels/_OpObjectsSegment.py
Class Name: OpObjectsSegment
Method Name: setupOutputs