Skip to content

Commit 8e08f24

Browse files
committed
debug get stream type and format
1 parent fb4a0c3 commit 8e08f24

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

vao-recorder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def find_realsense() -> dict:
206206
**RealSense.config_map,
207207
}
208208

209+
209210
@app.command(help='Display the available RealSense devices')
210211
def show_realsense(verbose: bool = False):
211212
devices = RealSense.find()
@@ -384,8 +385,8 @@ def __init__(self, *args, **kwargs):
384385
config.enable_device(sn)
385386
for stream in streams:
386387
parameters = {
387-
'stream_type': rs.stream.get(stream['type']),
388-
'format': rs.format.get(stream['format']),
388+
'stream_type': getattr(rs.stream, stream['type']),
389+
'format': getattr(rs.format, stream['format']),
389390
'framerate': stream['framerate'],
390391
}
391392
if 'width' in stream:

0 commit comments

Comments
 (0)