Realsense 相机测试及说明

1. 测试代码

python 复制代码
import pyrealsense2 as rs

ctx = rs.context()
devices = ctx.query_devices()

for dev in devices:
    sn = dev.get_info(rs.camera_info.serial_number)
    print(f"\n=== 相机 {sn} 支持的流配置 ===")

    sensors = dev.query_sensors()
    for sensor in sensors:
        print(f"\n  [传感器] {sensor.get_info(rs.camera_info.name)}")
        for profile in sensor.get_stream_profiles():
            try:
                vsp = profile.as_video_stream_profile()
                fmt = vsp.format()
                res = (vsp.width(), vsp.height())
                fps = vsp.fps()
                print(f"    - 分辨率: {res}, 格式: {fmt}, 帧率: {fps}")
            except Exception as e:
                continue

2. 测试结果

txt 复制代码
=== 相机 123**456 支持的流配置 ===

  [传感器] Stereo Module
    - 分辨率: (1280, 800), 格式: format.y16, 帧率: 25
    - 分辨率: (1280, 800), 格式: format.y16, 帧率: 15
    - 分辨率: (1280, 800), 格式: format.y8, 帧率: 30
    - 分辨率: (1280, 800), 格式: format.y8, 帧率: 15
    - 分辨率: (1280, 720), 格式: format.y8, 帧率: 30
    - 分辨率: (1280, 720), 格式: format.y8, 帧率: 15
    - 分辨率: (1280, 720), 格式: format.y8, 帧率: 6
    - 分辨率: (848, 480), 格式: format.y8, 帧率: 90
    - 分辨率: (848, 480), 格式: format.y8, 帧率: 60
    - 分辨率: (848, 480), 格式: format.y8, 帧率: 30
    - 分辨率: (848, 480), 格式: format.y8, 帧率: 15
    - 分辨率: (848, 480), 格式: format.y8, 帧率: 6
    - 分辨率: (848, 100), 格式: format.y8, 帧率: 300
    - 分辨率: (848, 100), 格式: format.y8, 帧率: 100
    - 分辨率: (640, 480), 格式: format.y8, 帧率: 90
    - 分辨率: (640, 480), 格式: format.y8, 帧率: 60
    - 分辨率: (640, 480), 格式: format.y8, 帧率: 30
    - 分辨率: (640, 480), 格式: format.y8, 帧率: 15
    - 分辨率: (640, 480), 格式: format.y8, 帧率: 6
    - 分辨率: (640, 400), 格式: format.y16, 帧率: 25
    - 分辨率: (640, 400), 格式: format.y16, 帧率: 15
    - 分辨率: (640, 360), 格式: format.y8, 帧率: 90
    - 分辨率: (640, 360), 格式: format.y8, 帧率: 60
    - 分辨率: (640, 360), 格式: format.y8, 帧率: 30
    - 分辨率: (640, 360), 格式: format.y8, 帧率: 15
    - 分辨率: (640, 360), 格式: format.y8, 帧率: 6
    - 分辨率: (480, 270), 格式: format.y8, 帧率: 90
    - 分辨率: (480, 270), 格式: format.y8, 帧率: 60
    - 分辨率: (480, 270), 格式: format.y8, 帧率: 30
    - 分辨率: (480, 270), 格式: format.y8, 帧率: 15
    - 分辨率: (480, 270), 格式: format.y8, 帧率: 6
    - 分辨率: (424, 240), 格式: format.y8, 帧率: 90
    - 分辨率: (424, 240), 格式: format.y8, 帧率: 60
    - 分辨率: (424, 240), 格式: format.y8, 帧率: 30
    - 分辨率: (424, 240), 格式: format.y8, 帧率: 15
    - 分辨率: (424, 240), 格式: format.y8, 帧率: 6
    - 分辨率: (1280, 800), 格式: format.y16, 帧率: 25
    - 分辨率: (1280, 800), 格式: format.y16, 帧率: 15
    - 分辨率: (1280, 800), 格式: format.y8, 帧率: 30
    - 分辨率: (1280, 800), 格式: format.y8, 帧率: 15
    - 分辨率: (1280, 720), 格式: format.y8, 帧率: 30
    - 分辨率: (1280, 720), 格式: format.y8, 帧率: 15
    - 分辨率: (1280, 720), 格式: format.y8, 帧率: 6
    - 分辨率: (848, 480), 格式: format.y8, 帧率: 90
    - 分辨率: (848, 480), 格式: format.y8, 帧率: 60
    - 分辨率: (848, 480), 格式: format.y8, 帧率: 30
    - 分辨率: (848, 480), 格式: format.y8, 帧率: 15
    - 分辨率: (848, 480), 格式: format.y8, 帧率: 6
    - 分辨率: (848, 100), 格式: format.y8, 帧率: 300
    - 分辨率: (848, 100), 格式: format.y8, 帧率: 100
    - 分辨率: (640, 480), 格式: format.y8, 帧率: 90
    - 分辨率: (640, 480), 格式: format.y8, 帧率: 60
    - 分辨率: (640, 480), 格式: format.y8, 帧率: 30
    - 分辨率: (640, 480), 格式: format.y8, 帧率: 15
    - 分辨率: (640, 480), 格式: format.y8, 帧率: 6
    - 分辨率: (640, 400), 格式: format.y16, 帧率: 25
    - 分辨率: (640, 400), 格式: format.y16, 帧率: 15
    - 分辨率: (640, 360), 格式: format.y8, 帧率: 90
    - 分辨率: (640, 360), 格式: format.y8, 帧率: 60
    - 分辨率: (640, 360), 格式: format.y8, 帧率: 30
    - 分辨率: (640, 360), 格式: format.y8, 帧率: 15
    - 分辨率: (640, 360), 格式: format.y8, 帧率: 6
    - 分辨率: (480, 270), 格式: format.y8, 帧率: 90
    - 分辨率: (480, 270), 格式: format.y8, 帧率: 60
    - 分辨率: (480, 270), 格式: format.y8, 帧率: 30
    - 分辨率: (480, 270), 格式: format.y8, 帧率: 15
    - 分辨率: (480, 270), 格式: format.y8, 帧率: 6
    - 分辨率: (424, 240), 格式: format.y8, 帧率: 90
    - 分辨率: (424, 240), 格式: format.y8, 帧率: 60
    - 分辨率: (424, 240), 格式: format.y8, 帧率: 30
    - 分辨率: (424, 240), 格式: format.y8, 帧率: 15
    - 分辨率: (424, 240), 格式: format.y8, 帧率: 6
    - 分辨率: (1280, 720), 格式: format.z16, 帧率: 30
    - 分辨率: (1280, 720), 格式: format.z16, 帧率: 15
    - 分辨率: (1280, 720), 格式: format.z16, 帧率: 6
    - 分辨率: (848, 480), 格式: format.z16, 帧率: 90
    - 分辨率: (848, 480), 格式: format.z16, 帧率: 60
    - 分辨率: (848, 480), 格式: format.z16, 帧率: 30
    - 分辨率: (848, 480), 格式: format.z16, 帧率: 15
    - 分辨率: (848, 480), 格式: format.z16, 帧率: 6
    - 分辨率: (848, 100), 格式: format.z16, 帧率: 300
    - 分辨率: (848, 100), 格式: format.z16, 帧率: 100
    - 分辨率: (640, 480), 格式: format.z16, 帧率: 90
    - 分辨率: (640, 480), 格式: format.z16, 帧率: 60
    - 分辨率: (640, 480), 格式: format.z16, 帧率: 30
    - 分辨率: (640, 480), 格式: format.z16, 帧率: 15
    - 分辨率: (640, 480), 格式: format.z16, 帧率: 6
    - 分辨率: (640, 360), 格式: format.z16, 帧率: 90
    - 分辨率: (640, 360), 格式: format.z16, 帧率: 60
    - 分辨率: (640, 360), 格式: format.z16, 帧率: 30
    - 分辨率: (640, 360), 格式: format.z16, 帧率: 15
    - 分辨率: (640, 360), 格式: format.z16, 帧率: 6
    - 分辨率: (480, 270), 格式: format.z16, 帧率: 90
    - 分辨率: (480, 270), 格式: format.z16, 帧率: 60
    - 分辨率: (480, 270), 格式: format.z16, 帧率: 30
    - 分辨率: (480, 270), 格式: format.z16, 帧率: 15
    - 分辨率: (480, 270), 格式: format.z16, 帧率: 6
    - 分辨率: (424, 240), 格式: format.z16, 帧率: 90
    - 分辨率: (424, 240), 格式: format.z16, 帧率: 60
    - 分辨率: (424, 240), 格式: format.z16, 帧率: 30
    - 分辨率: (424, 240), 格式: format.z16, 帧率: 15
    - 分辨率: (424, 240), 格式: format.z16, 帧率: 6
    - 分辨率: (256, 144), 格式: format.z16, 帧率: 300
    - 分辨率: (256, 144), 格式: format.z16, 帧率: 90

  [传感器] RGB Camera
    - 分辨率: (1920, 1080), 格式: format.rgb8, 帧率: 30
    - 分辨率: (1920, 1080), 格式: format.rgb8, 帧率: 15
    - 分辨率: (1920, 1080), 格式: format.rgb8, 帧率: 6
    - 分辨率: (1920, 1080), 格式: format.raw16, 帧率: 30
    - 分辨率: (1920, 1080), 格式: format.y8, 帧率: 30
    - 分辨率: (1920, 1080), 格式: format.y8, 帧率: 15
    - 分辨率: (1920, 1080), 格式: format.y8, 帧率: 6
    - 分辨率: (1920, 1080), 格式: format.bgra8, 帧率: 30
    - 分辨率: (1920, 1080), 格式: format.bgra8, 帧率: 15
    - 分辨率: (1920, 1080), 格式: format.bgra8, 帧率: 6
    - 分辨率: (1920, 1080), 格式: format.rgba8, 帧率: 30
    - 分辨率: (1920, 1080), 格式: format.rgba8, 帧率: 15
    - 分辨率: (1920, 1080), 格式: format.rgba8, 帧率: 6
    - 分辨率: (1920, 1080), 格式: format.bgr8, 帧率: 30
    - 分辨率: (1920, 1080), 格式: format.bgr8, 帧率: 15
    - 分辨率: (1920, 1080), 格式: format.bgr8, 帧率: 6
    - 分辨率: (1920, 1080), 格式: format.yuyv, 帧率: 30
    - 分辨率: (1920, 1080), 格式: format.yuyv, 帧率: 15
    - 分辨率: (1920, 1080), 格式: format.yuyv, 帧率: 6
    - 分辨率: (1280, 720), 格式: format.rgb8, 帧率: 30
    - 分辨率: (1280, 720), 格式: format.rgb8, 帧率: 15
    - 分辨率: (1280, 720), 格式: format.rgb8, 帧率: 6
    - 分辨率: (1280, 720), 格式: format.y8, 帧率: 30
    - 分辨率: (1280, 720), 格式: format.y8, 帧率: 15
    - 分辨率: (1280, 720), 格式: format.y8, 帧率: 6
    - 分辨率: (1280, 720), 格式: format.bgra8, 帧率: 30
    - 分辨率: (1280, 720), 格式: format.bgra8, 帧率: 15
    - 分辨率: (1280, 720), 格式: format.bgra8, 帧率: 6
    - 分辨率: (1280, 720), 格式: format.rgba8, 帧率: 30
    - 分辨率: (1280, 720), 格式: format.rgba8, 帧率: 15
    - 分辨率: (1280, 720), 格式: format.rgba8, 帧率: 6
    - 分辨率: (1280, 720), 格式: format.bgr8, 帧率: 30
    - 分辨率: (1280, 720), 格式: format.bgr8, 帧率: 15
    - 分辨率: (1280, 720), 格式: format.bgr8, 帧率: 6
    - 分辨率: (1280, 720), 格式: format.yuyv, 帧率: 30
    - 分辨率: (1280, 720), 格式: format.yuyv, 帧率: 15
    - 分辨率: (1280, 720), 格式: format.yuyv, 帧率: 6
    - 分辨率: (960, 540), 格式: format.rgb8, 帧率: 60
    - 分辨率: (960, 540), 格式: format.rgb8, 帧率: 30
    - 分辨率: (960, 540), 格式: format.rgb8, 帧率: 15
    - 分辨率: (960, 540), 格式: format.rgb8, 帧率: 6
    - 分辨率: (960, 540), 格式: format.y8, 帧率: 60
    - 分辨率: (960, 540), 格式: format.y8, 帧率: 30
    - 分辨率: (960, 540), 格式: format.y8, 帧率: 15
    - 分辨率: (960, 540), 格式: format.y8, 帧率: 6
    - 分辨率: (960, 540), 格式: format.bgra8, 帧率: 60
    - 分辨率: (960, 540), 格式: format.bgra8, 帧率: 30
    - 分辨率: (960, 540), 格式: format.bgra8, 帧率: 15
    - 分辨率: (960, 540), 格式: format.bgra8, 帧率: 6
    - 分辨率: (960, 540), 格式: format.rgba8, 帧率: 60
    - 分辨率: (960, 540), 格式: format.rgba8, 帧率: 30
    - 分辨率: (960, 540), 格式: format.rgba8, 帧率: 15
    - 分辨率: (960, 540), 格式: format.rgba8, 帧率: 6
    - 分辨率: (960, 540), 格式: format.bgr8, 帧率: 60
    - 分辨率: (960, 540), 格式: format.bgr8, 帧率: 30
    - 分辨率: (960, 540), 格式: format.bgr8, 帧率: 15
    - 分辨率: (960, 540), 格式: format.bgr8, 帧率: 6
    - 分辨率: (960, 540), 格式: format.yuyv, 帧率: 60
    - 分辨率: (960, 540), 格式: format.yuyv, 帧率: 30
    - 分辨率: (960, 540), 格式: format.yuyv, 帧率: 15
    - 分辨率: (960, 540), 格式: format.yuyv, 帧率: 6
    - 分辨率: (848, 480), 格式: format.rgb8, 帧率: 60
    - 分辨率: (848, 480), 格式: format.rgb8, 帧率: 30
    - 分辨率: (848, 480), 格式: format.rgb8, 帧率: 15
    - 分辨率: (848, 480), 格式: format.rgb8, 帧率: 6
    - 分辨率: (848, 480), 格式: format.y8, 帧率: 60
    - 分辨率: (848, 480), 格式: format.y8, 帧率: 30
    - 分辨率: (848, 480), 格式: format.y8, 帧率: 15
    - 分辨率: (848, 480), 格式: format.y8, 帧率: 6
    - 分辨率: (848, 480), 格式: format.bgra8, 帧率: 60
    - 分辨率: (848, 480), 格式: format.bgra8, 帧率: 30
    - 分辨率: (848, 480), 格式: format.bgra8, 帧率: 15
    - 分辨率: (848, 480), 格式: format.bgra8, 帧率: 6
    - 分辨率: (848, 480), 格式: format.rgba8, 帧率: 60
    - 分辨率: (848, 480), 格式: format.rgba8, 帧率: 30
    - 分辨率: (848, 480), 格式: format.rgba8, 帧率: 15
    - 分辨率: (848, 480), 格式: format.rgba8, 帧率: 6
    - 分辨率: (848, 480), 格式: format.bgr8, 帧率: 60
    - 分辨率: (848, 480), 格式: format.bgr8, 帧率: 30
    - 分辨率: (848, 480), 格式: format.bgr8, 帧率: 15
    - 分辨率: (848, 480), 格式: format.bgr8, 帧率: 6
    - 分辨率: (848, 480), 格式: format.yuyv, 帧率: 60
    - 分辨率: (848, 480), 格式: format.yuyv, 帧率: 30
    - 分辨率: (848, 480), 格式: format.yuyv, 帧率: 15
    - 分辨率: (848, 480), 格式: format.yuyv, 帧率: 6
    - 分辨率: (640, 480), 格式: format.rgb8, 帧率: 60
    - 分辨率: (640, 480), 格式: format.rgb8, 帧率: 30
    - 分辨率: (640, 480), 格式: format.rgb8, 帧率: 15
    - 分辨率: (640, 480), 格式: format.rgb8, 帧率: 6
    - 分辨率: (640, 480), 格式: format.y8, 帧率: 60
    - 分辨率: (640, 480), 格式: format.y8, 帧率: 30
    - 分辨率: (640, 480), 格式: format.y8, 帧率: 15
    - 分辨率: (640, 480), 格式: format.y8, 帧率: 6
    - 分辨率: (640, 480), 格式: format.bgra8, 帧率: 60
    - 分辨率: (640, 480), 格式: format.bgra8, 帧率: 30
    - 分辨率: (640, 480), 格式: format.bgra8, 帧率: 15
    - 分辨率: (640, 480), 格式: format.bgra8, 帧率: 6
    - 分辨率: (640, 480), 格式: format.rgba8, 帧率: 60
    - 分辨率: (640, 480), 格式: format.rgba8, 帧率: 30
    - 分辨率: (640, 480), 格式: format.rgba8, 帧率: 15
    - 分辨率: (640, 480), 格式: format.rgba8, 帧率: 6
    - 分辨率: (640, 480), 格式: format.bgr8, 帧率: 60
    - 分辨率: (640, 480), 格式: format.bgr8, 帧率: 30
    - 分辨率: (640, 480), 格式: format.bgr8, 帧率: 15
    - 分辨率: (640, 480), 格式: format.bgr8, 帧率: 6
    - 分辨率: (640, 480), 格式: format.yuyv, 帧率: 60
    - 分辨率: (640, 480), 格式: format.yuyv, 帧率: 30
    - 分辨率: (640, 480), 格式: format.yuyv, 帧率: 15
    - 分辨率: (640, 480), 格式: format.yuyv, 帧率: 6
    - 分辨率: (640, 360), 格式: format.rgb8, 帧率: 60
    - 分辨率: (640, 360), 格式: format.rgb8, 帧率: 30
    - 分辨率: (640, 360), 格式: format.rgb8, 帧率: 15
    - 分辨率: (640, 360), 格式: format.rgb8, 帧率: 6
    - 分辨率: (640, 360), 格式: format.y8, 帧率: 60
    - 分辨率: (640, 360), 格式: format.y8, 帧率: 30
    - 分辨率: (640, 360), 格式: format.y8, 帧率: 15
    - 分辨率: (640, 360), 格式: format.y8, 帧率: 6
    - 分辨率: (640, 360), 格式: format.bgra8, 帧率: 60
    - 分辨率: (640, 360), 格式: format.bgra8, 帧率: 30
    - 分辨率: (640, 360), 格式: format.bgra8, 帧率: 15
    - 分辨率: (640, 360), 格式: format.bgra8, 帧率: 6
    - 分辨率: (640, 360), 格式: format.rgba8, 帧率: 60
    - 分辨率: (640, 360), 格式: format.rgba8, 帧率: 30
    - 分辨率: (640, 360), 格式: format.rgba8, 帧率: 15
    - 分辨率: (640, 360), 格式: format.rgba8, 帧率: 6
    - 分辨率: (640, 360), 格式: format.bgr8, 帧率: 60
    - 分辨率: (640, 360), 格式: format.bgr8, 帧率: 30
    - 分辨率: (640, 360), 格式: format.bgr8, 帧率: 15
    - 分辨率: (640, 360), 格式: format.bgr8, 帧率: 6
    - 分辨率: (640, 360), 格式: format.yuyv, 帧率: 60
    - 分辨率: (640, 360), 格式: format.yuyv, 帧率: 30
    - 分辨率: (640, 360), 格式: format.yuyv, 帧率: 15
    - 分辨率: (640, 360), 格式: format.yuyv, 帧率: 6
    - 分辨率: (424, 240), 格式: format.rgb8, 帧率: 60
    - 分辨率: (424, 240), 格式: format.rgb8, 帧率: 30
    - 分辨率: (424, 240), 格式: format.rgb8, 帧率: 15
    - 分辨率: (424, 240), 格式: format.rgb8, 帧率: 6
    - 分辨率: (424, 240), 格式: format.y8, 帧率: 60
    - 分辨率: (424, 240), 格式: format.y8, 帧率: 30
    - 分辨率: (424, 240), 格式: format.y8, 帧率: 15
    - 分辨率: (424, 240), 格式: format.y8, 帧率: 6
    - 分辨率: (424, 240), 格式: format.bgra8, 帧率: 60
    - 分辨率: (424, 240), 格式: format.bgra8, 帧率: 30
    - 分辨率: (424, 240), 格式: format.bgra8, 帧率: 15
    - 分辨率: (424, 240), 格式: format.bgra8, 帧率: 6
    - 分辨率: (424, 240), 格式: format.rgba8, 帧率: 60
    - 分辨率: (424, 240), 格式: format.rgba8, 帧率: 30
    - 分辨率: (424, 240), 格式: format.rgba8, 帧率: 15
    - 分辨率: (424, 240), 格式: format.rgba8, 帧率: 6
    - 分辨率: (424, 240), 格式: format.bgr8, 帧率: 60
    - 分辨率: (424, 240), 格式: format.bgr8, 帧率: 30
    - 分辨率: (424, 240), 格式: format.bgr8, 帧率: 15
    - 分辨率: (424, 240), 格式: format.bgr8, 帧率: 6
    - 分辨率: (424, 240), 格式: format.yuyv, 帧率: 60
    - 分辨率: (424, 240), 格式: format.yuyv, 帧率: 30
    - 分辨率: (424, 240), 格式: format.yuyv, 帧率: 15
    - 分辨率: (424, 240), 格式: format.yuyv, 帧率: 6
    - 分辨率: (320, 240), 格式: format.rgb8, 帧率: 60
    - 分辨率: (320, 240), 格式: format.rgb8, 帧率: 30
    - 分辨率: (320, 240), 格式: format.rgb8, 帧率: 6
    - 分辨率: (320, 240), 格式: format.y8, 帧率: 60
    - 分辨率: (320, 240), 格式: format.y8, 帧率: 30
    - 分辨率: (320, 240), 格式: format.y8, 帧率: 6
    - 分辨率: (320, 240), 格式: format.bgra8, 帧率: 60
    - 分辨率: (320, 240), 格式: format.bgra8, 帧率: 30
    - 分辨率: (320, 240), 格式: format.bgra8, 帧率: 6
    - 分辨率: (320, 240), 格式: format.rgba8, 帧率: 60
    - 分辨率: (320, 240), 格式: format.rgba8, 帧率: 30
    - 分辨率: (320, 240), 格式: format.rgba8, 帧率: 6
    - 分辨率: (320, 240), 格式: format.bgr8, 帧率: 60
    - 分辨率: (320, 240), 格式: format.bgr8, 帧率: 30
    - 分辨率: (320, 240), 格式: format.bgr8, 帧率: 6
    - 分辨率: (320, 240), 格式: format.yuyv, 帧率: 60
    - 分辨率: (320, 240), 格式: format.yuyv, 帧率: 30
    - 分辨率: (320, 240), 格式: format.yuyv, 帧率: 6
    - 分辨率: (320, 180), 格式: format.rgb8, 帧率: 60
    - 分辨率: (320, 180), 格式: format.rgb8, 帧率: 30
    - 分辨率: (320, 180), 格式: format.rgb8, 帧率: 6
    - 分辨率: (320, 180), 格式: format.y8, 帧率: 60
    - 分辨率: (320, 180), 格式: format.y8, 帧率: 30
    - 分辨率: (320, 180), 格式: format.y8, 帧率: 6
    - 分辨率: (320, 180), 格式: format.bgra8, 帧率: 60
    - 分辨率: (320, 180), 格式: format.bgra8, 帧率: 30
    - 分辨率: (320, 180), 格式: format.bgra8, 帧率: 6
    - 分辨率: (320, 180), 格式: format.rgba8, 帧率: 60
    - 分辨率: (320, 180), 格式: format.rgba8, 帧率: 30
    - 分辨率: (320, 180), 格式: format.rgba8, 帧率: 6
    - 分辨率: (320, 180), 格式: format.bgr8, 帧率: 60
    - 分辨率: (320, 180), 格式: format.bgr8, 帧率: 30
    - 分辨率: (320, 180), 格式: format.bgr8, 帧率: 6
    - 分辨率: (320, 180), 格式: format.yuyv, 帧率: 60
    - 分辨率: (320, 180), 格式: format.yuyv, 帧率: 30
    - 分辨率: (320, 180), 格式: format.yuyv, 帧率: 6

