Skip to main content

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

Release files for erqa 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for erqa 1.1.2
File Size Uploaded
erqa-1.1.2.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for erqa 1.1.2
File Interpreter ABI Platform
erqa-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / erqa-1.1.2.tar.gz

Download URL erqa-1.1.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
86a72d9a26c59842c52e47248de8ef09e11b688a009359f6182dc30a55cea81b
BLAKE2b-256 checksum
How to use checksums
6a0bac8864bd05a22ed66d90efecea08857f2664bd0598c1cd9c4f77882840ba
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / erqa-1.1.2-py3-none-any.whl

Download URL erqa-1.1.2-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32c454fefe28467ab58d97ca005e45a46fabca554b44c0004467508d8a5486d4
BLAKE2b-256 checksum
How to use checksums
c982f91db221dc86c6b510e636b18154d782c1f87b1693bcca860d43a376615c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page