This repository was unarchived on 17th May 2020. Seeing this being used by many, the author has decided to make the necessary changes to make this code ready to be re-used. Please wait for another week (i.e. 24th May 2020) to see the changes in action before filing any issue. Though, if your work is urgent, please feel free to check the revisions made in the module committed to opencv_contrib
(link below).
Note: There have been many revisions, specially about the models used. Please check the work by @clunietp (https://github.com/clunietp) and myself on BRISQUE IQA committed to opencv_contrib
here: https://github.com/opencv/opencv_contrib/tree/master/modules/quality
Note: This work was originally published on LearnOpenCV. For code: https://github.com/spmallick/learnopencv/tree/master/ImageMetrics
The work was published on https://www.learnopencv.com/. Link: blog post.
Python 2.x LIBSVM Installation
sudo apt-get install python-libsvm
Python 3.x LIVSVM Installation and C++ LIBSVM Installation
For C++ :
cd C++/libsvm/
cmake .
make
For Python 3.x :
cd Python/libsvm/
make
cd python
make
Python 2.x
python2 brisquequality.py <image_path>
Python 3.x
cd Python/libsvm/python/
python3 brisquequality.py <image_path>
C++
cd C++/
./brisquequality <image_path>
Quality Score Comparison using BRISUQE Model