# Blind/Referenceless Image Spatial Quality Evaluator (BRISQUE)
[](https://doi.org/10.5281/zenodo.11104461)
BRISQUE is a no-reference image quality score.
A good place to know how BRISQUE works : [LearnOpenCV](https://learnopencv.com/image-quality-assessment-brisque/)
## Installation
```bash
pip install brisque
```
## Usage
1. Trying to perform Image Quality Assessment on **local images**
```python
from brisque import BRISQUE
obj = BRISQUE(url=False)
obj.score("<Ndarray of the Image>")
```
2. Trying to perform Image Quality Assessment on **web images**
```python
from brisque import BRISQUE
obj = BRISQUE(url=True)
obj.score("<URL for the Image>")
```
### Example
#### Local Image
- Input
```python
from 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
```python
from 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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/rehanguha/brisque",
"name": "brisque",
"maintainer": null,
"docs_url": null,
"requires_python": ">=2.7",
"maintainer_email": null,
"keywords": "quality, svm, image, maths",
"author": "Rehan Guha",
"author_email": "rehanguha29@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/e6/9d/7cda6eeaeb53e47cf3b47163a5f216c5aeda71fbfe7ac9fbd59c56da1782/brisque-0.0.17.tar.gz",
"platform": null,
"description": "# Blind/Referenceless Image Spatial Quality Evaluator (BRISQUE) \n\n[](https://doi.org/10.5281/zenodo.11104461)\n\n\nBRISQUE is a no-reference image quality score.\n\nA good place to know how BRISQUE works : [LearnOpenCV](https://learnopencv.com/image-quality-assessment-brisque/)\n\n\n## Installation\n\n```bash\npip install brisque\n```\n\n## Usage\n\n1. Trying to perform Image Quality Assessment on **local images** \n```python\nfrom brisque import BRISQUE\n\nobj = BRISQUE(url=False)\nobj.score(\"<Ndarray of the Image>\")\n```\n\n2. Trying to perform Image Quality Assessment on **web images** \n```python\nfrom brisque import BRISQUE\n\nobj = BRISQUE(url=True)\nobj.score(\"<URL for the Image>\")\n```\n\n### Example\n\n#### Local Image\n\n- Input\n```python\nfrom brisque import BRISQUE\nimport numpy as np\nfrom PIL import Image\n\nimg_path = \"brisque/tests/sample-image.jpg\"\nimg = Image.open(img_path)\nndarray = np.asarray(img)\n\nobj = BRISQUE(url=False)\nobj.score(img=ndarray)\n```\n- Output\n```\n34.84883848208594\n```\n\n#### URL\n\n- Input\n```python\nfrom brisque import BRISQUE\n\nURL = \"https://www.mathworks.com/help/examples/images/win64/CalculateBRISQUEScoreUsingCustomFeatureModelExample_01.png\"\n\nobj = BRISQUE(url=True)\nobj.score(URL)\n```\n- Output\n```\n71.73427549219988\n```\n\n\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Image Quality",
"version": "0.0.17",
"project_urls": {
"Homepage": "https://github.com/rehanguha/brisque"
},
"split_keywords": [
"quality",
" svm",
" image",
" maths"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "208d9e1fc3acd95bf053f5699c2d79af44ec8a0ca3e1ef53612400281aee6ffc",
"md5": "d0c89a08237014ee5234e92781035792",
"sha256": "02dcada95efb5cc105b482d37dfae43c55cfe711713ec431f3dbdeede19c521c"
},
"downloads": -1,
"filename": "brisque-0.0.17-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d0c89a08237014ee5234e92781035792",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=2.7",
"size": 140291,
"upload_time": "2025-07-17T05:02:29",
"upload_time_iso_8601": "2025-07-17T05:02:29.582800Z",
"url": "https://files.pythonhosted.org/packages/20/8d/9e1fc3acd95bf053f5699c2d79af44ec8a0ca3e1ef53612400281aee6ffc/brisque-0.0.17-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e69d7cda6eeaeb53e47cf3b47163a5f216c5aeda71fbfe7ac9fbd59c56da1782",
"md5": "2826532a084b159e79ca7af1e97efd0c",
"sha256": "e04468436c19c94a6e1e00d3fe89201f1c9183737f6992146ca3cfc02c5d3f46"
},
"downloads": -1,
"filename": "brisque-0.0.17.tar.gz",
"has_sig": false,
"md5_digest": "2826532a084b159e79ca7af1e97efd0c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=2.7",
"size": 141396,
"upload_time": "2025-07-17T05:02:30",
"upload_time_iso_8601": "2025-07-17T05:02:30.528321Z",
"url": "https://files.pythonhosted.org/packages/e6/9d/7cda6eeaeb53e47cf3b47163a5f216c5aeda71fbfe7ac9fbd59c56da1782/brisque-0.0.17.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-17 05:02:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "rehanguha",
"github_project": "brisque",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "contourpy",
"specs": [
[
"==",
"1.2.1"
]
]
},
{
"name": "cycler",
"specs": [
[
"==",
"0.12.1"
]
]
},
{
"name": "exceptiongroup",
"specs": [
[
"==",
"1.2.1"
]
]
},
{
"name": "fonttools",
"specs": [
[
"==",
"4.51.0"
]
]
},
{
"name": "imageio",
"specs": [
[
"==",
"2.34.1"
]
]
},
{
"name": "importlib_resources",
"specs": [
[
"==",
"6.4.0"
]
]
},
{
"name": "iniconfig",
"specs": [
[
"==",
"2.0.0"
]
]
},
{
"name": "kiwisolver",
"specs": [
[
"==",
"1.4.5"
]
]
},
{
"name": "lazy_loader",
"specs": [
[
"==",
"0.4"
]
]
},
{
"name": "libsvm-official",
"specs": [
[
"==",
"3.36.0"
]
]
},
{
"name": "matplotlib",
"specs": [
[
"==",
"3.8.4"
]
]
},
{
"name": "networkx",
"specs": [
[
"==",
"3.2.1"
]
]
},
{
"name": "numpy",
"specs": [
[
"==",
"1.26.4"
]
]
},
{
"name": "opencv-python",
"specs": [
[
"==",
"4.9.0.80"
]
]
},
{
"name": "packaging",
"specs": [
[
"==",
"24.0"
]
]
},
{
"name": "pillow",
"specs": [
[
"==",
"10.3.0"
]
]
},
{
"name": "pluggy",
"specs": [
[
"==",
"1.5.0"
]
]
},
{
"name": "pyparsing",
"specs": [
[
"==",
"3.1.2"
]
]
},
{
"name": "pytest",
"specs": [
[
"==",
"8.2.0"
]
]
},
{
"name": "python-dateutil",
"specs": [
[
"==",
"2.9.0.post0"
]
]
},
{
"name": "PyWavelets",
"specs": [
[
"==",
"1.6.0"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.32.4"
]
]
},
{
"name": "scikit-image",
"specs": [
[
"==",
"0.22.0"
]
]
},
{
"name": "scipy",
"specs": [
[
"==",
"1.13.0"
]
]
},
{
"name": "setuptools-scm",
"specs": [
[
"==",
"8.0.4"
]
]
},
{
"name": "six",
"specs": [
[
"==",
"1.16.0"
]
]
},
{
"name": "tifffile",
"specs": [
[
"==",
"2024.4.24"
]
]
},
{
"name": "tomli",
"specs": [
[
"==",
"2.0.1"
]
]
},
{
"name": "typing_extensions",
"specs": [
[
"==",
"4.11.0"
]
]
},
{
"name": "zipp",
"specs": [
[
"==",
"3.19.1"
]
]
}
],
"lcname": "brisque"
}