Skip to main content

Image Quality

Project description

Blind/Referenceless Image Spatial Quality Evaluator (BRISQUE)

DOI

BRISQUE is a no-reference image quality score.

A good place to know how BRISQUE works : LearnOpenCV

Installation

pip install brisque

Usage

  1. Trying to perform Image Quality Assessment on local images
from brisque import BRISQUE

obj = BRISQUE(url=False)
obj.score("<Ndarray of the Image>")
  1. Trying to perform Image Quality Assessment on web images
from brisque import BRISQUE

obj = BRISQUE(url=True)
obj.score("<URL for the Image>")

Example

Local Image

  • Input
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
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brisque-0.0.17.tar.gz (141.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brisque-0.0.17-py3-none-any.whl (140.3 kB view details)

Uploaded Python 3

File details

Details for the file brisque-0.0.17.tar.gz.

File metadata

  • Download URL: brisque-0.0.17.tar.gz
  • Upload date:
  • Size: 141.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for brisque-0.0.17.tar.gz
Algorithm Hash digest
SHA256 e04468436c19c94a6e1e00d3fe89201f1c9183737f6992146ca3cfc02c5d3f46
MD5 2826532a084b159e79ca7af1e97efd0c
BLAKE2b-256 e69d7cda6eeaeb53e47cf3b47163a5f216c5aeda71fbfe7ac9fbd59c56da1782

See more details on using hashes here.

File details

Details for the file brisque-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: brisque-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 140.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for brisque-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 02dcada95efb5cc105b482d37dfae43c55cfe711713ec431f3dbdeede19c521c
MD5 d0c89a08237014ee5234e92781035792
BLAKE2b-256 208d9e1fc3acd95bf053f5699c2d79af44ec8a0ca3e1ef53612400281aee6ffc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page