def Upload(self): if self.address_init.toPlainText( ) == "" and self.address_ex.toPlainText() == "": QMessageBox.warning(self, 'Error', "You should select file or Enter Video Info") else: args = (self.address_init.toPlainText(), self.address_ex.toPlainText(), self.user_id, self.comboBox.currentIndex() + 1) main_function(1, *args) self.close()
def __init__(self, skeleton_id, input_id): super().__init__() self.setupUi(self) self.show() self.skeleton_id = skeleton_id self.input_id = input_id self.connectFunction() args = (self.skeleton_id, self.input_id) main_function(3, *args) self.graph() self.Video()
def Store(self): if self.input_id != 0 and self.target_id != 0: if self.input_id[0] == self.target_id[2]: args = [self.user_id, self.input_id[0], self.target_id[0]] main_function(8, *args) self.close() self.window = SuccessWindow() else: QMessageBox.warning(self, 'Error', "You should select same exercise") else: QMessageBox.warning(self, 'Error', "You should select Both")
def __init__(self, skeleton_id, extraction_id, input_id): super().__init__() self.setupUi(self) self.show() self.skeleton_id = skeleton_id self.extraction_id = extraction_id self.connectFunction() args = (self.skeleton_id, self.extraction_id, input_id) main_function(4, *args) self.graph() self.Video() QMessageBox.about( self, "Chungyo", "Finish resize the trainer skeleton to your shape!!\nPlease click 'HOME' button and return main page." )
def __init__(self, input_id, sample_id): super().__init__() self.setupUi(self) self.m_movie_gif = QMovie("ui/image/loading.gif") self.m_movie_gif.setSpeed(350) self.frame.setMovie(self.m_movie_gif) self.frame.setAlignment(Qt.AlignCenter) self.m_movie_gif.start() self.bar_msg.setText("Loading...") self.show() self.connectFunction() args = (input_id, sample_id) main_function(6, *args) self.bar_msg.setText("Progress") self.Video() QMessageBox.about( self, "Cungyo", "Your exercise is stored in our data base.\nPlease click 'NEXT' button and finish your analyze." )
def __init__(self, mode=0, input_id=0, extraction_id=0): super().__init__() self.setupUi(self) self.mode = mode self.input_id = input_id self.extraction_id = extraction_id self.show() self.connectFunction() self.isSkipped = False self.stillness = 10 args = (input_id, self.stillness) self.skeleton, self.found_num, self.skeleton_id = main_function( 2, *args) if self.found_num == -1: QMessageBox.warning(self, 'Error', "You should select file or Enter Video Info") self.close() self.graph() self.Video()