app = QApplication(sys.argv) win = GUI(100, 100, 900, 225, "Autonomous Car") win.show() sys.exit(app.exec_()) """ while (True): print( "What do you want to do? (Image & Video Processing: 1, Simulation Processing: 2, Driving: 3, Exit: 0)" ) decision = int(input()) if decision == 1: imageName = "RoadPhotoWithSign.png" videoName = "RoadVideo_Trim1.mp4" imageProcessing = ImageProcessing(imageName) imageProcessing.displayingScreen(imageName, imageProcessing.imageFunction()) videoProcessing = VideoProcessing(videoName) videoProcessing.videoFunction() elif decision == 2: print( "Which camera do you use in the simulation (Main Camera:1, Side Camera: 2, Exit:0)" ) camera = int(input()) if camera == 1: simulationProcessing = SimulationProcessing("MainCamera") elif camera == 2: simulationProcessing = SimulationProcessing("SideCamera") elif camera == 0: break else: print("Wrong input!")
else: print("Choose Camera!!!") app = QApplication(sys.argv) win = GUI(100, 100, 900, 225, "Autonomous Car") win.show() sys.exit(app.exec_()) """ while(True): print("What do you want to do? (Image & Video Processing: 1, Simulation Processing: 2, Driving: 3, Exit: 0)") decision = int(input()) if decision == 1: imageName = "RoadPhotoWithSign.png" videoName = "RoadVideo_Trim1.mp4" imageProcessing = ImageProcessing(imageName) imageProcessing.displayingScreen(imageName, imageProcessing.imageFunction()) videoProcessing = VideoProcessing(videoName) videoProcessing.videoFunction() elif decision == 2: print("Which camera do you use in the simulation (Main Camera:1, Side Camera: 2, Exit:0)") camera = int(input()) if camera == 1: simulationProcessing = SimulationProcessing("MainCamera") elif camera == 2: simulationProcessing = SimulationProcessing("SideCamera") elif camera == 0: break else: print("Wrong input!") break simulationProcessing.simulationFunction()