def show(label_classes: [str], labelFormatter: LabelFormatterInterface, src: str, des: str, bak: str = None): """ Initialize and start app. :param src: source directory from which images are to be taken; subdirectories included. :param des: destination directory where labeled images are stored. :param bak: directory to store images that were left unlabeled. Leaving this option None will add a label to the image as per the label formatter used. :param label_classes: A list of class names. :return: """ app = QtWidgets.QApplication(sys.argv) ui = Ui_MainWindow(label_classes=label_classes, src=src, des=des, bak=bak, labelFormatter=labelFormatter) ui.show() sys.exit(app.exec_())