Skip to content

Commit

Permalink
BGR -> RGB
Browse files Browse the repository at this point in the history
  • Loading branch information
syncle committed Oct 19, 2018
1 parent 4118e03 commit 454bb9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_intrinsic_matrix(frame):
config = rs.config()

config.enable_stream(rs.stream.depth, 1280, 720, rs.format.z16, 30)
config.enable_stream(rs.stream.color, 640, 480, rs.format.bgr8, 30)
config.enable_stream(rs.stream.color, 640, 480, rs.format.rgb8, 30)

# Start streaming
profile = pipeline.start(config)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def save_intrinsic_as_json(filename, frame):
if args.record_rosbag:
# note: using 640 x 480 depth resolution produces smooth depth boundaries
config.enable_stream(rs.stream.depth, 1280, 720, rs.format.z16, 30)
config.enable_stream(rs.stream.color, 640, 480, rs.format.bgr8, 30)
config.enable_stream(rs.stream.color, 640, 480, rs.format.rgb8, 30)
config.enable_record_to_file(path_bag)
if args.playback_rosbag:
config.enable_device_from_file(path_bag, repeat_playback = True)
Expand Down

0 comments on commit 454bb9f

Please sign in to comment.