imgutils.generic.enhance

Overview:

Generic tools for image enhancement models.

ImageEnhancer

class imgutils.generic.enhance.ImageEnhancer[source]

Enhances images by applying various processing techniques.

This class provides methods to enhance images, including processing RGB images, alpha channels, and RGBA images.

Methods:

process: Enhances the input image.

Private Methods:

_process_rgb: Processes the RGB channels of an image. _process_alpha_channel_with_model: Processes the alpha channel using a model. _process_rgba: Processes RGBA images.

Attributes:

None

__init__()
process(image: str | PathLike | bytes | bytearray | BinaryIO | Image)[source]

Enhances the input image.

Parameters:

image (ImageTyping) – The input image.

Returns:

The enhanced image.

Return type:

Image.Image