diff options
author | Théo de la Hogue | 2024-07-23 23:19:45 +0200 |
---|---|---|
committer | Théo de la Hogue | 2024-07-23 23:19:45 +0200 |
commit | 6c9a2c467856ab501022eb0aabc38495538e5db6 (patch) | |
tree | 4f2880049d5d60c1537df60b7faa64b0cf1b07a8 | |
parent | fe3efbaa21445cebc868a5522eb51e8748d0a31c (diff) | |
download | argaze-6c9a2c467856ab501022eb0aabc38495538e5db6.zip argaze-6c9a2c467856ab501022eb0aabc38495538e5db6.tar.gz argaze-6c9a2c467856ab501022eb0aabc38495538e5db6.tar.bz2 argaze-6c9a2c467856ab501022eb0aabc38495538e5db6.tar.xz |
Adding fps attribute to slow image refreshing.
-rw-r--r-- | src/argaze/__main__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/argaze/__main__.py b/src/argaze/__main__.py index c65d6e5..e4363ca 100644 --- a/src/argaze/__main__.py +++ b/src/argaze/__main__.py @@ -182,7 +182,7 @@ def load_context(args): pass # Key interaction - key_pressed = cv2.waitKey(40) + key_pressed = cv2.waitKey( int(1000 / args.fps) ) #print("key_pressed", key_pressed) # f: disable/enable pipeline drawing @@ -323,6 +323,7 @@ parser_load.add_argument('context_file', metavar='CONTEXT_FILE', type=str, help= parser_load.add_argument('-v', '--verbose', action='store_true', default=False, help='enable verbose mode to print information in console') parser_load.add_argument('-p', '--pipe_path', metavar='PIPE_PATH', type=str, default=None, help='enable pipe communication to execute external commands') parser_load.add_argument('-x', '--display', metavar='DISPLAY', nargs="+", type=int, default=None, help='adapt windows to display dimension') +parser_load.add_argument('-f', '--fps', metavar='FPS', type=int, default=15, help='set window fps') parser_load.add_argument('--no-window', action='store_true', default=False, help='disable window mode') parser_load.set_defaults(func=load_context) |