Skip to main content
# PyBRISQUE
An implementation of BRISQUE (Blind/Referenceless Image Spatial Quality
Evaluator) in Python from the paper: ["No-Reference Image Quality Assessment
in the Spatial Domain"](https://ieeexplore.ieee.org/document/6272356/).


## Installation
The package is in PyPI so you can install it simply by this command:

```pip install --process-dependency-links pybrisque```

## Usage
Initialize once:
```
brisq = BRISQUE()
```
and get the BRISQUE feature or score many times:
```
brisq.get_feature('/path')
brisq.get_score('/image_path')
```


## Limitations
This implementation is heavily adopted from the original Matlab
implementation in [here](https://github.com/dsoellinger/blind_image_quality_toolbox/tree/master/%2Bbrisque). There is one catch though, the bicubic interpolation when resizing image in
Matlab and OpenCV is a bit different as explained in [here](https://stackoverflow.com/questions/26823140/imresize-trying-to-understand-the-bicubic-interpolation). For now, it uses ```nearest``` interpolation
which gives the most similar output with the original implementation.

Comparing with Matlab original implementation on reference images of TID 2008:

![Comparison](examples/comparison.png)

And the absolute differences' stat is as follows:
```
{'min': 0.17222238726479588,
'max': 16.544924728934404,
'mean': 3.9994322498322754,
'std': 3.0715344507521416}
```

Metadata

Release files for pybrisque 1.0

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

Source distribution (sdist)

Source distribution for pybrisque 1.0
File Size Uploaded Provenance Actions
pybrisque-1.0.tar.gz 136.4 kB Without provenance Details for pybrisque-1.0.tar.gz

Release files / pybrisque-1.0.tar.gz

Download URL pybrisque-1.0.tar.gz
Size 136.4 kB
Tags Source
SHA-256 checksum
How to use checksums
15878426e7d7576232cc4282c2de30194fff4af4a04162738d112054e81a4f8b
BLAKE2b-256 checksum
How to use checksums
0b382bafdc76e506df9e6ea6ca636e1fe291f2b40119c1c347f4a240d8ee3300
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

Security for pybrisque 1.0

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.

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file No provenance

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