From 576151a663183bd4b24817597b4a5a6cbc646f8a Mon Sep 17 00:00:00 2001
From: minibot-1 <paddy-hofmann@web.de>
Date: Fri, 17 Mar 2023 16:56:46 +0000
Subject: [PATCH] hotfix

---
 minibot_vision/scripts/SignDetector.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/minibot_vision/scripts/SignDetector.py b/minibot_vision/scripts/SignDetector.py
index 840cd4d..c77cd71 100755
--- a/minibot_vision/scripts/SignDetector.py
+++ b/minibot_vision/scripts/SignDetector.py
@@ -122,7 +122,8 @@ def detect_sign(img_rgb_stream, image_timestamp):
 
     # publish patch for capture images
     if enable_capture_images:
-        publish_img_patch(patches[0])
+        if len(patches) >= 1:
+            publish_img_patch(patches[0])
 
     # cut to multiple images at keypoints
     text = []
-- 
GitLab