Correct version:
Code: Select all
output = subprocess.Popen(["compare","-metric","PSNR",path + "before.jpg", path + "after.jpg", path + "difference.jpg"], stderr=subprocess.PIPE).stderr
score = output.read()
Code: Select all
output = subprocess.Popen(["compare","-metric","PSNR",path + "before.jpg", path + "after.jpg", path + "difference.jpg"], stderr=subprocess.PIPE).stderr
score = output.read()