PixelOE is a Python library for detail-oriented image pixelization based on a contrast-aware outline expansion algorithm. It's designed to create pixel art-style images while preserving key details. The current version is 0.1.4, and the library appears to be actively maintained with releases as features and improvements are developed.
pip install pixeloeVerified import paths — ran on the pinned version, not inferred.
This quickstart loads an image (a dummy one created for the example), applies the `pixelize` function with common parameters, and saves the resulting pixelized image. The `pixelize` function takes a `PIL.Image` object as input and returns a new `PIL.Image` object.
Ensure your Python environment is 3.10 or higher. Use `python --version` to check.
Convert your image to a PIL Image first. E.g., for an OpenCV (NumPy) image: `pil_img = Image.fromarray(cv2.cvtColor(np_img, cv2.COLOR_BGR2RGB))`.
For performance-critical applications, pre-process large images by resizing them to a smaller resolution using `PIL.Image.resize()` before passing them to `pixeloe.pixelize()`.