QCameraExposure

The QCameraExposure class provides interface for exposure related camera settings. More

Inheritance diagram of PySide2.QtMultimedia.QCameraExposure

Detailed Description

PySide2.QtMultimedia.QCameraExposure.FlashMode

Constant

Description

QCameraExposure.FlashAuto

Automatic flash.

QCameraExposure.FlashOff

Flash is Off.

QCameraExposure.FlashOn

Flash is On.

QCameraExposure.FlashRedEyeReduction

Red eye reduction flash.

QCameraExposure.FlashFill

Use flash to fillin shadows.

QCameraExposure.FlashTorch

Constant light source. If supported, torch can be enabled without loading the camera.

QCameraExposure.FlashVideoLight

Constant light source, useful for video capture. The light is turned on only while camera is active.

QCameraExposure.FlashSlowSyncFrontCurtain

Use the flash in conjunction with a slow shutter speed. This mode allows better exposure of distant objects and/or motion blur effect.

QCameraExposure.FlashSlowSyncRearCurtain

The similar mode to but flash is fired at the end of exposure.

QCameraExposure.FlashManual

Flash power is manualy set.

PySide2.QtMultimedia.QCameraExposure.ExposureMode

Constant

Description

QCameraExposure.ExposureAuto

Automatic mode.

QCameraExposure.ExposureManual

Manual mode.

QCameraExposure.ExposurePortrait

Portrait exposure mode.

QCameraExposure.ExposureNight

Night mode.

QCameraExposure.ExposureBacklight

Backlight exposure mode.

QCameraExposure.ExposureSpotlight

Spotlight exposure mode.

QCameraExposure.ExposureSports

Spots exposure mode.

QCameraExposure.ExposureSnow

Snow exposure mode.

QCameraExposure.ExposureBeach

Beach exposure mode.

QCameraExposure.ExposureLargeAperture

Use larger aperture with small depth of field.

QCameraExposure.ExposureSmallAperture

Use smaller aperture.

QCameraExposure.ExposureAction

Action mode. Since 5.5

QCameraExposure.ExposureLandscape

Landscape mode. Since 5.5

QCameraExposure.ExposureNightPortrait

Night portrait mode. Since 5.5

QCameraExposure.ExposureTheatre

Theatre mode. Since 5.5

QCameraExposure.ExposureSunset

Sunset mode. Since 5.5

QCameraExposure.ExposureSteadyPhoto

Steady photo mode. Since 5.5

QCameraExposure.ExposureFireworks

Fireworks mode. Since 5.5

QCameraExposure.ExposureParty

Party mode. Since 5.5

QCameraExposure.ExposureCandlelight

Candlelight mode. Since 5.5

QCameraExposure.ExposureBarcode

Barcode mode. Since 5.5

QCameraExposure.ExposureModeVendor

The base value for device specific exposure modes.

PySide2.QtMultimedia.QCameraExposure.MeteringMode

Constant

Description

QCameraExposure.MeteringMatrix

Matrix metering mode.

QCameraExposure.MeteringAverage

Center weighted average metering mode.

QCameraExposure.MeteringSpot

Spot metering mode.

PySide2.QtMultimedia.QCameraExposure.aperture()
Return type

qreal

PySide2.QtMultimedia.QCameraExposure.apertureChanged(arg__1)
Parameters

arg__1qreal

PySide2.QtMultimedia.QCameraExposure.apertureRangeChanged()
PySide2.QtMultimedia.QCameraExposure.exposureCompensation()
Return type

qreal

PySide2.QtMultimedia.QCameraExposure.exposureCompensationChanged(arg__1)
Parameters

arg__1qreal

PySide2.QtMultimedia.QCameraExposure.exposureMode()
Return type

ExposureMode

PySide2.QtMultimedia.QCameraExposure.flashMode()
Return type

FlashModes

See also

setFlashMode()

PySide2.QtMultimedia.QCameraExposure.flashReady(arg__1)
Parameters

arg__1bool

