def main(): img = cv2.imread(sys.argv[1]) pipeline = Pipeline() pipeline.setSource(img) # pipeline.setVideoSource('challenge_video.mp4') pipeline.addStep(combining_thresholds.combined_threshold2) # pipeline.addStep(combining_thresholds.dir_threshold) app = QtGui.QApplication(sys.argv) myapp = MainWindow(pipeline) myapp.showMaximized() sys.exit(app.exec_())
import sys import ctypes import os if hasattr(sys, 'frozen'): os.environ['PATH'] = sys._MEIPASS + ";" + os.environ['PATH'] from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import QApplication from app import MainWindow #app start if __name__ == '__main__': try: ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID( "RhodesNoWorkers") except: pass app = QApplication(sys.argv) app.setWindowIcon(QIcon("src/favicon.png")) #splash = splashScreen.splashScreen() #splash.effect() app.processEvents() mainWin = MainWindow() mainWin.showMaximized() #splash.finish(mainWin) sys.exit(app.exec_())