sharp-iqa
v1.0.0
Published
Image quality assessment utility for sharp. Now only MSE and PSNR.
Downloads
3
Readme
Image quality assessment utility for sharp.
- MSE
.mse
- PSNR
.psnr
Future
- SSIM
Sample
Use exported SharpIQA.sharp
because different sharp
version maybe get segmentation fault.
const SharpIQA = require('sharp-iqa')
(async() {
const psnr = await SharpIQA.psnr(SharpIQA.sharp('path/image1.png'), SharpIQA.sharp('path/image2.png'))
console.log(psnr)
})()