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

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

相关推荐
江畔何人初1 小时前
iptables 和 IPVS 代理模式 Service 的区别
linux·运维·服务器·网络·云原生·kubernetes·代理模式
机器人零零壹2 小时前
专访越擎科技创始人: 外骨骼的设计与仿真该如何入门
人工智能·具身智能·机器人仿真·离线编程·irobotcam·人形机器人设计
Cha0DD3 小时前
【由浅入深探究langchain】第二十集-SQL Agent+Human-in-the-loop
人工智能·python·ai·langchain
Cha0DD3 小时前
【由浅入深探究langchain】第十九集-官方的SQL Agent示例
人工智能·python·ai·langchain
2601_949221034 小时前
Splashtop赋能企业级远程办公全场景安全连接成选型优选
运维·人工智能·安全
阿拉斯攀登4 小时前
YOLO 视觉检测全栈核心名词指南:从训练调参到边缘部署,商用落地必懂
人工智能·yolo·计算机视觉·视觉检测·bytetrack
AAAAA92404 小时前
2026年车载机器人行业:技术突破与生态融合加速发展
人工智能·机器人·制造
科研实践课堂(小绿书)4 小时前
机器学习在智能水泥基复合材料中的应用与实践
人工智能·机器学习·复合材料·水泥基·混凝土
AI医影跨模态组学4 小时前
Hepatology(IF=16.8)复旦大学附属中山医院孙惠川、徐彬等团队:基于MRI影像组学动态变化预测HCC免疫治疗后病理完全缓解
人工智能
123过去4 小时前
nfc-list使用教程
linux·网络·测试工具·安全