【问题标题】:How to turn off depth sensor completely in realsense D435?如何在realsense D435中完全关闭深度传感器?
【发布时间】:2020-05-28 03:38:07
【问题描述】:

我知道realsense的重点是深度图像,但是有没有办法完全关闭深度相机一段时间?我正在使用 c++ api。 Python 也不错。

【问题讨论】:

    标签: realsense


    【解决方案1】:

    可以在启动相机之前禁用深度流。您也可以根据需要配置流。

    rs2::config config;
    config.disable_stream(RS2_STREAM_DEPTH); // disable depth streams
    
    rs2::pipeline pipeline;
    rs2::pipeline_profile pipeline_profile;
    
    pipeline_profile = pipeline.start(config); //  start camera
    
    while(true)
    {
        rs2::frameset current_frameset = pipeline.wait_for_frames(); //get all synched frames
        rs2::video_frame current_rgb_frame   = current_frameset.get_color_frame();// get rgb frame
        ..
        ..
    }
    

    【讨论】:

      猜你喜欢
      • 2019-06-13
      • 1970-01-01
      • 2019-03-11
      • 2020-03-05
      • 1970-01-01
      • 2023-03-03
      • 1970-01-01
      • 2020-11-06
      • 1970-01-01
      相关资源
      最近更新 更多