Skip to main content

A Python wrapper for 17 image quality indicators.

Project description


A Python package computing a set of image quality indicators (IQIs) for a given input video.

Following IQIs are included in the package:

Authors: Jakub Nawała <>, Filip Korus <>


  • ffmpeg - version == 4.4.2 (4.x.x should also work)
  • Python - version >= 3.9


$ pip install agh_vqis


  1. Single multimedia file:

    from agh_vqis import process_single_mm_file
    from pathlib import Path
    if __name__ == '__main__':
  2. Folder with multimedia files:

    from agh_vqis import process_folder_w_mm_files
    from pathlib import Path
    if __name__ == '__main__':
  3. Options parameter - in either process_single_mm_file and process_folder_w_mm_files function options could be provided as an optional argument. It is being passed to function as a dictionary like below.

     process_single_mm_file(Path('/path/to/single/movie.mp4'), options={
         'contrast': False, # disable contrast indicator
         'colourfulness': False, # disable colourfulness indicator
         'exec': '/path/to/vqis/executable/file/',
         'shell': '/bin/bash'
  4. How to disable/enable indicators to count? Every indicator is enabled by default except blue_amount due to long computing time. To disable one of following indicators (blockiness, sa, letterbox, pillarbox, blockloss, blur, ta, blackout, freezing, exposure, contrast, interlace, noise, slice, flickering, colourfulness) pass

    'indicator_name': False

    to options dictionary. Whereas to enable blur_amount indicator pass True value.

  5. Available optional parameters except indicators' flags:

    • exec: Path to the binary file running 15 AGH VQIs. The default binaries (depending on system and CPU architecture) are provided in the package files and will run automatically. VQIS binary files could be downloaded from here.
    • shell: Alternative Bash interpreter (instead of the default /bin/bash). Provide here a path to the interpreter of your choice.
  6. agh-vqis package could be used from command line interface as well. For example:

    $ python3 -m agh_vqis /path/to/single/movie.mp4 # will run VQIS for single file


    $ python3 -m agh_vqis /path/to/multimedia/folder/ # will run VQIS for folder

    Whereas this command will display help:

    $ python3 -m agh_vqis -h
  7. Supported multimedia files: mp4, mov, mkv, avi, ts, jpg, jpeg, png, gif, bmp.

Output file

First row of the output CSV file contains header with image quality indicators (IQIs) names, whereas each row below the header represents single video frame from the input video file. Each column provides a numerical result as returned by a given image quality indicator (IQI) when applied to the respective frame.


The agh-vqis Python package is provided via the SAP Developer License Agreement.

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

agh_vqis-1.1.1.tar.gz (147.1 kB view hashes)

Uploaded source

Built Distribution

agh_vqis-1.1.1-py3-none-any.whl (148.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page