Example #1
0
    def click5():
        """
        respond to the button5 click
        """
        # toggle button colors as a test
        if (button_flag[5] % 2 == 1):
            button5.config(bg="white")
            if button_flag[5] == 1:
                aug_img = augmentation_new.Make_Data(
                    'C:/Facenet-Real-time-Tensorflow/avengers/olsen/olsen.gif',
                    'olsen')
                pre_image.append(aug_img)
                train_main.image_train(pre_image)
            button_flag[5] += 1

        elif (button_flag[5] % 2 == 0):
            button5.config(bg="green")
            button_flag[5] += 1
Example #2
0
    def click1():
        """
        respond to the button1 click
        """
        # toggle button colors as a test
        if (button_flag[1] % 2 == 1):
            button1.config(bg="white")
            if button_flag[1] == 1:
                aug_img = augmentation_new.Make_Data(
                    'C:/Facenet-Real-time-Tensorflow/avengers/evans/evans.gif',
                    'evans')

                train_main.image_train(pre_image)
            button_flag[1] += 1

        elif (button_flag[1] % 2 == 0):
            button1.config(bg="green")
            button_flag[1] += 1