Skip to content

Commit 6b22103

Browse files
authored
Add option to record with April Tags (#35)
1 parent bf8fd7a commit 6b22103

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/cli/record/oak.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def define_args(p):
4242
p.add_argument('--no_preview', help='Do not show a live preview', action="store_true")
4343
p.add_argument('--no_slam', help='Record with SLAM module disabled', action="store_true")
4444
p.add_argument('--recording_only', help='Do not run VIO, may be faster', action="store_true")
45+
p.add_argument('--april_tag_path', help='Record with April Tags (path to tags.json)')
4546
p.add_argument('--disable_cameras', help='Prevents SDK from using cameras, for example to only record RGB camera and IMU', action="store_true")
4647
p.add_argument('--no_usb_speed_check', help='Disable USB speed check', action="store_true")
4748
# This can reduce CPU load while recording with the --no_feature_tracker option
@@ -148,6 +149,8 @@ def record(args):
148149
config.useStereo = False
149150
if args.recording_only:
150151
config.recordingOnly = True
152+
if args.april_tag_path:
153+
config.aprilTagPath = args.april_tag_path
151154
if args.disable_cameras:
152155
config.disableCameras = True
153156
if args.ffmpeg_codec is not None:

0 commit comments

Comments
 (0)