There is a newer version of the record available.

Published May 2, 2024 | Version v0.0.16
Software Open

brisque

Description

BRISQUE is a no-reference image quality score.

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

Files

rehanguha/brisque-v0.0.16.zip

Files (1.1 MB)

Name Size Download all
md5:fa390d2b9d305346abe9798c43f25a1a
1.1 MB Preview Download

Additional details

Related works

Software

Repository URL
https://github.com/rehanguha/brisque
Programming language
Python