Git Product home page Git Product logo

pybrisque's Introduction

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".

Installation

LibSVM is required. On ubuntu or other debian-based system, you can install libsvm-dev package from apt as follows:

apt-get install libsvm-dev

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. There is one catch though, the bicubic interpolation when resizing image in Matlab and OpenCV is a bit different as explained in here. 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

And the absolute differences' stat is as follows:

{'min': 0.17222238726479588,
 'max': 16.544924728934404,
 'mean': 3.9994322498322754,
 'std': 3.0715344507521416}

pybrisque's People

Contributors

akbargumbira avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.