QCameraImageCaptureControl

The QCameraImageCaptureControl class provides a control interface for image capture services. More

Inheritance diagram of PySide2.QtMultimedia.QCameraImageCaptureControl

Detailed Description

The interface name of QCameraImageCaptureControl is org.qt-project.qt.cameraimagecapturecontrol/5.0 as defined in QCameraImageCaptureControl_iid .

See also

requestControl()

class PySide2.QtMultimedia.QCameraImageCaptureControl([parent=None])
param parent

PySide2.QtCore.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 – str

Return type

int

Initiates the capture of an image to fileName . The fileName 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() and imageSaved() signals.

PySide2.QtMultimedia.QCameraImageCaptureControl.driveMode()
Return type

DriveMode

Returns the current camera drive mode.

See also

setDriveMode()

PySide2.QtMultimedia.QCameraImageCaptureControl.error(id, error, errorString)
Parameters
  • id – int

  • error – int

  • errorString – str

PySide2.QtMultimedia.QCameraImageCaptureControl.imageAvailable(requestId, buffer)
Parameters
PySide2.QtMultimedia.QCameraImageCaptureControl.imageCaptured(requestId, preview)
Parameters
PySide2.QtMultimedia.QCameraImageCaptureControl.imageExposed(requestId)
Parameters

requestId – int

PySide2.QtMultimedia.QCameraImageCaptureControl.imageMetadataAvailable(id, key, value)
Parameters
  • id – int

  • key – str

  • value – object

PySide2.QtMultimedia.QCameraImageCaptureControl.imageSaved(requestId, fileName)
Parameters
  • requestId – int

  • fileName – str

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 is ActiveStatus 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

modeDriveMode

Sets the current camera drive mode .

See also

driveMode()