def addNewFace(self, location): fc = Face(self.weights) fc.setID(self.faceIDCount) self.totalFaceCount += 1 self.faceIDCount += 1 fc.setPosition(location) self.visibleFaceList.append(fc)
def addNewFace(self, location): """create new face object for a newly detected face""" fc = Face(self.weights) fc.setID(self.faceIDCount) self.totalFaceCount += 1 self.faceIDCount += 1 fc.setPosition(location) self.visibleFaceList.append(fc)