예제 #1
0
 def __init__(self):
     QMainWindow.__init__(self)
     Ui_MainWindow.__init__(self)
     self.setupUi(self)
     self.setWindowTitle("人臉特徵點小工具")
     self.btn_load_pic.clicked.connect(self.load_image_to_pic_view_1)
     self.btn_load_landmarks.clicked.connect(self.load_landmarks_by_file)
     self.btn_export_landmarks.clicked.connect(self.save_landmarks_by_file)
     self.btn_delete_last_point.clicked.connect(self.delete_last_point)
     self.set_default()
예제 #2
0
파일: AECA.py 프로젝트: hyq123999/Slippage
 def __init__(self):
     QMainWindow.__init__(self)
     Ui_MainWindow.__init__(self)
     super().__init__()
     self.dirname = os.path.dirname(os.path.abspath(__file__))
     self.core = Engine()
     self.settings=QSettings(os.path.join(self.dirname,"setting.ini"),QSettings.IniFormat)
     self.setupUi(self)
     self.initAction()
     self.show()
     self.projectFile = None
     if sys.argv.__len__() > 1:
         self.loadProjectFile(sys.argv[-1])
예제 #3
0
파일: main.py 프로젝트: tlr-team/Compilers2
    def __init__(self, root):
        Ui_MainWindow.__init__(root)
        self.root = root
        self.setupUi(root)
        # vars
        self.current_filename = None
        #
        self.associate_actions()

        #infos
        self.type_collector_errors = []
        self.type_builder_errors = []
        self.type_checker_errors = []
        self.type_inferer_errors = []
        self.context = None
        self.scope = None
        self.ast = None
예제 #4
0
    def __init__(self):
        # Init the objects.
        QtWidgets.QMainWindow.__init__(self)
        Ui_MainWindow.__init__(self)
        InceptionV3.__init__(self)
        BCNN.__init__(self)

        # Set up the UI.
        self.setupUi(self)

        # member variables.
        self.imagepath = ''
        self.classname = ''
        self.classID = -1
        self.prdclassname = ''
        self.totalCount = 0
        self.rightCount = 0
        self.wrongCount = 0
        self.accuracy = 0.0

        # Init our customized UI & add functions to it.
        self.initUI()