Skip to main content

pyteenybrisque

PyPI version Python versions CI

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.

JPEG quality sweep WebP quality sweep Gaussian blur sweep
Gaussian noise sweep Blocky upscale sweep Blurry upscale sweep

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)

Source distribution for pyteenybrisque 0.1.2
File Size Uploaded
pyteenybrisque-0.1.2.tar.gz 183.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyteenybrisque 0.1.2
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.1.2 This release

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