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. 分辨率、帧率、格式之间的权衡关系

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

相关推荐
007不打工人1 天前
STC-GS安装pip install submodules/diff-gaussian-rasterization-radar报错
人工智能·机器学习
韦东东1 天前
Text2SQL案例演示:信贷风控策略场景(Coze工作流版)
大数据·人工智能·大模型·text2sql·coze·信贷策略
信雪神话1 天前
KnowVal(arXiv:2512.20299v1):知识图谱增强与价值引导的自动驾驶决策
人工智能·自动驾驶·知识图谱
咕噜企业分发小米1 天前
阿里云AI教育产品如何助力企业提升客户转化率?
人工智能·阿里云·云计算
头发够用的程序员1 天前
Ultralytics 代码库深度解读【六】:数据加载机制深度解析
人工智能·pytorch·python·深度学习·yolo·边缘计算·模型部署
我科绝伦(Huanhuan Zhou)1 天前
AI悖论:技术迷雾中的人类抉择
人工智能
智能化咨询1 天前
(112页PPT)数字化转型制造业企业数据治理平台规划方案(附下载方式)
大数据·运维·人工智能
zuozewei1 天前
7D-AI系列:Vibe Coding VS Spec Coding AI 编程的两种范式对比
人工智能·ai编程
Nautiluss1 天前
一起调试XVF3800麦克风阵列(九)
linux·人工智能·嵌入式硬件·音频·语音识别·dsp开发