Skip to content

Commit

Permalink
change --gui option of driver-action-recognition-adas 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 ccab28f commit a33da93
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@

parser = get_base_parser('driver-action-recognition-adas', VIDEO_PATH, None)
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 @@ -152,7 +152,7 @@ def recognize_from_video(enc, dec):

frame = render_frame(frame, display_text)

if args.gui or args.video:
if not args.cui or args.video:
cv2.imshow('frame', frame)
frame_shown = True
else:
Expand Down

0 comments on commit a33da93

Please sign in to comment.