Skip to content

Commit

Permalink
change --gui option of mars to --cui option
Browse files Browse the repository at this point in the history
  • Loading branch information
ohshima-axell committed Sep 13, 2024
1 parent cf6c1e5 commit ccab28f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action_recognition/mars/mars.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@
help='Number of outputs for category.',
)
parser.add_argument(
'--gui',
'--cui',
action='store_true',
help='Display preview in GUI.'
help="Don't display preview in GUI."
)
args = update_parser(parser)

Expand Down Expand Up @@ -160,7 +160,7 @@ def recognize_from_image():
preview_img = imread(sorted_inputs_path[
next_input_index - args.duration
])
if args.gui:
if not args.cui:
cv2.imshow('preview', preview_img)
frame_shown = True

Expand Down

0 comments on commit ccab28f

Please sign in to comment.