Example #1
0
    def search(self):
        faceTest = Face()
        JPG = "Capture.png"
        path = faceTest.search(JPG)
        # If this customer has been existed in the faces directory

        if path != None:
            #Show the picture of current customer
            self.getCustomerInfor(path)

        # If not,load into the directory
        else:
            extensive_name = JPG[len(JPG) - 4:len(JPG)]
            self.loadEvent(extensive_name)
            print("Loaded successfully!")