3. 结果解释

这是Intel RealSense D435i 相机的完整配置列表,显示了相机支持的所有数据流模式。

1. 基本信息

  • 相机型号:Intel RealSense D435i
  • 序列号:336222075436
  • 包含两个传感器:立体深度模块 + RGB彩色相机

2. 传感器1:立体深度模块 (Stereo Module)

2.1 深度数据流

复制代码
分辨率: (1280, 720), 格式: format.z16, 帧率: 30
分辨率: (848, 480), 格式: format.z16, 帧率: 90
分辨率: (640, 480), 格式: format.z16, 帧率: 90
分辨率: (640, 360), 格式: format.z16, 帧率: 90
分辨率: (480, 270), 格式: format.z16, 帧率: 90
分辨率: (424, 240), 格式: format.z16, 帧率: 90
分辨率: (256, 144), 格式: format.z16, 帧率: 300

关键信息:

  • format.z16:16位深度数据(单位:毫米)
  • 最高帧率:300 FPS(256×144分辨率)
  • 最高分辨率:1280×720 @ 30 FPS

2.2 红外数据流

复制代码
分辨率: (1280, 800), 格式: format.y8, 帧率: 30
分辨率: (848, 480), 格式: format.y8, 帧率: 90
分辨率: (640, 480), 格式: format.y8, 帧率: 90
分辨率: (848, 100), 格式: format.y8, 帧率: 300

