aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2024-07-02 17:20:34 +0200
committerThéo de la Hogue2024-07-02 17:20:34 +0200
commit7b82b09e87d1475acf5040c67323421699a3ad06 (patch)
treebe7eeddba3904c38dd12f1dc8d993a79e3bc31d2
parent54229c63622782d15902d2389350317f2271a8c8 (diff)
downloadargaze-7b82b09e87d1475acf5040c67323421699a3ad06.zip
argaze-7b82b09e87d1475acf5040c67323421699a3ad06.tar.gz
argaze-7b82b09e87d1475acf5040c67323421699a3ad06.tar.bz2
argaze-7b82b09e87d1475acf5040c67323421699a3ad06.tar.xz
Hidding help by default.
-rw-r--r--src/argaze/__main__.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/argaze/__main__.py b/src/argaze/__main__.py
index 77875a8..76e9664 100644
--- a/src/argaze/__main__.py
+++ b/src/argaze/__main__.py
@@ -60,9 +60,10 @@ def load_context(args):
if draw_help:
cv2.rectangle(image, (int(width/4), int(height/3)), (int(width*3/4), int(height*2/3)), (127, 127, 127), -1)
+ cv2.rectangle(image, (int(width/4), int(height/3)), (int(width*3/4), int(height*2/3)), (255, 255, 255), 1)
info_stack = 1
- cv2.putText(image, f'HELP', (int(width/4)+20, int(height/3)+(info_stack*40)), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv2.LINE_AA)
+ cv2.putText(image, f'(H)elp', (int(width/4)+20, int(height/3)+(info_stack*40)), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv2.LINE_AA)
# Blanck line
info_stack += 1
@@ -82,13 +83,14 @@ def load_context(args):
info_stack += 1
cv2.putText(image, f'Press f to pause/resume visualisation', (int(width/4)+20, int(height/3)+(info_stack*40)), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv2.LINE_AA)
-
- info_stack += 1
- cv2.putText(image, f'Press h to hide/show this help panel', (int(width/4)+20, int(height/3)+(info_stack*40)), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv2.LINE_AA)
info_stack += 1
cv2.putText(image, f'Press Escape to quit', (int(width/4)+20, int(height/3)+(info_stack*40)), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv2.LINE_AA)
+ else:
+
+ cv2.putText(image, f'(H)elp', (width-105, height - 15), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv2.LINE_AA)
+
if args.display is not None:
display_size = tuple(args.display)
@@ -127,7 +129,7 @@ def load_context(args):
# Draw parameters
draw_pipeline = True
- draw_help = True
+ draw_help = False
# Waiting for 'ctrl+C' interruption
with contextlib.suppress(KeyboardInterrupt), os.fdopen(pipe_file) if args.pipe_path is not None else contextlib.nullcontext() as pipe: