pyrealsense2 设置摄像头曝光值 get_active_profile.get_device().query_sensors set_option() rs.option.exposure
生活随笔
收集整理的這篇文章主要介紹了
pyrealsense2 设置摄像头曝光值 get_active_profile.get_device().query_sensors set_option() rs.option.exposure
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
# Get the sensor once at the beginning. (Sensor index: 1)
sensor = pipeline.get_active_profile().get_device().query_sensors()[1]# Set the exposure anytime during the operation
sensor.set_option(rs.option.exposure, 1000.000)
注意,手動設置攝像頭曝光的代碼需放在pipeline start 和 stop之間
務必要提醒一句,攝像頭在手動設置曝光值后,下次取消手動設置曝光值它會維持原來設置的曝光值不變,如果要讓它恢復自動曝光,除了可以使用hardware_reset之外(hardware_reset建議放在創建context之后挨著context),還能使用下面兩句代碼:
參考文章1:How to set the camera’s auto exposure parameters?
參考文章2:Cannot set exposure using python SDK (I can set it in RS viewer) #4449
總結
以上是生活随笔為你收集整理的pyrealsense2 设置摄像头曝光值 get_active_profile.get_device().query_sensors set_option() rs.option.exposure的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: pycharm点击右上角退出程序时ter
- 下一篇: 图像亮度增强测试