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

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

相关推荐
IpdataCloud几秒前
IP查询高精度怎么选?8个指标判断是否适合你
网络·网络协议·tcp/ip
李白你好12 分钟前
RedTeam-Agent无需手动操作,AI 接管所有渗透工具,让安全测试真正自动化
运维·人工智能·自动化
聊点儿技术15 分钟前
IP风险等级评估是什么?跨境电商业务场景全解析
网络·网络协议·tcp/ip
容智信息16 分钟前
国家级算力底座+企业级智能体:容智Agent OS 获选入驻移动云能中心,联手赋能千行百业
大数据·人工智能·自然语言处理·智慧城市
彭祥.20 分钟前
ONNX模型多线程推理并解决线程踩踏问题
人工智能
Lonwayne30 分钟前
从提示词工程到驾驭工程:AI协作的三代进化
人工智能·ai·ai编程·ai智能体
herinspace39 分钟前
如何解决管家婆辉煌零售POS中显示的原价和售价不一致?
网络·人工智能·学习·excel·语音识别·零售
肖有米XTKF864639 分钟前
金木新零售模式系统开发介绍平台解析
人工智能·信息可视化·软件工程·团队开发·csdn开发云
JS_SWKJ42 分钟前
多网闸级联部署避坑指南:安全与性能如何兼得?
网络·安全