directshow 摄像头参数 设置

来源:互联网 发布:opencv vibe算法改进 编辑:程序博客网 时间:2024/04/27 21:36

IAMCameraControl::Set Method

The Set method sets a specified property on the camera.

Syntax

Copy

HRESULT Set(  [in]  long Property,  [in]  long lValue,  [in]  long Flags);
Parameters
Property [in]

Specifies the property to set, as a value from the CameraControlProperty enumeration.

lValue [in]

Specifies the new value of the property.

Flags [in]

Specifies the desired control setting, as a member of the CameraControlFlags enumeration.

Return Value

If method succeeds, it returns S_OK. Otherwise it returns an HRESULT error code.

Remarks

If the Flags parameter is CameraControl_Flags_Auto, the method ignores the lValue parameter.

 

 

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

CameraControlProperty Enumeration

The CameraControlProperty enumeration specifies a setting on a camera.

Syntax

Copy

typedef enum tagCameraControlProperty {  CameraControl_Pan,  CameraControl_Tilt,  CameraControl_Roll,  CameraControl_Zoom,  CameraControl_Exposure,  CameraControl_Iris,  CameraControl_Focus } CameraControlProperty;
Constants
CameraControl_Pan

Specifies the camera's pan setting, in degrees. Values range from –180 to +180, with the default set to zero. Positive values are clockwise from the origin (the camera rotates clockwise when viewed from above), and negative values are counterclockwise from the origin.

CameraControl_Tilt

Specifies the camera's tilt setting, in degrees. Values range from –180 to +180, with the default set to zero. Positive values point the imaging plane up, and negative values point the imaging plane down.

CameraControl_Roll

Specifies the camera's roll setting, in degrees. Values range from –180 to +180, with the default set to zero. Positive values cause a clockwise rotation of the camera along the image-viewing axis, and negative values cause a counterclockwise rotation of the camera.

CameraControl_Zoom

Specifies the camera's zoom setting, in millimeters. Values range from 10 to 600, and the default is specific to the device.

CameraControl_Exposure

Specifies the exposure setting, in log base 2 seconds. In other words, for values less than zero, the exposure time is 1/2^n seconds, and for values zero or above, the exposure time is 2^n seconds. For example:

 

CameraControl_Iris

Specifies the camera's iris setting, in units of fstop* 10.

CameraControl_Focus

Specifies the camera's focus setting, as the distance to the optimally focused target, in millimeters. The range and default value are specific to the device.

Remarks

For a given property, a particular device might implement only a subset of the listed range.

Requirements

Header

Strmif.h (include Dshow.h)

 

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

The CameraControlFlags enumeration defines whether a camera setting is controlled manually or automatically.

Syntax

Copy

typedef enum  {  CameraControl_Flags_Auto     = 0x0001,  CameraControl_Flags_Manual   = 0x0002 } CameraControlFlags;
Constants
CameraControl_Flags_Auto

The setting is controlled automatically.

CameraControl_Flags_Manual

The setting is controlled manually.

Remarks
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 如果受到法律的伤害怎么办 86岁了还怕死怎么办 风衣的腰带丢了怎么办 成为伪娘身上的毛怎么办 军官升不上去了怎么办 王者荣耀代练封号怎么办 cf淘宝代练封号怎么办 买音乐会的票过期怎么办 十年多年前被怨错拘留了怎么办 与室友关系闹僵怎么办 开庭后被告威胁我们证人怎么办 开车撞了豪车怎么办 我把人撞了全责怎么办 开车撞伤人没钱赔怎么办 开车撞伤无证驾驶人怎么办 开车把人撞伤了只买交强险怎么办 开车撞伤人赔不起怎么办 如果车撞死人了怎么办 给车撞了跑了怎么办 开车把人撞死了怎么办 开车把人蹭了怎么办 驾照被扣54分怎么办? 驾照被扣了12分怎么办 驾驶证丢失后被扣分怎么办 驾照扣了三十分怎么办 一次被扣了12分怎么办 驾照被扣35分后怎么办 我驾驶证扣了6分怎么办 c1驾照被扣6分怎么办 被扣了6分怎么办 今年扣了6分怎么办 驾照分不够扣了怎么办 被扣6分怎么办罚款15 驾照分数扣36分怎么办 驾照12分不够扣怎么办 驾照b证扣分了怎么办 违章18分不够扣怎么办 b2驾驶证扣11分怎么办 驾照一共扣30分怎么办 驾照扣了100分怎么办 驾照扣40多分怎么办