首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MATLAB中的Realsense D435更改分辨率

MATLAB中的Realsense D435更改分辨率
EN

Stack Overflow用户
提问于 2021-07-09 23:51:28
回答 1查看 203关注 0票数 0

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

代码语言:javascript
复制
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中做与下面相同的事情,但得到一个错误:

代码语言:javascript
复制
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);

错误如下:

代码语言:javascript
复制
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);

有什么建议吗?

EN

回答 1

Stack Overflow用户

发布于 2021-08-24 07:14:05

我使用了这个,并且它工作了。

代码语言:javascript
复制
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);
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68319575

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档