关键信息:

  • format.y8:8位灰度图像(红外图像)
  • format.y16:16位灰度图像(可能是原始红外数据)

3. 传感器2:RGB彩色相机

支持的格式和分辨率:

复制代码
分辨率: (1920, 1080), 格式: format.bgr8, 帧率: 30  ← 最高质量
分辨率: (1280, 720), 格式: format.bgr8, 帧率: 30    ← 常用配置
分辨率: (960, 540), 格式: format.bgr8, 帧率: 60     ← 平衡质量与速度
分辨率: (848, 480), 格式: format.bgr8, 帧率: 60
分辨率: (640, 480), 格式: format.bgr8, 帧率: 60
分辨率: (640, 360), 格式: format.bgr8, 帧率: 60
分辨率: (424, 240), 格式: format.bgr8, 帧率: 60

支持的格式:

  • format.bgr8:BGR彩色(OpenCV默认)
  • format.rgb8:RGB彩色
  • format.y8:灰度图像
  • format.yuyv:YUYV编码
  • format.bgra8:带透明通道的BGR
  • format.raw16:16位原始数据

4. 在机器人视觉中的配置选择

场景1:高精度3D重建

python 复制代码
# 选择高分辨率深度
config.enable_stream(rs.stream.depth, 1280, 720, rs.format.z16, 30)
config.enable_stream(rs.stream.color, 1920, 1080, rs.format.bgr8, 30)

