Camera
Qt Base Class: QCamera
Signature: QCamera(self, cameraDevice: PySide6.QtMultimedia.QCameraDevice, parent: Optional[PySide6.QtCore.QObject] = None) -> None
QCamera(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None
QCamera(self, position: PySide6.QtMultimedia.QCameraDevice.Position, parent: Optional[PySide6.QtCore.QObject] = None) -> None
Base classes
Name | Children | Inherits |
---|---|---|
ObjectMixin prettyqt.core.object |
||
QCamera PySide6.QtMultimedia QCamera(self, cameraDevice: PySide6.QtMultimedia.QCameraDevice, parent: Optional[PySide6.QtCore.QObject] \= None) -> None |
⋔ Inheritance diagram
graph TD
1473574001712["multimedia.Camera"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473573952912["QtMultimedia.QCamera"]
1473288842240["QtCore.QObject"]
1473291690208["Shiboken.Object"]
1473299815024 --> 1473574001712
140713234304496 --> 1473299815024
1473573952912 --> 1473574001712
1473288842240 --> 1473573952912
1473291690208 --> 1473288842240
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: ObjectMixin
, QCamera
Source code in prettyqt\multimedia\camera.py
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
|
get_error() -> ErrorStr
get_exposure_mode() -> ExposureModeStr
get_flash_mode() -> FlashModeStr
get_torch_mode() -> TorchModeStr
get_white_balance_mode() -> WhiteBalanceModeStr
set_exposure_mode(mode: ExposureModeStr | multimedia.QCamera.ExposureMode)
Set the exposure mode.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mode |
ExposureModeStr | ExposureMode
|
exposure mode |
required |
set_flash_mode(mode: FlashModeStr | multimedia.QCamera.FlashMode)
Set the flash mode.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mode |
FlashModeStr | FlashMode
|
flash mode |
required |
set_torch_mode(mode: TorchModeStr | multimedia.QCamera.TorchMode)
Set the torch mode.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mode |
TorchModeStr | TorchMode
|
torch mode |
required |
set_white_balance_mode(mode: WhiteBalanceModeStr | multimedia.QCamera.WhiteBalanceMode)
Set the white balance mode.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mode |
WhiteBalanceModeStr | WhiteBalanceMode
|
white balance mode |
required |
Source code in prettyqt\multimedia\camera.py
⌗ Property table
Qt Property | Type | Doc |
---|---|---|
objectName |
QString | |
active |
bool | |
cameraDevice |
QCameraDevice | |
error |
QCamera::Error | |
errorString |
QString | |
cameraFormat |
QCameraFormat | |
focusMode |
QCamera::FocusMode | |
focusPoint |
QPointF | |
customFocusPoint |
QPointF | |
focusDistance |
float | |
minimumZoomFactor |
float | |
maximumZoomFactor |
float | |
zoomFactor |
float | |
exposureTime |
float | |
manualExposureTime |
int | |
isoSensitivity |
int | |
manualIsoSensitivity |
int | |
exposureCompensation |
float | |
exposureMode |
QCamera::ExposureMode | |
flashReady |
bool | |
flashMode |
QCamera::FlashMode | |
torchMode |
QCamera::TorchMode | |
whiteBalanceMode |
QCamera::WhiteBalanceMode | |
colorTemperature |
int | |
supportedFeatures |
QFlags |