pyteenybrisque
Tiny BRISQUE no-reference image quality scorer. One function, two runtime
dependencies (numpy and Pillow), ~250 KB of vendored model weights.
import pyteenybrisque
score = pyteenybrisque.score(image="photo.jpg")
print(score) # lower is better; ~0-100 scale
score() accepts a path, a PIL.Image.Image, or a numpy array (HxW
grayscale or HxWx{3,4} RGB / RGBA, uint8 or float in [0, 1]).
Installation
pip install pyteenybrisque
What it computes
BRISQUE (Mittal, Moorthy, Bovik 2012) is a no-reference image quality metric. It extracts 36 natural-scene-statistics features from the luma channel at two scales and runs them through an RBF SVR trained on LIVE IQA. Lower scores mean higher perceived quality.
The implementation matches pyiqa's
BRISQUE within ~0.1 BRISQUE points on natural images.
How it compares
Each metric in the table below was scored on the Kodak True Color test set (8 lossless 768×512 PNGs) under six degradation sweeps. Per source and metric, scores are min-max normalised across the sweep so 0 = best in run, 1 = worst; the line is the median across sources, the shaded band is the inter-quartile range.
BRISQUE is competitive with the deep-learning metrics on every degradation.
The benchmark script lives at tools/benchmark_metrics.py and is
reproducible end-to-end.
Why "teeny"
pyiqa is the right tool if you want every IQA metric in one place. It pulls
in PyTorch and ~2 GB of dependencies. This package does one metric, on top of
just numpy and Pillow, in ~250 KB. Use it when BRISQUE is all you need.
License
MIT
Metadata
Release files for pyteenybrisque 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyteenybrisque-0.1.2.tar.gz | 183.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyteenybrisque-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 368.1 kB
Release files / pyteenybrisque-0.1.2.tar.gz
| Download URL | pyteenybrisque-0.1.2.tar.gz |
|---|---|
| Size | 183.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d52151b3e840fb4075d1eddb2e155c018766e8130f050faf87ef424a15fe5db2
|
|
BLAKE2b-256 checksum How to use checksums |
71ded80ece1d741108959a6265ab864c8a8c0702210b4883a7585ac6918f4218
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logRelease files / pyteenybrisque-0.1.2-py3-none-any.whl
| Download URL | pyteenybrisque-0.1.2-py3-none-any.whl |
|---|---|
| Size | 184.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c4b9f1eaef2e812daf2d07fd586cfd778479d2855073eacff35fd4a8469487b
|
|
BLAKE2b-256 checksum How to use checksums |
bc175e9cf9f24614bcffe592a6d24fd9ce34e98245db9cf8473d861ed07f9225
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency log