Assessing the quality of an image with respect to compression?

前端 未结 3 1604
梦如初夏
梦如初夏 2020-12-23 13:09

I have images that I am using for a computer vision task. The task is sensitive to image quality. I\'d like to remove all images that are below a certain threshold, but I

3条回答
  •  梦毁少年i
    2020-12-23 13:23

    I had many photos shot to an ancient book (so similar layout, two pages per image), but some were much blurred, to the point that the text could not be read. I searched for a ready-made batch script to find the most blurred one, but I didn't find any useful, so I used another part of script got on the net (based on ImageMagick, but no longer working; I couldn't retrieve the author for the credits!), useful to assessing the blur level of a single image, tweaked it, and automatised it over a whole folder. I uploaded here:

    https://gist.github.com/888239

    hoping it will be useful for someone else. It works on a Linux system, and uses ImageMagick (and some usually command line installed tools, as gawk, sort, grep, etc.).

提交回复
热议问题