M
M
M1lkom2020-06-14 00:49:21
Python
M1lkom, 2020-06-14 00:49:21

An objective assessment of image quality?

Help, I have an original image angle and a few synthesized ones, I need to make an objective quality assessment of the synthesized angles (PSNR MSE SSIM). I can't make a working code (in Python) for this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
ScriptKiddo, 2020-06-14
@ScriptKiddo

PSNR 1 minute on Google https://dsp.stackexchange.com/a/61510

SOURCE

5ee54c447dbec689600361.png
5ee54c55c542d627857084.png

import cv2

img1 = cv2.imread("1.png")
img2 = cv2.imread("2.png", 1)

psnr = cv2.PSNR(img1, img2)
print(psnr)

OUT
26.633679839968654

Process finished with exit code 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question