Skip to main content

PyxelArt Detector

PyxelArt Detector is a Python library for analyzing images to determine if they qualify as pixel art.

$ python3 -m pyxelart_detector ./example.png
True

Features

  • Accurate Detection: Uses FFT-based transformations and a tailored cross-kernel approach to identify pixel art. Reach out via the issues, if you think the library misclassified an image.
  • Simple API: I don't like "complicated", so here you go:
    • is_pixel_art(filepath: Path) -> bool
    • is_pixel_art_numpy(image: np.ndarray) -> bool

Installation

Install via uv/pip:

uv add pyxelart-detector
# or
pip install pyxelart-detector

Usage

After installation, import and use the library in your projects as follows:

from pyxelart_detector import is_pixel_art, is_pixel_art_numpy

# Example using the file-based API
result = is_pixel_art("path/to/your/image.png")
if result:
    print("This is pixel art!")
else:
    print("Not pixel art.")

# Example using the NumPy-based API
import matplotlib.pyplot as plt
image = plt.imread("path/to/your/image.png")
if is_pixel_art_numpy(image):
    print("This is pixel art!")
else:
    print("Not pixel art.")

Contributing

Contributions are welcome! If you have ideas or improvements, please open an issue or submit a pull request on GitHub.

Acknowledgments

This library is built on excellent open-source tools, including NumPy, Matplotlib, and others.

Metadata

Release files for pyxelart-detector 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyxelart-detector 0.1.3
File Size Uploaded
pyxelart_detector-0.1.3.tar.gz 20.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyxelart-detector 0.1.3
File Interpreter ABI Platform
pyxelart_detector-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 41.3 kB

Release files / pyxelart_detector-0.1.3.tar.gz

Download URL pyxelart_detector-0.1.3.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
640e2d9a166fa92ac65088a8ecce2a5a1f7d43b55005d7ab82fc9abb9429e1da
BLAKE2b-256 checksum
How to use checksums
341617b5a006467082e691ccb3bbf3c5ef6f1ab05aa5e71af479fa9d7cbdc470
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.1

Release files / pyxelart_detector-0.1.3-py3-none-any.whl

Download URL pyxelart_detector-0.1.3-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85e6e868e9fc83deaa9cd1bf8ab12f2f60c367d70121a0f27c56a7d514937e56
BLAKE2b-256 checksum
How to use checksums
ac0cfe79902a4de74eb52cbacc0471150d00feb4bcf176ea8113421d28b2f457
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.1

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page