diff --git a/camera_calibration/src/camera_calibration/camera_calibrator.py b/camera_calibration/src/camera_calibration/camera_calibrator.py index 55614a199..3b528c9b5 100755 --- a/camera_calibration/src/camera_calibration/camera_calibrator.py +++ b/camera_calibration/src/camera_calibration/camera_calibrator.py @@ -276,7 +276,8 @@ def on_mouse(self, event, x, y, flags, param): if self.c.goodenough: if 180 <= y < 280: print("**** Calibrating ****") - self.c.do_calibration() + # Perform calibration in another thread to prevent UI blocking + threading.Thread(target=self.c.do_calibration, name="Calibration").start() self.buttons(self._last_display) self.queue_display.put(self._last_display) if self.c.calibrated: