diff --git a/gui/src/aaregui/threads/axis_video_thread.py b/gui/src/aaregui/threads/axis_video_thread.py index 547a9da9..24accb63 100644 --- a/gui/src/aaregui/threads/axis_video_thread.py +++ b/gui/src/aaregui/threads/axis_video_thread.py @@ -117,9 +117,6 @@ class VideoThread(QThread): height, width, channel = rgb_frame.shape bytes_per_line = 3 * width qt_image = QImage(rgb_frame.data, width, height, bytes_per_line, QImage.Format.Format_RGB888) - qt_image = qt_image.copy() - if self.is_busy: - self._draw_busy_overlay(qt_image) # Store as last good frame self.last_good_frame = qt_image @@ -130,43 +127,6 @@ class VideoThread(QThread): if self.last_good_frame is not None: self.frame_ready.emit(self.last_good_frame) - def _draw_busy_overlay(self, image: QImage): - painter = QPainter(image) - painter.save() - painter.resetTransform() - - font = QFont() - font.setPointSize(24) - font.setBold(True) - painter.setFont(font) - - painter.setPen(QPen(QColor(255, 255, 255, 200), 2, Qt.PenStyle.SolidLine)) - painter.setBrush(QColor(255, 0, 0, 150)) - - text = "ROBOT BUSY" - - fm = QFontMetrics(font) - text_rect = fm.boundingRect(text) - padding = 16 - - vw = self.viewport().width() - vh = self.viewport().height() - - bg_w = text_rect.width() + 2 * padding - bg_h = text_rect.height() + 2 * padding - position_x = int((vw - bg_w) / 2) - position_y = int((vh - bg_h) / 2) - - bg_rect = QRect(position_x, position_y, bg_w, bg_h) - - painter.setPen(QPen(QColor(255, 255, 255, 220))) - painter.setBrush(QColor(255, 215, 0, 180)) - painter.drawRoundedRect(bg_rect, 10, 10) - - painter.setPen(QPen(QColor(255, 255, 255))) - painter.drawText(QPoint(position_x + padding, position_y + padding + fm.ascent()), text) - - painter.restore() def stop(self): self.running = False