Intel Realsense D435 获取摄像头option参数值 get_option()
生活随笔
收集整理的這篇文章主要介紹了
Intel Realsense D435 获取摄像头option参数值 get_option()
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
def get_option(self, option): # real signature unknown; restored from __doc__"""get_option(self: pyrealsense2.pyrealsense2.options, option: pyrealsense2.pyrealsense2.option) -> floatRead option value from the device.從設備讀取選項值。"""return 0.0
示例代碼:
# -*- coding: utf-8 -*- """ @File : 200109_測試不同曝光值下幀生成時間.py @Time : 2020/1/9 16:52 @Author : Dontla @Email : sxana@qq.com @Software: PyCharm """import numpy as np import pyrealsense2 as rsctx = rs.context()pipeline = rs.pipeline(ctx) cfg = rs.config() cfg.enable_device('838212073161') cfg.enable_stream(rs.stream.depth, 640, 360, rs.format.z16, 30) cfg.enable_stream(rs.stream.color, 640, 360, rs.format.bgr8, 30) pipeline_profile = pipeline.start(cfg)sensor = pipeline.get_active_profile().get_device().query_sensors()[1] print(sensor.get_option(rs.option.enable_auto_exposure))sensor支持的option參數值:pyrealsense2 sensor.get_supported_options()(獲取當前sensor支持的參數)
總結
以上是生活随笔為你收集整理的Intel Realsense D435 获取摄像头option参数值 get_option()的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Intel Realsense D435
- 下一篇: pyrealsense2 sensor.