【问题标题】:Realsense D435 change resolution in MATLABRealsense D435 在 MATLAB 中更改分辨率
【发布时间】:2021-07-09 15:51:28
【问题描述】:

我看到来自 Intel 的示例 python 代码提供了一种更改分辨率的方法,如下所示:

config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)
# Start streaming
pipeline.start(config)

https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/opencv_viewer_example.py

我试图在 MATLAB 中做同样的事情,但得到一个错误:

config = realsense.config();
config.enable_stream(realsense.stream.depth,1280, 720, realsense.format.z16, 30);

pipeline = realsense.pipeline();

% Start streaming on an arbitrary camera with default settings
profile = pipeline.start(config);

错误如下:

Error using librealsense_mex
Couldn't resolve requests

Error in realsense.pipeline/start (line 31)
                    out = realsense.librealsense_mex('rs2::pipeline',
                    'start', this.objectHandle, varargin{1}.objectHandle);

Error in pointcloudRecordCfg (line 15)
profile = pipeline.start(config);

有什么建议吗?

【问题讨论】:

    标签: python matlab realsense


    【解决方案1】:

    我用这个,效果很好。

    config = realsense.config();
    config.enable_stream(realsense.stream.depth,640,480,realsense.format.z16,30);
    config.enable_stream(realsense.stream.color,640,480,realsense.format.rgb8,30);
    % Make Pipeline object to manage streaming
    pipe = realsense.pipeline();
    % Start streaming with default settings
    profile = pipe.start(config);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-03
      • 2015-04-29
      • 1970-01-01
      • 1970-01-01
      • 2014-08-02
      • 2012-06-28
      相关资源
      最近更新 更多