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) -> boolis_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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyxelart_detector-0.1.3.tar.gz | 20.1 kB | Without provenance | Details for pyxelart_detector-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyxelart_detector-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for pyxelart_detector-0.1.3-py3-none-any.whl |
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
|
Security for pyxelart-detector 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.