场景2:高速运动跟踪

python 复制代码
# 选择高帧率
config.enable_stream(rs.stream.depth, 848, 480, rs.format.z16, 90)
config.enable_stream(rs.stream.color, 848, 480, rs.format.bgr8, 60)

场景3:低延迟控制

python 复制代码
# 选择小分辨率实现低延迟
config.enable_stream(rs.stream.depth, 424, 240, rs.format.z16, 90)
config.enable_stream(rs.stream.color, 424, 240, rs.format.bgr8, 60)

5. 技术参数总结

参数 深度模块 RGB相机
最高分辨率 1280×720 1920×1080
最高帧率 300 FPS 60 FPS
数据格式 z16, y8, y16 bgr8, rgb8, y8, yuyv等
典型配置 848×480 @ 30FPS 848×480 @ 30FPS

6. 为什么这个列表很重要?

6.1 性能权衡

python 复制代码
# 分辨率 vs 帧率 vs 延迟
# 高分辨率:1280×720 @ 30FPS → 细节好,但帧率低
# 高帧率:848×480 @ 90FPS → 流畅,但细节少
# 低延迟:424×240 @ 90FPS → 响应快,但细节最少

6.2 带宽计算

python 复制代码
# 计算所需带宽:
# 深度图:848×480 × 2字节 × 30FPS ≈ 24.4 MB/s
# 彩色图:848×480 × 3字节 × 30FPS ≈ 36.6 MB/s
# 总带宽:约 61 MB/s

