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

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

相关推荐
风舞雪凌月5 小时前
【总结】国产AI大模型公司汇总
人工智能
Hali_Botebie5 小时前
【光流】自动驾驶光流任务 DeFlow: Decoder of Scene Flow Network in Autonomous Driving
人工智能·机器学习·自动驾驶
IT_陈寒5 小时前
被Vite的HMR坑惨了,原来这样配置才能用对!
前端·人工智能·后端
“码”力全开5 小时前
解耦安防碎片化:基于 Docker 与边缘计算的 AI 视频中台架构设计(支持 GB28181/RTSP 与源码交付)
人工智能·docker·边缘计算
sali-tec5 小时前
C# 基于OpenCv的视觉工作流-章80-长短脚
图像处理·人工智能·opencv·算法·计算机视觉
AI科技星5 小时前
国家重点研发计划项目申报书
人工智能·线性代数·架构·概率论·学习方法
智联视频超融合平台5 小时前
AI赋能传统电厂:2025能源革命的智慧引擎
人工智能·能源
qcx235 小时前
【系统学AI】23 AI 时代产品运营与获客全景:CRM SaaS 大变局 + 增长新范式(2026 调研报告)
人工智能·产品运营·产品设计·ai agent·ai native
叶修_A5 小时前
【COZE-08】Prompt工程进阶 - 结构化输出与思维链
大数据·人工智能·prompt
John_ToDebug5 小时前
开源与人性:DeepSeek 战略的底层逻辑
人工智能·经验分享·ai