Skip to main content

A full-reference quality metric for analyzing restoration methods.

Project description

ERQA - Edge Restoration Quality Assessment

ERQA - a full-reference quality metric designed to analyze how good image and video restoration methods (SR, deblurring, denoising, etc) are restoring real details.

It is part of MSU Video Super Resolution Benchmark project.

Quick start

Run pip install erqa and run it from command line or directly from Python code.

Command line

python -m erqa /path/to/target.png /path/to/gt.png

Python code

import erqa
import cv2

# Target and gt should be uint8 arrays of equal shape (H, W, 3) in BGR format
target = cv2.imread('/path/to/target.png')
gt = cv2.imread('/path/to/gt.png')

metric = erqa.ERQA()
v = metric(target, gt)

Description

The ERQA metric analyzes how details were reconstructed in an image compared to ground-truth.

  • ERQA = 1.0 means perfect restoration
  • ERQA = 0.0 means worst restoration

Visualization of the metric shows underlying mask showing where image is distorted.

  • Blue means there is a missing detail (False Negative)
  • Red means there is a misplaced detail (False Positive)
  • White means perfect details restoration (True Positive)
  • Black means perfect background restoration (True Negative)

Local setup

You can get source code up and running using following commands:

git clone https://github.com/msu-video-group/erqa
cd erqa
pip install -r requirements.txt

Cite us

Soon

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

erqa-1.1.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

erqa-1.1.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file erqa-1.1.1.tar.gz.

File metadata

  • Download URL: erqa-1.1.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.6

File hashes

Hashes for erqa-1.1.1.tar.gz
Algorithm Hash digest
SHA256 5093d665dd660882ec3b4db178b650d1c6d914ed0f46bb9934a4ffae75fd3649
MD5 67de5e9bfb78597a8f892417baa08f41
BLAKE2b-256 7fd107c759859717f341e4b7b82174035610240e15f0830c8a4a4ec02c7f08de

See more details on using hashes here.

File details

Details for the file erqa-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: erqa-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.6

File hashes

Hashes for erqa-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d10647576fc522dab6cad2e6726440296729b3d5aa173ca85a59aad15a38de3
MD5 1dacbc7308ad310097ed81549c83e18a
BLAKE2b-256 4199e32dc67fffdee9c86607ee77d8a0e8215bdc546c09ce90f3de3280781834

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