6.3 在你的代码中的应用

python 复制代码
# 你的代码应该根据需求选择配置:
class CameraConfigurator:
    def get_optimal_config(self, use_case):
        if use_case == "high_precision":
            return {
                "depth": (1280, 720, rs.format.z16, 30),
                "color": (1280, 720, rs.format.bgr8, 30)
            }
        elif use_case == "high_speed":
            return {
                "depth": (848, 480, rs.format.z16, 90),
                "color": (848, 480, rs.format.bgr8, 60)
            }
        elif use_case == "low_latency":
            return {
                "depth": (424, 240, rs.format.z16, 90),
                "color": (424, 240, rs.format.bgr8, 60)
            }

7. 特殊模式解析

7.1 超高帧率模式

复制代码
分辨率: (848, 100), 格式: format.z16, 帧率: 300
分辨率: (256, 144), 格式: format.z16, 帧率: 300

用途:极高速运动检测(如振动分析)

7.2 特殊长宽比

复制代码
分辨率: (848, 100)  ← 超宽模式
分辨率: (1280, 800) ← 16:10比例

用途:特定应用场景的视野优化

8. 实际选择建议

对于机器人抓取任务:

python 复制代码
# 推荐配置:平衡精度和速度
DEPTH_CONFIG = (848, 480, rs.format.z16, 30)  # 足够的分辨率,30FPS
COLOR_CONFIG = (848, 480, rs.format.bgr8, 30)  # 与深度对齐

