QCameraImageCaptureControl¶
The
QCameraImageCaptureControl
class provides a control interface for image capture services. More…
Detailed Description¶
The interface name of
QCameraImageCaptureControl
isorg.qt-project.qt.cameraimagecapturecontrol/5.0
as defined inQCameraImageCaptureControl_iid
.See also
-
class
QCameraImageCaptureControl
([parent=None])¶ - param parent
QObject
Constructs a new image capture control object with the given
parent
-
PySide2.QtMultimedia.QCameraImageCaptureControl.
cancelCapture
()¶ Cancel pending capture requests.
-
PySide2.QtMultimedia.QCameraImageCaptureControl.
capture
(fileName)¶ - Parameters
fileName – unicode
- Return type
int
Initiates the capture of an image to
fileName
. ThefileName
can be relative or empty, in this case the service should use the system specific place and file naming scheme.The Camera service should save all the capture parameters like exposure settings or image processing parameters, so changes to camera parameters after is called do not affect previous capture requests.
Returns the capture request id number, which is used later with
imageExposed()
,imageCaptured()
andimageSaved()
signals.
-
PySide2.QtMultimedia.QCameraImageCaptureControl.
driveMode
()¶ - Return type
DriveMode
Returns the current camera drive mode.
See also
-
PySide2.QtMultimedia.QCameraImageCaptureControl.
error
(id, error, errorString)¶ - Parameters
id –
int
error –
int
errorString – unicode
-
PySide2.QtMultimedia.QCameraImageCaptureControl.
imageAvailable
(requestId, buffer)¶ - Parameters
requestId –
int
buffer –
QVideoFrame
-
PySide2.QtMultimedia.QCameraImageCaptureControl.
imageCaptured
(requestId, preview)¶ - Parameters
requestId –
int
preview –
QImage
-
PySide2.QtMultimedia.QCameraImageCaptureControl.
imageExposed
(requestId)¶ - Parameters
requestId –
int
-
PySide2.QtMultimedia.QCameraImageCaptureControl.
imageMetadataAvailable
(id, key, value)¶ - Parameters
id –
int
key – unicode
value – object
-
PySide2.QtMultimedia.QCameraImageCaptureControl.
imageSaved
(requestId, fileName)¶ - Parameters
requestId –
int
fileName – unicode
-
PySide2.QtMultimedia.QCameraImageCaptureControl.
isReadyForCapture
()¶ - Return type
bool
Identifies if a capture control is ready to perform a capture immediately (all the resources necessary for image capture are allocated, hardware initialized, flash is charged, etc).
Returns true if the camera is ready for capture; and false if it is not.
It’s permissible to call
capture()
while the camera status isActiveStatus
regardless of property value. If camera is not ready to capture image immediately, the capture request is queued with all the related camera settings to be executed as soon as possible.
-
PySide2.QtMultimedia.QCameraImageCaptureControl.
readyForCaptureChanged
(ready)¶ - Parameters
ready –
bool
-
PySide2.QtMultimedia.QCameraImageCaptureControl.
setDriveMode
(mode)¶ - Parameters
mode –
DriveMode
Sets the current camera drive
mode
.See also
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.