def startDetection(self): msgBox = QMessageBox() msgBox.setIcon(QMessageBox.Information) msgBox.setText("Do you confirm these coordiations?") msgBox.setWindowTitle("Confirmation") msgBox.setStandardButtons(QMessageBox.Ok | QMessageBox.Cancel) returnValue = msgBox.exec() if returnValue == QMessageBox.Ok: detector = ObjectDetector(self.output) detector.detect_motion()
def launchParkingDetector(self): ob = ObjectDetector(self.data_file) ob.detect_motion()