我知道realsense的重点是深度图像,但有没有办法暂时完全关闭深度摄像头?我正在使用c++应用编程接口。Python也很好。
发布于 2020-05-28 15:20:32
可以在启动相机之前禁用深度流。此外,您还可以根据需要配置流。
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
..
..
}
https://stackoverflow.com/questions/62056622
复制相似问题