def delFinished(self, info_str): self.manager.writeCSV(self.data) self.manager.writeZhCSV(self.zhData) train.trainFace(self.model) dialog = QtGui.QMessageBox() dialog.setWindowTitle('info') dialog.setWindowModality(Qt.ApplicationModal) # dialog.setFixedSize(300, 300) font = QtGui.QFont() font.setPointSize(15) dialog.setFont(font) dialog.setText(info_str) if dialog.exec_(): pass
def run(self): train.trainFace(self.model) print 'train faces over' self.model.load(self.trainFileName) print 'model reload over'
def run(self): train.trainFace(self.model) print('人脸训练完毕') self.model.load(self.trainFileName) print('模型加载完毕')
def run(self): train.trainFace(self.model) print 'train faces over' self.model.load(self.trainFileName) print 'model reload over'