Skip to main content

A Python wrapper for 18 image quality indicators.

Project description

agh-vqis

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

Following IQIs are included in the package:

  • A set of 15 Video Quality Indicators (VQIs) developed by the team from AGH. See the following website for more information: https://qoe.agh.edu.pl/indicators/.
  • Our Python reimplementation of the Colourfulness IQI. See this paper for more information regarding this IQI.
  • Blur Amount IQI. See package's Python Package Index web page for more information.
  • UGC IQI (User-generated content).

Authors: Jakub Nawała <jakub.nawala@agh.edu.pl>, Filip Korus <fkorus@student.agh.edu.pl>

Requirements

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

Installation

$ pip install agh_vqis

Usage

  1. Single multimedia file:

    from agh_vqis import process_single_mm_file
    from pathlib import Path
    
    if __name__ == '__main__':
        process_single_mm_file(Path('/path/to/single/movie.mp4'))
    
  2. Folder with multimedia files:

    from agh_vqis import process_folder_w_mm_files
    from pathlib import Path
    
    if __name__ == '__main__':
        process_folder_w_mm_files(Path('/path/to/multimedia/folder/'))
    
  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={
          VQIs.contrast: False,  # disable contrast indicator
          VQIs.colourfulness: False,  # disable colourfulness indicator
         'exec': '/path/to/vqis/executable/file/'
     })
    
  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, ugc) pass

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

    or

    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, y4m, 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.

License

The agh-vqis Python package is provided via the Evaluation 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-2.9.0.tar.gz (727.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agh_vqis-2.9.0-py3-none-any.whl (737.9 kB view details)

Uploaded Python 3

File details

Details for the file agh_vqis-2.9.0.tar.gz.

File metadata

  • Download URL: agh_vqis-2.9.0.tar.gz
  • Upload date:
  • Size: 727.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for agh_vqis-2.9.0.tar.gz
Algorithm Hash digest
SHA256 4bc89645849bb0ecf20f0a3a790fa10b23ed784906e3cb774ec9f18656c1cd2c
MD5 de90fcfbaf1b0db6c4f7c0f2c6dfdb88
BLAKE2b-256 ebfc70299189da7a8857545fc305ae7d3ddbb159807a26d4ddf1bfb5b5fe444b

See more details on using hashes here.

File details

Details for the file agh_vqis-2.9.0-py3-none-any.whl.

File metadata

  • Download URL: agh_vqis-2.9.0-py3-none-any.whl
  • Upload date:
  • Size: 737.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for agh_vqis-2.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95c9b937749720eeb3ff0aa1b847b313418d5b4d860d893b565d3786ef90b73f
MD5 1893276f0be6811a9ed6c3fbeb36dcd3
BLAKE2b-256 301de451976a6dec268bedb808f78c048f96f3df232bd2c7b1ae3420c075b4a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page