对于SLAM建图:

python 复制代码
# 推荐配置:高分辨率
DEPTH_CONFIG = (1280, 720, rs.format.z16, 15)  # 高分辨率,可接受较低帧率
COLOR_CONFIG = (1280, 720, rs.format.bgr8, 15)

对于实时控制:

python 复制代码
# 推荐配置:高帧率
DEPTH_CONFIG = (640, 480, rs.format.z16, 60)  # 60FPS确保实时性
COLOR_CONFIG = (640, 480, rs.format.bgr8, 60)

总结

这个输出告诉你:

  1. 你的RealSense D435i相机支持的所有工作模式
  2. 深度和彩色相机的性能极限
  3. 如何根据应用需求选择最佳配置
  4. 分辨率、帧率、格式之间的权衡关系

简单说:这就是相机的"能力说明书",告诉你它能做什么、做多快、质量多好。 你应该根据机器人应用的具体需求,从这个列表中选择最合适的配置。

相关推荐
IT_陈寒1 小时前
SpringBoot自动配置差点让我加班到凌晨
前端·人工智能·后端
yumgpkpm2 小时前
Acceldata ODP(Open Data Platform)3.3.6.4(RHEL9)保姆级完整安装手册
大数据·人工智能·hive·hadoop·kafka·hbase·cloudera
程序员cxuan2 小时前
腾讯又来一王炸,开源版 WorkBuddy 太夯了!
人工智能·后端·程序员
邓工说电2 小时前
智慧断路器安全吗?数据加密、离线保护与合规认证全解读
大数据·数据库·人工智能·智能断路器·炜晔科技
阿里云大数据AI技术2 小时前
Lance 数据检索怎么选,当然阿里云 Milvus 向量湖
人工智能
出海客2 小时前
跨境电商多语言客服知识库怎么建:资料结构、检索边界与人工升级
大数据·人工智能
xsd202411182 小时前
从自主导航到视觉读表:一台工业巡检机器人的全栈技术链路拆解
人工智能
袁哥大话安全2 小时前
巡隐WEBSHELL扫描软件
人工智能·安全·web
论文复现现场2 小时前
8卡4090能跑70B吗?Llama-2显存预算、QLoRA与通信瓶颈
人工智能·深度学习·分布式训练·llama·显存·qlora·算家云