Exposure
- class CVAugmentor.assets.augmentations._exposure.Exposure(exposure_factor: int | float | None = None)
Adjust the exposure of an image. The exposure means the amount of light that reaches the image sensor.
Usage
The class instance must be called.
- __init__(exposure_factor: int | float | None = None) None
Constructor of the Exposure class.
- Parameters:
exposure_factor (int or float, optional) – Exposure factor. The default value is None. If None, a random exposure factor will be used.
- Return type:
None.
- _expose(image: Image) Image
The exposure adjustment operation.
- Parameters:
image (Image.Image) – The image to be augmented.
- Returns:
exposed_image – The exposure adjusted image.
- Return type:
Image.Image