Blind/Referenceless Image Spatial Quality Evaluator (BRISQUE)
BRISQUE is a no-reference image quality score.
A good place to know how BRISQUE works : LearnOpenCV
Installation
# You will need to specify which version of OpenCV you intend to use with BRISQUE:
# * opencv-python
# * opencv-python-headless
# * opencv-contrib-python
# * opencv-contrib-python-headless
# You can do this with `pip install brisque[<YOUR CHOSEN VERSION HERE>]`, e.g.
pip install [opencv-python-headless]
Usage
- Trying to perform Image Quality Assessment on local images
from brisque.brisque import BRISQUE
obj = BRISQUE(url=False)
obj.score("<Ndarray of the Image>")
- Trying to perform Image Quality Assessment on web images
from brisque.brisque import BRISQUE
obj = BRISQUE(url=True)
obj.score("<URL for the Image>")
Example
Local Image
- Input
from brisque.brisque import BRISQUE
import numpy as np
from PIL import Image
img_path = "brisque/tests/sample-image.jpg"
img = Image.open(img_path)
ndarray = np.asarray(img)
obj = BRISQUE(url=False)
obj.score(img=ndarray)
- Output
34.84883848208594
URL
- Input
from brisque.brisque import BRISQUE
URL = "https://www.mathworks.com/help/examples/images/win64/CalculateBRISQUEScoreUsingCustomFeatureModelExample_01.png"
obj = BRISQUE(url=True)
obj.score(URL)
- Output
71.73427549219988
Metadata
Release files for brisque-opencv 0.0.17
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 |
|---|---|---|---|---|
| brisque_opencv-0.0.17.tar.gz | 141.4 kB | Without provenance | Details for brisque_opencv-0.0.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| brisque_opencv-0.0.17-py3-none-any.whl | Python 3 | none | any | Details for brisque_opencv-0.0.17-py3-none-any.whl |
Total release size: 281.9 kB
Release files / brisque_opencv-0.0.17.tar.gz
| Download URL | brisque_opencv-0.0.17.tar.gz |
|---|---|
| Size | 141.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2fc69f9b46179edaffe4c8f611ff7e38b1f12619570309e24b46d606afbce4e0
|
|
BLAKE2b-256 checksum How to use checksums |
87f032877e79035931f0a69d92bec3a73e617f25fd40bdf4ab2b237f7d2e3069
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / brisque_opencv-0.0.17-py3-none-any.whl
| Download URL | brisque_opencv-0.0.17-py3-none-any.whl |
|---|---|
| Size | 140.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc18154f34df06d223773a116ab0d7cd838ebbba5d6d90994c710ef6e9f0fe72
|
|
BLAKE2b-256 checksum How to use checksums |
3b53ee13a3086ab4e2e8766bf5016a4e5ece902f085ca06569d476d5c512cbb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Security for brisque-opencv 0.0.17
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.