完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
比如realsenseviewer,我想用pyrealsense2来控制深度曝光水平。
所以我正在寻找一个解释,但我还没有发现任何相关的东西。 谁可以告诉我控制深度曝光的方法或代码? 以上来自于谷歌翻译 以下为原文 Such as realsenseviewer, i want to control depth exposure level with pyrealsense2 . So i'm searching for an explanation, But I haven't been finding anything associated with that. Who can tell me a method or a code to control depth exposure ? |
|
相关推荐
5个回答
|
|
你好CVAMAN,
感谢您对英特尔实感摄像头的关注。 您应该尝试下面的代码段: print(sensor.get_option(rs.option.exposure)sensor.set_option(rs.option.enable_auto_exposure,1)#然后禁用设置sensor.set_option(rs.option.enable_auto_exposure,0)print(sensor.get_option(rs.option) .exposure)如果这有帮助,请告诉我。 问候,亚历山德拉 以上来自于谷歌翻译 以下为原文 Hi CVAMAN, Thank you for your interest in the Intel RealSense cameras. You should try the code snippet below: print(sensor.get_option(rs.option.exposure) sensor.set_option(rs.option.enable_auto_exposure, 1) # Then disable the setting sensor.set_option(rs.option.enable_auto_exposure, 0) print(sensor.get_option(rs.option.exposure) Let me know if this helps. Regards, Alexandra |
|
|
|
谢谢你的答案。 所以...正如你所说,如果我关闭自动曝光,那么如何控制深度的曝光值? 我想手动设置值。 由于我使用红外光源,我必须控制曝光值以获得足够的红外图像。 以上来自于谷歌翻译 以下为原文 Thank you for answer. So... As you said , if i turn off auto exposure then how to control exposure value for depth ? i want to set up the value manually. Since i'm using ir led light source , i have to control the exposure value to get adequate ir images. |
|
|
|
你好CVAMAN, 您可以尝试下面的代码片段,让我知道它是否有效吗? exposure = dev.get_pu(rs.option.exposure)print“Exposure =%d”%exposureprint“将增益设置为新值”dev.set_pu(rs.option.exposure,32)exposure = dev.get_pu(rs.option。 曝光)打印“新曝光=%d”%曝光 问候,亚历山德拉 以上来自于谷歌翻译 以下为原文 Hi CVAMAN, Could you try the code snippet below and let me know if it works? exposure = dev.get_pu(rs.option.exposure) print "Exposure = %d" % exposure print "Setting gain to new value" dev.set_pu(rs.option.exposure, 32) exposure = dev.get_pu(rs.option.exposure) print "New exposure = %d" % exposure Regards, Alexandra |
|
|
|
jerry1978 发表于 2018-10-16 17:17 对不起,迟到了。 我刚刚做了,但你的代码片段不起作用。 没有属性'get_pu'。 我的Python编辑器:Pycharm Python版本3.6.x 我正在使用Realsense D435 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 曝光= device.get_pu(rs.option.exposure) AttributeError:'pyrealsense2.pyrealsense2.device'对象没有属性'get_pu' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 以上来自于谷歌翻译 以下为原文 Sorry for late feedback. I just did,but your code snippet doesn't work. There is no attribute 'get_pu'. My Python editor : Pycharm Python version 3.6.x I'm using Realsense D435 %%%%%%%%%%%% ERROR %%%%%%%%%%%%%%%%%%% exposure=device.get_pu(rs.option.exposure) AttributeError: 'pyrealsense2.pyrealsense2.device' object has no attribute 'get_pu' %%%%%%%%%%%% ERROR %%%%%%%%%%%%%%%%%%% |
|
|
|
我刚才解决了这个问题
感谢您的帮助。 以上来自于谷歌翻译 以下为原文 Ah i just now solve the problem thank you for your help. |
|
|
|
只有小组成员才能发言,加入小组>>
561浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-2 23:28 , Processed in 0.722971 second(s), Total 82, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号