QCameraExposureControlclass allows controlling camera exposure parameters. 更多 …
QCameraExposureclass is the usual method of adjusting exposure related parameters when using camera functionality. This class provides a more complete but less easy to use interface, and also forms the interface to implement when writing a new implementation ofQCamera功能。You can adjust a number of parameters that will affect images and video taken with the corresponding
QCameraobject - see theExposureParameterenumeration.The interface name of
QCameraExposureControlisorg.qt-project.qt.cameraexposurecontrol/5.0作为定义在QCameraExposureControl_iid.另请参阅
QCameraExposureQCamera
QCameraExposureControl
(
[
parent=None
]
)
¶
- param parent
QObject
构造摄像头曝光控制对象采用
parent
.
PySide2.QtMultimedia.QCameraExposureControl.
ExposureParameter
¶
|
常量 |
描述 |
|---|---|
|
QCameraExposureControl.ISO |
Camera ISO sensitivity, specified as integer value. |
|
QCameraExposureControl.Aperture |
Lens aperture is specified as an qreal F number. The supported apertures list can change depending on the focal length, in such a case the exposureParameterRangeChanged() signal is emitted. |
|
QCameraExposureControl.ShutterSpeed |
Shutter speed in seconds, specified as qreal. |
|
QCameraExposureControl.ExposureCompensation |
Exposure compensation, specified as qreal EV value. |
|
QCameraExposureControl.FlashPower |
Manual flash power, specified as qreal value. Accepted power range is [0..1.0], with 0 value means no flash and 1.0 corresponds to full flash power. |
此值仅使用于
manual
flash
mode
.
|
常量 |
描述 |
|---|---|
|
QCameraExposureControl.TorchPower |
Manual torch power, specified as qreal value. Accepted power range is [0..1.0], with 0 value means no light and 1.0 corresponds to full torch power. |
此值仅使用于
torch
flash
mode
.
|
常量 |
描述 |
|---|---|
|
QCameraExposureControl.FlashCompensation |
Flash compensation, specified as qreal EV value. |
|
QCameraExposureControl.SpotMeteringPoint |
The relative frame coordinate of the point to use for exposure metering in spot metering mode, specified as a
|
|
QCameraExposureControl.ExposureMode |
Camera exposure mode. |
|
QCameraExposureControl.MeteringMode |
Camera metering mode. |
|
QCameraExposureControl.ExtendedExposureParameter |
The base value for platform specific extended parameters. For such parameters the sequential values starting from should be used. |
PySide2.QtMultimedia.QCameraExposureControl.
actualValue
(
参数
)
¶
参数
–
ExposureParameter
object
Returns the actual exposure
参数
value, or invalid QVariant() if the value is unknown or not supported.
The actual parameter value may differ for the requested one if automatic mode is selected or camera supports only limited set of values within the supported range.
PySide2.QtMultimedia.QCameraExposureControl.
actualValueChanged
(
参数
)
¶
参数
–
int
PySide2.QtMultimedia.QCameraExposureControl.
isParameterSupported
(
参数
)
¶
参数
–
ExposureParameter
bool
Returns true is exposure
参数
is supported by backend.
PySide2.QtMultimedia.QCameraExposureControl.
parameterRangeChanged
(
参数
)
¶
参数
–
int
PySide2.QtMultimedia.QCameraExposureControl.
requestedValue
(
参数
)
¶
参数
–
ExposureParameter
object
Returns the requested exposure
参数
值。
PySide2.QtMultimedia.QCameraExposureControl.
requestedValueChanged
(
参数
)
¶
参数
–
int
PySide2.QtMultimedia.QCameraExposureControl.
setValue
(
参数
,
value
)
¶
参数
–
ExposureParameter
value – object
bool
Set the exposure
参数
to
value
. If a null or invalid
QVariant
is passed, backend should choose the value automatically, and if possible report the actual value to user with
actualValue()
.
Returns true if parameter is supported and value is correct.