PySide2.QtMultimedia.QCameraExposure.isAvailable()
Return type

bool

Returns true if exposure settings are supported by this camera.

PySide2.QtMultimedia.QCameraExposure.isExposureModeSupported(mode)
Parameters

modeExposureMode

Return type

bool

Returns true if the exposure mode is supported.

PySide2.QtMultimedia.QCameraExposure.isFlashModeSupported(mode)
Parameters

modeFlashModes

Return type

bool

Returns true if the flash mode is supported.

PySide2.QtMultimedia.QCameraExposure.isFlashReady()
Return type

bool

Returns true if flash is charged.

PySide2.QtMultimedia.QCameraExposure.isMeteringModeSupported(mode)
Parameters

modeMeteringMode

Return type

bool

Returns true if the metering mode is supported.

PySide2.QtMultimedia.QCameraExposure.isoSensitivity()
Return type

int

PySide2.QtMultimedia.QCameraExposure.isoSensitivityChanged(arg__1)
Parameters

arg__1int

PySide2.QtMultimedia.QCameraExposure.meteringMode()
Return type

MeteringMode

PySide2.QtMultimedia.QCameraExposure.requestedAperture()
Return type

qreal

Returns the requested manual aperture or -1.0 if automatic aperture is turned on.

PySide2.QtMultimedia.QCameraExposure.requestedIsoSensitivity()
Return type

int

Returns the requested ISO sensitivity or -1 if automatic ISO is turned on.

PySide2.QtMultimedia.QCameraExposure.requestedShutterSpeed()
Return type

qreal

Returns the requested manual shutter speed in seconds or -1.0 if automatic shutter speed is turned on.

PySide2.QtMultimedia.QCameraExposure.setAutoAperture()

Turn on auto aperture

PySide2.QtMultimedia.QCameraExposure.setAutoIsoSensitivity()

Turn on auto sensitivity

PySide2.QtMultimedia.QCameraExposure.setAutoShutterSpeed()

Turn on auto shutter speed

PySide2.QtMultimedia.QCameraExposure.setExposureCompensation(ev)
Parameters

evqreal

PySide2.QtMultimedia.QCameraExposure.setExposureMode(mode)
Parameters

modeExposureMode

See also

exposureMode()

PySide2.QtMultimedia.QCameraExposure.setFlashMode(mode)
Parameters

modeFlashModes

See also

flashMode()

PySide2.QtMultimedia.QCameraExposure.setManualAperture(aperture)
Parameters

apertureqreal

Sets the manual camera aperture value.

PySide2.QtMultimedia.QCameraExposure.setManualIsoSensitivity(iso)
Parameters

isoint

Sets the manual sensitivity to iso

PySide2.QtMultimedia.QCameraExposure.setManualShutterSpeed(seconds)
Parameters

secondsqreal

Set the manual shutter speed to seconds

PySide2.QtMultimedia.QCameraExposure.setMeteringMode(mode)
Parameters

modeMeteringMode

See also

meteringMode()

PySide2.QtMultimedia.QCameraExposure.setSpotMeteringPoint(point)
Parameters

pointQPointF

Allows setting the spot metering point to point .

PySide2.QtMultimedia.QCameraExposure.shutterSpeed()
Return type

qreal

Returns the current shutter speed in seconds.

PySide2.QtMultimedia.QCameraExposure.shutterSpeedChanged(speed)
Parameters

speedqreal

PySide2.QtMultimedia.QCameraExposure.shutterSpeedRangeChanged()
PySide2.QtMultimedia.QCameraExposure.spotMeteringPoint()
Return type

QPointF

When supported, the spot metering point is the (normalized) position of the point of the image where exposure metering will be performed. This is typically used to indicate an “interesting” area of the image that should be exposed properly.

The coordinates are relative frame coordinates: QPointF (0,0) points to the left top frame point, QPointF (0.5,0.5) points to the frame center, which is typically the default spot metering point.

The spot metering point is only used with spot metering mode.