Koncept IQA
Project description
Koncept Image Quality Assessment Models
from kuti import applications as apps
from kuti import generic as gen
from kuti import image_utils as iu
import pandas as pd, numpy as np, os, urllib
# download and read the meta-data for the KonIQ-10k IQA database
koniq_meta_url = "https://github.com/subpic/koniq/raw/master/metadata/koniq10k_distributions_sets.csv"
urllib.request.urlretrieve(koniq_meta_url, 'koniq10k_distributions_sets.csv')
df = pd.read_csv('koniq10k_distributions_sets.csv')
# download some images from the test set of the database via direct link
url_list = 'http://media.mmsp-kn.de/koniq10k/1024x768/' + df[df.set=='test'].image_name[::50]
gen.make_dirs('tmp/')
for url in url_list:
file_name = url.split('/')[-1]
urllib.request.urlretrieve(url, 'tmp/'+file_name)
from koncept.models import Koncept512
k = Koncept512()
# read images and assess their quality
images = [iu.read_image(p) for p in 'tmp/' + df[df.set=='test'].image_name[::50]]
MOS_pred = k.assess(images)
# compare with the ground-truth quality mean opinion scores (MOS)
MOS_ground = df[df.set=='test'].MOS[::50]
apps.rating_metrics(MOS_ground, MOS_pred);
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
koncept-0.2.2.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file koncept-0.2.2.tar.gz
.
File metadata
- Download URL: koncept-0.2.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.7.6 Linux/4.15.0-123-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7d628f923b096b557a79ec8502baae5b8b3459ae3ef5dd9db41faca11074268 |
|
MD5 | 8718e3f249fb2cb583206240f41fd844 |
|
BLAKE2b-256 | ffb5713a7e071af5d7f9df771e9ce74f9a8edceba8521aa5064255bdf188ce2d |
File details
Details for the file koncept-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: koncept-0.2.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.7.6 Linux/4.15.0-123-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 204cb4da4aac4e2fc15d3ab3710b03c589f13eed2c67685b37fe3a4db71dfb21 |
|
MD5 | cb5a5aafb349f89537f4ac93e36e1dfc |
|
BLAKE2b-256 | d9ff19c3232bda9a7cc58f2d8ae6a98feae5c57d6f90a7b7983f43c4715742d3 |