在新的OCV中配置摄像机属性2.4.3 [英] Configuring camera properties in new OCV 2.4.3

查看:1110
本文介绍了在新的OCV中配置摄像机属性2.4.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可能只是谷歌的错,但我找不到一种方式(读取功能)更改相机在新的开放简历的属性。我需要停用相机的自动曝光自动增益

这是否可能?

解决方案

所以,有你的VideoCapture:

  VideoCapture cap 

现在您可以尝试设置或获取属性:

  //可能工作与否,高度驱动/ impl特定。 
cap.set(CV_CAP_PROP_AUTO_EXPOSURE,0);
double exposure = cap.get(CV_CAP_PROP_AUTO_EXPOSURE);有时您甚至可以通过以下方式访问驱动程序配置对话框:






$ b

b $ b

  cap.set(CV_CAP_PROP_SETTINGS,1); 

这些常数位于highgui_c.h,大约l 333


I may just be googling wrong, but I cannot find out a way (read function) to change properties of camera in the new Open CV. I need to disable auto exposure and auto gain of the camera.
Is that even possible?

解决方案

so, there's your VideoCapture:

VideoCapture cap(0);

now you could try to set or get properties:

//may work or not, highly driver/impl specific.
cap.set(CV_CAP_PROP_AUTO_EXPOSURE, 0 ); 
double exposure = cap.get(CV_CAP_PROP_AUTO_EXPOSURE); 

sometimes you can even acces the drivers config dialog this way:

cap.set(CV_CAP_PROP_SETTINGS , 1 );

those constants are in highgui_c.h, around l 333

这篇关于在新的OCV中配置摄像机属性2.4.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