# How to retreive and use Model and Range data for Brisque Computation

**URL:** <https://forum.opencv.org/t/how-to-retreive-and-use-model-and-range-data-for-brisque-computation/9091>\
**Category:** C++\
**Tags:** contrib, quality\
**Created:** [June 8, 2022, 6:37pm UTC](https://forum.opencv.org/t/how-to-retreive-and-use-model-and-range-data-for-brisque-computation/9091 "2022-06-08T18:37:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjk](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Arjk](https://forum.opencv.org/u/Arjk)\
**Post date:** [June 8, 2022, 6:37pm UTC](https://forum.opencv.org/t/how-to-retreive-and-use-model-and-range-data-for-brisque-computation/9091/1 "2022-06-08T18:37:52Z")

</div>

I noticed that to compute a BRISQUE quality score I need model and range data. How can I use the provided Opencv model and range data in order to make my QualityBRISQUE object? I am having trouble finding the library if it is there or the file path to it. Or is there a way for me to compute a quality score without needing to manually provide some range or model file?

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [June 9, 2022, 7:32am UTC](https://forum.opencv.org/t/how-to-retreive-and-use-model-and-range-data-for-brisque-computation/9091/2 "2022-06-09T07:32:13Z")

</div>

you can [find a sample here](https://github.com/opencv/opencv_contrib/tree/4.x/modules/quality/samples), along with precalculated model & range data, also a program to calculate those from an image db
